gitea_hat/public/js/monaco-ts.977b77d2.worker.js

33958 lines
4.7 MiB

var RF=Object.defineProperty;var YN=Object.getOwnPropertySymbols;var wF=Object.prototype.hasOwnProperty,MF=Object.prototype.propertyIsEnumerable;var bS=(id,kc,Ul)=>kc in id?RF(id,kc,{enumerable:!0,configurable:!0,writable:!0,value:Ul}):id[kc]=Ul,ES=(id,kc)=>{for(var Ul in kc||(kc={}))wF.call(kc,Ul)&&bS(id,Ul,kc[Ul]);if(YN)for(var Ul of YN(kc))MF.call(kc,Ul)&&bS(id,Ul,kc[Ul]);return id};var Bv=(id,kc,Ul)=>(bS(id,typeof kc!="symbol"?kc+"":kc,Ul),Ul);var Bl=(id,kc,Ul)=>new Promise((TS,gc)=>{var Uv=a_=>{try{Vv(Ul.next(a_))}catch(Wv){gc(Wv)}},n_=a_=>{try{Vv(Ul.throw(a_))}catch(Wv){gc(Wv)}},Vv=a_=>a_.done?TS(a_.value):Promise.resolve(a_.value).then(Uv,n_);Vv((Ul=Ul.apply(id,kc)).next())});(function(){"use strict";var id={"./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js":function(gc,Uv,n_){class Vv{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(n){setTimeout(()=>{throw n.stack?Pg.isErrorNoTelemetry(n)?new Pg(n.message+`
`+n.stack):new Error(n.message+`
`+n.stack):n},0)}}emit(n){this.listeners.forEach(c=>{c(n)})}onUnexpectedError(n){this.unexpectedErrorHandler(n),this.emit(n)}onUnexpectedExternalError(n){this.unexpectedErrorHandler(n)}}const a_=new Vv;function Wv(e){DS(e)||a_.onUnexpectedError(e)}function PF(e){DS(e)||a_.onUnexpectedExternalError(e)}function SS(e){if(e instanceof Error){const{name:n,message:c}=e,u=e.stacktrace||e.stack;return{$isError:!0,name:n,message:c,stack:u,noTelemetry:Pg.isErrorNoTelemetry(e)}}return e}const vy="Canceled";function DS(e){return e instanceof QN?!0:e instanceof Error&&e.name===vy&&e.message===vy}class QN extends Error{constructor(){super(vy),this.name=this.message}}function FF(){const e=new Error(vy);return e.name=e.message,e}function GF(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function BF(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class UF extends Error{constructor(n){super("NotSupported"),n&&(this.message=n)}}class Pg extends Error{constructor(n){super(n),this.name="ErrorNoTelemetry"}static fromError(n){if(n instanceof Pg)return n;const c=new Pg;return c.message=n.message,c.stack=n.stack,c}static isErrorNoTelemetry(n){return n.name==="ErrorNoTelemetry"}}class LS extends Error{constructor(n){super(n||"An unexpected bug occurred."),Object.setPrototypeOf(this,LS.prototype);debugger}}function ZN(e){const n=this;let c=!1,u;return function(){return c||(c=!0,u=e.apply(n,arguments)),u}}var hy;(function(e){function n(O){return O&&typeof O=="object"&&typeof O[Symbol.iterator]=="function"}e.is=n;const c=Object.freeze([]);function u(){return c}e.empty=u;function*g(O){yield O}e.single=g;function p(O){return O||c}e.from=p;function I(O){return!O||O[Symbol.iterator]().next().done===!0}e.isEmpty=I;function V(O){return O[Symbol.iterator]().next().value}e.first=V;function L(O,x){for(const ie of O)if(x(ie))return!0;return!1}e.some=L;function m(O,x){for(const ie of O)if(x(ie))return ie}e.find=m;function*y(O,x){for(const ie of O)x(ie)&&(yield ie)}e.filter=y;function*j(O,x){let ie=0;for(const Z of O)yield x(Z,ie++)}e.map=j;function*te(...O){for(const x of O)for(const ie of x)yield ie}e.concat=te;function*E(O){for(const x of O)for(const ie of x)yield ie}e.concatNested=E;function F(O,x,ie){let Z=ie;for(const re of O)Z=x(Z,re);return Z}e.reduce=F;function $(O,x){let ie=0;for(const Z of O)x(Z,ie++)}e.forEach=$;function*C(O,x,ie=O.length){for(x<0&&(x+=O.length),ie<0?ie+=O.length:ie>O.length&&(ie=O.length);x<ie;x++)yield O[x]}e.slice=C;function K(O,x=Number.POSITIVE_INFINITY){const ie=[];if(x===0)return[ie,O];const Z=O[Symbol.iterator]();for(let re=0;re<x;re++){const q=Z.next();if(q.done)return[ie,e.empty()];ie.push(q.value)}return[ie,{[Symbol.iterator](){return Z}}]}e.consume=K;function k(O){return K(O)[0]}e.collect=k;function X(O,x,ie=(Z,re)=>Z===re){const Z=O[Symbol.iterator](),re=x[Symbol.iterator]();for(;;){const q=Z.next(),P=re.next();if(q.done!==P.done)return!1;if(q.done)return!0;if(!ie(q.value,P.value))return!1}}e.equals=X})(hy||(hy={}));const $N=!1;let ef=null;function ek(e){ef=e}if($N){const e="__is_disposable_tracked__";ek(new class{trackDisposable(n){const c=new Error("Potentially leaked disposable").stack;setTimeout(()=>{n[e]||console.log(c)},3e3)}setParent(n,c){if(n&&n!==Jv.None)try{n[e]=!0}catch(u){}}markAsDisposed(n){if(n&&n!==Jv.None)try{n[e]=!0}catch(c){}}markAsSingleton(n){}})}function jv(e){return ef==null||ef.trackDisposable(e),e}function Hv(e){ef==null||ef.markAsDisposed(e)}function yy(e,n){ef==null||ef.setParent(e,n)}function rk(e,n){if(!!ef)for(const c of e)ef.setParent(c,n)}function VF(e){return ef==null||ef.markAsSingleton(e),e}class tk extends Error{constructor(n){super(`Encountered errors while disposing of store. Errors: [${n.join(", ")}]`),this.errors=n}}function WF(e){return typeof e.dispose=="function"&&e.dispose.length===0}function AS(e){if(hy.is(e)){const n=[];for(const c of e)if(c)try{c.dispose()}catch(u){n.push(u)}if(n.length===1)throw n[0];if(n.length>1)throw new tk(n);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function nk(...e){const n=by(()=>AS(e));return rk(e,n),n}function by(e){const n=jv({dispose:ZN(()=>{Hv(n),e()})});return n}class jm{constructor(){this._toDispose=new Set,this._isDisposed=!1,jv(this)}dispose(){this._isDisposed||(Hv(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{AS(this._toDispose.values())}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return yy(n,this),this._isDisposed?jm.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(n),n}}jm.DISABLE_DISPOSED_WARNING=!1;class Jv{constructor(){this._store=new jm,jv(this),yy(this._store,this)}dispose(){Hv(this),this._store.dispose()}_register(n){if(n===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(n)}}Jv.None=Object.freeze({dispose(){}});class jF{constructor(){this._isDisposed=!1,jv(this)}get value(){return this._isDisposed?void 0:this._value}set value(n){var c;this._isDisposed||n===this._value||((c=this._value)===null||c===void 0||c.dispose(),n&&yy(n,this),this._value=n)}clear(){this.value=void 0}dispose(){var n;this._isDisposed=!0,Hv(this),(n=this._value)===null||n===void 0||n.dispose(),this._value=void 0}clearAndLeak(){const n=this._value;return this._value=void 0,n&&yy(n,null),n}}class HF{constructor(n){this._disposable=n,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class ak{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,jv(this)}set(n){let c=n;return this.unset=()=>c=void 0,this.isset=()=>c!==void 0,this.dispose=()=>{c&&(c(),c=void 0,Hv(this))},this}}class JF{constructor(n){this.object=n}dispose(){}}class nl{constructor(n){this.element=n,this.next=nl.Undefined,this.prev=nl.Undefined}}nl.Undefined=new nl(void 0);class Ey{constructor(){this._first=nl.Undefined,this._last=nl.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===nl.Undefined}clear(){let n=this._first;for(;n!==nl.Undefined;){const c=n.next;n.prev=nl.Undefined,n.next=nl.Undefined,n=c}this._first=nl.Undefined,this._last=nl.Undefined,this._size=0}unshift(n){return this._insert(n,!1)}push(n){return this._insert(n,!0)}_insert(n,c){const u=new nl(n);if(this._first===nl.Undefined)this._first=u,this._last=u;else if(c){const p=this._last;this._last=u,u.prev=p,p.next=u}else{const p=this._first;this._first=u,u.next=p,p.prev=u}this._size+=1;let g=!1;return()=>{g||(g=!0,this._remove(u))}}shift(){if(this._first!==nl.Undefined){const n=this._first.element;return this._remove(this._first),n}}pop(){if(this._last!==nl.Undefined){const n=this._last.element;return this._remove(this._last),n}}_remove(n){if(n.prev!==nl.Undefined&&n.next!==nl.Undefined){const c=n.prev;c.next=n.next,n.next.prev=c}else n.prev===nl.Undefined&&n.next===nl.Undefined?(this._first=nl.Undefined,this._last=nl.Undefined):n.next===nl.Undefined?(this._last=this._last.prev,this._last.next=nl.Undefined):n.prev===nl.Undefined&&(this._first=this._first.next,this._first.prev=nl.Undefined);this._size-=1}*[Symbol.iterator](){let n=this._first;for(;n!==nl.Undefined;)yield n.element,n=n.next}}var CS=function(e,n,c,u){function g(p){return p instanceof c?p:new c(function(I){I(p)})}return new(c||(c=Promise))(function(p,I){function V(y){try{m(u.next(y))}catch(j){I(j)}}function L(y){try{m(u.throw(y))}catch(j){I(j)}}function m(y){y.done?p(y.value):g(y.value).then(V,L)}m((u=u.apply(e,n||[])).next())})};let xS=typeof document!="undefined"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const ik="i-default";function IS(e,n){let c;return n.length===0?c=e:c=e.replace(/\{(\d+)\}/g,(u,g)=>{const p=g[0],I=n[p];let V=u;return typeof I=="string"?V=I:(typeof I=="number"||typeof I=="boolean"||I===void 0||I===null)&&(V=String(I)),V}),xS&&(c="\uFF3B"+c.replace(/[aouei]/g,"$&$&")+"\uFF3D"),c}function ok(e,n){let c=e[n];return c||(c=e["*"],c)?c:null}function NE(e){return e.charAt(e.length-1)==="/"?e:e+"/"}function NS(e,n,c){return CS(this,void 0,void 0,function*(){const u=NE(e)+NE(n)+"vscode/"+NE(c),g=yield fetch(u);if(g.ok)return yield g.json();throw new Error(`${g.status} - ${g.statusText}`)})}function kE(e){return function(n,c){const u=Array.prototype.slice.call(arguments,2);return IS(e[n],u)}}function kS(e,n,...c){return IS(n,c)}function KF(e){}function zF(e){xS=e}function qF(e,n){var c;return{localize:kE(n[e]),getConfiguredDefaultLocale:(c=n.getConfiguredDefaultLocale)!==null&&c!==void 0?c:u=>{}}}function XF(e,n,c,u){var g;const p=(g=u["vs/nls"])!==null&&g!==void 0?g:{};if(!e||e.length===0)return c({localize:kS,getConfiguredDefaultLocale:()=>{var y;return(y=p.availableLanguages)===null||y===void 0?void 0:y["*"]}});const I=p.availableLanguages?ok(p.availableLanguages,e):null,V=I===null||I===ik;let L=".nls";V||(L=L+"."+I);const m=y=>{Array.isArray(y)?y.localize=kE(y):y.localize=kE(y[e]),y.getConfiguredDefaultLocale=()=>{var j;return(j=p.availableLanguages)===null||j===void 0?void 0:j["*"]},c(y)};typeof p.loadBundle=="function"?p.loadBundle(e,I,(y,j)=>{y?n([e+".nls"],m):m(j)}):p.translationServiceUrl&&!V?CS(this,void 0,void 0,function*(){var y;try{const j=yield NS(p.translationServiceUrl,I,e);return m(j)}catch(j){if(!I.includes("-"))return console.error(j),n([e+".nls"],m);try{const te=I.split("-")[0],E=yield NS(p.translationServiceUrl,te,e);return(y=p.availableLanguages)!==null&&y!==void 0||(p.availableLanguages={}),p.availableLanguages["*"]=te,m(E)}catch(te){return console.error(te),n([e+".nls"],m)}}}):n([e+L],m,y=>{if(L===".nls"){console.error("Failed trying to load default language strings",y);return}console.error(`Failed to load message bundle for language ${I}. Falling back to the default language:`,y),n([e+".nls"],m)})}var OE;const Ty="en";let Kv=!1,zv=!1,Sy=!1,sk=!1,lk=!1,OS=!1,ck=!1,RS=!1,uk=!1,Dy,RE=null,fk=null,im;const mu=typeof self=="object"?self:typeof n_.g=="object"?n_.g:{};let gu;typeof mu.vscode!="undefined"&&typeof mu.vscode.process!="undefined"?gu=mu.vscode.process:typeof process!="undefined"&&(gu=process);const wS=typeof((OE=gu==null?void 0:gu.versions)===null||OE===void 0?void 0:OE.electron)=="string",dk=wS&&(gu==null?void 0:gu.type)==="renderer";if(typeof navigator=="object"&&!dk)im=navigator.userAgent,Kv=im.indexOf("Windows")>=0,zv=im.indexOf("Macintosh")>=0,RS=(im.indexOf("Macintosh")>=0||im.indexOf("iPad")>=0||im.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Sy=im.indexOf("Linux")>=0,OS=!0,Dy=(kS({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ty,RE=Dy;else if(typeof gu=="object"){Kv=gu.platform==="win32",zv=gu.platform==="darwin",Sy=gu.platform==="linux",sk=Sy&&!!gu.env.SNAP&&!!gu.env.SNAP_REVISION,ck=wS,uk=!!gu.env.CI||!!gu.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Dy=Ty,RE=Ty;const e=gu.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),c=n.availableLanguages["*"];Dy=n.locale,RE=c||Ty,fk=n._translationsConfigFile}catch(n){}lk=!0}else console.error("Unable to resolve platform.");let wE=0;zv?wE=1:Kv?wE=3:Sy&&(wE=2);const qv=Kv,pk=zv,YF=null,QF=null,ZF=null,$F=OS&&typeof mu.importScripts=="function",e9=null,i_=im,r9=null,_k=typeof mu.postMessage=="function"&&!mu.importScripts,t9=(()=>{if(_k){const e=[];mu.addEventListener("message",c=>{if(c.data&&c.data.vscodeScheduleAsyncWork)for(let u=0,g=e.length;u<g;u++){const p=e[u];if(p.id===c.data.vscodeScheduleAsyncWork){e.splice(u,1),p.callback();return}}});let n=0;return c=>{const u=++n;e.push({id:u,callback:c}),mu.postMessage({vscodeScheduleAsyncWork:u},"*")}}return e=>setTimeout(e)})(),n9=zv||RS?2:Kv?1:3;let MS=!0,PS=!1;function a9(){if(!PS){PS=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2,MS=new Uint16Array(e.buffer)[0]===513}return MS}const mk=!!(i_&&i_.indexOf("Chrome")>=0),i9=!!(i_&&i_.indexOf("Firefox")>=0),o9=!!(!mk&&i_&&i_.indexOf("Safari")>=0),s9=!!(i_&&i_.indexOf("Edg/")>=0),l9=!!(i_&&i_.indexOf("Android")>=0),gk=mu.performance&&typeof mu.performance.now=="function";class Ly{constructor(n){this._highResolution=gk&&n,this._startTime=this._now(),this._stopTime=-1}static create(n=!0){return new Ly(n)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?mu.performance.now():Date.now()}}const FS=!1,vk=!1;var Ay;(function(e){e.None=()=>Jv.None;function n(Z){if(vk){const{onListenerDidAdd:re}=Z,q=Xv.create();let P=0;Z.onListenerDidAdd=()=>{++P===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),q.print()),re==null||re()}}}function c(Z){return(re,q=null,P)=>{let M=!1,Q;return Q=Z(H=>{if(!M)return Q?Q.dispose():M=!0,re.call(q,H)},null,P),M&&Q.dispose(),Q}}e.once=c;function u(Z,re,q){return m((P,M=null,Q)=>Z(H=>P.call(M,re(H)),null,Q),q)}e.map=u;function g(Z,re,q){return m((P,M=null,Q)=>Z(H=>{re(H),P.call(M,H)},null,Q),q)}e.forEach=g;function p(Z,re,q){return m((P,M=null,Q)=>Z(H=>re(H)&&P.call(M,H),null,Q),q)}e.filter=p;function I(Z){return Z}e.signal=I;function V(...Z){return(re,q=null,P)=>nk(...Z.map(M=>M(Q=>re.call(q,Q),null,P)))}e.any=V;function L(Z,re,q,P){let M=q;return u(Z,Q=>(M=re(M,Q),M),P)}e.reduce=L;function m(Z,re){let q;const P={onFirstListenerAdd(){q=Z(M.fire,M)},onLastListenerRemove(){q==null||q.dispose()}};re||n(P);const M=new hp(P);return re==null||re.add(M),M.event}function y(Z,re,q=100,P=!1,M,Q){let H,w,d,B=0;const T={leakWarningThreshold:M,onFirstListenerAdd(){H=Z(h=>{B++,w=re(w,h),P&&!d&&(_.fire(w),w=void 0),clearTimeout(d),d=setTimeout(()=>{const R=w;w=void 0,d=void 0,(!P||B>1)&&_.fire(R),B=0},q)})},onLastListenerRemove(){H.dispose()}};Q||n(T);const _=new hp(T);return Q==null||Q.add(_),_.event}e.debounce=y;function j(Z,re=(P,M)=>P===M,q){let P=!0,M;return p(Z,Q=>{const H=P||!re(Q,M);return P=!1,M=Q,H},q)}e.latch=j;function te(Z,re,q){return[e.filter(Z,re,q),e.filter(Z,P=>!re(P),q)]}e.split=te;function E(Z,re=!1,q=[]){let P=q.slice(),M=Z(w=>{P?P.push(w):H.fire(w)});const Q=()=>{P==null||P.forEach(w=>H.fire(w)),P=null},H=new hp({onFirstListenerAdd(){M||(M=Z(w=>H.fire(w)))},onFirstListenerDidAdd(){P&&(re?setTimeout(Q):Q())},onLastListenerRemove(){M&&M.dispose(),M=null}});return H.event}e.buffer=E;class F{constructor(re){this.event=re,this.disposables=new jm}map(re){return new F(u(this.event,re,this.disposables))}forEach(re){return new F(g(this.event,re,this.disposables))}filter(re){return new F(p(this.event,re,this.disposables))}reduce(re,q){return new F(L(this.event,re,q,this.disposables))}latch(){return new F(j(this.event,void 0,this.disposables))}debounce(re,q=100,P=!1,M){return new F(y(this.event,re,q,P,M,this.disposables))}on(re,q,P){return this.event(re,q,P)}once(re,q,P){return c(this.event)(re,q,P)}dispose(){this.disposables.dispose()}}function $(Z){return new F(Z)}e.chain=$;function C(Z,re,q=P=>P){const P=(...w)=>H.fire(q(...w)),M=()=>Z.on(re,P),Q=()=>Z.removeListener(re,P),H=new hp({onFirstListenerAdd:M,onLastListenerRemove:Q});return H.event}e.fromNodeEventEmitter=C;function K(Z,re,q=P=>P){const P=(...w)=>H.fire(q(...w)),M=()=>Z.addEventListener(re,P),Q=()=>Z.removeEventListener(re,P),H=new hp({onFirstListenerAdd:M,onLastListenerRemove:Q});return H.event}e.fromDOMEventEmitter=K;function k(Z){return new Promise(re=>c(Z)(re))}e.toPromise=k;function X(Z,re){return re(void 0),Z(q=>re(q))}e.runAndSubscribe=X;function O(Z,re){let q=null;function P(Q){q==null||q.dispose(),q=new jm,re(Q,q)}P(void 0);const M=Z(Q=>P(Q));return by(()=>{M.dispose(),q==null||q.dispose()})}e.runAndSubscribeWithStore=O;class x{constructor(re,q){this.obs=re,this._counter=0,this._hasChanged=!1;const P={onFirstListenerAdd:()=>{re.addObserver(this)},onLastListenerRemove:()=>{re.removeObserver(this)}};q||n(P),this.emitter=new hp(P),q&&q.add(this.emitter)}beginUpdate(re){this._counter++}handleChange(re,q){this._hasChanged=!0}endUpdate(re){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function ie(Z,re){return new x(Z,re).emitter.event}e.fromObservable=ie})(Ay||(Ay={}));class Cy{constructor(n){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${n}_${Cy._idPool++}`}start(n){this._stopWatch=new Ly(!0),this._listenerCount=n}stop(){if(this._stopWatch){const n=this._stopWatch.elapsed();this._elapsedOverall+=n,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${n.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}Cy._idPool=0;let GS=-1;class hk{constructor(n,c=Math.random().toString(18).slice(2,5)){this.customThreshold=n,this.name=c,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(n,c){let u=GS;if(typeof this.customThreshold=="number"&&(u=this.customThreshold),u<=0||c<u)return;this._stacks||(this._stacks=new Map);const g=this._stacks.get(n.value)||0;if(this._stacks.set(n.value,g+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=u*.5;let p,I=0;for(const[V,L]of this._stacks)(!p||I<L)&&(p=V,I=L);console.warn(`[${this.name}] potential listener LEAK detected, having ${c} listeners already. MOST frequent listener (${I}):`),console.warn(p)}return()=>{const p=this._stacks.get(n.value)||0;this._stacks.set(n.value,p-1)}}}class Xv{constructor(n){this.value=n}static create(){var n;return new Xv((n=new Error().stack)!==null&&n!==void 0?n:"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class yk{constructor(n,c,u){this.callback=n,this.callbackThis=c,this.stack=u,this.subscription=new ak}invoke(n){this.callback.call(this.callbackThis,n)}}class hp{constructor(n){var c,u;this._disposed=!1,this._options=n,this._leakageMon=GS>0?new hk(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((c=this._options)===null||c===void 0)&&c._profName?new Cy(this._options._profName):void 0,this._deliveryQueue=(u=this._options)===null||u===void 0?void 0:u.deliveryQueue}dispose(){var n,c,u,g;if(!this._disposed){if(this._disposed=!0,this._listeners){if(FS){const p=Array.from(this._listeners);queueMicrotask(()=>{var I;for(const V of p)V.subscription.isset()&&(V.subscription.unset(),(I=V.stack)===null||I===void 0||I.print())})}this._listeners.clear()}(n=this._deliveryQueue)===null||n===void 0||n.clear(this),(u=(c=this._options)===null||c===void 0?void 0:c.onLastListenerRemove)===null||u===void 0||u.call(c),(g=this._leakageMon)===null||g===void 0||g.dispose()}}get event(){return this._event||(this._event=(n,c,u)=>{var g,p,I;this._listeners||(this._listeners=new Ey);const V=this._listeners.isEmpty();V&&((g=this._options)===null||g===void 0?void 0:g.onFirstListenerAdd)&&this._options.onFirstListenerAdd(this);let L,m;this._leakageMon&&this._listeners.size>=30&&(m=Xv.create(),L=this._leakageMon.check(m,this._listeners.size+1)),FS&&(m=m!=null?m:Xv.create());const y=new yk(n,c,m),j=this._listeners.push(y);V&&((p=this._options)===null||p===void 0?void 0:p.onFirstListenerDidAdd)&&this._options.onFirstListenerDidAdd(this),!((I=this._options)===null||I===void 0)&&I.onListenerDidAdd&&this._options.onListenerDidAdd(this,n,c);const te=y.subscription.set(()=>{L==null||L(),this._disposed||(j(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return u instanceof jm?u.add(te):Array.isArray(u)&&u.push(te),te}),this._event}fire(n){var c,u;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Ek);for(const g of this._listeners)this._deliveryQueue.push(this,g,n);(c=this._perfMon)===null||c===void 0||c.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(u=this._perfMon)===null||u===void 0||u.stop()}}}class bk{constructor(){this._queue=new Ey}get size(){return this._queue.size}push(n,c,u){this._queue.push(new Tk(n,c,u))}clear(n){const c=new Ey;for(const u of this._queue)u.emitter!==n&&c.push(u);this._queue=c}deliver(){for(;this._queue.size>0;){const n=this._queue.shift();try{n.listener.invoke(n.event)}catch(c){Wv(c)}}}}class Ek extends bk{clear(n){this._queue.clear()}}class Tk{constructor(n,c,u){this.emitter=n,this.listener=c,this.event=u}}class c9 extends null{constructor(n){super(n),this._isPaused=0,this._eventQueue=new LinkedList,this._mergeFn=n==null?void 0:n.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const n=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(n))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(n){this._listeners&&(this._isPaused!==0?this._eventQueue.push(n):super.fire(n))}}class u9 extends null{constructor(n){var c;super(n),this._delay=(c=n.delay)!==null&&c!==void 0?c:100}fire(n){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(n)}}class f9{constructor(){this.buffers=[]}wrapEvent(n){return(c,u,g)=>n(p=>{const I=this.buffers[this.buffers.length-1];I?I.push(()=>c.call(u,p)):c.call(u,p)},void 0,g)}bufferEvents(n){const c=[];this.buffers.push(c);const u=n();return this.buffers.pop(),c.forEach(g=>g()),u}}class d9{constructor(){this.listening=!1,this.inputEvent=Ay.None,this.inputEventListener=Disposable.None,this.emitter=new hp({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(n){this.inputEvent=n,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=n(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}function p9(e){return Array.isArray(e)}function Sk(e){return typeof e=="string"}function _9(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function m9(e){const n=Object.getPrototypeOf(Uint8Array);return typeof e=="object"&&e instanceof n}function g9(e){return typeof e=="number"&&!isNaN(e)}function v9(e){return!!e&&typeof e[Symbol.iterator]=="function"}function h9(e){return e===!0||e===!1}function Dk(e){return typeof e=="undefined"}function y9(e){return!ME(e)}function ME(e){return Dk(e)||e===null}function b9(e,n){if(!e)throw new Error(n?`Unexpected type, expected '${n}'`:"Unexpected type")}function E9(e){if(ME(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function Lk(e){return typeof e=="function"}function T9(e,n){const c=Math.min(e.length,n.length);for(let u=0;u<c;u++)Ak(e[u],n[u])}function Ak(e,n){if(Sk(n)){if(typeof e!==n)throw new Error(`argument does not match constraint: typeof ${n}`)}else if(Lk(n)){try{if(e instanceof n)return}catch(c){}if(!ME(e)&&e.constructor===n||n.length===1&&n.call(void 0,e)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Ck(e){let n=[],c=Object.getPrototypeOf(e);for(;Object.prototype!==c;)n=n.concat(Object.getOwnPropertyNames(c)),c=Object.getPrototypeOf(c);return n}function PE(e){const n=[];for(const c of Ck(e))typeof e[c]=="function"&&n.push(c);return n}function xk(e,n){const c=g=>function(){const p=Array.prototype.slice.call(arguments,0);return n(g,p)},u={};for(const g of e)u[g]=c(g);return u}function S9(e){return e===null?void 0:e}function Ik(e,n="Unreachable"){throw new Error(n)}class Nk{constructor(n){this.fn=n,this.lastCache=void 0,this.lastArgKey=void 0}get(n){const c=JSON.stringify(n);return this.lastArgKey!==c&&(this.lastArgKey=c,this.lastCache=this.fn(n)),this.lastCache}}class D9{constructor(n){this.fn=n,this._map=new Map}get cachedValues(){return this._map}get(n){if(this._map.has(n))return this._map.get(n);const c=this.fn(n);return this._map.set(n,c),c}}class BS{constructor(n){this.executor=n,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(n){this._error=n}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var US;function L9(e){return!e||typeof e!="string"?!0:e.trim().length===0}const kk=/{(\d+)}/g;function A9(e,...n){return n.length===0?e:e.replace(kk,function(c,u){const g=parseInt(u,10);return isNaN(g)||g<0||g>=n.length?c:n[g]})}function C9(e){return e.replace(/[<>&]/g,function(n){switch(n){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return n}})}function VS(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function x9(e,n=" "){const c=Ok(e,n);return Rk(c,n)}function Ok(e,n){if(!e||!n)return e;const c=n.length;if(c===0||e.length===0)return e;let u=0;for(;e.indexOf(n,u)===u;)u=u+c;return e.substring(u)}function Rk(e,n){if(!e||!n)return e;const c=n.length,u=e.length;if(c===0||u===0)return e;let g=u,p=-1;for(;p=e.lastIndexOf(n,g-1),!(p===-1||p+c!==g);){if(p===0)return"";g=p}return e.substring(0,g)}function I9(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function N9(e){return e.replace(/\*/g,"")}function k9(e,n,c={}){if(!e)throw new Error("Cannot create regex from empty string");n||(e=VS(e)),c.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e=e+"\\b"));let u="";return c.global&&(u+="g"),c.matchCase||(u+="i"),c.multiline&&(u+="m"),c.unicode&&(u+="u"),new RegExp(e,u)}function O9(e){return e.source==="^"||e.source==="^$"||e.source==="$"||e.source==="^\\s*$"?!1:!!(e.exec("")&&e.lastIndex===0)}function R9(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function wk(e){return e.split(/\r\n|\r|\n/)}function Mk(e){for(let n=0,c=e.length;n<c;n++){const u=e.charCodeAt(n);if(u!==32&&u!==9)return n}return-1}function w9(e,n=0,c=e.length){for(let u=n;u<c;u++){const g=e.charCodeAt(u);if(g!==32&&g!==9)return e.substring(n,u)}return e.substring(n,c)}function Pk(e,n=e.length-1){for(let c=n;c>=0;c--){const u=e.charCodeAt(c);if(u!==32&&u!==9)return c}return-1}function M9(e,n){return e<n?-1:e>n?1:0}function Fk(e,n,c=0,u=e.length,g=0,p=n.length){for(;c<u&&g<p;c++,g++){const L=e.charCodeAt(c),m=n.charCodeAt(g);if(L<m)return-1;if(L>m)return 1}const I=u-c,V=p-g;return I<V?-1:I>V?1:0}function P9(e,n){return FE(e,n,0,e.length,0,n.length)}function FE(e,n,c=0,u=e.length,g=0,p=n.length){for(;c<u&&g<p;c++,g++){let L=e.charCodeAt(c),m=n.charCodeAt(g);if(L===m)continue;if(L>=128||m>=128)return Fk(e.toLowerCase(),n.toLowerCase(),c,u,g,p);WS(L)&&(L-=32),WS(m)&&(m-=32);const y=L-m;if(y!==0)return y}const I=u-c,V=p-g;return I<V?-1:I>V?1:0}function F9(e){return e>=48&&e<=57}function WS(e){return e>=97&&e<=122}function jS(e){return e>=65&&e<=90}function G9(e,n){return e.length===n.length&&FE(e,n)===0}function B9(e,n){const c=n.length;return n.length>e.length?!1:FE(e,n,0,c)===0}function U9(e,n){const c=Math.min(e.length,n.length);let u;for(u=0;u<c;u++)if(e.charCodeAt(u)!==n.charCodeAt(u))return u;return c}function V9(e,n){const c=Math.min(e.length,n.length);let u;const g=e.length-1,p=n.length-1;for(u=0;u<c;u++)if(e.charCodeAt(g-u)!==n.charCodeAt(p-u))return u;return c}function Yv(e){return 55296<=e&&e<=56319}function Qv(e){return 56320<=e&&e<=57343}function GE(e,n){return(e-55296<<10)+(n-56320)+65536}function HS(e,n,c){const u=e.charCodeAt(c);if(Yv(u)&&c+1<n){const g=e.charCodeAt(c+1);if(Qv(g))return GE(u,g)}return u}function Gk(e,n){const c=e.charCodeAt(n-1);if(Qv(c)&&n>1){const u=e.charCodeAt(n-2);if(Yv(u))return GE(u,c)}return c}class BE{constructor(n,c=0){this._str=n,this._len=n.length,this._offset=c}get offset(){return this._offset}setOffset(n){this._offset=n}prevCodePoint(){const n=Gk(this._str,this._offset);return this._offset-=n>=65536?2:1,n}nextCodePoint(){const n=HS(this._str,this._len,this._offset);return this._offset+=n>=65536?2:1,n}eol(){return this._offset>=this._len}}class JS{constructor(n,c=0){this._iterator=new BE(n,c)}get offset(){return this._iterator.offset}nextGraphemeLength(){const n=om.getInstance(),c=this._iterator,u=c.offset;let g=n.getGraphemeBreakType(c.nextCodePoint());for(;!c.eol();){const p=c.offset,I=n.getGraphemeBreakType(c.nextCodePoint());if(KS(g,I)){c.setOffset(p);break}g=I}return c.offset-u}prevGraphemeLength(){const n=om.getInstance(),c=this._iterator,u=c.offset;let g=n.getGraphemeBreakType(c.prevCodePoint());for(;c.offset>0;){const p=c.offset,I=n.getGraphemeBreakType(c.prevCodePoint());if(KS(I,g)){c.setOffset(p);break}g=I}return u-c.offset}eol(){return this._iterator.eol()}}function Bk(e,n){return new JS(e,n).nextGraphemeLength()}function Uk(e,n){return new JS(e,n).prevGraphemeLength()}function W9(e,n){n>0&&Qv(e.charCodeAt(n))&&n--;const c=n+Bk(e,n);return[c-Uk(e,c),c]}const Vk=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function j9(e){return Vk.test(e)}const Wk=/^[\t\n\r\x20-\x7E]*$/;function jk(e){return Wk.test(e)}const Hk=/[\u2028\u2029]/;function H9(e){return Hk.test(e)}function J9(e){return e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Jk(e){return e>=127462&&e<=127487||e===8986||e===8987||e===9200||e===9203||e>=9728&&e<=10175||e===11088||e===11093||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129008||e>=129280&&e<=129535||e>=129648&&e<=129782}const K9=String.fromCharCode(65279);function z9(e){return!!(e&&e.length>0&&e.charCodeAt(0)===65279)}function q9(e,n=!1){return e?(n&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e):!1}function X9(e){return e=e%52,e<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}function KS(e,n){return e===0?n!==5&&n!==7:e===2&&n===3?!1:e===4||e===2||e===3||n===4||n===2||n===3?!0:!(e===8&&(n===8||n===9||n===11||n===12)||(e===11||e===9)&&(n===9||n===10)||(e===12||e===10)&&n===10||n===5||n===13||n===7||e===1||e===13&&n===14||e===6&&n===6)}class om{constructor(){this._data=Kk()}static getInstance(){return om._INSTANCE||(om._INSTANCE=new om),om._INSTANCE}getGraphemeBreakType(n){if(n<32)return n===10?3:n===13?2:4;if(n<127)return 0;const c=this._data,u=c.length/3;let g=1;for(;g<=u;)if(n<c[3*g])g=2*g;else if(n>c[3*g+1])g=2*g+1;else return c[3*g+2];return 0}}om._INSTANCE=null;function Kk(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Y9(e,n){if(e===0)return 0;const c=zk(e,n);if(c!==void 0)return c;const u=new BE(n,e);return u.prevCodePoint(),u.offset}function zk(e,n){const c=new BE(n,e);let u=c.prevCodePoint();for(;qk(u)||u===65039||u===8419;){if(c.offset===0)return;u=c.prevCodePoint()}if(!Jk(u))return;let g=c.offset;return g>0&&c.prevCodePoint()===8205&&(g=c.offset),g}function qk(e){return 127995<=e&&e<=127999}const Q9="\xA0";class Pd{constructor(n){this.confusableDictionary=n}static getInstance(n){return Pd.cache.get(Array.from(n))}static getLocales(){return Pd._locales.getValue()}isAmbiguous(n){return this.confusableDictionary.has(n)}getPrimaryConfusable(n){return this.confusableDictionary.get(n)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}US=Pd,Pd.ambiguousCharacterData=new BS(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Pd.cache=new Nk(e=>{function n(m){const y=new Map;for(let j=0;j<m.length;j+=2)y.set(m[j],m[j+1]);return y}function c(m,y){const j=new Map(m);for(const[te,E]of y)j.set(te,E);return j}function u(m,y){if(!m)return y;const j=new Map;for(const[te,E]of m)y.has(te)&&j.set(te,E);return j}const g=US.ambiguousCharacterData.getValue();let p=e.filter(m=>!m.startsWith("_")&&m in g);p.length===0&&(p=["_default"]);let I;for(const m of p){const y=n(g[m]);I=u(I,y)}const V=n(g._common),L=c(V,I);return new Pd(L)}),Pd._locales=new BS(()=>Object.keys(Pd.ambiguousCharacterData.getValue()).filter(e=>!e.startsWith("_")));class sm{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(sm.getRawData())),this._data}static isInvisibleCharacter(n){return sm.getData().has(n)}static get codePoints(){return sm.getData()}}sm._data=void 0;const zS="$initialize";let qS=!1;function Z9(e){!isWeb||(qS||(qS=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class Xk{constructor(n,c,u,g){this.vsWorker=n,this.req=c,this.method=u,this.args=g,this.type=0}}class XS{constructor(n,c,u,g){this.vsWorker=n,this.seq=c,this.res=u,this.err=g,this.type=1}}class Yk{constructor(n,c,u,g){this.vsWorker=n,this.req=c,this.eventName=u,this.arg=g,this.type=2}}class Qk{constructor(n,c,u){this.vsWorker=n,this.req=c,this.event=u,this.type=3}}class Zk{constructor(n,c){this.vsWorker=n,this.req=c,this.type=4}}class YS{constructor(n){this._workerId=-1,this._handler=n,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(n){this._workerId=n}sendMessage(n,c){const u=String(++this._lastSentReq);return new Promise((g,p)=>{this._pendingReplies[u]={resolve:g,reject:p},this._send(new Xk(this._workerId,u,n,c))})}listen(n,c){let u=null;const g=new hp({onFirstListenerAdd:()=>{u=String(++this._lastSentReq),this._pendingEmitters.set(u,g),this._send(new Yk(this._workerId,u,n,c))},onLastListenerRemove:()=>{this._pendingEmitters.delete(u),this._send(new Zk(this._workerId,u)),u=null}});return g.event}handleMessage(n){!n||!n.vsWorker||this._workerId!==-1&&n.vsWorker!==this._workerId||this._handleMessage(n)}_handleMessage(n){switch(n.type){case 1:return this._handleReplyMessage(n);case 0:return this._handleRequestMessage(n);case 2:return this._handleSubscribeEventMessage(n);case 3:return this._handleEventMessage(n);case 4:return this._handleUnsubscribeEventMessage(n)}}_handleReplyMessage(n){if(!this._pendingReplies[n.seq]){console.warn("Got reply to unknown seq");return}const c=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){let u=n.err;n.err.$isError&&(u=new Error,u.name=n.err.name,u.message=n.err.message,u.stack=n.err.stack),c.reject(u);return}c.resolve(n.res)}_handleRequestMessage(n){const c=n.req;this._handler.handleMessage(n.method,n.args).then(g=>{this._send(new XS(this._workerId,c,g,void 0))},g=>{g.detail instanceof Error&&(g.detail=SS(g.detail)),this._send(new XS(this._workerId,c,void 0,SS(g)))})}_handleSubscribeEventMessage(n){const c=n.req,u=this._handler.handleEvent(n.eventName,n.arg)(g=>{this._send(new Qk(this._workerId,c,g))});this._pendingEvents.set(c,u)}_handleEventMessage(n){if(!this._pendingEmitters.has(n.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(n.req).fire(n.event)}_handleUnsubscribeEventMessage(n){if(!this._pendingEvents.has(n.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(n.req).dispose(),this._pendingEvents.delete(n.req)}_send(n){const c=[];if(n.type===0)for(let u=0;u<n.args.length;u++)n.args[u]instanceof ArrayBuffer&&c.push(n.args[u]);else n.type===1&&n.res instanceof ArrayBuffer&&c.push(n.res);this._handler.sendMessage(n,c)}}class $9 extends null{constructor(n,c,u){super();let g=null;this._worker=this._register(n.create("vs/base/common/worker/simpleWorker",m=>{this._protocol.handleMessage(m)},m=>{g==null||g(m)})),this._protocol=new YS({sendMessage:(m,y)=>{this._worker.postMessage(m,y)},handleMessage:(m,y)=>{if(typeof u[m]!="function")return Promise.reject(new Error("Missing method "+m+" on main thread host."));try{return Promise.resolve(u[m].apply(u,y))}catch(j){return Promise.reject(j)}},handleEvent:(m,y)=>{if(VE(m)){const j=u[m].call(u,y);if(typeof j!="function")throw new Error(`Missing dynamic event ${m} on main thread host.`);return j}if(UE(m)){const j=u[m];if(typeof j!="function")throw new Error(`Missing event ${m} on main thread host.`);return j}throw new Error(`Malformed event name ${m}`)}}),this._protocol.setWorkerId(this._worker.getId());let p=null;typeof globals.require!="undefined"&&typeof globals.require.getConfig=="function"?p=globals.require.getConfig():typeof globals.requirejs!="undefined"&&(p=globals.requirejs.s.contexts._.config);const I=types.getAllMethodNames(u);this._onModuleLoaded=this._protocol.sendMessage(zS,[this._worker.getId(),JSON.parse(JSON.stringify(p)),c,I]);const V=(m,y)=>this._request(m,y),L=(m,y)=>this._protocol.listen(m,y);this._lazyProxy=new Promise((m,y)=>{g=y,this._onModuleLoaded.then(j=>{m(QS(j,V,L))},j=>{y(j),this._onError("Worker failed to load "+c,j)})})}getProxyObject(){return this._lazyProxy}_request(n,c){return new Promise((u,g)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(n,c).then(u,g)},g)})}_onError(n,c){console.error(n),console.info(c)}}function UE(e){return e[0]==="o"&&e[1]==="n"&&jS(e.charCodeAt(2))}function VE(e){return/^onDynamic/.test(e)&&jS(e.charCodeAt(9))}function QS(e,n,c){const u=I=>function(){const V=Array.prototype.slice.call(arguments,0);return n(I,V)},g=I=>function(V){return c(I,V)},p={};for(const I of e){if(VE(I)){p[I]=g(I);continue}if(UE(I)){p[I]=c(I,void 0);continue}p[I]=u(I)}return p}class ZS{constructor(n,c){this._requestHandlerFactory=c,this._requestHandler=null,this._protocol=new YS({sendMessage:(u,g)=>{n(u,g)},handleMessage:(u,g)=>this._handleMessage(u,g),handleEvent:(u,g)=>this._handleEvent(u,g)})}onmessage(n){this._protocol.handleMessage(n)}_handleMessage(n,c){if(n===zS)return this.initialize(c[0],c[1],c[2],c[3]);if(!this._requestHandler||typeof this._requestHandler[n]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+n));try{return Promise.resolve(this._requestHandler[n].apply(this._requestHandler,c))}catch(u){return Promise.reject(u)}}_handleEvent(n,c){if(!this._requestHandler)throw new Error("Missing requestHandler");if(VE(n)){const u=this._requestHandler[n].call(this._requestHandler,c);if(typeof u!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return u}if(UE(n)){const u=this._requestHandler[n];if(typeof u!="function")throw new Error(`Missing event ${n} on request handler.`);return u}throw new Error(`Malformed event name ${n}`)}initialize(n,c,u,g){this._protocol.setWorkerId(n);const V=QS(g,(L,m)=>this._protocol.sendMessage(L,m),(L,m)=>this._protocol.listen(L,m));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(V),Promise.resolve(PE(this._requestHandler))):(c&&(typeof c.baseUrl!="undefined"&&delete c.baseUrl,typeof c.paths!="undefined"&&typeof c.paths.vs!="undefined"&&delete c.paths.vs,typeof c.trustedTypesPolicy!==void 0&&delete c.trustedTypesPolicy,c.catchError=!0,mu.require.config(c)),new Promise((L,m)=>{const y=mu.require;y([u],j=>{if(this._requestHandler=j.create(V),!this._requestHandler){m(new Error("No RequestHandler!"));return}L(PE(this._requestHandler))},m)}))}}function eG(e){return new ZS(e,null)}class lm{constructor(n,c,u,g){this.originalStart=n,this.originalLength=c,this.modifiedStart=u,this.modifiedLength=g}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function rG(e){return WE(e,0)}function WE(e,n){switch(typeof e){case"object":return e===null?M_(349,n):Array.isArray(e)?eO(e,n):rO(e,n);case"string":return jE(e,n);case"boolean":return $k(e,n);case"number":return M_(e,n);case"undefined":return M_(937,n);default:return M_(617,n)}}function M_(e,n){return(n<<5)-n+e|0}function $k(e,n){return M_(e?433:863,n)}function jE(e,n){n=M_(149417,n);for(let c=0,u=e.length;c<u;c++)n=M_(e.charCodeAt(c),n);return n}function eO(e,n){return n=M_(104579,n),e.reduce((c,u)=>WE(u,c),n)}function rO(e,n){return n=M_(181387,n),Object.keys(e).sort().reduce((c,u)=>(c=jE(u,c),WE(e[u],c)),n)}function HE(e,n,c=32){const u=c-n,g=~((1<<u)-1);return(e<<n|(g&e)>>>u)>>>0}function $S(e,n=0,c=e.byteLength,u=0){for(let g=0;g<c;g++)e[n+g]=u}function tO(e,n,c="0"){for(;e.length<n;)e=c+e;return e}function Zv(e,n=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(c=>c.toString(16).padStart(2,"0")).join(""):tO((e>>>0).toString(16),n/4)}class JE{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(n){const c=n.length;if(c===0)return;const u=this._buff;let g=this._buffLen,p=this._leftoverHighSurrogate,I,V;for(p!==0?(I=p,V=-1,p=0):(I=n.charCodeAt(0),V=0);;){let L=I;if(Yv(I))if(V+1<c){const m=n.charCodeAt(V+1);Qv(m)?(V++,L=GE(I,m)):L=65533}else{p=I;break}else Qv(I)&&(L=65533);if(g=this._push(u,g,L),V++,V<c)I=n.charCodeAt(V);else break}this._buffLen=g,this._leftoverHighSurrogate=p}_push(n,c,u){return u<128?n[c++]=u:u<2048?(n[c++]=192|(u&1984)>>>6,n[c++]=128|(u&63)>>>0):u<65536?(n[c++]=224|(u&61440)>>>12,n[c++]=128|(u&4032)>>>6,n[c++]=128|(u&63)>>>0):(n[c++]=240|(u&1835008)>>>18,n[c++]=128|(u&258048)>>>12,n[c++]=128|(u&4032)>>>6,n[c++]=128|(u&63)>>>0),c>=64&&(this._step(),c-=64,this._totalLen+=64,n[0]=n[64],n[1]=n[65],n[2]=n[66]),c}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Zv(this._h0)+Zv(this._h1)+Zv(this._h2)+Zv(this._h3)+Zv(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,$S(this._buff,this._buffLen),this._buffLen>56&&(this._step(),$S(this._buff));const n=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(n/4294967296),!1),this._buffDV.setUint32(60,n%4294967296,!1),this._step()}_step(){const n=JE._bigBlock32,c=this._buffDV;for(let j=0;j<64;j+=4)n.setUint32(j,c.getUint32(j,!1),!1);for(let j=64;j<320;j+=4)n.setUint32(j,HE(n.getUint32(j-12,!1)^n.getUint32(j-32,!1)^n.getUint32(j-56,!1)^n.getUint32(j-64,!1),1),!1);let u=this._h0,g=this._h1,p=this._h2,I=this._h3,V=this._h4,L,m,y;for(let j=0;j<80;j++)j<20?(L=g&p|~g&I,m=1518500249):j<40?(L=g^p^I,m=1859775393):j<60?(L=g&p|g&I|p&I,m=2400959708):(L=g^p^I,m=3395469782),y=HE(u,5)+L+V+m+n.getUint32(j*4,!1)&4294967295,V=I,I=p,p=HE(g,30),g=u,u=y;this._h0=this._h0+u&4294967295,this._h1=this._h1+g&4294967295,this._h2=this._h2+p&4294967295,this._h3=this._h3+I&4294967295,this._h4=this._h4+V&4294967295}}JE._bigBlock32=new DataView(new ArrayBuffer(320));class eD{constructor(n){this.source=n}getElements(){const n=this.source,c=new Int32Array(n.length);for(let u=0,g=n.length;u<g;u++)c[u]=n.charCodeAt(u);return c}}function nO(e,n,c){return new cm(new eD(e),new eD(n)).ComputeDiff(c).changes}class Fg{static Assert(n,c){if(!n)throw new Error(c)}}class Gg{static Copy(n,c,u,g,p){for(let I=0;I<p;I++)u[g+I]=n[c+I]}static Copy2(n,c,u,g,p){for(let I=0;I<p;I++)u[g+I]=n[c+I]}}class rD{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new lm(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(n,c){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,c),this.m_originalCount++}AddModifiedElement(n,c){this.m_originalStart=Math.min(this.m_originalStart,n),this.m_modifiedStart=Math.min(this.m_modifiedStart,c),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 cm{constructor(n,c,u=null){this.ContinueProcessingPredicate=u,this._originalSequence=n,this._modifiedSequence=c;const[g,p,I]=cm._getElements(n),[V,L,m]=cm._getElements(c);this._hasStrings=I&&m,this._originalStringElements=g,this._originalElementsOrHash=p,this._modifiedStringElements=V,this._modifiedElementsOrHash=L,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(n){return n.length>0&&typeof n[0]=="string"}static _getElements(n){const c=n.getElements();if(cm._isStringArray(c)){const u=new Int32Array(c.length);for(let g=0,p=c.length;g<p;g++)u[g]=jE(c[g],0);return[c,u,!0]}return c instanceof Int32Array?[[],c,!1]:[[],new Int32Array(c),!1]}ElementsAreEqual(n,c){return this._originalElementsOrHash[n]!==this._modifiedElementsOrHash[c]?!1:this._hasStrings?this._originalStringElements[n]===this._modifiedStringElements[c]:!0}ElementsAreStrictEqual(n,c){if(!this.ElementsAreEqual(n,c))return!1;const u=cm._getStrictElement(this._originalSequence,n),g=cm._getStrictElement(this._modifiedSequence,c);return u===g}static _getStrictElement(n,c){return typeof n.getStrictElement=="function"?n.getStrictElement(c):null}OriginalElementsAreEqual(n,c){return this._originalElementsOrHash[n]!==this._originalElementsOrHash[c]?!1:this._hasStrings?this._originalStringElements[n]===this._originalStringElements[c]:!0}ModifiedElementsAreEqual(n,c){return this._modifiedElementsOrHash[n]!==this._modifiedElementsOrHash[c]?!1:this._hasStrings?this._modifiedStringElements[n]===this._modifiedStringElements[c]:!0}ComputeDiff(n){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,n)}_ComputeDiff(n,c,u,g,p){const I=[!1];let V=this.ComputeDiffRecursive(n,c,u,g,I);return p&&(V=this.PrettifyChanges(V)),{quitEarly:I[0],changes:V}}ComputeDiffRecursive(n,c,u,g,p){for(p[0]=!1;n<=c&&u<=g&&this.ElementsAreEqual(n,u);)n++,u++;for(;c>=n&&g>=u&&this.ElementsAreEqual(c,g);)c--,g--;if(n>c||u>g){let j;return u<=g?(Fg.Assert(n===c+1,"originalStart should only be one more than originalEnd"),j=[new lm(n,0,u,g-u+1)]):n<=c?(Fg.Assert(u===g+1,"modifiedStart should only be one more than modifiedEnd"),j=[new lm(n,c-n+1,u,0)]):(Fg.Assert(n===c+1,"originalStart should only be one more than originalEnd"),Fg.Assert(u===g+1,"modifiedStart should only be one more than modifiedEnd"),j=[]),j}const I=[0],V=[0],L=this.ComputeRecursionPoint(n,c,u,g,I,V,p),m=I[0],y=V[0];if(L!==null)return L;if(!p[0]){const j=this.ComputeDiffRecursive(n,m,u,y,p);let te=[];return p[0]?te=[new lm(m+1,c-(m+1)+1,y+1,g-(y+1)+1)]:te=this.ComputeDiffRecursive(m+1,c,y+1,g,p),this.ConcatenateChanges(j,te)}return[new lm(n,c-n+1,u,g-u+1)]}WALKTRACE(n,c,u,g,p,I,V,L,m,y,j,te,E,F,$,C,K,k){let X=null,O=null,x=new rD,ie=c,Z=u,re=E[0]-C[0]-g,q=-1073741824,P=this.m_forwardHistory.length-1;do{const M=re+n;M===ie||M<Z&&m[M-1]<m[M+1]?(j=m[M+1],F=j-re-g,j<q&&x.MarkNextChange(),q=j,x.AddModifiedElement(j+1,F),re=M+1-n):(j=m[M-1]+1,F=j-re-g,j<q&&x.MarkNextChange(),q=j-1,x.AddOriginalElement(j,F+1),re=M-1-n),P>=0&&(m=this.m_forwardHistory[P],n=m[0],ie=1,Z=m.length-1)}while(--P>=-1);if(X=x.getReverseChanges(),k[0]){let M=E[0]+1,Q=C[0]+1;if(X!==null&&X.length>0){const H=X[X.length-1];M=Math.max(M,H.getOriginalEnd()),Q=Math.max(Q,H.getModifiedEnd())}O=[new lm(M,te-M+1,Q,$-Q+1)]}else{x=new rD,ie=I,Z=V,re=E[0]-C[0]-L,q=1073741824,P=K?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const M=re+p;M===ie||M<Z&&y[M-1]>=y[M+1]?(j=y[M+1]-1,F=j-re-L,j>q&&x.MarkNextChange(),q=j+1,x.AddOriginalElement(j+1,F+1),re=M+1-p):(j=y[M-1],F=j-re-L,j>q&&x.MarkNextChange(),q=j,x.AddModifiedElement(j+1,F+1),re=M-1-p),P>=0&&(y=this.m_reverseHistory[P],p=y[0],ie=1,Z=y.length-1)}while(--P>=-1);O=x.getChanges()}return this.ConcatenateChanges(X,O)}ComputeRecursionPoint(n,c,u,g,p,I,V){let L=0,m=0,y=0,j=0,te=0,E=0;n--,u--,p[0]=0,I[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const F=c-n+(g-u),$=F+1,C=new Int32Array($),K=new Int32Array($),k=g-u,X=c-n,O=n-u,x=c-g,Z=(X-k)%2===0;C[k]=n,K[X]=c,V[0]=!1;for(let re=1;re<=F/2+1;re++){let q=0,P=0;y=this.ClipDiagonalBound(k-re,re,k,$),j=this.ClipDiagonalBound(k+re,re,k,$);for(let Q=y;Q<=j;Q+=2){Q===y||Q<j&&C[Q-1]<C[Q+1]?L=C[Q+1]:L=C[Q-1]+1,m=L-(Q-k)-O;const H=L;for(;L<c&&m<g&&this.ElementsAreEqual(L+1,m+1);)L++,m++;if(C[Q]=L,L+m>q+P&&(q=L,P=m),!Z&&Math.abs(Q-X)<=re-1&&L>=K[Q])return p[0]=L,I[0]=m,H<=K[Q]&&1447>0&&re<=1448?this.WALKTRACE(k,y,j,O,X,te,E,x,C,K,L,c,p,m,g,I,Z,V):null}const M=(q-n+(P-u)-re)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(q,M))return V[0]=!0,p[0]=q,I[0]=P,M>0&&1447>0&&re<=1448?this.WALKTRACE(k,y,j,O,X,te,E,x,C,K,L,c,p,m,g,I,Z,V):(n++,u++,[new lm(n,c-n+1,u,g-u+1)]);te=this.ClipDiagonalBound(X-re,re,X,$),E=this.ClipDiagonalBound(X+re,re,X,$);for(let Q=te;Q<=E;Q+=2){Q===te||Q<E&&K[Q-1]>=K[Q+1]?L=K[Q+1]-1:L=K[Q-1],m=L-(Q-X)-x;const H=L;for(;L>n&&m>u&&this.ElementsAreEqual(L,m);)L--,m--;if(K[Q]=L,Z&&Math.abs(Q-k)<=re&&L<=C[Q])return p[0]=L,I[0]=m,H>=C[Q]&&1447>0&&re<=1448?this.WALKTRACE(k,y,j,O,X,te,E,x,C,K,L,c,p,m,g,I,Z,V):null}if(re<=1447){let Q=new Int32Array(j-y+2);Q[0]=k-y+1,Gg.Copy2(C,y,Q,1,j-y+1),this.m_forwardHistory.push(Q),Q=new Int32Array(E-te+2),Q[0]=X-te+1,Gg.Copy2(K,te,Q,1,E-te+1),this.m_reverseHistory.push(Q)}}return this.WALKTRACE(k,y,j,O,X,te,E,x,C,K,L,c,p,m,g,I,Z,V)}PrettifyChanges(n){for(let c=0;c<n.length;c++){const u=n[c],g=c<n.length-1?n[c+1].originalStart:this._originalElementsOrHash.length,p=c<n.length-1?n[c+1].modifiedStart:this._modifiedElementsOrHash.length,I=u.originalLength>0,V=u.modifiedLength>0;for(;u.originalStart+u.originalLength<g&&u.modifiedStart+u.modifiedLength<p&&(!I||this.OriginalElementsAreEqual(u.originalStart,u.originalStart+u.originalLength))&&(!V||this.ModifiedElementsAreEqual(u.modifiedStart,u.modifiedStart+u.modifiedLength));){const m=this.ElementsAreStrictEqual(u.originalStart,u.modifiedStart);if(this.ElementsAreStrictEqual(u.originalStart+u.originalLength,u.modifiedStart+u.modifiedLength)&&!m)break;u.originalStart++,u.modifiedStart++}const L=[null];if(c<n.length-1&&this.ChangesOverlap(n[c],n[c+1],L)){n[c]=L[0],n.splice(c+1,1),c--;continue}}for(let c=n.length-1;c>=0;c--){const u=n[c];let g=0,p=0;if(c>0){const j=n[c-1];g=j.originalStart+j.originalLength,p=j.modifiedStart+j.modifiedLength}const I=u.originalLength>0,V=u.modifiedLength>0;let L=0,m=this._boundaryScore(u.originalStart,u.originalLength,u.modifiedStart,u.modifiedLength);for(let j=1;;j++){const te=u.originalStart-j,E=u.modifiedStart-j;if(te<g||E<p||I&&!this.OriginalElementsAreEqual(te,te+u.originalLength)||V&&!this.ModifiedElementsAreEqual(E,E+u.modifiedLength))break;const $=(te===g&&E===p?5:0)+this._boundaryScore(te,u.originalLength,E,u.modifiedLength);$>m&&(m=$,L=j)}u.originalStart-=L,u.modifiedStart-=L;const y=[null];if(c>0&&this.ChangesOverlap(n[c-1],n[c],y)){n[c-1]=y[0],n.splice(c,1),c++;continue}}if(this._hasStrings)for(let c=1,u=n.length;c<u;c++){const g=n[c-1],p=n[c],I=p.originalStart-g.originalStart-g.originalLength,V=g.originalStart,L=p.originalStart+p.originalLength,m=L-V,y=g.modifiedStart,j=p.modifiedStart+p.modifiedLength,te=j-y;if(I<5&&m<20&&te<20){const E=this._findBetterContiguousSequence(V,m,y,te,I);if(E){const[F,$]=E;(F!==g.originalStart+g.originalLength||$!==g.modifiedStart+g.modifiedLength)&&(g.originalLength=F-g.originalStart,g.modifiedLength=$-g.modifiedStart,p.originalStart=F+I,p.modifiedStart=$+I,p.originalLength=L-p.originalStart,p.modifiedLength=j-p.modifiedStart)}}}return n}_findBetterContiguousSequence(n,c,u,g,p){if(c<p||g<p)return null;const I=n+c-p+1,V=u+g-p+1;let L=0,m=0,y=0;for(let j=n;j<I;j++)for(let te=u;te<V;te++){const E=this._contiguousSequenceScore(j,te,p);E>0&&E>L&&(L=E,m=j,y=te)}return L>0?[m,y]:null}_contiguousSequenceScore(n,c,u){let g=0;for(let p=0;p<u;p++){if(!this.ElementsAreEqual(n+p,c+p))return 0;g+=this._originalStringElements[n+p].length}return g}_OriginalIsBoundary(n){return n<=0||n>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[n])}_OriginalRegionIsBoundary(n,c){if(this._OriginalIsBoundary(n)||this._OriginalIsBoundary(n-1))return!0;if(c>0){const u=n+c;if(this._OriginalIsBoundary(u-1)||this._OriginalIsBoundary(u))return!0}return!1}_ModifiedIsBoundary(n){return n<=0||n>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[n])}_ModifiedRegionIsBoundary(n,c){if(this._ModifiedIsBoundary(n)||this._ModifiedIsBoundary(n-1))return!0;if(c>0){const u=n+c;if(this._ModifiedIsBoundary(u-1)||this._ModifiedIsBoundary(u))return!0}return!1}_boundaryScore(n,c,u,g){const p=this._OriginalRegionIsBoundary(n,c)?1:0,I=this._ModifiedRegionIsBoundary(u,g)?1:0;return p+I}ConcatenateChanges(n,c){const u=[];if(n.length===0||c.length===0)return c.length>0?c:n;if(this.ChangesOverlap(n[n.length-1],c[0],u)){const g=new Array(n.length+c.length-1);return Gg.Copy(n,0,g,0,n.length-1),g[n.length-1]=u[0],Gg.Copy(c,1,g,n.length,c.length-1),g}else{const g=new Array(n.length+c.length);return Gg.Copy(n,0,g,0,n.length),Gg.Copy(c,0,g,n.length,c.length),g}}ChangesOverlap(n,c,u){if(Fg.Assert(n.originalStart<=c.originalStart,"Left change is not less than or equal to right change"),Fg.Assert(n.modifiedStart<=c.modifiedStart,"Left change is not less than or equal to right change"),n.originalStart+n.originalLength>=c.originalStart||n.modifiedStart+n.modifiedLength>=c.modifiedStart){const g=n.originalStart;let p=n.originalLength;const I=n.modifiedStart;let V=n.modifiedLength;return n.originalStart+n.originalLength>=c.originalStart&&(p=c.originalStart+c.originalLength-n.originalStart),n.modifiedStart+n.modifiedLength>=c.modifiedStart&&(V=c.modifiedStart+c.modifiedLength-n.modifiedStart),u[0]=new lm(g,p,I,V),!0}else return u[0]=null,!1}ClipDiagonalBound(n,c,u,g){if(n>=0&&n<g)return n;const p=u,I=g-u-1,V=c%2===0;if(n<0){const L=p%2===0;return V===L?0:1}else{const L=I%2===0;return V===L?g-1:g-2}}}let Bg;if(typeof mu.vscode!="undefined"&&typeof mu.vscode.process!="undefined"){const e=mu.vscode.process;Bg={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process!="undefined"?Bg={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Bg={get platform(){return qv?"win32":pk?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const KE=Bg.cwd,aO=Bg.env,Hm=Bg.platform,iO=65,oO=97,sO=90,lO=122,um=46,Kc=47,Cf=92,fm=58,cO=63;class tD extends Error{constructor(n,c,u){let g;typeof c=="string"&&c.indexOf("not ")===0?(g="must not be",c=c.replace(/^not /,"")):g="must be";const p=n.indexOf(".")!==-1?"property":"argument";let I=`The "${n}" ${p} ${g} of type ${c}`;I+=`. Received type ${typeof u}`,super(I),this.code="ERR_INVALID_ARG_TYPE"}}function Ql(e,n){if(typeof e!="string")throw new tD(n,"string",e)}function Zo(e){return e===Kc||e===Cf}function zE(e){return e===Kc}function dm(e){return e>=iO&&e<=sO||e>=oO&&e<=lO}function xy(e,n,c,u){let g="",p=0,I=-1,V=0,L=0;for(let m=0;m<=e.length;++m){if(m<e.length)L=e.charCodeAt(m);else{if(u(L))break;L=Kc}if(u(L)){if(!(I===m-1||V===1))if(V===2){if(g.length<2||p!==2||g.charCodeAt(g.length-1)!==um||g.charCodeAt(g.length-2)!==um){if(g.length>2){const y=g.lastIndexOf(c);y===-1?(g="",p=0):(g=g.slice(0,y),p=g.length-1-g.lastIndexOf(c)),I=m,V=0;continue}else if(g.length!==0){g="",p=0,I=m,V=0;continue}}n&&(g+=g.length>0?`${c}..`:"..",p=2)}else g.length>0?g+=`${c}${e.slice(I+1,m)}`:g=e.slice(I+1,m),p=m-I-1;I=m,V=0}else L===um&&V!==-1?++V:V=-1}return g}function nD(e,n){if(n===null||typeof n!="object")throw new tD("pathObject","Object",n);const c=n.dir||n.root,u=n.base||`${n.name||""}${n.ext||""}`;return c?c===n.root?`${c}${u}`:`${c}${e}${u}`:u}const rf={resolve(...e){let n="",c="",u=!1;for(let g=e.length-1;g>=-1;g--){let p;if(g>=0){if(p=e[g],Ql(p,"path"),p.length===0)continue}else n.length===0?p=KE():(p=aO[`=${n}`]||KE(),(p===void 0||p.slice(0,2).toLowerCase()!==n.toLowerCase()&&p.charCodeAt(2)===Cf)&&(p=`${n}\\`));const I=p.length;let V=0,L="",m=!1;const y=p.charCodeAt(0);if(I===1)Zo(y)&&(V=1,m=!0);else if(Zo(y))if(m=!0,Zo(p.charCodeAt(1))){let j=2,te=j;for(;j<I&&!Zo(p.charCodeAt(j));)j++;if(j<I&&j!==te){const E=p.slice(te,j);for(te=j;j<I&&Zo(p.charCodeAt(j));)j++;if(j<I&&j!==te){for(te=j;j<I&&!Zo(p.charCodeAt(j));)j++;(j===I||j!==te)&&(L=`\\\\${E}\\${p.slice(te,j)}`,V=j)}}}else V=1;else dm(y)&&p.charCodeAt(1)===fm&&(L=p.slice(0,2),V=2,I>2&&Zo(p.charCodeAt(2))&&(m=!0,V=3));if(L.length>0)if(n.length>0){if(L.toLowerCase()!==n.toLowerCase())continue}else n=L;if(u){if(n.length>0)break}else if(c=`${p.slice(V)}\\${c}`,u=m,m&&n.length>0)break}return c=xy(c,!u,"\\",Zo),u?`${n}\\${c}`:`${n}${c}`||"."},normalize(e){Ql(e,"path");const n=e.length;if(n===0)return".";let c=0,u,g=!1;const p=e.charCodeAt(0);if(n===1)return zE(p)?"\\":e;if(Zo(p))if(g=!0,Zo(e.charCodeAt(1))){let V=2,L=V;for(;V<n&&!Zo(e.charCodeAt(V));)V++;if(V<n&&V!==L){const m=e.slice(L,V);for(L=V;V<n&&Zo(e.charCodeAt(V));)V++;if(V<n&&V!==L){for(L=V;V<n&&!Zo(e.charCodeAt(V));)V++;if(V===n)return`\\\\${m}\\${e.slice(L)}\\`;V!==L&&(u=`\\\\${m}\\${e.slice(L,V)}`,c=V)}}}else c=1;else dm(p)&&e.charCodeAt(1)===fm&&(u=e.slice(0,2),c=2,n>2&&Zo(e.charCodeAt(2))&&(g=!0,c=3));let I=c<n?xy(e.slice(c),!g,"\\",Zo):"";return I.length===0&&!g&&(I="."),I.length>0&&Zo(e.charCodeAt(n-1))&&(I+="\\"),u===void 0?g?`\\${I}`:I:g?`${u}\\${I}`:`${u}${I}`},isAbsolute(e){Ql(e,"path");const n=e.length;if(n===0)return!1;const c=e.charCodeAt(0);return Zo(c)||n>2&&dm(c)&&e.charCodeAt(1)===fm&&Zo(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let n,c;for(let p=0;p<e.length;++p){const I=e[p];Ql(I,"path"),I.length>0&&(n===void 0?n=c=I:n+=`\\${I}`)}if(n===void 0)return".";let u=!0,g=0;if(typeof c=="string"&&Zo(c.charCodeAt(0))){++g;const p=c.length;p>1&&Zo(c.charCodeAt(1))&&(++g,p>2&&(Zo(c.charCodeAt(2))?++g:u=!1))}if(u){for(;g<n.length&&Zo(n.charCodeAt(g));)g++;g>=2&&(n=`\\${n.slice(g)}`)}return rf.normalize(n)},relative(e,n){if(Ql(e,"from"),Ql(n,"to"),e===n)return"";const c=rf.resolve(e),u=rf.resolve(n);if(c===u||(e=c.toLowerCase(),n=u.toLowerCase(),e===n))return"";let g=0;for(;g<e.length&&e.charCodeAt(g)===Cf;)g++;let p=e.length;for(;p-1>g&&e.charCodeAt(p-1)===Cf;)p--;const I=p-g;let V=0;for(;V<n.length&&n.charCodeAt(V)===Cf;)V++;let L=n.length;for(;L-1>V&&n.charCodeAt(L-1)===Cf;)L--;const m=L-V,y=I<m?I:m;let j=-1,te=0;for(;te<y;te++){const F=e.charCodeAt(g+te);if(F!==n.charCodeAt(V+te))break;F===Cf&&(j=te)}if(te!==y){if(j===-1)return u}else{if(m>y){if(n.charCodeAt(V+te)===Cf)return u.slice(V+te+1);if(te===2)return u.slice(V+te)}I>y&&(e.charCodeAt(g+te)===Cf?j=te:te===2&&(j=3)),j===-1&&(j=0)}let E="";for(te=g+j+1;te<=p;++te)(te===p||e.charCodeAt(te)===Cf)&&(E+=E.length===0?"..":"\\..");return V+=j,E.length>0?`${E}${u.slice(V,L)}`:(u.charCodeAt(V)===Cf&&++V,u.slice(V,L))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const n=rf.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===Cf){if(n.charCodeAt(1)===Cf){const c=n.charCodeAt(2);if(c!==cO&&c!==um)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(dm(n.charCodeAt(0))&&n.charCodeAt(1)===fm&&n.charCodeAt(2)===Cf)return`\\\\?\\${n}`;return e},dirname(e){Ql(e,"path");const n=e.length;if(n===0)return".";let c=-1,u=0;const g=e.charCodeAt(0);if(n===1)return Zo(g)?e:".";if(Zo(g)){if(c=u=1,Zo(e.charCodeAt(1))){let V=2,L=V;for(;V<n&&!Zo(e.charCodeAt(V));)V++;if(V<n&&V!==L){for(L=V;V<n&&Zo(e.charCodeAt(V));)V++;if(V<n&&V!==L){for(L=V;V<n&&!Zo(e.charCodeAt(V));)V++;if(V===n)return e;V!==L&&(c=u=V+1)}}}}else dm(g)&&e.charCodeAt(1)===fm&&(c=n>2&&Zo(e.charCodeAt(2))?3:2,u=c);let p=-1,I=!0;for(let V=n-1;V>=u;--V)if(Zo(e.charCodeAt(V))){if(!I){p=V;break}}else I=!1;if(p===-1){if(c===-1)return".";p=c}return e.slice(0,p)},basename(e,n){n!==void 0&&Ql(n,"ext"),Ql(e,"path");let c=0,u=-1,g=!0,p;if(e.length>=2&&dm(e.charCodeAt(0))&&e.charCodeAt(1)===fm&&(c=2),n!==void 0&&n.length>0&&n.length<=e.length){if(n===e)return"";let I=n.length-1,V=-1;for(p=e.length-1;p>=c;--p){const L=e.charCodeAt(p);if(Zo(L)){if(!g){c=p+1;break}}else V===-1&&(g=!1,V=p+1),I>=0&&(L===n.charCodeAt(I)?--I===-1&&(u=p):(I=-1,u=V))}return c===u?u=V:u===-1&&(u=e.length),e.slice(c,u)}for(p=e.length-1;p>=c;--p)if(Zo(e.charCodeAt(p))){if(!g){c=p+1;break}}else u===-1&&(g=!1,u=p+1);return u===-1?"":e.slice(c,u)},extname(e){Ql(e,"path");let n=0,c=-1,u=0,g=-1,p=!0,I=0;e.length>=2&&e.charCodeAt(1)===fm&&dm(e.charCodeAt(0))&&(n=u=2);for(let V=e.length-1;V>=n;--V){const L=e.charCodeAt(V);if(Zo(L)){if(!p){u=V+1;break}continue}g===-1&&(p=!1,g=V+1),L===um?c===-1?c=V:I!==1&&(I=1):c!==-1&&(I=-1)}return c===-1||g===-1||I===0||I===1&&c===g-1&&c===u+1?"":e.slice(c,g)},format:nD.bind(null,"\\"),parse(e){Ql(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;const c=e.length;let u=0,g=e.charCodeAt(0);if(c===1)return Zo(g)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(Zo(g)){if(u=1,Zo(e.charCodeAt(1))){let j=2,te=j;for(;j<c&&!Zo(e.charCodeAt(j));)j++;if(j<c&&j!==te){for(te=j;j<c&&Zo(e.charCodeAt(j));)j++;if(j<c&&j!==te){for(te=j;j<c&&!Zo(e.charCodeAt(j));)j++;j===c?u=j:j!==te&&(u=j+1)}}}}else if(dm(g)&&e.charCodeAt(1)===fm){if(c<=2)return n.root=n.dir=e,n;if(u=2,Zo(e.charCodeAt(2))){if(c===3)return n.root=n.dir=e,n;u=3}}u>0&&(n.root=e.slice(0,u));let p=-1,I=u,V=-1,L=!0,m=e.length-1,y=0;for(;m>=u;--m){if(g=e.charCodeAt(m),Zo(g)){if(!L){I=m+1;break}continue}V===-1&&(L=!1,V=m+1),g===um?p===-1?p=m:y!==1&&(y=1):p!==-1&&(y=-1)}return V!==-1&&(p===-1||y===0||y===1&&p===V-1&&p===I+1?n.base=n.name=e.slice(I,V):(n.name=e.slice(I,p),n.base=e.slice(I,V),n.ext=e.slice(p,V))),I>0&&I!==u?n.dir=e.slice(0,I-1):n.dir=n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},xf={resolve(...e){let n="",c=!1;for(let u=e.length-1;u>=-1&&!c;u--){const g=u>=0?e[u]:KE();Ql(g,"path"),g.length!==0&&(n=`${g}/${n}`,c=g.charCodeAt(0)===Kc)}return n=xy(n,!c,"/",zE),c?`/${n}`:n.length>0?n:"."},normalize(e){if(Ql(e,"path"),e.length===0)return".";const n=e.charCodeAt(0)===Kc,c=e.charCodeAt(e.length-1)===Kc;return e=xy(e,!n,"/",zE),e.length===0?n?"/":c?"./":".":(c&&(e+="/"),n?`/${e}`:e)},isAbsolute(e){return Ql(e,"path"),e.length>0&&e.charCodeAt(0)===Kc},join(...e){if(e.length===0)return".";let n;for(let c=0;c<e.length;++c){const u=e[c];Ql(u,"path"),u.length>0&&(n===void 0?n=u:n+=`/${u}`)}return n===void 0?".":xf.normalize(n)},relative(e,n){if(Ql(e,"from"),Ql(n,"to"),e===n||(e=xf.resolve(e),n=xf.resolve(n),e===n))return"";const c=1,u=e.length,g=u-c,p=1,I=n.length-p,V=g<I?g:I;let L=-1,m=0;for(;m<V;m++){const j=e.charCodeAt(c+m);if(j!==n.charCodeAt(p+m))break;j===Kc&&(L=m)}if(m===V)if(I>V){if(n.charCodeAt(p+m)===Kc)return n.slice(p+m+1);if(m===0)return n.slice(p+m)}else g>V&&(e.charCodeAt(c+m)===Kc?L=m:m===0&&(L=0));let y="";for(m=c+L+1;m<=u;++m)(m===u||e.charCodeAt(m)===Kc)&&(y+=y.length===0?"..":"/..");return`${y}${n.slice(p+L)}`},toNamespacedPath(e){return e},dirname(e){if(Ql(e,"path"),e.length===0)return".";const n=e.charCodeAt(0)===Kc;let c=-1,u=!0;for(let g=e.length-1;g>=1;--g)if(e.charCodeAt(g)===Kc){if(!u){c=g;break}}else u=!1;return c===-1?n?"/":".":n&&c===1?"//":e.slice(0,c)},basename(e,n){n!==void 0&&Ql(n,"ext"),Ql(e,"path");let c=0,u=-1,g=!0,p;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n===e)return"";let I=n.length-1,V=-1;for(p=e.length-1;p>=0;--p){const L=e.charCodeAt(p);if(L===Kc){if(!g){c=p+1;break}}else V===-1&&(g=!1,V=p+1),I>=0&&(L===n.charCodeAt(I)?--I===-1&&(u=p):(I=-1,u=V))}return c===u?u=V:u===-1&&(u=e.length),e.slice(c,u)}for(p=e.length-1;p>=0;--p)if(e.charCodeAt(p)===Kc){if(!g){c=p+1;break}}else u===-1&&(g=!1,u=p+1);return u===-1?"":e.slice(c,u)},extname(e){Ql(e,"path");let n=-1,c=0,u=-1,g=!0,p=0;for(let I=e.length-1;I>=0;--I){const V=e.charCodeAt(I);if(V===Kc){if(!g){c=I+1;break}continue}u===-1&&(g=!1,u=I+1),V===um?n===-1?n=I:p!==1&&(p=1):n!==-1&&(p=-1)}return n===-1||u===-1||p===0||p===1&&n===u-1&&n===c+1?"":e.slice(n,u)},format:nD.bind(null,"/"),parse(e){Ql(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;const c=e.charCodeAt(0)===Kc;let u;c?(n.root="/",u=1):u=0;let g=-1,p=0,I=-1,V=!0,L=e.length-1,m=0;for(;L>=u;--L){const y=e.charCodeAt(L);if(y===Kc){if(!V){p=L+1;break}continue}I===-1&&(V=!1,I=L+1),y===um?g===-1?g=L:m!==1&&(m=1):g!==-1&&(m=-1)}if(I!==-1){const y=p===0&&c?1:p;g===-1||m===0||m===1&&g===I-1&&g===p+1?n.base=n.name=e.slice(y,I):(n.name=e.slice(y,g),n.base=e.slice(y,I),n.ext=e.slice(g,I))}return p>0?n.dir=e.slice(0,p-1):c&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};xf.win32=rf.win32=rf,xf.posix=rf.posix=xf;const tG=Hm==="win32"?rf.normalize:xf.normalize,nG=Hm==="win32"?rf.resolve:xf.resolve,aG=Hm==="win32"?rf.relative:xf.relative,iG=Hm==="win32"?rf.dirname:xf.dirname,oG=Hm==="win32"?rf.basename:xf.basename,sG=Hm==="win32"?rf.extname:xf.extname,lG=Hm==="win32"?rf.sep:xf.sep,uO=/^\w[\w\d+.-]*$/,fO=/^\//,dO=/^\/\//;function aD(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!uO.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!fO.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(dO.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function pO(e,n){return!e&&!n?"file":e}function _O(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==yp&&(n=yp+n):n=yp;break}return n}const cl="",yp="/",mO=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Jm{constructor(n,c,u,g,p,I=!1){typeof n=="object"?(this.scheme=n.scheme||cl,this.authority=n.authority||cl,this.path=n.path||cl,this.query=n.query||cl,this.fragment=n.fragment||cl):(this.scheme=pO(n,I),this.authority=c||cl,this.path=_O(this.scheme,u||cl),this.query=g||cl,this.fragment=p||cl,aD(this,I))}static isUri(n){return n instanceof Jm?!0:n?typeof n.authority=="string"&&typeof n.fragment=="string"&&typeof n.path=="string"&&typeof n.query=="string"&&typeof n.scheme=="string"&&typeof n.fsPath=="string"&&typeof n.with=="function"&&typeof n.toString=="function":!1}get fsPath(){return qE(this,!1)}with(n){if(!n)return this;let{scheme:c,authority:u,path:g,query:p,fragment:I}=n;return c===void 0?c=this.scheme:c===null&&(c=cl),u===void 0?u=this.authority:u===null&&(u=cl),g===void 0?g=this.path:g===null&&(g=cl),p===void 0?p=this.query:p===null&&(p=cl),I===void 0?I=this.fragment:I===null&&(I=cl),c===this.scheme&&u===this.authority&&g===this.path&&p===this.query&&I===this.fragment?this:new Ug(c,u,g,p,I)}static parse(n,c=!1){const u=mO.exec(n);return u?new Ug(u[2]||cl,Iy(u[4]||cl),Iy(u[5]||cl),Iy(u[7]||cl),Iy(u[9]||cl),c):new Ug(cl,cl,cl,cl,cl)}static file(n){let c=cl;if(qv&&(n=n.replace(/\\/g,yp)),n[0]===yp&&n[1]===yp){const u=n.indexOf(yp,2);u===-1?(c=n.substring(2),n=yp):(c=n.substring(2,u),n=n.substring(u)||yp)}return new Ug("file",c,n,cl,cl)}static from(n){const c=new Ug(n.scheme,n.authority,n.path,n.query,n.fragment);return aD(c,!0),c}static joinPath(n,...c){if(!n.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let u;return qv&&n.scheme==="file"?u=Jm.file(rf.join(qE(n,!0),...c)).path:u=xf.join(n.path,...c),n.with({path:u})}toString(n=!1){return XE(this,n)}toJSON(){return this}static revive(n){if(n){if(n instanceof Jm)return n;{const c=new Ug(n);return c._formatted=n.external,c._fsPath=n._sep===iD?n.fsPath:null,c}}else return n}}const iD=qv?1:void 0;class Ug extends Jm{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=qE(this,!1)),this._fsPath}toString(n=!1){return n?XE(this,!0):(this._formatted||(this._formatted=XE(this,!1)),this._formatted)}toJSON(){const n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=iD),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n}}const oD={[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 sD(e,n){let c,u=-1;for(let g=0;g<e.length;g++){const p=e.charCodeAt(g);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||n&&p===47)u!==-1&&(c+=encodeURIComponent(e.substring(u,g)),u=-1),c!==void 0&&(c+=e.charAt(g));else{c===void 0&&(c=e.substr(0,g));const I=oD[p];I!==void 0?(u!==-1&&(c+=encodeURIComponent(e.substring(u,g)),u=-1),c+=I):u===-1&&(u=g)}}return u!==-1&&(c+=encodeURIComponent(e.substring(u))),c!==void 0?c:e}function gO(e){let n;for(let c=0;c<e.length;c++){const u=e.charCodeAt(c);u===35||u===63?(n===void 0&&(n=e.substr(0,c)),n+=oD[u]):n!==void 0&&(n+=e[c])}return n!==void 0?n:e}function qE(e,n){let c;return e.authority&&e.path.length>1&&e.scheme==="file"?c=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?n?c=e.path.substr(1):c=e.path[1].toLowerCase()+e.path.substr(2):c=e.path,qv&&(c=c.replace(/\//g,"\\")),c}function XE(e,n){const c=n?gO:sD;let u="",{scheme:g,authority:p,path:I,query:V,fragment:L}=e;if(g&&(u+=g,u+=":"),(p||g==="file")&&(u+=yp,u+=yp),p){let m=p.indexOf("@");if(m!==-1){const y=p.substr(0,m);p=p.substr(m+1),m=y.indexOf(":"),m===-1?u+=c(y,!1):(u+=c(y.substr(0,m),!1),u+=":",u+=c(y.substr(m+1),!1)),u+="@"}p=p.toLowerCase(),m=p.indexOf(":"),m===-1?u+=c(p,!1):(u+=c(p.substr(0,m),!1),u+=p.substr(m))}if(I){if(I.length>=3&&I.charCodeAt(0)===47&&I.charCodeAt(2)===58){const m=I.charCodeAt(1);m>=65&&m<=90&&(I=`/${String.fromCharCode(m+32)}:${I.substr(3)}`)}else if(I.length>=2&&I.charCodeAt(1)===58){const m=I.charCodeAt(0);m>=65&&m<=90&&(I=`${String.fromCharCode(m+32)}:${I.substr(2)}`)}u+=c(I,!0)}return V&&(u+="?",u+=c(V,!1)),L&&(u+="#",u+=n?L:sD(L,!1)),u}function lD(e){try{return decodeURIComponent(e)}catch(n){return e.length>3?e.substr(0,3)+lD(e.substr(3)):e}}const cD=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Iy(e){return e.match(cD)?e.replace(cD,n=>lD(n)):e}class If{constructor(n,c){this.lineNumber=n,this.column=c}with(n=this.lineNumber,c=this.column){return n===this.lineNumber&&c===this.column?this:new If(n,c)}delta(n=0,c=0){return this.with(this.lineNumber+n,this.column+c)}equals(n){return If.equals(this,n)}static equals(n,c){return!n&&!c?!0:!!n&&!!c&&n.lineNumber===c.lineNumber&&n.column===c.column}isBefore(n){return If.isBefore(this,n)}static isBefore(n,c){return n.lineNumber<c.lineNumber?!0:c.lineNumber<n.lineNumber?!1:n.column<c.column}isBeforeOrEqual(n){return If.isBeforeOrEqual(this,n)}static isBeforeOrEqual(n,c){return n.lineNumber<c.lineNumber?!0:c.lineNumber<n.lineNumber?!1:n.column<=c.column}static compare(n,c){const u=n.lineNumber|0,g=c.lineNumber|0;if(u===g){const p=n.column|0,I=c.column|0;return p-I}return u-g}clone(){return new If(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(n){return new If(n.lineNumber,n.column)}static isIPosition(n){return n&&typeof n.lineNumber=="number"&&typeof n.column=="number"}}class Tl{constructor(n,c,u,g){n>u||n===u&&c>g?(this.startLineNumber=u,this.startColumn=g,this.endLineNumber=n,this.endColumn=c):(this.startLineNumber=n,this.startColumn=c,this.endLineNumber=u,this.endColumn=g)}isEmpty(){return Tl.isEmpty(this)}static isEmpty(n){return n.startLineNumber===n.endLineNumber&&n.startColumn===n.endColumn}containsPosition(n){return Tl.containsPosition(this,n)}static containsPosition(n,c){return!(c.lineNumber<n.startLineNumber||c.lineNumber>n.endLineNumber||c.lineNumber===n.startLineNumber&&c.column<n.startColumn||c.lineNumber===n.endLineNumber&&c.column>n.endColumn)}static strictContainsPosition(n,c){return!(c.lineNumber<n.startLineNumber||c.lineNumber>n.endLineNumber||c.lineNumber===n.startLineNumber&&c.column<=n.startColumn||c.lineNumber===n.endLineNumber&&c.column>=n.endColumn)}containsRange(n){return Tl.containsRange(this,n)}static containsRange(n,c){return!(c.startLineNumber<n.startLineNumber||c.endLineNumber<n.startLineNumber||c.startLineNumber>n.endLineNumber||c.endLineNumber>n.endLineNumber||c.startLineNumber===n.startLineNumber&&c.startColumn<n.startColumn||c.endLineNumber===n.endLineNumber&&c.endColumn>n.endColumn)}strictContainsRange(n){return Tl.strictContainsRange(this,n)}static strictContainsRange(n,c){return!(c.startLineNumber<n.startLineNumber||c.endLineNumber<n.startLineNumber||c.startLineNumber>n.endLineNumber||c.endLineNumber>n.endLineNumber||c.startLineNumber===n.startLineNumber&&c.startColumn<=n.startColumn||c.endLineNumber===n.endLineNumber&&c.endColumn>=n.endColumn)}plusRange(n){return Tl.plusRange(this,n)}static plusRange(n,c){let u,g,p,I;return c.startLineNumber<n.startLineNumber?(u=c.startLineNumber,g=c.startColumn):c.startLineNumber===n.startLineNumber?(u=c.startLineNumber,g=Math.min(c.startColumn,n.startColumn)):(u=n.startLineNumber,g=n.startColumn),c.endLineNumber>n.endLineNumber?(p=c.endLineNumber,I=c.endColumn):c.endLineNumber===n.endLineNumber?(p=c.endLineNumber,I=Math.max(c.endColumn,n.endColumn)):(p=n.endLineNumber,I=n.endColumn),new Tl(u,g,p,I)}intersectRanges(n){return Tl.intersectRanges(this,n)}static intersectRanges(n,c){let u=n.startLineNumber,g=n.startColumn,p=n.endLineNumber,I=n.endColumn;const V=c.startLineNumber,L=c.startColumn,m=c.endLineNumber,y=c.endColumn;return u<V?(u=V,g=L):u===V&&(g=Math.max(g,L)),p>m?(p=m,I=y):p===m&&(I=Math.min(I,y)),u>p||u===p&&g>I?null:new Tl(u,g,p,I)}equalsRange(n){return Tl.equalsRange(this,n)}static equalsRange(n,c){return!!n&&!!c&&n.startLineNumber===c.startLineNumber&&n.startColumn===c.startColumn&&n.endLineNumber===c.endLineNumber&&n.endColumn===c.endColumn}getEndPosition(){return Tl.getEndPosition(this)}static getEndPosition(n){return new If(n.endLineNumber,n.endColumn)}getStartPosition(){return Tl.getStartPosition(this)}static getStartPosition(n){return new If(n.startLineNumber,n.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(n,c){return new Tl(this.startLineNumber,this.startColumn,n,c)}setStartPosition(n,c){return new Tl(n,c,this.endLineNumber,this.endColumn)}collapseToStart(){return Tl.collapseToStart(this)}static collapseToStart(n){return new Tl(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)}static fromPositions(n,c=n){return new Tl(n.lineNumber,n.column,c.lineNumber,c.column)}static lift(n){return n?new Tl(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):null}static isIRange(n){return n&&typeof n.startLineNumber=="number"&&typeof n.startColumn=="number"&&typeof n.endLineNumber=="number"&&typeof n.endColumn=="number"}static areIntersectingOrTouching(n,c){return!(n.endLineNumber<c.startLineNumber||n.endLineNumber===c.startLineNumber&&n.endColumn<c.startColumn||c.endLineNumber<n.startLineNumber||c.endLineNumber===n.startLineNumber&&c.endColumn<n.startColumn)}static areIntersecting(n,c){return!(n.endLineNumber<c.startLineNumber||n.endLineNumber===c.startLineNumber&&n.endColumn<=c.startColumn||c.endLineNumber<n.startLineNumber||c.endLineNumber===n.startLineNumber&&c.endColumn<=n.startColumn)}static compareRangesUsingStarts(n,c){if(n&&c){const p=n.startLineNumber|0,I=c.startLineNumber|0;if(p===I){const V=n.startColumn|0,L=c.startColumn|0;if(V===L){const m=n.endLineNumber|0,y=c.endLineNumber|0;if(m===y){const j=n.endColumn|0,te=c.endColumn|0;return j-te}return m-y}return V-L}return p-I}return(n?1:0)-(c?1:0)}static compareRangesUsingEnds(n,c){return n.endLineNumber===c.endLineNumber?n.endColumn===c.endColumn?n.startLineNumber===c.startLineNumber?n.startColumn-c.startColumn:n.startLineNumber-c.startLineNumber:n.endColumn-c.endColumn:n.endLineNumber-c.endLineNumber}static spansMultipleLines(n){return n.endLineNumber>n.startLineNumber}toJSON(){return this}}const vO=3;function uD(e,n,c,u){return new cm(e,n,c).ComputeDiff(u)}class fD{constructor(n){const c=[],u=[];for(let g=0,p=n.length;g<p;g++)c[g]=YE(n[g],1),u[g]=QE(n[g],1);this.lines=n,this._startColumns=c,this._endColumns=u}getElements(){const n=[];for(let c=0,u=this.lines.length;c<u;c++)n[c]=this.lines[c].substring(this._startColumns[c]-1,this._endColumns[c]-1);return n}getStrictElement(n){return this.lines[n]}getStartLineNumber(n){return n+1}getEndLineNumber(n){return n+1}createCharSequence(n,c,u){const g=[],p=[],I=[];let V=0;for(let L=c;L<=u;L++){const m=this.lines[L],y=n?this._startColumns[L]:1,j=n?this._endColumns[L]:m.length+1;for(let te=y;te<j;te++)g[V]=m.charCodeAt(te-1),p[V]=L+1,I[V]=te,V++;!n&&L<u&&(g[V]=10,p[V]=L+1,I[V]=m.length+1,V++)}return new hO(g,p,I)}}class hO{constructor(n,c,u){this._charCodes=n,this._lineNumbers=c,this._columns=u}toString(){return"["+this._charCodes.map((n,c)=>(n===10?"\\n":String.fromCharCode(n))+`-(${this._lineNumbers[c]},${this._columns[c]})`).join(", ")+"]"}_assertIndex(n,c){if(n<0||n>=c.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(n){return n>0&&n===this._lineNumbers.length?this.getEndLineNumber(n-1):(this._assertIndex(n,this._lineNumbers),this._lineNumbers[n])}getEndLineNumber(n){return n===-1?this.getStartLineNumber(n+1):(this._assertIndex(n,this._lineNumbers),this._charCodes[n]===10?this._lineNumbers[n]+1:this._lineNumbers[n])}getStartColumn(n){return n>0&&n===this._columns.length?this.getEndColumn(n-1):(this._assertIndex(n,this._columns),this._columns[n])}getEndColumn(n){return n===-1?this.getStartColumn(n+1):(this._assertIndex(n,this._columns),this._charCodes[n]===10?1:this._columns[n]+1)}}class $v{constructor(n,c,u,g,p,I,V,L){this.originalStartLineNumber=n,this.originalStartColumn=c,this.originalEndLineNumber=u,this.originalEndColumn=g,this.modifiedStartLineNumber=p,this.modifiedStartColumn=I,this.modifiedEndLineNumber=V,this.modifiedEndColumn=L}static createFromDiffChange(n,c,u){const g=c.getStartLineNumber(n.originalStart),p=c.getStartColumn(n.originalStart),I=c.getEndLineNumber(n.originalStart+n.originalLength-1),V=c.getEndColumn(n.originalStart+n.originalLength-1),L=u.getStartLineNumber(n.modifiedStart),m=u.getStartColumn(n.modifiedStart),y=u.getEndLineNumber(n.modifiedStart+n.modifiedLength-1),j=u.getEndColumn(n.modifiedStart+n.modifiedLength-1);return new $v(g,p,I,V,L,m,y,j)}}function yO(e){if(e.length<=1)return e;const n=[e[0]];let c=n[0];for(let u=1,g=e.length;u<g;u++){const p=e[u],I=p.originalStart-(c.originalStart+c.originalLength),V=p.modifiedStart-(c.modifiedStart+c.modifiedLength);Math.min(I,V)<vO?(c.originalLength=p.originalStart+p.originalLength-c.originalStart,c.modifiedLength=p.modifiedStart+p.modifiedLength-c.modifiedStart):(n.push(p),c=p)}return n}class eh{constructor(n,c,u,g,p){this.originalStartLineNumber=n,this.originalEndLineNumber=c,this.modifiedStartLineNumber=u,this.modifiedEndLineNumber=g,this.charChanges=p}static createFromDiffResult(n,c,u,g,p,I,V){let L,m,y,j,te;if(c.originalLength===0?(L=u.getStartLineNumber(c.originalStart)-1,m=0):(L=u.getStartLineNumber(c.originalStart),m=u.getEndLineNumber(c.originalStart+c.originalLength-1)),c.modifiedLength===0?(y=g.getStartLineNumber(c.modifiedStart)-1,j=0):(y=g.getStartLineNumber(c.modifiedStart),j=g.getEndLineNumber(c.modifiedStart+c.modifiedLength-1)),I&&c.originalLength>0&&c.originalLength<20&&c.modifiedLength>0&&c.modifiedLength<20&&p()){const E=u.createCharSequence(n,c.originalStart,c.originalStart+c.originalLength-1),F=g.createCharSequence(n,c.modifiedStart,c.modifiedStart+c.modifiedLength-1);if(E.getElements().length>0&&F.getElements().length>0){let $=uD(E,F,p,!0).changes;V&&($=yO($)),te=[];for(let C=0,K=$.length;C<K;C++)te.push($v.createFromDiffChange($[C],E,F))}}return new eh(L,m,y,j,te)}}class bO{constructor(n,c,u){this.shouldComputeCharChanges=u.shouldComputeCharChanges,this.shouldPostProcessCharChanges=u.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=u.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=u.shouldMakePrettyDiff,this.originalLines=n,this.modifiedLines=c,this.original=new fD(n),this.modified=new fD(c),this.continueLineDiff=dD(u.maxComputationTime),this.continueCharDiff=dD(u.maxComputationTime===0?0:Math.min(u.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const n=uD(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),c=n.changes,u=n.quitEarly;if(this.shouldIgnoreTrimWhitespace){const V=[];for(let L=0,m=c.length;L<m;L++)V.push(eh.createFromDiffResult(this.shouldIgnoreTrimWhitespace,c[L],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:u,changes:V}}const g=[];let p=0,I=0;for(let V=-1,L=c.length;V<L;V++){const m=V+1<L?c[V+1]:null,y=m?m.originalStart:this.originalLines.length,j=m?m.modifiedStart:this.modifiedLines.length;for(;p<y&&I<j;){const te=this.originalLines[p],E=this.modifiedLines[I];if(te!==E){{let F=YE(te,1),$=YE(E,1);for(;F>1&&$>1;){const C=te.charCodeAt(F-2),K=E.charCodeAt($-2);if(C!==K)break;F--,$--}(F>1||$>1)&&this._pushTrimWhitespaceCharChange(g,p+1,1,F,I+1,1,$)}{let F=QE(te,1),$=QE(E,1);const C=te.length+1,K=E.length+1;for(;F<C&&$<K;){const k=te.charCodeAt(F-1),X=te.charCodeAt($-1);if(k!==X)break;F++,$++}(F<C||$<K)&&this._pushTrimWhitespaceCharChange(g,p+1,F,C,I+1,$,K)}}p++,I++}m&&(g.push(eh.createFromDiffResult(this.shouldIgnoreTrimWhitespace,m,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),p+=m.originalLength,I+=m.modifiedLength)}return{quitEarly:u,changes:g}}_pushTrimWhitespaceCharChange(n,c,u,g,p,I,V){if(this._mergeTrimWhitespaceCharChange(n,c,u,g,p,I,V))return;let L;this.shouldComputeCharChanges&&(L=[new $v(c,u,c,g,p,I,p,V)]),n.push(new eh(c,c,p,p,L))}_mergeTrimWhitespaceCharChange(n,c,u,g,p,I,V){const L=n.length;if(L===0)return!1;const m=n[L-1];return m.originalEndLineNumber===0||m.modifiedEndLineNumber===0?!1:m.originalEndLineNumber+1===c&&m.modifiedEndLineNumber+1===p?(m.originalEndLineNumber=c,m.modifiedEndLineNumber=p,this.shouldComputeCharChanges&&m.charChanges&&m.charChanges.push(new $v(c,u,c,g,p,I,p,V)),!0):!1}}function YE(e,n){const c=Mk(e);return c===-1?n:c+1}function QE(e,n){const c=Pk(e);return c===-1?n:c+2}function dD(e){if(e===0)return()=>!0;const n=Date.now();return()=>Date.now()-n<e}function cG(e,n=0){return e[e.length-(1+n)]}function uG(e){if(e.length===0)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function fG(e,n,c=(u,g)=>u===g){if(e===n)return!0;if(!e||!n||e.length!==n.length)return!1;for(let u=0,g=e.length;u<g;u++)if(!c(e[u],n[u]))return!1;return!0}function dG(e,n){const c=e.length-1;n<c&&(e[n]=e[c]),e.pop()}function pG(e,n,c){return EO(e.length,u=>c(e[u],n))}function EO(e,n){let c=0,u=e-1;for(;c<=u;){const g=(c+u)/2|0,p=n(g);if(p<0)c=g+1;else if(p>0)u=g-1;else return g}return-(c+1)}function _G(e,n){let c=0,u=e.length;if(u===0)return 0;for(;c<u;){const g=Math.floor((c+u)/2);n(e[g])?u=g:c=g+1}return c}function pD(e,n,c){if(e=e|0,e>=n.length)throw new TypeError("invalid index");const u=n[Math.floor(n.length*Math.random())],g=[],p=[],I=[];for(const V of n){const L=c(V,u);L<0?g.push(V):L>0?p.push(V):I.push(V)}return e<g.length?pD(e,g,c):e<g.length+I.length?I[0]:pD(e-(g.length+I.length),p,c)}function mG(e,n){const c=[];let u;for(const g of e.slice(0).sort(n))!u||n(u[0],g)!==0?(u=[g],c.push(u)):u.push(g);return c}function gG(e){return e.filter(n=>!!n)}function vG(e){return!Array.isArray(e)||e.length===0}function hG(e){return Array.isArray(e)&&e.length>0}function yG(e,n=c=>c){const c=new Set;return e.filter(u=>{const g=n(u);return c.has(g)?!1:(c.add(g),!0)})}function bG(e,n){const c=TO(e,n);if(c!==-1)return e[c]}function TO(e,n){for(let c=e.length-1;c>=0;c--){const u=e[c];if(n(u))return c}return-1}function EG(e,n){return e.length>0?e[0]:n}function TG(e,n){let c=typeof n=="number"?e:0;typeof n=="number"?c=e:(c=0,n=e);const u=[];if(c<=n)for(let g=c;g<n;g++)u.push(g);else for(let g=c;g>n;g--)u.push(g);return u}function SG(e,n,c){const u=e.slice(0,n),g=e.slice(n);return u.concat(c,g)}function DG(e,n){const c=e.indexOf(n);c>-1&&(e.splice(c,1),e.unshift(n))}function LG(e,n){const c=e.indexOf(n);c>-1&&(e.splice(c,1),e.push(n))}function AG(e,n){for(const c of n)e.push(c)}function CG(e){return Array.isArray(e)?e:[e]}function SO(e,n,c){const u=_D(e,n),g=e.length,p=c.length;e.length=g+p;for(let I=g-1;I>=u;I--)e[I+p]=e[I];for(let I=0;I<p;I++)e[I+u]=c[I]}function xG(e,n,c,u){const g=_D(e,n),p=e.splice(g,c);return SO(e,g,u),p}function _D(e,n){return n<0?Math.max(n+e.length,0):Math.min(n,e.length)}var mD;(function(e){function n(g){return g<0}e.isLessThan=n;function c(g){return g>0}e.isGreaterThan=c;function u(g){return g===0}e.isNeitherLessOrGreaterThan=u,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(mD||(mD={}));function IG(e,n){return(c,u)=>n(e(c),e(u))}const NG=(e,n)=>e-n;function DO(e,n){if(e.length===0)return;let c=e[0];for(let u=1;u<e.length;u++){const g=e[u];n(g,c)>0&&(c=g)}return c}function kG(e,n){if(e.length===0)return;let c=e[0];for(let u=1;u<e.length;u++){const g=e[u];n(g,c)>=0&&(c=g)}return c}function OG(e,n){return DO(e,(c,u)=>-n(c,u))}class RG{constructor(n){this.items=n,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(n){let c=this.firstIdx;for(;c<this.items.length&&n(this.items[c]);)c++;const u=c===this.firstIdx?null:this.items.slice(this.firstIdx,c);return this.firstIdx=c,u}takeFromEndWhile(n){let c=this.lastIdx;for(;c>=0&&n(this.items[c]);)c--;const u=c===this.lastIdx?null:this.items.slice(c+1,this.lastIdx+1);return this.lastIdx=c,u}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const n=this.items[this.firstIdx];return this.firstIdx++,n}takeCount(n){const c=this.items.slice(this.firstIdx,this.firstIdx+n);return this.firstIdx+=n,c}}function gD(e){return e<0?0:e>255?255:e|0}function Vg(e){return e<0?0:e>4294967295?4294967295:e|0}class LO{constructor(n){this.values=n,this.prefixSum=new Uint32Array(n.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(n,c){n=Vg(n);const u=this.values,g=this.prefixSum,p=c.length;return p===0?!1:(this.values=new Uint32Array(u.length+p),this.values.set(u.subarray(0,n),0),this.values.set(u.subarray(n),n+p),this.values.set(c,n),n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(g.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(n,c){return n=Vg(n),c=Vg(c),this.values[n]===c?!1:(this.values[n]=c,n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),!0)}removeValues(n,c){n=Vg(n),c=Vg(c);const u=this.values,g=this.prefixSum;if(n>=u.length)return!1;const p=u.length-n;return c>=p&&(c=p),c===0?!1:(this.values=new Uint32Array(u.length-c),this.values.set(u.subarray(0,n),0),this.values.set(u.subarray(n+c),n),this.prefixSum=new Uint32Array(this.values.length),n-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=n-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(g.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(n){return n<0?0:(n=Vg(n),this._getPrefixSum(n))}_getPrefixSum(n){if(n<=this.prefixSumValidIndex[0])return this.prefixSum[n];let c=this.prefixSumValidIndex[0]+1;c===0&&(this.prefixSum[0]=this.values[0],c++),n>=this.values.length&&(n=this.values.length-1);for(let u=c;u<=n;u++)this.prefixSum[u]=this.prefixSum[u-1]+this.values[u];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],n),this.prefixSum[n]}getIndexOf(n){n=Math.floor(n),this.getTotalSum();let c=0,u=this.values.length-1,g=0,p=0,I=0;for(;c<=u;)if(g=c+(u-c)/2|0,p=this.prefixSum[g],I=p-this.values[g],n<I)u=g-1;else if(n>=p)c=g+1;else break;return new vD(g,n-I)}}class wG{constructor(n){this._values=n,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(n){return this._ensureValid(),n===0?0:this._prefixSum[n-1]}getIndexOf(n){this._ensureValid();const c=this._indexBySum[n],u=c>0?this._prefixSum[c-1]:0;return new vD(c,n-u)}removeValues(n,c){this._values.splice(n,c),this._invalidate(n)}insertValues(n,c){this._values=arrayInsert(this._values,n,c),this._invalidate(n)}_invalidate(n){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,n-1)}_ensureValid(){if(!this._isValid){for(let n=this._validEndIndex+1,c=this._values.length;n<c;n++){const u=this._values[n],g=n>0?this._prefixSum[n-1]:0;this._prefixSum[n]=g+u;for(let p=0;p<u;p++)this._indexBySum[g+p]=n}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(n,c){this._values[n]!==c&&(this._values[n]=c,this._invalidate(n))}}class vD{constructor(n,c){this.index=n,this.remainder=c,this._prefixSumIndexOfResultBrand=void 0,this.index=n,this.remainder=c}}class AO{constructor(n,c,u,g){this._uri=n,this._lines=c,this._eol=u,this._versionId=g,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(n){n.eol&&n.eol!==this._eol&&(this._eol=n.eol,this._lineStarts=null);const c=n.changes;for(const u of c)this._acceptDeleteRange(u.range),this._acceptInsertText(new If(u.range.startLineNumber,u.range.startColumn),u.text);this._versionId=n.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const n=this._eol.length,c=this._lines.length,u=new Uint32Array(c);for(let g=0;g<c;g++)u[g]=this._lines[g].length+n;this._lineStarts=new LO(u)}}_setLineText(n,c){this._lines[n]=c,this._lineStarts&&this._lineStarts.setValue(n,this._lines[n].length+this._eol.length)}_acceptDeleteRange(n){if(n.startLineNumber===n.endLineNumber){if(n.startColumn===n.endColumn)return;this._setLineText(n.startLineNumber-1,this._lines[n.startLineNumber-1].substring(0,n.startColumn-1)+this._lines[n.startLineNumber-1].substring(n.endColumn-1));return}this._setLineText(n.startLineNumber-1,this._lines[n.startLineNumber-1].substring(0,n.startColumn-1)+this._lines[n.endLineNumber-1].substring(n.endColumn-1)),this._lines.splice(n.startLineNumber,n.endLineNumber-n.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(n.startLineNumber,n.endLineNumber-n.startLineNumber)}_acceptInsertText(n,c){if(c.length===0)return;const u=wk(c);if(u.length===1){this._setLineText(n.lineNumber-1,this._lines[n.lineNumber-1].substring(0,n.column-1)+u[0]+this._lines[n.lineNumber-1].substring(n.column-1));return}u[u.length-1]+=this._lines[n.lineNumber-1].substring(n.column-1),this._setLineText(n.lineNumber-1,this._lines[n.lineNumber-1].substring(0,n.column-1)+u[0]);const g=new Uint32Array(u.length-1);for(let p=1;p<u.length;p++)this._lines.splice(n.lineNumber+p-1,0,u[p]),g[p-1]=u[p].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(n.lineNumber,g)}}const CO="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function xO(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const c of CO)e.indexOf(c)>=0||(n+="\\"+c);return n+="\\s]+)",new RegExp(n,"g")}const hD=xO();function IO(e){let n=hD;if(e&&e instanceof RegExp)if(e.global)n=e;else{let c="g";e.ignoreCase&&(c+="i"),e.multiline&&(c+="m"),e.unicode&&(c+="u"),n=new RegExp(e.source,c)}return n.lastIndex=0,n}const yD=new Ey;yD.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function ZE(e,n,c,u,g){if(g||(g=hy.first(yD)),c.length>g.maxLen){let m=e-g.maxLen/2;return m<0?m=0:u+=m,c=c.substring(m,e+g.maxLen/2),ZE(e,n,c,u,g)}const p=Date.now(),I=e-1-u;let V=-1,L=null;for(let m=1;!(Date.now()-p>=g.timeBudget);m++){const y=I-g.windowSize*m;n.lastIndex=Math.max(0,y);const j=NO(n,c,I,V);if(!j&&L||(L=j,y<=0))break;V=y}if(L){const m={word:L[0],startColumn:u+1+L.index,endColumn:u+1+L.index+L[0].length};return n.lastIndex=0,m}return null}function NO(e,n,c,u){let g;for(;g=e.exec(n);){const p=g.index||0;if(p<=c&&e.lastIndex>=c)return g;if(u>0&&p>u)return null}return null}class rh{constructor(n){const c=gD(n);this._defaultValue=c,this._asciiMap=rh._createAsciiMap(c),this._map=new Map}static _createAsciiMap(n){const c=new Uint8Array(256);for(let u=0;u<256;u++)c[u]=n;return c}set(n,c){const u=gD(c);n>=0&&n<256?this._asciiMap[n]=u:this._map.set(n,u)}get(n){return n>=0&&n<256?this._asciiMap[n]:this._map.get(n)||this._defaultValue}}class MG{constructor(){this._actual=new rh(0)}add(n){this._actual.set(n,1)}has(n){return this._actual.get(n)===1}}class kO{constructor(n,c,u){const g=new Uint8Array(n*c);for(let p=0,I=n*c;p<I;p++)g[p]=u;this._data=g,this.rows=n,this.cols=c}get(n,c){return this._data[n*this.cols+c]}set(n,c,u){this._data[n*this.cols+c]=u}}class OO{constructor(n){let c=0,u=0;for(let p=0,I=n.length;p<I;p++){const[V,L,m]=n[p];L>c&&(c=L),V>u&&(u=V),m>u&&(u=m)}c++,u++;const g=new kO(u,c,0);for(let p=0,I=n.length;p<I;p++){const[V,L,m]=n[p];g.set(V,L,m)}this._states=g,this._maxCharCode=c}nextState(n,c){return c<0||c>=this._maxCharCode?0:this._states.get(n,c)}}let $E=null;function RO(){return $E===null&&($E=new OO([[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]])),$E}let th=null;function wO(){if(th===null){th=new rh(0);const e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let c=0;c<e.length;c++)th.set(e.charCodeAt(c),1);const n=".,;:";for(let c=0;c<n.length;c++)th.set(n.charCodeAt(c),2)}return th}class Ny{static _createLink(n,c,u,g,p){let I=p-1;do{const V=c.charCodeAt(I);if(n.get(V)!==2)break;I--}while(I>g);if(g>0){const V=c.charCodeAt(g-1),L=c.charCodeAt(I);(V===40&&L===41||V===91&&L===93||V===123&&L===125)&&I--}return{range:{startLineNumber:u,startColumn:g+1,endLineNumber:u,endColumn:I+2},url:c.substring(g,I+1)}}static computeLinks(n,c=RO()){const u=wO(),g=[];for(let p=1,I=n.getLineCount();p<=I;p++){const V=n.getLineContent(p),L=V.length;let m=0,y=0,j=0,te=1,E=!1,F=!1,$=!1,C=!1;for(;m<L;){let K=!1;const k=V.charCodeAt(m);if(te===13){let X;switch(k){case 40:E=!0,X=0;break;case 41:X=E?0:1;break;case 91:$=!0,F=!0,X=0;break;case 93:$=!1,X=F?0:1;break;case 123:C=!0,X=0;break;case 125:X=C?0:1;break;case 39:X=j===39?1:0;break;case 34:X=j===34?1:0;break;case 96:X=j===96?1:0;break;case 42:X=j===42?1:0;break;case 124:X=j===124?1:0;break;case 32:X=$?0:1;break;default:X=u.get(k)}X===1&&(g.push(Ny._createLink(u,V,p,y,m)),K=!0)}else if(te===12){let X;k===91?(F=!0,X=0):X=u.get(k),X===1?K=!0:te=13}else te=c.nextState(te,k),te===0&&(K=!0);K&&(te=1,E=!1,F=!1,C=!1,y=m+1,j=k),m++}te===13&&g.push(Ny._createLink(u,V,p,y,L))}return g}}function MO(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Ny.computeLinks(e)}class e0{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(n,c,u,g,p){if(n&&c){const I=this.doNavigateValueSet(c,p);if(I)return{range:n,value:I}}if(u&&g){const I=this.doNavigateValueSet(g,p);if(I)return{range:u,value:I}}return null}doNavigateValueSet(n,c){const u=this.numberReplace(n,c);return u!==null?u:this.textReplace(n,c)}numberReplace(n,c){const u=Math.pow(10,n.length-(n.lastIndexOf(".")+1));let g=Number(n);const p=parseFloat(n);return!isNaN(g)&&!isNaN(p)&&g===p?g===0&&!c?null:(g=Math.floor(g*u),g+=c?u:-u,String(g/u)):null}textReplace(n,c){return this.valueSetsReplace(this._defaultValueSet,n,c)}valueSetsReplace(n,c,u){let g=null;for(let p=0,I=n.length;g===null&&p<I;p++)g=this.valueSetReplace(n[p],c,u);return g}valueSetReplace(n,c,u){let g=n.indexOf(c);return g>=0?(g+=u?1:-1,g<0?g=n.length-1:g%=n.length,n[g]):null}}e0.INSTANCE=new e0;const bD=Object.freeze(function(e,n){const c=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(c)}}});var ky;(function(e){function n(c){return c===e.None||c===e.Cancelled||c instanceof Oy?!0:!c||typeof c!="object"?!1:typeof c.isCancellationRequested=="boolean"&&typeof c.onCancellationRequested=="function"}e.isCancellationToken=n,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ay.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:bD})})(ky||(ky={}));class Oy{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?bD:(this._emitter||(this._emitter=new hp),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class PO{constructor(n){this._token=void 0,this._parentListener=void 0,this._parentListener=n&&n.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Oy),this._token}cancel(){this._token?this._token instanceof Oy&&this._token.cancel():this._token=ky.Cancelled}dispose(n=!1){n&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Oy&&this._token.dispose():this._token=ky.None}}class r0{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(n,c){this._keyCodeToStr[n]=c,this._strToKeyCode[c.toLowerCase()]=n}keyCodeToStr(n){return this._keyCodeToStr[n]}strToKeyCode(n){return this._strToKeyCode[n.toLowerCase()]||0}}const Ry=new r0,t0=new r0,n0=new r0,FO=new Array(230),GO={},BO=[],UO=Object.create(null),VO=Object.create(null),ED=[],a0=[];for(let e=0;e<=193;e++)ED[e]=-1;for(let e=0;e<=127;e++)a0[e]=-1;(function(){const e="",n=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],c=[],u=[];for(const g of n){const[p,I,V,L,m,y,j,te,E,F]=g;if(u[V]||(u[V]=!0,BO[V]=L,UO[L]=V,VO[L.toLowerCase()]=V,I&&(ED[V]=m,m!==0&&m!==3&&m!==5&&m!==4&&m!==6&&m!==57&&(a0[m]=V))),!c[m]){if(c[m]=!0,!y)throw new Error(`String representation missing for key code ${m} around scan code ${L}`);Ry.define(m,y),t0.define(m,E||y),n0.define(m,F||E||y)}j&&(FO[j]=m),te&&(GO[te]=m)}a0[3]=46})();var TD;(function(e){function n(V){return Ry.keyCodeToStr(V)}e.toString=n;function c(V){return Ry.strToKeyCode(V)}e.fromString=c;function u(V){return t0.keyCodeToStr(V)}e.toUserSettingsUS=u;function g(V){return n0.keyCodeToStr(V)}e.toUserSettingsGeneral=g;function p(V){return t0.strToKeyCode(V)||n0.strToKeyCode(V)}e.fromUserSettings=p;function I(V){if(V>=93&&V<=108)return null;switch(V){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Ry.keyCodeToStr(V)}e.toElectronAccelerator=I})(TD||(TD={}));function WO(e,n){const c=(n&65535)<<16>>>0;return(e|c)>>>0}class od extends Tl{constructor(n,c,u,g){super(n,c,u,g),this.selectionStartLineNumber=n,this.selectionStartColumn=c,this.positionLineNumber=u,this.positionColumn=g}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(n){return od.selectionsEqual(this,n)}static selectionsEqual(n,c){return n.selectionStartLineNumber===c.selectionStartLineNumber&&n.selectionStartColumn===c.selectionStartColumn&&n.positionLineNumber===c.positionLineNumber&&n.positionColumn===c.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(n,c){return this.getDirection()===0?new od(this.startLineNumber,this.startColumn,n,c):new od(n,c,this.startLineNumber,this.startColumn)}getPosition(){return new If(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new If(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(n,c){return this.getDirection()===0?new od(n,c,this.endLineNumber,this.endColumn):new od(this.endLineNumber,this.endColumn,n,c)}static fromPositions(n,c=n){return new od(n.lineNumber,n.column,c.lineNumber,c.column)}static fromRange(n,c){return c===0?new od(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new od(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn)}static liftSelection(n){return new od(n.selectionStartLineNumber,n.selectionStartColumn,n.positionLineNumber,n.positionColumn)}static selectionsArrEqual(n,c){if(n&&!c||!n&&c)return!1;if(!n&&!c)return!0;if(n.length!==c.length)return!1;for(let u=0,g=n.length;u<g;u++)if(!this.selectionsEqual(n[u],c[u]))return!1;return!0}static isISelection(n){return n&&typeof n.selectionStartLineNumber=="number"&&typeof n.selectionStartColumn=="number"&&typeof n.positionLineNumber=="number"&&typeof n.positionColumn=="number"}static createWithDirection(n,c,u,g,p){return p===0?new od(n,c,u,g):new od(u,g,n,c)}}function PG(e){return e?e.replace(/\$\((.*?)\)/g,(n,c)=>` ${c} `).trim():""}class ue{constructor(n,c,u){this.id=n,this.definition=c,this.description=u,ue._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return ue._allCodicons}}ue._allCodicons=[],ue.add=new ue("add",{fontCharacter:"\\ea60"}),ue.plus=new ue("plus",ue.add.definition),ue.gistNew=new ue("gist-new",ue.add.definition),ue.repoCreate=new ue("repo-create",ue.add.definition),ue.lightbulb=new ue("lightbulb",{fontCharacter:"\\ea61"}),ue.lightBulb=new ue("light-bulb",{fontCharacter:"\\ea61"}),ue.repo=new ue("repo",{fontCharacter:"\\ea62"}),ue.repoDelete=new ue("repo-delete",{fontCharacter:"\\ea62"}),ue.gistFork=new ue("gist-fork",{fontCharacter:"\\ea63"}),ue.repoForked=new ue("repo-forked",{fontCharacter:"\\ea63"}),ue.gitPullRequest=new ue("git-pull-request",{fontCharacter:"\\ea64"}),ue.gitPullRequestAbandoned=new ue("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),ue.recordKeys=new ue("record-keys",{fontCharacter:"\\ea65"}),ue.keyboard=new ue("keyboard",{fontCharacter:"\\ea65"}),ue.tag=new ue("tag",{fontCharacter:"\\ea66"}),ue.tagAdd=new ue("tag-add",{fontCharacter:"\\ea66"}),ue.tagRemove=new ue("tag-remove",{fontCharacter:"\\ea66"}),ue.person=new ue("person",{fontCharacter:"\\ea67"}),ue.personFollow=new ue("person-follow",{fontCharacter:"\\ea67"}),ue.personOutline=new ue("person-outline",{fontCharacter:"\\ea67"}),ue.personFilled=new ue("person-filled",{fontCharacter:"\\ea67"}),ue.gitBranch=new ue("git-branch",{fontCharacter:"\\ea68"}),ue.gitBranchCreate=new ue("git-branch-create",{fontCharacter:"\\ea68"}),ue.gitBranchDelete=new ue("git-branch-delete",{fontCharacter:"\\ea68"}),ue.sourceControl=new ue("source-control",{fontCharacter:"\\ea68"}),ue.mirror=new ue("mirror",{fontCharacter:"\\ea69"}),ue.mirrorPublic=new ue("mirror-public",{fontCharacter:"\\ea69"}),ue.star=new ue("star",{fontCharacter:"\\ea6a"}),ue.starAdd=new ue("star-add",{fontCharacter:"\\ea6a"}),ue.starDelete=new ue("star-delete",{fontCharacter:"\\ea6a"}),ue.starEmpty=new ue("star-empty",{fontCharacter:"\\ea6a"}),ue.comment=new ue("comment",{fontCharacter:"\\ea6b"}),ue.commentAdd=new ue("comment-add",{fontCharacter:"\\ea6b"}),ue.alert=new ue("alert",{fontCharacter:"\\ea6c"}),ue.warning=new ue("warning",{fontCharacter:"\\ea6c"}),ue.search=new ue("search",{fontCharacter:"\\ea6d"}),ue.searchSave=new ue("search-save",{fontCharacter:"\\ea6d"}),ue.logOut=new ue("log-out",{fontCharacter:"\\ea6e"}),ue.signOut=new ue("sign-out",{fontCharacter:"\\ea6e"}),ue.logIn=new ue("log-in",{fontCharacter:"\\ea6f"}),ue.signIn=new ue("sign-in",{fontCharacter:"\\ea6f"}),ue.eye=new ue("eye",{fontCharacter:"\\ea70"}),ue.eyeUnwatch=new ue("eye-unwatch",{fontCharacter:"\\ea70"}),ue.eyeWatch=new ue("eye-watch",{fontCharacter:"\\ea70"}),ue.circleFilled=new ue("circle-filled",{fontCharacter:"\\ea71"}),ue.primitiveDot=new ue("primitive-dot",{fontCharacter:"\\ea71"}),ue.closeDirty=new ue("close-dirty",{fontCharacter:"\\ea71"}),ue.debugBreakpoint=new ue("debug-breakpoint",{fontCharacter:"\\ea71"}),ue.debugBreakpointDisabled=new ue("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),ue.debugHint=new ue("debug-hint",{fontCharacter:"\\ea71"}),ue.primitiveSquare=new ue("primitive-square",{fontCharacter:"\\ea72"}),ue.edit=new ue("edit",{fontCharacter:"\\ea73"}),ue.pencil=new ue("pencil",{fontCharacter:"\\ea73"}),ue.info=new ue("info",{fontCharacter:"\\ea74"}),ue.issueOpened=new ue("issue-opened",{fontCharacter:"\\ea74"}),ue.gistPrivate=new ue("gist-private",{fontCharacter:"\\ea75"}),ue.gitForkPrivate=new ue("git-fork-private",{fontCharacter:"\\ea75"}),ue.lock=new ue("lock",{fontCharacter:"\\ea75"}),ue.mirrorPrivate=new ue("mirror-private",{fontCharacter:"\\ea75"}),ue.close=new ue("close",{fontCharacter:"\\ea76"}),ue.removeClose=new ue("remove-close",{fontCharacter:"\\ea76"}),ue.x=new ue("x",{fontCharacter:"\\ea76"}),ue.repoSync=new ue("repo-sync",{fontCharacter:"\\ea77"}),ue.sync=new ue("sync",{fontCharacter:"\\ea77"}),ue.clone=new ue("clone",{fontCharacter:"\\ea78"}),ue.desktopDownload=new ue("desktop-download",{fontCharacter:"\\ea78"}),ue.beaker=new ue("beaker",{fontCharacter:"\\ea79"}),ue.microscope=new ue("microscope",{fontCharacter:"\\ea79"}),ue.vm=new ue("vm",{fontCharacter:"\\ea7a"}),ue.deviceDesktop=new ue("device-desktop",{fontCharacter:"\\ea7a"}),ue.file=new ue("file",{fontCharacter:"\\ea7b"}),ue.fileText=new ue("file-text",{fontCharacter:"\\ea7b"}),ue.more=new ue("more",{fontCharacter:"\\ea7c"}),ue.ellipsis=new ue("ellipsis",{fontCharacter:"\\ea7c"}),ue.kebabHorizontal=new ue("kebab-horizontal",{fontCharacter:"\\ea7c"}),ue.mailReply=new ue("mail-reply",{fontCharacter:"\\ea7d"}),ue.reply=new ue("reply",{fontCharacter:"\\ea7d"}),ue.organization=new ue("organization",{fontCharacter:"\\ea7e"}),ue.organizationFilled=new ue("organization-filled",{fontCharacter:"\\ea7e"}),ue.organizationOutline=new ue("organization-outline",{fontCharacter:"\\ea7e"}),ue.newFile=new ue("new-file",{fontCharacter:"\\ea7f"}),ue.fileAdd=new ue("file-add",{fontCharacter:"\\ea7f"}),ue.newFolder=new ue("new-folder",{fontCharacter:"\\ea80"}),ue.fileDirectoryCreate=new ue("file-directory-create",{fontCharacter:"\\ea80"}),ue.trash=new ue("trash",{fontCharacter:"\\ea81"}),ue.trashcan=new ue("trashcan",{fontCharacter:"\\ea81"}),ue.history=new ue("history",{fontCharacter:"\\ea82"}),ue.clock=new ue("clock",{fontCharacter:"\\ea82"}),ue.folder=new ue("folder",{fontCharacter:"\\ea83"}),ue.fileDirectory=new ue("file-directory",{fontCharacter:"\\ea83"}),ue.symbolFolder=new ue("symbol-folder",{fontCharacter:"\\ea83"}),ue.logoGithub=new ue("logo-github",{fontCharacter:"\\ea84"}),ue.markGithub=new ue("mark-github",{fontCharacter:"\\ea84"}),ue.github=new ue("github",{fontCharacter:"\\ea84"}),ue.terminal=new ue("terminal",{fontCharacter:"\\ea85"}),ue.console=new ue("console",{fontCharacter:"\\ea85"}),ue.repl=new ue("repl",{fontCharacter:"\\ea85"}),ue.zap=new ue("zap",{fontCharacter:"\\ea86"}),ue.symbolEvent=new ue("symbol-event",{fontCharacter:"\\ea86"}),ue.error=new ue("error",{fontCharacter:"\\ea87"}),ue.stop=new ue("stop",{fontCharacter:"\\ea87"}),ue.variable=new ue("variable",{fontCharacter:"\\ea88"}),ue.symbolVariable=new ue("symbol-variable",{fontCharacter:"\\ea88"}),ue.array=new ue("array",{fontCharacter:"\\ea8a"}),ue.symbolArray=new ue("symbol-array",{fontCharacter:"\\ea8a"}),ue.symbolModule=new ue("symbol-module",{fontCharacter:"\\ea8b"}),ue.symbolPackage=new ue("symbol-package",{fontCharacter:"\\ea8b"}),ue.symbolNamespace=new ue("symbol-namespace",{fontCharacter:"\\ea8b"}),ue.symbolObject=new ue("symbol-object",{fontCharacter:"\\ea8b"}),ue.symbolMethod=new ue("symbol-method",{fontCharacter:"\\ea8c"}),ue.symbolFunction=new ue("symbol-function",{fontCharacter:"\\ea8c"}),ue.symbolConstructor=new ue("symbol-constructor",{fontCharacter:"\\ea8c"}),ue.symbolBoolean=new ue("symbol-boolean",{fontCharacter:"\\ea8f"}),ue.symbolNull=new ue("symbol-null",{fontCharacter:"\\ea8f"}),ue.symbolNumeric=new ue("symbol-numeric",{fontCharacter:"\\ea90"}),ue.symbolNumber=new ue("symbol-number",{fontCharacter:"\\ea90"}),ue.symbolStructure=new ue("symbol-structure",{fontCharacter:"\\ea91"}),ue.symbolStruct=new ue("symbol-struct",{fontCharacter:"\\ea91"}),ue.symbolParameter=new ue("symbol-parameter",{fontCharacter:"\\ea92"}),ue.symbolTypeParameter=new ue("symbol-type-parameter",{fontCharacter:"\\ea92"}),ue.symbolKey=new ue("symbol-key",{fontCharacter:"\\ea93"}),ue.symbolText=new ue("symbol-text",{fontCharacter:"\\ea93"}),ue.symbolReference=new ue("symbol-reference",{fontCharacter:"\\ea94"}),ue.goToFile=new ue("go-to-file",{fontCharacter:"\\ea94"}),ue.symbolEnum=new ue("symbol-enum",{fontCharacter:"\\ea95"}),ue.symbolValue=new ue("symbol-value",{fontCharacter:"\\ea95"}),ue.symbolRuler=new ue("symbol-ruler",{fontCharacter:"\\ea96"}),ue.symbolUnit=new ue("symbol-unit",{fontCharacter:"\\ea96"}),ue.activateBreakpoints=new ue("activate-breakpoints",{fontCharacter:"\\ea97"}),ue.archive=new ue("archive",{fontCharacter:"\\ea98"}),ue.arrowBoth=new ue("arrow-both",{fontCharacter:"\\ea99"}),ue.arrowDown=new ue("arrow-down",{fontCharacter:"\\ea9a"}),ue.arrowLeft=new ue("arrow-left",{fontCharacter:"\\ea9b"}),ue.arrowRight=new ue("arrow-right",{fontCharacter:"\\ea9c"}),ue.arrowSmallDown=new ue("arrow-small-down",{fontCharacter:"\\ea9d"}),ue.arrowSmallLeft=new ue("arrow-small-left",{fontCharacter:"\\ea9e"}),ue.arrowSmallRight=new ue("arrow-small-right",{fontCharacter:"\\ea9f"}),ue.arrowSmallUp=new ue("arrow-small-up",{fontCharacter:"\\eaa0"}),ue.arrowUp=new ue("arrow-up",{fontCharacter:"\\eaa1"}),ue.bell=new ue("bell",{fontCharacter:"\\eaa2"}),ue.bold=new ue("bold",{fontCharacter:"\\eaa3"}),ue.book=new ue("book",{fontCharacter:"\\eaa4"}),ue.bookmark=new ue("bookmark",{fontCharacter:"\\eaa5"}),ue.debugBreakpointConditionalUnverified=new ue("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),ue.debugBreakpointConditional=new ue("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),ue.debugBreakpointConditionalDisabled=new ue("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),ue.debugBreakpointDataUnverified=new ue("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),ue.debugBreakpointData=new ue("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),ue.debugBreakpointDataDisabled=new ue("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),ue.debugBreakpointLogUnverified=new ue("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),ue.debugBreakpointLog=new ue("debug-breakpoint-log",{fontCharacter:"\\eaab"}),ue.debugBreakpointLogDisabled=new ue("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),ue.briefcase=new ue("briefcase",{fontCharacter:"\\eaac"}),ue.broadcast=new ue("broadcast",{fontCharacter:"\\eaad"}),ue.browser=new ue("browser",{fontCharacter:"\\eaae"}),ue.bug=new ue("bug",{fontCharacter:"\\eaaf"}),ue.calendar=new ue("calendar",{fontCharacter:"\\eab0"}),ue.caseSensitive=new ue("case-sensitive",{fontCharacter:"\\eab1"}),ue.check=new ue("check",{fontCharacter:"\\eab2"}),ue.checklist=new ue("checklist",{fontCharacter:"\\eab3"}),ue.chevronDown=new ue("chevron-down",{fontCharacter:"\\eab4"}),ue.dropDownButton=new ue("drop-down-button",ue.chevronDown.definition),ue.chevronLeft=new ue("chevron-left",{fontCharacter:"\\eab5"}),ue.chevronRight=new ue("chevron-right",{fontCharacter:"\\eab6"}),ue.chevronUp=new ue("chevron-up",{fontCharacter:"\\eab7"}),ue.chromeClose=new ue("chrome-close",{fontCharacter:"\\eab8"}),ue.chromeMaximize=new ue("chrome-maximize",{fontCharacter:"\\eab9"}),ue.chromeMinimize=new ue("chrome-minimize",{fontCharacter:"\\eaba"}),ue.chromeRestore=new ue("chrome-restore",{fontCharacter:"\\eabb"}),ue.circleOutline=new ue("circle-outline",{fontCharacter:"\\eabc"}),ue.debugBreakpointUnverified=new ue("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),ue.circleSlash=new ue("circle-slash",{fontCharacter:"\\eabd"}),ue.circuitBoard=new ue("circuit-board",{fontCharacter:"\\eabe"}),ue.clearAll=new ue("clear-all",{fontCharacter:"\\eabf"}),ue.clippy=new ue("clippy",{fontCharacter:"\\eac0"}),ue.closeAll=new ue("close-all",{fontCharacter:"\\eac1"}),ue.cloudDownload=new ue("cloud-download",{fontCharacter:"\\eac2"}),ue.cloudUpload=new ue("cloud-upload",{fontCharacter:"\\eac3"}),ue.code=new ue("code",{fontCharacter:"\\eac4"}),ue.collapseAll=new ue("collapse-all",{fontCharacter:"\\eac5"}),ue.colorMode=new ue("color-mode",{fontCharacter:"\\eac6"}),ue.commentDiscussion=new ue("comment-discussion",{fontCharacter:"\\eac7"}),ue.compareChanges=new ue("compare-changes",{fontCharacter:"\\eafd"}),ue.creditCard=new ue("credit-card",{fontCharacter:"\\eac9"}),ue.dash=new ue("dash",{fontCharacter:"\\eacc"}),ue.dashboard=new ue("dashboard",{fontCharacter:"\\eacd"}),ue.database=new ue("database",{fontCharacter:"\\eace"}),ue.debugContinue=new ue("debug-continue",{fontCharacter:"\\eacf"}),ue.debugDisconnect=new ue("debug-disconnect",{fontCharacter:"\\ead0"}),ue.debugPause=new ue("debug-pause",{fontCharacter:"\\ead1"}),ue.debugRestart=new ue("debug-restart",{fontCharacter:"\\ead2"}),ue.debugStart=new ue("debug-start",{fontCharacter:"\\ead3"}),ue.debugStepInto=new ue("debug-step-into",{fontCharacter:"\\ead4"}),ue.debugStepOut=new ue("debug-step-out",{fontCharacter:"\\ead5"}),ue.debugStepOver=new ue("debug-step-over",{fontCharacter:"\\ead6"}),ue.debugStop=new ue("debug-stop",{fontCharacter:"\\ead7"}),ue.debug=new ue("debug",{fontCharacter:"\\ead8"}),ue.deviceCameraVideo=new ue("device-camera-video",{fontCharacter:"\\ead9"}),ue.deviceCamera=new ue("device-camera",{fontCharacter:"\\eada"}),ue.deviceMobile=new ue("device-mobile",{fontCharacter:"\\eadb"}),ue.diffAdded=new ue("diff-added",{fontCharacter:"\\eadc"}),ue.diffIgnored=new ue("diff-ignored",{fontCharacter:"\\eadd"}),ue.diffModified=new ue("diff-modified",{fontCharacter:"\\eade"}),ue.diffRemoved=new ue("diff-removed",{fontCharacter:"\\eadf"}),ue.diffRenamed=new ue("diff-renamed",{fontCharacter:"\\eae0"}),ue.diff=new ue("diff",{fontCharacter:"\\eae1"}),ue.discard=new ue("discard",{fontCharacter:"\\eae2"}),ue.editorLayout=new ue("editor-layout",{fontCharacter:"\\eae3"}),ue.emptyWindow=new ue("empty-window",{fontCharacter:"\\eae4"}),ue.exclude=new ue("exclude",{fontCharacter:"\\eae5"}),ue.extensions=new ue("extensions",{fontCharacter:"\\eae6"}),ue.eyeClosed=new ue("eye-closed",{fontCharacter:"\\eae7"}),ue.fileBinary=new ue("file-binary",{fontCharacter:"\\eae8"}),ue.fileCode=new ue("file-code",{fontCharacter:"\\eae9"}),ue.fileMedia=new ue("file-media",{fontCharacter:"\\eaea"}),ue.filePdf=new ue("file-pdf",{fontCharacter:"\\eaeb"}),ue.fileSubmodule=new ue("file-submodule",{fontCharacter:"\\eaec"}),ue.fileSymlinkDirectory=new ue("file-symlink-directory",{fontCharacter:"\\eaed"}),ue.fileSymlinkFile=new ue("file-symlink-file",{fontCharacter:"\\eaee"}),ue.fileZip=new ue("file-zip",{fontCharacter:"\\eaef"}),ue.files=new ue("files",{fontCharacter:"\\eaf0"}),ue.filter=new ue("filter",{fontCharacter:"\\eaf1"}),ue.flame=new ue("flame",{fontCharacter:"\\eaf2"}),ue.foldDown=new ue("fold-down",{fontCharacter:"\\eaf3"}),ue.foldUp=new ue("fold-up",{fontCharacter:"\\eaf4"}),ue.fold=new ue("fold",{fontCharacter:"\\eaf5"}),ue.folderActive=new ue("folder-active",{fontCharacter:"\\eaf6"}),ue.folderOpened=new ue("folder-opened",{fontCharacter:"\\eaf7"}),ue.gear=new ue("gear",{fontCharacter:"\\eaf8"}),ue.gift=new ue("gift",{fontCharacter:"\\eaf9"}),ue.gistSecret=new ue("gist-secret",{fontCharacter:"\\eafa"}),ue.gist=new ue("gist",{fontCharacter:"\\eafb"}),ue.gitCommit=new ue("git-commit",{fontCharacter:"\\eafc"}),ue.gitCompare=new ue("git-compare",{fontCharacter:"\\eafd"}),ue.gitMerge=new ue("git-merge",{fontCharacter:"\\eafe"}),ue.githubAction=new ue("github-action",{fontCharacter:"\\eaff"}),ue.githubAlt=new ue("github-alt",{fontCharacter:"\\eb00"}),ue.globe=new ue("globe",{fontCharacter:"\\eb01"}),ue.grabber=new ue("grabber",{fontCharacter:"\\eb02"}),ue.graph=new ue("graph",{fontCharacter:"\\eb03"}),ue.gripper=new ue("gripper",{fontCharacter:"\\eb04"}),ue.heart=new ue("heart",{fontCharacter:"\\eb05"}),ue.home=new ue("home",{fontCharacter:"\\eb06"}),ue.horizontalRule=new ue("horizontal-rule",{fontCharacter:"\\eb07"}),ue.hubot=new ue("hubot",{fontCharacter:"\\eb08"}),ue.inbox=new ue("inbox",{fontCharacter:"\\eb09"}),ue.issueClosed=new ue("issue-closed",{fontCharacter:"\\eba4"}),ue.issueReopened=new ue("issue-reopened",{fontCharacter:"\\eb0b"}),ue.issues=new ue("issues",{fontCharacter:"\\eb0c"}),ue.italic=new ue("italic",{fontCharacter:"\\eb0d"}),ue.jersey=new ue("jersey",{fontCharacter:"\\eb0e"}),ue.json=new ue("json",{fontCharacter:"\\eb0f"}),ue.kebabVertical=new ue("kebab-vertical",{fontCharacter:"\\eb10"}),ue.key=new ue("key",{fontCharacter:"\\eb11"}),ue.law=new ue("law",{fontCharacter:"\\eb12"}),ue.lightbulbAutofix=new ue("lightbulb-autofix",{fontCharacter:"\\eb13"}),ue.linkExternal=new ue("link-external",{fontCharacter:"\\eb14"}),ue.link=new ue("link",{fontCharacter:"\\eb15"}),ue.listOrdered=new ue("list-ordered",{fontCharacter:"\\eb16"}),ue.listUnordered=new ue("list-unordered",{fontCharacter:"\\eb17"}),ue.liveShare=new ue("live-share",{fontCharacter:"\\eb18"}),ue.loading=new ue("loading",{fontCharacter:"\\eb19"}),ue.location=new ue("location",{fontCharacter:"\\eb1a"}),ue.mailRead=new ue("mail-read",{fontCharacter:"\\eb1b"}),ue.mail=new ue("mail",{fontCharacter:"\\eb1c"}),ue.markdown=new ue("markdown",{fontCharacter:"\\eb1d"}),ue.megaphone=new ue("megaphone",{fontCharacter:"\\eb1e"}),ue.mention=new ue("mention",{fontCharacter:"\\eb1f"}),ue.milestone=new ue("milestone",{fontCharacter:"\\eb20"}),ue.mortarBoard=new ue("mortar-board",{fontCharacter:"\\eb21"}),ue.move=new ue("move",{fontCharacter:"\\eb22"}),ue.multipleWindows=new ue("multiple-windows",{fontCharacter:"\\eb23"}),ue.mute=new ue("mute",{fontCharacter:"\\eb24"}),ue.noNewline=new ue("no-newline",{fontCharacter:"\\eb25"}),ue.note=new ue("note",{fontCharacter:"\\eb26"}),ue.octoface=new ue("octoface",{fontCharacter:"\\eb27"}),ue.openPreview=new ue("open-preview",{fontCharacter:"\\eb28"}),ue.package_=new ue("package",{fontCharacter:"\\eb29"}),ue.paintcan=new ue("paintcan",{fontCharacter:"\\eb2a"}),ue.pin=new ue("pin",{fontCharacter:"\\eb2b"}),ue.play=new ue("play",{fontCharacter:"\\eb2c"}),ue.run=new ue("run",{fontCharacter:"\\eb2c"}),ue.plug=new ue("plug",{fontCharacter:"\\eb2d"}),ue.preserveCase=new ue("preserve-case",{fontCharacter:"\\eb2e"}),ue.preview=new ue("preview",{fontCharacter:"\\eb2f"}),ue.project=new ue("project",{fontCharacter:"\\eb30"}),ue.pulse=new ue("pulse",{fontCharacter:"\\eb31"}),ue.question=new ue("question",{fontCharacter:"\\eb32"}),ue.quote=new ue("quote",{fontCharacter:"\\eb33"}),ue.radioTower=new ue("radio-tower",{fontCharacter:"\\eb34"}),ue.reactions=new ue("reactions",{fontCharacter:"\\eb35"}),ue.references=new ue("references",{fontCharacter:"\\eb36"}),ue.refresh=new ue("refresh",{fontCharacter:"\\eb37"}),ue.regex=new ue("regex",{fontCharacter:"\\eb38"}),ue.remoteExplorer=new ue("remote-explorer",{fontCharacter:"\\eb39"}),ue.remote=new ue("remote",{fontCharacter:"\\eb3a"}),ue.remove=new ue("remove",{fontCharacter:"\\eb3b"}),ue.replaceAll=new ue("replace-all",{fontCharacter:"\\eb3c"}),ue.replace=new ue("replace",{fontCharacter:"\\eb3d"}),ue.repoClone=new ue("repo-clone",{fontCharacter:"\\eb3e"}),ue.repoForcePush=new ue("repo-force-push",{fontCharacter:"\\eb3f"}),ue.repoPull=new ue("repo-pull",{fontCharacter:"\\eb40"}),ue.repoPush=new ue("repo-push",{fontCharacter:"\\eb41"}),ue.report=new ue("report",{fontCharacter:"\\eb42"}),ue.requestChanges=new ue("request-changes",{fontCharacter:"\\eb43"}),ue.rocket=new ue("rocket",{fontCharacter:"\\eb44"}),ue.rootFolderOpened=new ue("root-folder-opened",{fontCharacter:"\\eb45"}),ue.rootFolder=new ue("root-folder",{fontCharacter:"\\eb46"}),ue.rss=new ue("rss",{fontCharacter:"\\eb47"}),ue.ruby=new ue("ruby",{fontCharacter:"\\eb48"}),ue.saveAll=new ue("save-all",{fontCharacter:"\\eb49"}),ue.saveAs=new ue("save-as",{fontCharacter:"\\eb4a"}),ue.save=new ue("save",{fontCharacter:"\\eb4b"}),ue.screenFull=new ue("screen-full",{fontCharacter:"\\eb4c"}),ue.screenNormal=new ue("screen-normal",{fontCharacter:"\\eb4d"}),ue.searchStop=new ue("search-stop",{fontCharacter:"\\eb4e"}),ue.server=new ue("server",{fontCharacter:"\\eb50"}),ue.settingsGear=new ue("settings-gear",{fontCharacter:"\\eb51"}),ue.settings=new ue("settings",{fontCharacter:"\\eb52"}),ue.shield=new ue("shield",{fontCharacter:"\\eb53"}),ue.smiley=new ue("smiley",{fontCharacter:"\\eb54"}),ue.sortPrecedence=new ue("sort-precedence",{fontCharacter:"\\eb55"}),ue.splitHorizontal=new ue("split-horizontal",{fontCharacter:"\\eb56"}),ue.splitVertical=new ue("split-vertical",{fontCharacter:"\\eb57"}),ue.squirrel=new ue("squirrel",{fontCharacter:"\\eb58"}),ue.starFull=new ue("star-full",{fontCharacter:"\\eb59"}),ue.starHalf=new ue("star-half",{fontCharacter:"\\eb5a"}),ue.symbolClass=new ue("symbol-class",{fontCharacter:"\\eb5b"}),ue.symbolColor=new ue("symbol-color",{fontCharacter:"\\eb5c"}),ue.symbolCustomColor=new ue("symbol-customcolor",{fontCharacter:"\\eb5c"}),ue.symbolConstant=new ue("symbol-constant",{fontCharacter:"\\eb5d"}),ue.symbolEnumMember=new ue("symbol-enum-member",{fontCharacter:"\\eb5e"}),ue.symbolField=new ue("symbol-field",{fontCharacter:"\\eb5f"}),ue.symbolFile=new ue("symbol-file",{fontCharacter:"\\eb60"}),ue.symbolInterface=new ue("symbol-interface",{fontCharacter:"\\eb61"}),ue.symbolKeyword=new ue("symbol-keyword",{fontCharacter:"\\eb62"}),ue.symbolMisc=new ue("symbol-misc",{fontCharacter:"\\eb63"}),ue.symbolOperator=new ue("symbol-operator",{fontCharacter:"\\eb64"}),ue.symbolProperty=new ue("symbol-property",{fontCharacter:"\\eb65"}),ue.wrench=new ue("wrench",{fontCharacter:"\\eb65"}),ue.wrenchSubaction=new ue("wrench-subaction",{fontCharacter:"\\eb65"}),ue.symbolSnippet=new ue("symbol-snippet",{fontCharacter:"\\eb66"}),ue.tasklist=new ue("tasklist",{fontCharacter:"\\eb67"}),ue.telescope=new ue("telescope",{fontCharacter:"\\eb68"}),ue.textSize=new ue("text-size",{fontCharacter:"\\eb69"}),ue.threeBars=new ue("three-bars",{fontCharacter:"\\eb6a"}),ue.thumbsdown=new ue("thumbsdown",{fontCharacter:"\\eb6b"}),ue.thumbsup=new ue("thumbsup",{fontCharacter:"\\eb6c"}),ue.tools=new ue("tools",{fontCharacter:"\\eb6d"}),ue.triangleDown=new ue("triangle-down",{fontCharacter:"\\eb6e"}),ue.triangleLeft=new ue("triangle-left",{fontCharacter:"\\eb6f"}),ue.triangleRight=new ue("triangle-right",{fontCharacter:"\\eb70"}),ue.triangleUp=new ue("triangle-up",{fontCharacter:"\\eb71"}),ue.twitter=new ue("twitter",{fontCharacter:"\\eb72"}),ue.unfold=new ue("unfold",{fontCharacter:"\\eb73"}),ue.unlock=new ue("unlock",{fontCharacter:"\\eb74"}),ue.unmute=new ue("unmute",{fontCharacter:"\\eb75"}),ue.unverified=new ue("unverified",{fontCharacter:"\\eb76"}),ue.verified=new ue("verified",{fontCharacter:"\\eb77"}),ue.versions=new ue("versions",{fontCharacter:"\\eb78"}),ue.vmActive=new ue("vm-active",{fontCharacter:"\\eb79"}),ue.vmOutline=new ue("vm-outline",{fontCharacter:"\\eb7a"}),ue.vmRunning=new ue("vm-running",{fontCharacter:"\\eb7b"}),ue.watch=new ue("watch",{fontCharacter:"\\eb7c"}),ue.whitespace=new ue("whitespace",{fontCharacter:"\\eb7d"}),ue.wholeWord=new ue("whole-word",{fontCharacter:"\\eb7e"}),ue.window=new ue("window",{fontCharacter:"\\eb7f"}),ue.wordWrap=new ue("word-wrap",{fontCharacter:"\\eb80"}),ue.zoomIn=new ue("zoom-in",{fontCharacter:"\\eb81"}),ue.zoomOut=new ue("zoom-out",{fontCharacter:"\\eb82"}),ue.listFilter=new ue("list-filter",{fontCharacter:"\\eb83"}),ue.listFlat=new ue("list-flat",{fontCharacter:"\\eb84"}),ue.listSelection=new ue("list-selection",{fontCharacter:"\\eb85"}),ue.selection=new ue("selection",{fontCharacter:"\\eb85"}),ue.listTree=new ue("list-tree",{fontCharacter:"\\eb86"}),ue.debugBreakpointFunctionUnverified=new ue("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),ue.debugBreakpointFunction=new ue("debug-breakpoint-function",{fontCharacter:"\\eb88"}),ue.debugBreakpointFunctionDisabled=new ue("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),ue.debugStackframeActive=new ue("debug-stackframe-active",{fontCharacter:"\\eb89"}),ue.circleSmallFilled=new ue("circle-small-filled",{fontCharacter:"\\eb8a"}),ue.debugStackframeDot=new ue("debug-stackframe-dot",ue.circleSmallFilled.definition),ue.debugStackframe=new ue("debug-stackframe",{fontCharacter:"\\eb8b"}),ue.debugStackframeFocused=new ue("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),ue.debugBreakpointUnsupported=new ue("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),ue.symbolString=new ue("symbol-string",{fontCharacter:"\\eb8d"}),ue.debugReverseContinue=new ue("debug-reverse-continue",{fontCharacter:"\\eb8e"}),ue.debugStepBack=new ue("debug-step-back",{fontCharacter:"\\eb8f"}),ue.debugRestartFrame=new ue("debug-restart-frame",{fontCharacter:"\\eb90"}),ue.callIncoming=new ue("call-incoming",{fontCharacter:"\\eb92"}),ue.callOutgoing=new ue("call-outgoing",{fontCharacter:"\\eb93"}),ue.menu=new ue("menu",{fontCharacter:"\\eb94"}),ue.expandAll=new ue("expand-all",{fontCharacter:"\\eb95"}),ue.feedback=new ue("feedback",{fontCharacter:"\\eb96"}),ue.groupByRefType=new ue("group-by-ref-type",{fontCharacter:"\\eb97"}),ue.ungroupByRefType=new ue("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),ue.account=new ue("account",{fontCharacter:"\\eb99"}),ue.bellDot=new ue("bell-dot",{fontCharacter:"\\eb9a"}),ue.debugConsole=new ue("debug-console",{fontCharacter:"\\eb9b"}),ue.library=new ue("library",{fontCharacter:"\\eb9c"}),ue.output=new ue("output",{fontCharacter:"\\eb9d"}),ue.runAll=new ue("run-all",{fontCharacter:"\\eb9e"}),ue.syncIgnored=new ue("sync-ignored",{fontCharacter:"\\eb9f"}),ue.pinned=new ue("pinned",{fontCharacter:"\\eba0"}),ue.githubInverted=new ue("github-inverted",{fontCharacter:"\\eba1"}),ue.debugAlt=new ue("debug-alt",{fontCharacter:"\\eb91"}),ue.serverProcess=new ue("server-process",{fontCharacter:"\\eba2"}),ue.serverEnvironment=new ue("server-environment",{fontCharacter:"\\eba3"}),ue.pass=new ue("pass",{fontCharacter:"\\eba4"}),ue.stopCircle=new ue("stop-circle",{fontCharacter:"\\eba5"}),ue.playCircle=new ue("play-circle",{fontCharacter:"\\eba6"}),ue.record=new ue("record",{fontCharacter:"\\eba7"}),ue.debugAltSmall=new ue("debug-alt-small",{fontCharacter:"\\eba8"}),ue.vmConnect=new ue("vm-connect",{fontCharacter:"\\eba9"}),ue.cloud=new ue("cloud",{fontCharacter:"\\ebaa"}),ue.merge=new ue("merge",{fontCharacter:"\\ebab"}),ue.exportIcon=new ue("export",{fontCharacter:"\\ebac"}),ue.graphLeft=new ue("graph-left",{fontCharacter:"\\ebad"}),ue.magnet=new ue("magnet",{fontCharacter:"\\ebae"}),ue.notebook=new ue("notebook",{fontCharacter:"\\ebaf"}),ue.redo=new ue("redo",{fontCharacter:"\\ebb0"}),ue.checkAll=new ue("check-all",{fontCharacter:"\\ebb1"}),ue.pinnedDirty=new ue("pinned-dirty",{fontCharacter:"\\ebb2"}),ue.passFilled=new ue("pass-filled",{fontCharacter:"\\ebb3"}),ue.circleLargeFilled=new ue("circle-large-filled",{fontCharacter:"\\ebb4"}),ue.circleLargeOutline=new ue("circle-large-outline",{fontCharacter:"\\ebb5"}),ue.combine=new ue("combine",{fontCharacter:"\\ebb6"}),ue.gather=new ue("gather",{fontCharacter:"\\ebb6"}),ue.table=new ue("table",{fontCharacter:"\\ebb7"}),ue.variableGroup=new ue("variable-group",{fontCharacter:"\\ebb8"}),ue.typeHierarchy=new ue("type-hierarchy",{fontCharacter:"\\ebb9"}),ue.typeHierarchySub=new ue("type-hierarchy-sub",{fontCharacter:"\\ebba"}),ue.typeHierarchySuper=new ue("type-hierarchy-super",{fontCharacter:"\\ebbb"}),ue.gitPullRequestCreate=new ue("git-pull-request-create",{fontCharacter:"\\ebbc"}),ue.runAbove=new ue("run-above",{fontCharacter:"\\ebbd"}),ue.runBelow=new ue("run-below",{fontCharacter:"\\ebbe"}),ue.notebookTemplate=new ue("notebook-template",{fontCharacter:"\\ebbf"}),ue.debugRerun=new ue("debug-rerun",{fontCharacter:"\\ebc0"}),ue.workspaceTrusted=new ue("workspace-trusted",{fontCharacter:"\\ebc1"}),ue.workspaceUntrusted=new ue("workspace-untrusted",{fontCharacter:"\\ebc2"}),ue.workspaceUnspecified=new ue("workspace-unspecified",{fontCharacter:"\\ebc3"}),ue.terminalCmd=new ue("terminal-cmd",{fontCharacter:"\\ebc4"}),ue.terminalDebian=new ue("terminal-debian",{fontCharacter:"\\ebc5"}),ue.terminalLinux=new ue("terminal-linux",{fontCharacter:"\\ebc6"}),ue.terminalPowershell=new ue("terminal-powershell",{fontCharacter:"\\ebc7"}),ue.terminalTmux=new ue("terminal-tmux",{fontCharacter:"\\ebc8"}),ue.terminalUbuntu=new ue("terminal-ubuntu",{fontCharacter:"\\ebc9"}),ue.terminalBash=new ue("terminal-bash",{fontCharacter:"\\ebca"}),ue.arrowSwap=new ue("arrow-swap",{fontCharacter:"\\ebcb"}),ue.copy=new ue("copy",{fontCharacter:"\\ebcc"}),ue.personAdd=new ue("person-add",{fontCharacter:"\\ebcd"}),ue.filterFilled=new ue("filter-filled",{fontCharacter:"\\ebce"}),ue.wand=new ue("wand",{fontCharacter:"\\ebcf"}),ue.debugLineByLine=new ue("debug-line-by-line",{fontCharacter:"\\ebd0"}),ue.inspect=new ue("inspect",{fontCharacter:"\\ebd1"}),ue.layers=new ue("layers",{fontCharacter:"\\ebd2"}),ue.layersDot=new ue("layers-dot",{fontCharacter:"\\ebd3"}),ue.layersActive=new ue("layers-active",{fontCharacter:"\\ebd4"}),ue.compass=new ue("compass",{fontCharacter:"\\ebd5"}),ue.compassDot=new ue("compass-dot",{fontCharacter:"\\ebd6"}),ue.compassActive=new ue("compass-active",{fontCharacter:"\\ebd7"}),ue.azure=new ue("azure",{fontCharacter:"\\ebd8"}),ue.issueDraft=new ue("issue-draft",{fontCharacter:"\\ebd9"}),ue.gitPullRequestClosed=new ue("git-pull-request-closed",{fontCharacter:"\\ebda"}),ue.gitPullRequestDraft=new ue("git-pull-request-draft",{fontCharacter:"\\ebdb"}),ue.debugAll=new ue("debug-all",{fontCharacter:"\\ebdc"}),ue.debugCoverage=new ue("debug-coverage",{fontCharacter:"\\ebdd"}),ue.runErrors=new ue("run-errors",{fontCharacter:"\\ebde"}),ue.folderLibrary=new ue("folder-library",{fontCharacter:"\\ebdf"}),ue.debugContinueSmall=new ue("debug-continue-small",{fontCharacter:"\\ebe0"}),ue.beakerStop=new ue("beaker-stop",{fontCharacter:"\\ebe1"}),ue.graphLine=new ue("graph-line",{fontCharacter:"\\ebe2"}),ue.graphScatter=new ue("graph-scatter",{fontCharacter:"\\ebe3"}),ue.pieChart=new ue("pie-chart",{fontCharacter:"\\ebe4"}),ue.bracket=new ue("bracket",ue.json.definition),ue.bracketDot=new ue("bracket-dot",{fontCharacter:"\\ebe5"}),ue.bracketError=new ue("bracket-error",{fontCharacter:"\\ebe6"}),ue.lockSmall=new ue("lock-small",{fontCharacter:"\\ebe7"}),ue.azureDevops=new ue("azure-devops",{fontCharacter:"\\ebe8"}),ue.verifiedFilled=new ue("verified-filled",{fontCharacter:"\\ebe9"}),ue.newLine=new ue("newline",{fontCharacter:"\\ebea"}),ue.layout=new ue("layout",{fontCharacter:"\\ebeb"}),ue.layoutActivitybarLeft=new ue("layout-activitybar-left",{fontCharacter:"\\ebec"}),ue.layoutActivitybarRight=new ue("layout-activitybar-right",{fontCharacter:"\\ebed"}),ue.layoutPanelLeft=new ue("layout-panel-left",{fontCharacter:"\\ebee"}),ue.layoutPanelCenter=new ue("layout-panel-center",{fontCharacter:"\\ebef"}),ue.layoutPanelJustify=new ue("layout-panel-justify",{fontCharacter:"\\ebf0"}),ue.layoutPanelRight=new ue("layout-panel-right",{fontCharacter:"\\ebf1"}),ue.layoutPanel=new ue("layout-panel",{fontCharacter:"\\ebf2"}),ue.layoutSidebarLeft=new ue("layout-sidebar-left",{fontCharacter:"\\ebf3"}),ue.layoutSidebarRight=new ue("layout-sidebar-right",{fontCharacter:"\\ebf4"}),ue.layoutStatusbar=new ue("layout-statusbar",{fontCharacter:"\\ebf5"}),ue.layoutMenubar=new ue("layout-menubar",{fontCharacter:"\\ebf6"}),ue.layoutCentered=new ue("layout-centered",{fontCharacter:"\\ebf7"}),ue.layoutSidebarRightOff=new ue("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),ue.layoutPanelOff=new ue("layout-panel-off",{fontCharacter:"\\ec01"}),ue.layoutSidebarLeftOff=new ue("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),ue.target=new ue("target",{fontCharacter:"\\ebf8"}),ue.indent=new ue("indent",{fontCharacter:"\\ebf9"}),ue.recordSmall=new ue("record-small",{fontCharacter:"\\ebfa"}),ue.errorSmall=new ue("error-small",{fontCharacter:"\\ebfb"}),ue.arrowCircleDown=new ue("arrow-circle-down",{fontCharacter:"\\ebfc"}),ue.arrowCircleLeft=new ue("arrow-circle-left",{fontCharacter:"\\ebfd"}),ue.arrowCircleRight=new ue("arrow-circle-right",{fontCharacter:"\\ebfe"}),ue.arrowCircleUp=new ue("arrow-circle-up",{fontCharacter:"\\ebff"}),ue.heartFilled=new ue("heart-filled",{fontCharacter:"\\ec04"}),ue.map=new ue("map",{fontCharacter:"\\ec05"}),ue.mapFilled=new ue("map-filled",{fontCharacter:"\\ec06"}),ue.circleSmall=new ue("circle-small",{fontCharacter:"\\ec07"}),ue.bellSlash=new ue("bell-slash",{fontCharacter:"\\ec08"}),ue.bellSlashDot=new ue("bell-slash-dot",{fontCharacter:"\\ec09"}),ue.commentUnresolved=new ue("comment-unresolved",{fontCharacter:"\\ec0a"}),ue.gitPullRequestGoToChanges=new ue("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),ue.gitPullRequestNewChanges=new ue("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),ue.dialogError=new ue("dialog-error",ue.error.definition),ue.dialogWarning=new ue("dialog-warning",ue.warning.definition),ue.dialogInfo=new ue("dialog-info",ue.info.definition),ue.dialogClose=new ue("dialog-close",ue.close.definition),ue.treeItemExpanded=new ue("tree-item-expanded",ue.chevronDown.definition),ue.treeFilterOnTypeOn=new ue("tree-filter-on-type-on",ue.listFilter.definition),ue.treeFilterOnTypeOff=new ue("tree-filter-on-type-off",ue.listSelection.definition),ue.treeFilterClear=new ue("tree-filter-clear",ue.close.definition),ue.treeItemLoading=new ue("tree-item-loading",ue.loading.definition),ue.menuSelection=new ue("menu-selection",ue.check.definition),ue.menuSubmenu=new ue("menu-submenu",ue.chevronRight.definition),ue.menuBarMore=new ue("menubar-more",ue.more.definition),ue.scrollbarButtonLeft=new ue("scrollbar-button-left",ue.triangleLeft.definition),ue.scrollbarButtonRight=new ue("scrollbar-button-right",ue.triangleRight.definition),ue.scrollbarButtonUp=new ue("scrollbar-button-up",ue.triangleUp.definition),ue.scrollbarButtonDown=new ue("scrollbar-button-down",ue.triangleDown.definition),ue.toolBarMore=new ue("toolbar-more",ue.more.definition),ue.quickInputBack=new ue("quick-input-back",ue.arrowLeft.definition);var SD;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";const n=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function c(p){if(p instanceof ue)return["codicon","codicon-"+p.id];const I=n.exec(p.id);if(!I)return c(ue.error);const[,V,L]=I,m=["codicon","codicon-"+V];return L&&m.push("codicon-modifier-"+L.substr(1)),m}e.asClassNameArray=c;function u(p){return c(p).join(" ")}e.asClassName=u;function g(p){return"."+c(p).join(".")}e.asCSSSelector=g})(SD||(SD={}));var i0=function(e,n,c,u){function g(p){return p instanceof c?p:new c(function(I){I(p)})}return new(c||(c=Promise))(function(p,I){function V(y){try{m(u.next(y))}catch(j){I(j)}}function L(y){try{m(u.throw(y))}catch(j){I(j)}}function m(y){y.done?p(y.value):g(y.value).then(V,L)}m((u=u.apply(e,n||[])).next())})};class jO{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new hp,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(n){this._onDidChange.fire({changedLanguages:n,changedColorMap:!1})}register(n,c){return this._map.set(n,c),this.fire([n]),by(()=>{this._map.get(n)===c&&(this._map.delete(n),this.fire([n]))})}registerFactory(n,c){var u;(u=this._factories.get(n))===null||u===void 0||u.dispose();const g=new HO(this,n,c);return this._factories.set(n,g),by(()=>{const p=this._factories.get(n);!p||p!==g||(this._factories.delete(n),p.dispose())})}getOrCreate(n){return i0(this,void 0,void 0,function*(){const c=this.get(n);if(c)return c;const u=this._factories.get(n);return!u||u.isResolved?null:(yield u.resolve(),this.get(n))})}get(n){return this._map.get(n)||null}isResolved(n){if(this.get(n))return!0;const u=this._factories.get(n);return!!(!u||u.isResolved)}setColorMap(n){this._colorMap=n,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class HO extends Jv{constructor(n,c,u){super(),this._registry=n,this._languageId=c,this._factory=u,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return i0(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return i0(this,void 0,void 0,function*(){const n=yield Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,n&&!this._isDisposed&&this._register(this._registry.register(this._languageId,n))})}}class JO{constructor(n,c,u){this._tokenBrand=void 0,this.offset=n,this.type=c,this.language=u}toString(){return"("+this.offset+", "+this.type+")"}}class FG{constructor(n,c){this._tokenizationResultBrand=void 0,this.tokens=n,this.endState=c}}class GG{constructor(n,c){this._encodedTokenizationResultBrand=void 0,this.tokens=n,this.endState=c}}var DD;(function(e){const n=new Map;n.set(0,ue.symbolMethod),n.set(1,ue.symbolFunction),n.set(2,ue.symbolConstructor),n.set(3,ue.symbolField),n.set(4,ue.symbolVariable),n.set(5,ue.symbolClass),n.set(6,ue.symbolStruct),n.set(7,ue.symbolInterface),n.set(8,ue.symbolModule),n.set(9,ue.symbolProperty),n.set(10,ue.symbolEvent),n.set(11,ue.symbolOperator),n.set(12,ue.symbolUnit),n.set(13,ue.symbolValue),n.set(15,ue.symbolEnum),n.set(14,ue.symbolConstant),n.set(15,ue.symbolEnum),n.set(16,ue.symbolEnumMember),n.set(17,ue.symbolKeyword),n.set(27,ue.symbolSnippet),n.set(18,ue.symbolText),n.set(19,ue.symbolColor),n.set(20,ue.symbolFile),n.set(21,ue.symbolReference),n.set(22,ue.symbolCustomColor),n.set(23,ue.symbolFolder),n.set(24,ue.symbolTypeParameter),n.set(25,ue.account),n.set(26,ue.issues);function c(p){let I=n.get(p);return I||(console.info("No codicon found for CompletionItemKind "+p),I=ue.symbolProperty),I}e.toIcon=c;const u=new Map;u.set("method",0),u.set("function",1),u.set("constructor",2),u.set("field",3),u.set("variable",4),u.set("class",5),u.set("struct",6),u.set("interface",7),u.set("module",8),u.set("property",9),u.set("event",10),u.set("operator",11),u.set("unit",12),u.set("value",13),u.set("constant",14),u.set("enum",15),u.set("enum-member",16),u.set("enumMember",16),u.set("keyword",17),u.set("snippet",27),u.set("text",18),u.set("color",19),u.set("file",20),u.set("reference",21),u.set("customcolor",22),u.set("folder",23),u.set("type-parameter",24),u.set("typeParameter",24),u.set("account",25),u.set("issue",26);function g(p,I){let V=u.get(p);return typeof V=="undefined"&&!I&&(V=9),V}e.fromString=g})(DD||(DD={}));var LD;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(LD||(LD={}));var AD;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(AD||(AD={}));var CD;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(CD||(CD={}));function BG(e){return e&&URI.isUri(e.uri)&&Range.isIRange(e.range)&&(Range.isIRange(e.originSelectionRange)||Range.isIRange(e.targetSelectionRange))}var xD;(function(e){const n=new Map;n.set(0,ue.symbolFile),n.set(1,ue.symbolModule),n.set(2,ue.symbolNamespace),n.set(3,ue.symbolPackage),n.set(4,ue.symbolClass),n.set(5,ue.symbolMethod),n.set(6,ue.symbolProperty),n.set(7,ue.symbolField),n.set(8,ue.symbolConstructor),n.set(9,ue.symbolEnum),n.set(10,ue.symbolInterface),n.set(11,ue.symbolFunction),n.set(12,ue.symbolVariable),n.set(13,ue.symbolConstant),n.set(14,ue.symbolString),n.set(15,ue.symbolNumber),n.set(16,ue.symbolBoolean),n.set(17,ue.symbolArray),n.set(18,ue.symbolObject),n.set(19,ue.symbolKey),n.set(20,ue.symbolNull),n.set(21,ue.symbolEnumMember),n.set(22,ue.symbolStruct),n.set(23,ue.symbolEvent),n.set(24,ue.symbolOperator),n.set(25,ue.symbolTypeParameter);function c(u){let g=n.get(u);return g||(console.info("No codicon found for SymbolKind "+u),g=ue.symbolProperty),g}e.toIcon=c})(xD||(xD={}));class Wg{constructor(n){this.value=n}}Wg.Comment=new Wg("comment"),Wg.Imports=new Wg("imports"),Wg.Region=new Wg("region");var ID;(function(e){function n(c){return!c||typeof c!="object"?!1:typeof c.id=="string"&&typeof c.title=="string"}e.is=n})(ID||(ID={}));var ND;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(ND||(ND={}));const UG=new jO;var kD;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(kD||(kD={}));var OD;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(OD||(OD={}));var RD;(function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(RD||(RD={}));var wD;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(wD||(wD={}));var MD;(function(e){e[e.Deprecated=1]="Deprecated"})(MD||(MD={}));var PD;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(PD||(PD={}));var FD;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(FD||(FD={}));var GD;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(GD||(GD={}));var BD;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(BD||(BD={}));var UD;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(UD||(UD={}));var VD;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(VD||(VD={}));var WD;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.autoClosingBrackets=5]="autoClosingBrackets",e[e.autoClosingDelete=6]="autoClosingDelete",e[e.autoClosingOvertype=7]="autoClosingOvertype",e[e.autoClosingQuotes=8]="autoClosingQuotes",e[e.autoIndent=9]="autoIndent",e[e.automaticLayout=10]="automaticLayout",e[e.autoSurround=11]="autoSurround",e[e.bracketPairColorization=12]="bracketPairColorization",e[e.guides=13]="guides",e[e.codeLens=14]="codeLens",e[e.codeLensFontFamily=15]="codeLensFontFamily",e[e.codeLensFontSize=16]="codeLensFontSize",e[e.colorDecorators=17]="colorDecorators",e[e.columnSelection=18]="columnSelection",e[e.comments=19]="comments",e[e.contextmenu=20]="contextmenu",e[e.copyWithSyntaxHighlighting=21]="copyWithSyntaxHighlighting",e[e.cursorBlinking=22]="cursorBlinking",e[e.cursorSmoothCaretAnimation=23]="cursorSmoothCaretAnimation",e[e.cursorStyle=24]="cursorStyle",e[e.cursorSurroundingLines=25]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=26]="cursorSurroundingLinesStyle",e[e.cursorWidth=27]="cursorWidth",e[e.disableLayerHinting=28]="disableLayerHinting",e[e.disableMonospaceOptimizations=29]="disableMonospaceOptimizations",e[e.domReadOnly=30]="domReadOnly",e[e.dragAndDrop=31]="dragAndDrop",e[e.dropIntoEditor=32]="dropIntoEditor",e[e.emptySelectionClipboard=33]="emptySelectionClipboard",e[e.experimental=34]="experimental",e[e.extraEditorClassName=35]="extraEditorClassName",e[e.fastScrollSensitivity=36]="fastScrollSensitivity",e[e.find=37]="find",e[e.fixedOverflowWidgets=38]="fixedOverflowWidgets",e[e.folding=39]="folding",e[e.foldingStrategy=40]="foldingStrategy",e[e.foldingHighlight=41]="foldingHighlight",e[e.foldingImportsByDefault=42]="foldingImportsByDefault",e[e.foldingMaximumRegions=43]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=44]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=45]="fontFamily",e[e.fontInfo=46]="fontInfo",e[e.fontLigatures=47]="fontLigatures",e[e.fontSize=48]="fontSize",e[e.fontWeight=49]="fontWeight",e[e.formatOnPaste=50]="formatOnPaste",e[e.formatOnType=51]="formatOnType",e[e.glyphMargin=52]="glyphMargin",e[e.gotoLocation=53]="gotoLocation",e[e.hideCursorInOverviewRuler=54]="hideCursorInOverviewRuler",e[e.hover=55]="hover",e[e.inDiffEditor=56]="inDiffEditor",e[e.inlineSuggest=57]="inlineSuggest",e[e.letterSpacing=58]="letterSpacing",e[e.lightbulb=59]="lightbulb",e[e.lineDecorationsWidth=60]="lineDecorationsWidth",e[e.lineHeight=61]="lineHeight",e[e.lineNumbers=62]="lineNumbers",e[e.lineNumbersMinChars=63]="lineNumbersMinChars",e[e.linkedEditing=64]="linkedEditing",e[e.links=65]="links",e[e.matchBrackets=66]="matchBrackets",e[e.minimap=67]="minimap",e[e.mouseStyle=68]="mouseStyle",e[e.mouseWheelScrollSensitivity=69]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=70]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=71]="multiCursorMergeOverlapping",e[e.multiCursorModifier=72]="multiCursorModifier",e[e.multiCursorPaste=73]="multiCursorPaste",e[e.occurrencesHighlight=74]="occurrencesHighlight",e[e.overviewRulerBorder=75]="overviewRulerBorder",e[e.overviewRulerLanes=76]="overviewRulerLanes",e[e.padding=77]="padding",e[e.parameterHints=78]="parameterHints",e[e.peekWidgetDefaultFocus=79]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=80]="definitionLinkOpensInPeek",e[e.quickSuggestions=81]="quickSuggestions",e[e.quickSuggestionsDelay=82]="quickSuggestionsDelay",e[e.readOnly=83]="readOnly",e[e.renameOnType=84]="renameOnType",e[e.renderControlCharacters=85]="renderControlCharacters",e[e.renderFinalNewline=86]="renderFinalNewline",e[e.renderLineHighlight=87]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=88]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=89]="renderValidationDecorations",e[e.renderWhitespace=90]="renderWhitespace",e[e.revealHorizontalRightPadding=91]="revealHorizontalRightPadding",e[e.roundedSelection=92]="roundedSelection",e[e.rulers=93]="rulers",e[e.scrollbar=94]="scrollbar",e[e.scrollBeyondLastColumn=95]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=96]="scrollBeyondLastLine",e[e.scrollPredominantAxis=97]="scrollPredominantAxis",e[e.selectionClipboard=98]="selectionClipboard",e[e.selectionHighlight=99]="selectionHighlight",e[e.selectOnLineNumbers=100]="selectOnLineNumbers",e[e.showFoldingControls=101]="showFoldingControls",e[e.showUnused=102]="showUnused",e[e.snippetSuggestions=103]="snippetSuggestions",e[e.smartSelect=104]="smartSelect",e[e.smoothScrolling=105]="smoothScrolling",e[e.stickyTabStops=106]="stickyTabStops",e[e.stopRenderingLineAfter=107]="stopRenderingLineAfter",e[e.suggest=108]="suggest",e[e.suggestFontSize=109]="suggestFontSize",e[e.suggestLineHeight=110]="suggestLineHeight",e[e.suggestOnTriggerCharacters=111]="suggestOnTriggerCharacters",e[e.suggestSelection=112]="suggestSelection",e[e.tabCompletion=113]="tabCompletion",e[e.tabIndex=114]="tabIndex",e[e.unicodeHighlighting=115]="unicodeHighlighting",e[e.unusualLineTerminators=116]="unusualLineTerminators",e[e.useShadowDOM=117]="useShadowDOM",e[e.useTabStops=118]="useTabStops",e[e.wordSeparators=119]="wordSeparators",e[e.wordWrap=120]="wordWrap",e[e.wordWrapBreakAfterCharacters=121]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=122]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=123]="wordWrapColumn",e[e.wordWrapOverride1=124]="wordWrapOverride1",e[e.wordWrapOverride2=125]="wordWrapOverride2",e[e.wrappingIndent=126]="wrappingIndent",e[e.wrappingStrategy=127]="wrappingStrategy",e[e.showDeprecated=128]="showDeprecated",e[e.inlayHints=129]="inlayHints",e[e.editorClassName=130]="editorClassName",e[e.pixelRatio=131]="pixelRatio",e[e.tabFocusMode=132]="tabFocusMode",e[e.layoutInfo=133]="layoutInfo",e[e.wrappingInfo=134]="wrappingInfo"})(WD||(WD={}));var jD;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(jD||(jD={}));var HD;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(HD||(HD={}));var JD;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(JD||(JD={}));var KD;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(KD||(KD={}));var zD;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(zD||(zD={}));var qD;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(qD||(qD={}));var o0;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.Semicolon=80]="Semicolon",e[e.Equal=81]="Equal",e[e.Comma=82]="Comma",e[e.Minus=83]="Minus",e[e.Period=84]="Period",e[e.Slash=85]="Slash",e[e.Backquote=86]="Backquote",e[e.BracketLeft=87]="BracketLeft",e[e.Backslash=88]="Backslash",e[e.BracketRight=89]="BracketRight",e[e.Quote=90]="Quote",e[e.OEM_8=91]="OEM_8",e[e.IntlBackslash=92]="IntlBackslash",e[e.Numpad0=93]="Numpad0",e[e.Numpad1=94]="Numpad1",e[e.Numpad2=95]="Numpad2",e[e.Numpad3=96]="Numpad3",e[e.Numpad4=97]="Numpad4",e[e.Numpad5=98]="Numpad5",e[e.Numpad6=99]="Numpad6",e[e.Numpad7=100]="Numpad7",e[e.Numpad8=101]="Numpad8",e[e.Numpad9=102]="Numpad9",e[e.NumpadMultiply=103]="NumpadMultiply",e[e.NumpadAdd=104]="NumpadAdd",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=106]="NumpadSubtract",e[e.NumpadDecimal=107]="NumpadDecimal",e[e.NumpadDivide=108]="NumpadDivide",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.AudioVolumeMute=112]="AudioVolumeMute",e[e.AudioVolumeUp=113]="AudioVolumeUp",e[e.AudioVolumeDown=114]="AudioVolumeDown",e[e.BrowserSearch=115]="BrowserSearch",e[e.BrowserHome=116]="BrowserHome",e[e.BrowserBack=117]="BrowserBack",e[e.BrowserForward=118]="BrowserForward",e[e.MediaTrackNext=119]="MediaTrackNext",e[e.MediaTrackPrevious=120]="MediaTrackPrevious",e[e.MediaStop=121]="MediaStop",e[e.MediaPlayPause=122]="MediaPlayPause",e[e.LaunchMediaPlayer=123]="LaunchMediaPlayer",e[e.LaunchMail=124]="LaunchMail",e[e.LaunchApp2=125]="LaunchApp2",e[e.Clear=126]="Clear",e[e.MAX_VALUE=127]="MAX_VALUE"})(o0||(o0={}));var s0;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(s0||(s0={}));var l0;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(l0||(l0={}));var XD;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(XD||(XD={}));var YD;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(YD||(YD={}));var QD;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(QD||(QD={}));var ZD;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ZD||(ZD={}));var $D;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})($D||($D={}));var eL;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(eL||(eL={}));var rL;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(rL||(rL={}));var tL;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(tL||(tL={}));var nL;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(nL||(nL={}));var c0;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(c0||(c0={}));var aL;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(aL||(aL={}));var iL;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(iL||(iL={}));var oL;(function(e){e[e.Deprecated=1]="Deprecated"})(oL||(oL={}));var sL;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(sL||(sL={}));var lL;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(lL||(lL={}));var cL;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(cL||(cL={}));var uL;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(uL||(uL={}));class nh{static chord(n,c){return WO(n,c)}}nh.CtrlCmd=2048,nh.Shift=1024,nh.Alt=512,nh.WinCtrl=256;function KO(){return{editor:void 0,languages:void 0,CancellationTokenSource:PO,Emitter:hp,KeyCode:o0,KeyMod:nh,Position:If,Range:Tl,Selection:od,SelectionDirection:c0,MarkerSeverity:s0,MarkerTag:l0,Uri:Jm,Token:JO}}class zO extends rh{constructor(n){super(0);for(let c=0,u=n.length;c<u;c++)this.set(n.charCodeAt(c),2);this.set(32,1),this.set(9,1)}}function qO(e){const n={};return c=>(n.hasOwnProperty(c)||(n[c]=e(c)),n[c])}const VG=qO(e=>new zO(e));function XO(e){if(!e||typeof e!="object"||e instanceof RegExp)return e;const n=Array.isArray(e)?[]:{};return Object.keys(e).forEach(c=>{e[c]&&typeof e[c]=="object"?n[c]=XO(e[c]):n[c]=e[c]}),n}function WG(e){if(!e||typeof e!="object")return e;const n=[e];for(;n.length>0;){const c=n.shift();Object.freeze(c);for(const u in c)if(fL.call(c,u)){const g=c[u];typeof g=="object"&&!Object.isFrozen(g)&&!isTypedArray(g)&&n.push(g)}}return e}const fL=Object.prototype.hasOwnProperty;function jG(e,n){return u0(e,n,new Set)}function u0(e,n,c){if(isUndefinedOrNull(e))return e;const u=n(e);if(typeof u!="undefined")return u;if(isArray(e)){const g=[];for(const p of e)g.push(u0(p,n,c));return g}if(isObject(e)){if(c.has(e))throw new Error("Cannot clone recursive data-structure");c.add(e);const g={};for(const p in e)fL.call(e,p)&&(g[p]=u0(e[p],n,c));return c.delete(e),g}return e}function YO(e,n,c=!0){return isObject(e)?(isObject(n)&&Object.keys(n).forEach(u=>{u in e?c&&(isObject(e[u])&&isObject(n[u])?YO(e[u],n[u],c):e[u]=n[u]):e[u]=n[u]}),e):n}function f0(e,n){if(e===n)return!0;if(e==null||n===null||n===void 0||typeof e!=typeof n||typeof e!="object"||Array.isArray(e)!==Array.isArray(n))return!1;let c,u;if(Array.isArray(e)){if(e.length!==n.length)return!1;for(c=0;c<e.length;c++)if(!f0(e[c],n[c]))return!1}else{const g=[];for(u in e)g.push(u);g.sort();const p=[];for(u in n)p.push(u);if(p.sort(),!f0(g,p))return!1;for(c=0;c<g.length;c++)if(!f0(e[g[c]],n[g[c]]))return!1}return!0}var dL;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(dL||(dL={}));var pL;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(pL||(pL={}));var _L;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(_L||(_L={}));class HG{constructor(n){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,n.tabSize|0),this.indentSize=n.tabSize|0,this.insertSpaces=Boolean(n.insertSpaces),this.defaultEOL=n.defaultEOL|0,this.trimAutoWhitespace=Boolean(n.trimAutoWhitespace),this.bracketPairColorizationOptions=n.bracketPairColorizationOptions}equals(n){return this.tabSize===n.tabSize&&this.indentSize===n.indentSize&&this.insertSpaces===n.insertSpaces&&this.defaultEOL===n.defaultEOL&&this.trimAutoWhitespace===n.trimAutoWhitespace&&equals(this.bracketPairColorizationOptions,n.bracketPairColorizationOptions)}createChangeEvent(n){return{tabSize:this.tabSize!==n.tabSize,indentSize:this.indentSize!==n.indentSize,insertSpaces:this.insertSpaces!==n.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==n.trimAutoWhitespace}}}class JG{constructor(n,c){this._findMatchBrand=void 0,this.range=n,this.matches=c}}function KG(e){return e&&typeof e.read=="function"}class zG{constructor(n,c,u,g,p,I){this.identifier=n,this.range=c,this.text=u,this.forceMoveMarkers=g,this.isAutoWhitespaceEdit=p,this._isTracked=I}}class qG{constructor(n,c,u){this.regex=n,this.wordSeparators=c,this.simpleSearch=u}}class XG{constructor(n,c,u){this.reverseEdits=n,this.changes=c,this.trimAutoWhitespaceLineNumbers=u}}function YG(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}const QO=999;class QG{constructor(n,c,u,g){this.searchString=n,this.isRegex=c,this.matchCase=u,this.wordSeparators=g}parseSearchRequest(){if(this.searchString==="")return null;let n;this.isRegex?n=ZO(this.searchString):n=this.searchString.indexOf(`
`)>=0;let c=null;try{c=strings.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:n,global:!0,unicode:!0})}catch(g){return null}if(!c)return null;let u=!this.isRegex&&!n;return u&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(u=this.matchCase),new SearchData(c,this.wordSeparators?getMapForWordSeparators(this.wordSeparators):null,u?this.searchString:null)}}function ZO(e){if(!e||e.length===0)return!1;for(let n=0,c=e.length;n<c;n++){const u=e.charCodeAt(n);if(u===10)return!0;if(u===92){if(n++,n>=c)break;const g=e.charCodeAt(n);if(g===110||g===114||g===87)return!0}}return!1}function ah(e,n,c){if(!c)return new FindMatch(e,null);const u=[];for(let g=0,p=n.length;g<p;g++)u[g]=n[g];return new FindMatch(e,u)}class mL{constructor(n){const c=[];let u=0;for(let g=0,p=n.length;g<p;g++)n.charCodeAt(g)===10&&(c[u++]=g);this._lineFeedsOffsets=c}findLineFeedCountBeforeOffset(n){const c=this._lineFeedsOffsets;let u=0,g=c.length-1;if(g===-1||n<=c[0])return 0;for(;u<g;){const p=u+((g-u)/2>>0);c[p]>=n?g=p-1:c[p+1]>=n?(u=p,g=p):u=p+1}return u+1}}class ZG{static findMatches(n,c,u,g,p){const I=c.parseSearchRequest();return I?I.regex.multiline?this._doFindMatchesMultiline(n,u,new ih(I.wordSeparators,I.regex),g,p):this._doFindMatchesLineByLine(n,u,I,g,p):[]}static _getMultilineMatchRange(n,c,u,g,p,I){let V,L=0;g?(L=g.findLineFeedCountBeforeOffset(p),V=c+p+L):V=c+p;let m;if(g){const E=g.findLineFeedCountBeforeOffset(p+I.length)-L;m=V+I.length+E}else m=V+I.length;const y=n.getPositionAt(V),j=n.getPositionAt(m);return new Range(y.lineNumber,y.column,j.lineNumber,j.column)}static _doFindMatchesMultiline(n,c,u,g,p){const I=n.getOffsetAt(c.getStartPosition()),V=n.getValueInRange(c,1),L=n.getEOL()===`\r
`?new mL(V):null,m=[];let y=0,j;for(u.reset(0);j=u.next(V);)if(m[y++]=ah(this._getMultilineMatchRange(n,I,V,L,j.index,j[0]),j,g),y>=p)return m;return m}static _doFindMatchesLineByLine(n,c,u,g,p){const I=[];let V=0;if(c.startLineNumber===c.endLineNumber){const m=n.getLineContent(c.startLineNumber).substring(c.startColumn-1,c.endColumn-1);return V=this._findMatchesInLine(u,m,c.startLineNumber,c.startColumn-1,V,I,g,p),I}const L=n.getLineContent(c.startLineNumber).substring(c.startColumn-1);V=this._findMatchesInLine(u,L,c.startLineNumber,c.startColumn-1,V,I,g,p);for(let m=c.startLineNumber+1;m<c.endLineNumber&&V<p;m++)V=this._findMatchesInLine(u,n.getLineContent(m),m,0,V,I,g,p);if(V<p){const m=n.getLineContent(c.endLineNumber).substring(0,c.endColumn-1);V=this._findMatchesInLine(u,m,c.endLineNumber,0,V,I,g,p)}return I}static _findMatchesInLine(n,c,u,g,p,I,V,L){const m=n.wordSeparators;if(!V&&n.simpleSearch){const te=n.simpleSearch,E=te.length,F=c.length;let $=-E;for(;($=c.indexOf(te,$+E))!==-1;)if((!m||gL(m,c,F,$,E))&&(I[p++]=new FindMatch(new Range(u,$+1+g,u,$+1+E+g),null),p>=L))return p;return p}const y=new ih(n.wordSeparators,n.regex);let j;y.reset(0);do if(j=y.next(c),j&&(I[p++]=ah(new Range(u,j.index+1+g,u,j.index+1+j[0].length+g),j,V),p>=L))return p;while(j);return p}static findNextMatch(n,c,u,g){const p=c.parseSearchRequest();if(!p)return null;const I=new ih(p.wordSeparators,p.regex);return p.regex.multiline?this._doFindNextMatchMultiline(n,u,I,g):this._doFindNextMatchLineByLine(n,u,I,g)}static _doFindNextMatchMultiline(n,c,u,g){const p=new Position(c.lineNumber,1),I=n.getOffsetAt(p),V=n.getLineCount(),L=n.getValueInRange(new Range(p.lineNumber,p.column,V,n.getLineMaxColumn(V)),1),m=n.getEOL()===`\r
`?new mL(L):null;u.reset(c.column-1);const y=u.next(L);return y?ah(this._getMultilineMatchRange(n,I,L,m,y.index,y[0]),y,g):c.lineNumber!==1||c.column!==1?this._doFindNextMatchMultiline(n,new Position(1,1),u,g):null}static _doFindNextMatchLineByLine(n,c,u,g){const p=n.getLineCount(),I=c.lineNumber,V=n.getLineContent(I),L=this._findFirstMatchInLine(u,V,I,c.column,g);if(L)return L;for(let m=1;m<=p;m++){const y=(I+m-1)%p,j=n.getLineContent(y+1),te=this._findFirstMatchInLine(u,j,y+1,1,g);if(te)return te}return null}static _findFirstMatchInLine(n,c,u,g,p){n.reset(g-1);const I=n.next(c);return I?ah(new Range(u,I.index+1,u,I.index+1+I[0].length),I,p):null}static findPreviousMatch(n,c,u,g){const p=c.parseSearchRequest();if(!p)return null;const I=new ih(p.wordSeparators,p.regex);return p.regex.multiline?this._doFindPreviousMatchMultiline(n,u,I,g):this._doFindPreviousMatchLineByLine(n,u,I,g)}static _doFindPreviousMatchMultiline(n,c,u,g){const p=this._doFindMatchesMultiline(n,new Range(1,1,c.lineNumber,c.column),u,g,10*QO);if(p.length>0)return p[p.length-1];const I=n.getLineCount();return c.lineNumber!==I||c.column!==n.getLineMaxColumn(I)?this._doFindPreviousMatchMultiline(n,new Position(I,n.getLineMaxColumn(I)),u,g):null}static _doFindPreviousMatchLineByLine(n,c,u,g){const p=n.getLineCount(),I=c.lineNumber,V=n.getLineContent(I).substring(0,c.column-1),L=this._findLastMatchInLine(u,V,I,g);if(L)return L;for(let m=1;m<=p;m++){const y=(p+I-m-1)%p,j=n.getLineContent(y+1),te=this._findLastMatchInLine(u,j,y+1,g);if(te)return te}return null}static _findLastMatchInLine(n,c,u,g){let p=null,I;for(n.reset(0);I=n.next(c);)p=ah(new Range(u,I.index+1,u,I.index+1+I[0].length),I,g);return p}}function $O(e,n,c,u,g){if(u===0)return!0;const p=n.charCodeAt(u-1);if(e.get(p)!==0||p===13||p===10)return!0;if(g>0){const I=n.charCodeAt(u);if(e.get(I)!==0)return!0}return!1}function eR(e,n,c,u,g){if(u+g===c)return!0;const p=n.charCodeAt(u+g);if(e.get(p)!==0||p===13||p===10)return!0;if(g>0){const I=n.charCodeAt(u+g-1);if(e.get(I)!==0)return!0}return!1}function gL(e,n,c,u,g){return $O(e,n,c,u,g)&&eR(e,n,c,u,g)}class ih{constructor(n,c){this._wordSeparators=n,this._searchRegex=c,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(n){this._searchRegex.lastIndex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(n){const c=n.length;let u;do{if(this._prevMatchStartIndex+this._prevMatchLength===c||(u=this._searchRegex.exec(n),!u))return null;const g=u.index,p=u[0].length;if(g===this._prevMatchStartIndex&&p===this._prevMatchLength){if(p===0){HS(n,c,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=g,this._prevMatchLength=p,!this._wordSeparators||gL(this._wordSeparators,n,c,g,p))return u}while(u);return null}}class rR{static computeUnicodeHighlights(n,c,u){const g=u?u.startLineNumber:1,p=u?u.endLineNumber:n.getLineCount(),I=new vL(c),V=I.getCandidateCodePoints();let L;V==="allNonBasicAscii"?L=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):L=new RegExp(`${tR(Array.from(V))}`,"g");const m=new ih(null,L),y=[];let j=!1,te,E=0,F=0,$=0;e:for(let C=g,K=p;C<=K;C++){const k=n.getLineContent(C),X=k.length;m.reset(0);do if(te=m.next(k),te){let O=te.index,x=te.index+te[0].length;if(O>0){const q=k.charCodeAt(O-1);Yv(q)&&O--}if(x+1<X){const q=k.charCodeAt(x-1);Yv(q)&&x++}const ie=k.substring(O,x),Z=ZE(O+1,hD,k,0),re=I.shouldHighlightNonBasicASCII(ie,Z?Z.word:null);if(re!==0){re===3?E++:re===2?F++:re===1?$++:Ik(re);const q=1e3;if(y.length>=q){j=!0;break e}y.push(new Tl(C,O+1,C,x+1))}}while(te)}return{ranges:y,hasMore:j,ambiguousCharacterCount:E,invisibleCharacterCount:F,nonBasicAsciiCharacterCount:$}}static computeUnicodeHighlightReason(n,c){const u=new vL(c);switch(u.shouldHighlightNonBasicASCII(n,null)){case 0:return null;case 2:return{kind:1};case 3:{const p=n.codePointAt(0),I=u.ambiguousCharacters.getPrimaryConfusable(p),V=Pd.getLocales().filter(L=>!Pd.getInstance(new Set([...c.allowedLocales,L])).isAmbiguous(p));return{kind:0,confusableWith:String.fromCodePoint(I),notAmbiguousInLocales:V}}case 1:return{kind:2}}}}function tR(e,n){return`[${VS(e.map(u=>String.fromCodePoint(u)).join(""))}]`}class vL{constructor(n){this.options=n,this.allowedCodePoints=new Set(n.allowedCodePoints),this.ambiguousCharacters=Pd.getInstance(new Set(n.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const n=new Set;if(this.options.invisibleCharacters)for(const c of sm.codePoints)hL(String.fromCodePoint(c))||n.add(c);if(this.options.ambiguousCharacters)for(const c of this.ambiguousCharacters.getConfusableCodePoints())n.add(c);for(const c of this.allowedCodePoints)n.delete(c);return n}shouldHighlightNonBasicASCII(n,c){const u=n.codePointAt(0);if(this.allowedCodePoints.has(u))return 0;if(this.options.nonBasicASCII)return 1;let g=!1,p=!1;if(c)for(const I of c){const V=I.codePointAt(0),L=jk(I);g=g||L,!L&&!this.ambiguousCharacters.isAmbiguous(V)&&!sm.isInvisibleCharacter(V)&&(p=!0)}return!g&&p?0:this.options.invisibleCharacters&&!hL(n)&&sm.isInvisibleCharacter(u)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(u)?3:0}}function hL(e){return e===" "||e===`
`||e===" "}var Km=function(e,n,c,u){function g(p){return p instanceof c?p:new c(function(I){I(p)})}return new(c||(c=Promise))(function(p,I){function V(y){try{m(u.next(y))}catch(j){I(j)}}function L(y){try{m(u.throw(y))}catch(j){I(j)}}function m(y){y.done?p(y.value):g(y.value).then(V,L)}m((u=u.apply(e,n||[])).next())})};class nR extends AO{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(n){return this._lines[n-1]}getWordAtPosition(n,c){const u=ZE(n.column,IO(c),this._lines[n.lineNumber-1],0);return u?new Tl(n.lineNumber,u.startColumn,n.lineNumber,u.endColumn):null}words(n){const c=this._lines,u=this._wordenize.bind(this);let g=0,p="",I=0,V=[];return{*[Symbol.iterator](){for(;;)if(I<V.length){const L=p.substring(V[I].start,V[I].end);I+=1,yield L}else if(g<c.length)p=c[g],V=u(p,n),I=0,g+=1;else break}}}getLineWords(n,c){const u=this._lines[n-1],g=this._wordenize(u,c),p=[];for(const I of g)p.push({word:u.substring(I.start,I.end),startColumn:I.start+1,endColumn:I.end+1});return p}_wordenize(n,c){const u=[];let g;for(c.lastIndex=0;(g=c.exec(n))&&g[0].length!==0;)u.push({start:g.index,end:g.index+g[0].length});return u}getValueInRange(n){if(n=this._validateRange(n),n.startLineNumber===n.endLineNumber)return this._lines[n.startLineNumber-1].substring(n.startColumn-1,n.endColumn-1);const c=this._eol,u=n.startLineNumber-1,g=n.endLineNumber-1,p=[];p.push(this._lines[u].substring(n.startColumn-1));for(let I=u+1;I<g;I++)p.push(this._lines[I]);return p.push(this._lines[g].substring(0,n.endColumn-1)),p.join(c)}offsetAt(n){return n=this._validatePosition(n),this._ensureLineStarts(),this._lineStarts.getPrefixSum(n.lineNumber-2)+(n.column-1)}positionAt(n){n=Math.floor(n),n=Math.max(0,n),this._ensureLineStarts();const c=this._lineStarts.getIndexOf(n),u=this._lines[c.index].length;return{lineNumber:1+c.index,column:1+Math.min(c.remainder,u)}}_validateRange(n){const c=this._validatePosition({lineNumber:n.startLineNumber,column:n.startColumn}),u=this._validatePosition({lineNumber:n.endLineNumber,column:n.endColumn});return c.lineNumber!==n.startLineNumber||c.column!==n.startColumn||u.lineNumber!==n.endLineNumber||u.column!==n.endColumn?{startLineNumber:c.lineNumber,startColumn:c.column,endLineNumber:u.lineNumber,endColumn:u.column}:n}_validatePosition(n){if(!If.isIPosition(n))throw new Error("bad position");let{lineNumber:c,column:u}=n,g=!1;if(c<1)c=1,u=1,g=!0;else if(c>this._lines.length)c=this._lines.length,u=this._lines[c-1].length+1,g=!0;else{const p=this._lines[c-1].length+1;u<1?(u=1,g=!0):u>p&&(u=p,g=!0)}return g?{lineNumber:c,column:u}:n}}class pm{constructor(n,c){this._host=n,this._models=Object.create(null),this._foreignModuleFactory=c,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(n){return this._models[n]}_getModels(){const n=[];return Object.keys(this._models).forEach(c=>n.push(this._models[c])),n}acceptNewModel(n){this._models[n.url]=new nR(Jm.parse(n.url),n.lines,n.EOL,n.versionId)}acceptModelChanged(n,c){if(!this._models[n])return;this._models[n].onEvents(c)}acceptRemovedModel(n){!this._models[n]||delete this._models[n]}computeUnicodeHighlights(n,c,u){return Km(this,void 0,void 0,function*(){const g=this._getModel(n);return g?rR.computeUnicodeHighlights(g,c,u):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(n,c,u,g){return Km(this,void 0,void 0,function*(){const p=this._getModel(n),I=this._getModel(c);return!p||!I?null:pm.computeDiff(p,I,u,g)})}static computeDiff(n,c,u,g){const p=n.getLinesContent(),I=c.getLinesContent(),L=new bO(p,I,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:u,shouldMakePrettyDiff:!0,maxComputationTime:g}).computeDiff(),m=L.changes.length>0?!1:this._modelsAreIdentical(n,c);return{quitEarly:L.quitEarly,identical:m,changes:L.changes}}static _modelsAreIdentical(n,c){const u=n.getLineCount(),g=c.getLineCount();if(u!==g)return!1;for(let p=1;p<=u;p++){const I=n.getLineContent(p),V=c.getLineContent(p);if(I!==V)return!1}return!0}computeMoreMinimalEdits(n,c){return Km(this,void 0,void 0,function*(){const u=this._getModel(n);if(!u)return c;const g=[];let p;c=c.slice(0).sort((I,V)=>{if(I.range&&V.range)return Tl.compareRangesUsingStarts(I.range,V.range);const L=I.range?0:1,m=V.range?0:1;return L-m});for(let{range:I,text:V,eol:L}of c){if(typeof L=="number"&&(p=L),Tl.isEmpty(I)&&!V)continue;const m=u.getValueInRange(I);if(V=V.replace(/\r\n|\n|\r/g,u.eol),m===V)continue;if(Math.max(V.length,m.length)>pm._diffLimit){g.push({range:I,text:V});continue}const y=nO(m,V,!1),j=u.offsetAt(Tl.lift(I).getStartPosition());for(const te of y){const E=u.positionAt(j+te.originalStart),F=u.positionAt(j+te.originalStart+te.originalLength),$={text:V.substr(te.modifiedStart,te.modifiedLength),range:{startLineNumber:E.lineNumber,startColumn:E.column,endLineNumber:F.lineNumber,endColumn:F.column}};u.getValueInRange($.range)!==$.text&&g.push($)}}return typeof p=="number"&&g.push({eol:p,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),g})}computeLinks(n){return Km(this,void 0,void 0,function*(){const c=this._getModel(n);return c?MO(c):null})}textualSuggest(n,c,u,g){return Km(this,void 0,void 0,function*(){const p=new Ly(!0),I=new RegExp(u,g),V=new Set;e:for(const L of n){const m=this._getModel(L);if(!!m){for(const y of m.words(I))if(!(y===c||!isNaN(Number(y)))&&(V.add(y),V.size>pm._suggestionsLimit))break e}}return{words:Array.from(V),duration:p.elapsed()}})}computeWordRanges(n,c,u,g){return Km(this,void 0,void 0,function*(){const p=this._getModel(n);if(!p)return Object.create(null);const I=new RegExp(u,g),V=Object.create(null);for(let L=c.startLineNumber;L<c.endLineNumber;L++){const m=p.getLineWords(L,I);for(const y of m){if(!isNaN(Number(y.word)))continue;let j=V[y.word];j||(j=[],V[y.word]=j),j.push({startLineNumber:L,startColumn:y.startColumn,endLineNumber:L,endColumn:y.endColumn})}}return V})}navigateValueSet(n,c,u,g,p){return Km(this,void 0,void 0,function*(){const I=this._getModel(n);if(!I)return null;const V=new RegExp(g,p);c.startColumn===c.endColumn&&(c={startLineNumber:c.startLineNumber,startColumn:c.startColumn,endLineNumber:c.endLineNumber,endColumn:c.endColumn+1});const L=I.getValueInRange(c),m=I.getWordAtPosition({lineNumber:c.startLineNumber,column:c.startColumn},V);if(!m)return null;const y=I.getValueInRange(m);return e0.INSTANCE.navigateValueSet(c,L,m,y,u)})}loadForeignModule(n,c,u){const I={host:xk(u,(V,L)=>this._host.fhr(V,L)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(I,c),Promise.resolve(PE(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(n,c){if(!this._foreignModule||typeof this._foreignModule[n]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+n));try{return Promise.resolve(this._foreignModule[n].apply(this._foreignModule,c))}catch(u){return Promise.reject(u)}}}pm._diffLimit=1e5,pm._suggestionsLimit=1e4;function $G(e){return new pm(e,null)}typeof importScripts=="function"&&(mu.monaco=KO());let d0=!1;function yL(e){if(d0)return;d0=!0;const n=new ZS(c=>{self.postMessage(c)},c=>new pm(c,e));self.onmessage=c=>{n.onmessage(c.data)}}self.onmessage=e=>{d0||yL(null)};var aR="/";gc=n_.hmd(gc);var iR=Object.defineProperty,oR=(e,n)=>{for(var c in n)iR(e,c,{get:n[c],enumerable:!0})},bL={};oR(bL,{EndOfLineState:()=>cR,IndentStyle:()=>fR,ScriptKind:()=>qm,ScriptTarget:()=>dR,TokenClass:()=>pR,createClassifier:()=>sR,createLanguageService:()=>SL,displayPartsToString:()=>lR,flattenDiagnosticMessageText:()=>uR,typescript:()=>DL});var Bt=function(e,n,c){if(c||arguments.length===2)for(var u=0,g=n.length,p;u<g;u++)(p||!(u in n))&&(p||(p=Array.prototype.slice.call(n,0,u)),p[u]=n[u]);return e.concat(p||Array.prototype.slice.call(n))},kn=function(){return kn=Object.assign||function(e){for(var n,c=1,u=arguments.length;c<u;c++){n=arguments[c];for(var g in n)Object.prototype.hasOwnProperty.call(n,g)&&(e[g]=n[g])}return e},kn.apply(this,arguments)},EL=function(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e},jg=function(e,n){var c={label:0,sent:function(){if(p[0]&1)throw p[1];return p[1]},trys:[],ops:[]},u,g,p,I;return I={next:V(0),throw:V(1),return:V(2)},typeof Symbol=="function"&&(I[Symbol.iterator]=function(){return this}),I;function V(m){return function(y){return L([m,y])}}function L(m){if(u)throw new TypeError("Generator is already executing.");for(;c;)try{if(u=1,g&&(p=m[0]&2?g.return:m[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,m[1])).done)return p;switch(g=0,p&&(m=[m[0]&2,p.value]),m[0]){case 0:case 1:p=m;break;case 4:return c.label++,{value:m[1],done:!1};case 5:c.label++,g=m[1],m=[0];continue;case 7:m=c.ops.pop(),c.trys.pop();continue;default:if(p=c.trys,!(p=p.length>0&&p[p.length-1])&&(m[0]===6||m[0]===2)){c=0;continue}if(m[0]===3&&(!p||m[1]>p[0]&&m[1]<p[3])){c.label=m[1];break}if(m[0]===6&&c.label<p[1]){c.label=p[1],p=m;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(m);break}p[2]&&c.ops.pop(),c.trys.pop();continue}m=n.call(e,c)}catch(y){m=[6,y],g=0}finally{u=p=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},TL=function(e,n){var c={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&n.indexOf(u)<0&&(c[u]=e[u]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,u=Object.getOwnPropertySymbols(e);g<u.length;g++)n.indexOf(u[g])<0&&Object.prototype.propertyIsEnumerable.call(e,u[g])&&(c[u[g]]=e[u[g]]);return c},zm=function(){var e=function(n,c){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var p in g)Object.prototype.hasOwnProperty.call(g,p)&&(u[p]=g[p])},e(n,c)};return function(n,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");e(n,c);function u(){this.constructor=n}n.prototype=c===null?Object.create(c):(u.prototype=c.prototype,new u)}}(),mr;(function(e){function n(){var $={};return $.prev=$,{head:$,tail:$,size:0}}function c($,C){return{key:$,value:C,next:void 0,prev:void 0}}function u($,C){return $===C||$!==$&&C!==C}function g($){var C=$.prev;if(!C||C===$)throw new Error("Illegal state");return C}function p($){for(;$;){var C=!$.prev;if($=$.next,!C)return $}}function I($,C){for(var K=$.tail;K!==$.head;K=g(K))if(u(K.key,C))return K}function V($,C,K){var k=I($,C);if(k){k.value=K;return}var X=c(C,K);return X.prev=$.tail,$.tail.next=X,$.tail=X,$.size++,X}function L($,C){for(var K=$.tail;K!==$.head;K=g(K)){if(K.prev===void 0)throw new Error("Illegal state");if(u(K.key,C)){if(K.next)K.next.prev=K.prev;else{if($.tail!==K)throw new Error("Illegal state");$.tail=K.prev}return K.prev.next=K.next,K.next=K.prev,K.prev=void 0,$.size--,K}}}function m($){for(var C=$.tail;C!==$.head;){var K=g(C);C.next=$.head,C.prev=void 0,C=K}$.head.next=void 0,$.tail=$.head,$.size=0}function y($,C){for(var K=$.head;K;)K=p(K),K&&C(K.value,K.key)}function j($,C){if($)for(var K=$.next();!K.done;K=$.next())C(K.value)}function te($,C){return{current:$.head,selector:C}}function E($){return $.current=p($.current),$.current?{value:$.selector($.current.key,$.current.value),done:!1}:{value:void 0,done:!0}}var F;(function($){function C(k){var X=function(){function O(x,ie){this._data=te(x,ie)}return O.prototype.next=function(){return E(this._data)},O}();return function(){function O(x){var ie=this;this._mapData=n(),j(k(x),function(Z){var re=Z[0],q=Z[1];return ie.set(re,q)})}return Object.defineProperty(O.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),O.prototype.get=function(x){var ie;return(ie=I(this._mapData,x))===null||ie===void 0?void 0:ie.value},O.prototype.set=function(x,ie){return V(this._mapData,x,ie),this},O.prototype.has=function(x){return!!I(this._mapData,x)},O.prototype.delete=function(x){return!!L(this._mapData,x)},O.prototype.clear=function(){m(this._mapData)},O.prototype.keys=function(){return new X(this._mapData,function(x,ie){return x})},O.prototype.values=function(){return new X(this._mapData,function(x,ie){return ie})},O.prototype.entries=function(){return new X(this._mapData,function(x,ie){return[x,ie]})},O.prototype.forEach=function(x){y(this._mapData,x)},O}()}$.createMapShim=C;function K(k){var X=function(){function O(x,ie){this._data=te(x,ie)}return O.prototype.next=function(){return E(this._data)},O}();return function(){function O(x){var ie=this;this._mapData=n(),j(k(x),function(Z){return ie.add(Z)})}return Object.defineProperty(O.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),O.prototype.add=function(x){return V(this._mapData,x,x),this},O.prototype.has=function(x){return!!I(this._mapData,x)},O.prototype.delete=function(x){return!!L(this._mapData,x)},O.prototype.clear=function(){m(this._mapData)},O.prototype.keys=function(){return new X(this._mapData,function(x,ie){return x})},O.prototype.values=function(){return new X(this._mapData,function(x,ie){return ie})},O.prototype.entries=function(){return new X(this._mapData,function(x,ie){return[x,ie]})},O.prototype.forEach=function(x){y(this._mapData,x)},O}()}$.createSetShim=K})(F=e.ShimCollections||(e.ShimCollections={}))})(mr||(mr={}));var mr;(function(e){e.versionMajorMinor="4.5",e.version="4.5.5";var n;(function(g){g[g.LessThan=-1]="LessThan",g[g.EqualTo=0]="EqualTo",g[g.GreaterThan=1]="GreaterThan"})(n=e.Comparison||(e.Comparison={}));var c;(function(g){function p(){return typeof Map!="undefined"&&"entries"in Map.prototype&&new Map([[0,0]]).size===1?Map:void 0}g.tryGetNativeMap=p;function I(){return typeof Set!="undefined"&&"entries"in Set.prototype&&new Set([0]).size===1?Set:void 0}g.tryGetNativeSet=I})(c||(c={})),e.Map=u("Map","tryGetNativeMap","createMapShim"),e.Set=u("Set","tryGetNativeSet","createSetShim");function u(g,p,I){var V,L=(V=c[p]())!==null&&V!==void 0?V:e.ShimCollections===null||e.ShimCollections===void 0?void 0:e.ShimCollections[I](e.getIterator);if(L)return L;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(g," implementation."))}})(mr||(mr={}));var mr;(function(e){function n(oe){if(oe){if(Ir(oe))return sr(oe);if(oe instanceof e.Map)return oe.entries();if(oe instanceof e.Set)return oe.values();throw new Error("Iteration not supported.")}}e.getIterator=n,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set;function c(){return new e.Map}e.createMap=c;function u(oe){var Pe=new e.Map;for(var Ye in oe)Yr.call(oe,Ye)&&Pe.set(Ye,oe[Ye]);return Pe}e.createMapFromTemplate=u;function g(oe){return oe?oe.length:0}e.length=g;function p(oe,Pe){if(oe)for(var Ye=0;Ye<oe.length;Ye++){var Tr=Pe(oe[Ye],Ye);if(Tr)return Tr}}e.forEach=p;function I(oe,Pe){if(oe)for(var Ye=oe.length-1;Ye>=0;Ye--){var Tr=Pe(oe[Ye],Ye);if(Tr)return Tr}}e.forEachRight=I;function V(oe,Pe){if(oe!==void 0)for(var Ye=0;Ye<oe.length;Ye++){var Tr=Pe(oe[Ye],Ye);if(Tr!==void 0)return Tr}}e.firstDefined=V;function L(oe,Pe){for(;;){var Ye=oe.next();if(Ye.done)return;var Tr=Pe(Ye.value);if(Tr!==void 0)return Tr}}e.firstDefinedIterator=L;function m(oe,Pe,Ye){var Tr=Ye;if(oe)for(var tt=oe.next(),Mt=0;!tt.done;tt=oe.next(),Mt++)Tr=Pe(Tr,tt.value,Mt);return Tr}e.reduceLeftIterator=m;function y(oe,Pe,Ye){var Tr=[];e.Debug.assertEqual(oe.length,Pe.length);for(var tt=0;tt<oe.length;tt++)Tr.push(Ye(oe[tt],Pe[tt],tt));return Tr}e.zipWith=y;function j(oe,Pe){e.Debug.assertEqual(oe.length,Pe.length);var Ye=0;return{next:function(){return Ye===oe.length?{value:void 0,done:!0}:(Ye++,{value:[oe[Ye-1],Pe[Ye-1]],done:!1})}}}e.zipToIterator=j;function te(oe,Pe){e.Debug.assert(oe.length===Pe.length);for(var Ye=new e.Map,Tr=0;Tr<oe.length;++Tr)Ye.set(oe[Tr],Pe[Tr]);return Ye}e.zipToMap=te;function E(oe,Pe){if(oe.length<=1)return oe;for(var Ye=[],Tr=0,tt=oe.length;Tr<tt;Tr++)Tr&&Ye.push(Pe),Ye.push(oe[Tr]);return Ye}e.intersperse=E;function F(oe,Pe){if(oe){for(var Ye=0;Ye<oe.length;Ye++)if(!Pe(oe[Ye],Ye))return!1}return!0}e.every=F;function $(oe,Pe){for(var Ye=0;Ye<oe.length;Ye++){var Tr=oe[Ye];if(Pe(Tr,Ye))return Tr}}e.find=$;function C(oe,Pe){for(var Ye=oe.length-1;Ye>=0;Ye--){var Tr=oe[Ye];if(Pe(Tr,Ye))return Tr}}e.findLast=C;function K(oe,Pe,Ye){for(var Tr=Ye||0;Tr<oe.length;Tr++)if(Pe(oe[Tr],Tr))return Tr;return-1}e.findIndex=K;function k(oe,Pe,Ye){for(var Tr=Ye===void 0?oe.length-1:Ye;Tr>=0;Tr--)if(Pe(oe[Tr],Tr))return Tr;return-1}e.findLastIndex=k;function X(oe,Pe){for(var Ye=0;Ye<oe.length;Ye++){var Tr=Pe(oe[Ye],Ye);if(Tr)return Tr}return e.Debug.fail()}e.findMap=X;function O(oe,Pe,Ye){if(Ye===void 0&&(Ye=pa),oe)for(var Tr=0,tt=oe;Tr<tt.length;Tr++){var Mt=tt[Tr];if(Ye(Mt,Pe))return!0}return!1}e.contains=O;function x(oe,Pe,Ye){return Ye===void 0&&(Ye=pa),oe.length===Pe.length&&oe.every(function(Tr,tt){return Ye(Tr,Pe[tt])})}e.arraysEqual=x;function ie(oe,Pe,Ye){for(var Tr=Ye||0;Tr<oe.length;Tr++)if(O(Pe,oe.charCodeAt(Tr)))return Tr;return-1}e.indexOfAnyCharCode=ie;function Z(oe,Pe){var Ye=0;if(oe)for(var Tr=0;Tr<oe.length;Tr++){var tt=oe[Tr];Pe(tt,Tr)&&Ye++}return Ye}e.countWhere=Z;function re(oe,Pe){if(oe){for(var Ye=oe.length,Tr=0;Tr<Ye&&Pe(oe[Tr]);)Tr++;if(Tr<Ye){var tt=oe.slice(0,Tr);for(Tr++;Tr<Ye;){var Mt=oe[Tr];Pe(Mt)&&tt.push(Mt),Tr++}return tt}}return oe}e.filter=re;function q(oe,Pe){for(var Ye=0,Tr=0;Tr<oe.length;Tr++)Pe(oe[Tr],Tr,oe)&&(oe[Ye]=oe[Tr],Ye++);oe.length=Ye}e.filterMutate=q;function P(oe){oe.length=0}e.clear=P;function M(oe,Pe){var Ye;if(oe){Ye=[];for(var Tr=0;Tr<oe.length;Tr++)Ye.push(Pe(oe[Tr],Tr))}return Ye}e.map=M;function Q(oe,Pe){return{next:function(){var Ye=oe.next();return Ye.done?Ye:{value:Pe(Ye.value),done:!1}}}}e.mapIterator=Q;function H(oe,Pe){if(oe)for(var Ye=0;Ye<oe.length;Ye++){var Tr=oe[Ye],tt=Pe(Tr,Ye);if(Tr!==tt){var Mt=oe.slice(0,Ye);for(Mt.push(tt),Ye++;Ye<oe.length;Ye++)Mt.push(Pe(oe[Ye],Ye));return Mt}}return oe}e.sameMap=H;function w(oe){for(var Pe=[],Ye=0,Tr=oe;Ye<Tr.length;Ye++){var tt=Tr[Ye];tt&&(Ir(tt)?gr(Pe,tt):Pe.push(tt))}return Pe}e.flatten=w;function d(oe,Pe){var Ye;if(oe)for(var Tr=0;Tr<oe.length;Tr++){var tt=Pe(oe[Tr],Tr);tt&&(Ir(tt)?Ye=gr(Ye,tt):Ye=Ne(Ye,tt))}return Ye||e.emptyArray}e.flatMap=d;function B(oe,Pe){var Ye=[];if(oe)for(var Tr=0;Tr<oe.length;Tr++){var tt=Pe(oe[Tr],Tr);tt&&(Ir(tt)?gr(Ye,tt):Ye.push(tt))}return Ye}e.flatMapToMutable=B;function T(oe,Pe){var Ye=oe.next();if(Ye.done)return e.emptyIterator;var Tr=tt(Ye.value);return{next:function(){for(;;){var Mt=Tr.next();if(!Mt.done)return Mt;var Wt=oe.next();if(Wt.done)return Wt;Tr=tt(Wt.value)}}};function tt(Mt){var Wt=Pe(Mt);return Wt===void 0?e.emptyIterator:Ir(Wt)?sr(Wt):Wt}}e.flatMapIterator=T;function _(oe,Pe){var Ye;if(oe)for(var Tr=0;Tr<oe.length;Tr++){var tt=oe[Tr],Mt=Pe(tt,Tr);(Ye||tt!==Mt||Ir(Mt))&&(Ye||(Ye=oe.slice(0,Tr)),Ir(Mt)?gr(Ye,Mt):Ye.push(Mt))}return Ye||oe}e.sameFlatMap=_;function h(oe,Pe){for(var Ye=[],Tr=0;Tr<oe.length;Tr++){var tt=Pe(oe[Tr],Tr);if(tt===void 0)return;Ye.push(tt)}return Ye}e.mapAllOrFail=h;function R(oe,Pe){var Ye=[];if(oe)for(var Tr=0;Tr<oe.length;Tr++){var tt=Pe(oe[Tr],Tr);tt!==void 0&&Ye.push(tt)}return Ye}e.mapDefined=R;function b(oe,Pe){return{next:function(){for(;;){var Ye=oe.next();if(Ye.done)return Ye;var Tr=Pe(Ye.value);if(Tr!==void 0)return{value:Tr,done:!1}}}}}e.mapDefinedIterator=b;function G(oe,Pe){if(!!oe){var Ye=new e.Map;return oe.forEach(function(Tr,tt){var Mt=Pe(tt,Tr);if(Mt!==void 0){var Wt=Mt[0],Ln=Mt[1];Wt!==void 0&&Ln!==void 0&&Ye.set(Wt,Ln)}}),Ye}}e.mapDefinedEntries=G;function Y(oe,Pe){if(oe){var Ye=new e.Set;return oe.forEach(function(Tr){var tt=Pe(Tr);tt!==void 0&&Ye.add(tt)}),Ye}}e.mapDefinedValues=Y;function pe(oe,Pe,Ye){if(oe.has(Pe))return oe.get(Pe);var Tr=Ye();return oe.set(Pe,Tr),Tr}e.getOrUpdate=pe;function A(oe,Pe){return oe.has(Pe)?!1:(oe.add(Pe),!0)}e.tryAddToSet=A,e.emptyIterator={next:function(){return{value:void 0,done:!0}}};function _e(oe){var Pe=!1;return{next:function(){var Ye=Pe;return Pe=!0,Ye?{value:void 0,done:!0}:{value:oe,done:!1}}}}e.singleIterator=_e;function Se(oe,Pe,Ye){var Tr;if(oe){Tr=[];for(var tt=oe.length,Mt=void 0,Wt=void 0,Ln=0,va=0;Ln<tt;){for(;va<tt;){var ti=oe[va];if(Wt=Pe(ti,va),va===0)Mt=Wt;else if(Wt!==Mt)break;va++}if(Ln<va){var ii=Ye(oe.slice(Ln,va),Mt,Ln,va);ii&&Tr.push(ii),Ln=va}Mt=Wt,va++}}return Tr}e.spanMap=Se;function ae(oe,Pe){if(!!oe){var Ye=new e.Map;return oe.forEach(function(Tr,tt){var Mt=Pe(tt,Tr),Wt=Mt[0],Ln=Mt[1];Ye.set(Wt,Ln)}),Ye}}e.mapEntries=ae;function D(oe,Pe){if(oe)if(Pe)for(var Ye=0,Tr=oe;Ye<Tr.length;Ye++){var tt=Tr[Ye];if(Pe(tt))return!0}else return oe.length>0;return!1}e.some=D;function be(oe,Pe,Ye){for(var Tr,tt=0;tt<oe.length;tt++)Pe(oe[tt])?Tr=Tr===void 0?tt:Tr:Tr!==void 0&&(Ye(Tr,tt),Tr=void 0);Tr!==void 0&&Ye(Tr,oe.length)}e.getRangesWhere=be;function ne(oe,Pe){return D(Pe)?D(oe)?Bt(Bt([],oe,!0),Pe,!0):Pe:oe}e.concatenate=ne;function J(oe,Pe){return Pe}function le(oe){return oe.map(J)}e.indicesOf=le;function Te(oe,Pe,Ye){var Tr=le(oe);ur(oe,Tr,Ye);for(var tt=oe[Tr[0]],Mt=[Tr[0]],Wt=1;Wt<Tr.length;Wt++){var Ln=Tr[Wt],va=oe[Ln];Pe(tt,va)||(Mt.push(Ln),tt=va)}return Mt.sort(),Mt.map(function(ti){return oe[ti]})}function Me(oe,Pe){for(var Ye=[],Tr=0,tt=oe;Tr<tt.length;Tr++){var Mt=tt[Tr];Er(Ye,Mt,Pe)}return Ye}function Ke(oe,Pe,Ye){return oe.length===0?[]:oe.length===1?oe.slice():Ye?Te(oe,Pe,Ye):Me(oe,Pe)}e.deduplicate=Ke;function Ae(oe,Pe){if(oe.length===0)return e.emptyArray;for(var Ye=oe[0],Tr=[Ye],tt=1;tt<oe.length;tt++){var Mt=oe[tt];switch(Pe(Mt,Ye)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}Tr.push(Ye=Mt)}return Tr}function Ge(oe,Pe,Ye){if(oe.length===0){oe.push(Pe);return}var Tr=Hr(oe,Pe,vt,Ye);Tr<0&&oe.splice(~Tr,0,Pe)}e.insertSorted=Ge;function se(oe,Pe,Ye){return Ae(xr(oe,Pe),Ye||Pe||ra)}e.sortAndDeduplicate=se;function xe(oe,Pe){if(oe.length<2)return!0;for(var Ye=oe[0],Tr=0,tt=oe.slice(1);Tr<tt.length;Tr++){var Mt=tt[Tr];if(Pe(Ye,Mt)===1)return!1;Ye=Mt}return!0}e.arrayIsSorted=xe;function Re(oe,Pe,Ye){if(Ye===void 0&&(Ye=pa),!oe||!Pe)return oe===Pe;if(oe.length!==Pe.length)return!1;for(var Tr=0;Tr<oe.length;Tr++)if(!Ye(oe[Tr],Pe[Tr],Tr))return!1;return!0}e.arrayIsEqualTo=Re;function ce(oe){var Pe;if(oe)for(var Ye=0;Ye<oe.length;Ye++){var Tr=oe[Ye];(Pe||!Tr)&&(Pe||(Pe=oe.slice(0,Ye)),Tr&&Pe.push(Tr))}return Pe||oe}e.compact=ce;function Ue(oe,Pe,Ye){if(!Pe||!oe||Pe.length===0||oe.length===0)return Pe;var Tr=[];e:for(var tt=0,Mt=0;Mt<Pe.length;Mt++){Mt>0&&e.Debug.assertGreaterThanOrEqual(Ye(Pe[Mt],Pe[Mt-1]),0);r:for(var Wt=tt;tt<oe.length;tt++)switch(tt>Wt&&e.Debug.assertGreaterThanOrEqual(Ye(oe[tt],oe[tt-1]),0),Ye(Pe[Mt],oe[tt])){case-1:Tr.push(Pe[Mt]);continue e;case 0:continue e;case 1:continue r}}return Tr}e.relativeComplement=Ue;function We(oe,Pe){for(var Ye=0,Tr=0,tt=oe;Tr<tt.length;Tr++){var Mt=tt[Tr];Ye+=Mt[Pe]}return Ye}e.sum=We;function Ne(oe,Pe){return Pe===void 0?oe:oe===void 0?[Pe]:(oe.push(Pe),oe)}e.append=Ne;function ve(oe,Pe){return oe===void 0?Pe:Pe===void 0?oe:Ir(oe)?Ir(Pe)?ne(oe,Pe):Ne(oe,Pe):Ir(Pe)?Ne(Pe,oe):[oe,Pe]}e.combine=ve;function Ve(oe,Pe){return Pe<0?oe.length+Pe:Pe}function gr(oe,Pe,Ye,Tr){if(Pe===void 0||Pe.length===0)return oe;if(oe===void 0)return Pe.slice(Ye,Tr);Ye=Ye===void 0?0:Ve(Pe,Ye),Tr=Tr===void 0?Pe.length:Ve(Pe,Tr);for(var tt=Ye;tt<Tr&&tt<Pe.length;tt++)Pe[tt]!==void 0&&oe.push(Pe[tt]);return oe}e.addRange=gr;function Er(oe,Pe,Ye){return O(oe,Pe,Ye)?!1:(oe.push(Pe),!0)}e.pushIfUnique=Er;function Nr(oe,Pe,Ye){return oe?(Er(oe,Pe,Ye),oe):[Pe]}e.appendIfUnique=Nr;function ur(oe,Pe,Ye){Pe.sort(function(Tr,tt){return Ye(oe[Tr],oe[tt])||Ut(Tr,tt)})}function xr(oe,Pe){return oe.length===0?oe:oe.slice().sort(Pe)}e.sort=xr;function sr(oe){var Pe=0;return{next:function(){return Pe===oe.length?{value:void 0,done:!0}:(Pe++,{value:oe[Pe-1],done:!1})}}}e.arrayIterator=sr;function i(oe){var Pe=oe.length;return{next:function(){return Pe===0?{value:void 0,done:!0}:(Pe--,{value:oe[Pe],done:!1})}}}e.arrayReverseIterator=i;function Mr(oe,Pe){var Ye=le(oe);return ur(oe,Ye,Pe),Ye.map(function(Tr){return oe[Tr]})}e.stableSort=Mr;function fr(oe,Pe,Ye,Tr){for(;Ye<Tr;){if(oe[Ye]!==Pe[Ye])return!1;Ye++}return!0}e.rangeEquals=fr;function Ar(oe,Pe){if(oe&&(Pe=Ve(oe,Pe),Pe<oe.length))return oe[Pe]}e.elementAt=Ar;function de(oe){return oe.length===0?void 0:oe[0]}e.firstOrUndefined=de;function we(oe){return e.Debug.assert(oe.length!==0),oe[0]}e.first=we;function qe(oe){return oe.length===0?void 0:oe[oe.length-1]}e.lastOrUndefined=qe;function Cr(oe){return e.Debug.assert(oe.length!==0),oe[oe.length-1]}e.last=Cr;function kr(oe){return oe&&oe.length===1?oe[0]:void 0}e.singleOrUndefined=kr;function He(oe){return oe&&oe.length===1?oe[0]:oe}e.singleOrMany=He;function lr(oe,Pe,Ye){var Tr=oe.slice(0);return Tr[Pe]=Ye,Tr}e.replaceElement=lr;function Hr(oe,Pe,Ye,Tr,tt){return Je(oe,Ye(Pe),Ye,Tr,tt)}e.binarySearch=Hr;function Je(oe,Pe,Ye,Tr,tt){if(!D(oe))return-1;for(var Mt=tt||0,Wt=oe.length-1;Mt<=Wt;){var Ln=Mt+(Wt-Mt>>1),va=Ye(oe[Ln],Ln);switch(Tr(va,Pe)){case-1:Mt=Ln+1;break;case 0:return Ln;case 1:Wt=Ln-1;break}}return~Mt}e.binarySearchKey=Je;function Sr(oe,Pe,Ye,Tr,tt){if(oe&&oe.length>0){var Mt=oe.length;if(Mt>0){var Wt=Tr===void 0||Tr<0?0:Tr,Ln=tt===void 0||Wt+tt>Mt-1?Mt-1:Wt+tt,va=void 0;for(arguments.length<=2?(va=oe[Wt],Wt++):va=Ye;Wt<=Ln;)va=Pe(va,oe[Wt],Wt),Wt++;return va}}return Ye}e.reduceLeft=Sr;var Yr=Object.prototype.hasOwnProperty;function ot(oe,Pe){return Yr.call(oe,Pe)}e.hasProperty=ot;function _t(oe,Pe){return Yr.call(oe,Pe)?oe[Pe]:void 0}e.getProperty=_t;function kt(oe){var Pe=[];for(var Ye in oe)Yr.call(oe,Ye)&&Pe.push(Ye);return Pe}e.getOwnKeys=kt;function Yt(oe){var Pe=[];do for(var Ye=Object.getOwnPropertyNames(oe),Tr=0,tt=Ye;Tr<tt.length;Tr++){var Mt=tt[Tr];Er(Pe,Mt)}while(oe=Object.getPrototypeOf(oe));return Pe}e.getAllKeys=Yt;function vn(oe){var Pe=[];for(var Ye in oe)Yr.call(oe,Ye)&&Pe.push(oe[Ye]);return Pe}e.getOwnValues=vn;var Mn=Object.entries||function(oe){for(var Pe=kt(oe),Ye=Array(Pe.length),Tr=0;Tr<Pe.length;Tr++)Ye[Tr]=[Pe[Tr],oe[Pe[Tr]]];return Ye};function qn(oe){return oe?Mn(oe):[]}e.getEntries=qn;function nr(oe,Pe){for(var Ye=new Array(oe),Tr=0;Tr<oe;Tr++)Ye[Tr]=Pe(Tr);return Ye}e.arrayOf=nr;function Zr(oe,Pe){for(var Ye=[],Tr=oe.next();!Tr.done;Tr=oe.next())Ye.push(Pe?Pe(Tr.value):Tr.value);return Ye}e.arrayFrom=Zr;function ir(oe){for(var Pe=[],Ye=1;Ye<arguments.length;Ye++)Pe[Ye-1]=arguments[Ye];for(var Tr=0,tt=Pe;Tr<tt.length;Tr++){var Mt=tt[Tr];if(Mt!==void 0)for(var Wt in Mt)ot(Mt,Wt)&&(oe[Wt]=Mt[Wt])}return oe}e.assign=ir;function ge(oe,Pe,Ye){if(Ye===void 0&&(Ye=pa),oe===Pe)return!0;if(!oe||!Pe)return!1;for(var Tr in oe)if(Yr.call(oe,Tr)&&(!Yr.call(Pe,Tr)||!Ye(oe[Tr],Pe[Tr])))return!1;for(var Tr in Pe)if(Yr.call(Pe,Tr)&&!Yr.call(oe,Tr))return!1;return!0}e.equalOwnProperties=ge;function rr(oe,Pe,Ye){Ye===void 0&&(Ye=vt);for(var Tr=new e.Map,tt=0,Mt=oe;tt<Mt.length;tt++){var Wt=Mt[tt],Ln=Pe(Wt);Ln!==void 0&&Tr.set(Ln,Ye(Wt))}return Tr}e.arrayToMap=rr;function pr(oe,Pe,Ye){Ye===void 0&&(Ye=vt);for(var Tr=[],tt=0,Mt=oe;tt<Mt.length;tt++){var Wt=Mt[tt];Tr[Pe(Wt)]=Ye(Wt)}return Tr}e.arrayToNumericMap=pr;function Lr(oe,Pe,Ye){Ye===void 0&&(Ye=vt);for(var Tr=ke(),tt=0,Mt=oe;tt<Mt.length;tt++){var Wt=Mt[tt];Tr.add(Pe(Wt),Ye(Wt))}return Tr}e.arrayToMultiMap=Lr;function Ce(oe,Pe,Ye){return Ye===void 0&&(Ye=vt),Zr(Lr(oe,Pe).values(),Ye)}e.group=Ce;function cr(oe){var Pe={};for(var Ye in oe)Yr.call(oe,Ye)&&(Pe[Ye]=oe[Ye]);return Pe}e.clone=cr;function $e(oe,Pe){var Ye={};for(var Tr in Pe)Yr.call(Pe,Tr)&&(Ye[Tr]=Pe[Tr]);for(var Tr in oe)Yr.call(oe,Tr)&&(Ye[Tr]=oe[Tr]);return Ye}e.extend=$e;function De(oe,Pe){for(var Ye in Pe)Yr.call(Pe,Ye)&&(oe[Ye]=Pe[Ye])}e.copyProperties=De;function z(oe,Pe){return Pe?Pe.bind(oe):void 0}e.maybeBind=z;function ke(){var oe=new e.Map;return oe.add=dr,oe.remove=Xe,oe}e.createMultiMap=ke;function dr(oe,Pe){var Ye=this.get(oe);return Ye?Ye.push(Pe):this.set(oe,Ye=[Pe]),Ye}function Xe(oe,Pe){var Ye=this.get(oe);Ye&&(Eo(Ye,Pe),Ye.length||this.delete(oe))}function Qe(){return ke()}e.createUnderscoreEscapedMultiMap=Qe;function Ir(oe){return Array.isArray?Array.isArray(oe):oe instanceof Array}e.isArray=Ir;function Jr(oe){return Ir(oe)?oe:[oe]}e.toArray=Jr;function Or(oe){return typeof oe=="string"}e.isString=Or;function Be(oe){return typeof oe=="number"}e.isNumber=Be;function yr(oe,Pe){return oe!==void 0&&Pe(oe)?oe:void 0}e.tryCast=yr;function Rr(oe,Pe){return oe!==void 0&&Pe(oe)?oe:e.Debug.fail("Invalid cast. The supplied value ".concat(oe," did not pass the test '").concat(e.Debug.getFunctionName(Pe),"'."))}e.cast=Rr;function zr(oe){}e.noop=zr;function ut(){return!1}e.returnFalse=ut;function mt(){return!0}e.returnTrue=mt;function Lt(){}e.returnUndefined=Lt;function vt(oe){return oe}e.identity=vt;function pt(oe){return oe.toLowerCase()}e.toLowerCase=pt;var Nt=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function Xt(oe){return Nt.test(oe)?oe.replace(Nt,pt):oe}e.toFileNameLowerCase=Xt;function st(){throw new Error("Not implemented")}e.notImplemented=st;function $t(oe){var Pe;return function(){return oe&&(Pe=oe(),oe=void 0),Pe}}e.memoize=$t;function Pn(oe){var Pe=new e.Map;return function(Ye){var Tr="".concat(typeof Ye,":").concat(Ye),tt=Pe.get(Tr);return tt===void 0&&!Pe.has(Tr)&&(tt=oe(Ye),Pe.set(Tr,tt)),tt}}e.memoizeOne=Pn;function Ea(oe,Pe,Ye,Tr,tt){if(tt){for(var Mt=[],Wt=0;Wt<arguments.length;Wt++)Mt[Wt]=arguments[Wt];return function(Ln){return Sr(Mt,function(va,ti){return ti(va)},Ln)}}else return Tr?function(Ln){return Tr(Ye(Pe(oe(Ln))))}:Ye?function(Ln){return Ye(Pe(oe(Ln)))}:Pe?function(Ln){return Pe(oe(Ln))}:oe?function(Ln){return oe(Ln)}:function(Ln){return Ln}}e.compose=Ea;var ia;(function(oe){oe[oe.None=0]="None",oe[oe.Normal=1]="Normal",oe[oe.Aggressive=2]="Aggressive",oe[oe.VeryAggressive=3]="VeryAggressive"})(ia=e.AssertionLevel||(e.AssertionLevel={}));function pa(oe,Pe){return oe===Pe}e.equateValues=pa;function Gn(oe,Pe){return oe===Pe||oe!==void 0&&Pe!==void 0&&oe.toUpperCase()===Pe.toUpperCase()}e.equateStringsCaseInsensitive=Gn;function nn(oe,Pe){return pa(oe,Pe)}e.equateStringsCaseSensitive=nn;function bt(oe,Pe){return oe===Pe?0:oe===void 0?-1:Pe===void 0?1:oe<Pe?-1:1}function Ut(oe,Pe){return bt(oe,Pe)}e.compareValues=Ut;function Kt(oe,Pe){return Ut(oe==null?void 0:oe.start,Pe==null?void 0:Pe.start)||Ut(oe==null?void 0:oe.length,Pe==null?void 0:Pe.length)}e.compareTextSpans=Kt;function bn(oe,Pe,Ye){return Ye(oe,Pe)===-1?oe:Pe}e.min=bn;function wn(oe,Pe){return oe===Pe?0:oe===void 0?-1:Pe===void 0?1:(oe=oe.toUpperCase(),Pe=Pe.toUpperCase(),oe<Pe?-1:oe>Pe?1:0)}e.compareStringsCaseInsensitive=wn;function ra(oe,Pe){return bt(oe,Pe)}e.compareStringsCaseSensitive=ra;function ft(oe){return oe?wn:ra}e.getStringComparer=ft;var Ct=function(){var oe,Pe,Ye=Ln();return va;function Tr(ti,ii,Si){if(ti===ii)return 0;if(ti===void 0)return-1;if(ii===void 0)return 1;var Oi=Si(ti,ii);return Oi<0?-1:Oi>0?1:0}function tt(ti){var ii=new Intl.Collator(ti,{usage:"sort",sensitivity:"variant"}).compare;return function(Si,Oi){return Tr(Si,Oi,ii)}}function Mt(ti){if(ti!==void 0)return Wt();return function(Si,Oi){return Tr(Si,Oi,ii)};function ii(Si,Oi){return Si.localeCompare(Oi)}}function Wt(){return function(Si,Oi){return Tr(Si,Oi,ti)};function ti(Si,Oi){return ii(Si.toUpperCase(),Oi.toUpperCase())||ii(Si,Oi)}function ii(Si,Oi){return Si<Oi?-1:Si>Oi?1:0}}function Ln(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?tt:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?Mt:Wt}function va(ti){return ti===void 0?oe||(oe=Ye(ti)):ti==="en-US"?Pe||(Pe=Ye(ti)):Ye(ti)}}(),Pt,Et;function et(){return Et}e.getUILocale=et;function hn(oe){Et!==oe&&(Et=oe,Pt=void 0)}e.setUILocale=hn;function Qn(oe,Pe){var Ye=Pt||(Pt=Ct(Et));return Ye(oe,Pe)}e.compareStringsCaseSensitiveUI=Qn;function Ra(oe,Pe,Ye,Tr){return oe===Pe?0:oe===void 0?-1:Pe===void 0?1:Tr(oe[Ye],Pe[Ye])}e.compareProperties=Ra;function Ki(oe,Pe){return Ut(oe?1:0,Pe?1:0)}e.compareBooleans=Ki;function di(oe,Pe,Ye){for(var Tr=Math.min(2,Math.floor(oe.length*.34)),tt=Math.floor(oe.length*.4)+1,Mt,Wt=0,Ln=Pe;Wt<Ln.length;Wt++){var va=Ln[Wt],ti=Ye(va);if(ti!==void 0&&Math.abs(ti.length-oe.length)<=Tr){if(ti===oe||ti.length<3&&ti.toLowerCase()!==oe.toLowerCase())continue;var ii=ya(oe,ti,tt-.1);if(ii===void 0)continue;e.Debug.assert(ii<tt),tt=ii,Mt=va}}return Mt}e.getSpellingSuggestion=di;function ya(oe,Pe,Ye){for(var Tr=new Array(Pe.length+1),tt=new Array(Pe.length+1),Mt=Ye+.01,Wt=0;Wt<=Pe.length;Wt++)Tr[Wt]=Wt;for(var Wt=1;Wt<=oe.length;Wt++){var Ln=oe.charCodeAt(Wt-1),va=Math.ceil(Wt>Ye?Wt-Ye:1),ti=Math.floor(Pe.length>Ye+Wt?Ye+Wt:Pe.length);tt[0]=Wt;for(var ii=Wt,Si=1;Si<va;Si++)tt[Si]=Mt;for(var Si=va;Si<=ti;Si++){var Oi=oe[Wt-1].toLowerCase()===Pe[Si-1].toLowerCase()?Tr[Si-1]+.1:Tr[Si-1]+2,_s=Ln===Pe.charCodeAt(Si-1)?Tr[Si-1]:Math.min(Tr[Si]+1,tt[Si-1]+1,Oi);tt[Si]=_s,ii=Math.min(ii,_s)}for(var Si=ti+1;Si<=Pe.length;Si++)tt[Si]=Mt;if(ii>Ye)return;var os=Tr;Tr=tt,tt=os}var jo=Tr[Pe.length];return jo>Ye?void 0:jo}function $a(oe,Pe){var Ye=oe.length-Pe.length;return Ye>=0&&oe.indexOf(Pe,Ye)===Ye}e.endsWith=$a;function ao(oe,Pe){return $a(oe,Pe)?oe.slice(0,oe.length-Pe.length):oe}e.removeSuffix=ao;function ei(oe,Pe){return $a(oe,Pe)?oe.slice(0,oe.length-Pe.length):void 0}e.tryRemoveSuffix=ei;function Fi(oe,Pe){return oe.indexOf(Pe)!==-1}e.stringContains=Fi;function eo(oe){for(var Pe=oe.length,Ye=Pe-1;Ye>0;Ye--){var Tr=oe.charCodeAt(Ye);if(Tr>=48&&Tr<=57)do--Ye,Tr=oe.charCodeAt(Ye);while(Ye>0&&Tr>=48&&Tr<=57);else if(Ye>4&&(Tr===110||Tr===78)){if(--Ye,Tr=oe.charCodeAt(Ye),Tr!==105&&Tr!==73||(--Ye,Tr=oe.charCodeAt(Ye),Tr!==109&&Tr!==77))break;--Ye,Tr=oe.charCodeAt(Ye)}else break;if(Tr!==45&&Tr!==46)break;Pe=Ye}return Pe===oe.length?oe:oe.slice(0,Pe)}e.removeMinAndVersionNumbers=eo;function Wo(oe,Pe){for(var Ye=0;Ye<oe.length;Ye++)if(oe[Ye]===Pe)return Yi(oe,Ye),!0;return!1}e.orderedRemoveItem=Wo;function Yi(oe,Pe){for(var Ye=Pe;Ye<oe.length-1;Ye++)oe[Ye]=oe[Ye+1];oe.pop()}e.orderedRemoveItemAt=Yi;function Ni(oe,Pe){oe[Pe]=oe[oe.length-1],oe.pop()}e.unorderedRemoveItemAt=Ni;function Eo(oe,Pe){return lo(oe,function(Ye){return Ye===Pe})}e.unorderedRemoveItem=Eo;function lo(oe,Pe){for(var Ye=0;Ye<oe.length;Ye++)if(Pe(oe[Ye]))return Ni(oe,Ye),!0;return!1}function So(oe){return oe?vt:Xt}e.createGetCanonicalFileName=So;function ts(oe){var Pe=oe.prefix,Ye=oe.suffix;return"".concat(Pe,"*").concat(Ye)}e.patternText=ts;function ja(oe,Pe){return e.Debug.assert(No(oe,Pe)),Pe.substring(oe.prefix.length,Pe.length-oe.suffix.length)}e.matchedText=ja;function Do(oe,Pe,Ye){for(var Tr,tt=-1,Mt=0,Wt=oe;Mt<Wt.length;Mt++){var Ln=Wt[Mt],va=Pe(Ln);No(va,Ye)&&va.prefix.length>tt&&(tt=va.prefix.length,Tr=Ln)}return Tr}e.findBestPatternMatch=Do;function Pa(oe,Pe){return oe.lastIndexOf(Pe,0)===0}e.startsWith=Pa;function Ti(oe,Pe){return Pa(oe,Pe)?oe.substr(Pe.length):oe}e.removePrefix=Ti;function mo(oe,Pe,Ye){return Ye===void 0&&(Ye=vt),Pa(Ye(oe),Ye(Pe))?oe.substring(Pe.length):void 0}e.tryRemovePrefix=mo;function No(oe,Pe){var Ye=oe.prefix,Tr=oe.suffix;return Pe.length>=Ye.length+Tr.length&&Pa(Pe,Ye)&&$a(Pe,Tr)}function ko(oe,Pe){return function(Ye){return oe(Ye)&&Pe(Ye)}}e.and=ko;function Oo(){for(var oe=[],Pe=0;Pe<arguments.length;Pe++)oe[Pe]=arguments[Pe];return function(){for(var Ye=[],Tr=0;Tr<arguments.length;Tr++)Ye[Tr]=arguments[Tr];for(var tt=0,Mt=oe;tt<Mt.length;tt++){var Wt=Mt[tt];if(Wt.apply(void 0,Ye))return!0}return!1}}e.or=Oo;function Po(oe){return function(){for(var Pe=[],Ye=0;Ye<arguments.length;Ye++)Pe[Ye]=arguments[Ye];return!oe.apply(void 0,Pe)}}e.not=Po;function Ss(oe){}e.assertType=Ss;function Ds(oe){return oe===void 0?void 0:[oe]}e.singleElementArray=Ds;function vr(oe,Pe,Ye,Tr,tt,Mt){Mt=Mt||zr;for(var Wt=0,Ln=0,va=oe.length,ti=Pe.length,ii=!1;Wt<va&&Ln<ti;){var Si=oe[Wt],Oi=Pe[Ln],_s=Ye(Si,Oi);_s===-1?(Tr(Si),Wt++,ii=!0):_s===1?(tt(Oi),Ln++,ii=!0):(Mt(Oi,Si),Wt++,Ln++)}for(;Wt<va;)Tr(oe[Wt++]),ii=!0;for(;Ln<ti;)tt(Pe[Ln++]),ii=!0;return ii}e.enumerateInsertsAndDeletes=vr;function gt(oe,Pe){for(var Ye=Array(oe),Tr=0;Tr<oe;Tr++)Ye[Tr]=Pe(Tr);return Ye}e.fill=gt;function tn(oe){var Pe=[];return Bn(oe,Pe,void 0,0),Pe}e.cartesianProduct=tn;function Bn(oe,Pe,Ye,Tr){for(var tt=0,Mt=oe[Tr];tt<Mt.length;tt++){var Wt=Mt[tt],Ln=void 0;Ye?(Ln=Ye.slice(),Ln.push(Wt)):Ln=[Wt],Tr===oe.length-1?Pe.push(Ln):Bn(oe,Pe,Ln,Tr+1)}}function Fe(oe,Pe,Ye){return Ye===void 0&&(Ye=" "),Pe<=oe.length?oe:Ye.repeat(Pe-oe.length)+oe}e.padLeft=Fe;function Gr(oe,Pe,Ye){return Ye===void 0&&(Ye=" "),Pe<=oe.length?oe:oe+Ye.repeat(Pe-oe.length)}e.padRight=Gr;function ht(oe,Pe){for(var Ye=oe.length,Tr=0;Tr<Ye&&Pe(oe[Tr]);)Tr++;return oe.slice(0,Tr)}e.takeWhile=ht,e.trimString=String.prototype.trim?function(oe){return oe.trim()}:function(oe){return e.trimStringEnd(e.trimStringStart(oe))},e.trimStringEnd=String.prototype.trimEnd?function(oe){return oe.trimEnd()}:ye,e.trimStringStart=String.prototype.trimStart?function(oe){return oe.trimStart()}:function(oe){return oe.replace(/^\s+/g,"")};function ye(oe){for(var Pe=oe.length-1;Pe>=0&&e.isWhiteSpaceLike(oe.charCodeAt(Pe));)Pe--;return oe.slice(0,Pe+1)}})(mr||(mr={}));var mr;(function(e){var n;(function(u){u[u.Off=0]="Off",u[u.Error=1]="Error",u[u.Warning=2]="Warning",u[u.Info=3]="Info",u[u.Verbose=4]="Verbose"})(n=e.LogLevel||(e.LogLevel={}));var c;(function(u){var g,p=0;u.currentLogLevel=n.Warning,u.isDebugging=!1;function I(){return g!=null?g:g=new e.Version(e.version)}u.getTypeScriptVersion=I;function V(ur){return u.currentLogLevel<=ur}u.shouldLog=V;function L(ur,xr){u.loggingHost&&V(ur)&&u.loggingHost.log(ur,xr)}function m(ur){L(n.Info,ur)}u.log=m,function(ur){function xr(fr){L(n.Error,fr)}ur.error=xr;function sr(fr){L(n.Warning,fr)}ur.warn=sr;function i(fr){L(n.Info,fr)}ur.log=i;function Mr(fr){L(n.Verbose,fr)}ur.trace=Mr}(m=u.log||(u.log={}));var y={};function j(){return p}u.getAssertionLevel=j;function te(ur){var xr=p;if(p=ur,ur>xr)for(var sr=0,i=e.getOwnKeys(y);sr<i.length;sr++){var Mr=i[sr],fr=y[Mr];fr!==void 0&&u[Mr]!==fr.assertion&&ur>=fr.level&&(u[Mr]=fr,y[Mr]=void 0)}}u.setAssertionLevel=te;function E(ur){return p>=ur}u.shouldAssert=E;function F(ur,xr){return E(ur)?!0:(y[xr]={level:ur,assertion:u[xr]},u[xr]=e.noop,!1)}function $(ur,xr){var sr=new Error(ur?"Debug Failure. ".concat(ur):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(sr,xr||$),sr}u.fail=$;function C(ur,xr,sr){return $("".concat(xr||"Unexpected node.",`\r
Node `).concat(G(ur.kind)," was unexpected."),sr||C)}u.failBadSyntaxKind=C;function K(ur,xr,sr,i){ur||(xr=xr?"False expression: ".concat(xr):"False expression.",sr&&(xr+=`\r
Verbose Debug Information: `+(typeof sr=="string"?sr:sr())),$(xr,i||K))}u.assert=K;function k(ur,xr,sr,i,Mr){if(ur!==xr){var fr=sr?i?"".concat(sr," ").concat(i):sr:"";$("Expected ".concat(ur," === ").concat(xr,". ").concat(fr),Mr||k)}}u.assertEqual=k;function X(ur,xr,sr,i){ur>=xr&&$("Expected ".concat(ur," < ").concat(xr,". ").concat(sr||""),i||X)}u.assertLessThan=X;function O(ur,xr,sr){ur>xr&&$("Expected ".concat(ur," <= ").concat(xr),sr||O)}u.assertLessThanOrEqual=O;function x(ur,xr,sr){ur<xr&&$("Expected ".concat(ur," >= ").concat(xr),sr||x)}u.assertGreaterThanOrEqual=x;function ie(ur,xr,sr){ur==null&&$(xr,sr||ie)}u.assertIsDefined=ie;function Z(ur,xr,sr){return ie(ur,xr,sr||Z),ur}u.checkDefined=Z,u.assertDefined=Z;function re(ur,xr,sr){for(var i=0,Mr=ur;i<Mr.length;i++){var fr=Mr[i];ie(fr,xr,sr||re)}}u.assertEachIsDefined=re;function q(ur,xr,sr){return re(ur,xr,sr||q),ur}u.checkEachDefined=q,u.assertEachDefined=q;function P(ur,xr,sr){xr===void 0&&(xr="Illegal value:");var i=typeof ur=="object"&&e.hasProperty(ur,"kind")&&e.hasProperty(ur,"pos")&&G?"SyntaxKind: "+G(ur.kind):JSON.stringify(ur);return $("".concat(xr," ").concat(i),sr||P)}u.assertNever=P;function M(ur,xr,sr,i){F(1,"assertEachNode")&&K(xr===void 0||e.every(ur,xr),sr||"Unexpected node.",function(){return"Node array did not pass test '".concat(_(xr),"'.")},i||M)}u.assertEachNode=M;function Q(ur,xr,sr,i){F(1,"assertNode")&&K(ur!==void 0&&(xr===void 0||xr(ur)),sr||"Unexpected node.",function(){return"Node ".concat(G(ur==null?void 0:ur.kind)," did not pass test '").concat(_(xr),"'.")},i||Q)}u.assertNode=Q;function H(ur,xr,sr,i){F(1,"assertNotNode")&&K(ur===void 0||xr===void 0||!xr(ur),sr||"Unexpected node.",function(){return"Node ".concat(G(ur.kind)," should not have passed test '").concat(_(xr),"'.")},i||H)}u.assertNotNode=H;function w(ur,xr,sr,i){F(1,"assertOptionalNode")&&K(xr===void 0||ur===void 0||xr(ur),sr||"Unexpected node.",function(){return"Node ".concat(G(ur==null?void 0:ur.kind)," did not pass test '").concat(_(xr),"'.")},i||w)}u.assertOptionalNode=w;function d(ur,xr,sr,i){F(1,"assertOptionalToken")&&K(xr===void 0||ur===void 0||ur.kind===xr,sr||"Unexpected node.",function(){return"Node ".concat(G(ur==null?void 0:ur.kind)," was not a '").concat(G(xr),"' token.")},i||d)}u.assertOptionalToken=d;function B(ur,xr,sr){F(1,"assertMissingNode")&&K(ur===void 0,xr||"Unexpected node.",function(){return"Node ".concat(G(ur.kind)," was unexpected'.")},sr||B)}u.assertMissingNode=B;function T(ur){}u.type=T;function _(ur){if(typeof ur!="function")return"";if(ur.hasOwnProperty("name"))return ur.name;var xr=Function.prototype.toString.call(ur),sr=/^function\s+([\w\$]+)\s*\(/.exec(xr);return sr?sr[1]:""}u.getFunctionName=_;function h(ur){return"{ name: ".concat(e.unescapeLeadingUnderscores(ur.escapedName),"; flags: ").concat(ae(ur.flags),"; declarations: ").concat(e.map(ur.declarations,function(xr){return G(xr.kind)})," }")}u.formatSymbol=h;function R(ur,xr,sr){ur===void 0&&(ur=0);var i=b(xr);if(ur===0)return i.length>0&&i[0][0]===0?i[0][1]:"0";if(sr){for(var Mr="",fr=ur,Ar=0,de=i;Ar<de.length;Ar++){var we=de[Ar],qe=we[0],Cr=we[1];if(qe>ur)break;qe!==0&&qe&ur&&(Mr="".concat(Mr).concat(Mr?"|":"").concat(Cr),fr&=~qe)}if(fr===0)return Mr}else for(var kr=0,He=i;kr<He.length;kr++){var lr=He[kr],qe=lr[0],Cr=lr[1];if(qe===ur)return Cr}return ur.toString()}u.formatEnum=R;function b(ur){var xr=[];for(var sr in ur){var i=ur[sr];typeof i=="number"&&xr.push([i,sr])}return e.stableSort(xr,function(Mr,fr){return e.compareValues(Mr[0],fr[0])})}function G(ur){return R(ur,e.SyntaxKind,!1)}u.formatSyntaxKind=G;function Y(ur){return R(ur,e.SnippetKind,!1)}u.formatSnippetKind=Y;function pe(ur){return R(ur,e.NodeFlags,!0)}u.formatNodeFlags=pe;function A(ur){return R(ur,e.ModifierFlags,!0)}u.formatModifierFlags=A;function _e(ur){return R(ur,e.TransformFlags,!0)}u.formatTransformFlags=_e;function Se(ur){return R(ur,e.EmitFlags,!0)}u.formatEmitFlags=Se;function ae(ur){return R(ur,e.SymbolFlags,!0)}u.formatSymbolFlags=ae;function D(ur){return R(ur,e.TypeFlags,!0)}u.formatTypeFlags=D;function be(ur){return R(ur,e.SignatureFlags,!0)}u.formatSignatureFlags=be;function ne(ur){return R(ur,e.ObjectFlags,!0)}u.formatObjectFlags=ne;function J(ur){return R(ur,e.FlowFlags,!0)}u.formatFlowFlags=J;var le=!1,Te;function Me(){if(We(),!Te)throw new Error("Debugging helpers could not be loaded.");return Te}function Ke(ur){return console.log(Ae(ur))}u.printControlFlowGraph=Ke;function Ae(ur){return Me().formatControlFlowGraph(ur)}u.formatControlFlowGraph=Ae;var Ge;function se(ur){"__debugFlowFlags"in ur||Object.defineProperties(ur,{__tsDebuggerDisplay:{value:function(){var xr=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",sr=this.flags&~(2048-1);return"".concat(xr).concat(sr?" (".concat(J(sr),")"):"")}},__debugFlowFlags:{get:function(){return R(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return Ae(this)}}})}function xe(ur){le&&(typeof Object.setPrototypeOf=="function"?(Ge||(Ge=Object.create(Object.prototype),se(Ge)),Object.setPrototypeOf(ur,Ge)):se(ur))}u.attachFlowNodeDebugInfo=xe;var Re;function ce(ur){"__tsDebuggerDisplay"in ur||Object.defineProperties(ur,{__tsDebuggerDisplay:{value:function(xr){return xr=String(xr).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(xr)}}})}function Ue(ur){le&&(typeof Object.setPrototypeOf=="function"?(Re||(Re=Object.create(Array.prototype),ce(Re)),Object.setPrototypeOf(ur,Re)):ce(ur))}u.attachNodeArrayDebugInfo=Ue;function We(){if(le)return;var ur,xr;function sr(){return ur===void 0&&typeof WeakMap=="function"&&(ur=new WeakMap),ur}function i(){return xr===void 0&&typeof WeakMap=="function"&&(xr=new WeakMap),xr}Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Cr=this.flags&33554432?"TransientSymbol":"Symbol",kr=this.flags&-33554433;return"".concat(Cr," '").concat(e.symbolName(this),"'").concat(kr?" (".concat(ae(kr),")"):"")}},__debugFlags:{get:function(){return ae(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var Cr=this.flags&98304?"NullableType":this.flags&384?"LiteralType ".concat(JSON.stringify(this.value)):this.flags&2048?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&67359327?"IntrinsicType ".concat(this.intrinsicName):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",kr=this.flags&524288?this.objectFlags&-1344:0;return"".concat(Cr).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(kr?" (".concat(ne(kr),")"):"")}},__debugFlags:{get:function(){return D(this.flags)}},__debugObjectFlags:{get:function(){return this.flags&524288?ne(this.objectFlags):""}},__debugTypeToString:{value:function(){var Cr=sr(),kr=Cr==null?void 0:Cr.get(this);return kr===void 0&&(kr=this.checker.typeToString(this),Cr==null||Cr.set(this,kr)),kr}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return be(this.flags)}},__debugSignatureToString:{value:function(){var Cr;return(Cr=this.checker)===null||Cr===void 0?void 0:Cr.signatureToString(this)}}});for(var Mr=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()],fr=0,Ar=Mr;fr<Ar.length;fr++){var de=Ar[fr];de.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(de.prototype,{__tsDebuggerDisplay:{value:function(){var Cr=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":G(this.kind);return"".concat(Cr).concat(this.flags?" (".concat(pe(this.flags),")"):"")}},__debugKind:{get:function(){return G(this.kind)}},__debugNodeFlags:{get:function(){return pe(this.flags)}},__debugModifierFlags:{get:function(){return A(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return _e(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return Se(e.getEmitFlags(this))}},__debugGetText:{value:function(Cr){if(e.nodeIsSynthesized(this))return"";var kr=i(),He=kr==null?void 0:kr.get(this);if(He===void 0){var lr=e.getParseTreeNode(this),Hr=lr&&e.getSourceFileOfNode(lr);He=Hr?e.getSourceTextOfNodeFromSourceFile(Hr,lr,Cr):"",kr==null||kr.set(this,He)}return He}}})}try{if(e.sys&&e.sys.require){var we=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),qe=void 0;qe.error||(qe.module.init(e),Te=qe.module)}}catch(Cr){}le=!0}u.enableDebugInfo=We;function Ne(ur,xr,sr,i,Mr){var fr=xr?"DeprecationError: ":"DeprecationWarning: ";return fr+="'".concat(ur,"' "),fr+=i?"has been deprecated since v".concat(i):"is deprecated",fr+=xr?" and can no longer be used.":sr?" and will no longer be usable after v".concat(sr,"."):".",fr+=Mr?" ".concat(e.formatStringFromArgs(Mr,[ur],0)):"",fr}function ve(ur,xr,sr,i){var Mr=Ne(ur,!0,xr,sr,i);return function(){throw new TypeError(Mr)}}function Ve(ur,xr,sr,i){var Mr=!1;return function(){Mr||(m.warn(Ne(ur,!1,xr,sr,i)),Mr=!0)}}function gr(ur,xr){var sr,i;xr===void 0&&(xr={});var Mr=typeof xr.typeScriptVersion=="string"?new e.Version(xr.typeScriptVersion):(sr=xr.typeScriptVersion)!==null&&sr!==void 0?sr:I(),fr=typeof xr.errorAfter=="string"?new e.Version(xr.errorAfter):xr.errorAfter,Ar=typeof xr.warnAfter=="string"?new e.Version(xr.warnAfter):xr.warnAfter,de=typeof xr.since=="string"?new e.Version(xr.since):(i=xr.since)!==null&&i!==void 0?i:Ar,we=xr.error||fr&&Mr.compareTo(fr)<=0,qe=!Ar||Mr.compareTo(Ar)>=0;return we?ve(ur,fr,de,xr.message):qe?Ve(ur,fr,de,xr.message):e.noop}function Er(ur,xr){return function(){return ur(),xr.apply(this,arguments)}}function Nr(ur,xr){var sr=gr(_(ur),xr);return Er(sr,ur)}u.deprecate=Nr})(c=e.Debug||(e.Debug={}))})(mr||(mr={}));var mr;(function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,c=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,u=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,g=/^(0|[1-9]\d*)$/,p=function(){function P(M,Q,H,w,d){if(Q===void 0&&(Q=0),H===void 0&&(H=0),w===void 0&&(w=""),d===void 0&&(d=""),typeof M=="string"){var B=e.Debug.checkDefined(I(M),"Invalid version");M=B.major,Q=B.minor,H=B.patch,w=B.prerelease,d=B.build}e.Debug.assert(M>=0,"Invalid argument: major"),e.Debug.assert(Q>=0,"Invalid argument: minor"),e.Debug.assert(H>=0,"Invalid argument: patch"),e.Debug.assert(!w||c.test(w),"Invalid argument: prerelease"),e.Debug.assert(!d||u.test(d),"Invalid argument: build"),this.major=M,this.minor=Q,this.patch=H,this.prerelease=w?w.split("."):e.emptyArray,this.build=d?d.split("."):e.emptyArray}return P.tryParse=function(M){var Q=I(M);if(!!Q){var H=Q.major,w=Q.minor,d=Q.patch,B=Q.prerelease,T=Q.build;return new P(H,w,d,B,T)}},P.prototype.compareTo=function(M){return this===M?0:M===void 0?1:e.compareValues(this.major,M.major)||e.compareValues(this.minor,M.minor)||e.compareValues(this.patch,M.patch)||V(this.prerelease,M.prerelease)},P.prototype.increment=function(M){switch(M){case"major":return new P(this.major+1,0,0);case"minor":return new P(this.major,this.minor+1,0);case"patch":return new P(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(M)}},P.prototype.toString=function(){var M="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(M+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(M+="+".concat(this.build.join("."))),M},P.zero=new P(0,0,0),P}();e.Version=p;function I(P){var M=n.exec(P);if(!!M){var Q=M[1],H=M[2],w=H===void 0?"0":H,d=M[3],B=d===void 0?"0":d,T=M[4],_=T===void 0?"":T,h=M[5],R=h===void 0?"":h;if(!(_&&!c.test(_))&&!(R&&!u.test(R)))return{major:parseInt(Q,10),minor:parseInt(w,10),patch:parseInt(B,10),prerelease:_,build:R}}}function V(P,M){if(P===M)return 0;if(P.length===0)return M.length===0?0:1;if(M.length===0)return-1;for(var Q=Math.min(P.length,M.length),H=0;H<Q;H++){var w=P[H],d=M[H];if(w!==d){var B=g.test(w),T=g.test(d);if(B||T){if(B!==T)return B?-1:1;var _=e.compareValues(+w,+d);if(_)return _}else{var _=e.compareStringsCaseSensitive(w,d);if(_)return _}}}return e.compareValues(P.length,M.length)}var L=function(){function P(M){this._alternatives=M?e.Debug.checkDefined(F(M),"Invalid range spec."):e.emptyArray}return P.tryParse=function(M){var Q=F(M);if(Q){var H=new P("");return H._alternatives=Q,H}},P.prototype.test=function(M){return typeof M=="string"&&(M=new p(M)),O(M,this._alternatives)},P.prototype.toString=function(){return Z(this._alternatives)},P}();e.VersionRange=L;var m=/\|\|/g,y=/\s+/g,j=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,te=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,E=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function F(P){for(var M=[],Q=0,H=e.trimString(P).split(m);Q<H.length;Q++){var w=H[Q];if(!!w){var d=[];w=e.trimString(w);var B=te.exec(w);if(B){if(!C(B[1],B[2],d))return}else for(var T=0,_=w.split(y);T<_.length;T++){var h=_[T],R=E.exec(e.trimString(h));if(!R||!K(R[1],R[2],d))return}M.push(d)}}return M}function $(P){var M=j.exec(P);if(!!M){var Q=M[1],H=M[2],w=H===void 0?"*":H,d=M[3],B=d===void 0?"*":d,T=M[4],_=M[5],h=new p(k(Q)?0:parseInt(Q,10),k(Q)||k(w)?0:parseInt(w,10),k(Q)||k(w)||k(B)?0:parseInt(B,10),T,_);return{version:h,major:Q,minor:w,patch:B}}}function C(P,M,Q){var H=$(P);if(!H)return!1;var w=$(M);return w?(k(H.major)||Q.push(X(">=",H.version)),k(w.major)||Q.push(k(w.minor)?X("<",w.version.increment("major")):k(w.patch)?X("<",w.version.increment("minor")):X("<=",w.version)),!0):!1}function K(P,M,Q){var H=$(M);if(!H)return!1;var w=H.version,d=H.major,B=H.minor,T=H.patch;if(k(d))(P==="<"||P===">")&&Q.push(X("<",p.zero));else switch(P){case"~":Q.push(X(">=",w)),Q.push(X("<",w.increment(k(B)?"major":"minor")));break;case"^":Q.push(X(">=",w)),Q.push(X("<",w.increment(w.major>0||k(B)?"major":w.minor>0||k(T)?"minor":"patch")));break;case"<":case">=":Q.push(X(P,w));break;case"<=":case">":Q.push(k(B)?X(P==="<="?"<":">=",w.increment("major")):k(T)?X(P==="<="?"<":">=",w.increment("minor")):X(P,w));break;case"=":case void 0:k(B)||k(T)?(Q.push(X(">=",w)),Q.push(X("<",w.increment(k(B)?"major":"minor")))):Q.push(X("=",w));break;default:return!1}return!0}function k(P){return P==="*"||P==="x"||P==="X"}function X(P,M){return{operator:P,operand:M}}function O(P,M){if(M.length===0)return!0;for(var Q=0,H=M;Q<H.length;Q++){var w=H[Q];if(x(P,w))return!0}return!1}function x(P,M){for(var Q=0,H=M;Q<H.length;Q++){var w=H[Q];if(!ie(P,w.operator,w.operand))return!1}return!0}function ie(P,M,Q){var H=P.compareTo(Q);switch(M){case"<":return H<0;case"<=":return H<=0;case">":return H>0;case">=":return H>=0;case"=":return H===0;default:return e.Debug.assertNever(M)}}function Z(P){return e.map(P,re).join(" || ")||"*"}function re(P){return e.map(P,q).join(" ")}function q(P){return"".concat(P.operator).concat(P.operand)}})(mr||(mr={}));var mr;(function(e){function n(V,L){return typeof V=="object"&&typeof V.timeOrigin=="number"&&typeof V.mark=="function"&&typeof V.measure=="function"&&typeof V.now=="function"&&typeof L=="function"}function c(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&n(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function u(){if(typeof process!="undefined"&&process.nextTick&&!process.browser&&!0&&!1)var V,L,m,y,j,te}var g=c()||u(),p=g==null?void 0:g.performance;function I(){return g}e.tryGetNativePerformanceHooks=I,e.timestamp=p?function(){return p.now()}:Date.now?Date.now:function(){return+new Date}})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u,g;function p(O,x,ie,Z){return O?I(x,ie,Z):c.nullTimer}c.createTimerIf=p;function I(O,x,ie){var Z=0;return{enter:re,exit:q};function re(){++Z===1&&te(x)}function q(){--Z===0?(te(ie),E(O,x,ie)):Z<0&&e.Debug.fail("enter/exit count does not match.")}}c.createTimer=I,c.nullTimer={enter:e.noop,exit:e.noop};var V=!1,L=e.timestamp(),m=new e.Map,y=new e.Map,j=new e.Map;function te(O){var x;if(V){var ie=(x=y.get(O))!==null&&x!==void 0?x:0;y.set(O,ie+1),m.set(O,e.timestamp()),g==null||g.mark(O)}}c.mark=te;function E(O,x,ie){var Z,re;if(V){var q=(Z=ie!==void 0?m.get(ie):void 0)!==null&&Z!==void 0?Z:e.timestamp(),P=(re=x!==void 0?m.get(x):void 0)!==null&&re!==void 0?re:L,M=j.get(O)||0;j.set(O,M+(q-P)),g==null||g.measure(O,x,ie)}}c.measure=E;function F(O){return y.get(O)||0}c.getCount=F;function $(O){return j.get(O)||0}c.getDuration=$;function C(O){j.forEach(function(x,ie){return O(ie,x)})}c.forEachMeasure=C;function K(){return V}c.isEnabled=K;function k(O){var x;return O===void 0&&(O=e.sys),V||(V=!0,u||(u=e.tryGetNativePerformanceHooks()),u&&(L=u.performance.timeOrigin,(u.shouldWriteNativeEvents||((x=O==null?void 0:O.cpuProfilingEnabled)===null||x===void 0?void 0:x.call(O))||(O==null?void 0:O.debugMode))&&(g=u.performance))),!0}c.enable=k;function X(){V&&(m.clear(),y.clear(),j.clear(),g=void 0,V=!1)}c.disable=X})(n=e.performance||(e.performance={}))})(mr||(mr={}));var mr;(function(e){var n,c={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop},u;try{var g=(n=process.env.TS_ETW_MODULE_PATH)!==null&&n!==void 0?n:"./node_modules/@microsoft/typescript-etw";u=void 0}catch(p){u=void 0}e.perfLogger=u&&u.logEvent?u:c})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u,g=0,p=0,I,V=[],L,m=[];function y(q,P,M){if(e.Debug.assert(!e.tracing,"Tracing already started"),u===void 0)try{u=void 0}catch(B){throw new Error(`tracing requires having fs
(original error: `.concat(B.message||B,")"))}I=q,V.length=0,L===void 0&&(L=e.combinePaths(P,"legend.json")),u.existsSync(P)||u.mkdirSync(P,{recursive:!0});var Q=I==="build"?".".concat(process.pid,"-").concat(++g):I==="server"?".".concat(process.pid):"",H=e.combinePaths(P,"trace".concat(Q,".json")),w=e.combinePaths(P,"types".concat(Q,".json"));m.push({configFilePath:M,tracePath:H,typesPath:w}),p=u.openSync(H,"w"),e.tracing=c;var d={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};u.writeSync(p,`[
`+[kn({name:"process_name",args:{name:"tsc"}},d),kn({name:"thread_name",args:{name:"Main"}},d),kn(kn({name:"TracingStartedInBrowser"},d),{cat:"disabled-by-default-devtools.timeline"})].map(function(B){return JSON.stringify(B)}).join(`,
`))}c.startTracing=y;function j(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!V.length==(I!=="server")),u.writeSync(p,`
]
`),u.closeSync(p),e.tracing=void 0,V.length?Z(V):m[m.length-1].typesPath=void 0}c.stopTracing=j;function te(q){I!=="server"&&V.push(q)}c.recordType=te;var E;(function(q){q.Parse="parse",q.Program="program",q.Bind="bind",q.Check="check",q.CheckTypes="checkTypes",q.Emit="emit",q.Session="session"})(E=c.Phase||(c.Phase={}));function F(q,P,M){x("I",q,P,M,'"s":"g"')}c.instant=F;var $=[];function C(q,P,M,Q){Q===void 0&&(Q=!1),Q&&x("B",q,P,M),$.push({phase:q,name:P,args:M,time:1e3*e.timestamp(),separateBeginAndEnd:Q})}c.push=C;function K(){e.Debug.assert($.length>0),O($.length-1,1e3*e.timestamp()),$.length--}c.pop=K;function k(){for(var q=1e3*e.timestamp(),P=$.length-1;P>=0;P--)O(P,q);$.length=0}c.popAll=k;var X=1e3*10;function O(q,P){var M=$[q],Q=M.phase,H=M.name,w=M.args,d=M.time,B=M.separateBeginAndEnd;B?x("E",Q,H,w,void 0,P):X-d%X<=P-d&&x("X",Q,H,w,'"dur":'.concat(P-d),d)}function x(q,P,M,Q,H,w){w===void 0&&(w=1e3*e.timestamp()),!(I==="server"&&P==="checkTypes")&&(e.performance.mark("beginTracing"),u.writeSync(p,`,
{"pid":1,"tid":1,"ph":"`.concat(q,'","cat":"').concat(P,'","ts":').concat(w,',"name":"').concat(M,'"')),H&&u.writeSync(p,",".concat(H)),Q&&u.writeSync(p,',"args":'.concat(JSON.stringify(Q))),u.writeSync(p,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function ie(q){var P=e.getSourceFileOfNode(q);return P?{path:P.path,start:M(e.getLineAndCharacterOfPosition(P,q.pos)),end:M(e.getLineAndCharacterOfPosition(P,q.end))}:void 0;function M(Q){return{line:Q.line+1,character:Q.character+1}}}function Z(q){var P,M,Q,H,w,d,B,T,_,h,R,b,G,Y,pe,A,_e,Se,ae,D,be,ne;e.performance.mark("beginDumpTypes");var J=m[m.length-1].typesPath,le=u.openSync(J,"w"),Te=new e.Map;u.writeSync(le,"[");for(var Me=q.length,Ke=0;Ke<Me;Ke++){var Ae=q[Ke],Ge=Ae.objectFlags,se=(P=Ae.aliasSymbol)!==null&&P!==void 0?P:Ae.symbol,xe=void 0;if(Ge&16|Ae.flags&2944)try{xe=(M=Ae.checker)===null||M===void 0?void 0:M.typeToString(Ae)}catch(fr){xe=void 0}var Re={};if(Ae.flags&8388608){var ce=Ae;Re={indexedAccessObjectType:(Q=ce.objectType)===null||Q===void 0?void 0:Q.id,indexedAccessIndexType:(H=ce.indexType)===null||H===void 0?void 0:H.id}}var Ue={};if(Ge&4){var We=Ae;Ue={instantiatedType:(w=We.target)===null||w===void 0?void 0:w.id,typeArguments:(d=We.resolvedTypeArguments)===null||d===void 0?void 0:d.map(function(fr){return fr.id}),referenceLocation:ie(We.node)}}var Ne={};if(Ae.flags&16777216){var ve=Ae;Ne={conditionalCheckType:(B=ve.checkType)===null||B===void 0?void 0:B.id,conditionalExtendsType:(T=ve.extendsType)===null||T===void 0?void 0:T.id,conditionalTrueType:(h=(_=ve.resolvedTrueType)===null||_===void 0?void 0:_.id)!==null&&h!==void 0?h:-1,conditionalFalseType:(b=(R=ve.resolvedFalseType)===null||R===void 0?void 0:R.id)!==null&&b!==void 0?b:-1}}var Ve={};if(Ae.flags&33554432){var gr=Ae;Ve={substitutionBaseType:(G=gr.baseType)===null||G===void 0?void 0:G.id,substituteType:(Y=gr.substitute)===null||Y===void 0?void 0:Y.id}}var Er={};if(Ge&1024){var Nr=Ae;Er={reverseMappedSourceType:(pe=Nr.source)===null||pe===void 0?void 0:pe.id,reverseMappedMappedType:(A=Nr.mappedType)===null||A===void 0?void 0:A.id,reverseMappedConstraintType:(_e=Nr.constraintType)===null||_e===void 0?void 0:_e.id}}var ur={};if(Ge&256){var xr=Ae;ur={evolvingArrayElementType:xr.elementType.id,evolvingArrayFinalType:(Se=xr.finalArrayType)===null||Se===void 0?void 0:Se.id}}var sr=void 0,i=Ae.checker.getRecursionIdentity(Ae);i&&(sr=Te.get(i),sr||(sr=Te.size,Te.set(i,sr)));var Mr=kn(kn(kn(kn(kn(kn(kn({id:Ae.id,intrinsicName:Ae.intrinsicName,symbolName:(se==null?void 0:se.escapedName)&&e.unescapeLeadingUnderscores(se.escapedName),recursionId:sr,isTuple:Ge&8?!0:void 0,unionTypes:Ae.flags&1048576?(ae=Ae.types)===null||ae===void 0?void 0:ae.map(function(fr){return fr.id}):void 0,intersectionTypes:Ae.flags&2097152?Ae.types.map(function(fr){return fr.id}):void 0,aliasTypeArguments:(D=Ae.aliasTypeArguments)===null||D===void 0?void 0:D.map(function(fr){return fr.id}),keyofType:Ae.flags&4194304?(be=Ae.type)===null||be===void 0?void 0:be.id:void 0},Re),Ue),Ne),Ve),Er),ur),{destructuringPattern:ie(Ae.pattern),firstDeclaration:ie((ne=se==null?void 0:se.declarations)===null||ne===void 0?void 0:ne[0]),flags:e.Debug.formatTypeFlags(Ae.flags).split("|"),display:xe});u.writeSync(le,JSON.stringify(Mr)),Ke<Me-1&&u.writeSync(le,`,
`)}u.writeSync(le,`]
`),u.closeSync(le),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}function re(){!L||u.writeFileSync(L,JSON.stringify(m))}c.dumpLegend=re})(n||(n={})),e.startTracing=n.startTracing,e.dumpTracingLegend=n.dumpLegend})(mr||(mr={}));var mr;(function(e){var n;(function(i){i[i.Unknown=0]="Unknown",i[i.EndOfFileToken=1]="EndOfFileToken",i[i.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",i[i.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",i[i.NewLineTrivia=4]="NewLineTrivia",i[i.WhitespaceTrivia=5]="WhitespaceTrivia",i[i.ShebangTrivia=6]="ShebangTrivia",i[i.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",i[i.NumericLiteral=8]="NumericLiteral",i[i.BigIntLiteral=9]="BigIntLiteral",i[i.StringLiteral=10]="StringLiteral",i[i.JsxText=11]="JsxText",i[i.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",i[i.RegularExpressionLiteral=13]="RegularExpressionLiteral",i[i.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",i[i.TemplateHead=15]="TemplateHead",i[i.TemplateMiddle=16]="TemplateMiddle",i[i.TemplateTail=17]="TemplateTail",i[i.OpenBraceToken=18]="OpenBraceToken",i[i.CloseBraceToken=19]="CloseBraceToken",i[i.OpenParenToken=20]="OpenParenToken",i[i.CloseParenToken=21]="CloseParenToken",i[i.OpenBracketToken=22]="OpenBracketToken",i[i.CloseBracketToken=23]="CloseBracketToken",i[i.DotToken=24]="DotToken",i[i.DotDotDotToken=25]="DotDotDotToken",i[i.SemicolonToken=26]="SemicolonToken",i[i.CommaToken=27]="CommaToken",i[i.QuestionDotToken=28]="QuestionDotToken",i[i.LessThanToken=29]="LessThanToken",i[i.LessThanSlashToken=30]="LessThanSlashToken",i[i.GreaterThanToken=31]="GreaterThanToken",i[i.LessThanEqualsToken=32]="LessThanEqualsToken",i[i.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",i[i.EqualsEqualsToken=34]="EqualsEqualsToken",i[i.ExclamationEqualsToken=35]="ExclamationEqualsToken",i[i.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",i[i.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",i[i.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",i[i.PlusToken=39]="PlusToken",i[i.MinusToken=40]="MinusToken",i[i.AsteriskToken=41]="AsteriskToken",i[i.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",i[i.SlashToken=43]="SlashToken",i[i.PercentToken=44]="PercentToken",i[i.PlusPlusToken=45]="PlusPlusToken",i[i.MinusMinusToken=46]="MinusMinusToken",i[i.LessThanLessThanToken=47]="LessThanLessThanToken",i[i.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",i[i.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",i[i.AmpersandToken=50]="AmpersandToken",i[i.BarToken=51]="BarToken",i[i.CaretToken=52]="CaretToken",i[i.ExclamationToken=53]="ExclamationToken",i[i.TildeToken=54]="TildeToken",i[i.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",i[i.BarBarToken=56]="BarBarToken",i[i.QuestionToken=57]="QuestionToken",i[i.ColonToken=58]="ColonToken",i[i.AtToken=59]="AtToken",i[i.QuestionQuestionToken=60]="QuestionQuestionToken",i[i.BacktickToken=61]="BacktickToken",i[i.HashToken=62]="HashToken",i[i.EqualsToken=63]="EqualsToken",i[i.PlusEqualsToken=64]="PlusEqualsToken",i[i.MinusEqualsToken=65]="MinusEqualsToken",i[i.AsteriskEqualsToken=66]="AsteriskEqualsToken",i[i.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",i[i.SlashEqualsToken=68]="SlashEqualsToken",i[i.PercentEqualsToken=69]="PercentEqualsToken",i[i.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",i[i.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",i[i.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",i[i.AmpersandEqualsToken=73]="AmpersandEqualsToken",i[i.BarEqualsToken=74]="BarEqualsToken",i[i.BarBarEqualsToken=75]="BarBarEqualsToken",i[i.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",i[i.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",i[i.CaretEqualsToken=78]="CaretEqualsToken",i[i.Identifier=79]="Identifier",i[i.PrivateIdentifier=80]="PrivateIdentifier",i[i.BreakKeyword=81]="BreakKeyword",i[i.CaseKeyword=82]="CaseKeyword",i[i.CatchKeyword=83]="CatchKeyword",i[i.ClassKeyword=84]="ClassKeyword",i[i.ConstKeyword=85]="ConstKeyword",i[i.ContinueKeyword=86]="ContinueKeyword",i[i.DebuggerKeyword=87]="DebuggerKeyword",i[i.DefaultKeyword=88]="DefaultKeyword",i[i.DeleteKeyword=89]="DeleteKeyword",i[i.DoKeyword=90]="DoKeyword",i[i.ElseKeyword=91]="ElseKeyword",i[i.EnumKeyword=92]="EnumKeyword",i[i.ExportKeyword=93]="ExportKeyword",i[i.ExtendsKeyword=94]="ExtendsKeyword",i[i.FalseKeyword=95]="FalseKeyword",i[i.FinallyKeyword=96]="FinallyKeyword",i[i.ForKeyword=97]="ForKeyword",i[i.FunctionKeyword=98]="FunctionKeyword",i[i.IfKeyword=99]="IfKeyword",i[i.ImportKeyword=100]="ImportKeyword",i[i.InKeyword=101]="InKeyword",i[i.InstanceOfKeyword=102]="InstanceOfKeyword",i[i.NewKeyword=103]="NewKeyword",i[i.NullKeyword=104]="NullKeyword",i[i.ReturnKeyword=105]="ReturnKeyword",i[i.SuperKeyword=106]="SuperKeyword",i[i.SwitchKeyword=107]="SwitchKeyword",i[i.ThisKeyword=108]="ThisKeyword",i[i.ThrowKeyword=109]="ThrowKeyword",i[i.TrueKeyword=110]="TrueKeyword",i[i.TryKeyword=111]="TryKeyword",i[i.TypeOfKeyword=112]="TypeOfKeyword",i[i.VarKeyword=113]="VarKeyword",i[i.VoidKeyword=114]="VoidKeyword",i[i.WhileKeyword=115]="WhileKeyword",i[i.WithKeyword=116]="WithKeyword",i[i.ImplementsKeyword=117]="ImplementsKeyword",i[i.InterfaceKeyword=118]="InterfaceKeyword",i[i.LetKeyword=119]="LetKeyword",i[i.PackageKeyword=120]="PackageKeyword",i[i.PrivateKeyword=121]="PrivateKeyword",i[i.ProtectedKeyword=122]="ProtectedKeyword",i[i.PublicKeyword=123]="PublicKeyword",i[i.StaticKeyword=124]="StaticKeyword",i[i.YieldKeyword=125]="YieldKeyword",i[i.AbstractKeyword=126]="AbstractKeyword",i[i.AsKeyword=127]="AsKeyword",i[i.AssertsKeyword=128]="AssertsKeyword",i[i.AssertKeyword=129]="AssertKeyword",i[i.AnyKeyword=130]="AnyKeyword",i[i.AsyncKeyword=131]="AsyncKeyword",i[i.AwaitKeyword=132]="AwaitKeyword",i[i.BooleanKeyword=133]="BooleanKeyword",i[i.ConstructorKeyword=134]="ConstructorKeyword",i[i.DeclareKeyword=135]="DeclareKeyword",i[i.GetKeyword=136]="GetKeyword",i[i.InferKeyword=137]="InferKeyword",i[i.IntrinsicKeyword=138]="IntrinsicKeyword",i[i.IsKeyword=139]="IsKeyword",i[i.KeyOfKeyword=140]="KeyOfKeyword",i[i.ModuleKeyword=141]="ModuleKeyword",i[i.NamespaceKeyword=142]="NamespaceKeyword",i[i.NeverKeyword=143]="NeverKeyword",i[i.ReadonlyKeyword=144]="ReadonlyKeyword",i[i.RequireKeyword=145]="RequireKeyword",i[i.NumberKeyword=146]="NumberKeyword",i[i.ObjectKeyword=147]="ObjectKeyword",i[i.SetKeyword=148]="SetKeyword",i[i.StringKeyword=149]="StringKeyword",i[i.SymbolKeyword=150]="SymbolKeyword",i[i.TypeKeyword=151]="TypeKeyword",i[i.UndefinedKeyword=152]="UndefinedKeyword",i[i.UniqueKeyword=153]="UniqueKeyword",i[i.UnknownKeyword=154]="UnknownKeyword",i[i.FromKeyword=155]="FromKeyword",i[i.GlobalKeyword=156]="GlobalKeyword",i[i.BigIntKeyword=157]="BigIntKeyword",i[i.OverrideKeyword=158]="OverrideKeyword",i[i.OfKeyword=159]="OfKeyword",i[i.QualifiedName=160]="QualifiedName",i[i.ComputedPropertyName=161]="ComputedPropertyName",i[i.TypeParameter=162]="TypeParameter",i[i.Parameter=163]="Parameter",i[i.Decorator=164]="Decorator",i[i.PropertySignature=165]="PropertySignature",i[i.PropertyDeclaration=166]="PropertyDeclaration",i[i.MethodSignature=167]="MethodSignature",i[i.MethodDeclaration=168]="MethodDeclaration",i[i.ClassStaticBlockDeclaration=169]="ClassStaticBlockDeclaration",i[i.Constructor=170]="Constructor",i[i.GetAccessor=171]="GetAccessor",i[i.SetAccessor=172]="SetAccessor",i[i.CallSignature=173]="CallSignature",i[i.ConstructSignature=174]="ConstructSignature",i[i.IndexSignature=175]="IndexSignature",i[i.TypePredicate=176]="TypePredicate",i[i.TypeReference=177]="TypeReference",i[i.FunctionType=178]="FunctionType",i[i.ConstructorType=179]="ConstructorType",i[i.TypeQuery=180]="TypeQuery",i[i.TypeLiteral=181]="TypeLiteral",i[i.ArrayType=182]="ArrayType",i[i.TupleType=183]="TupleType",i[i.OptionalType=184]="OptionalType",i[i.RestType=185]="RestType",i[i.UnionType=186]="UnionType",i[i.IntersectionType=187]="IntersectionType",i[i.ConditionalType=188]="ConditionalType",i[i.InferType=189]="InferType",i[i.ParenthesizedType=190]="ParenthesizedType",i[i.ThisType=191]="ThisType",i[i.TypeOperator=192]="TypeOperator",i[i.IndexedAccessType=193]="IndexedAccessType",i[i.MappedType=194]="MappedType",i[i.LiteralType=195]="LiteralType",i[i.NamedTupleMember=196]="NamedTupleMember",i[i.TemplateLiteralType=197]="TemplateLiteralType",i[i.TemplateLiteralTypeSpan=198]="TemplateLiteralTypeSpan",i[i.ImportType=199]="ImportType",i[i.ObjectBindingPattern=200]="ObjectBindingPattern",i[i.ArrayBindingPattern=201]="ArrayBindingPattern",i[i.BindingElement=202]="BindingElement",i[i.ArrayLiteralExpression=203]="ArrayLiteralExpression",i[i.ObjectLiteralExpression=204]="ObjectLiteralExpression",i[i.PropertyAccessExpression=205]="PropertyAccessExpression",i[i.ElementAccessExpression=206]="ElementAccessExpression",i[i.CallExpression=207]="CallExpression",i[i.NewExpression=208]="NewExpression",i[i.TaggedTemplateExpression=209]="TaggedTemplateExpression",i[i.TypeAssertionExpression=210]="TypeAssertionExpression",i[i.ParenthesizedExpression=211]="ParenthesizedExpression",i[i.FunctionExpression=212]="FunctionExpression",i[i.ArrowFunction=213]="ArrowFunction",i[i.DeleteExpression=214]="DeleteExpression",i[i.TypeOfExpression=215]="TypeOfExpression",i[i.VoidExpression=216]="VoidExpression",i[i.AwaitExpression=217]="AwaitExpression",i[i.PrefixUnaryExpression=218]="PrefixUnaryExpression",i[i.PostfixUnaryExpression=219]="PostfixUnaryExpression",i[i.BinaryExpression=220]="BinaryExpression",i[i.ConditionalExpression=221]="ConditionalExpression",i[i.TemplateExpression=222]="TemplateExpression",i[i.YieldExpression=223]="YieldExpression",i[i.SpreadElement=224]="SpreadElement",i[i.ClassExpression=225]="ClassExpression",i[i.OmittedExpression=226]="OmittedExpression",i[i.ExpressionWithTypeArguments=227]="ExpressionWithTypeArguments",i[i.AsExpression=228]="AsExpression",i[i.NonNullExpression=229]="NonNullExpression",i[i.MetaProperty=230]="MetaProperty",i[i.SyntheticExpression=231]="SyntheticExpression",i[i.TemplateSpan=232]="TemplateSpan",i[i.SemicolonClassElement=233]="SemicolonClassElement",i[i.Block=234]="Block",i[i.EmptyStatement=235]="EmptyStatement",i[i.VariableStatement=236]="VariableStatement",i[i.ExpressionStatement=237]="ExpressionStatement",i[i.IfStatement=238]="IfStatement",i[i.DoStatement=239]="DoStatement",i[i.WhileStatement=240]="WhileStatement",i[i.ForStatement=241]="ForStatement",i[i.ForInStatement=242]="ForInStatement",i[i.ForOfStatement=243]="ForOfStatement",i[i.ContinueStatement=244]="ContinueStatement",i[i.BreakStatement=245]="BreakStatement",i[i.ReturnStatement=246]="ReturnStatement",i[i.WithStatement=247]="WithStatement",i[i.SwitchStatement=248]="SwitchStatement",i[i.LabeledStatement=249]="LabeledStatement",i[i.ThrowStatement=250]="ThrowStatement",i[i.TryStatement=251]="TryStatement",i[i.DebuggerStatement=252]="DebuggerStatement",i[i.VariableDeclaration=253]="VariableDeclaration",i[i.VariableDeclarationList=254]="VariableDeclarationList",i[i.FunctionDeclaration=255]="FunctionDeclaration",i[i.ClassDeclaration=256]="ClassDeclaration",i[i.InterfaceDeclaration=257]="InterfaceDeclaration",i[i.TypeAliasDeclaration=258]="TypeAliasDeclaration",i[i.EnumDeclaration=259]="EnumDeclaration",i[i.ModuleDeclaration=260]="ModuleDeclaration",i[i.ModuleBlock=261]="ModuleBlock",i[i.CaseBlock=262]="CaseBlock",i[i.NamespaceExportDeclaration=263]="NamespaceExportDeclaration",i[i.ImportEqualsDeclaration=264]="ImportEqualsDeclaration",i[i.ImportDeclaration=265]="ImportDeclaration",i[i.ImportClause=266]="ImportClause",i[i.NamespaceImport=267]="NamespaceImport",i[i.NamedImports=268]="NamedImports",i[i.ImportSpecifier=269]="ImportSpecifier",i[i.ExportAssignment=270]="ExportAssignment",i[i.ExportDeclaration=271]="ExportDeclaration",i[i.NamedExports=272]="NamedExports",i[i.NamespaceExport=273]="NamespaceExport",i[i.ExportSpecifier=274]="ExportSpecifier",i[i.MissingDeclaration=275]="MissingDeclaration",i[i.ExternalModuleReference=276]="ExternalModuleReference",i[i.JsxElement=277]="JsxElement",i[i.JsxSelfClosingElement=278]="JsxSelfClosingElement",i[i.JsxOpeningElement=279]="JsxOpeningElement",i[i.JsxClosingElement=280]="JsxClosingElement",i[i.JsxFragment=281]="JsxFragment",i[i.JsxOpeningFragment=282]="JsxOpeningFragment",i[i.JsxClosingFragment=283]="JsxClosingFragment",i[i.JsxAttribute=284]="JsxAttribute",i[i.JsxAttributes=285]="JsxAttributes",i[i.JsxSpreadAttribute=286]="JsxSpreadAttribute",i[i.JsxExpression=287]="JsxExpression",i[i.CaseClause=288]="CaseClause",i[i.DefaultClause=289]="DefaultClause",i[i.HeritageClause=290]="HeritageClause",i[i.CatchClause=291]="CatchClause",i[i.AssertClause=292]="AssertClause",i[i.AssertEntry=293]="AssertEntry",i[i.PropertyAssignment=294]="PropertyAssignment",i[i.ShorthandPropertyAssignment=295]="ShorthandPropertyAssignment",i[i.SpreadAssignment=296]="SpreadAssignment",i[i.EnumMember=297]="EnumMember",i[i.UnparsedPrologue=298]="UnparsedPrologue",i[i.UnparsedPrepend=299]="UnparsedPrepend",i[i.UnparsedText=300]="UnparsedText",i[i.UnparsedInternalText=301]="UnparsedInternalText",i[i.UnparsedSyntheticReference=302]="UnparsedSyntheticReference",i[i.SourceFile=303]="SourceFile",i[i.Bundle=304]="Bundle",i[i.UnparsedSource=305]="UnparsedSource",i[i.InputFiles=306]="InputFiles",i[i.JSDocTypeExpression=307]="JSDocTypeExpression",i[i.JSDocNameReference=308]="JSDocNameReference",i[i.JSDocMemberName=309]="JSDocMemberName",i[i.JSDocAllType=310]="JSDocAllType",i[i.JSDocUnknownType=311]="JSDocUnknownType",i[i.JSDocNullableType=312]="JSDocNullableType",i[i.JSDocNonNullableType=313]="JSDocNonNullableType",i[i.JSDocOptionalType=314]="JSDocOptionalType",i[i.JSDocFunctionType=315]="JSDocFunctionType",i[i.JSDocVariadicType=316]="JSDocVariadicType",i[i.JSDocNamepathType=317]="JSDocNamepathType",i[i.JSDocComment=318]="JSDocComment",i[i.JSDocText=319]="JSDocText",i[i.JSDocTypeLiteral=320]="JSDocTypeLiteral",i[i.JSDocSignature=321]="JSDocSignature",i[i.JSDocLink=322]="JSDocLink",i[i.JSDocLinkCode=323]="JSDocLinkCode",i[i.JSDocLinkPlain=324]="JSDocLinkPlain",i[i.JSDocTag=325]="JSDocTag",i[i.JSDocAugmentsTag=326]="JSDocAugmentsTag",i[i.JSDocImplementsTag=327]="JSDocImplementsTag",i[i.JSDocAuthorTag=328]="JSDocAuthorTag",i[i.JSDocDeprecatedTag=329]="JSDocDeprecatedTag",i[i.JSDocClassTag=330]="JSDocClassTag",i[i.JSDocPublicTag=331]="JSDocPublicTag",i[i.JSDocPrivateTag=332]="JSDocPrivateTag",i[i.JSDocProtectedTag=333]="JSDocProtectedTag",i[i.JSDocReadonlyTag=334]="JSDocReadonlyTag",i[i.JSDocOverrideTag=335]="JSDocOverrideTag",i[i.JSDocCallbackTag=336]="JSDocCallbackTag",i[i.JSDocEnumTag=337]="JSDocEnumTag",i[i.JSDocParameterTag=338]="JSDocParameterTag",i[i.JSDocReturnTag=339]="JSDocReturnTag",i[i.JSDocThisTag=340]="JSDocThisTag",i[i.JSDocTypeTag=341]="JSDocTypeTag",i[i.JSDocTemplateTag=342]="JSDocTemplateTag",i[i.JSDocTypedefTag=343]="JSDocTypedefTag",i[i.JSDocSeeTag=344]="JSDocSeeTag",i[i.JSDocPropertyTag=345]="JSDocPropertyTag",i[i.SyntaxList=346]="SyntaxList",i[i.NotEmittedStatement=347]="NotEmittedStatement",i[i.PartiallyEmittedExpression=348]="PartiallyEmittedExpression",i[i.CommaListExpression=349]="CommaListExpression",i[i.MergeDeclarationMarker=350]="MergeDeclarationMarker",i[i.EndOfDeclarationMarker=351]="EndOfDeclarationMarker",i[i.SyntheticReferenceExpression=352]="SyntheticReferenceExpression",i[i.Count=353]="Count",i[i.FirstAssignment=63]="FirstAssignment",i[i.LastAssignment=78]="LastAssignment",i[i.FirstCompoundAssignment=64]="FirstCompoundAssignment",i[i.LastCompoundAssignment=78]="LastCompoundAssignment",i[i.FirstReservedWord=81]="FirstReservedWord",i[i.LastReservedWord=116]="LastReservedWord",i[i.FirstKeyword=81]="FirstKeyword",i[i.LastKeyword=159]="LastKeyword",i[i.FirstFutureReservedWord=117]="FirstFutureReservedWord",i[i.LastFutureReservedWord=125]="LastFutureReservedWord",i[i.FirstTypeNode=176]="FirstTypeNode",i[i.LastTypeNode=199]="LastTypeNode",i[i.FirstPunctuation=18]="FirstPunctuation",i[i.LastPunctuation=78]="LastPunctuation",i[i.FirstToken=0]="FirstToken",i[i.LastToken=159]="LastToken",i[i.FirstTriviaToken=2]="FirstTriviaToken",i[i.LastTriviaToken=7]="LastTriviaToken",i[i.FirstLiteralToken=8]="FirstLiteralToken",i[i.LastLiteralToken=14]="LastLiteralToken",i[i.FirstTemplateToken=14]="FirstTemplateToken",i[i.LastTemplateToken=17]="LastTemplateToken",i[i.FirstBinaryOperator=29]="FirstBinaryOperator",i[i.LastBinaryOperator=78]="LastBinaryOperator",i[i.FirstStatement=236]="FirstStatement",i[i.LastStatement=252]="LastStatement",i[i.FirstNode=160]="FirstNode",i[i.FirstJSDocNode=307]="FirstJSDocNode",i[i.LastJSDocNode=345]="LastJSDocNode",i[i.FirstJSDocTagNode=325]="FirstJSDocTagNode",i[i.LastJSDocTagNode=345]="LastJSDocTagNode",i[i.FirstContextualKeyword=126]="FirstContextualKeyword",i[i.LastContextualKeyword=159]="LastContextualKeyword"})(n=e.SyntaxKind||(e.SyntaxKind={}));var c;(function(i){i[i.None=0]="None",i[i.Let=1]="Let",i[i.Const=2]="Const",i[i.NestedNamespace=4]="NestedNamespace",i[i.Synthesized=8]="Synthesized",i[i.Namespace=16]="Namespace",i[i.OptionalChain=32]="OptionalChain",i[i.ExportContext=64]="ExportContext",i[i.ContainsThis=128]="ContainsThis",i[i.HasImplicitReturn=256]="HasImplicitReturn",i[i.HasExplicitReturn=512]="HasExplicitReturn",i[i.GlobalAugmentation=1024]="GlobalAugmentation",i[i.HasAsyncFunctions=2048]="HasAsyncFunctions",i[i.DisallowInContext=4096]="DisallowInContext",i[i.YieldContext=8192]="YieldContext",i[i.DecoratorContext=16384]="DecoratorContext",i[i.AwaitContext=32768]="AwaitContext",i[i.ThisNodeHasError=65536]="ThisNodeHasError",i[i.JavaScriptFile=131072]="JavaScriptFile",i[i.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",i[i.HasAggregatedChildData=524288]="HasAggregatedChildData",i[i.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",i[i.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",i[i.JSDoc=4194304]="JSDoc",i[i.Ambient=8388608]="Ambient",i[i.InWithStatement=16777216]="InWithStatement",i[i.JsonFile=33554432]="JsonFile",i[i.TypeCached=67108864]="TypeCached",i[i.Deprecated=134217728]="Deprecated",i[i.BlockScoped=3]="BlockScoped",i[i.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",i[i.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",i[i.ContextFlags=25358336]="ContextFlags",i[i.TypeExcludesFlags=40960]="TypeExcludesFlags",i[i.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"})(c=e.NodeFlags||(e.NodeFlags={}));var u;(function(i){i[i.None=0]="None",i[i.Export=1]="Export",i[i.Ambient=2]="Ambient",i[i.Public=4]="Public",i[i.Private=8]="Private",i[i.Protected=16]="Protected",i[i.Static=32]="Static",i[i.Readonly=64]="Readonly",i[i.Abstract=128]="Abstract",i[i.Async=256]="Async",i[i.Default=512]="Default",i[i.Const=2048]="Const",i[i.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",i[i.Deprecated=8192]="Deprecated",i[i.Override=16384]="Override",i[i.HasComputedFlags=536870912]="HasComputedFlags",i[i.AccessibilityModifier=28]="AccessibilityModifier",i[i.ParameterPropertyModifier=16476]="ParameterPropertyModifier",i[i.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",i[i.TypeScriptModifier=18654]="TypeScriptModifier",i[i.ExportDefault=513]="ExportDefault",i[i.All=27647]="All"})(u=e.ModifierFlags||(e.ModifierFlags={}));var g;(function(i){i[i.None=0]="None",i[i.IntrinsicNamedElement=1]="IntrinsicNamedElement",i[i.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",i[i.IntrinsicElement=3]="IntrinsicElement"})(g=e.JsxFlags||(e.JsxFlags={}));var p;(function(i){i[i.Succeeded=1]="Succeeded",i[i.Failed=2]="Failed",i[i.Reported=4]="Reported",i[i.ReportsUnmeasurable=8]="ReportsUnmeasurable",i[i.ReportsUnreliable=16]="ReportsUnreliable",i[i.ReportsMask=24]="ReportsMask"})(p=e.RelationComparisonResult||(e.RelationComparisonResult={}));var I;(function(i){i[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution"})(I=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}));var V;(function(i){i[i.None=0]="None",i[i.PrecedingLineBreak=1]="PrecedingLineBreak",i[i.PrecedingJSDocComment=2]="PrecedingJSDocComment",i[i.Unterminated=4]="Unterminated",i[i.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",i[i.Scientific=16]="Scientific",i[i.Octal=32]="Octal",i[i.HexSpecifier=64]="HexSpecifier",i[i.BinarySpecifier=128]="BinarySpecifier",i[i.OctalSpecifier=256]="OctalSpecifier",i[i.ContainsSeparator=512]="ContainsSeparator",i[i.UnicodeEscape=1024]="UnicodeEscape",i[i.ContainsInvalidEscape=2048]="ContainsInvalidEscape",i[i.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",i[i.NumericLiteralFlags=1008]="NumericLiteralFlags",i[i.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"})(V=e.TokenFlags||(e.TokenFlags={}));var L;(function(i){i[i.Unreachable=1]="Unreachable",i[i.Start=2]="Start",i[i.BranchLabel=4]="BranchLabel",i[i.LoopLabel=8]="LoopLabel",i[i.Assignment=16]="Assignment",i[i.TrueCondition=32]="TrueCondition",i[i.FalseCondition=64]="FalseCondition",i[i.SwitchClause=128]="SwitchClause",i[i.ArrayMutation=256]="ArrayMutation",i[i.Call=512]="Call",i[i.ReduceLabel=1024]="ReduceLabel",i[i.Referenced=2048]="Referenced",i[i.Shared=4096]="Shared",i[i.Label=12]="Label",i[i.Condition=96]="Condition"})(L=e.FlowFlags||(e.FlowFlags={}));var m;(function(i){i[i.ExpectError=0]="ExpectError",i[i.Ignore=1]="Ignore"})(m=e.CommentDirectiveType||(e.CommentDirectiveType={}));var y=function(){function i(){}return i}();e.OperationCanceledException=y;var j;(function(i){i[i.RootFile=0]="RootFile",i[i.SourceFromProjectReference=1]="SourceFromProjectReference",i[i.OutputFromProjectReference=2]="OutputFromProjectReference",i[i.Import=3]="Import",i[i.ReferenceFile=4]="ReferenceFile",i[i.TypeReferenceDirective=5]="TypeReferenceDirective",i[i.LibFile=6]="LibFile",i[i.LibReferenceDirective=7]="LibReferenceDirective",i[i.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"})(j=e.FileIncludeKind||(e.FileIncludeKind={}));var te;(function(i){i[i.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",i[i.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"})(te=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}));var E;(function(i){i[i.Not=0]="Not",i[i.SafeModules=1]="SafeModules",i[i.Completely=2]="Completely"})(E=e.StructureIsReused||(e.StructureIsReused={}));var F;(function(i){i[i.Success=0]="Success",i[i.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",i[i.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",i[i.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",i[i.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",i[i.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"})(F=e.ExitStatus||(e.ExitStatus={}));var $;(function(i){i[i.Ok=0]="Ok",i[i.NeedsOverride=1]="NeedsOverride",i[i.HasInvalidOverride=2]="HasInvalidOverride"})($=e.MemberOverrideStatus||(e.MemberOverrideStatus={}));var C;(function(i){i[i.None=0]="None",i[i.Literal=1]="Literal",i[i.Subtype=2]="Subtype"})(C=e.UnionReduction||(e.UnionReduction={}));var K;(function(i){i[i.None=0]="None",i[i.Signature=1]="Signature",i[i.NoConstraints=2]="NoConstraints",i[i.Completions=4]="Completions",i[i.SkipBindingPatterns=8]="SkipBindingPatterns"})(K=e.ContextFlags||(e.ContextFlags={}));var k;(function(i){i[i.None=0]="None",i[i.NoTruncation=1]="NoTruncation",i[i.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",i[i.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",i[i.UseStructuralFallback=8]="UseStructuralFallback",i[i.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",i[i.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",i[i.UseFullyQualifiedType=64]="UseFullyQualifiedType",i[i.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",i[i.SuppressAnyReturnType=256]="SuppressAnyReturnType",i[i.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",i[i.MultilineObjectLiterals=1024]="MultilineObjectLiterals",i[i.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",i[i.UseTypeOfFunction=4096]="UseTypeOfFunction",i[i.OmitParameterModifiers=8192]="OmitParameterModifiers",i[i.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",i[i.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",i[i.NoTypeReduction=536870912]="NoTypeReduction",i[i.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",i[i.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",i[i.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",i[i.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",i[i.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",i[i.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",i[i.AllowEmptyTuple=524288]="AllowEmptyTuple",i[i.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",i[i.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",i[i.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",i[i.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",i[i.IgnoreErrors=70221824]="IgnoreErrors",i[i.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",i[i.InTypeAlias=8388608]="InTypeAlias",i[i.InInitialEntityName=16777216]="InInitialEntityName"})(k=e.NodeBuilderFlags||(e.NodeBuilderFlags={}));var X;(function(i){i[i.None=0]="None",i[i.NoTruncation=1]="NoTruncation",i[i.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",i[i.UseStructuralFallback=8]="UseStructuralFallback",i[i.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",i[i.UseFullyQualifiedType=64]="UseFullyQualifiedType",i[i.SuppressAnyReturnType=256]="SuppressAnyReturnType",i[i.MultilineObjectLiterals=1024]="MultilineObjectLiterals",i[i.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",i[i.UseTypeOfFunction=4096]="UseTypeOfFunction",i[i.OmitParameterModifiers=8192]="OmitParameterModifiers",i[i.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",i[i.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",i[i.NoTypeReduction=536870912]="NoTypeReduction",i[i.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",i[i.AddUndefined=131072]="AddUndefined",i[i.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",i[i.InArrayType=524288]="InArrayType",i[i.InElementType=2097152]="InElementType",i[i.InFirstTypeArgument=4194304]="InFirstTypeArgument",i[i.InTypeAlias=8388608]="InTypeAlias",i[i.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",i[i.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"})(X=e.TypeFormatFlags||(e.TypeFormatFlags={}));var O;(function(i){i[i.None=0]="None",i[i.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",i[i.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",i[i.AllowAnyNodeKind=4]="AllowAnyNodeKind",i[i.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",i[i.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"})(O=e.SymbolFormatFlags||(e.SymbolFormatFlags={}));var x;(function(i){i[i.Accessible=0]="Accessible",i[i.NotAccessible=1]="NotAccessible",i[i.CannotBeNamed=2]="CannotBeNamed"})(x=e.SymbolAccessibility||(e.SymbolAccessibility={}));var ie;(function(i){i[i.UnionOrIntersection=0]="UnionOrIntersection",i[i.Spread=1]="Spread"})(ie=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}));var Z;(function(i){i[i.This=0]="This",i[i.Identifier=1]="Identifier",i[i.AssertsThis=2]="AssertsThis",i[i.AssertsIdentifier=3]="AssertsIdentifier"})(Z=e.TypePredicateKind||(e.TypePredicateKind={}));var re;(function(i){i[i.Unknown=0]="Unknown",i[i.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",i[i.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",i[i.NumberLikeType=3]="NumberLikeType",i[i.BigIntLikeType=4]="BigIntLikeType",i[i.StringLikeType=5]="StringLikeType",i[i.BooleanType=6]="BooleanType",i[i.ArrayLikeType=7]="ArrayLikeType",i[i.ESSymbolType=8]="ESSymbolType",i[i.Promise=9]="Promise",i[i.TypeWithCallSignature=10]="TypeWithCallSignature",i[i.ObjectType=11]="ObjectType"})(re=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}));var q;(function(i){i[i.None=0]="None",i[i.FunctionScopedVariable=1]="FunctionScopedVariable",i[i.BlockScopedVariable=2]="BlockScopedVariable",i[i.Property=4]="Property",i[i.EnumMember=8]="EnumMember",i[i.Function=16]="Function",i[i.Class=32]="Class",i[i.Interface=64]="Interface",i[i.ConstEnum=128]="ConstEnum",i[i.RegularEnum=256]="RegularEnum",i[i.ValueModule=512]="ValueModule",i[i.NamespaceModule=1024]="NamespaceModule",i[i.TypeLiteral=2048]="TypeLiteral",i[i.ObjectLiteral=4096]="ObjectLiteral",i[i.Method=8192]="Method",i[i.Constructor=16384]="Constructor",i[i.GetAccessor=32768]="GetAccessor",i[i.SetAccessor=65536]="SetAccessor",i[i.Signature=131072]="Signature",i[i.TypeParameter=262144]="TypeParameter",i[i.TypeAlias=524288]="TypeAlias",i[i.ExportValue=1048576]="ExportValue",i[i.Alias=2097152]="Alias",i[i.Prototype=4194304]="Prototype",i[i.ExportStar=8388608]="ExportStar",i[i.Optional=16777216]="Optional",i[i.Transient=33554432]="Transient",i[i.Assignment=67108864]="Assignment",i[i.ModuleExports=134217728]="ModuleExports",i[i.All=67108863]="All",i[i.Enum=384]="Enum",i[i.Variable=3]="Variable",i[i.Value=111551]="Value",i[i.Type=788968]="Type",i[i.Namespace=1920]="Namespace",i[i.Module=1536]="Module",i[i.Accessor=98304]="Accessor",i[i.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",i[i.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",i[i.ParameterExcludes=111551]="ParameterExcludes",i[i.PropertyExcludes=0]="PropertyExcludes",i[i.EnumMemberExcludes=900095]="EnumMemberExcludes",i[i.FunctionExcludes=110991]="FunctionExcludes",i[i.ClassExcludes=899503]="ClassExcludes",i[i.InterfaceExcludes=788872]="InterfaceExcludes",i[i.RegularEnumExcludes=899327]="RegularEnumExcludes",i[i.ConstEnumExcludes=899967]="ConstEnumExcludes",i[i.ValueModuleExcludes=110735]="ValueModuleExcludes",i[i.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",i[i.MethodExcludes=103359]="MethodExcludes",i[i.GetAccessorExcludes=46015]="GetAccessorExcludes",i[i.SetAccessorExcludes=78783]="SetAccessorExcludes",i[i.TypeParameterExcludes=526824]="TypeParameterExcludes",i[i.TypeAliasExcludes=788968]="TypeAliasExcludes",i[i.AliasExcludes=2097152]="AliasExcludes",i[i.ModuleMember=2623475]="ModuleMember",i[i.ExportHasLocal=944]="ExportHasLocal",i[i.BlockScoped=418]="BlockScoped",i[i.PropertyOrAccessor=98308]="PropertyOrAccessor",i[i.ClassMember=106500]="ClassMember",i[i.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",i[i.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",i[i.Classifiable=2885600]="Classifiable",i[i.LateBindingContainer=6256]="LateBindingContainer"})(q=e.SymbolFlags||(e.SymbolFlags={}));var P;(function(i){i[i.Numeric=0]="Numeric",i[i.Literal=1]="Literal"})(P=e.EnumKind||(e.EnumKind={}));var M;(function(i){i[i.Instantiated=1]="Instantiated",i[i.SyntheticProperty=2]="SyntheticProperty",i[i.SyntheticMethod=4]="SyntheticMethod",i[i.Readonly=8]="Readonly",i[i.ReadPartial=16]="ReadPartial",i[i.WritePartial=32]="WritePartial",i[i.HasNonUniformType=64]="HasNonUniformType",i[i.HasLiteralType=128]="HasLiteralType",i[i.ContainsPublic=256]="ContainsPublic",i[i.ContainsProtected=512]="ContainsProtected",i[i.ContainsPrivate=1024]="ContainsPrivate",i[i.ContainsStatic=2048]="ContainsStatic",i[i.Late=4096]="Late",i[i.ReverseMapped=8192]="ReverseMapped",i[i.OptionalParameter=16384]="OptionalParameter",i[i.RestParameter=32768]="RestParameter",i[i.DeferredType=65536]="DeferredType",i[i.HasNeverType=131072]="HasNeverType",i[i.Mapped=262144]="Mapped",i[i.StripOptional=524288]="StripOptional",i[i.Unresolved=1048576]="Unresolved",i[i.Synthetic=6]="Synthetic",i[i.Discriminant=192]="Discriminant",i[i.Partial=48]="Partial"})(M=e.CheckFlags||(e.CheckFlags={}));var Q;(function(i){i.Call="__call",i.Constructor="__constructor",i.New="__new",i.Index="__index",i.ExportStar="__export",i.Global="__global",i.Missing="__missing",i.Type="__type",i.Object="__object",i.JSXAttributes="__jsxAttributes",i.Class="__class",i.Function="__function",i.Computed="__computed",i.Resolving="__resolving__",i.ExportEquals="export=",i.Default="default",i.This="this"})(Q=e.InternalSymbolName||(e.InternalSymbolName={}));var H;(function(i){i[i.TypeChecked=1]="TypeChecked",i[i.LexicalThis=2]="LexicalThis",i[i.CaptureThis=4]="CaptureThis",i[i.CaptureNewTarget=8]="CaptureNewTarget",i[i.SuperInstance=256]="SuperInstance",i[i.SuperStatic=512]="SuperStatic",i[i.ContextChecked=1024]="ContextChecked",i[i.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",i[i.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",i[i.CaptureArguments=8192]="CaptureArguments",i[i.EnumValuesComputed=16384]="EnumValuesComputed",i[i.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",i[i.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",i[i.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",i[i.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",i[i.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",i[i.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",i[i.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",i[i.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",i[i.AssignmentsMarked=8388608]="AssignmentsMarked",i[i.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",i[i.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",i[i.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",i[i.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer"})(H=e.NodeCheckFlags||(e.NodeCheckFlags={}));var w;(function(i){i[i.Any=1]="Any",i[i.Unknown=2]="Unknown",i[i.String=4]="String",i[i.Number=8]="Number",i[i.Boolean=16]="Boolean",i[i.Enum=32]="Enum",i[i.BigInt=64]="BigInt",i[i.StringLiteral=128]="StringLiteral",i[i.NumberLiteral=256]="NumberLiteral",i[i.BooleanLiteral=512]="BooleanLiteral",i[i.EnumLiteral=1024]="EnumLiteral",i[i.BigIntLiteral=2048]="BigIntLiteral",i[i.ESSymbol=4096]="ESSymbol",i[i.UniqueESSymbol=8192]="UniqueESSymbol",i[i.Void=16384]="Void",i[i.Undefined=32768]="Undefined",i[i.Null=65536]="Null",i[i.Never=131072]="Never",i[i.TypeParameter=262144]="TypeParameter",i[i.Object=524288]="Object",i[i.Union=1048576]="Union",i[i.Intersection=2097152]="Intersection",i[i.Index=4194304]="Index",i[i.IndexedAccess=8388608]="IndexedAccess",i[i.Conditional=16777216]="Conditional",i[i.Substitution=33554432]="Substitution",i[i.NonPrimitive=67108864]="NonPrimitive",i[i.TemplateLiteral=134217728]="TemplateLiteral",i[i.StringMapping=268435456]="StringMapping",i[i.AnyOrUnknown=3]="AnyOrUnknown",i[i.Nullable=98304]="Nullable",i[i.Literal=2944]="Literal",i[i.Unit=109440]="Unit",i[i.StringOrNumberLiteral=384]="StringOrNumberLiteral",i[i.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",i[i.DefinitelyFalsy=117632]="DefinitelyFalsy",i[i.PossiblyFalsy=117724]="PossiblyFalsy",i[i.Intrinsic=67359327]="Intrinsic",i[i.Primitive=131068]="Primitive",i[i.StringLike=402653316]="StringLike",i[i.NumberLike=296]="NumberLike",i[i.BigIntLike=2112]="BigIntLike",i[i.BooleanLike=528]="BooleanLike",i[i.EnumLike=1056]="EnumLike",i[i.ESSymbolLike=12288]="ESSymbolLike",i[i.VoidLike=49152]="VoidLike",i[i.DisjointDomains=469892092]="DisjointDomains",i[i.UnionOrIntersection=3145728]="UnionOrIntersection",i[i.StructuredType=3670016]="StructuredType",i[i.TypeVariable=8650752]="TypeVariable",i[i.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",i[i.InstantiablePrimitive=406847488]="InstantiablePrimitive",i[i.Instantiable=465829888]="Instantiable",i[i.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",i[i.ObjectFlagsType=3899393]="ObjectFlagsType",i[i.Simplifiable=25165824]="Simplifiable",i[i.Singleton=67358815]="Singleton",i[i.Narrowable=536624127]="Narrowable",i[i.IncludesMask=205258751]="IncludesMask",i[i.IncludesMissingType=262144]="IncludesMissingType",i[i.IncludesNonWideningType=4194304]="IncludesNonWideningType",i[i.IncludesWildcard=8388608]="IncludesWildcard",i[i.IncludesEmptyObject=16777216]="IncludesEmptyObject",i[i.IncludesInstantiable=33554432]="IncludesInstantiable",i[i.NotPrimitiveUnion=36323363]="NotPrimitiveUnion"})(w=e.TypeFlags||(e.TypeFlags={}));var d;(function(i){i[i.Class=1]="Class",i[i.Interface=2]="Interface",i[i.Reference=4]="Reference",i[i.Tuple=8]="Tuple",i[i.Anonymous=16]="Anonymous",i[i.Mapped=32]="Mapped",i[i.Instantiated=64]="Instantiated",i[i.ObjectLiteral=128]="ObjectLiteral",i[i.EvolvingArray=256]="EvolvingArray",i[i.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",i[i.ReverseMapped=1024]="ReverseMapped",i[i.JsxAttributes=2048]="JsxAttributes",i[i.MarkerType=4096]="MarkerType",i[i.JSLiteral=8192]="JSLiteral",i[i.FreshLiteral=16384]="FreshLiteral",i[i.ArrayLiteral=32768]="ArrayLiteral",i[i.PrimitiveUnion=65536]="PrimitiveUnion",i[i.ContainsWideningType=131072]="ContainsWideningType",i[i.ContainsObjectOrArrayLiteral=262144]="ContainsObjectOrArrayLiteral",i[i.NonInferrableType=524288]="NonInferrableType",i[i.CouldContainTypeVariablesComputed=1048576]="CouldContainTypeVariablesComputed",i[i.CouldContainTypeVariables=2097152]="CouldContainTypeVariables",i[i.ClassOrInterface=3]="ClassOrInterface",i[i.RequiresWidening=393216]="RequiresWidening",i[i.PropagatingFlags=917504]="PropagatingFlags",i[i.ObjectTypeKindMask=1343]="ObjectTypeKindMask",i[i.ContainsSpread=4194304]="ContainsSpread",i[i.ObjectRestType=8388608]="ObjectRestType",i[i.IsClassInstanceClone=16777216]="IsClassInstanceClone",i[i.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",i[i.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",i[i.IsGenericTypeComputed=4194304]="IsGenericTypeComputed",i[i.IsGenericObjectType=8388608]="IsGenericObjectType",i[i.IsGenericIndexType=16777216]="IsGenericIndexType",i[i.IsGenericType=25165824]="IsGenericType",i[i.ContainsIntersections=33554432]="ContainsIntersections",i[i.IsNeverIntersectionComputed=33554432]="IsNeverIntersectionComputed",i[i.IsNeverIntersection=67108864]="IsNeverIntersection"})(d=e.ObjectFlags||(e.ObjectFlags={}));var B;(function(i){i[i.Invariant=0]="Invariant",i[i.Covariant=1]="Covariant",i[i.Contravariant=2]="Contravariant",i[i.Bivariant=3]="Bivariant",i[i.Independent=4]="Independent",i[i.VarianceMask=7]="VarianceMask",i[i.Unmeasurable=8]="Unmeasurable",i[i.Unreliable=16]="Unreliable",i[i.AllowsStructuralFallback=24]="AllowsStructuralFallback"})(B=e.VarianceFlags||(e.VarianceFlags={}));var T;(function(i){i[i.Required=1]="Required",i[i.Optional=2]="Optional",i[i.Rest=4]="Rest",i[i.Variadic=8]="Variadic",i[i.Fixed=3]="Fixed",i[i.Variable=12]="Variable",i[i.NonRequired=14]="NonRequired",i[i.NonRest=11]="NonRest"})(T=e.ElementFlags||(e.ElementFlags={}));var _;(function(i){i[i.None=0]="None",i[i.IncludeUndefined=1]="IncludeUndefined",i[i.NoIndexSignatures=2]="NoIndexSignatures",i[i.Writing=4]="Writing",i[i.CacheSymbol=8]="CacheSymbol",i[i.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",i[i.ExpressionPosition=32]="ExpressionPosition",i[i.ReportDeprecated=64]="ReportDeprecated",i[i.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",i[i.Contextual=256]="Contextual",i[i.Persistent=1]="Persistent"})(_=e.AccessFlags||(e.AccessFlags={}));var h;(function(i){i[i.Component=0]="Component",i[i.Function=1]="Function",i[i.Mixed=2]="Mixed"})(h=e.JsxReferenceKind||(e.JsxReferenceKind={}));var R;(function(i){i[i.Call=0]="Call",i[i.Construct=1]="Construct"})(R=e.SignatureKind||(e.SignatureKind={}));var b;(function(i){i[i.None=0]="None",i[i.HasRestParameter=1]="HasRestParameter",i[i.HasLiteralTypes=2]="HasLiteralTypes",i[i.Abstract=4]="Abstract",i[i.IsInnerCallChain=8]="IsInnerCallChain",i[i.IsOuterCallChain=16]="IsOuterCallChain",i[i.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",i[i.PropagatingFlags=39]="PropagatingFlags",i[i.CallChainFlags=24]="CallChainFlags"})(b=e.SignatureFlags||(e.SignatureFlags={}));var G;(function(i){i[i.String=0]="String",i[i.Number=1]="Number"})(G=e.IndexKind||(e.IndexKind={}));var Y;(function(i){i[i.Simple=0]="Simple",i[i.Array=1]="Array",i[i.Function=2]="Function",i[i.Composite=3]="Composite",i[i.Merged=4]="Merged"})(Y=e.TypeMapKind||(e.TypeMapKind={}));var pe;(function(i){i[i.NakedTypeVariable=1]="NakedTypeVariable",i[i.SpeculativeTuple=2]="SpeculativeTuple",i[i.SubstituteSource=4]="SubstituteSource",i[i.HomomorphicMappedType=8]="HomomorphicMappedType",i[i.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",i[i.MappedTypeConstraint=32]="MappedTypeConstraint",i[i.ContravariantConditional=64]="ContravariantConditional",i[i.ReturnType=128]="ReturnType",i[i.LiteralKeyof=256]="LiteralKeyof",i[i.NoConstraints=512]="NoConstraints",i[i.AlwaysStrict=1024]="AlwaysStrict",i[i.MaxValue=2048]="MaxValue",i[i.PriorityImpliesCombination=416]="PriorityImpliesCombination",i[i.Circularity=-1]="Circularity"})(pe=e.InferencePriority||(e.InferencePriority={}));var A;(function(i){i[i.None=0]="None",i[i.NoDefault=1]="NoDefault",i[i.AnyDefault=2]="AnyDefault",i[i.SkippedGenericFunction=4]="SkippedGenericFunction"})(A=e.InferenceFlags||(e.InferenceFlags={}));var _e;(function(i){i[i.False=0]="False",i[i.Unknown=1]="Unknown",i[i.Maybe=3]="Maybe",i[i.True=-1]="True"})(_e=e.Ternary||(e.Ternary={}));var Se;(function(i){i[i.None=0]="None",i[i.ExportsProperty=1]="ExportsProperty",i[i.ModuleExports=2]="ModuleExports",i[i.PrototypeProperty=3]="PrototypeProperty",i[i.ThisProperty=4]="ThisProperty",i[i.Property=5]="Property",i[i.Prototype=6]="Prototype",i[i.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",i[i.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",i[i.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"})(Se=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}));var ae;(function(i){i[i.Warning=0]="Warning",i[i.Error=1]="Error",i[i.Suggestion=2]="Suggestion",i[i.Message=3]="Message"})(ae=e.DiagnosticCategory||(e.DiagnosticCategory={}));function D(i,Mr){Mr===void 0&&(Mr=!0);var fr=ae[i.category];return Mr?fr.toLowerCase():fr}e.diagnosticCategoryName=D;var be;(function(i){i[i.Classic=1]="Classic",i[i.NodeJs=2]="NodeJs",i[i.Node12=3]="Node12",i[i.NodeNext=99]="NodeNext"})(be=e.ModuleResolutionKind||(e.ModuleResolutionKind={}));var ne;(function(i){i[i.FixedPollingInterval=0]="FixedPollingInterval",i[i.PriorityPollingInterval=1]="PriorityPollingInterval",i[i.DynamicPriorityPolling=2]="DynamicPriorityPolling",i[i.FixedChunkSizePolling=3]="FixedChunkSizePolling",i[i.UseFsEvents=4]="UseFsEvents",i[i.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory"})(ne=e.WatchFileKind||(e.WatchFileKind={}));var J;(function(i){i[i.UseFsEvents=0]="UseFsEvents",i[i.FixedPollingInterval=1]="FixedPollingInterval",i[i.DynamicPriorityPolling=2]="DynamicPriorityPolling",i[i.FixedChunkSizePolling=3]="FixedChunkSizePolling"})(J=e.WatchDirectoryKind||(e.WatchDirectoryKind={}));var le;(function(i){i[i.FixedInterval=0]="FixedInterval",i[i.PriorityInterval=1]="PriorityInterval",i[i.DynamicPriority=2]="DynamicPriority",i[i.FixedChunkSize=3]="FixedChunkSize"})(le=e.PollingWatchKind||(e.PollingWatchKind={}));var Te;(function(i){i[i.None=0]="None",i[i.CommonJS=1]="CommonJS",i[i.AMD=2]="AMD",i[i.UMD=3]="UMD",i[i.System=4]="System",i[i.ES2015=5]="ES2015",i[i.ES2020=6]="ES2020",i[i.ES2022=7]="ES2022",i[i.ESNext=99]="ESNext",i[i.Node12=100]="Node12",i[i.NodeNext=199]="NodeNext"})(Te=e.ModuleKind||(e.ModuleKind={}));var Me;(function(i){i[i.None=0]="None",i[i.Preserve=1]="Preserve",i[i.React=2]="React",i[i.ReactNative=3]="ReactNative",i[i.ReactJSX=4]="ReactJSX",i[i.ReactJSXDev=5]="ReactJSXDev"})(Me=e.JsxEmit||(e.JsxEmit={}));var Ke;(function(i){i[i.Remove=0]="Remove",i[i.Preserve=1]="Preserve",i[i.Error=2]="Error"})(Ke=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}));var Ae;(function(i){i[i.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",i[i.LineFeed=1]="LineFeed"})(Ae=e.NewLineKind||(e.NewLineKind={}));var Ge;(function(i){i[i.Unknown=0]="Unknown",i[i.JS=1]="JS",i[i.JSX=2]="JSX",i[i.TS=3]="TS",i[i.TSX=4]="TSX",i[i.External=5]="External",i[i.JSON=6]="JSON",i[i.Deferred=7]="Deferred"})(Ge=e.ScriptKind||(e.ScriptKind={}));var se;(function(i){i[i.ES3=0]="ES3",i[i.ES5=1]="ES5",i[i.ES2015=2]="ES2015",i[i.ES2016=3]="ES2016",i[i.ES2017=4]="ES2017",i[i.ES2018=5]="ES2018",i[i.ES2019=6]="ES2019",i[i.ES2020=7]="ES2020",i[i.ES2021=8]="ES2021",i[i.ESNext=99]="ESNext",i[i.JSON=100]="JSON",i[i.Latest=99]="Latest"})(se=e.ScriptTarget||(e.ScriptTarget={}));var xe;(function(i){i[i.Standard=0]="Standard",i[i.JSX=1]="JSX"})(xe=e.LanguageVariant||(e.LanguageVariant={}));var Re;(function(i){i[i.None=0]="None",i[i.Recursive=1]="Recursive"})(Re=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}));var ce;(function(i){i[i.nullCharacter=0]="nullCharacter",i[i.maxAsciiCharacter=127]="maxAsciiCharacter",i[i.lineFeed=10]="lineFeed",i[i.carriageReturn=13]="carriageReturn",i[i.lineSeparator=8232]="lineSeparator",i[i.paragraphSeparator=8233]="paragraphSeparator",i[i.nextLine=133]="nextLine",i[i.space=32]="space",i[i.nonBreakingSpace=160]="nonBreakingSpace",i[i.enQuad=8192]="enQuad",i[i.emQuad=8193]="emQuad",i[i.enSpace=8194]="enSpace",i[i.emSpace=8195]="emSpace",i[i.threePerEmSpace=8196]="threePerEmSpace",i[i.fourPerEmSpace=8197]="fourPerEmSpace",i[i.sixPerEmSpace=8198]="sixPerEmSpace",i[i.figureSpace=8199]="figureSpace",i[i.punctuationSpace=8200]="punctuationSpace",i[i.thinSpace=8201]="thinSpace",i[i.hairSpace=8202]="hairSpace",i[i.zeroWidthSpace=8203]="zeroWidthSpace",i[i.narrowNoBreakSpace=8239]="narrowNoBreakSpace",i[i.ideographicSpace=12288]="ideographicSpace",i[i.mathematicalSpace=8287]="mathematicalSpace",i[i.ogham=5760]="ogham",i[i._=95]="_",i[i.$=36]="$",i[i._0=48]="_0",i[i._1=49]="_1",i[i._2=50]="_2",i[i._3=51]="_3",i[i._4=52]="_4",i[i._5=53]="_5",i[i._6=54]="_6",i[i._7=55]="_7",i[i._8=56]="_8",i[i._9=57]="_9",i[i.a=97]="a",i[i.b=98]="b",i[i.c=99]="c",i[i.d=100]="d",i[i.e=101]="e",i[i.f=102]="f",i[i.g=103]="g",i[i.h=104]="h",i[i.i=105]="i",i[i.j=106]="j",i[i.k=107]="k",i[i.l=108]="l",i[i.m=109]="m",i[i.n=110]="n",i[i.o=111]="o",i[i.p=112]="p",i[i.q=113]="q",i[i.r=114]="r",i[i.s=115]="s",i[i.t=116]="t",i[i.u=117]="u",i[i.v=118]="v",i[i.w=119]="w",i[i.x=120]="x",i[i.y=121]="y",i[i.z=122]="z",i[i.A=65]="A",i[i.B=66]="B",i[i.C=67]="C",i[i.D=68]="D",i[i.E=69]="E",i[i.F=70]="F",i[i.G=71]="G",i[i.H=72]="H",i[i.I=73]="I",i[i.J=74]="J",i[i.K=75]="K",i[i.L=76]="L",i[i.M=77]="M",i[i.N=78]="N",i[i.O=79]="O",i[i.P=80]="P",i[i.Q=81]="Q",i[i.R=82]="R",i[i.S=83]="S",i[i.T=84]="T",i[i.U=85]="U",i[i.V=86]="V",i[i.W=87]="W",i[i.X=88]="X",i[i.Y=89]="Y",i[i.Z=90]="Z",i[i.ampersand=38]="ampersand",i[i.asterisk=42]="asterisk",i[i.at=64]="at",i[i.backslash=92]="backslash",i[i.backtick=96]="backtick",i[i.bar=124]="bar",i[i.caret=94]="caret",i[i.closeBrace=125]="closeBrace",i[i.closeBracket=93]="closeBracket",i[i.closeParen=41]="closeParen",i[i.colon=58]="colon",i[i.comma=44]="comma",i[i.dot=46]="dot",i[i.doubleQuote=34]="doubleQuote",i[i.equals=61]="equals",i[i.exclamation=33]="exclamation",i[i.greaterThan=62]="greaterThan",i[i.hash=35]="hash",i[i.lessThan=60]="lessThan",i[i.minus=45]="minus",i[i.openBrace=123]="openBrace",i[i.openBracket=91]="openBracket",i[i.openParen=40]="openParen",i[i.percent=37]="percent",i[i.plus=43]="plus",i[i.question=63]="question",i[i.semicolon=59]="semicolon",i[i.singleQuote=39]="singleQuote",i[i.slash=47]="slash",i[i.tilde=126]="tilde",i[i.backspace=8]="backspace",i[i.formFeed=12]="formFeed",i[i.byteOrderMark=65279]="byteOrderMark",i[i.tab=9]="tab",i[i.verticalTab=11]="verticalTab"})(ce=e.CharacterCodes||(e.CharacterCodes={}));var Ue;(function(i){i.Ts=".ts",i.Tsx=".tsx",i.Dts=".d.ts",i.Js=".js",i.Jsx=".jsx",i.Json=".json",i.TsBuildInfo=".tsbuildinfo",i.Mjs=".mjs",i.Mts=".mts",i.Dmts=".d.mts",i.Cjs=".cjs",i.Cts=".cts",i.Dcts=".d.cts"})(Ue=e.Extension||(e.Extension={}));var We;(function(i){i[i.None=0]="None",i[i.ContainsTypeScript=1]="ContainsTypeScript",i[i.ContainsJsx=2]="ContainsJsx",i[i.ContainsESNext=4]="ContainsESNext",i[i.ContainsES2021=8]="ContainsES2021",i[i.ContainsES2020=16]="ContainsES2020",i[i.ContainsES2019=32]="ContainsES2019",i[i.ContainsES2018=64]="ContainsES2018",i[i.ContainsES2017=128]="ContainsES2017",i[i.ContainsES2016=256]="ContainsES2016",i[i.ContainsES2015=512]="ContainsES2015",i[i.ContainsGenerator=1024]="ContainsGenerator",i[i.ContainsDestructuringAssignment=2048]="ContainsDestructuringAssignment",i[i.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",i[i.ContainsLexicalThis=8192]="ContainsLexicalThis",i[i.ContainsRestOrSpread=16384]="ContainsRestOrSpread",i[i.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",i[i.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",i[i.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",i[i.ContainsBindingPattern=262144]="ContainsBindingPattern",i[i.ContainsYield=524288]="ContainsYield",i[i.ContainsAwait=1048576]="ContainsAwait",i[i.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",i[i.ContainsDynamicImport=4194304]="ContainsDynamicImport",i[i.ContainsClassFields=8388608]="ContainsClassFields",i[i.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",i[i.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",i[i.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",i[i.HasComputedFlags=536870912]="HasComputedFlags",i[i.AssertTypeScript=1]="AssertTypeScript",i[i.AssertJsx=2]="AssertJsx",i[i.AssertESNext=4]="AssertESNext",i[i.AssertES2021=8]="AssertES2021",i[i.AssertES2020=16]="AssertES2020",i[i.AssertES2019=32]="AssertES2019",i[i.AssertES2018=64]="AssertES2018",i[i.AssertES2017=128]="AssertES2017",i[i.AssertES2016=256]="AssertES2016",i[i.AssertES2015=512]="AssertES2015",i[i.AssertGenerator=1024]="AssertGenerator",i[i.AssertDestructuringAssignment=2048]="AssertDestructuringAssignment",i[i.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",i[i.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",i[i.NodeExcludes=536870912]="NodeExcludes",i[i.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",i[i.FunctionExcludes=591310848]="FunctionExcludes",i[i.ConstructorExcludes=591306752]="ConstructorExcludes",i[i.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",i[i.PropertyExcludes=570433536]="PropertyExcludes",i[i.ClassExcludes=536940544]="ClassExcludes",i[i.ModuleExcludes=589443072]="ModuleExcludes",i[i.TypeExcludes=-2]="TypeExcludes",i[i.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",i[i.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",i[i.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",i[i.ParameterExcludes=536870912]="ParameterExcludes",i[i.CatchClauseExcludes=536903680]="CatchClauseExcludes",i[i.BindingPatternExcludes=536887296]="BindingPatternExcludes",i[i.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",i[i.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags"})(We=e.TransformFlags||(e.TransformFlags={}));var Ne;(function(i){i[i.TabStop=0]="TabStop",i[i.Placeholder=1]="Placeholder",i[i.Choice=2]="Choice",i[i.Variable=3]="Variable"})(Ne=e.SnippetKind||(e.SnippetKind={}));var ve;(function(i){i[i.None=0]="None",i[i.SingleLine=1]="SingleLine",i[i.AdviseOnEmitNode=2]="AdviseOnEmitNode",i[i.NoSubstitution=4]="NoSubstitution",i[i.CapturesThis=8]="CapturesThis",i[i.NoLeadingSourceMap=16]="NoLeadingSourceMap",i[i.NoTrailingSourceMap=32]="NoTrailingSourceMap",i[i.NoSourceMap=48]="NoSourceMap",i[i.NoNestedSourceMaps=64]="NoNestedSourceMaps",i[i.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",i[i.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",i[i.NoTokenSourceMaps=384]="NoTokenSourceMaps",i[i.NoLeadingComments=512]="NoLeadingComments",i[i.NoTrailingComments=1024]="NoTrailingComments",i[i.NoComments=1536]="NoComments",i[i.NoNestedComments=2048]="NoNestedComments",i[i.HelperName=4096]="HelperName",i[i.ExportName=8192]="ExportName",i[i.LocalName=16384]="LocalName",i[i.InternalName=32768]="InternalName",i[i.Indented=65536]="Indented",i[i.NoIndentation=131072]="NoIndentation",i[i.AsyncFunctionBody=262144]="AsyncFunctionBody",i[i.ReuseTempVariableScope=524288]="ReuseTempVariableScope",i[i.CustomPrologue=1048576]="CustomPrologue",i[i.NoHoisting=2097152]="NoHoisting",i[i.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",i[i.Iterator=8388608]="Iterator",i[i.NoAsciiEscaping=16777216]="NoAsciiEscaping",i[i.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",i[i.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",i[i.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",i[i.Immutable=268435456]="Immutable",i[i.IndirectCall=536870912]="IndirectCall"})(ve=e.EmitFlags||(e.EmitFlags={}));var Ve;(function(i){i[i.Extends=1]="Extends",i[i.Assign=2]="Assign",i[i.Rest=4]="Rest",i[i.Decorate=8]="Decorate",i[i.Metadata=16]="Metadata",i[i.Param=32]="Param",i[i.Awaiter=64]="Awaiter",i[i.Generator=128]="Generator",i[i.Values=256]="Values",i[i.Read=512]="Read",i[i.SpreadArray=1024]="SpreadArray",i[i.Await=2048]="Await",i[i.AsyncGenerator=4096]="AsyncGenerator",i[i.AsyncDelegator=8192]="AsyncDelegator",i[i.AsyncValues=16384]="AsyncValues",i[i.ExportStar=32768]="ExportStar",i[i.ImportStar=65536]="ImportStar",i[i.ImportDefault=131072]="ImportDefault",i[i.MakeTemplateObject=262144]="MakeTemplateObject",i[i.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",i[i.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",i[i.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",i[i.CreateBinding=4194304]="CreateBinding",i[i.FirstEmitHelper=1]="FirstEmitHelper",i[i.LastEmitHelper=4194304]="LastEmitHelper",i[i.ForOfIncludes=256]="ForOfIncludes",i[i.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",i[i.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",i[i.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",i[i.SpreadIncludes=1536]="SpreadIncludes"})(Ve=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}));var gr;(function(i){i[i.SourceFile=0]="SourceFile",i[i.Expression=1]="Expression",i[i.IdentifierName=2]="IdentifierName",i[i.MappedTypeParameter=3]="MappedTypeParameter",i[i.Unspecified=4]="Unspecified",i[i.EmbeddedStatement=5]="EmbeddedStatement",i[i.JsxAttributeValue=6]="JsxAttributeValue"})(gr=e.EmitHint||(e.EmitHint={}));var Er;(function(i){i[i.Parentheses=1]="Parentheses",i[i.TypeAssertions=2]="TypeAssertions",i[i.NonNullAssertions=4]="NonNullAssertions",i[i.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",i[i.Assertions=6]="Assertions",i[i.All=15]="All",i[i.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion"})(Er=e.OuterExpressionKinds||(e.OuterExpressionKinds={}));var Nr;(function(i){i[i.None=0]="None",i[i.InParameters=1]="InParameters",i[i.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"})(Nr=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}));var ur;(function(i){i.Prologue="prologue",i.EmitHelpers="emitHelpers",i.NoDefaultLib="no-default-lib",i.Reference="reference",i.Type="type",i.Lib="lib",i.Prepend="prepend",i.Text="text",i.Internal="internal"})(ur=e.BundleFileSectionKind||(e.BundleFileSectionKind={}));var xr;(function(i){i[i.None=0]="None",i[i.SingleLine=0]="SingleLine",i[i.MultiLine=1]="MultiLine",i[i.PreserveLines=2]="PreserveLines",i[i.LinesMask=3]="LinesMask",i[i.NotDelimited=0]="NotDelimited",i[i.BarDelimited=4]="BarDelimited",i[i.AmpersandDelimited=8]="AmpersandDelimited",i[i.CommaDelimited=16]="CommaDelimited",i[i.AsteriskDelimited=32]="AsteriskDelimited",i[i.DelimitersMask=60]="DelimitersMask",i[i.AllowTrailingComma=64]="AllowTrailingComma",i[i.Indented=128]="Indented",i[i.SpaceBetweenBraces=256]="SpaceBetweenBraces",i[i.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",i[i.Braces=1024]="Braces",i[i.Parenthesis=2048]="Parenthesis",i[i.AngleBrackets=4096]="AngleBrackets",i[i.SquareBrackets=8192]="SquareBrackets",i[i.BracketsMask=15360]="BracketsMask",i[i.OptionalIfUndefined=16384]="OptionalIfUndefined",i[i.OptionalIfEmpty=32768]="OptionalIfEmpty",i[i.Optional=49152]="Optional",i[i.PreferNewLine=65536]="PreferNewLine",i[i.NoTrailingNewLine=131072]="NoTrailingNewLine",i[i.NoInterveningComments=262144]="NoInterveningComments",i[i.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",i[i.SingleElement=1048576]="SingleElement",i[i.SpaceAfterList=2097152]="SpaceAfterList",i[i.Modifiers=262656]="Modifiers",i[i.HeritageClauses=512]="HeritageClauses",i[i.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",i[i.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",i[i.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",i[i.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",i[i.UnionTypeConstituents=516]="UnionTypeConstituents",i[i.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",i[i.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",i[i.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",i[i.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",i[i.ImportClauseEntries=526226]="ImportClauseEntries",i[i.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",i[i.CommaListElements=528]="CommaListElements",i[i.CallExpressionArguments=2576]="CallExpressionArguments",i[i.NewExpressionArguments=18960]="NewExpressionArguments",i[i.TemplateExpressionSpans=262144]="TemplateExpressionSpans",i[i.SingleLineBlockStatements=768]="SingleLineBlockStatements",i[i.MultiLineBlockStatements=129]="MultiLineBlockStatements",i[i.VariableDeclarationList=528]="VariableDeclarationList",i[i.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",i[i.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",i[i.ClassHeritageClauses=0]="ClassHeritageClauses",i[i.ClassMembers=129]="ClassMembers",i[i.InterfaceMembers=129]="InterfaceMembers",i[i.EnumMembers=145]="EnumMembers",i[i.CaseBlockClauses=129]="CaseBlockClauses",i[i.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",i[i.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",i[i.JsxElementAttributes=262656]="JsxElementAttributes",i[i.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",i[i.HeritageClauseTypes=528]="HeritageClauseTypes",i[i.SourceFileStatements=131073]="SourceFileStatements",i[i.Decorators=2146305]="Decorators",i[i.TypeArguments=53776]="TypeArguments",i[i.TypeParameters=53776]="TypeParameters",i[i.Parameters=2576]="Parameters",i[i.IndexSignatureParameters=8848]="IndexSignatureParameters",i[i.JSDocComment=33]="JSDocComment"})(xr=e.ListFormat||(e.ListFormat={}));var sr;(function(i){i[i.None=0]="None",i[i.TripleSlashXML=1]="TripleSlashXML",i[i.SingleLine=2]="SingleLine",i[i.MultiLine=4]="MultiLine",i[i.All=7]="All",i[i.Default=7]="Default"})(sr=e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={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}],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}}})(mr||(mr={}));var mr;(function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var n="://",c=/\\/g;function u(se){return se===47||se===92}e.isAnyDirectorySeparator=u;function g(se){return C(se)<0}e.isUrl=g;function p(se){return C(se)>0}e.isRootedDiskPath=p;function I(se){var xe=C(se);return xe>0&&xe===se.length}e.isDiskPathRoot=I;function V(se){return C(se)!==0}e.pathIsAbsolute=V;function L(se){return/^\.\.?($|[\\/])/.test(se)}e.pathIsRelative=L;function m(se){return!V(se)&&!L(se)}e.pathIsBareSpecifier=m;function y(se){return e.stringContains(X(se),".")}e.hasExtension=y;function j(se,xe){return se.length>xe.length&&e.endsWith(se,xe)}e.fileExtensionIs=j;function te(se,xe){for(var Re=0,ce=xe;Re<ce.length;Re++){var Ue=ce[Re];if(j(se,Ue))return!0}return!1}e.fileExtensionIsOneOf=te;function E(se){return se.length>0&&u(se.charCodeAt(se.length-1))}e.hasTrailingDirectorySeparator=E;function F(se){return se>=97&&se<=122||se>=65&&se<=90}function $(se,xe){var Re=se.charCodeAt(xe);if(Re===58)return xe+1;if(Re===37&&se.charCodeAt(xe+1)===51){var ce=se.charCodeAt(xe+2);if(ce===97||ce===65)return xe+3}return-1}function C(se){if(!se)return 0;var xe=se.charCodeAt(0);if(xe===47||xe===92){if(se.charCodeAt(1)!==xe)return 1;var Re=se.indexOf(xe===47?e.directorySeparator:e.altDirectorySeparator,2);return Re<0?se.length:Re+1}if(F(xe)&&se.charCodeAt(1)===58){var ce=se.charCodeAt(2);if(ce===47||ce===92)return 3;if(se.length===2)return 2}var Ue=se.indexOf(n);if(Ue!==-1){var We=Ue+n.length,Ne=se.indexOf(e.directorySeparator,We);if(Ne!==-1){var ve=se.slice(0,Ue),Ve=se.slice(We,Ne);if(ve==="file"&&(Ve===""||Ve==="localhost")&&F(se.charCodeAt(Ne+1))){var gr=$(se,Ne+2);if(gr!==-1){if(se.charCodeAt(gr)===47)return~(gr+1);if(gr===se.length)return~gr}}return~(Ne+1)}return~se.length}return 0}function K(se){var xe=C(se);return xe<0?~xe:xe}e.getRootLength=K;function k(se){se=P(se);var xe=K(se);return xe===se.length?se:(se=b(se),se.slice(0,Math.max(xe,se.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=k;function X(se,xe,Re){se=P(se);var ce=K(se);if(ce===se.length)return"";se=b(se);var Ue=se.slice(Math.max(K(se),se.lastIndexOf(e.directorySeparator)+1)),We=xe!==void 0&&Re!==void 0?ie(Ue,xe,Re):void 0;return We?Ue.slice(0,Ue.length-We.length):Ue}e.getBaseFileName=X;function O(se,xe,Re){if(e.startsWith(xe,".")||(xe="."+xe),se.length>=xe.length&&se.charCodeAt(se.length-xe.length)===46){var ce=se.slice(se.length-xe.length);if(Re(ce,xe))return ce}}function x(se,xe,Re){if(typeof xe=="string")return O(se,xe,Re)||"";for(var ce=0,Ue=xe;ce<Ue.length;ce++){var We=Ue[ce],Ne=O(se,We,Re);if(Ne)return Ne}return""}function ie(se,xe,Re){if(xe)return x(b(se),xe,Re?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var ce=X(se),Ue=ce.lastIndexOf(".");return Ue>=0?ce.substring(Ue):""}e.getAnyExtensionFromPath=ie;function Z(se,xe){var Re=se.substring(0,xe),ce=se.substring(xe).split(e.directorySeparator);return ce.length&&!e.lastOrUndefined(ce)&&ce.pop(),Bt([Re],ce,!0)}function re(se,xe){return xe===void 0&&(xe=""),se=Q(xe,se),Z(se,K(se))}e.getPathComponents=re;function q(se){if(se.length===0)return"";var xe=se[0]&&G(se[0]);return xe+se.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=q;function P(se){var xe=se.indexOf("\\");return xe===-1?se:(c.lastIndex=xe,se.replace(c,e.directorySeparator))}e.normalizeSlashes=P;function M(se){if(!e.some(se))return[];for(var xe=[se[0]],Re=1;Re<se.length;Re++){var ce=se[Re];if(!!ce&&ce!=="."){if(ce===".."){if(xe.length>1){if(xe[xe.length-1]!==".."){xe.pop();continue}}else if(xe[0])continue}xe.push(ce)}}return xe}e.reducePathComponents=M;function Q(se){for(var xe=[],Re=1;Re<arguments.length;Re++)xe[Re-1]=arguments[Re];se&&(se=P(se));for(var ce=0,Ue=xe;ce<Ue.length;ce++){var We=Ue[ce];!We||(We=P(We),!se||K(We)!==0?se=We:se=G(se)+We)}return se}e.combinePaths=Q;function H(se){for(var xe=[],Re=1;Re<arguments.length;Re++)xe[Re-1]=arguments[Re];return B(e.some(xe)?Q.apply(void 0,Bt([se],xe,!1)):P(se))}e.resolvePath=H;function w(se,xe){return M(re(se,xe))}e.getNormalizedPathComponents=w;function d(se,xe){return q(w(se,xe))}e.getNormalizedAbsolutePath=d;function B(se){if(se=P(se),!A.test(se))return se;var xe=se.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(xe!==se&&(se=xe,!A.test(se)))return se;var Re=q(M(re(se)));return Re&&E(se)?G(Re):Re}e.normalizePath=B;function T(se){return se.length===0?"":se.slice(1).join(e.directorySeparator)}function _(se,xe){return T(w(se,xe))}e.getNormalizedAbsolutePathWithoutRoot=_;function h(se,xe,Re){var ce=p(se)?B(se):d(se,xe);return Re(ce)}e.toPath=h;function R(se){se=P(se);var xe=M(re(se)),Re=xe[0],ce=xe.slice(1);if(ce.length){var Ue=Re+ce.join(e.directorySeparator);return{path:E(se)?G(Ue):Ue,parts:ce}}else return{path:Re,parts:ce}}e.normalizePathAndParts=R;function b(se){return E(se)?se.substr(0,se.length-1):se}e.removeTrailingDirectorySeparator=b;function G(se){return E(se)?se:se+e.directorySeparator}e.ensureTrailingDirectorySeparator=G;function Y(se){return!V(se)&&!L(se)?"./"+se:se}e.ensurePathIsNonModuleName=Y;function pe(se,xe,Re,ce){var Ue=Re!==void 0&&ce!==void 0?ie(se,Re,ce):ie(se);return Ue?se.slice(0,se.length-Ue.length)+(e.startsWith(xe,".")?xe:"."+xe):se}e.changeAnyExtension=pe;var A=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function _e(se,xe,Re){if(se===xe)return 0;if(se===void 0)return-1;if(xe===void 0)return 1;var ce=se.substring(0,K(se)),Ue=xe.substring(0,K(xe)),We=e.compareStringsCaseInsensitive(ce,Ue);if(We!==0)return We;var Ne=se.substring(ce.length),ve=xe.substring(Ue.length);if(!A.test(Ne)&&!A.test(ve))return Re(Ne,ve);for(var Ve=M(re(se)),gr=M(re(xe)),Er=Math.min(Ve.length,gr.length),Nr=1;Nr<Er;Nr++){var ur=Re(Ve[Nr],gr[Nr]);if(ur!==0)return ur}return e.compareValues(Ve.length,gr.length)}function Se(se,xe){return _e(se,xe,e.compareStringsCaseSensitive)}e.comparePathsCaseSensitive=Se;function ae(se,xe){return _e(se,xe,e.compareStringsCaseInsensitive)}e.comparePathsCaseInsensitive=ae;function D(se,xe,Re,ce){return typeof Re=="string"?(se=Q(Re,se),xe=Q(Re,xe)):typeof Re=="boolean"&&(ce=Re),_e(se,xe,e.getStringComparer(ce))}e.comparePaths=D;function be(se,xe,Re,ce){if(typeof Re=="string"?(se=Q(Re,se),xe=Q(Re,xe)):typeof Re=="boolean"&&(ce=Re),se===void 0||xe===void 0)return!1;if(se===xe)return!0;var Ue=M(re(se)),We=M(re(xe));if(We.length<Ue.length)return!1;for(var Ne=ce?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,ve=0;ve<Ue.length;ve++){var Ve=ve===0?e.equateStringsCaseInsensitive:Ne;if(!Ve(Ue[ve],We[ve]))return!1}return!0}e.containsPath=be;function ne(se,xe,Re){var ce=Re(se),Ue=Re(xe);return e.startsWith(ce,Ue+"/")||e.startsWith(ce,Ue+"\\")}e.startsWithDirectory=ne;function J(se,xe,Re,ce){var Ue=M(re(se)),We=M(re(xe)),Ne;for(Ne=0;Ne<Ue.length&&Ne<We.length;Ne++){var ve=ce(Ue[Ne]),Ve=ce(We[Ne]),gr=Ne===0?e.equateStringsCaseInsensitive:Re;if(!gr(ve,Ve))break}if(Ne===0)return We;for(var Er=We.slice(Ne),Nr=[];Ne<Ue.length;Ne++)Nr.push("..");return Bt(Bt([""],Nr,!0),Er,!0)}e.getPathComponentsRelativeTo=J;function le(se,xe,Re){e.Debug.assert(K(se)>0==K(xe)>0,"Paths must either both be absolute or both be relative");var ce=typeof Re=="function"?Re:e.identity,Ue=typeof Re=="boolean"?Re:!1,We=J(se,xe,Ue?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,ce);return q(We)}e.getRelativePathFromDirectory=le;function Te(se,xe,Re){return p(se)?Ke(xe,se,xe,Re,!1):se}e.convertToRelativePath=Te;function Me(se,xe,Re){return Y(le(k(se),xe,Re))}e.getRelativePathFromFile=Me;function Ke(se,xe,Re,ce,Ue){var We=J(H(Re,se),H(Re,xe),e.equateStringsCaseSensitive,ce),Ne=We[0];if(Ue&&p(Ne)){var ve=Ne.charAt(0)===e.directorySeparator?"file://":"file:///";We[0]=ve+Ne}return q(We)}e.getRelativePathToDirectoryOrUrl=Ke;function Ae(se,xe){for(;;){var Re=xe(se);if(Re!==void 0)return Re;var ce=k(se);if(ce===se)return;se=ce}}e.forEachAncestorDirectory=Ae;function Ge(se){return e.endsWith(se,"/node_modules")}e.isNodeModulesDirectory=Ge})(mr||(mr={}));var mr;(function(e){function n(Q){for(var H=5381,w=0;w<Q.length;w++)H=(H<<5)+H+Q.charCodeAt(w);return H.toString()}e.generateDjb2Hash=n;function c(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}e.setStackTraceLimit=c;var u;(function(Q){Q[Q.Created=0]="Created",Q[Q.Changed=1]="Changed",Q[Q.Deleted=2]="Deleted"})(u=e.FileWatcherEventKind||(e.FileWatcherEventKind={}));var g;(function(Q){Q[Q.High=2e3]="High",Q[Q.Medium=500]="Medium",Q[Q.Low=250]="Low"})(g=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0);function p(Q,H){return Q.getModifiedTime(H)||e.missingFileModifiedTime}e.getModifiedTime=p;function I(Q){var H;return H={},H[g.Low]=Q.Low,H[g.Medium]=Q.Medium,H[g.High]=Q.High,H}var V={Low:32,Medium:64,High:256},L=I(V);e.unchangedPollThresholds=I(V);function m(Q){if(!Q.getEnvironmentVariable)return;var H=B("TSC_WATCH_POLLINGINTERVAL",g);L=T("TSC_WATCH_POLLINGCHUNKSIZE",V)||L,e.unchangedPollThresholds=T("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",V)||e.unchangedPollThresholds;function w(_,h){return Q.getEnvironmentVariable("".concat(_,"_").concat(h.toUpperCase()))}function d(_){var h;return R("Low"),R("Medium"),R("High"),h;function R(b){var G=w(_,b);G&&((h||(h={}))[b]=Number(G))}}function B(_,h){var R=d(_);if(R)return b("Low"),b("Medium"),b("High"),!0;return!1;function b(G){h[G]=R[G]||h[G]}}function T(_,h){var R=d(_);return(H||R)&&I(R?kn(kn({},h),R):h)}}e.setCustomPollingValues=m;function y(Q,H,w,d,B){for(var T=w,_=H.length;d&&_;b(),_--){var h=H[w];if(h){if(h.isClosed){H[w]=void 0;continue}}else continue;d--;var R=$(h,p(Q,h.fileName));if(h.isClosed){H[w]=void 0;continue}B==null||B(h,w,R),H[w]&&(T<w&&(H[T]=h,H[w]=void 0),T++)}return w;function b(){w++,w===H.length&&(T<w&&(H.length=T),w=0,T=0)}}function j(Q){var H=[],w=[],d=h(g.Low),B=h(g.Medium),T=h(g.High);return _;function _(ae,D,be){var ne={fileName:ae,callback:D,unchangedPolls:0,mtime:p(Q,ae)};return H.push(ne),pe(ne,be),{close:function(){ne.isClosed=!0,e.unorderedRemoveItem(H,ne)}}}function h(ae){var D=[];return D.pollingInterval=ae,D.pollIndex=0,D.pollScheduled=!1,D}function R(ae){ae.pollIndex=G(ae,ae.pollingInterval,ae.pollIndex,L[ae.pollingInterval]),ae.length?Se(ae.pollingInterval):(e.Debug.assert(ae.pollIndex===0),ae.pollScheduled=!1)}function b(ae){G(w,g.Low,0,w.length),R(ae),!ae.pollScheduled&&w.length&&Se(g.Low)}function G(ae,D,be,ne){return y(Q,ae,be,ne,J);function J(le,Te,Me){Me?(le.unchangedPolls=0,ae!==w&&(ae[Te]=void 0,A(le))):le.unchangedPolls!==e.unchangedPollThresholds[D]?le.unchangedPolls++:ae===w?(le.unchangedPolls=1,ae[Te]=void 0,pe(le,g.Low)):D!==g.High&&(le.unchangedPolls++,ae[Te]=void 0,pe(le,D===g.Low?g.Medium:g.High))}}function Y(ae){switch(ae){case g.Low:return d;case g.Medium:return B;case g.High:return T}}function pe(ae,D){Y(D).push(ae),_e(D)}function A(ae){w.push(ae),_e(g.Low)}function _e(ae){Y(ae).pollScheduled||Se(ae)}function Se(ae){Y(ae).pollScheduled=Q.setTimeout(ae===g.Low?b:R,ae,Y(ae))}}e.createDynamicPriorityPollingWatchFile=j;function te(Q,H){var w=e.createMultiMap(),d=new e.Map,B=e.createGetCanonicalFileName(H);return T;function T(h,R,b,G){var Y=B(h);w.add(Y,R);var pe=e.getDirectoryPath(Y)||".",A=d.get(pe)||_(e.getDirectoryPath(h)||".",pe,G);return A.referenceCount++,{close:function(){A.referenceCount===1?(A.close(),d.delete(pe)):A.referenceCount--,w.remove(Y,R)}}}function _(h,R,b){var G=Q(h,1,function(Y,pe){if(!!e.isString(pe)){var A=e.getNormalizedAbsolutePath(pe,h),_e=A&&w.get(B(A));if(_e)for(var Se=0,ae=_e;Se<ae.length;Se++){var D=ae[Se];D(A,u.Changed)}}},!1,g.Medium,b);return G.referenceCount=0,d.set(R,G),G}}function E(Q){var H=[],w=0,d;return B;function B(h,R){var b={fileName:h,callback:R,mtime:p(Q,h)};return H.push(b),_(),{close:function(){b.isClosed=!0,e.unorderedRemoveItem(H,b)}}}function T(){d=void 0,w=y(Q,H,w,L[g.Low]),_()}function _(){!H.length||d||(d=Q.setTimeout(T,g.High))}}function F(Q,H){var w=new e.Map,d=e.createMultiMap(),B=e.createGetCanonicalFileName(H);return function(T,_,h,R){var b=B(T),G=w.get(b);return G?G.refCount++:w.set(b,{watcher:Q(T,function(Y,pe){return e.forEach(d.get(b),function(A){return A(Y,pe)})},h,R),refCount:1}),d.add(b,_),{close:function(){var Y=e.Debug.checkDefined(w.get(b));d.remove(b,_),Y.refCount--,!Y.refCount&&(w.delete(b),e.closeFileWatcherOf(Y))}}}}e.createSingleFileWatcherPerName=F;function $(Q,H){var w=Q.mtime.getTime(),d=H.getTime();return w!==d?(Q.mtime=H,Q.callback(Q.fileName,C(w,d)),!0):!1}e.onWatchedFileStat=$;function C(Q,H){return Q===0?u.Created:H===0?u.Deleted:u.Changed}e.getFileWatcherEventKind=C,e.ignoredPaths=["/node_modules/.","/.git","/.#"],e.sysLog=e.noop;function K(Q){e.sysLog=Q}e.setSysLog=K;function k(Q){var H=Q.watchDirectory,w=Q.useCaseSensitiveFileNames,d=Q.getCurrentDirectory,B=Q.getAccessibleSortedChildDirectories,T=Q.directoryExists,_=Q.realpath,h=Q.setTimeout,R=Q.clearTimeout,b=new e.Map,G=e.createMultiMap(),Y=new e.Map,pe,A=e.getStringComparer(!w),_e=e.createGetCanonicalFileName(w);return function(Ke,Ae,Ge,se){return Ge?Se(Ke,se,Ae):H(Ke,Ae,Ge,se)};function Se(Ke,Ae,Ge){var se=_e(Ke),xe=b.get(se);xe?xe.refCount++:(xe={watcher:H(Ke,function(ce){Te(ce,Ae)||(Ae!=null&&Ae.synchronousWatchDirectory?(ae(se,ce),le(Ke,se,Ae)):D(Ke,se,ce,Ae))},!1,Ae),refCount:1,childWatches:e.emptyArray},b.set(se,xe),le(Ke,se,Ae));var Re=Ge&&{dirName:Ke,callback:Ge};return Re&&G.add(se,Re),{dirName:Ke,close:function(){var ce=e.Debug.checkDefined(b.get(se));Re&&G.remove(se,Re),ce.refCount--,!ce.refCount&&(b.delete(se),e.closeFileWatcherOf(ce),ce.childWatches.forEach(e.closeFileWatcher))}}}function ae(Ke,Ae,Ge){var se,xe;e.isString(Ae)?se=Ae:xe=Ae,G.forEach(function(Re,ce){var Ue;if(!(xe&&xe.get(ce)===!0)&&(ce===Ke||e.startsWith(Ke,ce)&&Ke[ce.length]===e.directorySeparator))if(xe)if(Ge){var We=xe.get(ce);We?(Ue=We).push.apply(Ue,Ge):xe.set(ce,Ge.slice())}else xe.set(ce,!0);else Re.forEach(function(Ne){var ve=Ne.callback;return ve(se)})})}function D(Ke,Ae,Ge,se){var xe=b.get(Ae);if(xe&&T(Ke)){be(Ke,Ae,Ge,se);return}ae(Ae,Ge),J(xe)}function be(Ke,Ae,Ge,se){var xe=Y.get(Ae);xe?xe.fileNames.push(Ge):Y.set(Ae,{dirName:Ke,options:se,fileNames:[Ge]}),pe&&(R(pe),pe=void 0),pe=h(ne,1e3)}function ne(){pe=void 0,e.sysLog("sysLog:: onTimerToUpdateChildWatches:: ".concat(Y.size));for(var Ke=e.timestamp(),Ae=new e.Map;!pe&&Y.size;){var Ge=Y.entries().next();e.Debug.assert(!Ge.done);var se=Ge.value,xe=se[0],Re=se[1],ce=Re.dirName,Ue=Re.options,We=Re.fileNames;Y.delete(xe);var Ne=le(ce,xe,Ue);ae(xe,Ae,Ne?void 0:We)}e.sysLog("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-Ke,"ms:: ").concat(Y.size)),G.forEach(function(Ve,gr){var Er=Ae.get(gr);Er&&Ve.forEach(function(Nr){var ur=Nr.callback,xr=Nr.dirName;e.isArray(Er)?Er.forEach(ur):ur(xr)})});var ve=e.timestamp()-Ke;e.sysLog("sysLog:: Elapsed:: ".concat(ve,"ms:: onTimerToUpdateChildWatches:: ").concat(Y.size," ").concat(pe))}function J(Ke){if(!!Ke){var Ae=Ke.childWatches;Ke.childWatches=e.emptyArray;for(var Ge=0,se=Ae;Ge<se.length;Ge++){var xe=se[Ge];xe.close(),J(b.get(_e(xe.dirName)))}}}function le(Ke,Ae,Ge){var se=b.get(Ae);if(!se)return!1;var xe,Re=e.enumerateInsertsAndDeletes(T(Ke)?e.mapDefined(B(Ke),function(We){var Ne=e.getNormalizedAbsolutePath(We,Ke);return!Te(Ne,Ge)&&A(Ne,e.normalizePath(_(Ne)))===0?Ne:void 0}):e.emptyArray,se.childWatches,function(We,Ne){return A(We,Ne.dirName)},ce,e.closeFileWatcher,Ue);return se.childWatches=xe||e.emptyArray,Re;function ce(We){var Ne=Se(We,Ge);Ue(Ne)}function Ue(We){(xe||(xe=[])).push(We)}}function Te(Ke,Ae){return e.some(e.ignoredPaths,function(Ge){return Me(Ke,Ge)})||ie(Ke,Ae,w,d)}function Me(Ke,Ae){return e.stringContains(Ke,Ae)?!0:w?!1:e.stringContains(_e(Ke),Ae)}}e.createDirectoryWatcherSupportingRecursive=k;var X;(function(Q){Q[Q.File=0]="File",Q[Q.Directory=1]="Directory"})(X=e.FileSystemEntryKind||(e.FileSystemEntryKind={}));function O(Q){return function(H,w){return Q(w===u.Changed?"change":"rename","")}}e.createFileWatcherCallback=O;function x(Q,H,w){return function(d){d==="rename"?H(Q,w(Q)?u.Created:u.Deleted):H(Q,u.Changed)}}function ie(Q,H,w,d){return((H==null?void 0:H.excludeDirectories)||(H==null?void 0:H.excludeFiles))&&(e.matchesExclude(Q,H==null?void 0:H.excludeFiles,w,d())||e.matchesExclude(Q,H==null?void 0:H.excludeDirectories,w,d()))}function Z(Q,H,w,d,B){return function(T,_){if(T==="rename"){var h=_?e.normalizePath(e.combinePaths(Q,_)):Q;(!_||!ie(h,w,d,B))&&H(h)}}}function re(Q){var H=Q.pollingWatchFile,w=Q.getModifiedTime,d=Q.setTimeout,B=Q.clearTimeout,T=Q.fsWatch,_=Q.fileExists,h=Q.useCaseSensitiveFileNames,R=Q.getCurrentDirectory,b=Q.fsSupportsRecursiveFsWatch,G=Q.directoryExists,Y=Q.getAccessibleSortedChildDirectories,pe=Q.realpath,A=Q.tscWatchFile,_e=Q.useNonPollingWatchers,Se=Q.tscWatchDirectory,ae=Q.defaultWatchFileKind,D,be,ne,J;return{watchFile:le,watchDirectory:Ge};function le(Re,ce,Ue,We){We=Ke(We,_e);var Ne=e.Debug.checkDefined(We.watchFile);switch(Ne){case e.WatchFileKind.FixedPollingInterval:return H(Re,ce,g.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return H(Re,ce,Ue,void 0);case e.WatchFileKind.DynamicPriorityPolling:return Te()(Re,ce,Ue,void 0);case e.WatchFileKind.FixedChunkSizePolling:return Me()(Re,ce,void 0,void 0);case e.WatchFileKind.UseFsEvents:return T(Re,0,x(Re,ce,_),!1,Ue,e.getFallbackOptions(We));case e.WatchFileKind.UseFsEventsOnParentDirectory:return ne||(ne=te(T,h)),ne(Re,ce,Ue,e.getFallbackOptions(We));default:e.Debug.assertNever(Ne)}}function Te(){return D||(D=j({getModifiedTime:w,setTimeout:d}))}function Me(){return be||(be=E({getModifiedTime:w,setTimeout:d}))}function Ke(Re,ce){if(Re&&Re.watchFile!==void 0)return Re;switch(A){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return Ae(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,Re);case"UseFsEventsWithFallbackDynamicPolling":return Ae(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,Re);case"UseFsEventsOnParentDirectory":ce=!0;default:return ce?Ae(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,Re):{watchFile:(ae==null?void 0:ae())||e.WatchFileKind.FixedPollingInterval}}}function Ae(Re,ce,Ue){var We=Ue==null?void 0:Ue.fallbackPolling;return{watchFile:Re,fallbackPolling:We===void 0?ce:We}}function Ge(Re,ce,Ue,We){return b?T(Re,1,Z(Re,ce,We,h,R),Ue,g.Medium,e.getFallbackOptions(We)):(J||(J=k({useCaseSensitiveFileNames:h,getCurrentDirectory:R,directoryExists:G,getAccessibleSortedChildDirectories:Y,watchDirectory:se,realpath:pe,setTimeout:d,clearTimeout:B})),J(Re,ce,Ue,We))}function se(Re,ce,Ue,We){e.Debug.assert(!Ue);var Ne=xe(We),ve=e.Debug.checkDefined(Ne.watchDirectory);switch(ve){case e.WatchDirectoryKind.FixedPollingInterval:return H(Re,function(){return ce(Re)},g.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return Te()(Re,function(){return ce(Re)},g.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return Me()(Re,function(){return ce(Re)},void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return T(Re,1,Z(Re,ce,We,h,R),Ue,g.Medium,e.getFallbackOptions(Ne));default:e.Debug.assertNever(ve)}}function xe(Re){if(Re&&Re.watchDirectory!==void 0)return Re;switch(Se){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var ce=Re==null?void 0:Re.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:ce!==void 0?ce:void 0}}}}e.createSystemWatchFunctions=re;function q(Q){var H=Q.writeFile;Q.writeFile=function(w,d,B){return e.writeFileEnsuringDirectories(w,d,!!B,function(T,_,h){return H.call(Q,T,_,h)},function(T){return Q.createDirectory(T)},function(T){return Q.directoryExists(T)})}}e.patchWriteFileEnsuringDirectory=q;function P(){if(typeof process!="undefined"){var Q=process.version;if(!!Q){var H=Q.indexOf(".");if(H!==-1)return parseInt(Q.substring(1,H))}}}e.getNodeMajorVersion=P,e.sys=void 0;function M(Q){e.sys=Q}e.setSys=M,e.sys&&e.sys.getEnvironmentVariable&&(m(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(mr||(mr={}));var mr;(function(e){function n(c,u,g,p,I,V,L){return{code:c,category:u,key:g,message:p,reportsUnnecessary:I,elidedInCompatabilityPyramid:V,reportsDeprecated:L}}e.Diagnostics={Unterminated_string_literal:n(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:n(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:n(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:n(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_to_match_the_token_here:n(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_to_match_the_token_here_1007","The parser expected to find a '}' to match the '{' token here."),Trailing_comma_not_allowed:n(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:n(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:n(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:n(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:n(1013,e.DiagnosticCategory.Error,"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:n(1014,e.DiagnosticCategory.Error,"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:n(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:n(1016,e.DiagnosticCategory.Error,"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:n(1017,e.DiagnosticCategory.Error,"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:n(1018,e.DiagnosticCategory.Error,"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:n(1019,e.DiagnosticCategory.Error,"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:n(1020,e.DiagnosticCategory.Error,"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:n(1021,e.DiagnosticCategory.Error,"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:n(1022,e.DiagnosticCategory.Error,"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:n(1024,e.DiagnosticCategory.Error,"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:n(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:n(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:n(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:n(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:n(1031,e.DiagnosticCategory.Error,"_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:n(1034,e.DiagnosticCategory.Error,"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:n(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:n(1036,e.DiagnosticCategory.Error,"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:n(1038,e.DiagnosticCategory.Error,"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:n(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:n(1040,e.DiagnosticCategory.Error,"_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:n(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:n(1044,e.DiagnosticCategory.Error,"_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:n(1046,e.DiagnosticCategory.Error,"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:n(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:n(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:n(1049,e.DiagnosticCategory.Error,"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:n(1051,e.DiagnosticCategory.Error,"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:n(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:n(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:n(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:n(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:n(1056,e.DiagnosticCategory.Error,"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:n(1058,e.DiagnosticCategory.Error,"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:n(1059,e.DiagnosticCategory.Error,"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:n(1060,e.DiagnosticCategory.Error,"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:n(1061,e.DiagnosticCategory.Error,"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:n(1062,e.DiagnosticCategory.Error,"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:n(1063,e.DiagnosticCategory.Error,"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:n(1064,e.DiagnosticCategory.Error,"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<T> type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:n(1066,e.DiagnosticCategory.Error,"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:n(1068,e.DiagnosticCategory.Error,"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:n(1069,e.DiagnosticCategory.Error,"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:n(1070,e.DiagnosticCategory.Error,"_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:n(1071,e.DiagnosticCategory.Error,"_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:n(1079,e.DiagnosticCategory.Error,"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:n(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:n(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),_0_modifier_cannot_appear_on_a_constructor_declaration:n(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:n(1090,e.DiagnosticCategory.Error,"_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:n(1091,e.DiagnosticCategory.Error,"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:n(1092,e.DiagnosticCategory.Error,"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:n(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:n(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:n(1095,e.DiagnosticCategory.Error,"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:n(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:n(1101,e.DiagnosticCategory.Error,"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:n(1102,e.DiagnosticCategory.Error,"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:n(1103,e.DiagnosticCategory.Error,"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:n(1104,e.DiagnosticCategory.Error,"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:n(1105,e.DiagnosticCategory.Error,"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:n(1106,e.DiagnosticCategory.Error,"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:n(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:n(1108,e.DiagnosticCategory.Error,"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:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(1113,e.DiagnosticCategory.Error,"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:n(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:n(1115,e.DiagnosticCategory.Error,"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:n(1116,e.DiagnosticCategory.Error,"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_in_strict_mode:n(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:n(1118,e.DiagnosticCategory.Error,"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:n(1119,e.DiagnosticCategory.Error,"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:n(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:n(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),Variable_declaration_list_cannot_be_empty:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(1147,e.DiagnosticCategory.Error,"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:n(1148,e.DiagnosticCategory.Error,"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:n(1149,e.DiagnosticCategory.Error,"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."),const_declarations_must_be_initialized:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:n(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(1162,e.DiagnosticCategory.Error,"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:n(1163,e.DiagnosticCategory.Error,"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:n(1164,e.DiagnosticCategory.Error,"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:n(1165,e.DiagnosticCategory.Error,"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:n(1166,e.DiagnosticCategory.Error,"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:n(1168,e.DiagnosticCategory.Error,"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:n(1169,e.DiagnosticCategory.Error,"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:n(1170,e.DiagnosticCategory.Error,"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:n(1171,e.DiagnosticCategory.Error,"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:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:n(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(1186,e.DiagnosticCategory.Error,"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:n(1187,e.DiagnosticCategory.Error,"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:n(1188,e.DiagnosticCategory.Error,"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:n(1189,e.DiagnosticCategory.Error,"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:n(1190,e.DiagnosticCategory.Error,"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:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:n(1194,e.DiagnosticCategory.Error,"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:n(1195,e.DiagnosticCategory.Error,"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:n(1196,e.DiagnosticCategory.Error,"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:n(1197,e.DiagnosticCategory.Error,"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:n(1198,e.DiagnosticCategory.Error,"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:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(1200,e.DiagnosticCategory.Error,"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:n(1202,e.DiagnosticCategory.Error,"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:n(1203,e.DiagnosticCategory.Error,"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_the_isolatedModules_flag_is_provided_requires_using_export_type:n(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:n(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:n(1207,e.DiagnosticCategory.Error,"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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:n(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),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:n(1210,e.DiagnosticCategory.Error,"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:n(1211,e.DiagnosticCategory.Error,"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:n(1212,e.DiagnosticCategory.Error,"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:n(1213,e.DiagnosticCategory.Error,"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:n(1214,e.DiagnosticCategory.Error,"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:n(1215,e.DiagnosticCategory.Error,"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:n(1216,e.DiagnosticCategory.Error,"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:n(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning:n(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:n(1221,e.DiagnosticCategory.Error,"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:n(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(1226,e.DiagnosticCategory.Error,"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:n(1227,e.DiagnosticCategory.Error,"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:n(1228,e.DiagnosticCategory.Error,"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:n(1229,e.DiagnosticCategory.Error,"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:n(1230,e.DiagnosticCategory.Error,"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:n(1231,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:n(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:n(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:n(1234,e.DiagnosticCategory.Error,"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_in_a_namespace_or_module:n(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:n(1236,e.DiagnosticCategory.Error,"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:n(1237,e.DiagnosticCategory.Error,"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:n(1238,e.DiagnosticCategory.Error,"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:n(1239,e.DiagnosticCategory.Error,"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:n(1240,e.DiagnosticCategory.Error,"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:n(1241,e.DiagnosticCategory.Error,"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:n(1242,e.DiagnosticCategory.Error,"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:n(1243,e.DiagnosticCategory.Error,"_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:n(1244,e.DiagnosticCategory.Error,"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:n(1245,e.DiagnosticCategory.Error,"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:n(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:n(1247,e.DiagnosticCategory.Error,"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:n(1248,e.DiagnosticCategory.Error,"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:n(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:n(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:n(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:n(1254,e.DiagnosticCategory.Error,"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:n(1255,e.DiagnosticCategory.Error,"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:n(1257,e.DiagnosticCategory.Error,"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:n(1258,e.DiagnosticCategory.Error,"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:n(1259,e.DiagnosticCategory.Error,"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:n(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:n(1261,e.DiagnosticCategory.Error,"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:n(1262,e.DiagnosticCategory.Error,"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:n(1263,e.DiagnosticCategory.Error,"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:n(1264,e.DiagnosticCategory.Error,"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:n(1265,e.DiagnosticCategory.Error,"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:n(1266,e.DiagnosticCategory.Error,"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:n(1267,e.DiagnosticCategory.Error,"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:n(1268,e.DiagnosticCategory.Error,"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."),with_statements_are_not_allowed_in_an_async_function_block:n(1300,e.DiagnosticCategory.Error,"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:n(1308,e.DiagnosticCategory.Error,"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."),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:n(1312,e.DiagnosticCategory.Error,"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:n(1313,e.DiagnosticCategory.Error,"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:n(1314,e.DiagnosticCategory.Error,"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:n(1315,e.DiagnosticCategory.Error,"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:n(1316,e.DiagnosticCategory.Error,"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:n(1317,e.DiagnosticCategory.Error,"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:n(1318,e.DiagnosticCategory.Error,"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:n(1319,e.DiagnosticCategory.Error,"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:n(1320,e.DiagnosticCategory.Error,"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:n(1321,e.DiagnosticCategory.Error,"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:n(1322,e.DiagnosticCategory.Error,"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_node12_or_nodenext:n(1323,e.DiagnosticCategory.Error,"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', 'node12', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext:n(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext'."),Argument_of_dynamic_import_cannot_be_spread_element:n(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:n(1327,e.DiagnosticCategory.Error,"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:n(1328,e.DiagnosticCategory.Error,"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:n(1329,e.DiagnosticCategory.Error,"_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:n(1330,e.DiagnosticCategory.Error,"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:n(1331,e.DiagnosticCategory.Error,"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:n(1332,e.DiagnosticCategory.Error,"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:n(1333,e.DiagnosticCategory.Error,"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:n(1334,e.DiagnosticCategory.Error,"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:n(1335,e.DiagnosticCategory.Error,"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:n(1337,e.DiagnosticCategory.Error,"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:n(1338,e.DiagnosticCategory.Error,"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:n(1339,e.DiagnosticCategory.Error,"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:n(1340,e.DiagnosticCategory.Error,"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}')'?"),Type_arguments_cannot_be_used_here:n(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext:n(1343,e.DiagnosticCategory.Error,"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', 'node12', or 'nodenext'."),A_label_is_not_allowed_here:n(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:n(1345,e.DiagnosticCategory.Error,"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:n(1346,e.DiagnosticCategory.Error,"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:n(1347,e.DiagnosticCategory.Error,"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:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(1350,e.DiagnosticCategory.Message,"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:n(1351,e.DiagnosticCategory.Error,"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:n(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:n(1353,e.DiagnosticCategory.Error,"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:n(1354,e.DiagnosticCategory.Error,"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:n(1355,e.DiagnosticCategory.Error,"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:n(1356,e.DiagnosticCategory.Error,"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:n(1357,e.DiagnosticCategory.Error,"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:n(1358,e.DiagnosticCategory.Error,"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:n(1359,e.DiagnosticCategory.Error,"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."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:n(1361,e.DiagnosticCategory.Error,"_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:n(1362,e.DiagnosticCategory.Error,"_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:n(1363,e.DiagnosticCategory.Error,"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:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(1365,e.DiagnosticCategory.Message,"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:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:n(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:n(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:n(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:n(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),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:n(1375,e.DiagnosticCategory.Error,"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:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(1377,e.DiagnosticCategory.Message,"_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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:n(1379,e.DiagnosticCategory.Error,"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:n(1380,e.DiagnosticCategory.Error,"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:n(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:n(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Only_named_exports_may_use_export_type:n(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:n(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(1385,e.DiagnosticCategory.Error,"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:n(1386,e.DiagnosticCategory.Error,"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:n(1387,e.DiagnosticCategory.Error,"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:n(1388,e.DiagnosticCategory.Error,"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:n(1389,e.DiagnosticCategory.Error,"_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:n(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:n(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:n(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:n(1394,e.DiagnosticCategory.Message,"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:n(1395,e.DiagnosticCategory.Message,"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:n(1396,e.DiagnosticCategory.Message,"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:n(1397,e.DiagnosticCategory.Message,"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:n(1398,e.DiagnosticCategory.Message,"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:n(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:n(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:n(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:n(1402,e.DiagnosticCategory.Message,"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:n(1403,e.DiagnosticCategory.Message,"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:n(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:n(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:n(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:n(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:n(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:n(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:n(1410,e.DiagnosticCategory.Message,"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:n(1411,e.DiagnosticCategory.Message,"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:n(1412,e.DiagnosticCategory.Message,"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:n(1413,e.DiagnosticCategory.Message,"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:n(1414,e.DiagnosticCategory.Message,"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:n(1415,e.DiagnosticCategory.Message,"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:n(1416,e.DiagnosticCategory.Message,"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:n(1417,e.DiagnosticCategory.Message,"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:n(1418,e.DiagnosticCategory.Message,"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:n(1419,e.DiagnosticCategory.Message,"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:n(1420,e.DiagnosticCategory.Message,"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:n(1421,e.DiagnosticCategory.Message,"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:n(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:n(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:n(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:n(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:n(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:n(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:n(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:n(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:n(1430,e.DiagnosticCategory.Message,"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:n(1431,e.DiagnosticCategory.Error,"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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:n(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:n(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:n(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:n(1435,e.DiagnosticCategory.Error,"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:n(1436,e.DiagnosticCategory.Error,"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:n(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:n(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:n(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:n(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:n(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:n(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:n(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:n(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:n(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:n(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:n(1449,e.DiagnosticCategory.Message,"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_assertion_as_arguments:n(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion 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:n(1451,e.DiagnosticCategory.Error,"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"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:n(1470,e.DiagnosticCategory.Error,"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_synchronously_Use_dynamic_import_instead:n(1471,e.DiagnosticCategory.Error,"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 synchronously. Use dynamic import instead."),The_types_of_0_are_incompatible_between_these_types:n(2200,e.DiagnosticCategory.Error,"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:n(2201,e.DiagnosticCategory.Error,"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:n(2202,e.DiagnosticCategory.Error,"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:n(2203,e.DiagnosticCategory.Error,"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:n(2204,e.DiagnosticCategory.Error,"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:n(2205,e.DiagnosticCategory.Error,"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:n(2206,e.DiagnosticCategory.Error,"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:n(2207,e.DiagnosticCategory.Error,"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."),Duplicate_identifier_0:n(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:n(2301,e.DiagnosticCategory.Error,"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:n(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:n(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:n(2307,e.DiagnosticCategory.Error,"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:n(2308,e.DiagnosticCategory.Error,"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:n(2309,e.DiagnosticCategory.Error,"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:n(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(2312,e.DiagnosticCategory.Error,"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:n(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:n(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:n(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:n(2316,e.DiagnosticCategory.Error,"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:n(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:n(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:n(2319,e.DiagnosticCategory.Error,"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:n(2320,e.DiagnosticCategory.Error,"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:n(2321,e.DiagnosticCategory.Error,"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:n(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(2324,e.DiagnosticCategory.Error,"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:n(2325,e.DiagnosticCategory.Error,"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:n(2326,e.DiagnosticCategory.Error,"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:n(2327,e.DiagnosticCategory.Error,"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:n(2328,e.DiagnosticCategory.Error,"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:n(2329,e.DiagnosticCategory.Error,"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:n(2330,e.DiagnosticCategory.Error,"_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:n(2331,e.DiagnosticCategory.Error,"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:n(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:n(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:n(2334,e.DiagnosticCategory.Error,"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:n(2335,e.DiagnosticCategory.Error,"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:n(2336,e.DiagnosticCategory.Error,"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:n(2337,e.DiagnosticCategory.Error,"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:n(2338,e.DiagnosticCategory.Error,"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:n(2339,e.DiagnosticCategory.Error,"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:n(2340,e.DiagnosticCategory.Error,"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:n(2341,e.DiagnosticCategory.Error,"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:n(2343,e.DiagnosticCategory.Error,"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:n(2344,e.DiagnosticCategory.Error,"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:n(2345,e.DiagnosticCategory.Error,"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:n(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:n(2347,e.DiagnosticCategory.Error,"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:n(2348,e.DiagnosticCategory.Error,"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:n(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:n(2350,e.DiagnosticCategory.Error,"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:n(2351,e.DiagnosticCategory.Error,"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:n(2352,e.DiagnosticCategory.Error,"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:n(2353,e.DiagnosticCategory.Error,"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:n(2354,e.DiagnosticCategory.Error,"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_void_nor_any_must_return_a_value:n(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:n(2356,e.DiagnosticCategory.Error,"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:n(2357,e.DiagnosticCategory.Error,"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:n(2358,e.DiagnosticCategory.Error,"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_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:n(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol:n(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:n(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:n(2362,e.DiagnosticCategory.Error,"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:n(2363,e.DiagnosticCategory.Error,"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:n(2364,e.DiagnosticCategory.Error,"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:n(2365,e.DiagnosticCategory.Error,"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:n(2366,e.DiagnosticCategory.Error,"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_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:n(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),Type_parameter_name_cannot_be_0:n(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:n(2369,e.DiagnosticCategory.Error,"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:n(2370,e.DiagnosticCategory.Error,"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:n(2371,e.DiagnosticCategory.Error,"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:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(2373,e.DiagnosticCategory.Error,"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:n(2374,e.DiagnosticCategory.Error,"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:n(2375,e.DiagnosticCategory.Error,"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_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:n(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:n(2377,e.DiagnosticCategory.Error,"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:n(2378,e.DiagnosticCategory.Error,"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:n(2379,e.DiagnosticCategory.Error,"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."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:n(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:n(2383,e.DiagnosticCategory.Error,"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:n(2384,e.DiagnosticCategory.Error,"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:n(2385,e.DiagnosticCategory.Error,"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:n(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(2391,e.DiagnosticCategory.Error,"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:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(2394,e.DiagnosticCategory.Error,"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:n(2395,e.DiagnosticCategory.Error,"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:n(2396,e.DiagnosticCategory.Error,"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:n(2397,e.DiagnosticCategory.Error,"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:n(2398,e.DiagnosticCategory.Error,"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:n(2399,e.DiagnosticCategory.Error,"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:n(2400,e.DiagnosticCategory.Error,"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."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:n(2402,e.DiagnosticCategory.Error,"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:n(2403,e.DiagnosticCategory.Error,"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:n(2404,e.DiagnosticCategory.Error,"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:n(2405,e.DiagnosticCategory.Error,"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:n(2406,e.DiagnosticCategory.Error,"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:n(2407,e.DiagnosticCategory.Error,"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:n(2408,e.DiagnosticCategory.Error,"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:n(2409,e.DiagnosticCategory.Error,"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:n(2410,e.DiagnosticCategory.Error,"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:n(2412,e.DiagnosticCategory.Error,"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:n(2411,e.DiagnosticCategory.Error,"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:n(2413,e.DiagnosticCategory.Error,"_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:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(2415,e.DiagnosticCategory.Error,"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:n(2416,e.DiagnosticCategory.Error,"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:n(2417,e.DiagnosticCategory.Error,"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:n(2418,e.DiagnosticCategory.Error,"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:n(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:n(2420,e.DiagnosticCategory.Error,"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:n(2422,e.DiagnosticCategory.Error,"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:n(2423,e.DiagnosticCategory.Error,"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:n(2425,e.DiagnosticCategory.Error,"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:n(2426,e.DiagnosticCategory.Error,"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:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(2428,e.DiagnosticCategory.Error,"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:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(2431,e.DiagnosticCategory.Error,"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:n(2432,e.DiagnosticCategory.Error,"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:n(2433,e.DiagnosticCategory.Error,"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:n(2434,e.DiagnosticCategory.Error,"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:n(2435,e.DiagnosticCategory.Error,"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:n(2436,e.DiagnosticCategory.Error,"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:n(2437,e.DiagnosticCategory.Error,"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:n(2438,e.DiagnosticCategory.Error,"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:n(2439,e.DiagnosticCategory.Error,"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:n(2440,e.DiagnosticCategory.Error,"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:n(2441,e.DiagnosticCategory.Error,"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:n(2442,e.DiagnosticCategory.Error,"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:n(2443,e.DiagnosticCategory.Error,"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:n(2444,e.DiagnosticCategory.Error,"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:n(2445,e.DiagnosticCategory.Error,"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:n(2446,e.DiagnosticCategory.Error,"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:n(2447,e.DiagnosticCategory.Error,"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:n(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:n(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:n(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:n(2458,e.DiagnosticCategory.Error,"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:n(2459,e.DiagnosticCategory.Error,"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:n(2460,e.DiagnosticCategory.Error,"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:n(2461,e.DiagnosticCategory.Error,"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:n(2462,e.DiagnosticCategory.Error,"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:n(2463,e.DiagnosticCategory.Error,"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:n(2464,e.DiagnosticCategory.Error,"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:n(2465,e.DiagnosticCategory.Error,"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:n(2466,e.DiagnosticCategory.Error,"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:n(2467,e.DiagnosticCategory.Error,"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:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(2469,e.DiagnosticCategory.Error,"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:n(2472,e.DiagnosticCategory.Error,"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:n(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:n(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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:n(2475,e.DiagnosticCategory.Error,"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:n(2476,e.DiagnosticCategory.Error,"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:n(2477,e.DiagnosticCategory.Error,"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:n(2478,e.DiagnosticCategory.Error,"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:n(2480,e.DiagnosticCategory.Error,"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:n(2481,e.DiagnosticCategory.Error,"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:n(2483,e.DiagnosticCategory.Error,"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:n(2484,e.DiagnosticCategory.Error,"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:n(2487,e.DiagnosticCategory.Error,"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:n(2488,e.DiagnosticCategory.Error,"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:n(2489,e.DiagnosticCategory.Error,"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:n(2490,e.DiagnosticCategory.Error,"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:n(2491,e.DiagnosticCategory.Error,"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:n(2492,e.DiagnosticCategory.Error,"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:n(2493,e.DiagnosticCategory.Error,"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:n(2494,e.DiagnosticCategory.Error,"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:n(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:n(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:n(2497,e.DiagnosticCategory.Error,"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:n(2498,e.DiagnosticCategory.Error,"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:n(2499,e.DiagnosticCategory.Error,"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:n(2500,e.DiagnosticCategory.Error,"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:n(2501,e.DiagnosticCategory.Error,"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:n(2502,e.DiagnosticCategory.Error,"_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:n(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:n(2504,e.DiagnosticCategory.Error,"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:n(2505,e.DiagnosticCategory.Error,"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:n(2506,e.DiagnosticCategory.Error,"_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:n(2507,e.DiagnosticCategory.Error,"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:n(2508,e.DiagnosticCategory.Error,"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:n(2509,e.DiagnosticCategory.Error,"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:n(2510,e.DiagnosticCategory.Error,"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:n(2511,e.DiagnosticCategory.Error,"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:n(2512,e.DiagnosticCategory.Error,"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:n(2513,e.DiagnosticCategory.Error,"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."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:n(2515,e.DiagnosticCategory.Error,"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:n(2516,e.DiagnosticCategory.Error,"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:n(2517,e.DiagnosticCategory.Error,"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:n(2518,e.DiagnosticCategory.Error,"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:n(2519,e.DiagnosticCategory.Error,"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:n(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:n(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:n(2523,e.DiagnosticCategory.Error,"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:n(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:n(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:n(2526,e.DiagnosticCategory.Error,"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:n(2527,e.DiagnosticCategory.Error,"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:n(2528,e.DiagnosticCategory.Error,"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:n(2529,e.DiagnosticCategory.Error,"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:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:n(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:n(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:n(2536,e.DiagnosticCategory.Error,"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:n(2537,e.DiagnosticCategory.Error,"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:n(2538,e.DiagnosticCategory.Error,"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:n(2539,e.DiagnosticCategory.Error,"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:n(2540,e.DiagnosticCategory.Error,"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:n(2542,e.DiagnosticCategory.Error,"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:n(2543,e.DiagnosticCategory.Error,"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:n(2544,e.DiagnosticCategory.Error,"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:n(2545,e.DiagnosticCategory.Error,"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:n(2547,e.DiagnosticCategory.Error,"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:n(2548,e.DiagnosticCategory.Error,"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:n(2549,e.DiagnosticCategory.Error,"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:n(2550,e.DiagnosticCategory.Error,"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:n(2551,e.DiagnosticCategory.Error,"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:n(2552,e.DiagnosticCategory.Error,"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:n(2553,e.DiagnosticCategory.Error,"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:n(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:n(2555,e.DiagnosticCategory.Error,"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:n(2556,e.DiagnosticCategory.Error,"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:n(2558,e.DiagnosticCategory.Error,"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:n(2559,e.DiagnosticCategory.Error,"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:n(2560,e.DiagnosticCategory.Error,"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:n(2561,e.DiagnosticCategory.Error,"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:n(2562,e.DiagnosticCategory.Error,"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:n(2563,e.DiagnosticCategory.Error,"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:n(2564,e.DiagnosticCategory.Error,"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:n(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:n(2566,e.DiagnosticCategory.Error,"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:n(2567,e.DiagnosticCategory.Error,"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:n(2568,e.DiagnosticCategory.Error,"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}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:n(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:n(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:n(2574,e.DiagnosticCategory.Error,"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:n(2575,e.DiagnosticCategory.Error,"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:n(2576,e.DiagnosticCategory.Error,"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:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(2578,e.DiagnosticCategory.Error,"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:n(2580,e.DiagnosticCategory.Error,"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:n(2581,e.DiagnosticCategory.Error,"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:n(2582,e.DiagnosticCategory.Error,"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:n(2583,e.DiagnosticCategory.Error,"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:n(2584,e.DiagnosticCategory.Error,"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:n(2585,e.DiagnosticCategory.Error,"_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:n(2588,e.DiagnosticCategory.Error,"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:n(2589,e.DiagnosticCategory.Error,"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:n(2590,e.DiagnosticCategory.Error,"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:n(2591,e.DiagnosticCategory.Error,"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:n(2592,e.DiagnosticCategory.Error,"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:n(2593,e.DiagnosticCategory.Error,"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_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:n(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using '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:n(2595,e.DiagnosticCategory.Error,"_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:n(2596,e.DiagnosticCategory.Error,"_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:n(2597,e.DiagnosticCategory.Error,"_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:n(2598,e.DiagnosticCategory.Error,"_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:n(2602,e.DiagnosticCategory.Error,"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:n(2603,e.DiagnosticCategory.Error,"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:n(2604,e.DiagnosticCategory.Error,"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:n(2606,e.DiagnosticCategory.Error,"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:n(2607,e.DiagnosticCategory.Error,"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:n(2608,e.DiagnosticCategory.Error,"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:n(2609,e.DiagnosticCategory.Error,"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:n(2610,e.DiagnosticCategory.Error,"_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:n(2611,e.DiagnosticCategory.Error,"_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:n(2612,e.DiagnosticCategory.Error,"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:n(2613,e.DiagnosticCategory.Error,"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:n(2614,e.DiagnosticCategory.Error,"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:n(2615,e.DiagnosticCategory.Error,"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:n(2616,e.DiagnosticCategory.Error,"_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:n(2617,e.DiagnosticCategory.Error,"_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:n(2618,e.DiagnosticCategory.Error,"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:n(2619,e.DiagnosticCategory.Error,"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:n(2620,e.DiagnosticCategory.Error,"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:n(2621,e.DiagnosticCategory.Error,"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:n(2623,e.DiagnosticCategory.Error,"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:n(2624,e.DiagnosticCategory.Error,"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:n(2625,e.DiagnosticCategory.Error,"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:n(2626,e.DiagnosticCategory.Error,"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:n(2627,e.DiagnosticCategory.Error,"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:n(2628,e.DiagnosticCategory.Error,"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:n(2629,e.DiagnosticCategory.Error,"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:n(2630,e.DiagnosticCategory.Error,"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:n(2631,e.DiagnosticCategory.Error,"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:n(2632,e.DiagnosticCategory.Error,"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:n(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:n(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:n(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:n(2651,e.DiagnosticCategory.Error,"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:n(2652,e.DiagnosticCategory.Error,"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:n(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:n(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:n(2658,e.DiagnosticCategory.Error,"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:n(2659,e.DiagnosticCategory.Error,"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:n(2660,e.DiagnosticCategory.Error,"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:n(2661,e.DiagnosticCategory.Error,"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:n(2662,e.DiagnosticCategory.Error,"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:n(2663,e.DiagnosticCategory.Error,"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:n(2664,e.DiagnosticCategory.Error,"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:n(2665,e.DiagnosticCategory.Error,"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:n(2666,e.DiagnosticCategory.Error,"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:n(2667,e.DiagnosticCategory.Error,"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:n(2668,e.DiagnosticCategory.Error,"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:n(2669,e.DiagnosticCategory.Error,"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:n(2670,e.DiagnosticCategory.Error,"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:n(2671,e.DiagnosticCategory.Error,"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:n(2672,e.DiagnosticCategory.Error,"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:n(2673,e.DiagnosticCategory.Error,"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:n(2674,e.DiagnosticCategory.Error,"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:n(2675,e.DiagnosticCategory.Error,"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:n(2676,e.DiagnosticCategory.Error,"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:n(2677,e.DiagnosticCategory.Error,"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:n(2678,e.DiagnosticCategory.Error,"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:n(2679,e.DiagnosticCategory.Error,"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:n(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:n(2681,e.DiagnosticCategory.Error,"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:n(2683,e.DiagnosticCategory.Error,"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:n(2684,e.DiagnosticCategory.Error,"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:n(2685,e.DiagnosticCategory.Error,"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:n(2686,e.DiagnosticCategory.Error,"_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:n(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:n(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:n(2689,e.DiagnosticCategory.Error,"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:n(2690,e.DiagnosticCategory.Error,"_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}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:n(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:n(2692,e.DiagnosticCategory.Error,"_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:n(2693,e.DiagnosticCategory.Error,"_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:n(2694,e.DiagnosticCategory.Error,"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:n(2695,e.DiagnosticCategory.Error,"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:n(2696,e.DiagnosticCategory.Error,"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:n(2697,e.DiagnosticCategory.Error,"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:n(2698,e.DiagnosticCategory.Error,"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:n(2699,e.DiagnosticCategory.Error,"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:n(2700,e.DiagnosticCategory.Error,"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:n(2701,e.DiagnosticCategory.Error,"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:n(2702,e.DiagnosticCategory.Error,"_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:n(2703,e.DiagnosticCategory.Error,"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:n(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:n(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:n(2706,e.DiagnosticCategory.Error,"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:n(2707,e.DiagnosticCategory.Error,"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:n(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:n(2709,e.DiagnosticCategory.Error,"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:n(2710,e.DiagnosticCategory.Error,"_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:n(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:n(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:n(2713,e.DiagnosticCategory.Error,"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:n(2714,e.DiagnosticCategory.Error,"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:n(2715,e.DiagnosticCategory.Error,"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:n(2716,e.DiagnosticCategory.Error,"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:n(2717,e.DiagnosticCategory.Error,"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:n(2718,e.DiagnosticCategory.Error,"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:n(2719,e.DiagnosticCategory.Error,"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:n(2720,e.DiagnosticCategory.Error,"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:n(2721,e.DiagnosticCategory.Error,"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:n(2722,e.DiagnosticCategory.Error,"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:n(2723,e.DiagnosticCategory.Error,"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:n(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:n(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:n(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:n(2727,e.DiagnosticCategory.Error,"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:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:n(2730,e.DiagnosticCategory.Error,"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:n(2731,e.DiagnosticCategory.Error,"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:n(2732,e.DiagnosticCategory.Error,"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:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(2734,e.DiagnosticCategory.Error,"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:n(2735,e.DiagnosticCategory.Error,"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:n(2736,e.DiagnosticCategory.Error,"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:n(2737,e.DiagnosticCategory.Error,"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:n(2738,e.DiagnosticCategory.Message,"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:n(2739,e.DiagnosticCategory.Error,"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:n(2740,e.DiagnosticCategory.Error,"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:n(2741,e.DiagnosticCategory.Error,"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:n(2742,e.DiagnosticCategory.Error,"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:n(2743,e.DiagnosticCategory.Error,"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:n(2744,e.DiagnosticCategory.Error,"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:n(2745,e.DiagnosticCategory.Error,"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:n(2746,e.DiagnosticCategory.Error,"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:n(2747,e.DiagnosticCategory.Error,"_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_the_isolatedModules_flag_is_provided:n(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:n(2749,e.DiagnosticCategory.Error,"_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:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:n(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:n(2757,e.DiagnosticCategory.Error,"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:n(2758,e.DiagnosticCategory.Error,"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:n(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:n(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:n(2761,e.DiagnosticCategory.Error,"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:n(2762,e.DiagnosticCategory.Error,"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:n(2763,e.DiagnosticCategory.Error,"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:n(2764,e.DiagnosticCategory.Error,"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:n(2765,e.DiagnosticCategory.Error,"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:n(2766,e.DiagnosticCategory.Error,"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:n(2767,e.DiagnosticCategory.Error,"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:n(2768,e.DiagnosticCategory.Error,"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:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:n(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:n(2772,e.DiagnosticCategory.Error,"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:n(2773,e.DiagnosticCategory.Error,"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:n(2774,e.DiagnosticCategory.Error,"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:n(2775,e.DiagnosticCategory.Error,"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:n(2776,e.DiagnosticCategory.Error,"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:n(2777,e.DiagnosticCategory.Error,"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:n(2778,e.DiagnosticCategory.Error,"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:n(2779,e.DiagnosticCategory.Error,"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:n(2780,e.DiagnosticCategory.Error,"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:n(2781,e.DiagnosticCategory.Error,"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:n(2782,e.DiagnosticCategory.Message,"_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:n(2783,e.DiagnosticCategory.Error,"_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:n(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:n(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:n(2786,e.DiagnosticCategory.Error,"_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:n(2787,e.DiagnosticCategory.Error,"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:n(2788,e.DiagnosticCategory.Error,"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:n(2789,e.DiagnosticCategory.Error,"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:n(2790,e.DiagnosticCategory.Error,"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:n(2791,e.DiagnosticCategory.Error,"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_node_or_to_add_aliases_to_the_paths_option:n(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', 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:n(2793,e.DiagnosticCategory.Error,"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:n(2794,e.DiagnosticCategory.Error,"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:n(2795,e.DiagnosticCategory.Error,"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:n(2796,e.DiagnosticCategory.Error,"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:n(2797,e.DiagnosticCategory.Error,"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:n(2798,e.DiagnosticCategory.Error,"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:n(2799,e.DiagnosticCategory.Error,"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:n(2800,e.DiagnosticCategory.Error,"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:n(2801,e.DiagnosticCategory.Error,"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:n(2802,e.DiagnosticCategory.Error,"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:n(2803,e.DiagnosticCategory.Error,"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:n(2804,e.DiagnosticCategory.Error,"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."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:n(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:n(2806,e.DiagnosticCategory.Error,"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:n(2807,e.DiagnosticCategory.Error,"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:n(2808,e.DiagnosticCategory.Error,"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_the_whole_assignment_in_parentheses:n(2809,e.DiagnosticCategory.Error,"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 the whole assignment in parentheses."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:n(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:n(2811,e.DiagnosticCategory.Error,"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:n(2812,e.DiagnosticCategory.Error,"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:n(2813,e.DiagnosticCategory.Error,"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:n(2814,e.DiagnosticCategory.Error,"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:n(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:n(2816,e.DiagnosticCategory.Error,"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:n(2817,e.DiagnosticCategory.Error,"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:n(2818,e.DiagnosticCategory.Error,"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:n(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:n(2820,e.DiagnosticCategory.Error,"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:n(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821","Import assertions are only supported when the '--module' option is set to 'esnext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:n(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:n(2833,e.DiagnosticCategory.Error,"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_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path:n(2834,e.DiagnosticCategory.Error,"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 'node12' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0:n(2835,e.DiagnosticCategory.Error,"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 'node12' or 'nodenext'. Did you mean '{0}'?"),Import_declaration_0_is_using_private_name_1:n(4e3,e.DiagnosticCategory.Error,"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:n(4002,e.DiagnosticCategory.Error,"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:n(4004,e.DiagnosticCategory.Error,"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:n(4006,e.DiagnosticCategory.Error,"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:n(4008,e.DiagnosticCategory.Error,"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:n(4010,e.DiagnosticCategory.Error,"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:n(4012,e.DiagnosticCategory.Error,"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:n(4014,e.DiagnosticCategory.Error,"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:n(4016,e.DiagnosticCategory.Error,"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:n(4019,e.DiagnosticCategory.Error,"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:n(4020,e.DiagnosticCategory.Error,"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:n(4021,e.DiagnosticCategory.Error,"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:n(4022,e.DiagnosticCategory.Error,"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:n(4023,e.DiagnosticCategory.Error,"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:n(4024,e.DiagnosticCategory.Error,"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:n(4025,e.DiagnosticCategory.Error,"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:n(4026,e.DiagnosticCategory.Error,"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:n(4027,e.DiagnosticCategory.Error,"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:n(4028,e.DiagnosticCategory.Error,"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:n(4029,e.DiagnosticCategory.Error,"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:n(4030,e.DiagnosticCategory.Error,"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:n(4031,e.DiagnosticCategory.Error,"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:n(4032,e.DiagnosticCategory.Error,"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:n(4033,e.DiagnosticCategory.Error,"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:n(4034,e.DiagnosticCategory.Error,"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:n(4035,e.DiagnosticCategory.Error,"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:n(4036,e.DiagnosticCategory.Error,"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:n(4037,e.DiagnosticCategory.Error,"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:n(4038,e.DiagnosticCategory.Error,"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:n(4039,e.DiagnosticCategory.Error,"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:n(4040,e.DiagnosticCategory.Error,"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:n(4041,e.DiagnosticCategory.Error,"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:n(4042,e.DiagnosticCategory.Error,"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:n(4043,e.DiagnosticCategory.Error,"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:n(4044,e.DiagnosticCategory.Error,"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:n(4045,e.DiagnosticCategory.Error,"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:n(4046,e.DiagnosticCategory.Error,"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:n(4047,e.DiagnosticCategory.Error,"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:n(4048,e.DiagnosticCategory.Error,"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:n(4049,e.DiagnosticCategory.Error,"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:n(4050,e.DiagnosticCategory.Error,"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:n(4051,e.DiagnosticCategory.Error,"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:n(4052,e.DiagnosticCategory.Error,"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:n(4053,e.DiagnosticCategory.Error,"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:n(4054,e.DiagnosticCategory.Error,"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:n(4055,e.DiagnosticCategory.Error,"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:n(4056,e.DiagnosticCategory.Error,"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:n(4057,e.DiagnosticCategory.Error,"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:n(4058,e.DiagnosticCategory.Error,"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:n(4059,e.DiagnosticCategory.Error,"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:n(4060,e.DiagnosticCategory.Error,"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:n(4061,e.DiagnosticCategory.Error,"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:n(4062,e.DiagnosticCategory.Error,"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:n(4063,e.DiagnosticCategory.Error,"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:n(4064,e.DiagnosticCategory.Error,"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:n(4065,e.DiagnosticCategory.Error,"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:n(4066,e.DiagnosticCategory.Error,"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:n(4067,e.DiagnosticCategory.Error,"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:n(4068,e.DiagnosticCategory.Error,"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:n(4069,e.DiagnosticCategory.Error,"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:n(4070,e.DiagnosticCategory.Error,"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:n(4071,e.DiagnosticCategory.Error,"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:n(4072,e.DiagnosticCategory.Error,"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:n(4073,e.DiagnosticCategory.Error,"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:n(4074,e.DiagnosticCategory.Error,"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:n(4075,e.DiagnosticCategory.Error,"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:n(4076,e.DiagnosticCategory.Error,"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:n(4077,e.DiagnosticCategory.Error,"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:n(4078,e.DiagnosticCategory.Error,"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:n(4081,e.DiagnosticCategory.Error,"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:n(4082,e.DiagnosticCategory.Error,"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:n(4083,e.DiagnosticCategory.Error,"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:n(4084,e.DiagnosticCategory.Error,"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}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:n(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:n(4091,e.DiagnosticCategory.Error,"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:n(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:n(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:n(4095,e.DiagnosticCategory.Error,"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:n(4096,e.DiagnosticCategory.Error,"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:n(4097,e.DiagnosticCategory.Error,"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:n(4098,e.DiagnosticCategory.Error,"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:n(4099,e.DiagnosticCategory.Error,"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:n(4100,e.DiagnosticCategory.Error,"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:n(4101,e.DiagnosticCategory.Error,"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:n(4102,e.DiagnosticCategory.Error,"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:n(4103,e.DiagnosticCategory.Error,"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:n(4104,e.DiagnosticCategory.Error,"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:n(4105,e.DiagnosticCategory.Error,"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:n(4106,e.DiagnosticCategory.Error,"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:n(4107,e.DiagnosticCategory.Error,"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:n(4108,e.DiagnosticCategory.Error,"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:n(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:n(4110,e.DiagnosticCategory.Error,"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:n(4111,e.DiagnosticCategory.Error,"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:n(4112,e.DiagnosticCategory.Error,"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:n(4113,e.DiagnosticCategory.Error,"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:n(4114,e.DiagnosticCategory.Error,"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:n(4115,e.DiagnosticCategory.Error,"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:n(4116,e.DiagnosticCategory.Error,"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:n(4117,e.DiagnosticCategory.Error,"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:n(4118,e.DiagnosticCategory.Error,"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:n(4119,e.DiagnosticCategory.Error,"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:n(4120,e.DiagnosticCategory.Error,"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:n(4121,e.DiagnosticCategory.Error,"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:n(4122,e.DiagnosticCategory.Error,"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:n(4123,e.DiagnosticCategory.Error,"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:n(4124,e.DiagnosticCategory.Error,"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'."),The_current_host_does_not_support_the_0_option:n(5001,e.DiagnosticCategory.Error,"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:n(5009,e.DiagnosticCategory.Error,"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:n(5010,e.DiagnosticCategory.Error,"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:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(5024,e.DiagnosticCategory.Error,"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:n(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:n(5033,e.DiagnosticCategory.Error,"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:n(5042,e.DiagnosticCategory.Error,"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:n(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:n(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:n(5051,e.DiagnosticCategory.Error,"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:n(5052,e.DiagnosticCategory.Error,"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:n(5053,e.DiagnosticCategory.Error,"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:n(5054,e.DiagnosticCategory.Error,"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:n(5055,e.DiagnosticCategory.Error,"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:n(5056,e.DiagnosticCategory.Error,"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:n(5057,e.DiagnosticCategory.Error,"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:n(5058,e.DiagnosticCategory.Error,"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:n(5059,e.DiagnosticCategory.Error,"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:n(5061,e.DiagnosticCategory.Error,"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:n(5062,e.DiagnosticCategory.Error,"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:n(5063,e.DiagnosticCategory.Error,"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:n(5064,e.DiagnosticCategory.Error,"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:n(5065,e.DiagnosticCategory.Error,"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:n(5066,e.DiagnosticCategory.Error,"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:n(5067,e.DiagnosticCategory.Error,"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:n(5068,e.DiagnosticCategory.Error,"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:n(5069,e.DiagnosticCategory.Error,"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_without_node_module_resolution_strategy:n(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:n(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(5073,e.DiagnosticCategory.Error,"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:n(5074,e.DiagnosticCategory.Error,"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:n(5075,e.DiagnosticCategory.Error,"_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:n(5076,e.DiagnosticCategory.Error,"_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:n(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(5079,e.DiagnosticCategory.Error,"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:n(5080,e.DiagnosticCategory.Error,"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:n(5081,e.DiagnosticCategory.Error,"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:n(5082,e.DiagnosticCategory.Error,"_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:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:n(5085,e.DiagnosticCategory.Error,"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:n(5086,e.DiagnosticCategory.Error,"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:n(5087,e.DiagnosticCategory.Error,"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:n(5088,e.DiagnosticCategory.Error,"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:n(5089,e.DiagnosticCategory.Error,"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:n(5090,e.DiagnosticCategory.Error,"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_isolatedModules_is_enabled:n(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:n(5092,e.DiagnosticCategory.Error,"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:n(5093,e.DiagnosticCategory.Error,"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:n(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:n(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:n(6e3,e.DiagnosticCategory.Message,"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:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:n(6004,e.DiagnosticCategory.Message,"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:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:n(6007,e.DiagnosticCategory.Message,"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:n(6008,e.DiagnosticCategory.Message,"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:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(6010,e.DiagnosticCategory.Message,"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:n(6011,e.DiagnosticCategory.Message,"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:n(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:n(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:n(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(6019,e.DiagnosticCategory.Message,"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:n(6020,e.DiagnosticCategory.Message,"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:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:n(6046,e.DiagnosticCategory.Error,"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:n(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(6052,e.DiagnosticCategory.Message,"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:n(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:n(6054,e.DiagnosticCategory.Error,"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:n(6055,e.DiagnosticCategory.Message,"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:n(6056,e.DiagnosticCategory.Message,"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:n(6058,e.DiagnosticCategory.Message,"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:n(6059,e.DiagnosticCategory.Error,"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:n(6060,e.DiagnosticCategory.Message,"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:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(6064,e.DiagnosticCategory.Error,"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:n(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:n(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:n(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:n(6070,e.DiagnosticCategory.Message,"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:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:n(6073,e.DiagnosticCategory.Message,"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:n(6074,e.DiagnosticCategory.Message,"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:n(6075,e.DiagnosticCategory.Message,"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:n(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:n(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:n(6078,e.DiagnosticCategory.Message,"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:n(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:n(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:n(6082,e.DiagnosticCategory.Error,"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:n(6083,e.DiagnosticCategory.Message,"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:n(6084,e.DiagnosticCategory.Message,"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:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:n(6088,e.DiagnosticCategory.Message,"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:n(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:n(6090,e.DiagnosticCategory.Message,"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:n(6091,e.DiagnosticCategory.Message,"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:n(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:n(6093,e.DiagnosticCategory.Message,"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:n(6094,e.DiagnosticCategory.Message,"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_type_1:n(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:n(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:n(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:n(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(6100,e.DiagnosticCategory.Message,"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:n(6101,e.DiagnosticCategory.Message,"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:n(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:n(6104,e.DiagnosticCategory.Message,"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:n(6105,e.DiagnosticCategory.Message,"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:n(6106,e.DiagnosticCategory.Message,"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:n(6107,e.DiagnosticCategory.Message,"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:n(6108,e.DiagnosticCategory.Message,"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:n(6109,e.DiagnosticCategory.Message,"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:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:n(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(6114,e.DiagnosticCategory.Error,"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:n(6115,e.DiagnosticCategory.Message,"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:n(6116,e.DiagnosticCategory.Message,"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:n(6119,e.DiagnosticCategory.Message,"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:n(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:n(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:n(6122,e.DiagnosticCategory.Message,"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:n(6123,e.DiagnosticCategory.Message,"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:n(6124,e.DiagnosticCategory.Message,"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:n(6125,e.DiagnosticCategory.Message,"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:n(6126,e.DiagnosticCategory.Message,"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:n(6127,e.DiagnosticCategory.Message,"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:n(6128,e.DiagnosticCategory.Message,"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:n(6130,e.DiagnosticCategory.Message,"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:n(6131,e.DiagnosticCategory.Error,"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:n(6132,e.DiagnosticCategory.Message,"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:n(6133,e.DiagnosticCategory.Error,"_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:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:n(6136,e.DiagnosticCategory.Message,"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:n(6137,e.DiagnosticCategory.Error,"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:n(6138,e.DiagnosticCategory.Error,"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:n(6139,e.DiagnosticCategory.Message,"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:n(6140,e.DiagnosticCategory.Error,"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:n(6141,e.DiagnosticCategory.Message,"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:n(6142,e.DiagnosticCategory.Error,"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:n(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:n(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:n(6146,e.DiagnosticCategory.Message,"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:n(6147,e.DiagnosticCategory.Message,"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:n(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:n(6151,e.DiagnosticCategory.Message,"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:n(6152,e.DiagnosticCategory.Message,"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:n(6153,e.DiagnosticCategory.Message,"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:n(6154,e.DiagnosticCategory.Message,"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:n(6155,e.DiagnosticCategory.Message,"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:n(6156,e.DiagnosticCategory.Message,"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:n(6157,e.DiagnosticCategory.Message,"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:n(6158,e.DiagnosticCategory.Message,"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:n(6159,e.DiagnosticCategory.Message,"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:n(6160,e.DiagnosticCategory.Message,"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:n(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(6166,e.DiagnosticCategory.Message,"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:n(6167,e.DiagnosticCategory.Message,"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:n(6168,e.DiagnosticCategory.Message,"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:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(6170,e.DiagnosticCategory.Message,"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:n(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:n(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(6182,e.DiagnosticCategory.Message,"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:n(6183,e.DiagnosticCategory.Message,"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:n(6184,e.DiagnosticCategory.Message,"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:n(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:n(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(6189,e.DiagnosticCategory.Error,"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:n(6191,e.DiagnosticCategory.Message,"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:n(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:n(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:n(6194,e.DiagnosticCategory.Message,"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:n(6195,e.DiagnosticCategory.Message,"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:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:n(6200,e.DiagnosticCategory.Error,"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:n(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:n(6202,e.DiagnosticCategory.Error,"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:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:n(6206,e.DiagnosticCategory.Message,"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:n(6207,e.DiagnosticCategory.Message,"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:n(6208,e.DiagnosticCategory.Message,"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:n(6209,e.DiagnosticCategory.Message,"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:n(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:n(6211,e.DiagnosticCategory.Message,"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:n(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:n(6213,e.DiagnosticCategory.Message,"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:n(6214,e.DiagnosticCategory.Message,"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:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(6218,e.DiagnosticCategory.Message,"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:n(6219,e.DiagnosticCategory.Message,"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:n(6220,e.DiagnosticCategory.Message,"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:n(6221,e.DiagnosticCategory.Message,"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:n(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(6224,e.DiagnosticCategory.Message,"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:n(6225,e.DiagnosticCategory.Message,"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:n(6226,e.DiagnosticCategory.Message,"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:n(6227,e.DiagnosticCategory.Message,"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:n(6229,e.DiagnosticCategory.Error,"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:n(6230,e.DiagnosticCategory.Error,"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:n(6231,e.DiagnosticCategory.Error,"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:n(6232,e.DiagnosticCategory.Error,"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:n(6233,e.DiagnosticCategory.Error,"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:n(6234,e.DiagnosticCategory.Error,"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:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(6236,e.DiagnosticCategory.Error,"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:n(6237,e.DiagnosticCategory.Message,"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:n(6238,e.DiagnosticCategory.Error,"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:n(6239,e.DiagnosticCategory.Message,"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:n(6240,e.DiagnosticCategory.Message,"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:n(6241,e.DiagnosticCategory.Message,"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:n(6242,e.DiagnosticCategory.Message,"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:n(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:n(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:n(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:n(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:n(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:n(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:n(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:n(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:n(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:n(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:n(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:n(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:n(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:n(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:n(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:n(6258,e.DiagnosticCategory.Error,"_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"),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:n(6270,e.DiagnosticCategory.Message,"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:n(6271,e.DiagnosticCategory.Message,"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:n(6272,e.DiagnosticCategory.Message,"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:n(6273,e.DiagnosticCategory.Message,"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:n(6274,e.DiagnosticCategory.Message,"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:n(6275,e.DiagnosticCategory.Message,"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:n(6276,e.DiagnosticCategory.Message,"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}'."),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(6304,e.DiagnosticCategory.Error,"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:n(6305,e.DiagnosticCategory.Error,"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:n(6306,e.DiagnosticCategory.Error,"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:n(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:n(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:n(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:n(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:n(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:n(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:n(6352,e.DiagnosticCategory.Message,"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:n(6353,e.DiagnosticCategory.Message,"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:n(6354,e.DiagnosticCategory.Message,"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:n(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:n(6356,e.DiagnosticCategory.Message,"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:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:n(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:n(6362,e.DiagnosticCategory.Message,"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:n(6363,e.DiagnosticCategory.Message,"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:n(6364,e.DiagnosticCategory.Message,"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:n(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Show_what_would_be_built_or_deleted_if_specified_with_clean:n(6367,e.DiagnosticCategory.Message,"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:n(6369,e.DiagnosticCategory.Error,"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:n(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:n(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:n(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:n(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:n(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:n(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:n(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:n(6377,e.DiagnosticCategory.Error,"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}'"),Enable_incremental_compilation:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:n(6380,e.DiagnosticCategory.Message,"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:n(6381,e.DiagnosticCategory.Message,"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:n(6382,e.DiagnosticCategory.Message,"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:n(6383,e.DiagnosticCategory.Message,"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:n(6384,e.DiagnosticCategory.Message,"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:n(6385,e.DiagnosticCategory.Suggestion,"_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:n(6386,e.DiagnosticCategory.Message,"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:n(6387,e.DiagnosticCategory.Suggestion,"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:n(6388,e.DiagnosticCategory.Message,"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:n(6389,e.DiagnosticCategory.Message,"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:n(6390,e.DiagnosticCategory.Message,"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:n(6391,e.DiagnosticCategory.Message,"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:n(6392,e.DiagnosticCategory.Message,"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:n(6393,e.DiagnosticCategory.Message,"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:n(6394,e.DiagnosticCategory.Message,"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:n(6395,e.DiagnosticCategory.Message,"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:n(6396,e.DiagnosticCategory.Message,"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:n(6397,e.DiagnosticCategory.Message,"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:n(6398,e.DiagnosticCategory.Message,"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."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:n(6500,e.DiagnosticCategory.Message,"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:n(6501,e.DiagnosticCategory.Message,"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:n(6502,e.DiagnosticCategory.Message,"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:n(6503,e.DiagnosticCategory.Message,"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:n(6504,e.DiagnosticCategory.Error,"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:n(6505,e.DiagnosticCategory.Message,"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:n(6506,e.DiagnosticCategory.Message,"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:n(6600,e.DiagnosticCategory.Message,"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:n(6601,e.DiagnosticCategory.Message,"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:n(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:n(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:n(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:n(6605,e.DiagnosticCategory.Message,"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:n(6606,e.DiagnosticCategory.Message,"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:n(6607,e.DiagnosticCategory.Message,"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:n(6608,e.DiagnosticCategory.Message,"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:n(6609,e.DiagnosticCategory.Message,"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:n(6611,e.DiagnosticCategory.Message,"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:n(6612,e.DiagnosticCategory.Message,"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:n(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:n(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:n(6615,e.DiagnosticCategory.Message,"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:n(6616,e.DiagnosticCategory.Message,"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:n(6617,e.DiagnosticCategory.Message,"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:n(6618,e.DiagnosticCategory.Message,"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:n(6619,e.DiagnosticCategory.Message,"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:n(6620,e.DiagnosticCategory.Message,"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:n(6621,e.DiagnosticCategory.Message,"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:n(6622,e.DiagnosticCategory.Message,"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:n(6623,e.DiagnosticCategory.Message,"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:n(6624,e.DiagnosticCategory.Message,"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:n(6625,e.DiagnosticCategory.Message,"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:n(6626,e.DiagnosticCategory.Message,"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:n(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:n(6628,e.DiagnosticCategory.Message,"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:n(6629,e.DiagnosticCategory.Message,"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_TC39_stage_2_draft_decorators:n(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:n(6631,e.DiagnosticCategory.Message,"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:n(6632,e.DiagnosticCategory.Message,"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:n(6633,e.DiagnosticCategory.Message,"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:n(6634,e.DiagnosticCategory.Message,"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:n(6635,e.DiagnosticCategory.Message,"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:n(6636,e.DiagnosticCategory.Message,"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:n(6637,e.DiagnosticCategory.Message,"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:n(6638,e.DiagnosticCategory.Message,"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:n(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:n(6641,e.DiagnosticCategory.Message,"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:n(6642,e.DiagnosticCategory.Message,"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:n(6643,e.DiagnosticCategory.Message,"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:n(6644,e.DiagnosticCategory.Message,"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:n(6645,e.DiagnosticCategory.Message,"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:n(6646,e.DiagnosticCategory.Message,"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:n(6647,e.DiagnosticCategory.Message,"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:n(6648,e.DiagnosticCategory.Message,"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:n(6649,e.DiagnosticCategory.Message,"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:n(6650,e.DiagnosticCategory.Message,"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:n(6651,e.DiagnosticCategory.Message,"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:n(6652,e.DiagnosticCategory.Message,"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:n(6653,e.DiagnosticCategory.Message,"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:n(6654,e.DiagnosticCategory.Message,"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:n(6655,e.DiagnosticCategory.Message,"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:n(6656,e.DiagnosticCategory.Message,"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:n(6657,e.DiagnosticCategory.Message,"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:n(6658,e.DiagnosticCategory.Message,"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:n(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:n(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:n(6661,e.DiagnosticCategory.Message,"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:n(6662,e.DiagnosticCategory.Message,"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:n(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:n(6664,e.DiagnosticCategory.Message,"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:n(6665,e.DiagnosticCategory.Message,"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:n(6666,e.DiagnosticCategory.Message,"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:n(6667,e.DiagnosticCategory.Message,"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:n(6668,e.DiagnosticCategory.Message,"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:n(6669,e.DiagnosticCategory.Message,"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:n(6670,e.DiagnosticCategory.Message,"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:n(6671,e.DiagnosticCategory.Message,"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:n(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:n(6673,e.DiagnosticCategory.Message,"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:n(6674,e.DiagnosticCategory.Message,"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_a_local_variables_aren_t_read:n(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:n(6676,e.DiagnosticCategory.Message,"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:n(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:n(6678,e.DiagnosticCategory.Message,"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:n(6679,e.DiagnosticCategory.Message,"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:n(6680,e.DiagnosticCategory.Message,"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:n(6681,e.DiagnosticCategory.Message,"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:n(6682,e.DiagnosticCategory.Message,"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:n(6683,e.DiagnosticCategory.Message,"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:n(6684,e.DiagnosticCategory.Message,"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:n(6685,e.DiagnosticCategory.Message,"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:n(6686,e.DiagnosticCategory.Message,"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:n(6687,e.DiagnosticCategory.Message,"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:n(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:n(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:n(6690,e.DiagnosticCategory.Message,"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:n(6691,e.DiagnosticCategory.Message,"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:n(6692,e.DiagnosticCategory.Message,"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:n(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:n(6694,e.DiagnosticCategory.Message,"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:n(6695,e.DiagnosticCategory.Message,"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:n(6697,e.DiagnosticCategory.Message,"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:n(6698,e.DiagnosticCategory.Message,"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:n(6699,e.DiagnosticCategory.Message,"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:n(6700,e.DiagnosticCategory.Message,"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:n(6701,e.DiagnosticCategory.Message,"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:n(6702,e.DiagnosticCategory.Message,"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:n(6703,e.DiagnosticCategory.Message,"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:n(6704,e.DiagnosticCategory.Message,"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:n(6705,e.DiagnosticCategory.Message,"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:n(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:n(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:n(6709,e.DiagnosticCategory.Message,"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:n(6710,e.DiagnosticCategory.Message,"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:n(6711,e.DiagnosticCategory.Message,"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:n(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:n(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:n(6714,e.DiagnosticCategory.Message,"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:n(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:n(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:n(6717,e.DiagnosticCategory.Message,"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:n(6718,e.DiagnosticCategory.Message,"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"),Type_catch_clause_variables_as_unknown_instead_of_any:n(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:n(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:n(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:n(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:n(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:n(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:n(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:n(6906,e.DiagnosticCategory.Message,"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:n(6907,e.DiagnosticCategory.Message,"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:n(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:n(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:n(69010,e.DiagnosticCategory.Message,"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:n(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:n(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:n(6913,e.DiagnosticCategory.Message,"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:n(6914,e.DiagnosticCategory.Message,"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:n(6915,e.DiagnosticCategory.Message,"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:n(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:n(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:n(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:n(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:n(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:n(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:n(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:n(6923,e.DiagnosticCategory.Message,"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:n(6924,e.DiagnosticCategory.Message,"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:n(6925,e.DiagnosticCategory.Message,"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:n(6926,e.DiagnosticCategory.Message,"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:n(6927,e.DiagnosticCategory.Message,"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:n(6928,e.DiagnosticCategory.Message,"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:n(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:n(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),Variable_0_implicitly_has_an_1_type:n(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:n(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:n(7008,e.DiagnosticCategory.Error,"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:n(7009,e.DiagnosticCategory.Error,"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:n(7010,e.DiagnosticCategory.Error,"_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:n(7011,e.DiagnosticCategory.Error,"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."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:n(7013,e.DiagnosticCategory.Error,"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:n(7014,e.DiagnosticCategory.Error,"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:n(7015,e.DiagnosticCategory.Error,"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:n(7016,e.DiagnosticCategory.Error,"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:n(7017,e.DiagnosticCategory.Error,"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:n(7018,e.DiagnosticCategory.Error,"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:n(7019,e.DiagnosticCategory.Error,"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:n(7020,e.DiagnosticCategory.Error,"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:n(7022,e.DiagnosticCategory.Error,"_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:n(7023,e.DiagnosticCategory.Error,"_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:n(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:n(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:n(7026,e.DiagnosticCategory.Error,"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:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:n(7031,e.DiagnosticCategory.Error,"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:n(7032,e.DiagnosticCategory.Error,"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:n(7033,e.DiagnosticCategory.Error,"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:n(7034,e.DiagnosticCategory.Error,"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:n(7035,e.DiagnosticCategory.Error,"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:n(7036,e.DiagnosticCategory.Error,"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:n(7037,e.DiagnosticCategory.Message,"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:n(7038,e.DiagnosticCategory.Message,"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:n(7039,e.DiagnosticCategory.Error,"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:n(7040,e.DiagnosticCategory.Error,"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:n(7041,e.DiagnosticCategory.Error,"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:n(7042,e.DiagnosticCategory.Error,"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:n(7043,e.DiagnosticCategory.Suggestion,"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:n(7044,e.DiagnosticCategory.Suggestion,"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:n(7045,e.DiagnosticCategory.Suggestion,"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:n(7046,e.DiagnosticCategory.Suggestion,"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:n(7047,e.DiagnosticCategory.Suggestion,"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:n(7048,e.DiagnosticCategory.Suggestion,"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:n(7049,e.DiagnosticCategory.Suggestion,"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:n(7050,e.DiagnosticCategory.Suggestion,"_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:n(7051,e.DiagnosticCategory.Error,"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:n(7052,e.DiagnosticCategory.Error,"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:n(7053,e.DiagnosticCategory.Error,"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:n(7054,e.DiagnosticCategory.Error,"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:n(7055,e.DiagnosticCategory.Error,"_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:n(7056,e.DiagnosticCategory.Error,"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:n(7057,e.DiagnosticCategory.Error,"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:n(7058,e.DiagnosticCategory.Error,"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:n(7059,e.DiagnosticCategory.Error,"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:n(7060,e.DiagnosticCategory.Error,"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:n(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),JSON_imports_are_experimental_in_ES_module_mode_imports:n(7062,e.DiagnosticCategory.Error,"JSON_imports_are_experimental_in_ES_module_mode_imports_7062","JSON imports are experimental in ES module mode imports."),You_cannot_rename_this_element:n(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:n(8001,e.DiagnosticCategory.Error,"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:n(8002,e.DiagnosticCategory.Error,"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:n(8003,e.DiagnosticCategory.Error,"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:n(8004,e.DiagnosticCategory.Error,"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:n(8005,e.DiagnosticCategory.Error,"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:n(8006,e.DiagnosticCategory.Error,"_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:n(8008,e.DiagnosticCategory.Error,"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:n(8009,e.DiagnosticCategory.Error,"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:n(8010,e.DiagnosticCategory.Error,"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:n(8011,e.DiagnosticCategory.Error,"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:n(8012,e.DiagnosticCategory.Error,"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:n(8013,e.DiagnosticCategory.Error,"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:n(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:n(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:n(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(8020,e.DiagnosticCategory.Error,"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:n(8021,e.DiagnosticCategory.Error,"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:n(8022,e.DiagnosticCategory.Error,"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:n(8023,e.DiagnosticCategory.Error,"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:n(8024,e.DiagnosticCategory.Error,"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:n(8025,e.DiagnosticCategory.Error,"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:n(8026,e.DiagnosticCategory.Error,"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:n(8027,e.DiagnosticCategory.Error,"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:n(8028,e.DiagnosticCategory.Error,"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:n(8029,e.DiagnosticCategory.Error,"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:n(8030,e.DiagnosticCategory.Error,"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:n(8031,e.DiagnosticCategory.Error,"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:n(8032,e.DiagnosticCategory.Error,"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:n(8033,e.DiagnosticCategory.Error,"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:n(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:n(9005,e.DiagnosticCategory.Error,"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:n(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:n(17e3,e.DiagnosticCategory.Error,"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:n(17001,e.DiagnosticCategory.Error,"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:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(17004,e.DiagnosticCategory.Error,"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:n(17005,e.DiagnosticCategory.Error,"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:n(17006,e.DiagnosticCategory.Error,"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:n(17007,e.DiagnosticCategory.Error,"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:n(17008,e.DiagnosticCategory.Error,"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:n(17009,e.DiagnosticCategory.Error,"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:n(17010,e.DiagnosticCategory.Error,"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:n(17011,e.DiagnosticCategory.Error,"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:n(17012,e.DiagnosticCategory.Error,"_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:n(17013,e.DiagnosticCategory.Error,"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:n(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:n(17015,e.DiagnosticCategory.Error,"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:n(17016,e.DiagnosticCategory.Error,"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:n(17017,e.DiagnosticCategory.Error,"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:n(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:n(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:n(18002,e.DiagnosticCategory.Error,"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:n(18003,e.DiagnosticCategory.Error,"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:n(80001,e.DiagnosticCategory.Suggestion,"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:n(80002,e.DiagnosticCategory.Suggestion,"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:n(80003,e.DiagnosticCategory.Suggestion,"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:n(80004,e.DiagnosticCategory.Suggestion,"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:n(80005,e.DiagnosticCategory.Suggestion,"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:n(80006,e.DiagnosticCategory.Suggestion,"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:n(80007,e.DiagnosticCategory.Suggestion,"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:n(80008,e.DiagnosticCategory.Suggestion,"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."),Add_missing_super_call:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032",`Import default '{0}' from module "{1}"`),Add_default_import_0_to_existing_import_declaration_from_1:n(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033",`Add default import '{0}' to existing import declaration from "{1}"`),Add_parameter_name:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:n(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:n(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:n(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:n(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:n(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:n(95030,e.DiagnosticCategory.Message,"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:n(95031,e.DiagnosticCategory.Message,"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:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:n(95036,e.DiagnosticCategory.Message,"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:n(95037,e.DiagnosticCategory.Message,"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:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:n(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:n(95070,e.DiagnosticCategory.Message,"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:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:n(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:n(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:n(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(95097,e.DiagnosticCategory.Message,"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:n(95098,e.DiagnosticCategory.Message,"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:n(95099,e.DiagnosticCategory.Message,"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:n(95100,e.DiagnosticCategory.Message,"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:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:n(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:n(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file:n(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(95112,e.DiagnosticCategory.Message,"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:n(95113,e.DiagnosticCategory.Message,"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:n(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:n(95115,e.DiagnosticCategory.Message,"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:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:n(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:n(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:n(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:n(95134,e.DiagnosticCategory.Message,"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:n(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:n(95143,e.DiagnosticCategory.Message,"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:n(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:n(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:n(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:n(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:n(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:n(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:n(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:n(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:n(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:n(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:n(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:n(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:n(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:n(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:n(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:n(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:n(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:n(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:n(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:n(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:n(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:n(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:n(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:n(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:n(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:n(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(18004,e.DiagnosticCategory.Error,"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:n(18006,e.DiagnosticCategory.Error,"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:n(18007,e.DiagnosticCategory.Error,"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:n(18009,e.DiagnosticCategory.Error,"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:n(18010,e.DiagnosticCategory.Error,"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:n(18011,e.DiagnosticCategory.Error,"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:n(18012,e.DiagnosticCategory.Error,"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:n(18013,e.DiagnosticCategory.Error,"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:n(18014,e.DiagnosticCategory.Error,"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:n(18015,e.DiagnosticCategory.Error,"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:n(18016,e.DiagnosticCategory.Error,"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:n(18017,e.DiagnosticCategory.Error,"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:n(18018,e.DiagnosticCategory.Error,"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:n(18019,e.DiagnosticCategory.Error,"_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:n(18024,e.DiagnosticCategory.Error,"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:n(18026,e.DiagnosticCategory.Error,"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:n(18027,e.DiagnosticCategory.Error,"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:n(18028,e.DiagnosticCategory.Error,"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:n(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:n(18030,e.DiagnosticCategory.Error,"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:n(18031,e.DiagnosticCategory.Error,"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:n(18032,e.DiagnosticCategory.Error,"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."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:n(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:n(18034,e.DiagnosticCategory.Message,"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:n(18035,e.DiagnosticCategory.Error,"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:n(18036,e.DiagnosticCategory.Error,"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:n(18037,e.DiagnosticCategory.Error,"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:n(18038,e.DiagnosticCategory.Error,"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:n(18039,e.DiagnosticCategory.Error,"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:n(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}})(mr||(mr={}));var mr;(function(e){var n;function c(ve){return ve>=79}e.tokenIsIdentifierOrKeyword=c;function u(ve){return ve===31||c(ve)}e.tokenIsIdentifierOrKeywordOrGreaterThan=u,e.textToKeywordObj=(n={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:157,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85},n.constructor=134,n.debugger=87,n.declare=135,n.default=88,n.delete=89,n.do=90,n.else=91,n.enum=92,n.export=93,n.extends=94,n.false=95,n.finally=96,n.for=97,n.from=155,n.function=98,n.get=136,n.if=99,n.implements=117,n.import=100,n.in=101,n.infer=137,n.instanceof=102,n.interface=118,n.intrinsic=138,n.is=139,n.keyof=140,n.let=119,n.module=141,n.namespace=142,n.never=143,n.new=103,n.null=104,n.number=146,n.object=147,n.package=120,n.private=121,n.protected=122,n.public=123,n.override=158,n.readonly=144,n.require=145,n.global=156,n.return=105,n.set=148,n.static=124,n.string=149,n.super=106,n.switch=107,n.symbol=150,n.this=108,n.throw=109,n.true=110,n.try=111,n.type=151,n.typeof=112,n.undefined=152,n.unique=153,n.unknown=154,n.var=113,n.void=114,n.while=115,n.with=116,n.yield=125,n.async=131,n.await=132,n.of=159,n);var g=new e.Map(e.getEntries(e.textToKeywordObj)),p=new e.Map(e.getEntries(kn(kn({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),I=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],V=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],L=[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],m=[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],y=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],j=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],te=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,E=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function F(ve,Ve){if(ve<Ve[0])return!1;for(var gr=0,Er=Ve.length,Nr;gr+1<Er;){if(Nr=gr+(Er-gr)/2,Nr-=Nr%2,Ve[Nr]<=ve&&ve<=Ve[Nr+1])return!0;ve<Ve[Nr]?Er=Nr:gr=Nr+2}return!1}function $(ve,Ve){return Ve>=2?F(ve,y):Ve===1?F(ve,L):F(ve,I)}e.isUnicodeIdentifierStart=$;function C(ve,Ve){return Ve>=2?F(ve,j):Ve===1?F(ve,m):F(ve,V)}function K(ve){var Ve=[];return ve.forEach(function(gr,Er){Ve[gr]=Er}),Ve}var k=K(p);function X(ve){return k[ve]}e.tokenToString=X;function O(ve){return p.get(ve)}e.stringToToken=O;function x(ve){for(var Ve=new Array,gr=0,Er=0;gr<ve.length;){var Nr=ve.charCodeAt(gr);switch(gr++,Nr){case 13:ve.charCodeAt(gr)===10&&gr++;case 10:Ve.push(Er),Er=gr;break;default:Nr>127&&d(Nr)&&(Ve.push(Er),Er=gr);break}}return Ve.push(Er),Ve}e.computeLineStarts=x;function ie(ve,Ve,gr,Er){return ve.getPositionOfLineAndCharacter?ve.getPositionOfLineAndCharacter(Ve,gr,Er):Z(re(ve),Ve,gr,ve.text,Er)}e.getPositionOfLineAndCharacter=ie;function Z(ve,Ve,gr,Er,Nr){(Ve<0||Ve>=ve.length)&&(Nr?Ve=Ve<0?0:Ve>=ve.length?ve.length-1:Ve:e.Debug.fail("Bad line number. Line: ".concat(Ve,", lineStarts.length: ").concat(ve.length," , line map is correct? ").concat(Er!==void 0?e.arraysEqual(ve,x(Er)):"unknown")));var ur=ve[Ve]+gr;return Nr?ur>ve[Ve+1]?ve[Ve+1]:typeof Er=="string"&&ur>Er.length?Er.length:ur:(Ve<ve.length-1?e.Debug.assert(ur<ve[Ve+1]):Er!==void 0&&e.Debug.assert(ur<=Er.length),ur)}e.computePositionOfLineAndCharacter=Z;function re(ve){return ve.lineMap||(ve.lineMap=x(ve.text))}e.getLineStarts=re;function q(ve,Ve){var gr=P(ve,Ve);return{line:gr,character:Ve-ve[gr]}}e.computeLineAndCharacterOfPosition=q;function P(ve,Ve,gr){var Er=e.binarySearch(ve,Ve,e.identity,e.compareValues,gr);return Er<0&&(Er=~Er-1,e.Debug.assert(Er!==-1,"position cannot precede the beginning of the file")),Er}e.computeLineOfPosition=P;function M(ve,Ve,gr){if(Ve===gr)return 0;var Er=re(ve),Nr=Math.min(Ve,gr),ur=Nr===gr,xr=ur?Ve:gr,sr=P(Er,Nr),i=P(Er,xr,sr);return ur?sr-i:i-sr}e.getLinesBetweenPositions=M;function Q(ve,Ve){return q(re(ve),Ve)}e.getLineAndCharacterOfPosition=Q;function H(ve){return w(ve)||d(ve)}e.isWhiteSpaceLike=H;function w(ve){return ve===32||ve===9||ve===11||ve===12||ve===160||ve===133||ve===5760||ve>=8192&&ve<=8203||ve===8239||ve===8287||ve===12288||ve===65279}e.isWhiteSpaceSingleLine=w;function d(ve){return ve===10||ve===13||ve===8232||ve===8233}e.isLineBreak=d;function B(ve){return ve>=48&&ve<=57}function T(ve){return B(ve)||ve>=65&&ve<=70||ve>=97&&ve<=102}function _(ve){return ve<=1114111}function h(ve){return ve>=48&&ve<=55}e.isOctalDigit=h;function R(ve,Ve){var gr=ve.charCodeAt(Ve);switch(gr){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 Ve===0;default:return gr>127}}e.couldStartTrivia=R;function b(ve,Ve,gr,Er,Nr){if(e.positionIsSynthesized(Ve))return Ve;for(var ur=!1;;){var xr=ve.charCodeAt(Ve);switch(xr){case 13:ve.charCodeAt(Ve+1)===10&&Ve++;case 10:if(Ve++,gr)return Ve;ur=!!Nr;continue;case 9:case 11:case 12:case 32:Ve++;continue;case 47:if(Er)break;if(ve.charCodeAt(Ve+1)===47){for(Ve+=2;Ve<ve.length&&!d(ve.charCodeAt(Ve));)Ve++;ur=!1;continue}if(ve.charCodeAt(Ve+1)===42){for(Ve+=2;Ve<ve.length;){if(ve.charCodeAt(Ve)===42&&ve.charCodeAt(Ve+1)===47){Ve+=2;break}Ve++}ur=!1;continue}break;case 60:case 124:case 61:case 62:if(Y(ve,Ve)){Ve=pe(ve,Ve),ur=!1;continue}break;case 35:if(Ve===0&&_e(ve,Ve)){Ve=Se(ve,Ve),ur=!1;continue}break;case 42:if(ur){Ve++,ur=!1;continue}break;default:if(xr>127&&H(xr)){Ve++;continue}break}return Ve}}e.skipTrivia=b;var G=7;function Y(ve,Ve){if(e.Debug.assert(Ve>=0),Ve===0||d(ve.charCodeAt(Ve-1))){var gr=ve.charCodeAt(Ve);if(Ve+G<ve.length){for(var Er=0;Er<G;Er++)if(ve.charCodeAt(Ve+Er)!==gr)return!1;return gr===61||ve.charCodeAt(Ve+G)===32}}return!1}function pe(ve,Ve,gr){gr&&gr(e.Diagnostics.Merge_conflict_marker_encountered,Ve,G);var Er=ve.charCodeAt(Ve),Nr=ve.length;if(Er===60||Er===62)for(;Ve<Nr&&!d(ve.charCodeAt(Ve));)Ve++;else for(e.Debug.assert(Er===124||Er===61);Ve<Nr;){var ur=ve.charCodeAt(Ve);if((ur===61||ur===62)&&ur!==Er&&Y(ve,Ve))break;Ve++}return Ve}var A=/^#!.*/;function _e(ve,Ve){return e.Debug.assert(Ve===0),A.test(ve)}e.isShebangTrivia=_e;function Se(ve,Ve){var gr=A.exec(ve)[0];return Ve=Ve+gr.length,Ve}e.scanShebangTrivia=Se;function ae(ve,Ve,gr,Er,Nr,ur,xr){var sr,i,Mr,fr,Ar=!1,de=Er,we=xr;if(gr===0){de=!0;var qe=Ke(Ve);qe&&(gr=qe.length)}e:for(;gr>=0&&gr<Ve.length;){var Cr=Ve.charCodeAt(gr);switch(Cr){case 13:Ve.charCodeAt(gr+1)===10&&gr++;case 10:if(gr++,Er)break e;de=!0,Ar&&(fr=!0);continue;case 9:case 11:case 12:case 32:gr++;continue;case 47:var kr=Ve.charCodeAt(gr+1),He=!1;if(kr===47||kr===42){var lr=kr===47?2:3,Hr=gr;if(gr+=2,kr===47)for(;gr<Ve.length;){if(d(Ve.charCodeAt(gr))){He=!0;break}gr++}else for(;gr<Ve.length;){if(Ve.charCodeAt(gr)===42&&Ve.charCodeAt(gr+1)===47){gr+=2;break}gr++}if(de){if(Ar&&(we=Nr(sr,i,Mr,fr,ur,we),!ve&&we))return we;sr=Hr,i=gr,Mr=lr,fr=He,Ar=!0}continue}break e;default:if(Cr>127&&H(Cr)){Ar&&d(Cr)&&(fr=!0),gr++;continue}break e}}return Ar&&(we=Nr(sr,i,Mr,fr,ur,we)),we}function D(ve,Ve,gr,Er){return ae(!1,ve,Ve,!1,gr,Er)}e.forEachLeadingCommentRange=D;function be(ve,Ve,gr,Er){return ae(!1,ve,Ve,!0,gr,Er)}e.forEachTrailingCommentRange=be;function ne(ve,Ve,gr,Er,Nr){return ae(!0,ve,Ve,!1,gr,Er,Nr)}e.reduceEachLeadingCommentRange=ne;function J(ve,Ve,gr,Er,Nr){return ae(!0,ve,Ve,!0,gr,Er,Nr)}e.reduceEachTrailingCommentRange=J;function le(ve,Ve,gr,Er,Nr,ur){return ur||(ur=[]),ur.push({kind:gr,pos:ve,end:Ve,hasTrailingNewLine:Er}),ur}function Te(ve,Ve){return ne(ve,Ve,le,void 0,void 0)}e.getLeadingCommentRanges=Te;function Me(ve,Ve){return J(ve,Ve,le,void 0,void 0)}e.getTrailingCommentRanges=Me;function Ke(ve){var Ve=A.exec(ve);if(Ve)return Ve[0]}e.getShebang=Ke;function Ae(ve,Ve){return ve>=65&&ve<=90||ve>=97&&ve<=122||ve===36||ve===95||ve>127&&$(ve,Ve)}e.isIdentifierStart=Ae;function Ge(ve,Ve,gr){return ve>=65&&ve<=90||ve>=97&&ve<=122||ve>=48&&ve<=57||ve===36||ve===95||(gr===1?ve===45||ve===58:!1)||ve>127&&C(ve,Ve)}e.isIdentifierPart=Ge;function se(ve,Ve,gr){var Er=Re(ve,0);if(!Ae(Er,Ve))return!1;for(var Nr=ce(Er);Nr<ve.length;Nr+=ce(Er))if(!Ge(Er=Re(ve,Nr),Ve,gr))return!1;return!0}e.isIdentifierText=se;function xe(ve,Ve,gr,Er,Nr,ur,xr){gr===void 0&&(gr=0);var sr=Er,i,Mr,fr,Ar,de,we,qe,Cr,kr=0;Pn(sr,ur,xr);var He={getStartPos:function(){return fr},getTextPos:function(){return i},getToken:function(){return de},getTokenPos:function(){return Ar},getTokenText:function(){return sr.substring(Ar,i)},getTokenValue:function(){return we},hasUnicodeEscape:function(){return(qe&1024)!==0},hasExtendedUnicodeEscape:function(){return(qe&8)!==0},hasPrecedingLineBreak:function(){return(qe&1)!==0},hasPrecedingJSDocComment:function(){return(qe&2)!==0},isIdentifier:function(){return de===79||de>116},isReservedWord:function(){return de>=81&&de<=116},isUnterminated:function(){return(qe&4)!==0},getCommentDirectives:function(){return Cr},getNumericLiteralFlags:function(){return qe&1008},getTokenFlags:function(){return qe},reScanGreaterToken:De,reScanAsteriskEqualsToken:z,reScanSlashToken:ke,reScanTemplateToken:Qe,reScanTemplateHeadOrNoSubstitutionTemplate:Ir,scanJsxIdentifier:zr,scanJsxAttributeValue:ut,reScanJsxAttributeValue:mt,reScanJsxToken:Jr,reScanLessThanToken:Or,reScanHashToken:Be,reScanQuestionToken:yr,reScanInvalidIdentifier:cr,scanJsxToken:Rr,scanJsDocToken:Lt,scan:Ce,getText:st,clearCommentDirectives:$t,setText:Pn,setScriptTarget:ia,setLanguageVariant:pa,setOnError:Ea,setTextPos:Gn,setInJSDocType:nn,tryScan:Xt,lookAhead:Nt,scanRange:pt};return e.Debug.isDebugging&&Object.defineProperty(He,"__debugShowCurrentPositionInText",{get:function(){var bt=He.getText();return bt.slice(0,He.getStartPos())+"\u2551"+bt.slice(He.getStartPos())}}),He;function lr(bt,Ut,Kt){if(Ut===void 0&&(Ut=i),Nr){var bn=i;i=Ut,Nr(bt,Kt||0),i=bn}}function Hr(){for(var bt=i,Ut=!1,Kt=!1,bn="";;){var wn=sr.charCodeAt(i);if(wn===95){qe|=512,Ut?(Ut=!1,Kt=!0,bn+=sr.substring(bt,i)):lr(Kt?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,i,1),i++,bt=i;continue}if(B(wn)){Ut=!0,Kt=!1,i++;continue}break}return sr.charCodeAt(i-1)===95&&lr(e.Diagnostics.Numeric_separators_are_not_allowed_here,i-1,1),bn+sr.substring(bt,i)}function Je(){var bt=i,Ut=Hr(),Kt,bn;sr.charCodeAt(i)===46&&(i++,Kt=Hr());var wn=i;if(sr.charCodeAt(i)===69||sr.charCodeAt(i)===101){i++,qe|=16,(sr.charCodeAt(i)===43||sr.charCodeAt(i)===45)&&i++;var ra=i,ft=Hr();ft?(bn=sr.substring(wn,ra)+ft,wn=i):lr(e.Diagnostics.Digit_expected)}var Ct;if(qe&512?(Ct=Ut,Kt&&(Ct+="."+Kt),bn&&(Ct+=bn)):Ct=sr.substring(bt,wn),Kt!==void 0||qe&16)return Sr(bt,Kt===void 0&&!!(qe&16)),{type:8,value:""+ +Ct};we=Ct;var Pt=Lr();return Sr(bt),{type:Pt,value:we}}function Sr(bt,Ut){if(!!Ae(Re(sr,i),ve)){var Kt=i,bn=ge().length;bn===1&&sr[Kt]==="n"?lr(Ut?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,bt,Kt-bt+1):(lr(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Kt,bn),i=Kt)}}function Yr(){for(var bt=i;h(sr.charCodeAt(i));)i++;return+sr.substring(bt,i)}function ot(bt,Ut){var Kt=kt(bt,!1,Ut);return Kt?parseInt(Kt,16):-1}function _t(bt,Ut){return kt(bt,!0,Ut)}function kt(bt,Ut,Kt){for(var bn=[],wn=!1,ra=!1;bn.length<bt||Ut;){var ft=sr.charCodeAt(i);if(Kt&&ft===95){qe|=512,wn?(wn=!1,ra=!0):lr(ra?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,i,1),i++;continue}if(wn=Kt,ft>=65&&ft<=70)ft+=32;else if(!(ft>=48&&ft<=57||ft>=97&&ft<=102))break;bn.push(ft),i++,ra=!1}return bn.length<bt&&(bn=[]),sr.charCodeAt(i-1)===95&&lr(e.Diagnostics.Numeric_separators_are_not_allowed_here,i-1,1),String.fromCharCode.apply(String,bn)}function Yt(bt){bt===void 0&&(bt=!1);var Ut=sr.charCodeAt(i);i++;for(var Kt="",bn=i;;){if(i>=Mr){Kt+=sr.substring(bn,i),qe|=4,lr(e.Diagnostics.Unterminated_string_literal);break}var wn=sr.charCodeAt(i);if(wn===Ut){Kt+=sr.substring(bn,i),i++;break}if(wn===92&&!bt){Kt+=sr.substring(bn,i),Kt+=Mn(),bn=i;continue}if(d(wn)&&!bt){Kt+=sr.substring(bn,i),qe|=4,lr(e.Diagnostics.Unterminated_string_literal);break}i++}return Kt}function vn(bt){var Ut=sr.charCodeAt(i)===96;i++;for(var Kt=i,bn="",wn;;){if(i>=Mr){bn+=sr.substring(Kt,i),qe|=4,lr(e.Diagnostics.Unterminated_template_literal),wn=Ut?14:17;break}var ra=sr.charCodeAt(i);if(ra===96){bn+=sr.substring(Kt,i),i++,wn=Ut?14:17;break}if(ra===36&&i+1<Mr&&sr.charCodeAt(i+1)===123){bn+=sr.substring(Kt,i),i+=2,wn=Ut?15:16;break}if(ra===92){bn+=sr.substring(Kt,i),bn+=Mn(bt),Kt=i;continue}if(ra===13){bn+=sr.substring(Kt,i),i++,i<Mr&&sr.charCodeAt(i)===10&&i++,bn+=`
`,Kt=i;continue}i++}return e.Debug.assert(wn!==void 0),we=bn,wn}function Mn(bt){var Ut=i;if(i++,i>=Mr)return lr(e.Diagnostics.Unexpected_end_of_text),"";var Kt=sr.charCodeAt(i);switch(i++,Kt){case 48:return bt&&i<Mr&&B(sr.charCodeAt(i))?(i++,qe|=2048,sr.substring(Ut,i)):"\0";case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(bt){for(var bn=i;bn<i+4;bn++)if(bn<Mr&&!T(sr.charCodeAt(bn))&&sr.charCodeAt(bn)!==123)return i=bn,qe|=2048,sr.substring(Ut,i)}if(i<Mr&&sr.charCodeAt(i)===123){if(i++,bt&&!T(sr.charCodeAt(i)))return qe|=2048,sr.substring(Ut,i);if(bt){var wn=i,ra=_t(1,!1),ft=ra?parseInt(ra,16):-1;if(!_(ft)||sr.charCodeAt(i)!==125)return qe|=2048,sr.substring(Ut,i);i=wn}return qe|=8,nr()}return qe|=1024,qn(4);case 120:if(bt)if(T(sr.charCodeAt(i))){if(!T(sr.charCodeAt(i+1)))return i++,qe|=2048,sr.substring(Ut,i)}else return qe|=2048,sr.substring(Ut,i);return qn(2);case 13:i<Mr&&sr.charCodeAt(i)===10&&i++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(Kt)}}function qn(bt){var Ut=ot(bt,!1);return Ut>=0?String.fromCharCode(Ut):(lr(e.Diagnostics.Hexadecimal_digit_expected),"")}function nr(){var bt=_t(1,!1),Ut=bt?parseInt(bt,16):-1,Kt=!1;return Ut<0?(lr(e.Diagnostics.Hexadecimal_digit_expected),Kt=!0):Ut>1114111&&(lr(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Kt=!0),i>=Mr?(lr(e.Diagnostics.Unexpected_end_of_text),Kt=!0):sr.charCodeAt(i)===125?i++:(lr(e.Diagnostics.Unterminated_Unicode_escape_sequence),Kt=!0),Kt?"":Ne(Ut)}function Zr(){if(i+5<Mr&&sr.charCodeAt(i+1)===117){var bt=i;i+=2;var Ut=ot(4,!1);return i=bt,Ut}return-1}function ir(){if(ve>=2&&Re(sr,i+1)===117&&Re(sr,i+2)===123){var bt=i;i+=3;var Ut=_t(1,!1),Kt=Ut?parseInt(Ut,16):-1;return i=bt,Kt}return-1}function ge(){for(var bt="",Ut=i;i<Mr;){var Kt=Re(sr,i);if(Ge(Kt,ve))i+=ce(Kt);else if(Kt===92){if(Kt=ir(),Kt>=0&&Ge(Kt,ve)){i+=3,qe|=8,bt+=nr(),Ut=i;continue}if(Kt=Zr(),!(Kt>=0&&Ge(Kt,ve)))break;qe|=1024,bt+=sr.substring(Ut,i),bt+=Ne(Kt),i+=6,Ut=i}else break}return bt+=sr.substring(Ut,i),bt}function rr(){var bt=we.length;if(bt>=2&&bt<=12){var Ut=we.charCodeAt(0);if(Ut>=97&&Ut<=122){var Kt=g.get(we);if(Kt!==void 0)return de=Kt}}return de=79}function pr(bt){for(var Ut="",Kt=!1,bn=!1;;){var wn=sr.charCodeAt(i);if(wn===95){qe|=512,Kt?(Kt=!1,bn=!0):lr(bn?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,i,1),i++;continue}if(Kt=!0,!B(wn)||wn-48>=bt)break;Ut+=sr[i],i++,bn=!1}return sr.charCodeAt(i-1)===95&&lr(e.Diagnostics.Numeric_separators_are_not_allowed_here,i-1,1),Ut}function Lr(){if(sr.charCodeAt(i)===110)return we+="n",qe&384&&(we=e.parsePseudoBigInt(we)+"n"),i++,9;var bt=qe&128?parseInt(we.slice(2),2):qe&256?parseInt(we.slice(2),8):+we;return we=""+bt,8}function Ce(){var bt;fr=i,qe=0;for(var Ut=!1;;){if(Ar=i,i>=Mr)return de=1;var Kt=Re(sr,i);if(Kt===35&&i===0&&_e(sr,i)){if(i=Se(sr,i),Ve)continue;return de=6}switch(Kt){case 10:case 13:if(qe|=1,Ve){i++;continue}else return Kt===13&&i+1<Mr&&sr.charCodeAt(i+1)===10?i+=2:i++,de=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(Ve){i++;continue}else{for(;i<Mr&&w(sr.charCodeAt(i));)i++;return de=5}case 33:return sr.charCodeAt(i+1)===61?sr.charCodeAt(i+2)===61?(i+=3,de=37):(i+=2,de=35):(i++,de=53);case 34:case 39:return we=Yt(),de=10;case 96:return de=vn(!1);case 37:return sr.charCodeAt(i+1)===61?(i+=2,de=69):(i++,de=44);case 38:return sr.charCodeAt(i+1)===38?sr.charCodeAt(i+2)===61?(i+=3,de=76):(i+=2,de=55):sr.charCodeAt(i+1)===61?(i+=2,de=73):(i++,de=50);case 40:return i++,de=20;case 41:return i++,de=21;case 42:if(sr.charCodeAt(i+1)===61)return i+=2,de=66;if(sr.charCodeAt(i+1)===42)return sr.charCodeAt(i+2)===61?(i+=3,de=67):(i+=2,de=42);if(i++,kr&&!Ut&&qe&1){Ut=!0;continue}return de=41;case 43:return sr.charCodeAt(i+1)===43?(i+=2,de=45):sr.charCodeAt(i+1)===61?(i+=2,de=64):(i++,de=39);case 44:return i++,de=27;case 45:return sr.charCodeAt(i+1)===45?(i+=2,de=46):sr.charCodeAt(i+1)===61?(i+=2,de=65):(i++,de=40);case 46:return B(sr.charCodeAt(i+1))?(we=Je().value,de=8):sr.charCodeAt(i+1)===46&&sr.charCodeAt(i+2)===46?(i+=3,de=25):(i++,de=24);case 47:if(sr.charCodeAt(i+1)===47){for(i+=2;i<Mr&&!d(sr.charCodeAt(i));)i++;if(Cr=dr(Cr,sr.slice(Ar,i),te,Ar),Ve)continue;return de=2}if(sr.charCodeAt(i+1)===42){i+=2,sr.charCodeAt(i)===42&&sr.charCodeAt(i+1)!==47&&(qe|=2);for(var bn=!1,wn=Ar;i<Mr;){var ra=sr.charCodeAt(i);if(ra===42&&sr.charCodeAt(i+1)===47){i+=2,bn=!0;break}i++,d(ra)&&(wn=i,qe|=1)}if(Cr=dr(Cr,sr.slice(wn,i),E,wn),bn||lr(e.Diagnostics.Asterisk_Slash_expected),Ve)continue;return bn||(qe|=4),de=3}return sr.charCodeAt(i+1)===61?(i+=2,de=68):(i++,de=43);case 48:if(i+2<Mr&&(sr.charCodeAt(i+1)===88||sr.charCodeAt(i+1)===120))return i+=2,we=_t(1,!0),we||(lr(e.Diagnostics.Hexadecimal_digit_expected),we="0"),we="0x"+we,qe|=64,de=Lr();if(i+2<Mr&&(sr.charCodeAt(i+1)===66||sr.charCodeAt(i+1)===98))return i+=2,we=pr(2),we||(lr(e.Diagnostics.Binary_digit_expected),we="0"),we="0b"+we,qe|=128,de=Lr();if(i+2<Mr&&(sr.charCodeAt(i+1)===79||sr.charCodeAt(i+1)===111))return i+=2,we=pr(8),we||(lr(e.Diagnostics.Octal_digit_expected),we="0"),we="0o"+we,qe|=256,de=Lr();if(i+1<Mr&&h(sr.charCodeAt(i+1)))return we=""+Yr(),qe|=32,de=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return bt=Je(),de=bt.type,we=bt.value,de;case 58:return i++,de=58;case 59:return i++,de=26;case 60:if(Y(sr,i)){if(i=pe(sr,i,lr),Ve)continue;return de=7}return sr.charCodeAt(i+1)===60?sr.charCodeAt(i+2)===61?(i+=3,de=70):(i+=2,de=47):sr.charCodeAt(i+1)===61?(i+=2,de=32):gr===1&&sr.charCodeAt(i+1)===47&&sr.charCodeAt(i+2)!==42?(i+=2,de=30):(i++,de=29);case 61:if(Y(sr,i)){if(i=pe(sr,i,lr),Ve)continue;return de=7}return sr.charCodeAt(i+1)===61?sr.charCodeAt(i+2)===61?(i+=3,de=36):(i+=2,de=34):sr.charCodeAt(i+1)===62?(i+=2,de=38):(i++,de=63);case 62:if(Y(sr,i)){if(i=pe(sr,i,lr),Ve)continue;return de=7}return i++,de=31;case 63:return sr.charCodeAt(i+1)===46&&!B(sr.charCodeAt(i+2))?(i+=2,de=28):sr.charCodeAt(i+1)===63?sr.charCodeAt(i+2)===61?(i+=3,de=77):(i+=2,de=60):(i++,de=57);case 91:return i++,de=22;case 93:return i++,de=23;case 94:return sr.charCodeAt(i+1)===61?(i+=2,de=78):(i++,de=52);case 123:return i++,de=18;case 124:if(Y(sr,i)){if(i=pe(sr,i,lr),Ve)continue;return de=7}return sr.charCodeAt(i+1)===124?sr.charCodeAt(i+2)===61?(i+=3,de=75):(i+=2,de=56):sr.charCodeAt(i+1)===61?(i+=2,de=74):(i++,de=51);case 125:return i++,de=19;case 126:return i++,de=54;case 64:return i++,de=59;case 92:var ft=ir();if(ft>=0&&Ae(ft,ve))return i+=3,qe|=8,we=nr()+ge(),de=rr();var Ct=Zr();return Ct>=0&&Ae(Ct,ve)?(i+=6,qe|=1024,we=String.fromCharCode(Ct)+ge(),de=rr()):(lr(e.Diagnostics.Invalid_character),i++,de=0);case 35:return i!==0&&sr[i+1]==="!"?(lr(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),i++,de=0):(Ae(Re(sr,i+1),ve)?(i++,$e(Re(sr,i),ve)):(we=String.fromCharCode(Re(sr,i)),lr(e.Diagnostics.Invalid_character,i++,ce(Kt))),de=80);default:var Pt=$e(Kt,ve);if(Pt)return de=Pt;if(w(Kt)){i+=ce(Kt);continue}else if(d(Kt)){qe|=1,i+=ce(Kt);continue}var Et=ce(Kt);return lr(e.Diagnostics.Invalid_character,i,Et),i+=Et,de=0}}}function cr(){e.Debug.assert(de===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),i=Ar=fr,qe=0;var bt=Re(sr,i),Ut=$e(bt,99);return Ut?de=Ut:(i+=ce(bt),de)}function $e(bt,Ut){var Kt=bt;if(Ae(Kt,Ut)){for(i+=ce(Kt);i<Mr&&Ge(Kt=Re(sr,i),Ut);)i+=ce(Kt);return we=sr.substring(Ar,i),Kt===92&&(we+=ge()),rr()}}function De(){if(de===31){if(sr.charCodeAt(i)===62)return sr.charCodeAt(i+1)===62?sr.charCodeAt(i+2)===61?(i+=3,de=72):(i+=2,de=49):sr.charCodeAt(i+1)===61?(i+=2,de=71):(i++,de=48);if(sr.charCodeAt(i)===61)return i++,de=33}return de}function z(){return e.Debug.assert(de===66,"'reScanAsteriskEqualsToken' should only be called on a '*='"),i=Ar+1,de=63}function ke(){if(de===43||de===68){for(var bt=Ar+1,Ut=!1,Kt=!1;;){if(bt>=Mr){qe|=4,lr(e.Diagnostics.Unterminated_regular_expression_literal);break}var bn=sr.charCodeAt(bt);if(d(bn)){qe|=4,lr(e.Diagnostics.Unterminated_regular_expression_literal);break}if(Ut)Ut=!1;else if(bn===47&&!Kt){bt++;break}else bn===91?Kt=!0:bn===92?Ut=!0:bn===93&&(Kt=!1);bt++}for(;bt<Mr&&Ge(sr.charCodeAt(bt),ve);)bt++;i=bt,we=sr.substring(Ar,i),de=13}return de}function dr(bt,Ut,Kt,bn){var wn=Xe(e.trimStringStart(Ut),Kt);return wn===void 0?bt:e.append(bt,{range:{pos:bn,end:i},type:wn})}function Xe(bt,Ut){var Kt=Ut.exec(bt);if(!!Kt)switch(Kt[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Qe(bt){return e.Debug.assert(de===19,"'reScanTemplateToken' should only be called on a '}'"),i=Ar,de=vn(bt)}function Ir(){return i=Ar,de=vn(!0)}function Jr(bt){return bt===void 0&&(bt=!0),i=Ar=fr,de=Rr(bt)}function Or(){return de===47?(i=Ar+1,de=29):de}function Be(){return de===80?(i=Ar+1,de=62):de}function yr(){return e.Debug.assert(de===60,"'reScanQuestionToken' should only be called on a '??'"),i=Ar+1,de=57}function Rr(bt){if(bt===void 0&&(bt=!0),fr=Ar=i,i>=Mr)return de=1;var Ut=sr.charCodeAt(i);if(Ut===60)return sr.charCodeAt(i+1)===47?(i+=2,de=30):(i++,de=29);if(Ut===123)return i++,de=18;for(var Kt=0;i<Mr&&(Ut=sr.charCodeAt(i),Ut!==123);){if(Ut===60){if(Y(sr,i))return i=pe(sr,i,lr),de=7;break}if(Ut===62&&lr(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,i,1),Ut===125&&lr(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,i,1),d(Ut)&&Kt===0)Kt=-1;else{if(!bt&&d(Ut)&&Kt>0)break;H(Ut)||(Kt=i)}i++}return we=sr.substring(fr,i),Kt===-1?12:11}function zr(){if(c(de)){for(var bt=!1;i<Mr;){var Ut=sr.charCodeAt(i);if(Ut===45){we+="-",i++;continue}else if(Ut===58&&!bt){we+=":",i++,bt=!0,de=79;continue}var Kt=i;if(we+=ge(),i===Kt)break}we.slice(-1)===":"&&(we=we.slice(0,-1),i--)}return de}function ut(){switch(fr=i,sr.charCodeAt(i)){case 34:case 39:return we=Yt(!0),de=10;default:return Ce()}}function mt(){return i=Ar=fr,ut()}function Lt(){if(fr=Ar=i,qe=0,i>=Mr)return de=1;var bt=Re(sr,i);switch(i+=ce(bt),bt){case 9:case 11:case 12:case 32:for(;i<Mr&&w(sr.charCodeAt(i));)i++;return de=5;case 64:return de=59;case 13:sr.charCodeAt(i)===10&&i++;case 10:return qe|=1,de=4;case 42:return de=41;case 123:return de=18;case 125:return de=19;case 91:return de=22;case 93:return de=23;case 60:return de=29;case 62:return de=31;case 61:return de=63;case 44:return de=27;case 46:return de=24;case 96:return de=61;case 35:return de=62;case 92:i--;var Ut=ir();if(Ut>=0&&Ae(Ut,ve))return i+=3,qe|=8,we=nr()+ge(),de=rr();var Kt=Zr();return Kt>=0&&Ae(Kt,ve)?(i+=6,qe|=1024,we=String.fromCharCode(Kt)+ge(),de=rr()):(i++,de=0)}if(Ae(bt,ve)){for(var bn=bt;i<Mr&&Ge(bn=Re(sr,i),ve)||sr.charCodeAt(i)===45;)i+=ce(bn);return we=sr.substring(Ar,i),bn===92&&(we+=ge()),de=rr()}else return de=0}function vt(bt,Ut){var Kt=i,bn=fr,wn=Ar,ra=de,ft=we,Ct=qe,Pt=bt();return(!Pt||Ut)&&(i=Kt,fr=bn,Ar=wn,de=ra,we=ft,qe=Ct),Pt}function pt(bt,Ut,Kt){var bn=Mr,wn=i,ra=fr,ft=Ar,Ct=de,Pt=we,Et=qe,et=Cr;Pn(sr,bt,Ut);var hn=Kt();return Mr=bn,i=wn,fr=ra,Ar=ft,de=Ct,we=Pt,qe=Et,Cr=et,hn}function Nt(bt){return vt(bt,!0)}function Xt(bt){return vt(bt,!1)}function st(){return sr}function $t(){Cr=void 0}function Pn(bt,Ut,Kt){sr=bt||"",Mr=Kt===void 0?sr.length:Ut+Kt,Gn(Ut||0)}function Ea(bt){Nr=bt}function ia(bt){ve=bt}function pa(bt){gr=bt}function Gn(bt){e.Debug.assert(bt>=0),i=bt,fr=bt,Ar=bt,de=0,we=void 0,qe=0}function nn(bt){kr+=bt?1:-1}}e.createScanner=xe;var Re=String.prototype.codePointAt?function(ve,Ve){return ve.codePointAt(Ve)}:function(Ve,gr){var Er=Ve.length;if(!(gr<0||gr>=Er)){var Nr=Ve.charCodeAt(gr);if(Nr>=55296&&Nr<=56319&&Er>gr+1){var ur=Ve.charCodeAt(gr+1);if(ur>=56320&&ur<=57343)return(Nr-55296)*1024+ur-56320+65536}return Nr}};function ce(ve){return ve>=65536?2:1}function Ue(ve){if(e.Debug.assert(0<=ve&&ve<=1114111),ve<=65535)return String.fromCharCode(ve);var Ve=Math.floor((ve-65536)/1024)+55296,gr=(ve-65536)%1024+56320;return String.fromCharCode(Ve,gr)}var We=String.fromCodePoint?function(ve){return String.fromCodePoint(ve)}:Ue;function Ne(ve){return We(ve)}e.utf16EncodeAsString=Ne})(mr||(mr={}));var mr;(function(e){function n(Le){return e.pathIsRelative(Le)||e.isRootedDiskPath(Le)}e.isExternalModuleNameRelative=n;function c(Le){return e.sortAndDeduplicate(Le,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=c;function u(Le){switch(e.getEmitScriptTarget(Le)){case 99:return"lib.esnext.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}e.getDefaultLibFileName=u;function g(Le){return Le.start+Le.length}e.textSpanEnd=g;function p(Le){return Le.length===0}e.textSpanIsEmpty=p;function I(Le,Xr){return Xr>=Le.start&&Xr<g(Le)}e.textSpanContainsPosition=I;function V(Le,Xr){return Xr>=Le.pos&&Xr<=Le.end}e.textRangeContainsPositionInclusive=V;function L(Le,Xr){return Xr.start>=Le.start&&g(Xr)<=g(Le)}e.textSpanContainsTextSpan=L;function m(Le,Xr){return y(Le,Xr)!==void 0}e.textSpanOverlapsWith=m;function y(Le,Xr){var an=$(Le,Xr);return an&&an.length===0?void 0:an}e.textSpanOverlap=y;function j(Le,Xr){return E(Le.start,Le.length,Xr.start,Xr.length)}e.textSpanIntersectsWithTextSpan=j;function te(Le,Xr,an){return E(Le.start,Le.length,Xr,an)}e.textSpanIntersectsWith=te;function E(Le,Xr,an,Xn){var da=Le+Xr,bi=an+Xn;return an<=da&&bi>=Le}e.decodedTextSpanIntersectsWith=E;function F(Le,Xr){return Xr<=g(Le)&&Xr>=Le.start}e.textSpanIntersectsWithPosition=F;function $(Le,Xr){var an=Math.max(Le.start,Xr.start),Xn=Math.min(g(Le),g(Xr));return an<=Xn?K(an,Xn):void 0}e.textSpanIntersection=$;function C(Le,Xr){if(Le<0)throw new Error("start < 0");if(Xr<0)throw new Error("length < 0");return{start:Le,length:Xr}}e.createTextSpan=C;function K(Le,Xr){return C(Le,Xr-Le)}e.createTextSpanFromBounds=K;function k(Le){return C(Le.span.start,Le.newLength)}e.textChangeRangeNewSpan=k;function X(Le){return p(Le.span)&&Le.newLength===0}e.textChangeRangeIsUnchanged=X;function O(Le,Xr){if(Xr<0)throw new Error("newLength < 0");return{span:Le,newLength:Xr}}e.createTextChangeRange=O,e.unchangedTextChangeRange=O(C(0,0),0);function x(Le){if(Le.length===0)return e.unchangedTextChangeRange;if(Le.length===1)return Le[0];for(var Xr=Le[0],an=Xr.span.start,Xn=g(Xr.span),da=an+Xr.newLength,bi=1;bi<Le.length;bi++){var Qa=Le[bi],go=an,wr=Xn,ss=da,al=Qa.span.start,Sl=g(Qa.span),zo=al+Qa.newLength;an=Math.min(go,al),Xn=Math.max(wr,wr+(Sl-ss)),da=Math.max(zo,zo+(ss-Sl))}return O(K(an,Xn),da-an)}e.collapseTextChangeRangesAcrossMultipleVersions=x;function ie(Le){if(Le&&Le.kind===162){for(var Xr=Le;Xr;Xr=Xr.parent)if(pa(Xr)||ra(Xr)||Xr.kind===257)return Xr}}e.getTypeParameterOwner=ie;function Z(Le,Xr){return e.hasSyntacticModifier(Le,16476)&&Xr.kind===170}e.isParameterPropertyDeclaration=Z;function re(Le){return Ra(Le)?e.every(Le.elements,q):!1}e.isEmptyBindingPattern=re;function q(Le){return e.isOmittedExpression(Le)?!0:re(Le.name)}e.isEmptyBindingElement=q;function P(Le){for(var Xr=Le.parent;e.isBindingElement(Xr.parent);)Xr=Xr.parent.parent;return Xr.parent}e.walkUpBindingElementsAndPatterns=P;function M(Le,Xr){e.isBindingElement(Le)&&(Le=P(Le));var an=Xr(Le);return Le.kind===253&&(Le=Le.parent),Le&&Le.kind===254&&(an|=Xr(Le),Le=Le.parent),Le&&Le.kind===236&&(an|=Xr(Le)),an}function Q(Le){return M(Le,e.getEffectiveModifierFlags)}e.getCombinedModifierFlags=Q;function H(Le){return M(Le,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)}e.getCombinedNodeFlagsAlwaysIncludeJSDoc=H;function w(Le){return M(Le,function(Xr){return Xr.flags})}e.getCombinedNodeFlags=w,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function d(Le,Xr,an){var Xn=Le.toLowerCase(),da=/^([a-z]+)([_\-]([a-z]+))?$/.exec(Xn);if(!da){an&&an.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}var bi=da[1],Qa=da[3];e.contains(e.supportedLocaleDirectories,Xn)&&!go(bi,Qa,an)&&go(bi,void 0,an),e.setUILocale(Le);function go(wr,ss,al){var Sl=e.normalizePath(Xr.getExecutingFilePath()),zo=e.getDirectoryPath(Sl),bs=e.combinePaths(zo,wr);if(ss&&(bs=bs+"-"+ss),bs=Xr.resolvePath(e.combinePaths(bs,"diagnosticMessages.generated.json")),!Xr.fileExists(bs))return!1;var xl="";try{xl=Xr.readFile(bs)}catch(ic){return al&&al.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,bs)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(xl))}catch(ic){return al&&al.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,bs)),!1}return!0}}e.validateLocaleAndSetLanguage=d;function B(Le,Xr){if(Le)for(;Le.original!==void 0;)Le=Le.original;return!Xr||Xr(Le)?Le:void 0}e.getOriginalNode=B;function T(Le,Xr){for(;Le;){var an=Xr(Le);if(an==="quit")return;if(an)return Le;Le=Le.parent}}e.findAncestor=T;function _(Le){return(Le.flags&8)===0}e.isParseTreeNode=_;function h(Le,Xr){if(Le===void 0||_(Le))return Le;for(Le=Le.original;Le;){if(_(Le))return!Xr||Xr(Le)?Le:void 0;Le=Le.original}}e.getParseTreeNode=h;function R(Le){return Le.length>=2&&Le.charCodeAt(0)===95&&Le.charCodeAt(1)===95?"_"+Le:Le}e.escapeLeadingUnderscores=R;function b(Le){var Xr=Le;return Xr.length>=3&&Xr.charCodeAt(0)===95&&Xr.charCodeAt(1)===95&&Xr.charCodeAt(2)===95?Xr.substr(1):Xr}e.unescapeLeadingUnderscores=b;function G(Le){return b(Le.escapedText)}e.idText=G;function Y(Le){return Le.valueDeclaration&&vt(Le.valueDeclaration)?G(Le.valueDeclaration.name):b(Le.escapedName)}e.symbolName=Y;function pe(Le){var Xr=Le.parent.parent;if(!!Xr){if(tt(Xr))return A(Xr);switch(Xr.kind){case 236:if(Xr.declarationList&&Xr.declarationList.declarations[0])return A(Xr.declarationList.declarations[0]);break;case 237:var an=Xr.expression;switch(an.kind===220&&an.operatorToken.kind===63&&(an=an.left),an.kind){case 205:return an.name;case 206:var Xn=an.argumentExpression;if(e.isIdentifier(Xn))return Xn}break;case 211:return A(Xr.expression);case 249:{if(tt(Xr.statement)||Pa(Xr.statement))return A(Xr.statement);break}}}}function A(Le){var Xr=be(Le);return Xr&&e.isIdentifier(Xr)?Xr:void 0}function _e(Le,Xr){return!!(ae(Le)&&e.isIdentifier(Le.name)&&G(Le.name)===G(Xr)||e.isVariableStatement(Le)&&e.some(Le.declarationList.declarations,function(an){return _e(an,Xr)}))}e.nodeHasName=_e;function Se(Le){return Le.name||pe(Le)}e.getNameOfJSDocTypedef=Se;function ae(Le){return!!Le.name}e.isNamedDeclaration=ae;function D(Le){switch(Le.kind){case 79:return Le;case 345:case 338:{var Xr=Le.name;if(Xr.kind===160)return Xr.right;break}case 207:case 220:{var an=Le;switch(e.getAssignmentDeclarationKind(an)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(an.left);case 7:case 8:case 9:return an.arguments[1];default:return}}case 343:return Se(Le);case 337:return pe(Le);case 270:{var Xn=Le.expression;return e.isIdentifier(Xn)?Xn:void 0}case 206:var da=Le;if(e.isBindableStaticElementAccessExpression(da))return da.argumentExpression}return Le.name}e.getNonAssignedNameOfDeclaration=D;function be(Le){if(Le!==void 0)return D(Le)||(e.isFunctionExpression(Le)||e.isArrowFunction(Le)||e.isClassExpression(Le)?ne(Le):void 0)}e.getNameOfDeclaration=be;function ne(Le){if(Le.parent){if(e.isPropertyAssignment(Le.parent)||e.isBindingElement(Le.parent))return Le.parent.name;if(e.isBinaryExpression(Le.parent)&&Le===Le.parent.right){if(e.isIdentifier(Le.parent.left))return Le.parent.left;if(e.isAccessExpression(Le.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(Le.parent.left)}else if(e.isVariableDeclaration(Le.parent)&&e.isIdentifier(Le.parent.name))return Le.parent.name}else return}e.getAssignedName=ne;function J(Le,Xr){if(Le.name)if(e.isIdentifier(Le.name)){var an=Le.name.escapedText;return qe(Le.parent,Xr).filter(function(bi){return e.isJSDocParameterTag(bi)&&e.isIdentifier(bi.name)&&bi.name.escapedText===an})}else{var Xn=Le.parent.parameters.indexOf(Le);e.Debug.assert(Xn>-1,"Parameters should always be in their parents' parameter list");var da=qe(Le.parent,Xr).filter(e.isJSDocParameterTag);if(Xn<da.length)return[da[Xn]]}return e.emptyArray}function le(Le){return J(Le,!1)}e.getJSDocParameterTags=le;function Te(Le){return J(Le,!0)}e.getJSDocParameterTagsNoCache=Te;function Me(Le,Xr){var an=Le.name.escapedText;return qe(Le.parent,Xr).filter(function(Xn){return e.isJSDocTemplateTag(Xn)&&Xn.typeParameters.some(function(da){return da.name.escapedText===an})})}function Ke(Le){return Me(Le,!1)}e.getJSDocTypeParameterTags=Ke;function Ae(Le){return Me(Le,!0)}e.getJSDocTypeParameterTagsNoCache=Ae;function Ge(Le){return!!He(Le,e.isJSDocParameterTag)}e.hasJSDocParameterTags=Ge;function se(Le){return He(Le,e.isJSDocAugmentsTag)}e.getJSDocAugmentsTag=se;function xe(Le){return lr(Le,e.isJSDocImplementsTag)}e.getJSDocImplementsTags=xe;function Re(Le){return He(Le,e.isJSDocClassTag)}e.getJSDocClassTag=Re;function ce(Le){return He(Le,e.isJSDocPublicTag)}e.getJSDocPublicTag=ce;function Ue(Le){return He(Le,e.isJSDocPublicTag,!0)}e.getJSDocPublicTagNoCache=Ue;function We(Le){return He(Le,e.isJSDocPrivateTag)}e.getJSDocPrivateTag=We;function Ne(Le){return He(Le,e.isJSDocPrivateTag,!0)}e.getJSDocPrivateTagNoCache=Ne;function ve(Le){return He(Le,e.isJSDocProtectedTag)}e.getJSDocProtectedTag=ve;function Ve(Le){return He(Le,e.isJSDocProtectedTag,!0)}e.getJSDocProtectedTagNoCache=Ve;function gr(Le){return He(Le,e.isJSDocReadonlyTag)}e.getJSDocReadonlyTag=gr;function Er(Le){return He(Le,e.isJSDocReadonlyTag,!0)}e.getJSDocReadonlyTagNoCache=Er;function Nr(Le){return He(Le,e.isJSDocOverrideTag,!0)}e.getJSDocOverrideTagNoCache=Nr;function ur(Le){return He(Le,e.isJSDocDeprecatedTag)}e.getJSDocDeprecatedTag=ur;function xr(Le){return He(Le,e.isJSDocDeprecatedTag,!0)}e.getJSDocDeprecatedTagNoCache=xr;function sr(Le){return He(Le,e.isJSDocEnumTag)}e.getJSDocEnumTag=sr;function i(Le){return He(Le,e.isJSDocThisTag)}e.getJSDocThisTag=i;function Mr(Le){return He(Le,e.isJSDocReturnTag)}e.getJSDocReturnTag=Mr;function fr(Le){return He(Le,e.isJSDocTemplateTag)}e.getJSDocTemplateTag=fr;function Ar(Le){var Xr=He(Le,e.isJSDocTypeTag);if(Xr&&Xr.typeExpression&&Xr.typeExpression.type)return Xr}e.getJSDocTypeTag=Ar;function de(Le){var Xr=He(Le,e.isJSDocTypeTag);return!Xr&&e.isParameter(Le)&&(Xr=e.find(le(Le),function(an){return!!an.typeExpression})),Xr&&Xr.typeExpression&&Xr.typeExpression.type}e.getJSDocType=de;function we(Le){var Xr=Mr(Le);if(Xr&&Xr.typeExpression)return Xr.typeExpression.type;var an=Ar(Le);if(an&&an.typeExpression){var Xn=an.typeExpression.type;if(e.isTypeLiteralNode(Xn)){var da=e.find(Xn.members,e.isCallSignatureDeclaration);return da&&da.type}if(e.isFunctionTypeNode(Xn)||e.isJSDocFunctionType(Xn))return Xn.type}}e.getJSDocReturnType=we;function qe(Le,Xr){var an=Le.jsDocCache;if(an===void 0||Xr){var Xn=e.getJSDocCommentsAndTags(Le,Xr);e.Debug.assert(Xn.length<2||Xn[0]!==Xn[1]),an=e.flatMap(Xn,function(da){return e.isJSDoc(da)?da.tags:da}),Xr||(Le.jsDocCache=an)}return an}function Cr(Le){return qe(Le,!1)}e.getJSDocTags=Cr;function kr(Le){return qe(Le,!0)}e.getJSDocTagsNoCache=kr;function He(Le,Xr,an){return e.find(qe(Le,an),Xr)}function lr(Le,Xr){return Cr(Le).filter(Xr)}e.getAllJSDocTags=lr;function Hr(Le,Xr){return Cr(Le).filter(function(an){return an.kind===Xr})}e.getAllJSDocTagsOfKind=Hr;function Je(Le){return typeof Le=="string"?Le:Le==null?void 0:Le.map(function(Xr){return Xr.kind===319?Xr.text:"{@link ".concat(Xr.name?e.entityNameToString(Xr.name)+" ":"").concat(Xr.text,"}")}).join("")}e.getTextOfJSDocComment=Je;function Sr(Le){if(e.isJSDocSignature(Le))return e.emptyArray;if(e.isJSDocTypeAlias(Le))return e.Debug.assert(Le.parent.kind===318),e.flatMap(Le.parent.tags,function(Xn){return e.isJSDocTemplateTag(Xn)?Xn.typeParameters:void 0});if(Le.typeParameters)return Le.typeParameters;if(e.isInJSFile(Le)){var Xr=e.getJSDocTypeParameterDeclarations(Le);if(Xr.length)return Xr;var an=de(Le);if(an&&e.isFunctionTypeNode(an)&&an.typeParameters)return an.typeParameters}return e.emptyArray}e.getEffectiveTypeParameterDeclarations=Sr;function Yr(Le){return Le.constraint?Le.constraint:e.isJSDocTemplateTag(Le.parent)&&Le===Le.parent.typeParameters[0]?Le.parent.constraint:void 0}e.getEffectiveConstraintOfTypeParameter=Yr;function ot(Le){return Le.kind===79||Le.kind===80}e.isMemberName=ot;function _t(Le){return Le.kind===172||Le.kind===171}e.isGetOrSetAccessorDeclaration=_t;function kt(Le){return e.isPropertyAccessExpression(Le)&&!!(Le.flags&32)}e.isPropertyAccessChain=kt;function Yt(Le){return e.isElementAccessExpression(Le)&&!!(Le.flags&32)}e.isElementAccessChain=Yt;function vn(Le){return e.isCallExpression(Le)&&!!(Le.flags&32)}e.isCallChain=vn;function Mn(Le){var Xr=Le.kind;return!!(Le.flags&32)&&(Xr===205||Xr===206||Xr===207||Xr===229)}e.isOptionalChain=Mn;function qn(Le){return Mn(Le)&&!e.isNonNullExpression(Le)&&!!Le.questionDotToken}e.isOptionalChainRoot=qn;function nr(Le){return qn(Le.parent)&&Le.parent.expression===Le}e.isExpressionOfOptionalChainRoot=nr;function Zr(Le){return!Mn(Le.parent)||qn(Le.parent)||Le!==Le.parent.expression}e.isOutermostOptionalChain=Zr;function ir(Le){return Le.kind===220&&Le.operatorToken.kind===60}e.isNullishCoalesce=ir;function ge(Le){return e.isTypeReferenceNode(Le)&&e.isIdentifier(Le.typeName)&&Le.typeName.escapedText==="const"&&!Le.typeArguments}e.isConstTypeReference=ge;function rr(Le){return e.skipOuterExpressions(Le,8)}e.skipPartiallyEmittedExpressions=rr;function pr(Le){return e.isNonNullExpression(Le)&&!!(Le.flags&32)}e.isNonNullChain=pr;function Lr(Le){return Le.kind===245||Le.kind===244}e.isBreakOrContinueStatement=Lr;function Ce(Le){return Le.kind===273||Le.kind===272}e.isNamedExportBindings=Ce;function cr(Le){switch(Le.kind){case 300:case 301:return!0;default:return!1}}e.isUnparsedTextLike=cr;function $e(Le){return cr(Le)||Le.kind===298||Le.kind===302}e.isUnparsedNode=$e;function De(Le){return Le.kind===345||Le.kind===338}e.isJSDocPropertyLikeTag=De;function z(Le){return ke(Le.kind)}e.isNode=z;function ke(Le){return Le>=160}e.isNodeKind=ke;function dr(Le){return Le>=0&&Le<=159}e.isTokenKind=dr;function Xe(Le){return dr(Le.kind)}e.isToken=Xe;function Qe(Le){return Le.hasOwnProperty("pos")&&Le.hasOwnProperty("end")}e.isNodeArray=Qe;function Ir(Le){return 8<=Le&&Le<=14}e.isLiteralKind=Ir;function Jr(Le){return Ir(Le.kind)}e.isLiteralExpression=Jr;function Or(Le){return 14<=Le&&Le<=17}e.isTemplateLiteralKind=Or;function Be(Le){return Or(Le.kind)}e.isTemplateLiteralToken=Be;function yr(Le){var Xr=Le.kind;return Xr===16||Xr===17}e.isTemplateMiddleOrTemplateTail=yr;function Rr(Le){return e.isImportSpecifier(Le)||e.isExportSpecifier(Le)}e.isImportOrExportSpecifier=Rr;function zr(Le){switch(Le.kind){case 269:case 274:return Le.isTypeOnly||Le.parent.parent.isTypeOnly;case 267:return Le.parent.isTypeOnly;case 266:case 264:return Le.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=zr;function ut(Le){return e.isStringLiteral(Le)||e.isIdentifier(Le)}e.isAssertionKey=ut;function mt(Le){return Le.kind===10||Or(Le.kind)}e.isStringTextContainingNode=mt;function Lt(Le){return e.isIdentifier(Le)&&(Le.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=Lt;function vt(Le){return(e.isPropertyDeclaration(Le)||Ct(Le))&&e.isPrivateIdentifier(Le.name)}e.isPrivateIdentifierClassElementDeclaration=vt;function pt(Le){return e.isPropertyAccessExpression(Le)&&e.isPrivateIdentifier(Le.name)}e.isPrivateIdentifierPropertyAccessExpression=pt;function Nt(Le){switch(Le){case 126:case 131:case 85:case 135:case 88:case 93:case 123:case 121:case 122:case 144:case 124:case 158:return!0}return!1}e.isModifierKind=Nt;function Xt(Le){return!!(e.modifierToFlag(Le)&16476)}e.isParameterPropertyModifier=Xt;function st(Le){return Xt(Le)||Le===124||Le===158}e.isClassMemberModifier=st;function $t(Le){return Nt(Le.kind)}e.isModifier=$t;function Pn(Le){var Xr=Le.kind;return Xr===160||Xr===79}e.isEntityName=Pn;function Ea(Le){var Xr=Le.kind;return Xr===79||Xr===80||Xr===10||Xr===8||Xr===161}e.isPropertyName=Ea;function ia(Le){var Xr=Le.kind;return Xr===79||Xr===200||Xr===201}e.isBindingName=ia;function pa(Le){return!!Le&&Kt(Le.kind)}e.isFunctionLike=pa;function Gn(Le){return!!Le&&(Kt(Le.kind)||e.isClassStaticBlockDeclaration(Le))}e.isFunctionLikeOrClassStaticBlockDeclaration=Gn;function nn(Le){return Le&&Ut(Le.kind)}e.isFunctionLikeDeclaration=nn;function bt(Le){return Le.kind===110||Le.kind===95}e.isBooleanLiteral=bt;function Ut(Le){switch(Le){case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return!1}}function Kt(Le){switch(Le){case 167:case 173:case 321:case 174:case 175:case 178:case 315:case 179:return!0;default:return Ut(Le)}}e.isFunctionLikeKind=Kt;function bn(Le){return e.isSourceFile(Le)||e.isModuleBlock(Le)||e.isBlock(Le)&&pa(Le.parent)}e.isFunctionOrModuleBlock=bn;function wn(Le){var Xr=Le.kind;return Xr===170||Xr===166||Xr===168||Xr===171||Xr===172||Xr===175||Xr===169||Xr===233}e.isClassElement=wn;function ra(Le){return Le&&(Le.kind===256||Le.kind===225)}e.isClassLike=ra;function ft(Le){return Le&&(Le.kind===171||Le.kind===172)}e.isAccessor=ft;function Ct(Le){switch(Le.kind){case 168:case 171:case 172:return!0;default:return!1}}e.isMethodOrAccessor=Ct;function Pt(Le){var Xr=Le.kind;return Xr===174||Xr===173||Xr===165||Xr===167||Xr===175}e.isTypeElement=Pt;function Et(Le){return Pt(Le)||wn(Le)}e.isClassOrTypeElement=Et;function et(Le){var Xr=Le.kind;return Xr===294||Xr===295||Xr===296||Xr===168||Xr===171||Xr===172}e.isObjectLiteralElementLike=et;function hn(Le){return e.isTypeNodeKind(Le.kind)}e.isTypeNode=hn;function Qn(Le){switch(Le.kind){case 178:case 179:return!0}return!1}e.isFunctionOrConstructorTypeNode=Qn;function Ra(Le){if(Le){var Xr=Le.kind;return Xr===201||Xr===200}return!1}e.isBindingPattern=Ra;function Ki(Le){var Xr=Le.kind;return Xr===203||Xr===204}e.isAssignmentPattern=Ki;function di(Le){var Xr=Le.kind;return Xr===202||Xr===226}e.isArrayBindingElement=di;function ya(Le){switch(Le.kind){case 253:case 163:case 202:return!0}return!1}e.isDeclarationBindingElement=ya;function $a(Le){return ao(Le)||Fi(Le)}e.isBindingOrAssignmentPattern=$a;function ao(Le){switch(Le.kind){case 200:case 204:return!0}return!1}e.isObjectBindingOrAssignmentPattern=ao;function ei(Le){switch(Le.kind){case 202:case 294:case 295:case 296:return!0}return!1}e.isObjectBindingOrAssignmentElement=ei;function Fi(Le){switch(Le.kind){case 201:case 203:return!0}return!1}e.isArrayBindingOrAssignmentPattern=Fi;function eo(Le){var Xr=Le.kind;return Xr===205||Xr===160||Xr===199}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=eo;function Wo(Le){var Xr=Le.kind;return Xr===205||Xr===160}e.isPropertyAccessOrQualifiedName=Wo;function Yi(Le){switch(Le.kind){case 279:case 278:case 207:case 208:case 209:case 164:return!0;default:return!1}}e.isCallLikeExpression=Yi;function Ni(Le){return Le.kind===207||Le.kind===208}e.isCallOrNewExpression=Ni;function Eo(Le){var Xr=Le.kind;return Xr===222||Xr===14}e.isTemplateLiteral=Eo;function lo(Le){return So(rr(Le).kind)}e.isLeftHandSideExpression=lo;function So(Le){switch(Le){case 205:case 206:case 208:case 207:case 277:case 278:case 281:case 209:case 203:case 211:case 204:case 225:case 212:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 222:case 95:case 104:case 108:case 110:case 106:case 229:case 230:case 100:return!0;default:return!1}}function ts(Le){return ja(rr(Le).kind)}e.isUnaryExpression=ts;function ja(Le){switch(Le){case 218:case 219:case 214:case 215:case 216:case 217:case 210:return!0;default:return So(Le)}}function Do(Le){switch(Le.kind){case 219:return!0;case 218:return Le.operator===45||Le.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=Do;function Pa(Le){return Ti(rr(Le).kind)}e.isExpression=Pa;function Ti(Le){switch(Le){case 221:case 223:case 213:case 220:case 224:case 228:case 226:case 349:case 348:return!0;default:return ja(Le)}}function mo(Le){var Xr=Le.kind;return Xr===210||Xr===228}e.isAssertionExpression=mo;function No(Le){return e.isNotEmittedStatement(Le)||e.isPartiallyEmittedExpression(Le)}e.isNotEmittedOrPartiallyEmittedNode=No;function ko(Le,Xr){switch(Le.kind){case 241:case 242:case 243:case 239:case 240:return!0;case 249:return Xr&&ko(Le.statement,Xr)}return!1}e.isIterationStatement=ko;function Oo(Le){return e.isExportAssignment(Le)||e.isExportDeclaration(Le)}e.isScopeMarker=Oo;function Po(Le){return e.some(Le,Oo)}e.hasScopeMarker=Po;function Ss(Le){return!e.isAnyImportOrReExport(Le)&&!e.isExportAssignment(Le)&&!e.hasSyntacticModifier(Le,1)&&!e.isAmbientModule(Le)}e.needsScopeMarker=Ss;function Ds(Le){return e.isAnyImportOrReExport(Le)||e.isExportAssignment(Le)||e.hasSyntacticModifier(Le,1)}e.isExternalModuleIndicator=Ds;function vr(Le){return Le.kind===242||Le.kind===243}e.isForInOrOfStatement=vr;function gt(Le){return e.isBlock(Le)||Pa(Le)}e.isConciseBody=gt;function tn(Le){return e.isBlock(Le)}e.isFunctionBody=tn;function Bn(Le){return e.isVariableDeclarationList(Le)||Pa(Le)}e.isForInitializer=Bn;function Fe(Le){var Xr=Le.kind;return Xr===261||Xr===260||Xr===79}e.isModuleBody=Fe;function Gr(Le){var Xr=Le.kind;return Xr===261||Xr===260}e.isNamespaceBody=Gr;function ht(Le){var Xr=Le.kind;return Xr===79||Xr===260}e.isJSDocNamespaceBody=ht;function ye(Le){var Xr=Le.kind;return Xr===268||Xr===267}e.isNamedImportBindings=ye;function oe(Le){return Le.kind===260||Le.kind===259}e.isModuleOrEnumDeclaration=oe;function Pe(Le){return Le===213||Le===202||Le===256||Le===225||Le===169||Le===170||Le===259||Le===297||Le===274||Le===255||Le===212||Le===171||Le===266||Le===264||Le===269||Le===257||Le===284||Le===168||Le===167||Le===260||Le===263||Le===267||Le===273||Le===163||Le===294||Le===166||Le===165||Le===172||Le===295||Le===258||Le===162||Le===253||Le===343||Le===336||Le===345}function Ye(Le){return Le===255||Le===275||Le===256||Le===257||Le===258||Le===259||Le===260||Le===265||Le===264||Le===271||Le===270||Le===263}function Tr(Le){return Le===245||Le===244||Le===252||Le===239||Le===237||Le===235||Le===242||Le===243||Le===241||Le===238||Le===249||Le===246||Le===248||Le===250||Le===251||Le===236||Le===240||Le===247||Le===347||Le===351||Le===350}function tt(Le){return Le.kind===162?Le.parent&&Le.parent.kind!==342||e.isInJSFile(Le):Pe(Le.kind)}e.isDeclaration=tt;function Mt(Le){return Ye(Le.kind)}e.isDeclarationStatement=Mt;function Wt(Le){return Tr(Le.kind)}e.isStatementButNotDeclaration=Wt;function Ln(Le){var Xr=Le.kind;return Tr(Xr)||Ye(Xr)||va(Le)}e.isStatement=Ln;function va(Le){return Le.kind!==234||Le.parent!==void 0&&(Le.parent.kind===251||Le.parent.kind===291)?!1:!e.isFunctionBlock(Le)}function ti(Le){var Xr=Le.kind;return Tr(Xr)||Ye(Xr)||Xr===234}e.isStatementOrBlock=ti;function ii(Le){var Xr=Le.kind;return Xr===276||Xr===160||Xr===79}e.isModuleReference=ii;function Si(Le){var Xr=Le.kind;return Xr===108||Xr===79||Xr===205}e.isJsxTagNameExpression=Si;function Oi(Le){var Xr=Le.kind;return Xr===277||Xr===287||Xr===278||Xr===11||Xr===281}e.isJsxChild=Oi;function _s(Le){var Xr=Le.kind;return Xr===284||Xr===286}e.isJsxAttributeLike=_s;function os(Le){var Xr=Le.kind;return Xr===10||Xr===287}e.isStringLiteralOrJsxExpression=os;function jo(Le){var Xr=Le.kind;return Xr===279||Xr===278}e.isJsxOpeningLikeElement=jo;function At(Le){var Xr=Le.kind;return Xr===288||Xr===289}e.isCaseOrDefaultClause=At;function Wn(Le){return Le.kind>=307&&Le.kind<=345}e.isJSDocNode=Wn;function sa(Le){return Le.kind===318||Le.kind===317||Le.kind===319||yt(Le)||oi(Le)||e.isJSDocTypeLiteral(Le)||e.isJSDocSignature(Le)}e.isJSDocCommentContainingNode=sa;function oi(Le){return Le.kind>=325&&Le.kind<=345}e.isJSDocTag=oi;function vi(Le){return Le.kind===172}e.isSetAccessor=vi;function Ui(Le){return Le.kind===171}e.isGetAccessor=Ui;function Ca(Le){var Xr=Le.jsDoc;return!!Xr&&Xr.length>0}e.hasJSDocNodes=Ca;function gi(Le){return!!Le.type}e.hasType=gi;function Mi(Le){return!!Le.initializer}e.hasInitializer=Mi;function Vi(Le){switch(Le.kind){case 253:case 163:case 202:case 165:case 166:case 294:case 297:return!0;default:return!1}}e.hasOnlyExpressionInitializer=Vi;function Ro(Le){return Le.kind===284||Le.kind===286||et(Le)}e.isObjectLiteralElement=Ro;function Yo(Le){return Le.kind===177||Le.kind===227}e.isTypeReferenceType=Yo;var ns=1073741823;function me(Le){for(var Xr=ns,an=0,Xn=Le;an<Xn.length;an++){var da=Xn[an];if(!!da.length){for(var bi=0;bi<da.length&&bi<Xr&&e.isWhiteSpaceLike(da.charCodeAt(bi));bi++);if(bi<Xr&&(Xr=bi),Xr===0)return 0}}return Xr===ns?void 0:Xr}e.guessIndentation=me;function Pr(Le){return Le.kind===10||Le.kind===14}e.isStringLiteralLike=Pr;function yt(Le){return Le.kind===322||Le.kind===323||Le.kind===324}e.isJSDocLinkLike=yt})(mr||(mr={}));var mr;(function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6;function n(l,ee){var or=l.declarations;if(or)for(var jr=0,Ot=or;jr<Ot.length;jr++){var Nn=Ot[jr];if(Nn.kind===ee)return Nn}}e.getDeclarationOfKind=n;function c(){return new e.Map}e.createUnderscoreEscapedMap=c;function u(l){return!!l&&!!l.size}e.hasEntries=u;function g(l){var ee=new e.Map;if(l)for(var or=0,jr=l;or<jr.length;or++){var Ot=jr[or];ee.set(Ot.escapedName,Ot)}return ee}e.createSymbolTable=g;function p(l){return(l.flags&33554432)!==0}e.isTransientSymbol=p;var I=V();function V(){var l="",ee=function(or){return l+=or};return{getText:function(){return l},write:ee,rawWrite:ee,writeKeyword:ee,writeOperator:ee,writePunctuation:ee,writeSpace:ee,writeStringLiteral:ee,writeLiteral:ee,writeParameter:ee,writeProperty:ee,writeSymbol:function(or,jr){return ee(or)},writeTrailingSemicolon:ee,writeComment:ee,getTextPos:function(){return l.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!l.length&&e.isWhiteSpaceLike(l.charCodeAt(l.length-1))},writeLine:function(){return l+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return l=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function L(l,ee){return l.configFilePath!==ee.configFilePath||m(l,ee)}e.changesAffectModuleResolution=L;function m(l,ee){return j(l,ee,e.moduleResolutionOptionDeclarations)}e.optionsHaveModuleResolutionChanges=m;function y(l,ee){return j(l,ee,e.optionsAffectingProgramStructure)}e.changesAffectingProgramStructure=y;function j(l,ee,or){return l!==ee&&or.some(function(jr){return!Lc(Xu(l,jr),Xu(ee,jr))})}e.optionsHaveChanges=j;function te(l,ee){for(;;){var or=ee(l);if(or==="quit")return;if(or!==void 0)return or;if(e.isSourceFile(l))return;l=l.parent}}e.forEachAncestor=te;function E(l,ee){for(var or=l.entries(),jr=or.next();!jr.done;jr=or.next()){var Ot=jr.value,Nn=Ot[0],Dn=Ot[1],ma=ee(Dn,Nn);if(ma)return ma}}e.forEachEntry=E;function F(l,ee){for(var or=l.keys(),jr=or.next();!jr.done;jr=or.next()){var Ot=ee(jr.value);if(Ot)return Ot}}e.forEachKey=F;function $(l,ee){l.forEach(function(or,jr){ee.set(jr,or)})}e.copyEntries=$;function C(l){var ee=I.getText();try{return l(I),I.getText()}finally{I.clear(),I.writeKeyword(ee)}}e.usingSingleLineStringWriter=C;function K(l){return l.end-l.pos}e.getFullWidth=K;function k(l,ee,or){return l&&l.resolvedModules&&l.resolvedModules.get(ee,or)}e.getResolvedModule=k;function X(l,ee,or,jr){l.resolvedModules||(l.resolvedModules=e.createModeAwareCache()),l.resolvedModules.set(ee,jr,or)}e.setResolvedModule=X;function O(l,ee,or){l.resolvedTypeReferenceDirectiveNames||(l.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),l.resolvedTypeReferenceDirectiveNames.set(ee,void 0,or)}e.setResolvedTypeReferenceDirective=O;function x(l,ee){return l.path===ee.path&&!l.prepend==!ee.prepend&&!l.circular==!ee.circular}e.projectReferenceIsEqualTo=x;function ie(l,ee){return l.isExternalLibraryImport===ee.isExternalLibraryImport&&l.extension===ee.extension&&l.resolvedFileName===ee.resolvedFileName&&l.originalPath===ee.originalPath&&Z(l.packageId,ee.packageId)}e.moduleResolutionIsEqualTo=ie;function Z(l,ee){return l===ee||!!l&&!!ee&&l.name===ee.name&&l.subModuleName===ee.subModuleName&&l.version===ee.version}function re(l){var ee=l.name,or=l.subModuleName,jr=l.version,Ot=or?"".concat(ee,"/").concat(or):ee;return"".concat(Ot,"@").concat(jr)}e.packageIdToString=re;function q(l,ee){return l.resolvedFileName===ee.resolvedFileName&&l.primary===ee.primary&&l.originalPath===ee.originalPath}e.typeDirectiveIsEqualTo=q;function P(l,ee,or,jr,Ot){e.Debug.assert(l.length===ee.length);for(var Nn=0;Nn<l.length;Nn++){var Dn=ee[Nn],ma=or&&or.get(l[Nn],jr&&e.getModeForResolutionAtIndex(jr,Nn)),hi=ma?!Dn||!Ot(ma,Dn):Dn;if(hi)return!0}return!1}e.hasChangesInResolutions=P;function M(l){return Q(l),(l.flags&262144)!==0}e.containsParseError=M;function Q(l){if(!(l.flags&524288)){var ee=(l.flags&65536)!==0||e.forEachChild(l,M);ee&&(l.flags|=262144),l.flags|=524288}}function H(l){for(;l&&l.kind!==303;)l=l.parent;return l}e.getSourceFileOfNode=H;function w(l){return H(l.valueDeclaration||qe(l))}e.getSourceFileOfModule=w;function d(l){switch(l.kind){case 234:case 262:case 241:case 242:case 243:return!0}return!1}e.isStatementWithLocals=d;function B(l,ee){return e.Debug.assert(l>=0),e.getLineStarts(ee)[l]}e.getStartPositionOfLine=B;function T(l){var ee=H(l),or=e.getLineAndCharacterOfPosition(ee,l.pos);return"".concat(ee.fileName,"(").concat(or.line+1,",").concat(or.character+1,")")}e.nodePosToString=T;function _(l,ee){e.Debug.assert(l>=0);var or=e.getLineStarts(ee),jr=l,Ot=ee.text;if(jr+1===or.length)return Ot.length-1;var Nn=or[jr],Dn=or[jr+1]-1;for(e.Debug.assert(e.isLineBreak(Ot.charCodeAt(Dn)));Nn<=Dn&&e.isLineBreak(Ot.charCodeAt(Dn));)Dn--;return Dn}e.getEndLinePosition=_;function h(l,ee,or){return!(or&&or(ee))&&!l.identifiers.has(ee)}e.isFileLevelUniqueName=h;function R(l){return l===void 0?!0:l.pos===l.end&&l.pos>=0&&l.kind!==1}e.nodeIsMissing=R;function b(l){return!R(l)}e.nodeIsPresent=b;function G(l,ee,or){if(ee===void 0||ee.length===0)return l;for(var jr=0;jr<l.length&&or(l[jr]);++jr);return l.splice.apply(l,Bt([jr,0],ee,!1)),l}function Y(l,ee,or){if(ee===void 0)return l;for(var jr=0;jr<l.length&&or(l[jr]);++jr);return l.splice(jr,0,ee),l}function pe(l){return ut(l)||!!(Re(l)&1048576)}function A(l,ee){return G(l,ee,ut)}e.insertStatementsAfterStandardPrologue=A;function _e(l,ee){return G(l,ee,pe)}e.insertStatementsAfterCustomPrologue=_e;function Se(l,ee){return Y(l,ee,ut)}e.insertStatementAfterStandardPrologue=Se;function ae(l,ee){return Y(l,ee,pe)}e.insertStatementAfterCustomPrologue=ae;function D(l,ee,or){if(l.charCodeAt(ee+1)===47&&ee+2<or&&l.charCodeAt(ee+2)===47){var jr=l.substring(ee,or);return!!(e.fullTripleSlashReferencePathRegEx.test(jr)||e.fullTripleSlashAMDReferencePathRegEx.test(jr)||st.test(jr)||$t.test(jr))}return!1}e.isRecognizedTripleSlashComment=D;function be(l,ee){return l.charCodeAt(ee+1)===42&&l.charCodeAt(ee+2)===33}e.isPinnedComment=be;function ne(l,ee){var or=new e.Map(ee.map(function(Dn){return["".concat(e.getLineAndCharacterOfPosition(l,Dn.range.end).line),Dn]})),jr=new e.Map;return{getUnusedExpectations:Ot,markUsed:Nn};function Ot(){return e.arrayFrom(or.entries()).filter(function(Dn){var ma=Dn[0],hi=Dn[1];return hi.type===0&&!jr.get(ma)}).map(function(Dn){var ma=Dn[0],hi=Dn[1];return hi})}function Nn(Dn){return or.has("".concat(Dn))?(jr.set("".concat(Dn),!0),!0):!1}}e.createCommentDirectivesMap=ne;function J(l,ee,or){return R(l)?l.pos:e.isJSDocNode(l)||l.kind===11?e.skipTrivia((ee||H(l)).text,l.pos,!1,!0):or&&e.hasJSDocNodes(l)?J(l.jsDoc[0],ee):l.kind===346&&l._children.length>0?J(l._children[0],ee,or):e.skipTrivia((ee||H(l)).text,l.pos,!1,!1,tt(l))}e.getTokenPosOfNode=J;function le(l,ee){return R(l)||!l.decorators?J(l,ee):e.skipTrivia((ee||H(l)).text,l.decorators.end)}e.getNonDecoratorTokenPosOfNode=le;function Te(l,ee,or){return or===void 0&&(or=!1),Ae(l.text,ee,or)}e.getSourceTextOfNodeFromSourceFile=Te;function Me(l){return!!e.findAncestor(l,e.isJSDocTypeExpression)}function Ke(l){return!!(e.isExportDeclaration(l)&&l.exportClause&&e.isNamespaceExport(l.exportClause)&&l.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Ke;function Ae(l,ee,or){if(or===void 0&&(or=!1),R(ee))return"";var jr=l.substring(or?ee.pos:e.skipTrivia(l,ee.pos),ee.end);return Me(ee)&&(jr=jr.split(/\r\n|\n|\r/).map(function(Ot){return e.trimStringStart(Ot.replace(/^\s*\*/,""))}).join(`
`)),jr}e.getTextOfNodeFromSourceText=Ae;function Ge(l,ee){return ee===void 0&&(ee=!1),Te(H(l),l,ee)}e.getTextOfNode=Ge;function se(l){return l.pos}function xe(l,ee){return e.binarySearch(l,ee,se,e.compareValues)}e.indexOfNode=xe;function Re(l){var ee=l.emitNode;return ee&&ee.flags||0}e.getEmitFlags=Re;function ce(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},esnext:{NumberFormat:["formatToParts"]}}}e.getScriptTargetFeatures=ce;var Ue;(function(l){l[l.None=0]="None",l[l.NeverAsciiEscape=1]="NeverAsciiEscape",l[l.JsxAttributeEscape=2]="JsxAttributeEscape",l[l.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",l[l.AllowNumericSeparator=8]="AllowNumericSeparator"})(Ue=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function We(l,ee,or){var jr;if(Ne(l,or))return Te(ee,l);switch(l.kind){case 10:{var Ot=or&2?Wl:or&1||Re(l)&16777216?Yc:lf;return l.singleQuote?"'"+Ot(l.text,39)+"'":'"'+Ot(l.text,34)+'"'}case 14:case 15:case 16:case 17:{var Ot=or&1||Re(l)&16777216?Yc:lf,Nn=(jr=l.rawText)!==null&&jr!==void 0?jr:dd(Ot(l.text,96));switch(l.kind){case 14:return"`"+Nn+"`";case 15:return"`"+Nn+"${";case 16:return"}"+Nn+"${";case 17:return"}"+Nn+"`"}break}case 8:case 9:return l.text;case 13:return or&4&&l.isUnterminated?l.text+(l.text.charCodeAt(l.text.length-1)===92?" /":"/"):l.text}return e.Debug.fail("Literal kind '".concat(l.kind,"' not accounted for."))}e.getLiteralText=We;function Ne(l,ee){return Kd(l)||!l.parent||ee&4&&l.isUnterminated?!1:e.isNumericLiteral(l)&&l.numericLiteralFlags&512?!!(ee&8):!e.isBigIntLiteral(l)}function ve(l){return e.isString(l)?'"'+lf(l)+'"':""+l}e.getTextOfConstantValue=ve;function Ve(l){return e.getBaseFileName(l).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=Ve;function gr(l){return(e.getCombinedNodeFlags(l)&3)!==0||Er(l)}e.isBlockOrCatchScoped=gr;function Er(l){var ee=Nf(l);return ee.kind===253&&ee.parent.kind===291}e.isCatchClauseVariableDeclarationOrBindingElement=Er;function Nr(l){return e.isModuleDeclaration(l)&&(l.name.kind===10||Ar(l))}e.isAmbientModule=Nr;function ur(l){return e.isModuleDeclaration(l)&&l.name.kind===10}e.isModuleWithStringLiteralName=ur;function xr(l){return e.isModuleDeclaration(l)&&e.isStringLiteral(l.name)}e.isNonGlobalAmbientModule=xr;function sr(l){return e.isModuleDeclaration(l)||e.isIdentifier(l)}e.isEffectiveModuleDeclaration=sr;function i(l){return Mr(l.valueDeclaration)}e.isShorthandAmbientModuleSymbol=i;function Mr(l){return!!l&&l.kind===260&&!l.body}function fr(l){return l.kind===303||l.kind===260||e.isFunctionLikeOrClassStaticBlockDeclaration(l)}e.isBlockScopedContainerTopLevel=fr;function Ar(l){return!!(l.flags&1024)}e.isGlobalScopeAugmentation=Ar;function de(l){return Nr(l)&&we(l)}e.isExternalModuleAugmentation=de;function we(l){switch(l.parent.kind){case 303:return e.isExternalModule(l.parent);case 261:return Nr(l.parent.parent)&&e.isSourceFile(l.parent.parent.parent)&&!e.isExternalModule(l.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=we;function qe(l){var ee;return(ee=l.declarations)===null||ee===void 0?void 0:ee.find(function(or){return!de(or)&&!(e.isModuleDeclaration(or)&&Ar(or))})}e.getNonAugmentationDeclaration=qe;function Cr(l){return l===e.ModuleKind.CommonJS||l===e.ModuleKind.Node12||l===e.ModuleKind.NodeNext}function kr(l,ee){return e.isExternalModule(l)||ee.isolatedModules||Cr(Gs(ee))&&!!l.commonJsModuleIndicator}e.isEffectiveExternalModule=kr;function He(l,ee){switch(l.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return l.isDeclarationFile?!1:Mo(ee,"alwaysStrict")||e.startsWithUseStrict(l.statements)?!0:e.isExternalModule(l)||ee.isolatedModules?Gs(ee)>=e.ModuleKind.ES2015?!0:!ee.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=He;function lr(l,ee){switch(l.kind){case 303:case 262:case 291:case 260:case 241:case 242:case 243:case 170:case 168:case 171:case 172:case 255:case 212:case 213:case 166:case 169:return!0;case 234:return!e.isFunctionLikeOrClassStaticBlockDeclaration(ee)}return!1}e.isBlockScope=lr;function Hr(l){switch(l.kind){case 336:case 343:case 321:return!0;default:return e.assertType(l),Je(l)}}e.isDeclarationWithTypeParameters=Hr;function Je(l){switch(l.kind){case 173:case 174:case 167:case 175:case 178:case 179:case 315:case 256:case 225:case 257:case 258:case 342:case 255:case 168:case 170:case 171:case 172:case 212:case 213:return!0;default:return e.assertType(l),!1}}e.isDeclarationWithTypeParameterChildren=Je;function Sr(l){switch(l.kind){case 265:case 264:return!0;default:return!1}}e.isAnyImportSyntax=Sr;function Yr(l){switch(l.kind){case 265:case 264:case 236:case 256:case 255:case 260:case 258:case 257:case 259:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=Yr;function ot(l){return _t(l)||e.isModuleDeclaration(l)||e.isImportTypeNode(l)||yr(l)}e.hasPossibleExternalModuleReference=ot;function _t(l){return Sr(l)||e.isExportDeclaration(l)}e.isAnyImportOrReExport=_t;function kt(l){return e.findAncestor(l.parent,function(ee){return lr(ee,ee.parent)})}e.getEnclosingBlockScopeContainer=kt;function Yt(l,ee){for(var or=kt(l);or;)ee(or),or=kt(or)}e.forEachEnclosingBlockScopeContainer=Yt;function vn(l){return!l||K(l)===0?"(Missing)":Ge(l)}e.declarationNameToString=vn;function Mn(l){return l.declaration?vn(l.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=Mn;function qn(l){return l.kind===161&&!vu(l.expression)}e.isComputedNonLiteralName=qn;function nr(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(l.text);case 161:return vu(l.expression)?e.escapeLeadingUnderscores(l.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(l)}}e.getTextOfPropertyName=nr;function Zr(l){switch(l.kind){case 108:return"this";case 80:case 79:return K(l)===0?e.idText(l):Ge(l);case 160:return Zr(l.left)+"."+Zr(l.right);case 205:return e.isIdentifier(l.name)||e.isPrivateIdentifier(l.name)?Zr(l.expression)+"."+Zr(l.name):e.Debug.assertNever(l.name);case 309:return Zr(l.left)+Zr(l.right);default:return e.Debug.assertNever(l)}}e.entityNameToString=Zr;function ir(l,ee,or,jr,Ot,Nn){var Dn=H(l);return rr(Dn,l,ee,or,jr,Ot,Nn)}e.createDiagnosticForNode=ir;function ge(l,ee,or,jr,Ot,Nn,Dn){var ma=e.skipTrivia(l.text,ee.pos);return V_(l,ma,ee.end-ma,or,jr,Ot,Nn,Dn)}e.createDiagnosticForNodeArray=ge;function rr(l,ee,or,jr,Ot,Nn,Dn){var ma=ke(l,ee);return V_(l,ma.start,ma.length,or,jr,Ot,Nn,Dn)}e.createDiagnosticForNodeInSourceFile=rr;function pr(l,ee,or){var jr=H(l),Ot=ke(jr,l);return Ce(jr,Ot.start,Ot.length,ee,or)}e.createDiagnosticForNodeFromMessageChain=pr;function Lr(l,ee,or){e.Debug.assertGreaterThanOrEqual(ee,0),e.Debug.assertGreaterThanOrEqual(or,0),l&&(e.Debug.assertLessThanOrEqual(ee,l.text.length),e.Debug.assertLessThanOrEqual(ee+or,l.text.length))}function Ce(l,ee,or,jr,Ot){return Lr(l,ee,or),{file:l,start:ee,length:or,code:jr.code,category:jr.category,messageText:jr.next?jr:jr.messageText,relatedInformation:Ot}}e.createFileDiagnosticFromMessageChain=Ce;function cr(l,ee,or){return{file:l,start:0,length:0,code:ee.code,category:ee.category,messageText:ee.next?ee:ee.messageText,relatedInformation:or}}e.createDiagnosticForFileFromMessageChain=cr;function $e(l,ee,or){return{file:l,start:ee.pos,length:ee.end-ee.pos,code:or.code,category:or.category,messageText:or.message}}e.createDiagnosticForRange=$e;function De(l,ee){var or=e.createScanner(l.languageVersion,!0,l.languageVariant,l.text,void 0,ee);or.scan();var jr=or.getTokenPos();return e.createTextSpanFromBounds(jr,or.getTextPos())}e.getSpanOfTokenAtPosition=De;function z(l,ee){var or=e.skipTrivia(l.text,ee.pos);if(ee.body&&ee.body.kind===234){var jr=e.getLineAndCharacterOfPosition(l,ee.body.pos).line,Ot=e.getLineAndCharacterOfPosition(l,ee.body.end).line;if(jr<Ot)return e.createTextSpan(or,_(jr,l)-or+1)}return e.createTextSpanFromBounds(or,ee.end)}function ke(l,ee){var or=ee;switch(ee.kind){case 303:var jr=e.skipTrivia(l.text,0,!1);return jr===l.text.length?e.createTextSpan(0,0):De(l,jr);case 253:case 202:case 256:case 225:case 257:case 260:case 259:case 297:case 255:case 212:case 168:case 171:case 172:case 258:case 166:case 165:case 267:or=ee.name;break;case 213:return z(l,ee);case 288:case 289:var Ot=e.skipTrivia(l.text,ee.pos),Nn=ee.statements.length>0?ee.statements[0].pos:ee.end;return e.createTextSpanFromBounds(Ot,Nn)}if(or===void 0)return De(l,ee.pos);e.Debug.assert(!e.isJSDoc(or));var Dn=R(or),ma=Dn||e.isJsxText(ee)?or.pos:e.skipTrivia(l.text,or.pos);return Dn?(e.Debug.assert(ma===or.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ma===or.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(ma>=or.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(ma<=or.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(ma,or.end)}e.getErrorSpanForNode=ke;function dr(l){return(l.externalModuleIndicator||l.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=dr;function Xe(l){return l.scriptKind===6}e.isJsonSourceFile=Xe;function Qe(l){return!!(e.getCombinedModifierFlags(l)&2048)}e.isEnumConst=Qe;function Ir(l){return!!(e.getCombinedModifierFlags(l)&64&&!e.isParameterPropertyDeclaration(l,l.parent))}e.isDeclarationReadonly=Ir;function Jr(l){return!!(e.getCombinedNodeFlags(l)&2)}e.isVarConst=Jr;function Or(l){return!!(e.getCombinedNodeFlags(l)&1)}e.isLet=Or;function Be(l){return l.kind===207&&l.expression.kind===106}e.isSuperCall=Be;function yr(l){return l.kind===207&&l.expression.kind===100}e.isImportCall=yr;function Rr(l){return e.isMetaProperty(l)&&l.keywordToken===100&&l.name.escapedText==="meta"}e.isImportMeta=Rr;function zr(l){return e.isImportTypeNode(l)&&e.isLiteralTypeNode(l.argument)&&e.isStringLiteral(l.argument.literal)}e.isLiteralImportTypeNode=zr;function ut(l){return l.kind===237&&l.expression.kind===10}e.isPrologueDirective=ut;function mt(l){return!!(Re(l)&1048576)}e.isCustomPrologue=mt;function Lt(l){return mt(l)&&e.isFunctionDeclaration(l)}e.isHoistedFunction=Lt;function vt(l){return e.isIdentifier(l.name)&&!l.initializer}function pt(l){return mt(l)&&e.isVariableStatement(l)&&e.every(l.declarationList.declarations,vt)}e.isHoistedVariableStatement=pt;function Nt(l,ee){return l.kind!==11?e.getLeadingCommentRanges(ee.text,l.pos):void 0}e.getLeadingCommentRangesOfNode=Nt;function Xt(l,ee){var or=l.kind===163||l.kind===162||l.kind===212||l.kind===213||l.kind===211||l.kind===253?e.concatenate(e.getTrailingCommentRanges(ee,l.pos),e.getLeadingCommentRanges(ee,l.pos)):e.getLeadingCommentRanges(ee,l.pos);return e.filter(or,function(jr){return ee.charCodeAt(jr.pos+1)===42&&ee.charCodeAt(jr.pos+2)===42&&ee.charCodeAt(jr.pos+3)!==47})}e.getJSDocCommentRanges=Xt,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var st=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var $t=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function Pn(l){if(176<=l.kind&&l.kind<=199)return!0;switch(l.kind){case 130:case 154:case 146:case 157:case 149:case 133:case 150:case 147:case 152:case 143:return!0;case 114:return l.parent.kind!==216;case 227:return!Wf(l);case 162:return l.parent.kind===194||l.parent.kind===189;case 79:(l.parent.kind===160&&l.parent.right===l||l.parent.kind===205&&l.parent.name===l)&&(l=l.parent),e.Debug.assert(l.kind===79||l.kind===160||l.kind===205,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 160:case 205:case 108:{var ee=l.parent;if(ee.kind===180)return!1;if(ee.kind===199)return!ee.isTypeOf;if(176<=ee.kind&&ee.kind<=199)return!0;switch(ee.kind){case 227:return!Wf(ee);case 162:return l===ee.constraint;case 342:return l===ee.constraint;case 166:case 165:case 163:case 253:return l===ee.type;case 255:case 212:case 213:case 170:case 168:case 167:case 171:case 172:return l===ee.type;case 173:case 174:case 175:return l===ee.type;case 210:return l===ee.type;case 207:case 208:return e.contains(ee.typeArguments,l);case 209:return!1}}}return!1}e.isPartOfTypeNode=Pn;function Ea(l,ee){for(;l;){if(l.kind===ee)return!0;l=l.parent}return!1}e.isChildOfNodeWithKind=Ea;function ia(l,ee){return or(l);function or(jr){switch(jr.kind){case 246:return ee(jr);case 262:case 234:case 238:case 239:case 240:case 241:case 242:case 243:case 247:case 248:case 288:case 289:case 249:case 251:case 291:return e.forEachChild(jr,or)}}}e.forEachReturnStatement=ia;function pa(l,ee){return or(l);function or(jr){switch(jr.kind){case 223:ee(jr);var Ot=jr.expression;Ot&&or(Ot);return;case 259:case 257:case 260:case 258:return;default:if(e.isFunctionLike(jr)){if(jr.name&&jr.name.kind===161){or(jr.name.expression);return}}else Pn(jr)||e.forEachChild(jr,or)}}}e.forEachYieldExpression=pa;function Gn(l){return l&&l.kind===182?l.elementType:l&&l.kind===177?e.singleOrUndefined(l.typeArguments):void 0}e.getRestParameterElementType=Gn;function nn(l){switch(l.kind){case 257:case 256:case 225:case 181:return l.members;case 204:return l.properties}}e.getMembersOfDeclaration=nn;function bt(l){if(l)switch(l.kind){case 202:case 297:case 163:case 294:case 166:case 165:case 295:case 253:return!0}return!1}e.isVariableLike=bt;function Ut(l){return bt(l)||e.isAccessor(l)}e.isVariableLikeOrAccessor=Ut;function Kt(l){return l.parent.kind===254&&l.parent.parent.kind===236}e.isVariableDeclarationInVariableStatement=Kt;function bn(l){return e.isVariableDeclaration(l)?Jr(l)&&e.isIdentifier(l.name)&&Kt(l):e.isPropertyDeclaration(l)?ml(l)&&Vu(l):e.isPropertySignature(l)&&ml(l)}e.isValidESSymbolDeclaration=bn;function wn(l){switch(l.kind){case 168:case 167:case 170:case 171:case 172:case 255:case 212:return!0}return!1}e.introducesArgumentsExoticObject=wn;function ra(l,ee){for(;;){if(ee&&ee(l),l.statement.kind!==249)return l.statement;l=l.statement}}e.unwrapInnermostStatementOfLabel=ra;function ft(l){return l&&l.kind===234&&e.isFunctionLike(l.parent)}e.isFunctionBlock=ft;function Ct(l){return l&&l.kind===168&&l.parent.kind===204}e.isObjectLiteralMethod=Ct;function Pt(l){return(l.kind===168||l.kind===171||l.kind===172)&&(l.parent.kind===204||l.parent.kind===225)}e.isObjectLiteralOrClassExpressionMethodOrAccessor=Pt;function Et(l){return l&&l.kind===1}e.isIdentifierTypePredicate=Et;function et(l){return l&&l.kind===0}e.isThisTypePredicate=et;function hn(l,ee,or){return l.properties.filter(function(jr){if(jr.kind===294){var Ot=nr(jr.name);return ee===Ot||!!or&&or===Ot}return!1})}e.getPropertyAssignment=hn;function Qn(l,ee,or){return e.firstDefined(hn(l,ee),function(jr){return e.isArrayLiteralExpression(jr.initializer)?e.find(jr.initializer.elements,function(Ot){return e.isStringLiteral(Ot)&&Ot.text===or}):void 0})}e.getPropertyArrayElementValue=Qn;function Ra(l){if(l&&l.statements.length){var ee=l.statements[0].expression;return e.tryCast(ee,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=Ra;function Ki(l,ee,or){return e.firstDefined(di(l,ee),function(jr){return e.isArrayLiteralExpression(jr.initializer)?e.find(jr.initializer.elements,function(Ot){return e.isStringLiteral(Ot)&&Ot.text===or}):void 0})}e.getTsConfigPropArrayElementValue=Ki;function di(l,ee){var or=Ra(l);return or?hn(or,ee):e.emptyArray}e.getTsConfigPropArray=di;function ya(l){return e.findAncestor(l.parent,e.isFunctionLike)}e.getContainingFunction=ya;function $a(l){return e.findAncestor(l.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=$a;function ao(l){return e.findAncestor(l.parent,e.isClassLike)}e.getContainingClass=ao;function ei(l){return e.findAncestor(l.parent,function(ee){return e.isClassLike(ee)||e.isFunctionLike(ee)?"quit":e.isClassStaticBlockDeclaration(ee)})}e.getContainingClassStaticBlock=ei;function Fi(l){return e.findAncestor(l.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}e.getContainingFunctionOrClassStaticBlock=Fi;function eo(l,ee){for(e.Debug.assert(l.kind!==303);;){if(l=l.parent,!l)return e.Debug.fail();switch(l.kind){case 161:if(e.isClassLike(l.parent.parent))return l;l=l.parent;break;case 164:l.parent.kind===163&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break;case 213:if(!ee)continue;case 255:case 212:case 260:case 169:case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 173:case 174:case 175:case 259:case 303:return l}}}e.getThisContainer=eo;function Wo(l){e.isIdentifier(l)&&(e.isClassDeclaration(l.parent)||e.isFunctionDeclaration(l.parent))&&l.parent.name===l&&(l=l.parent);var ee=eo(l,!0);return e.isSourceFile(ee)}e.isInTopLevelContext=Wo;function Yi(l){var ee=eo(l,!1);if(ee)switch(ee.kind){case 170:case 255:case 212:return ee}}e.getNewTargetContainer=Yi;function Ni(l,ee){for(;;){if(l=l.parent,!l)return l;switch(l.kind){case 161:l=l.parent;break;case 255:case 212:case 213:if(!ee)continue;case 166:case 165:case 168:case 167:case 170:case 171:case 172:case 169:return l;case 164:l.parent.kind===163&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break}}}e.getSuperContainer=Ni;function Eo(l){if(l.kind===212||l.kind===213){for(var ee=l,or=l.parent;or.kind===211;)ee=or,or=or.parent;if(or.kind===207&&or.expression===ee)return or}}e.getImmediatelyInvokedFunctionExpression=Eo;function lo(l){return l.kind===106||So(l)}e.isSuperOrSuperProperty=lo;function So(l){var ee=l.kind;return(ee===205||ee===206)&&l.expression.kind===106}e.isSuperProperty=So;function ts(l){var ee=l.kind;return(ee===205||ee===206)&&l.expression.kind===108}e.isThisProperty=ts;function ja(l){var ee;return!!l&&e.isVariableDeclaration(l)&&((ee=l.initializer)===null||ee===void 0?void 0:ee.kind)===108}e.isThisInitializedDeclaration=ja;function Do(l){return!!l&&(e.isShorthandPropertyAssignment(l)||e.isPropertyAssignment(l))&&e.isBinaryExpression(l.parent.parent)&&l.parent.parent.operatorToken.kind===63&&l.parent.parent.right.kind===108}e.isThisInitializedObjectBindingExpression=Do;function Pa(l){switch(l.kind){case 177:return l.typeName;case 227:return Jl(l.expression)?l.expression:void 0;case 79:case 160:return l}}e.getEntityNameFromTypeNode=Pa;function Ti(l){switch(l.kind){case 209:return l.tag;case 279:case 278:return l.tagName;default:return l.expression}}e.getInvokedExpression=Ti;function mo(l,ee,or){if(e.isNamedDeclaration(l)&&e.isPrivateIdentifier(l.name))return!1;switch(l.kind){case 256:return!0;case 166:return ee.kind===256;case 171:case 172:case 168:return l.body!==void 0&&ee.kind===256;case 163:return ee.body!==void 0&&(ee.kind===170||ee.kind===168||ee.kind===172)&&or.kind===256}return!1}e.nodeCanBeDecorated=mo;function No(l,ee,or){return l.decorators!==void 0&&mo(l,ee,or)}e.nodeIsDecorated=No;function ko(l,ee,or){return No(l,ee,or)||Oo(l,ee)}e.nodeOrChildIsDecorated=ko;function Oo(l,ee){switch(l.kind){case 256:return e.some(l.members,function(or){return ko(or,l,ee)});case 168:case 172:case 170:return e.some(l.parameters,function(or){return No(or,l,ee)});default:return!1}}e.childIsDecorated=Oo;function Po(l){if(No(l))return!0;var ee=Zc(l);return!!ee&&Oo(ee,l)}e.classOrConstructorParameterIsDecorated=Po;function Ss(l){var ee=l.parent;return ee.kind===279||ee.kind===278||ee.kind===280?ee.tagName===l:!1}e.isJSXTagName=Ss;function Ds(l){switch(l.kind){case 106:case 104:case 110:case 95:case 13:case 203:case 204:case 205:case 206:case 207:case 208:case 209:case 228:case 210:case 229:case 211:case 212:case 225:case 213:case 216:case 214:case 215:case 218:case 219:case 220:case 221:case 224:case 222:case 226:case 277:case 278:case 281:case 223:case 217:case 230:return!0;case 160:for(;l.parent.kind===160;)l=l.parent;return l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||Ss(l);case 309:for(;e.isJSDocMemberName(l.parent);)l=l.parent;return l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||Ss(l);case 80:return e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===101;case 79:if(l.parent.kind===180||e.isJSDocLinkLike(l.parent)||e.isJSDocNameReference(l.parent)||e.isJSDocMemberName(l.parent)||Ss(l))return!0;case 8:case 9:case 10:case 14:case 108:return vr(l);default:return!1}}e.isExpressionNode=Ds;function vr(l){var ee=l.parent;switch(ee.kind){case 253:case 163:case 166:case 165:case 297:case 294:case 202:return ee.initializer===l;case 237:case 238:case 239:case 240:case 246:case 247:case 248:case 288:case 250:return ee.expression===l;case 241:var or=ee;return or.initializer===l&&or.initializer.kind!==254||or.condition===l||or.incrementor===l;case 242:case 243:var jr=ee;return jr.initializer===l&&jr.initializer.kind!==254||jr.expression===l;case 210:case 228:return l===ee.expression;case 232:return l===ee.expression;case 161:return l===ee.expression;case 164:case 287:case 286:case 296:return!0;case 227:return ee.expression===l&&Wf(ee);case 295:return ee.objectAssignmentInitializer===l;default:return Ds(ee)}}e.isInExpressionContext=vr;function gt(l){for(;l.kind===160||l.kind===79;)l=l.parent;return l.kind===180}e.isPartOfTypeQuery=gt;function tn(l){return e.isNamespaceExport(l)&&!!l.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=tn;function Bn(l){return l.kind===264&&l.moduleReference.kind===276}e.isExternalModuleImportEqualsDeclaration=Bn;function Fe(l){return e.Debug.assert(Bn(l)),l.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=Fe;function Gr(l){return va(l)&&er(l.initializer).arguments[0]}e.getExternalModuleRequireArgument=Gr;function ht(l){return l.kind===264&&l.moduleReference.kind!==276}e.isInternalModuleImportEqualsDeclaration=ht;function ye(l){return Pe(l)}e.isSourceFileJS=ye;function oe(l){return!Pe(l)}e.isSourceFileNotJS=oe;function Pe(l){return!!l&&!!(l.flags&131072)}e.isInJSFile=Pe;function Ye(l){return!!l&&!!(l.flags&33554432)}e.isInJsonFile=Ye;function Tr(l){return!Xe(l)}e.isSourceFileNotJson=Tr;function tt(l){return!!l&&!!(l.flags&4194304)}e.isInJSDoc=tt;function Mt(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)&&l.typeName.escapedText==="Object"&&l.typeArguments&&l.typeArguments.length===2&&(l.typeArguments[0].kind===149||l.typeArguments[0].kind===146)}e.isJSDocIndexSignature=Mt;function Wt(l,ee){if(l.kind!==207)return!1;var or=l,jr=or.expression,Ot=or.arguments;if(jr.kind!==79||jr.escapedText!=="require"||Ot.length!==1)return!1;var Nn=Ot[0];return!ee||e.isStringLiteralLike(Nn)}e.isRequireCall=Wt;function Ln(l){return ti(l,!1)}e.isVariableDeclarationInitializedToRequire=Ln;function va(l){return ti(l,!0)}e.isVariableDeclarationInitializedToBareOrAccessedRequire=va;function ti(l,ee){return l.kind===202&&(l=l.parent.parent),e.isVariableDeclaration(l)&&!!l.initializer&&Wt(ee?er(l.initializer):l.initializer,!0)}function ii(l){return e.isVariableStatement(l)&&l.declarationList.declarations.length>0&&e.every(l.declarationList.declarations,function(ee){return Ln(ee)})}e.isRequireVariableStatement=ii;function Si(l){return l===39||l===34}e.isSingleOrDoubleQuote=Si;function Oi(l,ee){return Te(ee,l).charCodeAt(0)===34}e.isStringDoubleQuoted=Oi;function _s(l){return e.isBinaryExpression(l)||zl(l)||e.isIdentifier(l)||e.isCallExpression(l)}e.isAssignmentDeclaration=_s;function os(l){return Pe(l)&&l.initializer&&e.isBinaryExpression(l.initializer)&&(l.initializer.operatorToken.kind===56||l.initializer.operatorToken.kind===60)&&l.name&&Jl(l.name)&&Ca(l.name,l.initializer.left)?l.initializer.right:l.initializer}e.getEffectiveInitializer=os;function jo(l){var ee=os(l);return ee&&sa(ee,pn(l.name))}e.getDeclaredExpandoInitializer=jo;function At(l,ee){return e.forEach(l.properties,function(or){return e.isPropertyAssignment(or)&&e.isIdentifier(or.name)&&or.name.escapedText==="value"&&or.initializer&&sa(or.initializer,ee)})}function Wn(l){if(l&&l.parent&&e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63){var ee=pn(l.parent.left);return sa(l.parent.right,ee)||oi(l.parent.left,l.parent.right,ee)}if(l&&e.isCallExpression(l)&&ns(l)){var or=At(l.arguments[2],l.arguments[1].text==="prototype");if(or)return or}}e.getAssignedExpandoInitializer=Wn;function sa(l,ee){if(e.isCallExpression(l)){var or=Ci(l.expression);return or.kind===212||or.kind===213?l:void 0}if(l.kind===212||l.kind===225||l.kind===213||e.isObjectLiteralExpression(l)&&(l.properties.length===0||ee))return l}e.getExpandoInitializer=sa;function oi(l,ee,or){var jr=e.isBinaryExpression(ee)&&(ee.operatorToken.kind===56||ee.operatorToken.kind===60)&&sa(ee.right,or);if(jr&&Ca(l,ee.left))return jr}function vi(l){var ee=e.isVariableDeclaration(l.parent)?l.parent.name:e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===63?l.parent.left:void 0;return ee&&sa(l.right,pn(ee))&&Jl(ee)&&Ca(ee,l.left)}e.isDefaultedExpandoInitializer=vi;function Ui(l){if(e.isBinaryExpression(l.parent)){var ee=(l.parent.operatorToken.kind===56||l.parent.operatorToken.kind===60)&&e.isBinaryExpression(l.parent.parent)?l.parent.parent:l.parent;if(ee.operatorToken.kind===63&&e.isIdentifier(ee.left))return ee.left}else if(e.isVariableDeclaration(l.parent))return l.parent.name}e.getNameOfExpando=Ui;function Ca(l,ee){if(jd(l)&&jd(ee))return cd(l)===cd(ee);if(e.isIdentifier(l)&&me(ee)&&(ee.expression.kind===108||e.isIdentifier(ee.expression)&&(ee.expression.escapedText==="window"||ee.expression.escapedText==="self"||ee.expression.escapedText==="global"))){var or=an(ee);return e.isPrivateIdentifier(or)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ca(l,or)}return me(l)&&me(ee)?Qa(l)===Qa(ee)&&Ca(l.expression,ee.expression):!1}e.isSameEntityName=Ca;function gi(l){for(;Du(l,!0);)l=l.right;return l}e.getRightMostAssignedExpression=gi;function Mi(l){return e.isIdentifier(l)&&l.escapedText==="exports"}e.isExportsIdentifier=Mi;function Vi(l){return e.isIdentifier(l)&&l.escapedText==="module"}e.isModuleIdentifier=Vi;function Ro(l){return(e.isPropertyAccessExpression(l)||Pr(l))&&Vi(l.expression)&&Qa(l)==="exports"}e.isModuleExportsAccessExpression=Ro;function Yo(l){var ee=Xn(l);return ee===5||Pe(l)?ee:0}e.getAssignmentDeclarationKind=Yo;function ns(l){return e.length(l.arguments)===3&&e.isPropertyAccessExpression(l.expression)&&e.isIdentifier(l.expression.expression)&&e.idText(l.expression.expression)==="Object"&&e.idText(l.expression.name)==="defineProperty"&&vu(l.arguments[1])&&Xr(l.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=ns;function me(l){return e.isPropertyAccessExpression(l)||Pr(l)}e.isLiteralLikeAccess=me;function Pr(l){return e.isElementAccessExpression(l)&&vu(l.argumentExpression)}e.isLiteralLikeElementAccess=Pr;function yt(l,ee){return e.isPropertyAccessExpression(l)&&(!ee&&l.expression.kind===108||e.isIdentifier(l.name)&&Xr(l.expression,!0))||Le(l,ee)}e.isBindableStaticAccessExpression=yt;function Le(l,ee){return Pr(l)&&(!ee&&l.expression.kind===108||Jl(l.expression)||yt(l.expression,!0))}e.isBindableStaticElementAccessExpression=Le;function Xr(l,ee){return Jl(l)||yt(l,ee)}e.isBindableStaticNameExpression=Xr;function an(l){return e.isPropertyAccessExpression(l)?l.name:l.argumentExpression}e.getNameOrArgument=an;function Xn(l){if(e.isCallExpression(l)){if(!ns(l))return 0;var ee=l.arguments[0];return Mi(ee)||Ro(ee)?8:yt(ee)&&Qa(ee)==="prototype"?9:7}return l.operatorToken.kind!==63||!zl(l.left)||da(gi(l))?0:Xr(l.left.expression,!0)&&Qa(l.left)==="prototype"&&e.isObjectLiteralExpression(wr(l))?6:go(l.left)}function da(l){return e.isVoidExpression(l)&&e.isNumericLiteral(l.expression)&&l.expression.text==="0"}function bi(l){if(e.isPropertyAccessExpression(l))return l.name;var ee=Ci(l.argumentExpression);return e.isNumericLiteral(ee)||e.isStringLiteralLike(ee)?ee:l}e.getElementOrPropertyAccessArgumentExpressionOrName=bi;function Qa(l){var ee=bi(l);if(ee){if(e.isIdentifier(ee))return ee.escapedText;if(e.isStringLiteralLike(ee)||e.isNumericLiteral(ee))return e.escapeLeadingUnderscores(ee.text)}}e.getElementOrPropertyAccessName=Qa;function go(l){if(l.expression.kind===108)return 4;if(Ro(l))return 2;if(Xr(l.expression,!0)){if(pn(l.expression))return 3;for(var ee=l;!e.isIdentifier(ee.expression);)ee=ee.expression;var or=ee.expression;if((or.escapedText==="exports"||or.escapedText==="module"&&Qa(ee)==="exports")&&yt(l))return 1;if(Xr(l,!0)||e.isElementAccessExpression(l)&&Wd(l))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=go;function wr(l){for(;e.isBinaryExpression(l.right);)l=l.right;return l.right}e.getInitializerOfBinaryExpression=wr;function ss(l){return e.isBinaryExpression(l)&&Yo(l)===3}e.isPrototypePropertyAssignment=ss;function al(l){return Pe(l)&&l.parent&&l.parent.kind===237&&(!e.isElementAccessExpression(l)||Pr(l))&&!!e.getJSDocTypeTag(l.parent)}e.isSpecialPropertyDeclaration=al;function Sl(l,ee){var or=l.valueDeclaration;(!or||!(ee.flags&8388608&&!(or.flags&8388608))&&_s(or)&&!_s(ee)||or.kind!==ee.kind&&sr(or))&&(l.valueDeclaration=ee)}e.setValueDeclaration=Sl;function zo(l){if(!l||!l.valueDeclaration)return!1;var ee=l.valueDeclaration;return ee.kind===255||e.isVariableDeclaration(ee)&&ee.initializer&&e.isFunctionLike(ee.initializer)}e.isFunctionSymbol=zo;function bs(l){var ee,or,jr;switch(l.kind){case 253:return l.initializer.arguments[0].text;case 265:return(ee=e.tryCast(l.moduleSpecifier,e.isStringLiteralLike))===null||ee===void 0?void 0:ee.text;case 264:return(jr=e.tryCast((or=e.tryCast(l.moduleReference,e.isExternalModuleReference))===null||or===void 0?void 0:or.expression,e.isStringLiteralLike))===null||jr===void 0?void 0:jr.text;default:e.Debug.assertNever(l)}}e.tryGetModuleSpecifierFromDeclaration=bs;function xl(l){return ic(l)||e.Debug.failBadSyntaxKind(l.parent)}e.importFromModuleSpecifier=xl;function ic(l){switch(l.parent.kind){case 265:case 271:return l.parent;case 276:return l.parent.parent;case 207:return yr(l.parent)||Wt(l.parent,!1)?l.parent:void 0;case 195:return e.Debug.assert(e.isStringLiteral(l)),e.tryCast(l.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=ic;function Vl(l){switch(l.kind){case 265:case 271:return l.moduleSpecifier;case 264:return l.moduleReference.kind===276?l.moduleReference.expression:void 0;case 199:return zr(l)?l.argument.literal:void 0;case 207:return l.arguments[0];case 260:return l.name.kind===10?l.name:void 0;default:return e.Debug.assertNever(l)}}e.getExternalModuleName=Vl;function zc(l){switch(l.kind){case 265:return l.importClause&&e.tryCast(l.importClause.namedBindings,e.isNamespaceImport);case 264:return l;case 271:return l.exportClause&&e.tryCast(l.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(l)}}e.getNamespaceDeclarationNode=zc;function io(l){return l.kind===265&&!!l.importClause&&!!l.importClause.name}e.isDefaultImport=io;function Zl(l,ee){if(l.name){var or=ee(l);if(or)return or}if(l.namedBindings){var or=e.isNamespaceImport(l.namedBindings)?ee(l.namedBindings):e.forEach(l.namedBindings.elements,ee);if(or)return or}}e.forEachImportClauseDeclaration=Zl;function Oc(l){if(l)switch(l.kind){case 163:case 168:case 167:case 295:case 294:case 166:case 165:return l.questionToken!==void 0}return!1}e.hasQuestionToken=Oc;function ul(l){var ee=e.isJSDocFunctionType(l)?e.firstOrUndefined(l.parameters):void 0,or=e.tryCast(ee&&ee.name,e.isIdentifier);return!!or&&or.escapedText==="new"}e.isJSDocConstructSignature=ul;function oc(l){return l.kind===343||l.kind===336||l.kind===337}e.isJSDocTypeAlias=oc;function sc(l){return oc(l)||e.isTypeAliasDeclaration(l)}e.isTypeAlias=sc;function Ia(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&l.expression.operatorToken.kind===63?gi(l.expression):void 0}function tf(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&Yo(l.expression)!==0&&e.isBinaryExpression(l.expression.right)&&(l.expression.right.operatorToken.kind===56||l.expression.right.operatorToken.kind===60)?l.expression.right.right:void 0}function Rc(l){switch(l.kind){case 236:var ee=lc(l);return ee&&ee.initializer;case 166:return l.initializer;case 294:return l.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Rc;function lc(l){return e.isVariableStatement(l)?e.firstOrUndefined(l.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=lc;function Fr(l){return e.isModuleDeclaration(l)&&l.body&&l.body.kind===260?l.body:void 0}function rt(l,ee){var or;bt(l)&&e.hasInitializer(l)&&e.hasJSDocNodes(l.initializer)&&(or=e.addRange(or,Dt(l,e.last(l.initializer.jsDoc))));for(var jr=l;jr&&jr.parent;){if(e.hasJSDocNodes(jr)&&(or=e.addRange(or,Dt(l,e.last(jr.jsDoc)))),jr.kind===163){or=e.addRange(or,(ee?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(jr));break}if(jr.kind===162){or=e.addRange(or,(ee?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(jr));break}jr=_n(jr)}return or||e.emptyArray}e.getJSDocCommentsAndTags=rt;function Dt(l,ee){if(e.isJSDoc(ee)){var or=e.filter(ee.tags,function(jr){return zt(l,jr)});return ee.tags===or?[ee]:or}return zt(l,ee)?[ee]:void 0}function zt(l,ee){return!e.isJSDocTypeTag(ee)||!ee.parent||!e.isJSDoc(ee.parent)||!e.isParenthesizedExpression(ee.parent.parent)||ee.parent.parent===l}function _n(l){var ee=l.parent;if(ee.kind===294||ee.kind===270||ee.kind===166||ee.kind===237&&l.kind===205||ee.kind===246||Fr(ee)||e.isBinaryExpression(l)&&l.operatorToken.kind===63)return ee;if(ee.parent&&(lc(ee.parent)===l||e.isBinaryExpression(ee)&&ee.operatorToken.kind===63))return ee.parent;if(ee.parent&&ee.parent.parent&&(lc(ee.parent.parent)||Rc(ee.parent.parent)===l||tf(ee.parent.parent)))return ee.parent.parent}e.getNextJSDocCommentLocation=_n;function dn(l){if(l.symbol)return l.symbol;if(!!e.isIdentifier(l.name)){var ee=l.name.escapedText,or=Jn(l);if(!!or){var jr=e.find(or.parameters,function(Ot){return Ot.name.kind===79&&Ot.name.escapedText===ee});return jr&&jr.symbol}}}e.getParameterSymbolFromJSDoc=dn;function On(l){if(e.isJSDoc(l.parent)&&l.parent.tags){var ee=e.find(l.parent.tags,oc);if(ee)return ee}return Jn(l)}e.getEffectiveContainerForJSDocTemplateTag=On;function Jn(l){var ee=Fa(l);return ee&&e.isFunctionLike(ee)?ee:void 0}e.getHostSignatureFromJSDoc=Jn;function Fa(l){var ee=fa(l);if(ee)return tf(ee)||Ia(ee)||Rc(ee)||lc(ee)||Fr(ee)||ee}e.getEffectiveJSDocHost=Fa;function fa(l){var ee=ba(l);if(!!ee){var or=ee.parent;if(or&&or.jsDoc&&ee===e.lastOrUndefined(or.jsDoc))return or}}e.getJSDocHost=fa;function ba(l){return e.findAncestor(l.parent,e.isJSDoc)}e.getJSDocRoot=ba;function Na(l){var ee=l.name.escapedText,or=l.parent.parent.parent.typeParameters;return or&&e.find(or,function(jr){return jr.name.escapedText===ee})}e.getTypeParameterFromJsDoc=Na;function he(l){var ee=e.lastOrUndefined(l.parameters);return!!ee&&ar(ee)}e.hasRestParameter=he;function ar(l){var ee=e.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;return l.dotDotDotToken!==void 0||!!ee&&ee.kind===316}e.isRestParameter=ar;function hr(l){return!!l.typeArguments}e.hasTypeArguments=hr;var dt;(function(l){l[l.None=0]="None",l[l.Definite=1]="Definite",l[l.Compound=2]="Compound"})(dt=e.AssignmentKind||(e.AssignmentKind={}));function en(l){for(var ee=l.parent;;){switch(ee.kind){case 220:var or=ee.operatorToken.kind;return ju(or)&&ee.left===l?or===63||hd(or)?1:2:0;case 218:case 219:var jr=ee.operator;return jr===45||jr===46?2:0;case 242:case 243:return ee.initializer===l?1:0;case 211:case 203:case 224:case 229:l=ee;break;case 296:l=ee.parent;break;case 295:if(ee.name!==l)return 0;l=ee.parent;break;case 294:if(ee.name===l)return 0;l=ee.parent;break;default:return 0}ee=l.parent}}e.getAssignmentTargetKind=en;function ta(l){return en(l)!==0}e.isAssignmentTarget=ta;function Un(l){switch(l.kind){case 234:case 236:case 247:case 238:case 248:case 262:case 288:case 289:case 249:case 241:case 242:case 243:case 239:case 240:case 251:case 291:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=Un;function Ta(l){return e.isFunctionExpression(l)||e.isArrowFunction(l)||e.isMethodOrAccessor(l)||e.isFunctionDeclaration(l)||e.isConstructorDeclaration(l)}e.isValueSignatureDeclaration=Ta;function Ei(l,ee){for(;l&&l.kind===ee;)l=l.parent;return l}function Qi(l){return Ei(l,190)}e.walkUpParenthesizedTypes=Qi;function Wi(l){return Ei(l,211)}e.walkUpParenthesizedExpressions=Wi;function Ai(l){for(var ee;l&&l.kind===190;)ee=l,l=l.parent;return[ee,l]}e.walkUpParenthesizedTypesAndGetParentAndChild=Ai;function Ci(l,ee){var or=ee?17:1;return e.skipOuterExpressions(l,or)}e.skipParentheses=Ci;function Fo(l){return l.kind!==205&&l.kind!==206?!1:(l=Wi(l.parent),l&&l.kind===214)}e.isDeleteTarget=Fo;function xo(l,ee){for(;l;){if(l===ee)return!0;l=l.parent}return!1}e.isNodeDescendantOf=xo;function js(l){return!e.isSourceFile(l)&&!e.isBindingPattern(l)&&e.isDeclaration(l.parent)&&l.parent.name===l}e.isDeclarationName=js;function Dl(l){var ee=l.parent;switch(l.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(ee))return ee.parent;case 79:if(e.isDeclaration(ee))return ee.name===l?ee:void 0;if(e.isQualifiedName(ee)){var or=ee.parent;return e.isJSDocParameterTag(or)&&or.name===ee?or:void 0}else{var jr=ee.parent;return e.isBinaryExpression(jr)&&Yo(jr)!==0&&(jr.left.symbol||jr.symbol)&&e.getNameOfDeclaration(jr)===l?jr:void 0}case 80:return e.isDeclaration(ee)&&ee.name===l?ee:void 0;default:return}}e.getDeclarationFromName=Dl;function cc(l){return vu(l)&&l.parent.kind===161&&e.isDeclaration(l.parent.parent)}e.isLiteralComputedPropertyDeclarationName=cc;function qc(l){var ee=l.parent;switch(ee.kind){case 166:case 165:case 168:case 167:case 171:case 172:case 297:case 294:case 205:return ee.name===l;case 160:return ee.right===l;case 202:case 269:return ee.propertyName===l;case 274:case 284:return!0}return!1}e.isIdentifierName=qc;function Br(l){return l.kind===264||l.kind===263||l.kind===266&&!!l.name||l.kind===267||l.kind===273||l.kind===269||l.kind===274||l.kind===270&&wc(l)||e.isBinaryExpression(l)&&Yo(l)===2&&wc(l)||e.isPropertyAccessExpression(l)&&e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===63&&Nl(l.parent.right)||l.kind===295||l.kind===294&&Nl(l.initializer)}e.isAliasSymbolDeclaration=Br;function Il(l){switch(l.parent.kind){case 266:case 269:case 267:case 274:case 270:case 264:return l.parent;case 160:do l=l.parent;while(l.parent.kind===160);return Il(l)}}e.getAliasDeclarationFromName=Il;function Nl(l){return Jl(l)||e.isClassExpression(l)}e.isAliasableExpression=Nl;function wc(l){var ee=fl(l);return Nl(ee)}e.exportAssignmentIsAlias=wc;function fl(l){return e.isExportAssignment(l)?l.expression:l.right}e.getExportAssignmentExpression=fl;function Mc(l){return l.kind===295?l.name:l.kind===294?l.initializer:l.parent.right}e.getPropertyAssignmentAliasLikeExpression=Mc;function sd(l){var ee=co(l);if(ee&&Pe(l)){var or=e.getJSDocAugmentsTag(l);if(or)return or.class}return ee}e.getEffectiveBaseTypeNode=sd;function co(l){var ee=cs(l.heritageClauses,94);return ee&&ee.types.length>0?ee.types[0]:void 0}e.getClassExtendsHeritageElement=co;function Fd(l){if(Pe(l))return e.getJSDocImplementsTags(l).map(function(or){return or.class});var ee=cs(l.heritageClauses,117);return ee==null?void 0:ee.types}e.getEffectiveImplementsTypeNodes=Fd;function bp(l){return e.isInterfaceDeclaration(l)?ld(l)||e.emptyArray:e.isClassLike(l)&&e.concatenate(e.singleElementArray(sd(l)),Fd(l))||e.emptyArray}e.getAllSuperTypeNodes=bp;function ld(l){var ee=cs(l.heritageClauses,94);return ee?ee.types:void 0}e.getInterfaceBaseTypeNodes=ld;function cs(l,ee){if(l)for(var or=0,jr=l;or<jr.length;or++){var Ot=jr[or];if(Ot.token===ee)return Ot}}e.getHeritageClause=cs;function nf(l,ee){for(;l;){if(l.kind===ee)return l;l=l.parent}}e.getAncestor=nf;function hc(l){return 81<=l&&l<=159}e.isKeyword=hc;function Gd(l){return 126<=l&&l<=159}e.isContextualKeyword=Gd;function Ll(l){return hc(l)&&!Gd(l)}e.isNonContextualKeyword=Ll;function Bd(l){return 117<=l&&l<=125}e.isFutureReservedKeyword=Bd;function qs(l){var ee=e.stringToToken(l);return ee!==void 0&&Ll(ee)}e.isStringANonContextualKeyword=qs;function Va(l){var ee=e.stringToToken(l);return ee!==void 0&&hc(ee)}e.isStringAKeyword=Va;function Zn(l){var ee=l.originalKeywordKind;return!!ee&&!Gd(ee)}e.isIdentifierANonContextualKeyword=Zn;function Pc(l){return 2<=l&&l<=7}e.isTrivia=Pc;var Al;(function(l){l[l.Normal=0]="Normal",l[l.Generator=1]="Generator",l[l.Async=2]="Async",l[l.Invalid=4]="Invalid",l[l.AsyncGenerator=3]="AsyncGenerator"})(Al=e.FunctionFlags||(e.FunctionFlags={}));function Ud(l){if(!l)return 4;var ee=0;switch(l.kind){case 255:case 212:case 168:l.asteriskToken&&(ee|=1);case 213:Rs(l,256)&&(ee|=2);break}return l.body||(ee|=4),ee}e.getFunctionFlags=Ud;function af(l){switch(l.kind){case 255:case 212:case 213:case 168:return l.body!==void 0&&l.asteriskToken===void 0&&Rs(l,256)}return!1}e.isAsyncFunction=af;function vu(l){return e.isStringLiteralLike(l)||e.isNumericLiteral(l)}e.isStringOrNumericLiteralLike=vu;function Ho(l){return e.isPrefixUnaryExpression(l)&&(l.operator===39||l.operator===40)&&e.isNumericLiteral(l.operand)}e.isSignedNumericLiteral=Ho;function Vd(l){var ee=e.getNameOfDeclaration(l);return!!ee&&Wd(ee)}e.hasDynamicName=Vd;function Wd(l){if(!(l.kind===161||l.kind===206))return!1;var ee=e.isElementAccessExpression(l)?Ci(l.argumentExpression):l.expression;return!vu(ee)&&!Ho(ee)}e.isDynamicName=Wd;function of(l){switch(l.kind){case 79:case 80:return l.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(l.text);case 161:var ee=l.expression;return vu(ee)?e.escapeLeadingUnderscores(ee.text):Ho(ee)?ee.operator===40?e.tokenToString(ee.operator)+ee.operand.text:ee.operand.text:void 0;default:return e.Debug.assertNever(l)}}e.getPropertyNameForPropertyNameNode=of;function jd(l){switch(l.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}e.isPropertyNameLiteral=jd;function cd(l){return e.isMemberName(l)?e.idText(l):l.text}e.getTextOfIdentifierOrLiteral=cd;function $l(l){return e.isMemberName(l)?l.escapedText:e.escapeLeadingUnderscores(l.text)}e.getEscapedTextOfIdentifierOrLiteral=$l;function o_(l){return"__@".concat(e.getSymbolId(l),"@").concat(l.escapedName)}e.getPropertyNameForUniqueESSymbol=o_;function Hd(l,ee){return"__#".concat(e.getSymbolId(l),"@").concat(ee)}e.getSymbolNameForPrivateIdentifier=Hd;function Jd(l){return e.startsWith(l.escapedName,"__@")}e.isKnownSymbol=Jd;function Ep(l){return e.startsWith(l.escapedName,"__#")}e.isPrivateIdentifierSymbol=Ep;function s_(l){return l.kind===79&&l.escapedText==="Symbol"}e.isESSymbolIdentifier=s_;function Tp(l){return l.escapedText==="push"||l.escapedText==="unshift"}e.isPushOrUnshiftIdentifier=Tp;function Sp(l){var ee=Nf(l);return ee.kind===163}e.isParameterDeclaration=Sp;function Nf(l){for(;l.kind===202;)l=l.parent.parent;return l}e.getRootDeclaration=Nf;function l_(l){var ee=l.kind;return ee===170||ee===212||ee===255||ee===213||ee===168||ee===171||ee===172||ee===260||ee===303}e.nodeStartsNewLexicalEnvironment=l_;function Kd(l){return $g(l.pos)||$g(l.end)}e.nodeIsSynthesized=Kd;function Dp(l){return e.getParseTreeNode(l,e.isSourceFile)||l}e.getOriginalSourceFile=Dp;var P_;(function(l){l[l.Left=0]="Left",l[l.Right=1]="Right"})(P_=e.Associativity||(e.Associativity={}));function hu(l){var ee=ec(l),or=l.kind===208&&l.arguments!==void 0;return Fc(l.kind,ee,or)}e.getExpressionAssociativity=hu;function Fc(l,ee,or){switch(l){case 208:return or?0:1;case 218:case 215:case 216:case 214:case 217:case 221:case 223:return 1;case 220:switch(ee){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}e.getOperatorAssociativity=Fc;function uc(l){var ee=ec(l),or=l.kind===208&&l.arguments!==void 0;return kf(l.kind,ee,or)}e.getExpressionPrecedence=uc;function ec(l){return l.kind===220?l.operatorToken.kind:l.kind===218||l.kind===219?l.operator:l.kind}e.getOperator=ec;var ud;(function(l){l[l.Comma=0]="Comma",l[l.Spread=1]="Spread",l[l.Yield=2]="Yield",l[l.Assignment=3]="Assignment",l[l.Conditional=4]="Conditional",l[l.Coalesce=4]="Coalesce",l[l.LogicalOR=5]="LogicalOR",l[l.LogicalAND=6]="LogicalAND",l[l.BitwiseOR=7]="BitwiseOR",l[l.BitwiseXOR=8]="BitwiseXOR",l[l.BitwiseAND=9]="BitwiseAND",l[l.Equality=10]="Equality",l[l.Relational=11]="Relational",l[l.Shift=12]="Shift",l[l.Additive=13]="Additive",l[l.Multiplicative=14]="Multiplicative",l[l.Exponentiation=15]="Exponentiation",l[l.Unary=16]="Unary",l[l.Update=17]="Update",l[l.LeftHandSide=18]="LeftHandSide",l[l.Member=19]="Member",l[l.Primary=20]="Primary",l[l.Highest=20]="Highest",l[l.Lowest=0]="Lowest",l[l.Invalid=-1]="Invalid"})(ud=e.OperatorPrecedence||(e.OperatorPrecedence={}));function kf(l,ee,or){switch(l){case 349:return 0;case 224:return 1;case 223:return 2;case 221:return 4;case 220:switch(ee){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return fd(ee)}case 210:case 229:case 218:case 215:case 216:case 214:case 217:return 16;case 219:return 17;case 207:return 18;case 208:return or?19:18;case 209:case 205:case 206:case 230:return 19;case 228:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 203:case 204:case 212:case 213:case 225:case 13:case 14:case 222:case 211:case 226:case 277:case 278:case 281:return 20;default:return-1}}e.getOperatorPrecedence=kf;function fd(l){switch(l){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.getBinaryOperatorPrecedence=fd;function c_(l){return e.filter(l,function(ee){switch(ee.kind){case 287:return!!ee.expression;case 11:return!ee.containsOnlyTriviaWhiteSpaces;default:return!0}})}e.getSemanticJsxChildren=c_;function sf(){var l=[],ee=[],or=new e.Map,jr=!1;return{add:Nn,lookup:Ot,getGlobalDiagnostics:Dn,getDiagnostics:ma};function Ot(hi){var li;if(hi.file?li=or.get(hi.file.fileName):li=l,!!li){var fo=e.binarySearch(li,hi,e.identity,_m);if(fo>=0)return li[fo]}}function Nn(hi){var li;hi.file?(li=or.get(hi.file.fileName),li||(li=[],or.set(hi.file.fileName,li),e.insertSorted(ee,hi.file.fileName,e.compareStringsCaseSensitive))):(jr&&(jr=!1,l=l.slice()),li=l),e.insertSorted(li,hi,h_)}function Dn(){return jr=!0,l}function ma(hi){if(hi)return or.get(hi)||[];var li=e.flatMapToMutable(ee,function(fo){return or.get(fo)});return l.length&&li.unshift.apply(li,l),li}}e.createDiagnosticCollection=sf;var F_=/\$\{/g;function dd(l){return l.replace(F_,"\\${")}function u_(l){return l&&!!(e.isNoSubstitutionTemplateLiteral(l)?l.templateFlags:l.head.templateFlags||e.some(l.templateSpans,function(ee){return!!ee.literal.templateFlags}))}e.hasInvalidEscape=u_;var Of=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,zd=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Bu=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,qd=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function ks(l){var ee=l.toString(16).toUpperCase(),or=("0000"+ee).slice(-4);return"\\u"+or}function Xc(l,ee,or){if(l.charCodeAt(0)===0){var jr=or.charCodeAt(ee+l.length);return jr>=48&&jr<=57?"\\x00":"\\0"}return qd.get(l)||ks(l.charCodeAt(0))}function Yc(l,ee){var or=ee===96?Bu:ee===39?zd:Of;return l.replace(or,Xc)}e.escapeString=Yc;var f_=/[^\u0000-\u007F]/g;function lf(l,ee){return l=Yc(l,ee),f_.test(l)?l.replace(f_,function(or){return ks(or.charCodeAt(0))}):l}e.escapeNonAsciiString=lf;var Uu=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,G_=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Gc=new e.Map(e.getEntries({'"':"&quot;","'":"&apos;"}));function kl(l){var ee=l.toString(16).toUpperCase();return"&#x"+ee+";"}function Qc(l){return l.charCodeAt(0)===0?"&#0;":Gc.get(l)||kl(l.charCodeAt(0))}function Wl(l,ee){var or=ee===39?G_:Uu;return l.replace(or,Qc)}e.escapeJsxAttributeString=Wl;function Bc(l){var ee=l.length;return ee>=2&&l.charCodeAt(0)===l.charCodeAt(ee-1)&&Xd(l.charCodeAt(0))?l.substring(1,ee-1):l}e.stripQuotes=Bc;function Xd(l){return l===39||l===34||l===96}function pd(l){var ee=l.charCodeAt(0);return ee>=97&&ee<=122||e.stringContains(l,"-")||e.stringContains(l,":")}e.isIntrinsicJsxName=pd;var yu=[""," "];function Rf(l){for(var ee=yu[1],or=yu.length;or<=l;or++)yu.push(yu[or-1]+ee);return yu[l]}e.getIndentString=Rf;function Zi(){return yu[1].length}e.getIndentSize=Zi;function cf(l){var ee,or,jr,Ot,Nn,Dn=!1;function ma(as){var pi=e.computeLineStarts(as);pi.length>1?(Ot=Ot+pi.length-1,Nn=ee.length-as.length+e.last(pi),jr=Nn-ee.length===0):jr=!1}function hi(as){as&&as.length&&(jr&&(as=Rf(or)+as,jr=!1),ee+=as,ma(as))}function li(as){as&&(Dn=!1),hi(as)}function fo(as){as&&(Dn=!0),hi(as)}function to(){ee="",or=0,jr=!0,Ot=0,Nn=0,Dn=!1}function ll(as){as!==void 0&&(ee+=as,ma(as),Dn=!1)}function Qs(as){as&&as.length&&li(as)}function Ts(as){(!jr||as)&&(ee+=l,Ot++,Nn=ee.length,jr=!0,Dn=!1)}function Ac(){return jr?ee.length:ee.length+l.length}return to(),{write:li,rawWrite:ll,writeLiteral:Qs,writeLine:Ts,increaseIndent:function(){or++},decreaseIndent:function(){or--},getIndent:function(){return or},getTextPos:function(){return ee.length},getLine:function(){return Ot},getColumn:function(){return jr?or*Zi():ee.length-Nn},getText:function(){return ee},isAtStartOfLine:function(){return jr},hasTrailingComment:function(){return Dn},hasTrailingWhitespace:function(){return!!ee.length&&e.isWhiteSpaceLike(ee.charCodeAt(ee.length-1))},clear:to,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:li,writeOperator:li,writeParameter:li,writeProperty:li,writePunctuation:li,writeSpace:li,writeStringLiteral:li,writeSymbol:function(as,pi){return li(as)},writeTrailingSemicolon:li,writeComment:fo,getTextPosWithWriteLine:Ac}}e.createTextWriter=cf;function wo(l){var ee=!1;function or(){ee&&(l.writeTrailingSemicolon(";"),ee=!1)}return kn(kn({},l),{writeTrailingSemicolon:function(){ee=!0},writeLiteral:function(jr){or(),l.writeLiteral(jr)},writeStringLiteral:function(jr){or(),l.writeStringLiteral(jr)},writeSymbol:function(jr,Ot){or(),l.writeSymbol(jr,Ot)},writePunctuation:function(jr){or(),l.writePunctuation(jr)},writeKeyword:function(jr){or(),l.writeKeyword(jr)},writeOperator:function(jr){or(),l.writeOperator(jr)},writeParameter:function(jr){or(),l.writeParameter(jr)},writeSpace:function(jr){or(),l.writeSpace(jr)},writeProperty:function(jr){or(),l.writeProperty(jr)},writeComment:function(jr){or(),l.writeComment(jr)},writeLine:function(){or(),l.writeLine()},increaseIndent:function(){or(),l.increaseIndent()},decreaseIndent:function(){or(),l.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=wo;function Go(l){return l.useCaseSensitiveFileNames?l.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=Go;function Lp(l){return e.createGetCanonicalFileName(Go(l))}e.hostGetCanonicalFileName=Lp;function rc(l,ee,or){return ee.moduleName||us(l,ee.fileName,or&&or.fileName)}e.getResolvedExternalModuleName=rc;function wf(l,ee){return l.getCanonicalFileName(e.getNormalizedAbsolutePath(ee,l.getCurrentDirectory()))}function Cn(l,ee,or){var jr=ee.getExternalModuleFileFromDeclaration(or);if(!(!jr||jr.isDeclarationFile)){var Ot=Vl(or);if(!(Ot&&e.isStringLiteralLike(Ot)&&!e.pathIsRelative(Ot.text)&&wf(l,jr.path).indexOf(wf(l,e.ensureTrailingDirectorySeparator(l.getCommonSourceDirectory())))===-1))return rc(l,jr)}}e.getExternalModuleNameFromDeclaration=Cn;function us(l,ee,or){var jr=function(hi){return l.getCanonicalFileName(hi)},Ot=e.toPath(or?e.getDirectoryPath(or):l.getCommonSourceDirectory(),l.getCurrentDirectory(),jr),Nn=e.getNormalizedAbsolutePath(ee,l.getCurrentDirectory()),Dn=e.getRelativePathToDirectoryOrUrl(Ot,Nn,Ot,jr,!1),ma=ym(Dn);return or?e.ensurePathIsNonModuleName(ma):ma}e.getExternalModuleNameFromPath=us;function ui(l,ee,or){var jr=ee.getCompilerOptions(),Ot;return jr.outDir?Ot=ym(fc(l,ee,jr.outDir)):Ot=ym(l),Ot+or}e.getOwnEmitOutputFilePath=ui;function yc(l,ee){return Ap(l,ee.getCompilerOptions(),ee.getCurrentDirectory(),ee.getCommonSourceDirectory(),function(or){return ee.getCanonicalFileName(or)})}e.getDeclarationEmitOutputFilePath=yc;function Ap(l,ee,or,jr,Ot){var Nn=ee.declarationDir||ee.outDir,Dn=Nn?jl(l,Nn,or,jr,Ot):l,ma=Xs(Dn);return ym(Dn)+ma}e.getDeclarationEmitOutputFilePathWorker=Ap;function Xs(l){return e.fileExtensionIsOneOf(l,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(l,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(l,[".json"])?".json.d.ts":".d.ts"}e.getDeclarationEmitExtensionForPath=Xs;function An(l){return l.outFile||l.out}e.outFile=An;function d_(l,ee){var or,jr;if(!!l.paths)return(or=l.baseUrl)!==null&&or!==void 0?or:e.Debug.checkDefined(l.pathsBasePath||((jr=ee.getCurrentDirectory)===null||jr===void 0?void 0:jr.call(ee)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=d_;function fs(l,ee,or){var jr=l.getCompilerOptions();if(An(jr)){var Ot=Gs(jr),Nn=jr.emitDeclarationOnly||Ot===e.ModuleKind.AMD||Ot===e.ModuleKind.System;return e.filter(l.getSourceFiles(),function(ma){return(Nn||!e.isExternalModule(ma))&&ls(ma,l,or)})}else{var Dn=ee===void 0?l.getSourceFiles():[ee];return e.filter(Dn,function(ma){return ls(ma,l,or)})}}e.getSourceFilesToEmit=fs;function ls(l,ee,or){var jr=ee.getCompilerOptions();return!(jr.noEmitForJsFiles&&ye(l))&&!l.isDeclarationFile&&!ee.isSourceFileFromExternalLibrary(l)&&(or||!(Xe(l)&&ee.getResolvedProjectReferenceToRedirect(l.fileName))&&!ee.isSourceOfProjectReferenceRedirect(l.fileName))}e.sourceFileMayBeEmitted=ls;function fc(l,ee,or){return jl(l,or,ee.getCurrentDirectory(),ee.getCommonSourceDirectory(),function(jr){return ee.getCanonicalFileName(jr)})}e.getSourceFilePathInNewDir=fc;function jl(l,ee,or,jr,Ot){var Nn=e.getNormalizedAbsolutePath(l,or),Dn=Ot(Nn).indexOf(Ot(jr))===0;return Nn=Dn?Nn.substring(jr.length):Nn,e.combinePaths(ee,Nn)}e.getSourceFilePathInNewDirWorker=jl;function Mf(l,ee,or,jr,Ot,Nn){l.writeFile(or,jr,Ot,function(Dn){ee.add(Xm(e.Diagnostics.Could_not_write_file_0_Colon_1,or,Dn))},Nn)}e.writeFile=Mf;function Ys(l,ee,or){if(l.length>e.getRootLength(l)&&!or(l)){var jr=e.getDirectoryPath(l);Ys(jr,ee,or),ee(l)}}function bc(l,ee,or,jr,Ot,Nn){try{jr(l,ee,or)}catch(Dn){Ys(e.getDirectoryPath(e.normalizePath(l)),Ot,Nn),jr(l,ee,or)}}e.writeFileEnsuringDirectories=bc;function Pf(l,ee){var or=e.getLineStarts(l);return e.computeLineOfPosition(or,ee)}e.getLineOfLocalPosition=Pf;function Ec(l,ee){return e.computeLineOfPosition(l,ee)}e.getLineOfLocalPositionFromLineMap=Ec;function Zc(l){return e.find(l.members,function(ee){return e.isConstructorDeclaration(ee)&&b(ee.body)})}e.getFirstConstructorWithBody=Zc;function bu(l){if(l&&l.parameters.length>0){var ee=l.parameters.length===2&&Eu(l.parameters[0]);return l.parameters[ee?1:0]}}e.getSetAccessorValueParameter=bu;function _l(l){var ee=bu(l);return ee&&ee.type}e.getSetAccessorTypeAnnotationNode=_l;function Cp(l){if(l.parameters.length&&!e.isJSDocSignature(l)){var ee=l.parameters[0];if(Eu(ee))return ee}}e.getThisParameter=Cp;function Eu(l){return uf(l.name)}e.parameterIsThisKeyword=Eu;function uf(l){return!!l&&l.kind===79&&_d(l)}e.isThisIdentifier=uf;function Ff(l){if(!uf(l))return!1;for(;e.isQualifiedName(l.parent)&&l.parent.left===l;)l=l.parent;return l.parent.kind===180}e.isThisInTypeQuery=Ff;function _d(l){return l.originalKeywordKind===108}e.identifierIsThisKeyword=_d;function ff(l,ee){var or,jr,Ot,Nn;return Vd(ee)?(or=ee,ee.kind===171?Ot=ee:ee.kind===172?Nn=ee:e.Debug.fail("Accessor has wrong kind")):e.forEach(l,function(Dn){if(e.isAccessor(Dn)&&Gf(Dn)===Gf(ee)){var ma=of(Dn.name),hi=of(ee.name);ma===hi&&(or?jr||(jr=Dn):or=Dn,Dn.kind===171&&!Ot&&(Ot=Dn),Dn.kind===172&&!Nn&&(Nn=Dn))}}),{firstAccessor:or,secondAccessor:jr,getAccessor:Ot,setAccessor:Nn}}e.getAllAccessorDeclarations=ff;function dc(l){if(!(!Pe(l)&&e.isFunctionDeclaration(l))){var ee=l.type;return ee||!Pe(l)?ee:e.isJSDocPropertyLikeTag(l)?l.typeExpression&&l.typeExpression.type:e.getJSDocType(l)}}e.getEffectiveTypeAnnotationNode=dc;function md(l){return l.type}e.getTypeAnnotationNode=md;function Yd(l){return e.isJSDocSignature(l)?l.type&&l.type.typeExpression&&l.type.typeExpression.type:l.type||(Pe(l)?e.getJSDocReturnType(l):void 0)}e.getEffectiveReturnTypeNode=Yd;function Tu(l){return e.flatMap(e.getJSDocTags(l),function(ee){return il(ee)?ee.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=Tu;function il(l){return e.isJSDocTemplateTag(l)&&!(l.parent.kind===318&&l.parent.tags.some(oc))}function Ol(l){var ee=bu(l);return ee&&dc(ee)}e.getEffectiveSetAccessorTypeAnnotationNode=Ol;function $c(l,ee,or,jr){df(l,ee,or.pos,jr)}e.emitNewLineBeforeLeadingComments=$c;function df(l,ee,or,jr){jr&&jr.length&&or!==jr[0].pos&&Ec(l,or)!==Ec(l,jr[0].pos)&&ee.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=df;function Ha(l,ee,or,jr){or!==jr&&Ec(l,or)!==Ec(l,jr)&&ee.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=Ha;function xn(l,ee,or,jr,Ot,Nn,Dn,ma){if(jr&&jr.length>0){Ot&&or.writeSpace(" ");for(var hi=!1,li=0,fo=jr;li<fo.length;li++){var to=fo[li];hi&&(or.writeSpace(" "),hi=!1),ma(l,ee,or,to.pos,to.end,Dn),to.hasTrailingNewLine?or.writeLine():hi=!0}hi&&Nn&&or.writeSpace(" ")}}e.emitComments=xn;function Ls(l,ee,or,jr,Ot,Nn,Dn){var ma,hi;if(Dn?Ot.pos===0&&(ma=e.filter(e.getLeadingCommentRanges(l,Ot.pos),pi)):ma=e.getLeadingCommentRanges(l,Ot.pos),ma){for(var li=[],fo=void 0,to=0,ll=ma;to<ll.length;to++){var Qs=ll[to];if(fo){var Ts=Ec(ee,fo.end),Ac=Ec(ee,Qs.pos);if(Ac>=Ts+2)break}li.push(Qs),fo=Qs}if(li.length){var Ts=Ec(ee,e.last(li).end),as=Ec(ee,e.skipTrivia(l,Ot.pos));as>=Ts+2&&($c(ee,or,Ot,ma),xn(l,ee,or,li,!1,!0,Nn,jr),hi={nodePos:Ot.pos,detachedCommentEndPos:e.last(li).end})}}return hi;function pi(ip){return be(l,ip.pos)}}e.emitDetachedComments=Ls;function xp(l,ee,or,jr,Ot,Nn){if(l.charCodeAt(jr+1)===42)for(var Dn=e.computeLineAndCharacterOfPosition(ee,jr),ma=ee.length,hi=void 0,li=jr,fo=Dn.line;li<Ot;fo++){var to=fo+1===ma?l.length+1:ee[fo+1];if(li!==jr){hi===void 0&&(hi=pf(l,ee[Dn.line],jr));var ll=or.getIndent()*Zi(),Qs=ll-hi+pf(l,li,to);if(Qs>0){var Ts=Qs%Zi(),Ac=Rf((Qs-Ts)/Zi());for(or.rawWrite(Ac);Ts;)or.rawWrite(" "),Ts--}else or.rawWrite("")}Qd(l,Ot,or,Nn,li,to),li=to}else or.writeComment(l.substring(jr,Ot))}e.writeCommentRange=xp;function Qd(l,ee,or,jr,Ot,Nn){var Dn=Math.min(ee,Nn-1),ma=e.trimString(l.substring(Ot,Dn));ma?(or.writeComment(ma),Dn!==ee&&or.writeLine()):or.rawWrite(jr)}function pf(l,ee,or){for(var jr=0;ee<or&&e.isWhiteSpaceSingleLine(l.charCodeAt(ee));ee++)l.charCodeAt(ee)===9?jr+=Zi()-jr%Zi():jr++;return jr}function _f(l){return Su(l)!==0}e.hasEffectiveModifiers=_f;function gd(l){return Bf(l)!==0}e.hasSyntacticModifiers=gd;function Hl(l,ee){return!!p_(l,ee)}e.hasEffectiveModifier=Hl;function Rs(l,ee){return!!tc(l,ee)}e.hasSyntacticModifier=Rs;function Gf(l){return e.isClassElement(l)&&Vu(l)||e.isClassStaticBlockDeclaration(l)}e.isStatic=Gf;function Vu(l){return Rs(l,32)}e.hasStaticModifier=Vu;function dl(l){return Hl(l,16384)}e.hasOverrideModifier=dl;function Ip(l){return Rs(l,128)}e.hasAbstractModifier=Ip;function $o(l){return Rs(l,2)}e.hasAmbientModifier=$o;function ml(l){return Hl(l,64)}e.hasEffectiveReadonlyModifier=ml;function p_(l,ee){return Su(l)&ee}e.getSelectedEffectiveModifierFlags=p_;function tc(l,ee){return Bf(l)&ee}e.getSelectedSyntacticModifierFlags=tc;function mf(l,ee,or){return l.kind>=0&&l.kind<=159?0:(l.modifierFlagsCache&536870912||(l.modifierFlagsCache=Wu(l)|536870912),ee&&!(l.modifierFlagsCache&4096)&&(or||Pe(l))&&l.parent&&(l.modifierFlagsCache|=Rl(l)|4096),l.modifierFlagsCache&-536875009)}function Su(l){return mf(l,!0)}e.getEffectiveModifierFlags=Su;function Np(l){return mf(l,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=Np;function Bf(l){return mf(l,!1)}e.getSyntacticModifierFlags=Bf;function Rl(l){var ee=0;return!!l.parent&&!e.isParameter(l)&&(Pe(l)&&(e.getJSDocPublicTagNoCache(l)&&(ee|=4),e.getJSDocPrivateTagNoCache(l)&&(ee|=8),e.getJSDocProtectedTagNoCache(l)&&(ee|=16),e.getJSDocReadonlyTagNoCache(l)&&(ee|=64),e.getJSDocOverrideTagNoCache(l)&&(ee|=16384)),e.getJSDocDeprecatedTagNoCache(l)&&(ee|=8192)),ee}function es(l){return Wu(l)|Rl(l)}e.getEffectiveModifierFlagsNoCache=es;function Wu(l){var ee=Uf(l.modifiers);return(l.flags&4||l.kind===79&&l.isInJSDocNamespace)&&(ee|=1),ee}e.getSyntacticModifierFlagsNoCache=Wu;function Uf(l){var ee=0;if(l)for(var or=0,jr=l;or<jr.length;or++){var Ot=jr[or];ee|=eu(Ot.kind)}return ee}e.modifiersToFlags=Uf;function eu(l){switch(l){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 144:return 64;case 158:return 16384}return 0}e.modifierToFlag=eu;function Vf(l){return l?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(l)):void 0}e.createModifiers=Vf;function vd(l){return l===56||l===55||l===53}e.isLogicalOperator=vd;function hd(l){return l===75||l===76||l===77}e.isLogicalOrCoalescingAssignmentOperator=hd;function gf(l){return hd(l.operatorToken.kind)}e.isLogicalOrCoalescingAssignmentExpression=gf;function ju(l){return l>=63&&l<=78}e.isAssignmentOperator=ju;function Uc(l){var ee=Zd(l);return ee&&!ee.isImplements?ee.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=Uc;function Zd(l){return e.isExpressionWithTypeArguments(l)&&e.isHeritageClause(l.parent)&&e.isClassLike(l.parent.parent)?{class:l.parent.parent,isImplements:l.parent.token===117}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Zd;function Du(l,ee){return e.isBinaryExpression(l)&&(ee?l.operatorToken.kind===63:ju(l.operatorToken.kind))&&e.isLeftHandSideExpression(l.left)}e.isAssignmentExpression=Du;function vf(l){return Du(l.parent)&&l.parent.left===l}e.isLeftHandSideOfAssignment=vf;function Hu(l){if(Du(l,!0)){var ee=l.left.kind;return ee===204||ee===203}return!1}e.isDestructuringAssignment=Hu;function Wf(l){return Uc(l)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=Wf;function Jl(l){return l.kind===79||Ja(l)}e.isEntityNameExpression=Jl;function Ju(l){switch(l.kind){case 79:return l;case 160:do l=l.left;while(l.kind!==79);return l;case 205:do l=l.expression;while(l.kind!==79);return l}}e.getFirstIdentifier=Ju;function $d(l){return l.kind===79||l.kind===108||l.kind===106||l.kind===230||l.kind===205&&$d(l.expression)||l.kind===211&&$d(l.expression)}e.isDottedName=$d;function Ja(l){return e.isPropertyAccessExpression(l)&&e.isIdentifier(l.name)&&Jl(l.expression)}e.isPropertyAccessEntityNameExpression=Ja;function Tc(l){if(e.isPropertyAccessExpression(l)){var ee=Tc(l.expression);if(ee!==void 0)return ee+"."+Zr(l.name)}else if(e.isElementAccessExpression(l)){var ee=Tc(l.expression);if(ee!==void 0&&e.isPropertyName(l.argumentExpression))return ee+"."+of(l.argumentExpression)}else if(e.isIdentifier(l))return e.unescapeLeadingUnderscores(l.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=Tc;function pn(l){return yt(l)&&Qa(l)==="prototype"}e.isPrototypeAccess=pn;function ep(l){return l.parent.kind===160&&l.parent.right===l||l.parent.kind===205&&l.parent.name===l}e.isRightSideOfQualifiedNameOrPropertyAccess=ep;function jf(l){return e.isQualifiedName(l.parent)&&l.parent.right===l||e.isPropertyAccessExpression(l.parent)&&l.parent.name===l||e.isJSDocMemberName(l.parent)&&l.parent.right===l}e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=jf;function rp(l){return l.kind===204&&l.properties.length===0}e.isEmptyObjectLiteral=rp;function kp(l){return l.kind===203&&l.elements.length===0}e.isEmptyArrayLiteral=kp;function Op(l){if(!(!B_(l)||!l.declarations))for(var ee=0,or=l.declarations;ee<or.length;ee++){var jr=or[ee];if(jr.localSymbol)return jr.localSymbol}}e.getLocalSymbolForExportDefault=Op;function B_(l){return l&&e.length(l.declarations)>0&&Rs(l.declarations[0],512)}function ru(l){return e.find(Vy,function(ee){return e.fileExtensionIs(l,ee)})}e.tryExtractTSExtension=ru;function Rp(l){for(var ee=[],or=l.length,jr=0;jr<or;jr++){var Ot=l.charCodeAt(jr);Ot<128?ee.push(Ot):Ot<2048?(ee.push(Ot>>6|192),ee.push(Ot&63|128)):Ot<65536?(ee.push(Ot>>12|224),ee.push(Ot>>6&63|128),ee.push(Ot&63|128)):Ot<131072?(ee.push(Ot>>18|240),ee.push(Ot>>12&63|128),ee.push(Ot>>6&63|128),ee.push(Ot&63|128)):e.Debug.assert(!1,"Unexpected code point")}return ee}var pc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function wp(l){for(var ee="",or=Rp(l),jr=0,Ot=or.length,Nn,Dn,ma,hi;jr<Ot;)Nn=or[jr]>>2,Dn=(or[jr]&3)<<4|or[jr+1]>>4,ma=(or[jr+1]&15)<<2|or[jr+2]>>6,hi=or[jr+2]&63,jr+1>=Ot?ma=hi=64:jr+2>=Ot&&(hi=64),ee+=pc.charAt(Nn)+pc.charAt(Dn)+pc.charAt(ma)+pc.charAt(hi),jr+=3;return ee}e.convertToBase64=wp;function nc(l){for(var ee="",or=0,jr=l.length;or<jr;){var Ot=l[or];if(Ot<128)ee+=String.fromCharCode(Ot),or++;else if((Ot&192)===192){var Nn=Ot&63;or++;for(var Dn=l[or];(Dn&192)===128;)Nn=Nn<<6|Dn&63,or++,Dn=l[or];ee+=String.fromCharCode(Nn)}else ee+=String.fromCharCode(Ot),or++}return ee}function hf(l,ee){return l&&l.base64encode?l.base64encode(ee):wp(ee)}e.base64encode=hf;function Mp(l,ee){if(l&&l.base64decode)return l.base64decode(ee);for(var or=ee.length,jr=[],Ot=0;Ot<or&&ee.charCodeAt(Ot)!==pc.charCodeAt(64);){var Nn=pc.indexOf(ee[Ot]),Dn=pc.indexOf(ee[Ot+1]),ma=pc.indexOf(ee[Ot+2]),hi=pc.indexOf(ee[Ot+3]),li=(Nn&63)<<2|Dn>>4&3,fo=(Dn&15)<<4|ma>>2&15,to=(ma&3)<<6|hi&63;fo===0&&ma!==0?jr.push(li):to===0&&hi!==0?jr.push(li,fo):jr.push(li,fo,to),Ot+=4}return nc(jr)}e.base64decode=Mp;function tu(l,ee){try{var or=ee.readFile(l);if(!or)return{};var jr=e.parseConfigFileTextToJson(l,or);return jr.error?{}:jr.config}catch(Ot){return{}}}e.readJson=tu;function nu(l,ee){return!ee.directoryExists||ee.directoryExists(l)}e.directoryProbablyExists=nu;var yd=`\r
`,S=`
`;function Ze(l,ee){switch(l.newLine){case 0:return yd;case 1:return S}return ee?ee():e.sys?e.sys.newLine:yd}e.getNewLineCharacter=Ze;function nt(l,ee){return ee===void 0&&(ee=l),e.Debug.assert(ee>=l||ee===-1),{pos:l,end:ee}}e.createRange=nt;function wt(l,ee){return nt(l.pos,ee)}e.moveRangeEnd=wt;function ca(l,ee){return nt(ee,l.end)}e.moveRangePos=ca;function Ga(l){return l.decorators&&l.decorators.length>0?ca(l,l.decorators.end):l}e.moveRangePastDecorators=Ga;function na(l){return l.modifiers&&l.modifiers.length>0?ca(l,l.modifiers.end):Ga(l)}e.moveRangePastModifiers=na;function si(l){return l.pos===l.end}e.isCollapsedRange=si;function wa(l,ee){return nt(l,l+e.tokenToString(ee).length)}e.createTokenRange=wa;function Za(l,ee){return As(l,l,ee)}e.rangeIsOnSingleLine=Za;function Lo(l,ee,or){return ou(yf(l,or,!1),yf(ee,or,!1),or)}e.rangeStartPositionsAreOnSameLine=Lo;function ol(l,ee,or){return ou(l.end,ee.end,or)}e.rangeEndPositionsAreOnSameLine=ol;function As(l,ee,or){return ou(yf(l,or,!1),ee.end,or)}e.rangeStartIsOnSameLineAsRangeEnd=As;function Ms(l,ee,or){return ou(l.end,yf(ee,or,!1),or)}e.rangeEndIsOnSameLineAsRangeStart=Ms;function gl(l,ee,or,jr){var Ot=yf(ee,or,jr);return e.getLinesBetweenPositions(or,l.end,Ot)}e.getLinesBetweenRangeEndAndRangeStart=gl;function au(l,ee,or){return e.getLinesBetweenPositions(or,l.end,ee.end)}e.getLinesBetweenRangeEndPositions=au;function iu(l,ee){return!ou(l.pos,l.end,ee)}e.isNodeArrayMultiLine=iu;function ou(l,ee,or){return e.getLinesBetweenPositions(or,l,ee)===0}e.positionsAreOnSameLine=ou;function yf(l,ee,or){return $g(l.pos)?-1:e.skipTrivia(ee.text,l.pos,!1,or)}e.getStartPositionOfRange=yf;function __(l,ee,or,jr){var Ot=e.skipTrivia(or.text,l,!1,jr),Nn=m_(Ot,ee,or);return e.getLinesBetweenPositions(or,Nn!=null?Nn:ee,Ot)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=__;function Vc(l,ee,or,jr){var Ot=e.skipTrivia(or.text,l,!1,jr);return e.getLinesBetweenPositions(or,l,Math.min(ee,Ot))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=Vc;function m_(l,ee,or){for(ee===void 0&&(ee=0);l-- >ee;)if(!e.isWhiteSpaceLike(or.text.charCodeAt(l)))return l}function tp(l){var ee=e.getParseTreeNode(l);if(ee)switch(ee.parent.kind){case 259:case 260:return ee===ee.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=tp;function ac(l){return e.filter(l.declarations,np)}e.getInitializedVariables=ac;function np(l){return l.initializer!==void 0}function g_(l){return l.watch&&l.hasOwnProperty("watch")}e.isWatchSet=g_;function Ie(l){l.close()}e.closeFileWatcher=Ie;function br(l){return l.flags&33554432?l.checkFlags:0}e.getCheckFlags=br;function Ur(l,ee){if(ee===void 0&&(ee=!1),l.valueDeclaration){var or=ee&&l.declarations&&e.find(l.declarations,function(ma){return ma.kind===172})||l.valueDeclaration,jr=e.getCombinedModifierFlags(or);return l.parent&&l.parent.flags&32?jr:jr&-29}if(br(l)&6){var Ot=l.checkFlags,Nn=Ot&1024?8:Ot&256?4:16,Dn=Ot&2048?32:0;return Nn|Dn}return l.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=Ur;function lt(l,ee){return l.flags&2097152?ee.getAliasedSymbol(l):l}e.skipAlias=lt;function xt(l){return l.exportSymbol?l.exportSymbol.flags|l.flags:l.flags}e.getCombinedLocalAndExportSymbolFlags=xt;function Zt(l){return La(l)===1}e.isWriteOnlyAccess=Zt;function Rn(l){return La(l)!==0}e.isWriteAccess=Rn;var $n;(function(l){l[l.Read=0]="Read",l[l.Write=1]="Write",l[l.ReadWrite=2]="ReadWrite"})($n||($n={}));function La(l){var ee=l.parent;if(!ee)return 0;switch(ee.kind){case 211:return La(ee);case 219:case 218:var or=ee.operator;return or===45||or===46?ma():0;case 220:var jr=ee,Ot=jr.left,Nn=jr.operatorToken;return Ot===l&&ju(Nn.kind)?Nn.kind===63?1:ma():0;case 205:return ee.name!==l?0:La(ee);case 294:{var Dn=La(ee.parent);return l===ee.name?Da(Dn):Dn}case 295:return l===ee.objectAssignmentInitializer?0:La(ee.parent);case 203:return La(ee);default:return 0}function ma(){return ee.parent&&Wi(ee.parent).kind===237?1:2}}function Da(l){switch(l){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(l)}}function zi(l,ee){if(!l||!ee||Object.keys(l).length!==Object.keys(ee).length)return!1;for(var or in l)if(typeof l[or]=="object"){if(!zi(l[or],ee[or]))return!1}else if(typeof l[or]!="function"&&l[or]!==ee[or])return!1;return!0}e.compareDataObjects=zi;function Qo(l,ee){l.forEach(ee),l.clear()}e.clearMap=Qo;function oo(l,ee,or){var jr=or.onDeleteValue,Ot=or.onExistingValue;l.forEach(function(Nn,Dn){var ma=ee.get(Dn);ma===void 0?(l.delete(Dn),jr(Nn,Dn)):Ot&&Ot(Nn,ma,Dn)})}e.mutateMapSkippingNewValues=oo;function Bo(l,ee,or){oo(l,ee,or);var jr=or.createNewValue;ee.forEach(function(Ot,Nn){l.has(Nn)||l.set(Nn,jr(Nn,Ot))})}e.mutateMap=Bo;function vs(l){if(l.flags&32){var ee=sl(l);return!!ee&&Rs(ee,128)}return!1}e.isAbstractConstructorSymbol=vs;function sl(l){var ee;return(ee=l.declarations)===null||ee===void 0?void 0:ee.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=sl;function Os(l){return l.flags&3899393?l.objectFlags:0}e.getObjectFlags=Os;function su(l,ee){return ee.getSignaturesOfType(l,0).length!==0||ee.getSignaturesOfType(l,1).length!==0}e.typeHasCallOrConstructSignatures=su;function Ps(l,ee){return!!e.forEachAncestorDirectory(l,function(or){return ee(or)?!0:void 0})}e.forSomeAncestorDirectory=Ps;function Ku(l){return!!l&&!!l.declarations&&!!l.declarations[0]&&e.isNamespaceExportDeclaration(l.declarations[0])}e.isUMDExportSymbol=Ku;function bd(l){var ee=l.moduleSpecifier;return e.isStringLiteral(ee)?ee.text:Ge(ee)}e.showModuleSpecifier=bd;function Fs(l){var ee;return e.forEachChild(l,function(or){b(or)&&(ee=or)},function(or){for(var jr=or.length-1;jr>=0;jr--)if(b(or[jr])){ee=or[jr];break}}),ee}e.getLastChild=Fs;function Sc(l,ee,or){return or===void 0&&(or=!0),l.has(ee)?!1:(l.set(ee,or),!0)}e.addToSeen=Sc;function Kl(l){return e.isClassLike(l)||e.isInterfaceDeclaration(l)||e.isTypeLiteralNode(l)}e.isObjectTypeDeclaration=Kl;function zu(l){return l>=176&&l<=199||l===130||l===154||l===146||l===157||l===147||l===133||l===149||l===150||l===114||l===152||l===143||l===227||l===310||l===311||l===312||l===313||l===314||l===315||l===316}e.isTypeNodeKind=zu;function zl(l){return l.kind===205||l.kind===206}e.isAccessExpression=zl;function v(l){return l.kind===205?l.name:(e.Debug.assert(l.kind===206),l.argumentExpression)}e.getNameOfAccessExpression=v;function W(l){switch(l.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=W;function Ee(l){return l.kind===268||l.kind===272}e.isNamedImportsOrExports=Ee;function er(l){for(;zl(l);)l=l.expression;return l}e.getLeftmostAccessExpression=er;function Wr(l,ee){for(;;){switch(l.kind){case 219:l=l.operand;continue;case 220:l=l.left;continue;case 221:l=l.condition;continue;case 209:l=l.tag;continue;case 207:if(ee)return l;case 228:case 206:case 205:case 229:case 348:l=l.expression;continue}return l}}e.getLeftmostExpression=Wr;function Jt(l,ee){this.flags=l,this.escapedName=ee,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function ln(l,ee){this.flags=ee,(e.Debug.isDebugging||e.tracing)&&(this.checker=l)}function Xa(l,ee){this.flags=ee,e.Debug.isDebugging&&(this.checker=l)}function Uo(l,ee,or){this.pos=ee,this.end=or,this.kind=l,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function Es(l,ee,or){this.pos=ee,this.end=or,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function U_(l,ee,or){this.pos=ee,this.end=or,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function Ed(l,ee,or){this.fileName=l,this.text=ee,this.skipTrivia=or||function(jr){return jr}}e.objectAllocator={getNodeConstructor:function(){return Uo},getTokenConstructor:function(){return Es},getIdentifierConstructor:function(){return U_},getPrivateIdentifierConstructor:function(){return Uo},getSourceFileConstructor:function(){return Uo},getSymbolConstructor:function(){return Jt},getTypeConstructor:function(){return ln},getSignatureConstructor:function(){return Xa},getSourceMapSourceConstructor:function(){return Ed}};function Pp(l){e.objectAllocator=l}e.setObjectAllocator=Pp;function Hf(l,ee,or){return or===void 0&&(or=0),l.replace(/{(\d+)}/g,function(jr,Ot){return""+e.Debug.checkDefined(ee[+Ot+or])})}e.formatStringFromArgs=Hf;function oh(l){e.localizedDiagnosticMessages=l}e.setLocalizedDiagnosticMessages=oh;function En(l){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[l.key]||l.message}e.getLocaleSpecificMessage=En;function Jf(l,ee,or,jr){Lr(void 0,ee,or);var Ot=En(jr);return arguments.length>4&&(Ot=Hf(Ot,arguments,4)),{file:void 0,start:ee,length:or,messageText:Ot,category:jr.category,code:jr.code,reportsUnnecessary:jr.reportsUnnecessary,fileName:l}}e.createDetachedDiagnostic=Jf;function Kf(l){return l.file===void 0&&l.start!==void 0&&l.length!==void 0&&typeof l.fileName=="string"}function v_(l,ee){var or=ee.fileName||"",jr=ee.text.length;e.Debug.assertEqual(l.fileName,or),e.Debug.assertLessThanOrEqual(l.start,jr),e.Debug.assertLessThanOrEqual(l.start+l.length,jr);var Ot={file:ee,start:l.start,length:l.length,messageText:l.messageText,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary};if(l.relatedInformation){Ot.relatedInformation=[];for(var Nn=0,Dn=l.relatedInformation;Nn<Dn.length;Nn++){var ma=Dn[Nn];Kf(ma)&&ma.fileName===or?(e.Debug.assertLessThanOrEqual(ma.start,jr),e.Debug.assertLessThanOrEqual(ma.start+ma.length,jr),Ot.relatedInformation.push(v_(ma,ee))):Ot.relatedInformation.push(ma)}}return Ot}function Fp(l,ee){for(var or=[],jr=0,Ot=l;jr<Ot.length;jr++){var Nn=Ot[jr];or.push(v_(Nn,ee))}return or}e.attachFileToDiagnostics=Fp;function V_(l,ee,or,jr){Lr(l,ee,or);var Ot=En(jr);return arguments.length>4&&(Ot=Hf(Ot,arguments,4)),{file:l,start:ee,length:or,messageText:Ot,category:jr.category,code:jr.code,reportsUnnecessary:jr.reportsUnnecessary,reportsDeprecated:jr.reportsDeprecated}}e.createFileDiagnostic=V_;function bf(l,ee){var or=En(ee);return arguments.length>2&&(or=Hf(or,arguments,2)),or}e.formatMessage=bf;function Xm(l){var ee=En(l);return arguments.length>1&&(ee=Hf(ee,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:ee,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}e.createCompilerDiagnostic=Xm;function Ef(l,ee){return{file:void 0,start:void 0,length:void 0,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:ee}}e.createCompilerDiagnosticFromMessageChain=Ef;function sh(l,ee){var or=En(ee);return arguments.length>2&&(or=Hf(or,arguments,2)),{messageText:or,category:ee.category,code:ee.code,next:l===void 0||Array.isArray(l)?l:[l]}}e.chainDiagnosticMessages=sh;function W_(l,ee){for(var or=l;or.next;)or=or.next[0];or.next=[ee]}e.concatenateDiagnosticMessageChains=W_;function j_(l){return l.file?l.file.path:void 0}function h_(l,ee){return _m(l,ee)||Ym(l,ee)||0}e.compareDiagnostics=h_;function _m(l,ee){return e.compareStringsCaseSensitive(j_(l),j_(ee))||e.compareValues(l.start,ee.start)||e.compareValues(l.length,ee.length)||e.compareValues(l.code,ee.code)||Lu(l.messageText,ee.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=_m;function Ym(l,ee){return!l.relatedInformation&&!ee.relatedInformation?0:l.relatedInformation&&ee.relatedInformation?e.compareValues(l.relatedInformation.length,ee.relatedInformation.length)||e.forEach(l.relatedInformation,function(or,jr){var Ot=ee.relatedInformation[jr];return h_(or,Ot)})||0:l.relatedInformation?-1:1}function Lu(l,ee){if(typeof l=="string"&&typeof ee=="string")return e.compareStringsCaseSensitive(l,ee);if(typeof l=="string")return-1;if(typeof ee=="string")return 1;var or=e.compareStringsCaseSensitive(l.messageText,ee.messageText);if(or)return or;if(!l.next&&!ee.next)return 0;if(!l.next)return-1;if(!ee.next)return 1;for(var jr=Math.min(l.next.length,ee.next.length),Ot=0;Ot<jr;Ot++)if(or=Lu(l.next[Ot],ee.next[Ot]),or)return or;return l.next.length<ee.next.length?-1:l.next.length>ee.next.length?1:0}function lh(l){return l===4||l===2||l===1||l===6?1:0}e.getLanguageVariant=lh;function mm(l){return l.target||l.module===e.ModuleKind.Node12&&7||l.module===e.ModuleKind.NodeNext&&99||0}e.getEmitScriptTarget=mm;function Gs(l){return typeof l.module=="number"?l.module:mm(l)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=Gs;function ch(l){var ee=l.moduleResolution;if(ee===void 0)switch(Gs(l)){case e.ModuleKind.CommonJS:ee=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:ee=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:ee=e.ModuleResolutionKind.NodeNext;break;default:ee=e.ModuleResolutionKind.Classic;break}return ee}e.getEmitModuleResolutionKind=ch;function Gp(l){switch(Gs(l)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=Gp;function uh(l){return l.allowUnreachableCode===!1}e.unreachableCodeIsError=uh;function qu(l){return l.allowUnusedLabels===!1}e.unusedLabelIsError=qu;function fn(l){return!!(Aa(l)&&l.declarationMap)}e.getAreDeclarationMapsEnabled=fn;function _a(l){if(l.esModuleInterop!==void 0)return l.esModuleInterop;switch(Gs(l)){case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return!0}}e.getESModuleInterop=_a;function Kn(l){var ee=Gs(l);return l.allowSyntheticDefaultImports!==void 0?l.allowSyntheticDefaultImports:_a(l)||ee===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=Kn;function Aa(l){return!!(l.declaration||l.composite)}e.getEmitDeclarations=Aa;function ri(l){return!!(l.preserveConstEnums||l.isolatedModules)}e.shouldPreserveConstEnums=ri;function qi(l){return!!(l.incremental||l.composite)}e.isIncrementalCompilation=qi;function Mo(l,ee){return l[ee]===void 0?!!l.strict:!!l[ee]}e.getStrictOptionValue=Mo;function Hs(l){return l.allowJs===void 0?!!l.checkJs:l.allowJs}e.getAllowJSCompilerOption=Hs;function vl(l){return l.useDefineForClassFields===void 0?mm(l)===99:l.useDefineForClassFields}e.getUseDefineForClassFields=vl;function ql(l,ee){return j(ee,l,e.semanticDiagnosticsOptionDeclarations)}e.compilerOptionsAffectSemanticDiagnostics=ql;function hl(l,ee){return j(ee,l,e.affectsEmitOptionDeclarations)}e.compilerOptionsAffectEmit=hl;function Xu(l,ee){return ee.strictFlag?Mo(l,ee.name):l[ee.name]}e.getCompilerOptionValue=Xu;function vo(l){var ee=l.jsx;return ee===2||ee===4||ee===5}e.getJSXTransformEnabled=vo;function H_(l,ee){var or=ee==null?void 0:ee.pragmas.get("jsximportsource"),jr=e.isArray(or)?or[or.length-1]:or;return l.jsx===4||l.jsx===5||l.jsxImportSource||jr?(jr==null?void 0:jr.arguments.factory)||l.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=H_;function ap(l,ee){return l?"".concat(l,"/").concat(ee.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=ap;function gm(l){for(var ee=!1,or=0;or<l.length;or++)if(l.charCodeAt(or)===42)if(!ee)ee=!0;else return!1;return!0}e.hasZeroOrOneAsteriskCharacter=gm;function Jg(l,ee){var or,jr,Ot,Nn=!1;return{getSymlinkedFiles:function(){return Ot},getSymlinkedDirectories:function(){return or},getSymlinkedDirectoriesByRealpath:function(){return jr},setSymlinkedFile:function(ma,hi){return(Ot||(Ot=new e.Map)).set(ma,hi)},setSymlinkedDirectory:function(ma,hi){var li=e.toPath(ma,l,ee);Sh(li)||(li=e.ensureTrailingDirectorySeparator(li),hi!==!1&&!(or!=null&&or.has(li))&&(jr||(jr=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(hi.realPath),ma),(or||(or=new e.Map)).set(li,hi))},setSymlinkedDirectoryFromSymlinkedFile:function(ma,hi){this.setSymlinkedFile(e.toPath(ma,l,ee),hi);var li=wy(hi,ma,l,ee)||e.emptyArray,fo=li[0],to=li[1];fo&&to&&this.setSymlinkedDirectory(to,{real:fo,realPath:e.toPath(fo,l,ee)})},setSymlinksFromResolutions:function(ma,hi){var li=this,fo;e.Debug.assert(!Nn),Nn=!0;for(var to=0,ll=ma;to<ll.length;to++){var Qs=ll[to];(fo=Qs.resolvedModules)===null||fo===void 0||fo.forEach(function(Ts){return Dn(li,Ts)})}hi==null||hi.forEach(function(Ts){return Dn(li,Ts)})},hasProcessedResolutions:function(){return Nn}};function Dn(ma,hi){if(!(!hi||!hi.originalPath||!hi.resolvedFileName)){var li=hi.resolvedFileName,fo=hi.originalPath;ma.setSymlinkedFile(e.toPath(fo,l,ee),li);var to=wy(li,fo,l,ee)||e.emptyArray,ll=to[0],Qs=to[1];ll&&Qs&&ma.setSymlinkedDirectory(Qs,{real:ll,realPath:e.toPath(ll,l,ee)})}}}e.createSymlinkCache=Jg;function wy(l,ee,or,jr){for(var Ot=e.getPathComponents(e.getNormalizedAbsolutePath(l,or)),Nn=e.getPathComponents(e.getNormalizedAbsolutePath(ee,or)),Dn=!1;Ot.length>=2&&Nn.length>=2&&!My(Ot[Ot.length-2],jr)&&!My(Nn[Nn.length-2],jr)&&jr(Ot[Ot.length-1])===jr(Nn[Nn.length-1]);)Ot.pop(),Nn.pop(),Dn=!0;return Dn?[e.getPathFromPathComponents(Ot),e.getPathFromPathComponents(Nn)]:void 0}function My(l,ee){return l!==void 0&&(ee(l)==="node_modules"||e.startsWith(l,"@"))}function Py(l){return e.isAnyDirectorySeparator(l.charCodeAt(0))?l.slice(1):void 0}function Fy(l,ee,or){var jr=e.tryRemovePrefix(l,ee,or);return jr===void 0?void 0:Py(jr)}e.tryRemoveDirectoryPrefix=Fy;var Kg=/[^\w\s\/]/g;function fh(l){return l.replace(Kg,Yu)}e.regExpEscape=fh;function Yu(l){return"\\"+l}var dh=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var y_="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),vm={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(y_,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(l){return yl(l,vm.singleAsteriskRegexFragment)}},b_={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(y_,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(l){return yl(l,b_.singleAsteriskRegexFragment)}},Gy={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(l){return yl(l,Gy.singleAsteriskRegexFragment)}},Au={files:vm,directories:b_,exclude:Gy};function zg(l,ee,or){var jr=qg(l,ee,or);if(!(!jr||!jr.length)){var Ot=jr.map(function(Dn){return"(".concat(Dn,")")}).join("|"),Nn=or==="exclude"?"($|/)":"$";return"^(".concat(Ot,")").concat(Nn)}}e.getRegularExpressionForWildcard=zg;function qg(l,ee,or){if(!(l===void 0||l.length===0))return e.flatMap(l,function(jr){return jr&&Qm(jr,ee,or,Au[or])})}e.getRegularExpressionsForWildcards=qg;function Xg(l){return!/[.*?]/.test(l)}e.isImplicitGlob=Xg;function Tf(l,ee,or){var jr=l&&Qm(l,ee,or,Au[or]);return jr&&"^(".concat(jr,")").concat(or==="exclude"?"($|/)":"$")}e.getPatternFromSpec=Tf;function Qm(l,ee,or,jr){var Ot=jr.singleAsteriskRegexFragment,Nn=jr.doubleAsteriskRegexFragment,Dn=jr.replaceWildcardCharacter,ma="",hi=!1,li=e.getNormalizedPathComponents(l,ee),fo=e.last(li);if(!(or!=="exclude"&&fo==="**")){li[0]=e.removeTrailingDirectorySeparator(li[0]),Xg(fo)&&li.push("**","*");for(var to=0,ll=0,Qs=li;ll<Qs.length;ll++){var Ts=Qs[ll];if(Ts==="**")ma+=Nn;else if(or==="directories"&&(ma+="(",to++),hi&&(ma+=e.directorySeparator),or!=="exclude"){var Ac="";Ts.charCodeAt(0)===42?(Ac+="([^./]"+Ot+")?",Ts=Ts.substr(1)):Ts.charCodeAt(0)===63&&(Ac+="[^./]",Ts=Ts.substr(1)),Ac+=Ts.replace(Kg,Dn),Ac!==Ts&&(ma+=y_),ma+=Ac}else ma+=Ts.replace(Kg,Dn);hi=!0}for(;to>0;)ma+=")?",to--;return ma}}function yl(l,ee){return l==="*"?ee:l==="?"?"[^/]":"\\"+l}function ph(l,ee,or,jr,Ot){l=e.normalizePath(l),Ot=e.normalizePath(Ot);var Nn=e.combinePaths(Ot,l);return{includeFilePatterns:e.map(qg(or,Nn,"files"),function(Dn){return"^".concat(Dn,"$")}),includeFilePattern:zg(or,Nn,"files"),includeDirectoryPattern:zg(or,Nn,"directories"),excludePattern:zg(ee,Nn,"exclude"),basePaths:Cu(l,or,jr)}}e.getFileMatcherPatterns=ph;function Yg(l,ee){return new RegExp(l,ee?"":"i")}e.getRegexFromPattern=Yg;function _0(l,ee,or,jr,Ot,Nn,Dn,ma,hi){l=e.normalizePath(l),Nn=e.normalizePath(Nn);for(var li=ph(l,or,jr,Ot,Nn),fo=li.includeFilePatterns&&li.includeFilePatterns.map(function(Dd){return Yg(Dd,Ot)}),to=li.includeDirectoryPattern&&Yg(li.includeDirectoryPattern,Ot),ll=li.excludePattern&&Yg(li.excludePattern,Ot),Qs=fo?fo.map(function(){return[]}):[[]],Ts=new e.Map,Ac=e.createGetCanonicalFileName(Ot),as=0,pi=li.basePaths;as<pi.length;as++){var ip=pi[as];Li(ip,e.combinePaths(Nn,ip),Dn)}return e.flatten(Qs);function Li(Dd,tg,Ld){var ev=Ac(hi(tg));if(!Ts.has(ev)){Ts.set(ev,!0);for(var Bs=ma(Dd),cu=Bs.files,Qu=Bs.directories,$y=function(eb){var og=e.combinePaths(Dd,eb),Em=e.combinePaths(tg,eb);if(ee&&!e.fileExtensionIsOneOf(og,ee)||ll&&ll.test(Em))return"continue";if(!fo)Qs[0].push(og);else{var uu=e.findIndex(fo,function(Wp){return Wp.test(Em)});uu!==-1&&Qs[uu].push(og)}},K_=0,Up=e.sort(cu,e.compareStringsCaseSensitive);K_<Up.length;K_++){var ng=Up[K_];$y(ng)}if(!(Ld!==void 0&&(Ld--,Ld===0)))for(var ag=0,ig=e.sort(Qu,e.compareStringsCaseSensitive);ag<ig.length;ag++){var ng=ig[ag],Ah=e.combinePaths(Dd,ng),Vp=e.combinePaths(tg,ng);(!to||to.test(Vp))&&(!ll||!ll.test(Vp))&&Li(Ah,Vp,Ld)}}}}e.matchFiles=_0;function Cu(l,ee,or){var jr=[l];if(ee){for(var Ot=[],Nn=0,Dn=ee;Nn<Dn.length;Nn++){var ma=Dn[Nn],hi=e.isRootedDiskPath(ma)?ma:e.normalizePath(e.combinePaths(l,ma));Ot.push(hm(hi))}Ot.sort(e.getStringComparer(!or));for(var li=function(Qs){e.every(jr,function(Ts){return!e.containsPath(Ts,Qs,l,!or)})&&jr.push(Qs)},fo=0,to=Ot;fo<to.length;fo++){var ll=to[fo];li(ll)}}return jr}function hm(l){var ee=e.indexOfAnyCharCode(l,dh);return ee<0?e.hasExtension(l)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(l)):l:l.substring(0,l.lastIndexOf(e.directorySeparator,ee))}function By(l,ee){return ee||Uy(l)||3}e.ensureScriptKind=By;function Uy(l){var ee=l.substr(l.lastIndexOf("."));switch(ee.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}}e.getScriptKindFromFileName=Uy,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var m0=Bt(Bt([],e.supportedTSExtensions,!0),[[".json"]],!1),Vy=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var Qg=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],_h=Bt(Bt([],Qg,!0),[[".json"]],!1);function Wy(l,ee){var or=l&&Hs(l);if(!ee||ee.length===0)return or?Qg:e.supportedTSExtensions;var jr=or?Qg:e.supportedTSExtensions,Ot=e.flatten(jr),Nn=Bt(Bt([],jr,!0),e.mapDefined(ee,function(Dn){return Dn.scriptKind===7||or&&jy(Dn.scriptKind)&&Ot.indexOf(Dn.extension)===-1?[Dn.extension]:void 0}),!0);return Nn}e.getSupportedExtensions=Wy;function Zg(l,ee){return!l||!l.resolveJsonModule?ee:ee===Qg?_h:ee===e.supportedTSExtensions?m0:Bt(Bt([],ee,!0),[[".json"]],!1)}e.getSupportedExtensionsWithJsonIfResolveJsonModule=Zg;function jy(l){return l===1||l===2}function g0(l){return e.some(e.supportedJSExtensionsFlat,function(ee){return e.fileExtensionIs(l,ee)})}e.hasJSFileExtension=g0;function v0(l){return e.some(e.supportedTSExtensionsFlat,function(ee){return e.fileExtensionIs(l,ee)})}e.hasTSFileExtension=v0;function h0(l,ee,or){if(!l)return!1;for(var jr=Wy(ee,or),Ot=0,Nn=e.flatten(Zg(ee,jr));Ot<Nn.length;Ot++){var Dn=Nn[Ot];if(e.fileExtensionIs(l,Dn))return!0}return!1}e.isSupportedSourceFileName=h0;function mh(l){var ee=l.match(/\//g);return ee?ee.length:0}function y0(l,ee){return e.compareValues(mh(l),mh(ee))}e.compareNumberOfDirectorySeparators=y0;var J_=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function ym(l){for(var ee=0,or=J_;ee<or.length;ee++){var jr=or[ee],Ot=Hy(l,jr);if(Ot!==void 0)return Ot}return l}e.removeFileExtension=ym;function Hy(l,ee){return e.fileExtensionIs(l,ee)?Jy(l,ee):void 0}e.tryRemoveExtension=Hy;function Jy(l,ee){return l.substring(0,l.length-ee.length)}e.removeExtension=Jy;function Ky(l,ee){return e.changeAnyExtension(l,ee,J_,!1)}e.changeExtension=Ky;function gh(l){var ee=l.indexOf("*");return ee===-1?l:l.indexOf("*",ee+1)!==-1?void 0:{prefix:l.substr(0,ee),suffix:l.substr(ee+1)}}e.tryParsePattern=gh;function b0(l){return e.mapDefined(e.getOwnKeys(l),function(ee){return gh(ee)})}e.tryParsePatterns=b0;function $g(l){return!(l>=0)}e.positionIsSynthesized=$g;function zy(l){return l===".ts"||l===".tsx"||l===".d.ts"||l===".cts"||l===".mts"||l===".d.mts"||l===".d.cts"}e.extensionIsTS=zy;function Zm(l){return zy(l)||l===".json"}e.resolutionExtensionIsTSOrJson=Zm;function vh(l){var ee=yh(l);return ee!==void 0?ee:e.Debug.fail("File ".concat(l," has unknown extension."))}e.extensionFromPath=vh;function hh(l){return yh(l)!==void 0}e.isAnySupportedFileExtension=hh;function yh(l){return e.find(J_,function(ee){return e.fileExtensionIs(l,ee)})}e.tryGetExtensionFromPath=yh;function E0(l,ee){return l.checkJsDirective?l.checkJsDirective.enabled:ee.checkJs}e.isCheckJsEnabledForFile=E0,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function lu(l,ee){for(var or=[],jr=0,Ot=l;jr<Ot.length;jr++){var Nn=Ot[jr];if(Nn===ee)return ee;e.isString(Nn)||or.push(Nn)}return e.findBestPatternMatch(or,function(Dn){return Dn},ee)}e.matchPatternOrExact=lu;function Dc(l,ee){var or=l.indexOf(ee);return e.Debug.assert(or!==-1),l.slice(or)}e.sliceAfter=Dc;function Td(l){for(var ee,or=[],jr=1;jr<arguments.length;jr++)or[jr-1]=arguments[jr];return or.length&&(l.relatedInformation||(l.relatedInformation=[]),e.Debug.assert(l.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(ee=l.relatedInformation).push.apply(ee,or)),l}e.addRelatedInfo=Td;function xu(l,ee){e.Debug.assert(l.length!==0);for(var or=ee(l[0]),jr=or,Ot=1;Ot<l.length;Ot++){var Nn=ee(l[Ot]);Nn<or?or=Nn:Nn>jr&&(jr=Nn)}return{min:or,max:jr}}e.minAndMax=xu;function qy(l){return{pos:J(l),end:l.end}}e.rangeOfNode=qy;function $m(l,ee){var or=ee.pos-1,jr=e.skipTrivia(l.text,ee.end)+1;return{pos:or,end:jr}}e.rangeOfTypeParameters=$m;function eg(l,ee,or){return ee.skipLibCheck&&l.isDeclarationFile||ee.skipDefaultLibCheck&&l.hasNoDefaultLib||or.isSourceOfProjectReferenceRedirect(l.fileName)}e.skipTypeChecking=eg;function Lc(l,ee){return l===ee||typeof l=="object"&&l!==null&&typeof ee=="object"&&ee!==null&&e.equalOwnProperties(l,ee,Lc)}e.isJsonEqual=Lc;function Xy(l){var ee;switch(l.charCodeAt(1)){case 98:case 66:ee=1;break;case 111:case 79:ee=3;break;case 120:case 88:ee=4;break;default:for(var or=l.length-1,jr=0;l.charCodeAt(jr)===48;)jr++;return l.slice(jr,or)||"0"}for(var Ot=2,Nn=l.length-1,Dn=(Nn-Ot)*ee,ma=new Uint16Array((Dn>>>4)+(Dn&15?1:0)),hi=Nn-1,li=0;hi>=Ot;hi--,li+=ee){var fo=li>>>4,to=l.charCodeAt(hi),ll=to<=57?to-48:10+to-(to<=70?65:97),Qs=ll<<(li&15);ma[fo]|=Qs;var Ts=Qs>>>16;Ts&&(ma[fo+1]|=Ts)}for(var Ac="",as=ma.length-1,pi=!0;pi;){var ip=0;pi=!1;for(var fo=as;fo>=0;fo--){var Li=ip<<16|ma[fo],Dd=Li/10|0;ma[fo]=Dd,ip=Li-Dd*10,Dd&&!pi&&(as=fo,pi=!0)}Ac=ip+Ac}return Ac}e.parsePseudoBigInt=Xy;function bh(l){var ee=l.negative,or=l.base10Value;return(ee&&or!=="0"?"-":"")+or}e.pseudoBigIntToString=bh;function T0(l){return!!(l.flags&8388608)||gt(l)||zf(l)||Wc(l)||!(Ds(l)||wl(l))}e.isValidTypeOnlyAliasUseSite=T0;function wl(l){return e.isIdentifier(l)&&e.isShorthandPropertyAssignment(l.parent)&&l.parent.name===l}function Wc(l){for(;l.kind===79||l.kind===205;)l=l.parent;if(l.kind!==161)return!1;if(Rs(l.parent,128))return!0;var ee=l.parent.parent.kind;return ee===257||ee===181}function zf(l){if(l.kind!==79)return!1;var ee=e.findAncestor(l.parent,function(or){switch(or.kind){case 290:return!0;case 205:case 227:return!1;default:return"quit"}});return(ee==null?void 0:ee.token)===117||(ee==null?void 0:ee.parent.kind)===257}function Sd(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)}e.isIdentifierTypeReference=Sd;function rg(l,ee){if(ee===void 0&&(ee=e.equateValues),l.length<2)return!0;for(var or=l[0],jr=1,Ot=l.length;jr<Ot;jr++){var Nn=l[jr];if(!ee(or,Nn))return!1}return!0}e.arrayIsHomogeneous=rg;function ro(l,ee){return l.pos=ee,l}e.setTextRangePos=ro;function Yy(l,ee){return l.end=ee,l}e.setTextRangeEnd=Yy;function Qy(l,ee,or){return Yy(ro(l,ee),or)}e.setTextRangePosEnd=Qy;function S0(l,ee,or){return Qy(l,ee,ee+or)}e.setTextRangePosWidth=S0;function Bp(l,ee){return l&&(l.flags=ee),l}e.setNodeFlags=Bp;function bl(l,ee){return l&&ee&&(l.parent=ee),l}e.setParent=bl;function D0(l,ee){if(l)for(var or=0,jr=l;or<jr.length;or++){var Ot=jr[or];bl(Ot,ee)}return l}e.setEachParent=D0;function Eh(l,ee){if(!l)return l;return e.forEachChildRecursively(l,e.isJSDocNode(l)?or:Ot),l;function or(Nn,Dn){if(ee&&Nn.parent===Dn)return"skip";bl(Nn,Dn)}function jr(Nn){if(e.hasJSDocNodes(Nn))for(var Dn=0,ma=Nn.jsDoc;Dn<ma.length;Dn++){var hi=ma[Dn];or(hi,Nn),e.forEachChildRecursively(hi,or)}}function Ot(Nn,Dn){return or(Nn,Dn)||jr(Nn)}}e.setParentRecursive=Eh;function L0(l){return!e.isOmittedExpression(l)}function Th(l){return e.isArrayLiteralExpression(l)&&e.every(l.elements,L0)}e.isPackedArrayLiteral=Th;function Zy(l){for(e.Debug.assertIsDefined(l.parent);;){var ee=l.parent;if(e.isParenthesizedExpression(ee)){l=ee;continue}if(e.isExpressionStatement(ee)||e.isVoidExpression(ee)||e.isForStatement(ee)&&(ee.initializer===l||ee.incrementor===l))return!0;if(e.isCommaListExpression(ee)){if(l!==e.last(ee.elements))return!0;l=ee;continue}if(e.isBinaryExpression(ee)&&ee.operatorToken.kind===27){if(l===ee.left)return!0;l=ee;continue}return!1}}e.expressionResultIsUnused=Zy;function Sh(l){return e.some(e.ignoredPaths,function(ee){return e.stringContains(l,ee)})}e.containsIgnoredPath=Sh;function A0(l){if(!!l.parent){switch(l.kind){case 162:var ee=l.parent;return ee.kind===189?void 0:ee.typeParameters;case 163:return l.parent.parameters;case 198:return l.parent.templateSpans;case 232:return l.parent.templateSpans;case 164:return l.parent.decorators;case 290:return l.parent.heritageClauses}var or=l.parent;if(e.isJSDocTag(l))return e.isJSDocTypeLiteral(l.parent)?void 0:l.parent.tags;switch(or.kind){case 181:case 257:return e.isTypeElement(l)?or.members:void 0;case 186:case 187:return or.types;case 183:case 203:case 349:case 268:case 272:return or.elements;case 204:case 285:return or.properties;case 207:case 208:return e.isTypeNode(l)?or.typeArguments:or.expression===l?void 0:or.arguments;case 277:case 281:return e.isJsxChild(l)?or.children:void 0;case 279:case 278:return e.isTypeNode(l)?or.typeArguments:void 0;case 234:case 288:case 289:case 261:return or.statements;case 262:return or.clauses;case 256:case 225:return e.isClassElement(l)?or.members:void 0;case 259:return e.isEnumMember(l)?or.members:void 0;case 303:return or.statements}}}e.getContainingNodeArray=A0;function C0(l){if(!l.typeParameters){if(e.some(l.parameters,function(or){return!dc(or)}))return!0;if(l.kind!==213){var ee=e.firstOrUndefined(l.parameters);if(!(ee&&Eu(ee)))return!0}}return!1}e.hasContextSensitiveParameters=C0;function pl(l){return l==="Infinity"||l==="-Infinity"||l==="NaN"}e.isInfinityOrNaNString=pl;function bm(l){return l.kind===253&&l.parent.kind===291}e.isCatchClauseVariableDeclaration=bm;function Dh(l){var ee=l.valueDeclaration&&Nf(l.valueDeclaration);return!!ee&&(e.isParameter(ee)||bm(ee))}e.isParameterOrCatchClauseVariable=Dh;function Lh(l){return l.kind===212||l.kind===213}e.isFunctionExpressionOrArrowFunction=Lh;function x0(l){return l.replace(/\$/gm,"\\$")}e.escapeSnippetText=x0})(mr||(mr={}));var mr;(function(e){function n(){var c,u,g,p,I;return{createBaseSourceFileNode:V,createBaseIdentifierNode:L,createBasePrivateIdentifierNode:m,createBaseTokenNode:y,createBaseNode:j};function V(te){return new(I||(I=e.objectAllocator.getSourceFileConstructor()))(te,-1,-1)}function L(te){return new(g||(g=e.objectAllocator.getIdentifierConstructor()))(te,-1,-1)}function m(te){return new(p||(p=e.objectAllocator.getPrivateIdentifierConstructor()))(te,-1,-1)}function y(te){return new(u||(u=e.objectAllocator.getTokenConstructor()))(te,-1,-1)}function j(te){return new(c||(c=e.objectAllocator.getNodeConstructor()))(te,-1,-1)}}e.createBaseNodeFactory=n})(mr||(mr={}));var mr;(function(e){function n(c){var u,g;return{getParenthesizeLeftSideOfBinaryForOperator:p,getParenthesizeRightSideOfBinaryForOperator:I,parenthesizeLeftSideOfBinary:j,parenthesizeRightSideOfBinary:te,parenthesizeExpressionOfComputedPropertyName:E,parenthesizeConditionOfConditionalExpression:F,parenthesizeBranchOfConditionalExpression:$,parenthesizeExpressionOfExportDefault:C,parenthesizeExpressionOfNew:K,parenthesizeLeftSideOfAccess:k,parenthesizeOperandOfPostfixUnary:X,parenthesizeOperandOfPrefixUnary:O,parenthesizeExpressionsOfCommaDelimitedList:x,parenthesizeExpressionForDisallowedComma:ie,parenthesizeExpressionOfExpressionStatement:Z,parenthesizeConciseBodyOfArrowFunction:re,parenthesizeMemberOfConditionalType:q,parenthesizeMemberOfElementType:P,parenthesizeElementTypeOfArrayType:M,parenthesizeConstituentTypesOfUnionOrIntersectionType:Q,parenthesizeTypeArguments:w};function p(d){u||(u=new e.Map);var B=u.get(d);return B||(B=function(T){return j(d,T)},u.set(d,B)),B}function I(d){g||(g=new e.Map);var B=g.get(d);return B||(B=function(T){return te(d,void 0,T)},g.set(d,B)),B}function V(d,B,T,_){var h=e.getOperatorPrecedence(220,d),R=e.getOperatorAssociativity(220,d),b=e.skipPartiallyEmittedExpressions(B);if(!T&&B.kind===213&&h>3)return!0;var G=e.getExpressionPrecedence(b);switch(e.compareValues(G,h)){case-1:return!(!T&&R===1&&B.kind===223);case 1:return!1;case 0:if(T)return R===1;if(e.isBinaryExpression(b)&&b.operatorToken.kind===d){if(L(d))return!1;if(d===39){var Y=_?m(_):0;if(e.isLiteralKind(Y)&&Y===m(b))return!1}}var pe=e.getExpressionAssociativity(b);return pe===0}}function L(d){return d===41||d===51||d===50||d===52}function m(d){if(d=e.skipPartiallyEmittedExpressions(d),e.isLiteralKind(d.kind))return d.kind;if(d.kind===220&&d.operatorToken.kind===39){if(d.cachedLiteralKind!==void 0)return d.cachedLiteralKind;var B=m(d.left),T=e.isLiteralKind(B)&&B===m(d.right)?B:0;return d.cachedLiteralKind=T,T}return 0}function y(d,B,T,_){var h=e.skipPartiallyEmittedExpressions(B);return h.kind===211?B:V(d,B,T,_)?c.createParenthesizedExpression(B):B}function j(d,B){return y(d,B,!0)}function te(d,B,T){return y(d,T,!1,B)}function E(d){return e.isCommaSequence(d)?c.createParenthesizedExpression(d):d}function F(d){var B=e.getOperatorPrecedence(221,57),T=e.skipPartiallyEmittedExpressions(d),_=e.getExpressionPrecedence(T);return e.compareValues(_,B)!==1?c.createParenthesizedExpression(d):d}function $(d){var B=e.skipPartiallyEmittedExpressions(d);return e.isCommaSequence(B)?c.createParenthesizedExpression(d):d}function C(d){var B=e.skipPartiallyEmittedExpressions(d),T=e.isCommaSequence(B);if(!T)switch(e.getLeftmostExpression(B,!1).kind){case 225:case 212:T=!0}return T?c.createParenthesizedExpression(d):d}function K(d){var B=e.getLeftmostExpression(d,!0);switch(B.kind){case 207:return c.createParenthesizedExpression(d);case 208:return B.arguments?d:c.createParenthesizedExpression(d)}return k(d)}function k(d){var B=e.skipPartiallyEmittedExpressions(d);return e.isLeftHandSideExpression(B)&&(B.kind!==208||B.arguments)?d:e.setTextRange(c.createParenthesizedExpression(d),d)}function X(d){return e.isLeftHandSideExpression(d)?d:e.setTextRange(c.createParenthesizedExpression(d),d)}function O(d){return e.isUnaryExpression(d)?d:e.setTextRange(c.createParenthesizedExpression(d),d)}function x(d){var B=e.sameMap(d,ie);return e.setTextRange(c.createNodeArray(B,d.hasTrailingComma),d)}function ie(d){var B=e.skipPartiallyEmittedExpressions(d),T=e.getExpressionPrecedence(B),_=e.getOperatorPrecedence(220,27);return T>_?d:e.setTextRange(c.createParenthesizedExpression(d),d)}function Z(d){var B=e.skipPartiallyEmittedExpressions(d);if(e.isCallExpression(B)){var T=B.expression,_=e.skipPartiallyEmittedExpressions(T).kind;if(_===212||_===213){var h=c.updateCallExpression(B,e.setTextRange(c.createParenthesizedExpression(T),T),B.typeArguments,B.arguments);return c.restoreOuterExpressions(d,h,8)}}var R=e.getLeftmostExpression(B,!1).kind;return R===204||R===212?e.setTextRange(c.createParenthesizedExpression(d),d):d}function re(d){return!e.isBlock(d)&&(e.isCommaSequence(d)||e.getLeftmostExpression(d,!1).kind===204)?e.setTextRange(c.createParenthesizedExpression(d),d):d}function q(d){return d.kind===188?c.createParenthesizedType(d):d}function P(d){switch(d.kind){case 186:case 187:case 178:case 179:return c.createParenthesizedType(d)}return q(d)}function M(d){switch(d.kind){case 180:case 192:case 189:return c.createParenthesizedType(d)}return P(d)}function Q(d){return c.createNodeArray(e.sameMap(d,P))}function H(d,B){return B===0&&e.isFunctionOrConstructorTypeNode(d)&&d.typeParameters?c.createParenthesizedType(d):d}function w(d){if(e.some(d))return c.createNodeArray(e.sameMap(d,H))}}e.createParenthesizerRules=n,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(c){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(c){return e.identity},parenthesizeLeftSideOfBinary:function(c,u){return u},parenthesizeRightSideOfBinary:function(c,u,g){return g},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(c){return e.cast(c,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(c){return e.cast(c,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(c){return e.cast(c,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(c){return e.cast(c,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(c){return e.cast(c,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(c){return e.cast(c,e.isNodeArray)},parenthesizeTypeArguments:function(c){return c&&e.cast(c,e.isNodeArray)}}})(mr||(mr={}));var mr;(function(e){function n(c){return{convertToFunctionBlock:u,convertToFunctionExpression:g,convertToArrayAssignmentElement:p,convertToObjectAssignmentElement:I,convertToAssignmentPattern:V,convertToObjectAssignmentPattern:L,convertToArrayAssignmentPattern:m,convertToAssignmentElementTarget:y};function u(j,te){if(e.isBlock(j))return j;var E=c.createReturnStatement(j);e.setTextRange(E,j);var F=c.createBlock([E],te);return e.setTextRange(F,j),F}function g(j){if(!j.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var te=c.createFunctionExpression(j.modifiers,j.asteriskToken,j.name,j.typeParameters,j.parameters,j.type,j.body);return e.setOriginalNode(te,j),e.setTextRange(te,j),e.getStartsOnNewLine(j)&&e.setStartsOnNewLine(te,!0),te}function p(j){if(e.isBindingElement(j)){if(j.dotDotDotToken)return e.Debug.assertNode(j.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(c.createSpreadElement(j.name),j),j);var te=y(j.name);return j.initializer?e.setOriginalNode(e.setTextRange(c.createAssignment(te,j.initializer),j),j):te}return e.cast(j,e.isExpression)}function I(j){if(e.isBindingElement(j)){if(j.dotDotDotToken)return e.Debug.assertNode(j.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(c.createSpreadAssignment(j.name),j),j);if(j.propertyName){var te=y(j.name);return e.setOriginalNode(e.setTextRange(c.createPropertyAssignment(j.propertyName,j.initializer?c.createAssignment(te,j.initializer):te),j),j)}return e.Debug.assertNode(j.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(c.createShorthandPropertyAssignment(j.name,j.initializer),j),j)}return e.cast(j,e.isObjectLiteralElementLike)}function V(j){switch(j.kind){case 201:case 203:return m(j);case 200:case 204:return L(j)}}function L(j){return e.isObjectBindingPattern(j)?e.setOriginalNode(e.setTextRange(c.createObjectLiteralExpression(e.map(j.elements,I)),j),j):e.cast(j,e.isObjectLiteralExpression)}function m(j){return e.isArrayBindingPattern(j)?e.setOriginalNode(e.setTextRange(c.createArrayLiteralExpression(e.map(j.elements,p)),j),j):e.cast(j,e.isArrayLiteralExpression)}function y(j){return e.isBindingPattern(j)?V(j):e.cast(j,e.isExpression)}}e.createNodeConverters=n,e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}})(mr||(mr={}));var mr;(function(e){var n=0,c;(function(Q){Q[Q.None=0]="None",Q[Q.NoParenthesizerRules=1]="NoParenthesizerRules",Q[Q.NoNodeConverters=2]="NoNodeConverters",Q[Q.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",Q[Q.NoOriginalNode=8]="NoOriginalNode"})(c=e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function u(Q,H){var w=Q&8?g:p,d=e.memoize(function(){return Q&1?e.nullParenthesizerRules:e.createParenthesizerRules(Se)}),B=e.memoize(function(){return Q&2?e.nullNodeConverters:e.createNodeConverters(Se)}),T=e.memoizeOne(function(v){return function(W,Ee){return Qa(W,v,Ee)}}),_=e.memoizeOne(function(v){return function(W){return an(v,W)}}),h=e.memoizeOne(function(v){return function(W){return da(W,v)}}),R=e.memoizeOne(function(v){return function(){return Gc(v)}}),b=e.memoizeOne(function(v){return function(W){return kl(v,W)}}),G=e.memoizeOne(function(v){return function(W,Ee){return Qc(v,W,Ee)}}),Y=e.memoizeOne(function(v){return function(W,Ee){return Ff(v,W,Ee)}}),pe=e.memoizeOne(function(v){return function(W,Ee,er){return _d(v,W,Ee,er)}}),A=e.memoizeOne(function(v){return function(W,Ee,er){return ff(v,W,Ee,er)}}),_e=e.memoizeOne(function(v){return function(W,Ee,er,Wr){return dc(v,W,Ee,er,Wr)}}),Se={get parenthesizer(){return d()},get converters(){return B()},createNodeArray:ae,createNumericLiteral:ce,createBigIntLiteral:Ue,createStringLiteral:Ne,createStringLiteralFromNode:ve,createRegularExpressionLiteral:Ve,createLiteralLikeNode:gr,createIdentifier:ur,updateIdentifier:xr,createTempVariable:sr,createLoopVariable:i,createUniqueName:Mr,getGeneratedNameForNode:fr,createPrivateIdentifier:Ar,createToken:we,createSuper:qe,createThis:Cr,createNull:kr,createTrue:He,createFalse:lr,createModifier:Hr,createModifiersFromModifierFlags:Je,createQualifiedName:Sr,updateQualifiedName:Yr,createComputedPropertyName:ot,updateComputedPropertyName:_t,createTypeParameterDeclaration:kt,updateTypeParameterDeclaration:Yt,createParameterDeclaration:vn,updateParameterDeclaration:Mn,createDecorator:qn,updateDecorator:nr,createPropertySignature:Zr,updatePropertySignature:ir,createPropertyDeclaration:ge,updatePropertyDeclaration:rr,createMethodSignature:pr,updateMethodSignature:Lr,createMethodDeclaration:Ce,updateMethodDeclaration:cr,createConstructorDeclaration:z,updateConstructorDeclaration:ke,createGetAccessorDeclaration:dr,updateGetAccessorDeclaration:Xe,createSetAccessorDeclaration:Qe,updateSetAccessorDeclaration:Ir,createCallSignature:Jr,updateCallSignature:Or,createConstructSignature:Be,updateConstructSignature:yr,createIndexSignature:Rr,updateIndexSignature:zr,createClassStaticBlockDeclaration:$e,updateClassStaticBlockDeclaration:De,createTemplateLiteralTypeSpan:ut,updateTemplateLiteralTypeSpan:mt,createKeywordTypeNode:Lt,createTypePredicateNode:vt,updateTypePredicateNode:pt,createTypeReferenceNode:Nt,updateTypeReferenceNode:Xt,createFunctionTypeNode:st,updateFunctionTypeNode:$t,createConstructorTypeNode:Pn,updateConstructorTypeNode:pa,createTypeQueryNode:bt,updateTypeQueryNode:Ut,createTypeLiteralNode:Kt,updateTypeLiteralNode:bn,createArrayTypeNode:wn,updateArrayTypeNode:ra,createTupleTypeNode:ft,updateTupleTypeNode:Ct,createNamedTupleMember:Pt,updateNamedTupleMember:Et,createOptionalTypeNode:et,updateOptionalTypeNode:hn,createRestTypeNode:Qn,updateRestTypeNode:Ra,createUnionTypeNode:ya,updateUnionTypeNode:$a,createIntersectionTypeNode:ao,updateIntersectionTypeNode:ei,createConditionalTypeNode:Fi,updateConditionalTypeNode:eo,createInferTypeNode:Wo,updateInferTypeNode:Yi,createImportTypeNode:lo,updateImportTypeNode:So,createParenthesizedType:ts,updateParenthesizedType:ja,createThisTypeNode:Do,createTypeOperatorNode:Pa,updateTypeOperatorNode:Ti,createIndexedAccessTypeNode:mo,updateIndexedAccessTypeNode:No,createMappedTypeNode:ko,updateMappedTypeNode:Oo,createLiteralTypeNode:Po,updateLiteralTypeNode:Ss,createTemplateLiteralType:Ni,updateTemplateLiteralType:Eo,createObjectBindingPattern:Ds,updateObjectBindingPattern:vr,createArrayBindingPattern:gt,updateArrayBindingPattern:tn,createBindingElement:Bn,updateBindingElement:Fe,createArrayLiteralExpression:ht,updateArrayLiteralExpression:ye,createObjectLiteralExpression:oe,updateObjectLiteralExpression:Pe,createPropertyAccessExpression:Q&4?function(v,W){return e.setEmitFlags(Ye(v,W),131072)}:Ye,updatePropertyAccessExpression:Tr,createPropertyAccessChain:Q&4?function(v,W,Ee){return e.setEmitFlags(tt(v,W,Ee),131072)}:tt,updatePropertyAccessChain:Mt,createElementAccessExpression:Wt,updateElementAccessExpression:Ln,createElementAccessChain:va,updateElementAccessChain:ti,createCallExpression:ii,updateCallExpression:Si,createCallChain:Oi,updateCallChain:_s,createNewExpression:os,updateNewExpression:jo,createTaggedTemplateExpression:At,updateTaggedTemplateExpression:Wn,createTypeAssertion:sa,updateTypeAssertion:oi,createParenthesizedExpression:vi,updateParenthesizedExpression:Ui,createFunctionExpression:Ca,updateFunctionExpression:gi,createArrowFunction:Mi,updateArrowFunction:Vi,createDeleteExpression:Ro,updateDeleteExpression:Yo,createTypeOfExpression:ns,updateTypeOfExpression:me,createVoidExpression:Pr,updateVoidExpression:yt,createAwaitExpression:Le,updateAwaitExpression:Xr,createPrefixUnaryExpression:an,updatePrefixUnaryExpression:Xn,createPostfixUnaryExpression:da,updatePostfixUnaryExpression:bi,createBinaryExpression:Qa,updateBinaryExpression:wr,createConditionalExpression:ss,updateConditionalExpression:al,createTemplateExpression:Sl,updateTemplateExpression:zo,createTemplateHead:ic,createTemplateMiddle:Vl,createTemplateTail:zc,createNoSubstitutionTemplateLiteral:io,createTemplateLiteralLikeNode:xl,createYieldExpression:Zl,updateYieldExpression:Oc,createSpreadElement:ul,updateSpreadElement:oc,createClassExpression:sc,updateClassExpression:Ia,createOmittedExpression:tf,createExpressionWithTypeArguments:Rc,updateExpressionWithTypeArguments:lc,createAsExpression:Fr,updateAsExpression:rt,createNonNullExpression:Dt,updateNonNullExpression:zt,createNonNullChain:_n,updateNonNullChain:dn,createMetaProperty:On,updateMetaProperty:Jn,createTemplateSpan:Fa,updateTemplateSpan:fa,createSemicolonClassElement:ba,createBlock:Na,updateBlock:he,createVariableStatement:ar,updateVariableStatement:hr,createEmptyStatement:dt,createExpressionStatement:en,updateExpressionStatement:ta,createIfStatement:Un,updateIfStatement:Ta,createDoStatement:Ei,updateDoStatement:Qi,createWhileStatement:Wi,updateWhileStatement:Ai,createForStatement:Ci,updateForStatement:Fo,createForInStatement:xo,updateForInStatement:js,createForOfStatement:Dl,updateForOfStatement:cc,createContinueStatement:qc,updateContinueStatement:Br,createBreakStatement:Il,updateBreakStatement:Nl,createReturnStatement:wc,updateReturnStatement:fl,createWithStatement:Mc,updateWithStatement:sd,createSwitchStatement:co,updateSwitchStatement:Fd,createLabeledStatement:bp,updateLabeledStatement:ld,createThrowStatement:cs,updateThrowStatement:nf,createTryStatement:hc,updateTryStatement:Gd,createDebuggerStatement:Ll,createVariableDeclaration:Bd,updateVariableDeclaration:qs,createVariableDeclarationList:Va,updateVariableDeclarationList:Zn,createFunctionDeclaration:Pc,updateFunctionDeclaration:Al,createClassDeclaration:Ud,updateClassDeclaration:af,createInterfaceDeclaration:vu,updateInterfaceDeclaration:Ho,createTypeAliasDeclaration:Vd,updateTypeAliasDeclaration:Wd,createEnumDeclaration:of,updateEnumDeclaration:jd,createModuleDeclaration:cd,updateModuleDeclaration:$l,createModuleBlock:o_,updateModuleBlock:Hd,createCaseBlock:Jd,updateCaseBlock:Ep,createNamespaceExportDeclaration:s_,updateNamespaceExportDeclaration:Tp,createImportEqualsDeclaration:Sp,updateImportEqualsDeclaration:Nf,createImportDeclaration:l_,updateImportDeclaration:Kd,createImportClause:Dp,updateImportClause:P_,createAssertClause:hu,updateAssertClause:Fc,createAssertEntry:uc,updateAssertEntry:ec,createNamespaceImport:ud,updateNamespaceImport:kf,createNamespaceExport:fd,updateNamespaceExport:c_,createNamedImports:sf,updateNamedImports:F_,createImportSpecifier:dd,updateImportSpecifier:u_,createExportAssignment:Of,updateExportAssignment:zd,createExportDeclaration:Bu,updateExportDeclaration:qd,createNamedExports:ks,updateNamedExports:Xc,createExportSpecifier:Yc,updateExportSpecifier:f_,createMissingDeclaration:lf,createExternalModuleReference:Uu,updateExternalModuleReference:G_,get createJSDocAllType(){return R(310)},get createJSDocUnknownType(){return R(311)},get createJSDocNonNullableType(){return b(313)},get updateJSDocNonNullableType(){return G(313)},get createJSDocNullableType(){return b(312)},get updateJSDocNullableType(){return G(312)},get createJSDocOptionalType(){return b(314)},get updateJSDocOptionalType(){return G(314)},get createJSDocVariadicType(){return b(316)},get updateJSDocVariadicType(){return G(316)},get createJSDocNamepathType(){return b(317)},get updateJSDocNamepathType(){return G(317)},createJSDocFunctionType:Wl,updateJSDocFunctionType:Bc,createJSDocTypeLiteral:Xd,updateJSDocTypeLiteral:pd,createJSDocTypeExpression:yu,updateJSDocTypeExpression:Rf,createJSDocSignature:Zi,updateJSDocSignature:cf,createJSDocTemplateTag:Lp,updateJSDocTemplateTag:rc,createJSDocTypedefTag:wf,updateJSDocTypedefTag:Cn,createJSDocParameterTag:us,updateJSDocParameterTag:ui,createJSDocPropertyTag:yc,updateJSDocPropertyTag:Ap,createJSDocCallbackTag:Xs,updateJSDocCallbackTag:An,createJSDocAugmentsTag:d_,updateJSDocAugmentsTag:fs,createJSDocImplementsTag:ls,updateJSDocImplementsTag:uf,createJSDocSeeTag:fc,updateJSDocSeeTag:jl,createJSDocNameReference:Mf,updateJSDocNameReference:Ys,createJSDocMemberName:bc,updateJSDocMemberName:Pf,createJSDocLink:Ec,updateJSDocLink:Zc,createJSDocLinkCode:bu,updateJSDocLinkCode:_l,createJSDocLinkPlain:Cp,updateJSDocLinkPlain:Eu,get createJSDocTypeTag(){return A(341)},get updateJSDocTypeTag(){return _e(341)},get createJSDocReturnTag(){return A(339)},get updateJSDocReturnTag(){return _e(339)},get createJSDocThisTag(){return A(340)},get updateJSDocThisTag(){return _e(340)},get createJSDocEnumTag(){return A(337)},get updateJSDocEnumTag(){return _e(337)},get createJSDocAuthorTag(){return Y(328)},get updateJSDocAuthorTag(){return pe(328)},get createJSDocClassTag(){return Y(330)},get updateJSDocClassTag(){return pe(330)},get createJSDocPublicTag(){return Y(331)},get updateJSDocPublicTag(){return pe(331)},get createJSDocPrivateTag(){return Y(332)},get updateJSDocPrivateTag(){return pe(332)},get createJSDocProtectedTag(){return Y(333)},get updateJSDocProtectedTag(){return pe(333)},get createJSDocReadonlyTag(){return Y(334)},get updateJSDocReadonlyTag(){return pe(334)},get createJSDocOverrideTag(){return Y(335)},get updateJSDocOverrideTag(){return pe(335)},get createJSDocDeprecatedTag(){return Y(329)},get updateJSDocDeprecatedTag(){return pe(329)},createJSDocUnknownTag:md,updateJSDocUnknownTag:Yd,createJSDocText:Tu,updateJSDocText:il,createJSDocComment:Ol,updateJSDocComment:$c,createJsxElement:df,updateJsxElement:Ha,createJsxSelfClosingElement:xn,updateJsxSelfClosingElement:Ls,createJsxOpeningElement:xp,updateJsxOpeningElement:Qd,createJsxClosingElement:pf,updateJsxClosingElement:_f,createJsxFragment:gd,createJsxText:Rs,updateJsxText:Gf,createJsxOpeningFragment:Vu,createJsxJsxClosingFragment:dl,updateJsxFragment:Hl,createJsxAttribute:Ip,updateJsxAttribute:$o,createJsxAttributes:ml,updateJsxAttributes:p_,createJsxSpreadAttribute:tc,updateJsxSpreadAttribute:mf,createJsxExpression:Su,updateJsxExpression:Np,createCaseClause:Bf,updateCaseClause:Rl,createDefaultClause:es,updateDefaultClause:Wu,createHeritageClause:Uf,updateHeritageClause:eu,createCatchClause:Vf,updateCatchClause:vd,createPropertyAssignment:hd,updatePropertyAssignment:ju,createShorthandPropertyAssignment:Uc,updateShorthandPropertyAssignment:Du,createSpreadAssignment:vf,updateSpreadAssignment:Hu,createEnumMember:Wf,updateEnumMember:Jl,createSourceFile:Ju,updateSourceFile:Ja,createBundle:Tc,updateBundle:pn,createUnparsedSource:ep,createUnparsedPrologue:rp,createUnparsedPrepend:kp,createUnparsedTextLike:Op,createUnparsedSyntheticReference:B_,createInputFiles:ru,createSyntheticExpression:Rp,createSyntaxList:pc,createNotEmittedStatement:wp,createPartiallyEmittedExpression:nc,updatePartiallyEmittedExpression:hf,createCommaListExpression:tu,updateCommaListExpression:nu,createEndOfDeclarationMarker:yd,createMergeDeclarationMarker:S,createSyntheticReferenceExpression:Ze,updateSyntheticReferenceExpression:nt,cloneNode:wt,get createComma(){return T(27)},get createAssignment(){return T(63)},get createLogicalOr(){return T(56)},get createLogicalAnd(){return T(55)},get createBitwiseOr(){return T(51)},get createBitwiseXor(){return T(52)},get createBitwiseAnd(){return T(50)},get createStrictEquality(){return T(36)},get createStrictInequality(){return T(37)},get createEquality(){return T(34)},get createInequality(){return T(35)},get createLessThan(){return T(29)},get createLessThanEquals(){return T(32)},get createGreaterThan(){return T(31)},get createGreaterThanEquals(){return T(33)},get createLeftShift(){return T(47)},get createRightShift(){return T(48)},get createUnsignedRightShift(){return T(49)},get createAdd(){return T(39)},get createSubtract(){return T(40)},get createMultiply(){return T(41)},get createDivide(){return T(43)},get createModulo(){return T(44)},get createExponent(){return T(42)},get createPrefixPlus(){return _(39)},get createPrefixMinus(){return _(40)},get createPrefixIncrement(){return _(45)},get createPrefixDecrement(){return _(46)},get createBitwiseNot(){return _(54)},get createLogicalNot(){return _(53)},get createPostfixIncrement(){return h(45)},get createPostfixDecrement(){return h(46)},createImmediatelyInvokedFunctionExpression:ca,createImmediatelyInvokedArrowFunction:Ga,createVoidZero:na,createExportDefault:si,createExternalModuleExport:wa,createTypeCheck:Za,createMethodCall:Lo,createGlobalMethodCall:gl,createFunctionBindCall:ol,createFunctionCallCall:As,createFunctionApplyCall:Ms,createArraySliceCall:au,createArrayConcatCall:iu,createObjectDefinePropertyCall:ou,createReflectGetCall:yf,createReflectSetCall:__,createPropertyDescriptor:m_,createCallBinding:br,createAssignmentTargetWrapper:Ur,inlineExpressions:lt,getInternalName:Zt,getLocalName:Rn,getExportName:$n,getDeclarationName:La,getNamespaceMemberName:Da,getExternalModuleOrNamespaceExportName:zi,restoreOuterExpressions:np,restoreEnclosingLabel:g_,createUseStrictPrologue:Bo,copyPrologue:Qo,copyStandardPrologue:vs,copyCustomPrologue:sl,ensureUseStrict:Os,liftToBlock:su,mergeLexicalEnvironment:Ku,updateModifiers:bd};return Se;function ae(v,W){if(v===void 0||v===e.emptyArray)v=[];else if(e.isNodeArray(v)){if(W===void 0||v.hasTrailingComma===W)return v.transformFlags===void 0&&F(v),e.Debug.attachNodeArrayDebugInfo(v),v;var Ee=v.slice();return Ee.pos=v.pos,Ee.end=v.end,Ee.hasTrailingComma=W,Ee.transformFlags=v.transformFlags,e.Debug.attachNodeArrayDebugInfo(Ee),Ee}var er=v.length,Wr=er>=1&&er<=4?v.slice():v;return e.setTextRangePosEnd(Wr,-1,-1),Wr.hasTrailingComma=!!W,F(Wr),e.Debug.attachNodeArrayDebugInfo(Wr),Wr}function D(v){return H.createBaseNode(v)}function be(v,W,Ee){var er=D(v);return er.decorators=Fs(W),er.modifiers=Fs(Ee),er.transformFlags|=E(er.decorators)|E(er.modifiers),er.symbol=void 0,er.localSymbol=void 0,er.locals=void 0,er.nextContainer=void 0,er}function ne(v,W,Ee,er){var Wr=be(v,W,Ee);if(er=Sc(er),Wr.name=er,er)switch(Wr.kind){case 168:case 171:case 172:case 166:case 294:if(e.isIdentifier(er)){Wr.transformFlags|=y(er);break}default:Wr.transformFlags|=te(er);break}return Wr}function J(v,W,Ee,er,Wr){var Jt=ne(v,W,Ee,er);return Jt.typeParameters=Fs(Wr),Jt.transformFlags|=E(Jt.typeParameters),Wr&&(Jt.transformFlags|=1),Jt}function le(v,W,Ee,er,Wr,Jt,ln){var Xa=J(v,W,Ee,er,Wr);return Xa.parameters=ae(Jt),Xa.type=ln,Xa.transformFlags|=E(Xa.parameters)|te(Xa.type),ln&&(Xa.transformFlags|=1),Xa}function Te(v,W){return W.typeArguments&&(v.typeArguments=W.typeArguments),w(v,W)}function Me(v,W,Ee,er,Wr,Jt,ln,Xa){var Uo=le(v,W,Ee,er,Wr,Jt,ln);return Uo.body=Xa,Uo.transformFlags|=te(Uo.body)&-16777217,Xa||(Uo.transformFlags|=1),Uo}function Ke(v,W){return W.exclamationToken&&(v.exclamationToken=W.exclamationToken),W.typeArguments&&(v.typeArguments=W.typeArguments),Te(v,W)}function Ae(v,W,Ee,er,Wr,Jt){var ln=J(v,W,Ee,er,Wr);return ln.heritageClauses=Fs(Jt),ln.transformFlags|=E(ln.heritageClauses),ln}function Ge(v,W,Ee,er,Wr,Jt,ln){var Xa=Ae(v,W,Ee,er,Wr,Jt);return Xa.members=ae(ln),Xa.transformFlags|=E(Xa.members),Xa}function se(v,W,Ee,er,Wr){var Jt=ne(v,W,Ee,er);return Jt.initializer=Wr,Jt.transformFlags|=te(Jt.initializer),Jt}function xe(v,W,Ee,er,Wr,Jt){var ln=se(v,W,Ee,er,Jt);return ln.type=Wr,ln.transformFlags|=te(Wr),Wr&&(ln.transformFlags|=1),ln}function Re(v,W){var Ee=de(v);return Ee.text=W,Ee}function ce(v,W){W===void 0&&(W=0);var Ee=Re(8,typeof v=="number"?v+"":v);return Ee.numericLiteralFlags=W,W&384&&(Ee.transformFlags|=512),Ee}function Ue(v){var W=Re(9,typeof v=="string"?v:e.pseudoBigIntToString(v)+"n");return W.transformFlags|=4,W}function We(v,W){var Ee=Re(10,v);return Ee.singleQuote=W,Ee}function Ne(v,W,Ee){var er=We(v,W);return er.hasExtendedUnicodeEscape=Ee,Ee&&(er.transformFlags|=512),er}function ve(v){var W=We(e.getTextOfIdentifierOrLiteral(v),void 0);return W.textSourceNode=v,W}function Ve(v){var W=Re(13,v);return W}function gr(v,W){switch(v){case 8:return ce(W,0);case 9:return Ue(W);case 10:return Ne(W,void 0);case 11:return Rs(W,!1);case 12:return Rs(W,!0);case 13:return Ve(W);case 14:return xl(v,W,void 0,0)}}function Er(v,W){W===void 0&&v&&(W=e.stringToToken(v)),W===79&&(W=void 0);var Ee=H.createBaseIdentifierNode(79);return Ee.originalKeywordKind=W,Ee.escapedText=e.escapeLeadingUnderscores(v),Ee}function Nr(v,W){var Ee=Er(v,void 0);return Ee.autoGenerateFlags=W,Ee.autoGenerateId=n,n++,Ee}function ur(v,W,Ee){var er=Er(v,Ee);return W&&(er.typeArguments=ae(W)),er.originalKeywordKind===132&&(er.transformFlags|=16777216),er}function xr(v,W){return v.typeArguments!==W?w(ur(e.idText(v),W),v):v}function sr(v,W){var Ee=1;W&&(Ee|=8);var er=Nr("",Ee);return v&&v(er),er}function i(v){var W=2;return v&&(W|=8),Nr("",W)}function Mr(v,W){return W===void 0&&(W=0),e.Debug.assert(!(W&7),"Argument out of range: flags"),e.Debug.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Nr(v,3|W)}function fr(v,W){W===void 0&&(W=0),e.Debug.assert(!(W&7),"Argument out of range: flags");var Ee=Nr(v&&e.isIdentifier(v)?e.idText(v):"",4|W);return Ee.original=v,Ee}function Ar(v){e.startsWith(v,"#")||e.Debug.fail("First character of private identifier must be #: "+v);var W=H.createBasePrivateIdentifierNode(80);return W.escapedText=e.escapeLeadingUnderscores(v),W.transformFlags|=8388608,W}function de(v){return H.createBaseTokenNode(v)}function we(v){e.Debug.assert(v>=0&&v<=159,"Invalid token"),e.Debug.assert(v<=14||v>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(v<=8||v>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(v!==79,"Invalid token. Use 'createIdentifier' to create identifiers");var W=de(v),Ee=0;switch(v){case 131:Ee=192;break;case 123:case 121:case 122:case 144:case 126:case 135:case 85:case 130:case 146:case 157:case 143:case 147:case 158:case 149:case 133:case 150:case 114:case 154:case 152:Ee=1;break;case 106:Ee=33554944;break;case 124:Ee=512;break;case 108:Ee=8192;break}return Ee&&(W.transformFlags|=Ee),W}function qe(){return we(106)}function Cr(){return we(108)}function kr(){return we(104)}function He(){return we(110)}function lr(){return we(95)}function Hr(v){return we(v)}function Je(v){var W=[];return v&1&&W.push(Hr(93)),v&2&&W.push(Hr(135)),v&512&&W.push(Hr(88)),v&2048&&W.push(Hr(85)),v&4&&W.push(Hr(123)),v&8&&W.push(Hr(121)),v&16&&W.push(Hr(122)),v&128&&W.push(Hr(126)),v&32&&W.push(Hr(124)),v&16384&&W.push(Hr(158)),v&64&&W.push(Hr(144)),v&256&&W.push(Hr(131)),W}function Sr(v,W){var Ee=D(160);return Ee.left=v,Ee.right=Sc(W),Ee.transformFlags|=te(Ee.left)|y(Ee.right),Ee}function Yr(v,W,Ee){return v.left!==W||v.right!==Ee?w(Sr(W,Ee),v):v}function ot(v){var W=D(161);return W.expression=d().parenthesizeExpressionOfComputedPropertyName(v),W.transformFlags|=te(W.expression)|512|65536,W}function _t(v,W){return v.expression!==W?w(ot(W),v):v}function kt(v,W,Ee){var er=ne(162,void 0,void 0,v);return er.constraint=W,er.default=Ee,er.transformFlags=1,er}function Yt(v,W,Ee,er){return v.name!==W||v.constraint!==Ee||v.default!==er?w(kt(W,Ee,er),v):v}function vn(v,W,Ee,er,Wr,Jt,ln){var Xa=xe(163,v,W,er,Jt,ln&&d().parenthesizeExpressionForDisallowedComma(ln));return Xa.dotDotDotToken=Ee,Xa.questionToken=Wr,e.isThisIdentifier(Xa.name)?Xa.transformFlags=1:(Xa.transformFlags|=te(Xa.dotDotDotToken)|te(Xa.questionToken),Wr&&(Xa.transformFlags|=1),e.modifiersToFlags(Xa.modifiers)&16476&&(Xa.transformFlags|=4096),(ln||Ee)&&(Xa.transformFlags|=512)),Xa}function Mn(v,W,Ee,er,Wr,Jt,ln,Xa){return v.decorators!==W||v.modifiers!==Ee||v.dotDotDotToken!==er||v.name!==Wr||v.questionToken!==Jt||v.type!==ln||v.initializer!==Xa?w(vn(W,Ee,er,Wr,Jt,ln,Xa),v):v}function qn(v){var W=D(164);return W.expression=d().parenthesizeLeftSideOfAccess(v),W.transformFlags|=te(W.expression)|1|4096,W}function nr(v,W){return v.expression!==W?w(qn(W),v):v}function Zr(v,W,Ee,er){var Wr=ne(165,void 0,v,W);return Wr.type=er,Wr.questionToken=Ee,Wr.transformFlags=1,Wr}function ir(v,W,Ee,er,Wr){return v.modifiers!==W||v.name!==Ee||v.questionToken!==er||v.type!==Wr?w(Zr(W,Ee,er,Wr),v):v}function ge(v,W,Ee,er,Wr,Jt){var ln=xe(166,v,W,Ee,Wr,Jt);return ln.questionToken=er&&e.isQuestionToken(er)?er:void 0,ln.exclamationToken=er&&e.isExclamationToken(er)?er:void 0,ln.transformFlags|=te(ln.questionToken)|te(ln.exclamationToken)|8388608,(e.isComputedPropertyName(ln.name)||e.hasStaticModifier(ln)&&ln.initializer)&&(ln.transformFlags|=4096),(er||e.modifiersToFlags(ln.modifiers)&2)&&(ln.transformFlags|=1),ln}function rr(v,W,Ee,er,Wr,Jt,ln){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.questionToken!==(Wr!==void 0&&e.isQuestionToken(Wr)?Wr:void 0)||v.exclamationToken!==(Wr!==void 0&&e.isExclamationToken(Wr)?Wr:void 0)||v.type!==Jt||v.initializer!==ln?w(ge(W,Ee,er,Wr,Jt,ln),v):v}function pr(v,W,Ee,er,Wr,Jt){var ln=le(167,void 0,v,W,er,Wr,Jt);return ln.questionToken=Ee,ln.transformFlags=1,ln}function Lr(v,W,Ee,er,Wr,Jt,ln){return v.modifiers!==W||v.name!==Ee||v.questionToken!==er||v.typeParameters!==Wr||v.parameters!==Jt||v.type!==ln?Te(pr(W,Ee,er,Wr,Jt,ln),v):v}function Ce(v,W,Ee,er,Wr,Jt,ln,Xa,Uo){var Es=Me(168,v,W,er,Jt,ln,Xa,Uo);return Es.asteriskToken=Ee,Es.questionToken=Wr,Es.transformFlags|=te(Es.asteriskToken)|te(Es.questionToken)|512,Wr&&(Es.transformFlags|=1),e.modifiersToFlags(Es.modifiers)&256?Ee?Es.transformFlags|=64:Es.transformFlags|=128:Ee&&(Es.transformFlags|=1024),Es}function cr(v,W,Ee,er,Wr,Jt,ln,Xa,Uo,Es){return v.decorators!==W||v.modifiers!==Ee||v.asteriskToken!==er||v.name!==Wr||v.questionToken!==Jt||v.typeParameters!==ln||v.parameters!==Xa||v.type!==Uo||v.body!==Es?Ke(Ce(W,Ee,er,Wr,Jt,ln,Xa,Uo,Es),v):v}function $e(v,W,Ee){var er=J(169,v,W,void 0,void 0);return er.body=Ee,er.transformFlags=te(Ee)|8388608,er}function De(v,W,Ee,er){return v.decorators!==W||v.modifier!==Ee||v.body!==er?w($e(W,Ee,er),v):v}function z(v,W,Ee,er){var Wr=Me(170,v,W,void 0,void 0,Ee,void 0,er);return Wr.transformFlags|=512,Wr}function ke(v,W,Ee,er,Wr){return v.decorators!==W||v.modifiers!==Ee||v.parameters!==er||v.body!==Wr?Ke(z(W,Ee,er,Wr),v):v}function dr(v,W,Ee,er,Wr,Jt){return Me(171,v,W,Ee,void 0,er,Wr,Jt)}function Xe(v,W,Ee,er,Wr,Jt,ln){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.parameters!==Wr||v.type!==Jt||v.body!==ln?Ke(dr(W,Ee,er,Wr,Jt,ln),v):v}function Qe(v,W,Ee,er,Wr){return Me(172,v,W,Ee,void 0,er,void 0,Wr)}function Ir(v,W,Ee,er,Wr,Jt){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.parameters!==Wr||v.body!==Jt?Ke(Qe(W,Ee,er,Wr,Jt),v):v}function Jr(v,W,Ee){var er=le(173,void 0,void 0,void 0,v,W,Ee);return er.transformFlags=1,er}function Or(v,W,Ee,er){return v.typeParameters!==W||v.parameters!==Ee||v.type!==er?Te(Jr(W,Ee,er),v):v}function Be(v,W,Ee){var er=le(174,void 0,void 0,void 0,v,W,Ee);return er.transformFlags=1,er}function yr(v,W,Ee,er){return v.typeParameters!==W||v.parameters!==Ee||v.type!==er?Te(Be(W,Ee,er),v):v}function Rr(v,W,Ee,er){var Wr=le(175,v,W,void 0,void 0,Ee,er);return Wr.transformFlags=1,Wr}function zr(v,W,Ee,er,Wr){return v.parameters!==er||v.type!==Wr||v.decorators!==W||v.modifiers!==Ee?Te(Rr(W,Ee,er,Wr),v):v}function ut(v,W){var Ee=D(198);return Ee.type=v,Ee.literal=W,Ee.transformFlags=1,Ee}function mt(v,W,Ee){return v.type!==W||v.literal!==Ee?w(ut(W,Ee),v):v}function Lt(v){return we(v)}function vt(v,W,Ee){var er=D(176);return er.assertsModifier=v,er.parameterName=Sc(W),er.type=Ee,er.transformFlags=1,er}function pt(v,W,Ee,er){return v.assertsModifier!==W||v.parameterName!==Ee||v.type!==er?w(vt(W,Ee,er),v):v}function Nt(v,W){var Ee=D(177);return Ee.typeName=Sc(v),Ee.typeArguments=W&&d().parenthesizeTypeArguments(ae(W)),Ee.transformFlags=1,Ee}function Xt(v,W,Ee){return v.typeName!==W||v.typeArguments!==Ee?w(Nt(W,Ee),v):v}function st(v,W,Ee){var er=le(178,void 0,void 0,void 0,v,W,Ee);return er.transformFlags=1,er}function $t(v,W,Ee,er){return v.typeParameters!==W||v.parameters!==Ee||v.type!==er?Te(st(W,Ee,er),v):v}function Pn(){for(var v=[],W=0;W<arguments.length;W++)v[W]=arguments[W];return v.length===4?Ea.apply(void 0,v):v.length===3?ia.apply(void 0,v):e.Debug.fail("Incorrect number of arguments specified.")}function Ea(v,W,Ee,er){var Wr=le(179,void 0,v,void 0,W,Ee,er);return Wr.transformFlags=1,Wr}function ia(v,W,Ee){return Ea(void 0,v,W,Ee)}function pa(){for(var v=[],W=0;W<arguments.length;W++)v[W]=arguments[W];return v.length===5?Gn.apply(void 0,v):v.length===4?nn.apply(void 0,v):e.Debug.fail("Incorrect number of arguments specified.")}function Gn(v,W,Ee,er,Wr){return v.modifiers!==W||v.typeParameters!==Ee||v.parameters!==er||v.type!==Wr?Te(Pn(W,Ee,er,Wr),v):v}function nn(v,W,Ee,er){return Gn(v,v.modifiers,W,Ee,er)}function bt(v){var W=D(180);return W.exprName=v,W.transformFlags=1,W}function Ut(v,W){return v.exprName!==W?w(bt(W),v):v}function Kt(v){var W=D(181);return W.members=ae(v),W.transformFlags=1,W}function bn(v,W){return v.members!==W?w(Kt(W),v):v}function wn(v){var W=D(182);return W.elementType=d().parenthesizeElementTypeOfArrayType(v),W.transformFlags=1,W}function ra(v,W){return v.elementType!==W?w(wn(W),v):v}function ft(v){var W=D(183);return W.elements=ae(v),W.transformFlags=1,W}function Ct(v,W){return v.elements!==W?w(ft(W),v):v}function Pt(v,W,Ee,er){var Wr=D(196);return Wr.dotDotDotToken=v,Wr.name=W,Wr.questionToken=Ee,Wr.type=er,Wr.transformFlags=1,Wr}function Et(v,W,Ee,er,Wr){return v.dotDotDotToken!==W||v.name!==Ee||v.questionToken!==er||v.type!==Wr?w(Pt(W,Ee,er,Wr),v):v}function et(v){var W=D(184);return W.type=d().parenthesizeElementTypeOfArrayType(v),W.transformFlags=1,W}function hn(v,W){return v.type!==W?w(et(W),v):v}function Qn(v){var W=D(185);return W.type=v,W.transformFlags=1,W}function Ra(v,W){return v.type!==W?w(Qn(W),v):v}function Ki(v,W){var Ee=D(v);return Ee.types=d().parenthesizeConstituentTypesOfUnionOrIntersectionType(W),Ee.transformFlags=1,Ee}function di(v,W){return v.types!==W?w(Ki(v.kind,W),v):v}function ya(v){return Ki(186,v)}function $a(v,W){return di(v,W)}function ao(v){return Ki(187,v)}function ei(v,W){return di(v,W)}function Fi(v,W,Ee,er){var Wr=D(188);return Wr.checkType=d().parenthesizeMemberOfConditionalType(v),Wr.extendsType=d().parenthesizeMemberOfConditionalType(W),Wr.trueType=Ee,Wr.falseType=er,Wr.transformFlags=1,Wr}function eo(v,W,Ee,er,Wr){return v.checkType!==W||v.extendsType!==Ee||v.trueType!==er||v.falseType!==Wr?w(Fi(W,Ee,er,Wr),v):v}function Wo(v){var W=D(189);return W.typeParameter=v,W.transformFlags=1,W}function Yi(v,W){return v.typeParameter!==W?w(Wo(W),v):v}function Ni(v,W){var Ee=D(197);return Ee.head=v,Ee.templateSpans=ae(W),Ee.transformFlags=1,Ee}function Eo(v,W,Ee){return v.head!==W||v.templateSpans!==Ee?w(Ni(W,Ee),v):v}function lo(v,W,Ee,er){er===void 0&&(er=!1);var Wr=D(199);return Wr.argument=v,Wr.qualifier=W,Wr.typeArguments=Ee&&d().parenthesizeTypeArguments(Ee),Wr.isTypeOf=er,Wr.transformFlags=1,Wr}function So(v,W,Ee,er,Wr){return Wr===void 0&&(Wr=v.isTypeOf),v.argument!==W||v.qualifier!==Ee||v.typeArguments!==er||v.isTypeOf!==Wr?w(lo(W,Ee,er,Wr),v):v}function ts(v){var W=D(190);return W.type=v,W.transformFlags=1,W}function ja(v,W){return v.type!==W?w(ts(W),v):v}function Do(){var v=D(191);return v.transformFlags=1,v}function Pa(v,W){var Ee=D(192);return Ee.operator=v,Ee.type=d().parenthesizeMemberOfElementType(W),Ee.transformFlags=1,Ee}function Ti(v,W){return v.type!==W?w(Pa(v.operator,W),v):v}function mo(v,W){var Ee=D(193);return Ee.objectType=d().parenthesizeMemberOfElementType(v),Ee.indexType=W,Ee.transformFlags=1,Ee}function No(v,W,Ee){return v.objectType!==W||v.indexType!==Ee?w(mo(W,Ee),v):v}function ko(v,W,Ee,er,Wr,Jt){var ln=D(194);return ln.readonlyToken=v,ln.typeParameter=W,ln.nameType=Ee,ln.questionToken=er,ln.type=Wr,ln.members=Jt&&ae(Jt),ln.transformFlags=1,ln}function Oo(v,W,Ee,er,Wr,Jt,ln){return v.readonlyToken!==W||v.typeParameter!==Ee||v.nameType!==er||v.questionToken!==Wr||v.type!==Jt||v.members!==ln?w(ko(W,Ee,er,Wr,Jt,ln),v):v}function Po(v){var W=D(195);return W.literal=v,W.transformFlags=1,W}function Ss(v,W){return v.literal!==W?w(Po(W),v):v}function Ds(v){var W=D(200);return W.elements=ae(v),W.transformFlags|=E(W.elements)|512|262144,W.transformFlags&16384&&(W.transformFlags|=32832),W}function vr(v,W){return v.elements!==W?w(Ds(W),v):v}function gt(v){var W=D(201);return W.elements=ae(v),W.transformFlags|=E(W.elements)|512|262144,W}function tn(v,W){return v.elements!==W?w(gt(W),v):v}function Bn(v,W,Ee,er){var Wr=se(202,void 0,void 0,Ee,er&&d().parenthesizeExpressionForDisallowedComma(er));return Wr.propertyName=Sc(W),Wr.dotDotDotToken=v,Wr.transformFlags|=te(Wr.dotDotDotToken)|512,Wr.propertyName&&(Wr.transformFlags|=e.isIdentifier(Wr.propertyName)?y(Wr.propertyName):te(Wr.propertyName)),v&&(Wr.transformFlags|=16384),Wr}function Fe(v,W,Ee,er,Wr){return v.propertyName!==Ee||v.dotDotDotToken!==W||v.name!==er||v.initializer!==Wr?w(Bn(W,Ee,er,Wr),v):v}function Gr(v){var W=D(v);return W}function ht(v,W){var Ee=Gr(203),er=v&&e.lastOrUndefined(v),Wr=ae(v,er&&e.isOmittedExpression(er)?!0:void 0);return Ee.elements=d().parenthesizeExpressionsOfCommaDelimitedList(Wr),Ee.multiLine=W,Ee.transformFlags|=E(Ee.elements),Ee}function ye(v,W){return v.elements!==W?w(ht(W,v.multiLine),v):v}function oe(v,W){var Ee=Gr(204);return Ee.properties=ae(v),Ee.multiLine=W,Ee.transformFlags|=E(Ee.properties),Ee}function Pe(v,W){return v.properties!==W?w(oe(W,v.multiLine),v):v}function Ye(v,W){var Ee=Gr(205);return Ee.expression=d().parenthesizeLeftSideOfAccess(v),Ee.name=Sc(W),Ee.transformFlags=te(Ee.expression)|(e.isIdentifier(Ee.name)?y(Ee.name):te(Ee.name)),e.isSuperKeyword(v)&&(Ee.transformFlags|=192),Ee}function Tr(v,W,Ee){return e.isPropertyAccessChain(v)?Mt(v,W,v.questionDotToken,e.cast(Ee,e.isIdentifier)):v.expression!==W||v.name!==Ee?w(Ye(W,Ee),v):v}function tt(v,W,Ee){var er=Gr(205);return er.flags|=32,er.expression=d().parenthesizeLeftSideOfAccess(v),er.questionDotToken=W,er.name=Sc(Ee),er.transformFlags|=16|te(er.expression)|te(er.questionDotToken)|(e.isIdentifier(er.name)?y(er.name):te(er.name)),er}function Mt(v,W,Ee,er){return e.Debug.assert(!!(v.flags&32),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==W||v.questionDotToken!==Ee||v.name!==er?w(tt(W,Ee,er),v):v}function Wt(v,W){var Ee=Gr(206);return Ee.expression=d().parenthesizeLeftSideOfAccess(v),Ee.argumentExpression=Kl(W),Ee.transformFlags|=te(Ee.expression)|te(Ee.argumentExpression),e.isSuperKeyword(v)&&(Ee.transformFlags|=192),Ee}function Ln(v,W,Ee){return e.isElementAccessChain(v)?ti(v,W,v.questionDotToken,Ee):v.expression!==W||v.argumentExpression!==Ee?w(Wt(W,Ee),v):v}function va(v,W,Ee){var er=Gr(206);return er.flags|=32,er.expression=d().parenthesizeLeftSideOfAccess(v),er.questionDotToken=W,er.argumentExpression=Kl(Ee),er.transformFlags|=te(er.expression)|te(er.questionDotToken)|te(er.argumentExpression)|16,er}function ti(v,W,Ee,er){return e.Debug.assert(!!(v.flags&32),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==W||v.questionDotToken!==Ee||v.argumentExpression!==er?w(va(W,Ee,er),v):v}function ii(v,W,Ee){var er=Gr(207);return er.expression=d().parenthesizeLeftSideOfAccess(v),er.typeArguments=Fs(W),er.arguments=d().parenthesizeExpressionsOfCommaDelimitedList(ae(Ee)),er.transformFlags|=te(er.expression)|E(er.typeArguments)|E(er.arguments),er.typeArguments&&(er.transformFlags|=1),e.isImportKeyword(er.expression)?er.transformFlags|=4194304:e.isSuperProperty(er.expression)&&(er.transformFlags|=8192),er}function Si(v,W,Ee,er){return e.isCallChain(v)?_s(v,W,v.questionDotToken,Ee,er):v.expression!==W||v.typeArguments!==Ee||v.arguments!==er?w(ii(W,Ee,er),v):v}function Oi(v,W,Ee,er){var Wr=Gr(207);return Wr.flags|=32,Wr.expression=d().parenthesizeLeftSideOfAccess(v),Wr.questionDotToken=W,Wr.typeArguments=Fs(Ee),Wr.arguments=d().parenthesizeExpressionsOfCommaDelimitedList(ae(er)),Wr.transformFlags|=te(Wr.expression)|te(Wr.questionDotToken)|E(Wr.typeArguments)|E(Wr.arguments)|16,Wr.typeArguments&&(Wr.transformFlags|=1),e.isSuperProperty(Wr.expression)&&(Wr.transformFlags|=8192),Wr}function _s(v,W,Ee,er,Wr){return e.Debug.assert(!!(v.flags&32),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==W||v.questionDotToken!==Ee||v.typeArguments!==er||v.arguments!==Wr?w(Oi(W,Ee,er,Wr),v):v}function os(v,W,Ee){var er=Gr(208);return er.expression=d().parenthesizeExpressionOfNew(v),er.typeArguments=Fs(W),er.arguments=Ee?d().parenthesizeExpressionsOfCommaDelimitedList(Ee):void 0,er.transformFlags|=te(er.expression)|E(er.typeArguments)|E(er.arguments)|16,er.typeArguments&&(er.transformFlags|=1),er}function jo(v,W,Ee,er){return v.expression!==W||v.typeArguments!==Ee||v.arguments!==er?w(os(W,Ee,er),v):v}function At(v,W,Ee){var er=Gr(209);return er.tag=d().parenthesizeLeftSideOfAccess(v),er.typeArguments=Fs(W),er.template=Ee,er.transformFlags|=te(er.tag)|E(er.typeArguments)|te(er.template)|512,er.typeArguments&&(er.transformFlags|=1),e.hasInvalidEscape(er.template)&&(er.transformFlags|=64),er}function Wn(v,W,Ee,er){return v.tag!==W||v.typeArguments!==Ee||v.template!==er?w(At(W,Ee,er),v):v}function sa(v,W){var Ee=Gr(210);return Ee.expression=d().parenthesizeOperandOfPrefixUnary(W),Ee.type=v,Ee.transformFlags|=te(Ee.expression)|te(Ee.type)|1,Ee}function oi(v,W,Ee){return v.type!==W||v.expression!==Ee?w(sa(W,Ee),v):v}function vi(v){var W=Gr(211);return W.expression=v,W.transformFlags=te(W.expression),W}function Ui(v,W){return v.expression!==W?w(vi(W),v):v}function Ca(v,W,Ee,er,Wr,Jt,ln){var Xa=Me(212,void 0,v,Ee,er,Wr,Jt,ln);return Xa.asteriskToken=W,Xa.transformFlags|=te(Xa.asteriskToken),Xa.typeParameters&&(Xa.transformFlags|=1),e.modifiersToFlags(Xa.modifiers)&256?Xa.asteriskToken?Xa.transformFlags|=64:Xa.transformFlags|=128:Xa.asteriskToken&&(Xa.transformFlags|=1024),Xa}function gi(v,W,Ee,er,Wr,Jt,ln,Xa){return v.name!==er||v.modifiers!==W||v.asteriskToken!==Ee||v.typeParameters!==Wr||v.parameters!==Jt||v.type!==ln||v.body!==Xa?Ke(Ca(W,Ee,er,Wr,Jt,ln,Xa),v):v}function Mi(v,W,Ee,er,Wr,Jt){var ln=Me(213,void 0,v,void 0,W,Ee,er,d().parenthesizeConciseBodyOfArrowFunction(Jt));return ln.equalsGreaterThanToken=Wr!=null?Wr:we(38),ln.transformFlags|=te(ln.equalsGreaterThanToken)|512,e.modifiersToFlags(ln.modifiers)&256&&(ln.transformFlags|=8320),ln}function Vi(v,W,Ee,er,Wr,Jt,ln){return v.modifiers!==W||v.typeParameters!==Ee||v.parameters!==er||v.type!==Wr||v.equalsGreaterThanToken!==Jt||v.body!==ln?Ke(Mi(W,Ee,er,Wr,Jt,ln),v):v}function Ro(v){var W=Gr(214);return W.expression=d().parenthesizeOperandOfPrefixUnary(v),W.transformFlags|=te(W.expression),W}function Yo(v,W){return v.expression!==W?w(Ro(W),v):v}function ns(v){var W=Gr(215);return W.expression=d().parenthesizeOperandOfPrefixUnary(v),W.transformFlags|=te(W.expression),W}function me(v,W){return v.expression!==W?w(ns(W),v):v}function Pr(v){var W=Gr(216);return W.expression=d().parenthesizeOperandOfPrefixUnary(v),W.transformFlags|=te(W.expression),W}function yt(v,W){return v.expression!==W?w(Pr(W),v):v}function Le(v){var W=Gr(217);return W.expression=d().parenthesizeOperandOfPrefixUnary(v),W.transformFlags|=te(W.expression)|128|64|1048576,W}function Xr(v,W){return v.expression!==W?w(Le(W),v):v}function an(v,W){var Ee=Gr(218);return Ee.operator=v,Ee.operand=d().parenthesizeOperandOfPrefixUnary(W),Ee.transformFlags|=te(Ee.operand),(v===45||v===46)&&e.isIdentifier(Ee.operand)&&!e.isGeneratedIdentifier(Ee.operand)&&!e.isLocalName(Ee.operand)&&(Ee.transformFlags|=67108864),Ee}function Xn(v,W){return v.operand!==W?w(an(v.operator,W),v):v}function da(v,W){var Ee=Gr(219);return Ee.operator=W,Ee.operand=d().parenthesizeOperandOfPostfixUnary(v),Ee.transformFlags|=te(Ee.operand),e.isIdentifier(Ee.operand)&&!e.isGeneratedIdentifier(Ee.operand)&&!e.isLocalName(Ee.operand)&&(Ee.transformFlags|=67108864),Ee}function bi(v,W){return v.operand!==W?w(da(W,v.operator),v):v}function Qa(v,W,Ee){var er=Gr(220),Wr=zu(W),Jt=Wr.kind;return er.left=d().parenthesizeLeftSideOfBinary(Jt,v),er.operatorToken=Wr,er.right=d().parenthesizeRightSideOfBinary(Jt,er.left,Ee),er.transformFlags|=te(er.left)|te(er.operatorToken)|te(er.right),Jt===60?er.transformFlags|=16:Jt===63?e.isObjectLiteralExpression(er.left)?er.transformFlags|=2624|go(er.left):e.isArrayLiteralExpression(er.left)&&(er.transformFlags|=2560|go(er.left)):Jt===42||Jt===67?er.transformFlags|=256:e.isLogicalOrCoalescingAssignmentOperator(Jt)&&(er.transformFlags|=8),er}function go(v){if(v.transformFlags&32768)return 32768;if(v.transformFlags&64)for(var W=0,Ee=e.getElementsOfBindingOrAssignmentPattern(v);W<Ee.length;W++){var er=Ee[W],Wr=e.getTargetOfBindingOrAssignmentElement(er);if(Wr&&e.isAssignmentPattern(Wr)){if(Wr.transformFlags&32768)return 32768;if(Wr.transformFlags&64){var Jt=go(Wr);if(Jt)return Jt}}}return 0}function wr(v,W,Ee,er){return v.left!==W||v.operatorToken!==Ee||v.right!==er?w(Qa(W,Ee,er),v):v}function ss(v,W,Ee,er,Wr){var Jt=Gr(221);return Jt.condition=d().parenthesizeConditionOfConditionalExpression(v),Jt.questionToken=W!=null?W:we(57),Jt.whenTrue=d().parenthesizeBranchOfConditionalExpression(Ee),Jt.colonToken=er!=null?er:we(58),Jt.whenFalse=d().parenthesizeBranchOfConditionalExpression(Wr),Jt.transformFlags|=te(Jt.condition)|te(Jt.questionToken)|te(Jt.whenTrue)|te(Jt.colonToken)|te(Jt.whenFalse),Jt}function al(v,W,Ee,er,Wr,Jt){return v.condition!==W||v.questionToken!==Ee||v.whenTrue!==er||v.colonToken!==Wr||v.whenFalse!==Jt?w(ss(W,Ee,er,Wr,Jt),v):v}function Sl(v,W){var Ee=Gr(222);return Ee.head=v,Ee.templateSpans=ae(W),Ee.transformFlags|=te(Ee.head)|E(Ee.templateSpans)|512,Ee}function zo(v,W,Ee){return v.head!==W||v.templateSpans!==Ee?w(Sl(W,Ee),v):v}function bs(v,W,Ee,er){er===void 0&&(er=0),e.Debug.assert(!(er&-2049),"Unsupported template flags.");var Wr=void 0;if(Ee!==void 0&&Ee!==W&&(Wr=m(v,Ee),typeof Wr=="object"))return e.Debug.fail("Invalid raw text");if(W===void 0){if(Wr===void 0)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=Wr}else Wr!==void 0&&e.Debug.assert(W===Wr,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return xl(v,W,Ee,er)}function xl(v,W,Ee,er){var Wr=de(v);return Wr.text=W,Wr.rawText=Ee,Wr.templateFlags=er&2048,Wr.transformFlags|=512,Wr.templateFlags&&(Wr.transformFlags|=64),Wr}function ic(v,W,Ee){return bs(15,v,W,Ee)}function Vl(v,W,Ee){return bs(16,v,W,Ee)}function zc(v,W,Ee){return bs(17,v,W,Ee)}function io(v,W,Ee){return bs(14,v,W,Ee)}function Zl(v,W){e.Debug.assert(!v||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");var Ee=Gr(223);return Ee.expression=W&&d().parenthesizeExpressionForDisallowedComma(W),Ee.asteriskToken=v,Ee.transformFlags|=te(Ee.expression)|te(Ee.asteriskToken)|512|64|524288,Ee}function Oc(v,W,Ee){return v.expression!==Ee||v.asteriskToken!==W?w(Zl(W,Ee),v):v}function ul(v){var W=Gr(224);return W.expression=d().parenthesizeExpressionForDisallowedComma(v),W.transformFlags|=te(W.expression)|512|16384,W}function oc(v,W){return v.expression!==W?w(ul(W),v):v}function sc(v,W,Ee,er,Wr,Jt){var ln=Ge(225,v,W,Ee,er,Wr,Jt);return ln.transformFlags|=512,ln}function Ia(v,W,Ee,er,Wr,Jt,ln){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.typeParameters!==Wr||v.heritageClauses!==Jt||v.members!==ln?w(sc(W,Ee,er,Wr,Jt,ln),v):v}function tf(){return Gr(226)}function Rc(v,W){var Ee=D(227);return Ee.expression=d().parenthesizeLeftSideOfAccess(v),Ee.typeArguments=W&&d().parenthesizeTypeArguments(W),Ee.transformFlags|=te(Ee.expression)|E(Ee.typeArguments)|512,Ee}function lc(v,W,Ee){return v.expression!==W||v.typeArguments!==Ee?w(Rc(W,Ee),v):v}function Fr(v,W){var Ee=Gr(228);return Ee.expression=v,Ee.type=W,Ee.transformFlags|=te(Ee.expression)|te(Ee.type)|1,Ee}function rt(v,W,Ee){return v.expression!==W||v.type!==Ee?w(Fr(W,Ee),v):v}function Dt(v){var W=Gr(229);return W.expression=d().parenthesizeLeftSideOfAccess(v),W.transformFlags|=te(W.expression)|1,W}function zt(v,W){return e.isNonNullChain(v)?dn(v,W):v.expression!==W?w(Dt(W),v):v}function _n(v){var W=Gr(229);return W.flags|=32,W.expression=d().parenthesizeLeftSideOfAccess(v),W.transformFlags|=te(W.expression)|1,W}function dn(v,W){return e.Debug.assert(!!(v.flags&32),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==W?w(_n(W),v):v}function On(v,W){var Ee=Gr(230);switch(Ee.keywordToken=v,Ee.name=W,Ee.transformFlags|=te(Ee.name),v){case 103:Ee.transformFlags|=512;break;case 100:Ee.transformFlags|=4;break;default:return e.Debug.assertNever(v)}return Ee}function Jn(v,W){return v.name!==W?w(On(v.keywordToken,W),v):v}function Fa(v,W){var Ee=D(232);return Ee.expression=v,Ee.literal=W,Ee.transformFlags|=te(Ee.expression)|te(Ee.literal)|512,Ee}function fa(v,W,Ee){return v.expression!==W||v.literal!==Ee?w(Fa(W,Ee),v):v}function ba(){var v=D(233);return v.transformFlags|=512,v}function Na(v,W){var Ee=D(234);return Ee.statements=ae(v),Ee.multiLine=W,Ee.transformFlags|=E(Ee.statements),Ee}function he(v,W){return v.statements!==W?w(Na(W,v.multiLine),v):v}function ar(v,W){var Ee=be(236,void 0,v);return Ee.declarationList=e.isArray(W)?Va(W):W,Ee.transformFlags|=te(Ee.declarationList),e.modifiersToFlags(Ee.modifiers)&2&&(Ee.transformFlags=1),Ee}function hr(v,W,Ee){return v.modifiers!==W||v.declarationList!==Ee?w(ar(W,Ee),v):v}function dt(){return D(235)}function en(v){var W=D(237);return W.expression=d().parenthesizeExpressionOfExpressionStatement(v),W.transformFlags|=te(W.expression),W}function ta(v,W){return v.expression!==W?w(en(W),v):v}function Un(v,W,Ee){var er=D(238);return er.expression=v,er.thenStatement=zl(W),er.elseStatement=zl(Ee),er.transformFlags|=te(er.expression)|te(er.thenStatement)|te(er.elseStatement),er}function Ta(v,W,Ee,er){return v.expression!==W||v.thenStatement!==Ee||v.elseStatement!==er?w(Un(W,Ee,er),v):v}function Ei(v,W){var Ee=D(239);return Ee.statement=zl(v),Ee.expression=W,Ee.transformFlags|=te(Ee.statement)|te(Ee.expression),Ee}function Qi(v,W,Ee){return v.statement!==W||v.expression!==Ee?w(Ei(W,Ee),v):v}function Wi(v,W){var Ee=D(240);return Ee.expression=v,Ee.statement=zl(W),Ee.transformFlags|=te(Ee.expression)|te(Ee.statement),Ee}function Ai(v,W,Ee){return v.expression!==W||v.statement!==Ee?w(Wi(W,Ee),v):v}function Ci(v,W,Ee,er){var Wr=D(241);return Wr.initializer=v,Wr.condition=W,Wr.incrementor=Ee,Wr.statement=zl(er),Wr.transformFlags|=te(Wr.initializer)|te(Wr.condition)|te(Wr.incrementor)|te(Wr.statement),Wr}function Fo(v,W,Ee,er,Wr){return v.initializer!==W||v.condition!==Ee||v.incrementor!==er||v.statement!==Wr?w(Ci(W,Ee,er,Wr),v):v}function xo(v,W,Ee){var er=D(242);return er.initializer=v,er.expression=W,er.statement=zl(Ee),er.transformFlags|=te(er.initializer)|te(er.expression)|te(er.statement),er}function js(v,W,Ee,er){return v.initializer!==W||v.expression!==Ee||v.statement!==er?w(xo(W,Ee,er),v):v}function Dl(v,W,Ee,er){var Wr=D(243);return Wr.awaitModifier=v,Wr.initializer=W,Wr.expression=d().parenthesizeExpressionForDisallowedComma(Ee),Wr.statement=zl(er),Wr.transformFlags|=te(Wr.awaitModifier)|te(Wr.initializer)|te(Wr.expression)|te(Wr.statement)|512,v&&(Wr.transformFlags|=64),Wr}function cc(v,W,Ee,er,Wr){return v.awaitModifier!==W||v.initializer!==Ee||v.expression!==er||v.statement!==Wr?w(Dl(W,Ee,er,Wr),v):v}function qc(v){var W=D(244);return W.label=Sc(v),W.transformFlags|=te(W.label)|2097152,W}function Br(v,W){return v.label!==W?w(qc(W),v):v}function Il(v){var W=D(245);return W.label=Sc(v),W.transformFlags|=te(W.label)|2097152,W}function Nl(v,W){return v.label!==W?w(Il(W),v):v}function wc(v){var W=D(246);return W.expression=v,W.transformFlags|=te(W.expression)|64|2097152,W}function fl(v,W){return v.expression!==W?w(wc(W),v):v}function Mc(v,W){var Ee=D(247);return Ee.expression=v,Ee.statement=zl(W),Ee.transformFlags|=te(Ee.expression)|te(Ee.statement),Ee}function sd(v,W,Ee){return v.expression!==W||v.statement!==Ee?w(Mc(W,Ee),v):v}function co(v,W){var Ee=D(248);return Ee.expression=d().parenthesizeExpressionForDisallowedComma(v),Ee.caseBlock=W,Ee.transformFlags|=te(Ee.expression)|te(Ee.caseBlock),Ee}function Fd(v,W,Ee){return v.expression!==W||v.caseBlock!==Ee?w(co(W,Ee),v):v}function bp(v,W){var Ee=D(249);return Ee.label=Sc(v),Ee.statement=zl(W),Ee.transformFlags|=te(Ee.label)|te(Ee.statement),Ee}function ld(v,W,Ee){return v.label!==W||v.statement!==Ee?w(bp(W,Ee),v):v}function cs(v){var W=D(250);return W.expression=v,W.transformFlags|=te(W.expression),W}function nf(v,W){return v.expression!==W?w(cs(W),v):v}function hc(v,W,Ee){var er=D(251);return er.tryBlock=v,er.catchClause=W,er.finallyBlock=Ee,er.transformFlags|=te(er.tryBlock)|te(er.catchClause)|te(er.finallyBlock),er}function Gd(v,W,Ee,er){return v.tryBlock!==W||v.catchClause!==Ee||v.finallyBlock!==er?w(hc(W,Ee,er),v):v}function Ll(){return D(252)}function Bd(v,W,Ee,er){var Wr=xe(253,void 0,void 0,v,Ee,er&&d().parenthesizeExpressionForDisallowedComma(er));return Wr.exclamationToken=W,Wr.transformFlags|=te(Wr.exclamationToken),W&&(Wr.transformFlags|=1),Wr}function qs(v,W,Ee,er,Wr){return v.name!==W||v.type!==er||v.exclamationToken!==Ee||v.initializer!==Wr?w(Bd(W,Ee,er,Wr),v):v}function Va(v,W){W===void 0&&(W=0);var Ee=D(254);return Ee.flags|=W&3,Ee.declarations=ae(v),Ee.transformFlags|=E(Ee.declarations)|2097152,W&3&&(Ee.transformFlags|=131584),Ee}function Zn(v,W){return v.declarations!==W?w(Va(W,v.flags),v):v}function Pc(v,W,Ee,er,Wr,Jt,ln,Xa){var Uo=Me(255,v,W,er,Wr,Jt,ln,Xa);return Uo.asteriskToken=Ee,!Uo.body||e.modifiersToFlags(Uo.modifiers)&2?Uo.transformFlags=1:(Uo.transformFlags|=te(Uo.asteriskToken)|2097152,e.modifiersToFlags(Uo.modifiers)&256?Uo.asteriskToken?Uo.transformFlags|=64:Uo.transformFlags|=128:Uo.asteriskToken&&(Uo.transformFlags|=1024)),Uo}function Al(v,W,Ee,er,Wr,Jt,ln,Xa,Uo){return v.decorators!==W||v.modifiers!==Ee||v.asteriskToken!==er||v.name!==Wr||v.typeParameters!==Jt||v.parameters!==ln||v.type!==Xa||v.body!==Uo?Ke(Pc(W,Ee,er,Wr,Jt,ln,Xa,Uo),v):v}function Ud(v,W,Ee,er,Wr,Jt){var ln=Ge(256,v,W,Ee,er,Wr,Jt);return e.modifiersToFlags(ln.modifiers)&2?ln.transformFlags=1:(ln.transformFlags|=512,ln.transformFlags&4096&&(ln.transformFlags|=1)),ln}function af(v,W,Ee,er,Wr,Jt,ln){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.typeParameters!==Wr||v.heritageClauses!==Jt||v.members!==ln?w(Ud(W,Ee,er,Wr,Jt,ln),v):v}function vu(v,W,Ee,er,Wr,Jt){var ln=Ae(257,v,W,Ee,er,Wr);return ln.members=ae(Jt),ln.transformFlags=1,ln}function Ho(v,W,Ee,er,Wr,Jt,ln){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.typeParameters!==Wr||v.heritageClauses!==Jt||v.members!==ln?w(vu(W,Ee,er,Wr,Jt,ln),v):v}function Vd(v,W,Ee,er,Wr){var Jt=J(258,v,W,Ee,er);return Jt.type=Wr,Jt.transformFlags=1,Jt}function Wd(v,W,Ee,er,Wr,Jt){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.typeParameters!==Wr||v.type!==Jt?w(Vd(W,Ee,er,Wr,Jt),v):v}function of(v,W,Ee,er){var Wr=ne(259,v,W,Ee);return Wr.members=ae(er),Wr.transformFlags|=E(Wr.members)|1,Wr.transformFlags&=-16777217,Wr}function jd(v,W,Ee,er,Wr){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.members!==Wr?w(of(W,Ee,er,Wr),v):v}function cd(v,W,Ee,er,Wr){Wr===void 0&&(Wr=0);var Jt=be(260,v,W);return Jt.flags|=Wr&1044,Jt.name=Ee,Jt.body=er,e.modifiersToFlags(Jt.modifiers)&2?Jt.transformFlags=1:Jt.transformFlags|=te(Jt.name)|te(Jt.body)|1,Jt.transformFlags&=-16777217,Jt}function $l(v,W,Ee,er,Wr){return v.decorators!==W||v.modifiers!==Ee||v.name!==er||v.body!==Wr?w(cd(W,Ee,er,Wr,v.flags),v):v}function o_(v){var W=D(261);return W.statements=ae(v),W.transformFlags|=E(W.statements),W}function Hd(v,W){return v.statements!==W?w(o_(W),v):v}function Jd(v){var W=D(262);return W.clauses=ae(v),W.transformFlags|=E(W.clauses),W}function Ep(v,W){return v.clauses!==W?w(Jd(W),v):v}function s_(v){var W=ne(263,void 0,void 0,v);return W.transformFlags=1,W}function Tp(v,W){return v.name!==W?w(s_(W),v):v}function Sp(v,W,Ee,er,Wr){var Jt=ne(264,v,W,er);return Jt.isTypeOnly=Ee,Jt.moduleReference=Wr,Jt.transformFlags|=te(Jt.moduleReference),e.isExternalModuleReference(Jt.moduleReference)||(Jt.transformFlags|=1),Jt.transformFlags&=-16777217,Jt}function Nf(v,W,Ee,er,Wr,Jt){return v.decorators!==W||v.modifiers!==Ee||v.isTypeOnly!==er||v.name!==Wr||v.moduleReference!==Jt?w(Sp(W,Ee,er,Wr,Jt),v):v}function l_(v,W,Ee,er,Wr){var Jt=be(265,v,W);return Jt.importClause=Ee,Jt.moduleSpecifier=er,Jt.assertClause=Wr,Jt.transformFlags|=te(Jt.importClause)|te(Jt.moduleSpecifier),Jt.transformFlags&=-16777217,Jt}function Kd(v,W,Ee,er,Wr,Jt){return v.decorators!==W||v.modifiers!==Ee||v.importClause!==er||v.moduleSpecifier!==Wr||v.assertClause!==Jt?w(l_(W,Ee,er,Wr,Jt),v):v}function Dp(v,W,Ee){var er=D(266);return er.isTypeOnly=v,er.name=W,er.namedBindings=Ee,er.transformFlags|=te(er.name)|te(er.namedBindings),v&&(er.transformFlags|=1),er.transformFlags&=-16777217,er}function P_(v,W,Ee,er){return v.isTypeOnly!==W||v.name!==Ee||v.namedBindings!==er?w(Dp(W,Ee,er),v):v}function hu(v,W){var Ee=D(292);return Ee.elements=v,Ee.multiLine=W,Ee.transformFlags|=4,Ee}function Fc(v,W,Ee){return v.elements!==W||v.multiLine!==Ee?w(hu(W,Ee),v):v}function uc(v,W){var Ee=D(293);return Ee.name=v,Ee.value=W,Ee.transformFlags|=4,Ee}function ec(v,W,Ee){return v.name!==W||v.value!==Ee?w(uc(W,Ee),v):v}function ud(v){var W=D(267);return W.name=v,W.transformFlags|=te(W.name),W.transformFlags&=-16777217,W}function kf(v,W){return v.name!==W?w(ud(W),v):v}function fd(v){var W=D(273);return W.name=v,W.transformFlags|=te(W.name)|4,W.transformFlags&=-16777217,W}function c_(v,W){return v.name!==W?w(fd(W),v):v}function sf(v){var W=D(268);return W.elements=ae(v),W.transformFlags|=E(W.elements),W.transformFlags&=-16777217,W}function F_(v,W){return v.elements!==W?w(sf(W),v):v}function dd(v,W,Ee){var er=D(269);return er.isTypeOnly=v,er.propertyName=W,er.name=Ee,er.transformFlags|=te(er.propertyName)|te(er.name),er.transformFlags&=-16777217,er}function u_(v,W,Ee,er){return v.isTypeOnly!==W||v.propertyName!==Ee||v.name!==er?w(dd(W,Ee,er),v):v}function Of(v,W,Ee,er){var Wr=be(270,v,W);return Wr.isExportEquals=Ee,Wr.expression=Ee?d().parenthesizeRightSideOfBinary(63,void 0,er):d().parenthesizeExpressionOfExportDefault(er),Wr.transformFlags|=te(Wr.expression),Wr.transformFlags&=-16777217,Wr}function zd(v,W,Ee,er){return v.decorators!==W||v.modifiers!==Ee||v.expression!==er?w(Of(W,Ee,v.isExportEquals,er),v):v}function Bu(v,W,Ee,er,Wr,Jt){var ln=be(271,v,W);return ln.isTypeOnly=Ee,ln.exportClause=er,ln.moduleSpecifier=Wr,ln.assertClause=Jt,ln.transformFlags|=te(ln.exportClause)|te(ln.moduleSpecifier),ln.transformFlags&=-16777217,ln}function qd(v,W,Ee,er,Wr,Jt,ln){return v.decorators!==W||v.modifiers!==Ee||v.isTypeOnly!==er||v.exportClause!==Wr||v.moduleSpecifier!==Jt||v.assertClause!==ln?w(Bu(W,Ee,er,Wr,Jt,ln),v):v}function ks(v){var W=D(272);return W.elements=ae(v),W.transformFlags|=E(W.elements),W.transformFlags&=-16777217,W}function Xc(v,W){return v.elements!==W?w(ks(W),v):v}function Yc(v,W,Ee){var er=D(274);return er.isTypeOnly=v,er.propertyName=Sc(W),er.name=Sc(Ee),er.transformFlags|=te(er.propertyName)|te(er.name),er.transformFlags&=-16777217,er}function f_(v,W,Ee,er){return v.isTypeOnly!==W||v.propertyName!==Ee||v.name!==er?w(Yc(W,Ee,er),v):v}function lf(){var v=be(275,void 0,void 0);return v}function Uu(v){var W=D(276);return W.expression=v,W.transformFlags|=te(W.expression),W.transformFlags&=-16777217,W}function G_(v,W){return v.expression!==W?w(Uu(W),v):v}function Gc(v){return D(v)}function kl(v,W){var Ee=D(v);return Ee.type=W,Ee}function Qc(v,W,Ee){return W.type!==Ee?w(kl(v,Ee),W):W}function Wl(v,W){var Ee=le(315,void 0,void 0,void 0,void 0,v,W);return Ee}function Bc(v,W,Ee){return v.parameters!==W||v.type!==Ee?w(Wl(W,Ee),v):v}function Xd(v,W){W===void 0&&(W=!1);var Ee=D(320);return Ee.jsDocPropertyTags=Fs(v),Ee.isArrayType=W,Ee}function pd(v,W,Ee){return v.jsDocPropertyTags!==W||v.isArrayType!==Ee?w(Xd(W,Ee),v):v}function yu(v){var W=D(307);return W.type=v,W}function Rf(v,W){return v.type!==W?w(yu(W),v):v}function Zi(v,W,Ee){var er=D(321);return er.typeParameters=Fs(v),er.parameters=ae(W),er.type=Ee,er}function cf(v,W,Ee,er){return v.typeParameters!==W||v.parameters!==Ee||v.type!==er?w(Zi(W,Ee,er),v):v}function wo(v){var W=I(v.kind);return v.tagName.escapedText===e.escapeLeadingUnderscores(W)?v.tagName:ur(W)}function Go(v,W,Ee){var er=D(v);return er.tagName=W,er.comment=Ee,er}function Lp(v,W,Ee,er){var Wr=Go(342,v!=null?v:ur("template"),er);return Wr.constraint=W,Wr.typeParameters=ae(Ee),Wr}function rc(v,W,Ee,er,Wr){return W===void 0&&(W=wo(v)),v.tagName!==W||v.constraint!==Ee||v.typeParameters!==er||v.comment!==Wr?w(Lp(W,Ee,er,Wr),v):v}function wf(v,W,Ee,er){var Wr=Go(343,v!=null?v:ur("typedef"),er);return Wr.typeExpression=W,Wr.fullName=Ee,Wr.name=e.getJSDocTypeAliasName(Ee),Wr}function Cn(v,W,Ee,er,Wr){return W===void 0&&(W=wo(v)),v.tagName!==W||v.typeExpression!==Ee||v.fullName!==er||v.comment!==Wr?w(wf(W,Ee,er,Wr),v):v}function us(v,W,Ee,er,Wr,Jt){var ln=Go(338,v!=null?v:ur("param"),Jt);return ln.typeExpression=er,ln.name=W,ln.isNameFirst=!!Wr,ln.isBracketed=Ee,ln}function ui(v,W,Ee,er,Wr,Jt,ln){return W===void 0&&(W=wo(v)),v.tagName!==W||v.name!==Ee||v.isBracketed!==er||v.typeExpression!==Wr||v.isNameFirst!==Jt||v.comment!==ln?w(us(W,Ee,er,Wr,Jt,ln),v):v}function yc(v,W,Ee,er,Wr,Jt){var ln=Go(345,v!=null?v:ur("prop"),Jt);return ln.typeExpression=er,ln.name=W,ln.isNameFirst=!!Wr,ln.isBracketed=Ee,ln}function Ap(v,W,Ee,er,Wr,Jt,ln){return W===void 0&&(W=wo(v)),v.tagName!==W||v.name!==Ee||v.isBracketed!==er||v.typeExpression!==Wr||v.isNameFirst!==Jt||v.comment!==ln?w(yc(W,Ee,er,Wr,Jt,ln),v):v}function Xs(v,W,Ee,er){var Wr=Go(336,v!=null?v:ur("callback"),er);return Wr.typeExpression=W,Wr.fullName=Ee,Wr.name=e.getJSDocTypeAliasName(Ee),Wr}function An(v,W,Ee,er,Wr){return W===void 0&&(W=wo(v)),v.tagName!==W||v.typeExpression!==Ee||v.fullName!==er||v.comment!==Wr?w(Xs(W,Ee,er,Wr),v):v}function d_(v,W,Ee){var er=Go(326,v!=null?v:ur("augments"),Ee);return er.class=W,er}function fs(v,W,Ee,er){return W===void 0&&(W=wo(v)),v.tagName!==W||v.class!==Ee||v.comment!==er?w(d_(W,Ee,er),v):v}function ls(v,W,Ee){var er=Go(327,v!=null?v:ur("implements"),Ee);return er.class=W,er}function fc(v,W,Ee){var er=Go(344,v!=null?v:ur("see"),Ee);return er.name=W,er}function jl(v,W,Ee,er){return v.tagName!==W||v.name!==Ee||v.comment!==er?w(fc(W,Ee,er),v):v}function Mf(v){var W=D(308);return W.name=v,W}function Ys(v,W){return v.name!==W?w(Mf(W),v):v}function bc(v,W){var Ee=D(309);return Ee.left=v,Ee.right=W,Ee.transformFlags|=te(Ee.left)|te(Ee.right),Ee}function Pf(v,W,Ee){return v.left!==W||v.right!==Ee?w(bc(W,Ee),v):v}function Ec(v,W){var Ee=D(322);return Ee.name=v,Ee.text=W,Ee}function Zc(v,W,Ee){return v.name!==W?w(Ec(W,Ee),v):v}function bu(v,W){var Ee=D(323);return Ee.name=v,Ee.text=W,Ee}function _l(v,W,Ee){return v.name!==W?w(bu(W,Ee),v):v}function Cp(v,W){var Ee=D(324);return Ee.name=v,Ee.text=W,Ee}function Eu(v,W,Ee){return v.name!==W?w(Cp(W,Ee),v):v}function uf(v,W,Ee,er){return W===void 0&&(W=wo(v)),v.tagName!==W||v.class!==Ee||v.comment!==er?w(ls(W,Ee,er),v):v}function Ff(v,W,Ee){var er=Go(v,W!=null?W:ur(I(v)),Ee);return er}function _d(v,W,Ee,er){return Ee===void 0&&(Ee=wo(W)),W.tagName!==Ee||W.comment!==er?w(Ff(v,Ee,er),W):W}function ff(v,W,Ee,er){var Wr=Go(v,W!=null?W:ur(I(v)),er);return Wr.typeExpression=Ee,Wr}function dc(v,W,Ee,er,Wr){return Ee===void 0&&(Ee=wo(W)),W.tagName!==Ee||W.typeExpression!==er||W.comment!==Wr?w(ff(v,Ee,er,Wr),W):W}function md(v,W){var Ee=Go(325,v,W);return Ee}function Yd(v,W,Ee){return v.tagName!==W||v.comment!==Ee?w(md(W,Ee),v):v}function Tu(v){var W=D(319);return W.text=v,W}function il(v,W){return v.text!==W?w(Tu(W),v):v}function Ol(v,W){var Ee=D(318);return Ee.comment=v,Ee.tags=Fs(W),Ee}function $c(v,W,Ee){return v.comment!==W||v.tags!==Ee?w(Ol(W,Ee),v):v}function df(v,W,Ee){var er=D(277);return er.openingElement=v,er.children=ae(W),er.closingElement=Ee,er.transformFlags|=te(er.openingElement)|E(er.children)|te(er.closingElement)|2,er}function Ha(v,W,Ee,er){return v.openingElement!==W||v.children!==Ee||v.closingElement!==er?w(df(W,Ee,er),v):v}function xn(v,W,Ee){var er=D(278);return er.tagName=v,er.typeArguments=Fs(W),er.attributes=Ee,er.transformFlags|=te(er.tagName)|E(er.typeArguments)|te(er.attributes)|2,er.typeArguments&&(er.transformFlags|=1),er}function Ls(v,W,Ee,er){return v.tagName!==W||v.typeArguments!==Ee||v.attributes!==er?w(xn(W,Ee,er),v):v}function xp(v,W,Ee){var er=D(279);return er.tagName=v,er.typeArguments=Fs(W),er.attributes=Ee,er.transformFlags|=te(er.tagName)|E(er.typeArguments)|te(er.attributes)|2,W&&(er.transformFlags|=1),er}function Qd(v,W,Ee,er){return v.tagName!==W||v.typeArguments!==Ee||v.attributes!==er?w(xp(W,Ee,er),v):v}function pf(v){var W=D(280);return W.tagName=v,W.transformFlags|=te(W.tagName)|2,W}function _f(v,W){return v.tagName!==W?w(pf(W),v):v}function gd(v,W,Ee){var er=D(281);return er.openingFragment=v,er.children=ae(W),er.closingFragment=Ee,er.transformFlags|=te(er.openingFragment)|E(er.children)|te(er.closingFragment)|2,er}function Hl(v,W,Ee,er){return v.openingFragment!==W||v.children!==Ee||v.closingFragment!==er?w(gd(W,Ee,er),v):v}function Rs(v,W){var Ee=D(11);return Ee.text=v,Ee.containsOnlyTriviaWhiteSpaces=!!W,Ee.transformFlags|=2,Ee}function Gf(v,W,Ee){return v.text!==W||v.containsOnlyTriviaWhiteSpaces!==Ee?w(Rs(W,Ee),v):v}function Vu(){var v=D(282);return v.transformFlags|=2,v}function dl(){var v=D(283);return v.transformFlags|=2,v}function Ip(v,W){var Ee=D(284);return Ee.name=v,Ee.initializer=W,Ee.transformFlags|=te(Ee.name)|te(Ee.initializer)|2,Ee}function $o(v,W,Ee){return v.name!==W||v.initializer!==Ee?w(Ip(W,Ee),v):v}function ml(v){var W=D(285);return W.properties=ae(v),W.transformFlags|=E(W.properties)|2,W}function p_(v,W){return v.properties!==W?w(ml(W),v):v}function tc(v){var W=D(286);return W.expression=v,W.transformFlags|=te(W.expression)|2,W}function mf(v,W){return v.expression!==W?w(tc(W),v):v}function Su(v,W){var Ee=D(287);return Ee.dotDotDotToken=v,Ee.expression=W,Ee.transformFlags|=te(Ee.dotDotDotToken)|te(Ee.expression)|2,Ee}function Np(v,W){return v.expression!==W?w(Su(v.dotDotDotToken,W),v):v}function Bf(v,W){var Ee=D(288);return Ee.expression=d().parenthesizeExpressionForDisallowedComma(v),Ee.statements=ae(W),Ee.transformFlags|=te(Ee.expression)|E(Ee.statements),Ee}function Rl(v,W,Ee){return v.expression!==W||v.statements!==Ee?w(Bf(W,Ee),v):v}function es(v){var W=D(289);return W.statements=ae(v),W.transformFlags=E(W.statements),W}function Wu(v,W){return v.statements!==W?w(es(W),v):v}function Uf(v,W){var Ee=D(290);switch(Ee.token=v,Ee.types=ae(W),Ee.transformFlags|=E(Ee.types),v){case 94:Ee.transformFlags|=512;break;case 117:Ee.transformFlags|=1;break;default:return e.Debug.assertNever(v)}return Ee}function eu(v,W){return v.types!==W?w(Uf(v.token,W),v):v}function Vf(v,W){var Ee=D(291);return(typeof v=="string"||v&&!e.isVariableDeclaration(v))&&(v=Bd(v,void 0,void 0,void 0)),Ee.variableDeclaration=v,Ee.block=W,Ee.transformFlags|=te(Ee.variableDeclaration)|te(Ee.block),v||(Ee.transformFlags|=32),Ee}function vd(v,W,Ee){return v.variableDeclaration!==W||v.block!==Ee?w(Vf(W,Ee),v):v}function hd(v,W){var Ee=ne(294,void 0,void 0,v);return Ee.initializer=d().parenthesizeExpressionForDisallowedComma(W),Ee.transformFlags|=te(Ee.name)|te(Ee.initializer),Ee}function gf(v,W){return W.decorators&&(v.decorators=W.decorators),W.modifiers&&(v.modifiers=W.modifiers),W.questionToken&&(v.questionToken=W.questionToken),W.exclamationToken&&(v.exclamationToken=W.exclamationToken),w(v,W)}function ju(v,W,Ee){return v.name!==W||v.initializer!==Ee?gf(hd(W,Ee),v):v}function Uc(v,W){var Ee=ne(295,void 0,void 0,v);return Ee.objectAssignmentInitializer=W&&d().parenthesizeExpressionForDisallowedComma(W),Ee.transformFlags|=te(Ee.objectAssignmentInitializer)|512,Ee}function Zd(v,W){return W.decorators&&(v.decorators=W.decorators),W.modifiers&&(v.modifiers=W.modifiers),W.equalsToken&&(v.equalsToken=W.equalsToken),W.questionToken&&(v.questionToken=W.questionToken),W.exclamationToken&&(v.exclamationToken=W.exclamationToken),w(v,W)}function Du(v,W,Ee){return v.name!==W||v.objectAssignmentInitializer!==Ee?Zd(Uc(W,Ee),v):v}function vf(v){var W=D(296);return W.expression=d().parenthesizeExpressionForDisallowedComma(v),W.transformFlags|=te(W.expression)|64|32768,W}function Hu(v,W){return v.expression!==W?w(vf(W),v):v}function Wf(v,W){var Ee=D(297);return Ee.name=Sc(v),Ee.initializer=W&&d().parenthesizeExpressionForDisallowedComma(W),Ee.transformFlags|=te(Ee.name)|te(Ee.initializer)|1,Ee}function Jl(v,W,Ee){return v.name!==W||v.initializer!==Ee?w(Wf(W,Ee),v):v}function Ju(v,W,Ee){var er=H.createBaseSourceFileNode(303);return er.statements=ae(v),er.endOfFileToken=W,er.flags|=Ee,er.fileName="",er.text="",er.languageVersion=0,er.languageVariant=0,er.scriptKind=0,er.isDeclarationFile=!1,er.hasNoDefaultLib=!1,er.transformFlags|=E(er.statements)|te(er.endOfFileToken),er}function $d(v,W,Ee,er,Wr,Jt,ln){var Xa=H.createBaseSourceFileNode(303);for(var Uo in v)Uo==="emitNode"||e.hasProperty(Xa,Uo)||!e.hasProperty(v,Uo)||(Xa[Uo]=v[Uo]);return Xa.flags|=v.flags,Xa.statements=ae(W),Xa.endOfFileToken=v.endOfFileToken,Xa.isDeclarationFile=Ee,Xa.referencedFiles=er,Xa.typeReferenceDirectives=Wr,Xa.hasNoDefaultLib=Jt,Xa.libReferenceDirectives=ln,Xa.transformFlags=E(Xa.statements)|te(Xa.endOfFileToken),Xa.impliedNodeFormat=v.impliedNodeFormat,Xa}function Ja(v,W,Ee,er,Wr,Jt,ln){return Ee===void 0&&(Ee=v.isDeclarationFile),er===void 0&&(er=v.referencedFiles),Wr===void 0&&(Wr=v.typeReferenceDirectives),Jt===void 0&&(Jt=v.hasNoDefaultLib),ln===void 0&&(ln=v.libReferenceDirectives),v.statements!==W||v.isDeclarationFile!==Ee||v.referencedFiles!==er||v.typeReferenceDirectives!==Wr||v.hasNoDefaultLib!==Jt||v.libReferenceDirectives!==ln?w($d(v,W,Ee,er,Wr,Jt,ln),v):v}function Tc(v,W){W===void 0&&(W=e.emptyArray);var Ee=D(304);return Ee.prepends=W,Ee.sourceFiles=v,Ee}function pn(v,W,Ee){return Ee===void 0&&(Ee=e.emptyArray),v.sourceFiles!==W||v.prepends!==Ee?w(Tc(W,Ee),v):v}function ep(v,W,Ee){var er=D(305);return er.prologues=v,er.syntheticReferences=W,er.texts=Ee,er.fileName="",er.text="",er.referencedFiles=e.emptyArray,er.libReferenceDirectives=e.emptyArray,er.getLineAndCharacterOfPosition=function(Wr){return e.getLineAndCharacterOfPosition(er,Wr)},er}function jf(v,W){var Ee=D(v);return Ee.data=W,Ee}function rp(v){return jf(298,v)}function kp(v,W){var Ee=jf(299,v);return Ee.texts=W,Ee}function Op(v,W){return jf(W?301:300,v)}function B_(v){var W=D(302);return W.data=v.data,W.section=v,W}function ru(){var v=D(306);return v.javascriptText="",v.declarationText="",v}function Rp(v,W,Ee){W===void 0&&(W=!1);var er=D(231);return er.type=v,er.isSpread=W,er.tupleNameSource=Ee,er}function pc(v){var W=D(346);return W._children=v,W}function wp(v){var W=D(347);return W.original=v,e.setTextRange(W,v),W}function nc(v,W){var Ee=D(348);return Ee.expression=v,Ee.original=W,Ee.transformFlags|=te(Ee.expression)|1,e.setTextRange(Ee,W),Ee}function hf(v,W){return v.expression!==W?w(nc(W,v.original),v):v}function Mp(v){if(e.nodeIsSynthesized(v)&&!e.isParseTreeNode(v)&&!v.original&&!v.emitNode&&!v.id){if(e.isCommaListExpression(v))return v.elements;if(e.isBinaryExpression(v)&&e.isCommaToken(v.operatorToken))return[v.left,v.right]}return v}function tu(v){var W=D(349);return W.elements=ae(e.sameFlatMap(v,Mp)),W.transformFlags|=E(W.elements),W}function nu(v,W){return v.elements!==W?w(tu(W),v):v}function yd(v){var W=D(351);return W.emitNode={},W.original=v,W}function S(v){var W=D(350);return W.emitNode={},W.original=v,W}function Ze(v,W){var Ee=D(352);return Ee.expression=v,Ee.thisArg=W,Ee.transformFlags|=te(Ee.expression)|te(Ee.thisArg),Ee}function nt(v,W,Ee){return v.expression!==W||v.thisArg!==Ee?w(Ze(W,Ee),v):v}function wt(v){if(v===void 0)return v;var W=e.isSourceFile(v)?H.createBaseSourceFileNode(303):e.isIdentifier(v)?H.createBaseIdentifierNode(79):e.isPrivateIdentifier(v)?H.createBasePrivateIdentifierNode(80):e.isNodeKind(v.kind)?H.createBaseNode(v.kind):H.createBaseTokenNode(v.kind);W.flags|=v.flags&-9,W.transformFlags=v.transformFlags,q(W,v);for(var Ee in v)W.hasOwnProperty(Ee)||!v.hasOwnProperty(Ee)||(W[Ee]=v[Ee]);return W}function ca(v,W,Ee){return ii(Ca(void 0,void 0,void 0,void 0,W?[W]:[],void 0,Na(v,!0)),void 0,Ee?[Ee]:[])}function Ga(v,W,Ee){return ii(Mi(void 0,void 0,W?[W]:[],void 0,void 0,Na(v,!0)),void 0,Ee?[Ee]:[])}function na(){return Pr(ce("0"))}function si(v){return Of(void 0,void 0,!1,v)}function wa(v){return Bu(void 0,void 0,!1,ks([Yc(!1,void 0,v)]))}function Za(v,W){return W==="undefined"?Se.createStrictEquality(v,na()):Se.createStrictEquality(ns(v),Ne(W))}function Lo(v,W,Ee){return e.isCallChain(v)?Oi(tt(v,void 0,W),void 0,void 0,Ee):ii(Ye(v,W),void 0,Ee)}function ol(v,W,Ee){return Lo(v,"bind",Bt([W],Ee,!0))}function As(v,W,Ee){return Lo(v,"call",Bt([W],Ee,!0))}function Ms(v,W,Ee){return Lo(v,"apply",[W,Ee])}function gl(v,W,Ee){return Lo(ur(v),W,Ee)}function au(v,W){return Lo(v,"slice",W===void 0?[]:[Kl(W)])}function iu(v,W){return Lo(v,"concat",W)}function ou(v,W,Ee){return gl("Object","defineProperty",[v,Kl(W),Ee])}function yf(v,W,Ee){return gl("Reflect","get",Ee?[v,W,Ee]:[v,W])}function __(v,W,Ee,er){return gl("Reflect","set",er?[v,W,Ee,er]:[v,W,Ee])}function Vc(v,W,Ee){return Ee?(v.push(hd(W,Ee)),!0):!1}function m_(v,W){var Ee=[];Vc(Ee,"enumerable",Kl(v.enumerable)),Vc(Ee,"configurable",Kl(v.configurable));var er=Vc(Ee,"writable",Kl(v.writable));er=Vc(Ee,"value",v.value)||er;var Wr=Vc(Ee,"get",v.get);return Wr=Vc(Ee,"set",v.set)||Wr,e.Debug.assert(!(er&&Wr),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),oe(Ee,!W)}function tp(v,W){switch(v.kind){case 211:return Ui(v,W);case 210:return oi(v,v.type,W);case 228:return rt(v,W,v.type);case 229:return zt(v,W);case 348:return hf(v,W)}}function ac(v){return e.isParenthesizedExpression(v)&&e.nodeIsSynthesized(v)&&e.nodeIsSynthesized(e.getSourceMapRange(v))&&e.nodeIsSynthesized(e.getCommentRange(v))&&!e.some(e.getSyntheticLeadingComments(v))&&!e.some(e.getSyntheticTrailingComments(v))}function np(v,W,Ee){return Ee===void 0&&(Ee=15),v&&e.isOuterExpression(v,Ee)&&!ac(v)?tp(v,np(v.expression,W)):W}function g_(v,W,Ee){if(!W)return v;var er=ld(W,W.label,e.isLabeledStatement(W.statement)?g_(v,W.statement):v);return Ee&&Ee(W),er}function Ie(v,W){var Ee=e.skipParentheses(v);switch(Ee.kind){case 79:return W;case 108:case 8:case 9:case 10:return!1;case 203:var er=Ee.elements;return er.length!==0;case 204:return Ee.properties.length>0;default:return!0}}function br(v,W,Ee,er){er===void 0&&(er=!1);var Wr=e.skipOuterExpressions(v,15),Jt,ln;return e.isSuperProperty(Wr)?(Jt=Cr(),ln=Wr):e.isSuperKeyword(Wr)?(Jt=Cr(),ln=Ee!==void 0&&Ee<2?e.setTextRange(ur("_super"),Wr):Wr):e.getEmitFlags(Wr)&4096?(Jt=na(),ln=d().parenthesizeLeftSideOfAccess(Wr)):e.isPropertyAccessExpression(Wr)?Ie(Wr.expression,er)?(Jt=sr(W),ln=Ye(e.setTextRange(Se.createAssignment(Jt,Wr.expression),Wr.expression),Wr.name),e.setTextRange(ln,Wr)):(Jt=Wr.expression,ln=Wr):e.isElementAccessExpression(Wr)?Ie(Wr.expression,er)?(Jt=sr(W),ln=Wt(e.setTextRange(Se.createAssignment(Jt,Wr.expression),Wr.expression),Wr.argumentExpression),e.setTextRange(ln,Wr)):(Jt=Wr.expression,ln=Wr):(Jt=na(),ln=d().parenthesizeLeftSideOfAccess(v)),{target:ln,thisArg:Jt}}function Ur(v,W){return Ye(vi(oe([Qe(void 0,void 0,"value",[vn(void 0,void 0,void 0,v,void 0,void 0,void 0)],Na([en(W)]))])),"value")}function lt(v){return v.length>10?tu(v):e.reduceLeft(v,Se.createComma)}function xt(v,W,Ee,er){er===void 0&&(er=0);var Wr=e.getNameOfDeclaration(v);if(Wr&&e.isIdentifier(Wr)&&!e.isGeneratedIdentifier(Wr)){var Jt=e.setParent(e.setTextRange(wt(Wr),Wr),Wr.parent);return er|=e.getEmitFlags(Wr),Ee||(er|=48),W||(er|=1536),er&&e.setEmitFlags(Jt,er),Jt}return fr(v)}function Zt(v,W,Ee){return xt(v,W,Ee,49152)}function Rn(v,W,Ee){return xt(v,W,Ee,16384)}function $n(v,W,Ee){return xt(v,W,Ee,8192)}function La(v,W,Ee){return xt(v,W,Ee)}function Da(v,W,Ee,er){var Wr=Ye(v,e.nodeIsSynthesized(W)?W:wt(W));e.setTextRange(Wr,W);var Jt=0;return er||(Jt|=48),Ee||(Jt|=1536),Jt&&e.setEmitFlags(Wr,Jt),Wr}function zi(v,W,Ee,er){return v&&e.hasSyntacticModifier(W,1)?Da(v,xt(W),Ee,er):$n(W,Ee,er)}function Qo(v,W,Ee,er){var Wr=vs(v,W,Ee);return sl(v,W,Wr,er)}function oo(v){return e.isStringLiteral(v.expression)&&v.expression.text==="use strict"}function Bo(){return e.startOnNewLine(en(Ne("use strict")))}function vs(v,W,Ee){e.Debug.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");for(var er=!1,Wr=0,Jt=v.length;Wr<Jt;){var ln=v[Wr];if(e.isPrologueDirective(ln))oo(ln)&&(er=!0),W.push(ln);else break;Wr++}return Ee&&!er&&W.push(Bo()),Wr}function sl(v,W,Ee,er,Wr){Wr===void 0&&(Wr=e.returnTrue);for(var Jt=v.length;Ee!==void 0&&Ee<Jt;){var ln=v[Ee];if(e.getEmitFlags(ln)&1048576&&Wr(ln))e.append(W,er?e.visitNode(ln,er,e.isStatement):ln);else break;Ee++}return Ee}function Os(v){var W=e.findUseStrictPrologue(v);return W?v:e.setTextRange(ae(Bt([Bo()],v,!0)),v)}function su(v){return e.Debug.assert(e.every(v,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(v)||Na(v)}function Ps(v,W,Ee){for(var er=Ee;er<v.length&&W(v[er]);)er++;return er}function Ku(v,W){if(!e.some(W))return v;var Ee=Ps(v,e.isPrologueDirective,0),er=Ps(v,e.isHoistedFunction,Ee),Wr=Ps(v,e.isHoistedVariableStatement,er),Jt=Ps(W,e.isPrologueDirective,0),ln=Ps(W,e.isHoistedFunction,Jt),Xa=Ps(W,e.isHoistedVariableStatement,ln),Uo=Ps(W,e.isCustomPrologue,Xa);e.Debug.assert(Uo===W.length,"Expected declarations to be valid standard or custom prologues");var Es=e.isNodeArray(v)?v.slice():v;if(Uo>Xa&&Es.splice.apply(Es,Bt([Wr,0],W.slice(Xa,Uo),!1)),Xa>ln&&Es.splice.apply(Es,Bt([er,0],W.slice(ln,Xa),!1)),ln>Jt&&Es.splice.apply(Es,Bt([Ee,0],W.slice(Jt,ln),!1)),Jt>0)if(Ee===0)Es.splice.apply(Es,Bt([0,0],W.slice(0,Jt),!1));else{for(var U_=new e.Map,Ed=0;Ed<Ee;Ed++){var Pp=v[Ed];U_.set(Pp.expression.text,!0)}for(var Ed=Jt-1;Ed>=0;Ed--){var Hf=W[Ed];U_.has(Hf.expression.text)||Es.unshift(Hf)}}return e.isNodeArray(v)?e.setTextRange(ae(Es,v.hasTrailingComma),v):v}function bd(v,W){var Ee;return typeof W=="number"&&(W=Je(W)),e.isParameter(v)?Mn(v,v.decorators,W,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):e.isPropertySignature(v)?ir(v,W,v.name,v.questionToken,v.type):e.isPropertyDeclaration(v)?rr(v,v.decorators,W,v.name,(Ee=v.questionToken)!==null&&Ee!==void 0?Ee:v.exclamationToken,v.type,v.initializer):e.isMethodSignature(v)?Lr(v,W,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):e.isMethodDeclaration(v)?cr(v,v.decorators,W,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):e.isConstructorDeclaration(v)?ke(v,v.decorators,W,v.parameters,v.body):e.isGetAccessorDeclaration(v)?Xe(v,v.decorators,W,v.name,v.parameters,v.type,v.body):e.isSetAccessorDeclaration(v)?Ir(v,v.decorators,W,v.name,v.parameters,v.body):e.isIndexSignatureDeclaration(v)?zr(v,v.decorators,W,v.parameters,v.type):e.isFunctionExpression(v)?gi(v,W,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):e.isArrowFunction(v)?Vi(v,W,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):e.isClassExpression(v)?Ia(v,v.decorators,W,v.name,v.typeParameters,v.heritageClauses,v.members):e.isVariableStatement(v)?hr(v,W,v.declarationList):e.isFunctionDeclaration(v)?Al(v,v.decorators,W,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):e.isClassDeclaration(v)?af(v,v.decorators,W,v.name,v.typeParameters,v.heritageClauses,v.members):e.isInterfaceDeclaration(v)?Ho(v,v.decorators,W,v.name,v.typeParameters,v.heritageClauses,v.members):e.isTypeAliasDeclaration(v)?Wd(v,v.decorators,W,v.name,v.typeParameters,v.type):e.isEnumDeclaration(v)?jd(v,v.decorators,W,v.name,v.members):e.isModuleDeclaration(v)?$l(v,v.decorators,W,v.name,v.body):e.isImportEqualsDeclaration(v)?Nf(v,v.decorators,W,v.isTypeOnly,v.name,v.moduleReference):e.isImportDeclaration(v)?Kd(v,v.decorators,W,v.importClause,v.moduleSpecifier,v.assertClause):e.isExportAssignment(v)?zd(v,v.decorators,W,v.expression):e.isExportDeclaration(v)?qd(v,v.decorators,W,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.assertClause):e.Debug.assertNever(v)}function Fs(v){return v?ae(v):void 0}function Sc(v){return typeof v=="string"?ur(v):v}function Kl(v){return typeof v=="string"?Ne(v):typeof v=="number"?ce(v):typeof v=="boolean"?v?He():lr():v}function zu(v){return typeof v=="number"?we(v):v}function zl(v){return v&&e.isNotEmittedStatement(v)?e.setTextRange(q(dt(),v),v):v}}e.createNodeFactory=u;function g(Q,H){return Q!==H&&e.setTextRange(Q,H),Q}function p(Q,H){return Q!==H&&(q(Q,H),e.setTextRange(Q,H)),Q}function I(Q){switch(Q){case 341:return"type";case 339:return"returns";case 340:return"this";case 337:return"enum";case 328:return"author";case 330:return"class";case 331:return"public";case 332:return"private";case 333:return"protected";case 334:return"readonly";case 335:return"override";case 342:return"template";case 343:return"typedef";case 338:return"param";case 345:return"prop";case 336:return"callback";case 326:return"augments";case 327:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(Q)))}}var V,L={};function m(Q,H){switch(V||(V=e.createScanner(99,!1,0)),Q){case 14:V.setText("`"+H+"`");break;case 15:V.setText("`"+H+"${");break;case 16:V.setText("}"+H+"${");break;case 17:V.setText("}"+H+"`");break}var w=V.scan();if(w===19&&(w=V.reScanTemplateToken(!1)),V.isUnterminated())return V.setText(void 0),L;var d;switch(w){case 14:case 15:case 16:case 17:d=V.getTokenValue();break}return d===void 0||V.scan()!==1?(V.setText(void 0),L):(V.setText(void 0),d)}function y(Q){return te(Q)&-16777217}function j(Q,H){return H|Q.transformFlags&33562624}function te(Q){if(!Q)return 0;var H=Q.transformFlags&~$(Q.kind);return e.isNamedDeclaration(Q)&&e.isPropertyName(Q.name)?j(Q.name,H):H}function E(Q){return Q?Q.transformFlags:0}function F(Q){for(var H=0,w=0,d=Q;w<d.length;w++){var B=d[w];H|=te(B)}Q.transformFlags=H}function $(Q){if(Q>=176&&Q<=199)return-2;switch(Q){case 207:case 208:case 203:return 536887296;case 260:return 589443072;case 163:return 536870912;case 213:return 557748224;case 212:case 255:return 591310848;case 254:return 537165824;case 256:case 225:return 536940544;case 170:return 591306752;case 166:return 570433536;case 168:case 171:case 172:return 574529536;case 130:case 146:case 157:case 143:case 149:case 147:case 133:case 150:case 114:case 162:case 165:case 167:case 173:case 174:case 175:case 257:case 258:return-2;case 204:return 536973312;case 291:return 536903680;case 200:case 201:return 536887296;case 210:case 228:case 348:case 211:case 106:return 536870912;case 205:case 206:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=$;var C=e.createBaseNodeFactory();function K(Q){return Q.flags|=8,Q}var k={createBaseSourceFileNode:function(Q){return K(C.createBaseSourceFileNode(Q))},createBaseIdentifierNode:function(Q){return K(C.createBaseIdentifierNode(Q))},createBasePrivateIdentifierNode:function(Q){return K(C.createBasePrivateIdentifierNode(Q))},createBaseTokenNode:function(Q){return K(C.createBaseTokenNode(Q))},createBaseNode:function(Q){return K(C.createBaseNode(Q))}};e.factory=u(4,k);function X(Q,H,w){var d,B,T,_,h,R,b,G,Y,pe;e.isString(Q)?(T="",_=Q,h=Q.length,R=H,b=w):(e.Debug.assert(H==="js"||H==="dts"),T=(H==="js"?Q.javascriptPath:Q.declarationPath)||"",R=H==="js"?Q.javascriptMapPath:Q.declarationMapPath,G=function(){return H==="js"?Q.javascriptText:Q.declarationText},Y=function(){return H==="js"?Q.javascriptMapText:Q.declarationMapText},h=function(){return G().length},Q.buildInfo&&Q.buildInfo.bundle&&(e.Debug.assert(w===void 0||typeof w=="boolean"),d=w,B=H==="js"?Q.buildInfo.bundle.js:Q.buildInfo.bundle.dts,pe=Q.oldFileOfCurrentEmit));var A=pe?x(e.Debug.assertDefined(B)):O(B,d,h);return A.fileName=T,A.sourceMapPath=R,A.oldFileOfCurrentEmit=pe,G&&Y?(Object.defineProperty(A,"text",{get:G}),Object.defineProperty(A,"sourceMapText",{get:Y})):(e.Debug.assert(!pe),A.text=_!=null?_:"",A.sourceMapText=b),A}e.createUnparsedSourceFile=X;function O(Q,H,w){for(var d,B,T,_,h,R,b,G,Y=0,pe=Q?Q.sections:e.emptyArray;Y<pe.length;Y++){var A=pe[Y];switch(A.kind){case"prologue":d=e.append(d,e.setTextRange(e.factory.createUnparsedPrologue(A.data),A));break;case"emitHelpers":B=e.append(B,e.getAllUnscopedEmitHelpers().get(A.data));break;case"no-default-lib":G=!0;break;case"reference":T=e.append(T,{pos:-1,end:-1,fileName:A.data});break;case"type":_=e.append(_,A.data);break;case"lib":h=e.append(h,{pos:-1,end:-1,fileName:A.data});break;case"prepend":for(var _e=void 0,Se=0,ae=A.texts;Se<ae.length;Se++){var D=ae[Se];(!H||D.kind!=="internal")&&(_e=e.append(_e,e.setTextRange(e.factory.createUnparsedTextLike(D.data,D.kind==="internal"),D)))}R=e.addRange(R,_e),b=e.append(b,e.factory.createUnparsedPrepend(A.data,_e!=null?_e:e.emptyArray));break;case"internal":if(H){b||(b=[]);break}case"text":b=e.append(b,e.setTextRange(e.factory.createUnparsedTextLike(A.data,A.kind==="internal"),A));break;default:e.Debug.assertNever(A)}}if(!b){var be=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(be,0,typeof w=="function"?w():w),b=[be]}var ne=e.parseNodeFactory.createUnparsedSource(d!=null?d:e.emptyArray,void 0,b);return e.setEachParent(d,ne),e.setEachParent(b,ne),e.setEachParent(R,ne),ne.hasNoDefaultLib=G,ne.helpers=B,ne.referencedFiles=T||e.emptyArray,ne.typeReferenceDirectives=_,ne.libReferenceDirectives=h||e.emptyArray,ne}function x(Q){for(var H,w,d=0,B=Q.sections;d<B.length;d++){var T=B[d];switch(T.kind){case"internal":case"text":H=e.append(H,e.setTextRange(e.factory.createUnparsedTextLike(T.data,T.kind==="internal"),T));break;case"no-default-lib":case"reference":case"type":case"lib":w=e.append(w,e.setTextRange(e.factory.createUnparsedSyntheticReference(T),T));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(T)}}var _=e.factory.createUnparsedSource(e.emptyArray,w,H!=null?H:e.emptyArray);return e.setEachParent(w,_),e.setEachParent(H,_),_.helpers=e.map(Q.sources&&Q.sources.helpers,function(h){return e.getAllUnscopedEmitHelpers().get(h)}),_}function ie(Q,H,w,d,B,T,_,h,R,b,G){var Y=e.parseNodeFactory.createInputFiles();if(e.isString(Q))Y.javascriptText=Q,Y.javascriptMapPath=w,Y.javascriptMapText=d,Y.declarationText=H,Y.declarationMapPath=B,Y.declarationMapText=T,Y.javascriptPath=_,Y.declarationPath=h,Y.buildInfoPath=R,Y.buildInfo=b,Y.oldFileOfCurrentEmit=G;else{var pe=new e.Map,A=function(D){if(D!==void 0){var be=pe.get(D);return be===void 0&&(be=Q(D),pe.set(D,be!==void 0?be:!1)),be!==!1?be:void 0}},_e=function(D){var be=A(D);return be!==void 0?be:"/* Input file ".concat(D,` was missing */\r
`)},Se,ae=function(D){if(Se===void 0){var be=D();Se=be!==void 0?e.getBuildInfo(be):!1}return Se||void 0};Y.javascriptPath=H,Y.javascriptMapPath=w,Y.declarationPath=e.Debug.assertDefined(d),Y.declarationMapPath=B,Y.buildInfoPath=T,Object.defineProperties(Y,{javascriptText:{get:function(){return _e(H)}},javascriptMapText:{get:function(){return A(w)}},declarationText:{get:function(){return _e(e.Debug.assertDefined(d))}},declarationMapText:{get:function(){return A(B)}},buildInfo:{get:function(){return ae(function(){return A(T)})}}})}return Y}e.createInputFiles=ie;var Z;function re(Q,H,w){return new(Z||(Z=e.objectAllocator.getSourceMapSourceConstructor()))(Q,H,w)}e.createSourceMapSource=re;function q(Q,H){if(Q.original=H,H){var w=H.emitNode;w&&(Q.emitNode=P(w,Q.emitNode))}return Q}e.setOriginalNode=q;function P(Q,H){var w=Q.flags,d=Q.leadingComments,B=Q.trailingComments,T=Q.commentRange,_=Q.sourceMapRange,h=Q.tokenSourceMapRanges,R=Q.constantValue,b=Q.helpers,G=Q.startsOnNewLine;if(H||(H={}),d&&(H.leadingComments=e.addRange(d.slice(),H.leadingComments)),B&&(H.trailingComments=e.addRange(B.slice(),H.trailingComments)),w&&(H.flags=w&-268435457),T&&(H.commentRange=T),_&&(H.sourceMapRange=_),h&&(H.tokenSourceMapRanges=M(h,H.tokenSourceMapRanges)),R!==void 0&&(H.constantValue=R),b)for(var Y=0,pe=b;Y<pe.length;Y++){var A=pe[Y];H.helpers=e.appendIfUnique(H.helpers,A)}return G!==void 0&&(H.startsOnNewLine=G),H}function M(Q,H){H||(H=[]);for(var w in Q)H[w]=Q[w];return H}})(mr||(mr={}));var mr;(function(e){function n(d){var B;if(d.emitNode)e.Debug.assert(!(d.emitNode.flags&268435456),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(d)){if(d.kind===303)return d.emitNode={annotatedNodes:[d]};var T=(B=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(d))))!==null&&B!==void 0?B:e.Debug.fail("Could not determine parsed source file.");n(T).annotatedNodes.push(d)}d.emitNode={}}return d.emitNode}e.getOrCreateEmitNode=n;function c(d){var B,T,_=(T=(B=e.getSourceFileOfNode(e.getParseTreeNode(d)))===null||B===void 0?void 0:B.emitNode)===null||T===void 0?void 0:T.annotatedNodes;if(_)for(var h=0,R=_;h<R.length;h++){var b=R[h];b.emitNode=void 0}}e.disposeEmitNodes=c;function u(d){var B=n(d);return B.flags|=1536,B.leadingComments=void 0,B.trailingComments=void 0,d}e.removeAllComments=u;function g(d,B){return n(d).flags=B,d}e.setEmitFlags=g;function p(d,B){var T=n(d);return T.flags=T.flags|B,d}e.addEmitFlags=p;function I(d){var B,T;return(T=(B=d.emitNode)===null||B===void 0?void 0:B.sourceMapRange)!==null&&T!==void 0?T:d}e.getSourceMapRange=I;function V(d,B){return n(d).sourceMapRange=B,d}e.setSourceMapRange=V;function L(d,B){var T,_;return(_=(T=d.emitNode)===null||T===void 0?void 0:T.tokenSourceMapRanges)===null||_===void 0?void 0:_[B]}e.getTokenSourceMapRange=L;function m(d,B,T){var _,h=n(d),R=(_=h.tokenSourceMapRanges)!==null&&_!==void 0?_:h.tokenSourceMapRanges=[];return R[B]=T,d}e.setTokenSourceMapRange=m;function y(d){var B;return(B=d.emitNode)===null||B===void 0?void 0:B.startsOnNewLine}e.getStartsOnNewLine=y;function j(d,B){return n(d).startsOnNewLine=B,d}e.setStartsOnNewLine=j;function te(d){var B,T;return(T=(B=d.emitNode)===null||B===void 0?void 0:B.commentRange)!==null&&T!==void 0?T:d}e.getCommentRange=te;function E(d,B){return n(d).commentRange=B,d}e.setCommentRange=E;function F(d){var B;return(B=d.emitNode)===null||B===void 0?void 0:B.leadingComments}e.getSyntheticLeadingComments=F;function $(d,B){return n(d).leadingComments=B,d}e.setSyntheticLeadingComments=$;function C(d,B,T,_){return $(d,e.append(F(d),{kind:B,pos:-1,end:-1,hasTrailingNewLine:_,text:T}))}e.addSyntheticLeadingComment=C;function K(d){var B;return(B=d.emitNode)===null||B===void 0?void 0:B.trailingComments}e.getSyntheticTrailingComments=K;function k(d,B){return n(d).trailingComments=B,d}e.setSyntheticTrailingComments=k;function X(d,B,T,_){return k(d,e.append(K(d),{kind:B,pos:-1,end:-1,hasTrailingNewLine:_,text:T}))}e.addSyntheticTrailingComment=X;function O(d,B){$(d,F(B)),k(d,K(B));var T=n(B);return T.leadingComments=void 0,T.trailingComments=void 0,d}e.moveSyntheticComments=O;function x(d){var B;return(B=d.emitNode)===null||B===void 0?void 0:B.constantValue}e.getConstantValue=x;function ie(d,B){var T=n(d);return T.constantValue=B,d}e.setConstantValue=ie;function Z(d,B){var T=n(d);return T.helpers=e.append(T.helpers,B),d}e.addEmitHelper=Z;function re(d,B){if(e.some(B))for(var T=n(d),_=0,h=B;_<h.length;_++){var R=h[_];T.helpers=e.appendIfUnique(T.helpers,R)}return d}e.addEmitHelpers=re;function q(d,B){var T,_=(T=d.emitNode)===null||T===void 0?void 0:T.helpers;return _?e.orderedRemoveItem(_,B):!1}e.removeEmitHelper=q;function P(d){var B;return(B=d.emitNode)===null||B===void 0?void 0:B.helpers}e.getEmitHelpers=P;function M(d,B,T){var _=d.emitNode,h=_&&_.helpers;if(!!e.some(h)){for(var R=n(B),b=0,G=0;G<h.length;G++){var Y=h[G];T(Y)?(b++,R.helpers=e.appendIfUnique(R.helpers,Y)):b>0&&(h[G-b]=Y)}b>0&&(h.length-=b)}}e.moveEmitHelpers=M;function Q(d){var B;return(B=d.emitNode)===null||B===void 0?void 0:B.snippetElement}e.getSnippetElement=Q;function H(d,B){var T=n(d);return T.snippetElement=B,d}e.setSnippetElement=H;function w(d){return n(d).flags|=134217728,d}e.ignoreSourceNewlines=w})(mr||(mr={}));var mr;(function(e){function n(V){var L=V.factory,m=e.memoize(function(){return e.setEmitFlags(L.createTrue(),268435456)}),y=e.memoize(function(){return e.setEmitFlags(L.createFalse(),268435456)});return{getUnscopedHelperName:j,createDecorateHelper:te,createMetadataHelper:E,createParamHelper:F,createAssignHelper:$,createAwaitHelper:C,createAsyncGeneratorHelper:K,createAsyncDelegatorHelper:k,createAsyncValuesHelper:X,createRestHelper:O,createAwaiterHelper:x,createExtendsHelper:ie,createTemplateObjectHelper:Z,createSpreadArrayHelper:re,createValuesHelper:q,createReadHelper:P,createGeneratorHelper:M,createCreateBindingHelper:Q,createImportStarHelper:H,createImportStarCallbackHelper:w,createImportDefaultHelper:d,createExportStarHelper:B,createClassPrivateFieldGetHelper:T,createClassPrivateFieldSetHelper:_,createClassPrivateFieldInHelper:h};function j(R){return e.setEmitFlags(L.createIdentifier(R),4098)}function te(R,b,G,Y){V.requestEmitHelper(e.decorateHelper);var pe=[];return pe.push(L.createArrayLiteralExpression(R,!0)),pe.push(b),G&&(pe.push(G),Y&&pe.push(Y)),L.createCallExpression(j("__decorate"),void 0,pe)}function E(R,b){return V.requestEmitHelper(e.metadataHelper),L.createCallExpression(j("__metadata"),void 0,[L.createStringLiteral(R),b])}function F(R,b,G){return V.requestEmitHelper(e.paramHelper),e.setTextRange(L.createCallExpression(j("__param"),void 0,[L.createNumericLiteral(b+""),R]),G)}function $(R){return e.getEmitScriptTarget(V.getCompilerOptions())>=2?L.createCallExpression(L.createPropertyAccessExpression(L.createIdentifier("Object"),"assign"),void 0,R):(V.requestEmitHelper(e.assignHelper),L.createCallExpression(j("__assign"),void 0,R))}function C(R){return V.requestEmitHelper(e.awaitHelper),L.createCallExpression(j("__await"),void 0,[R])}function K(R,b){return V.requestEmitHelper(e.awaitHelper),V.requestEmitHelper(e.asyncGeneratorHelper),(R.emitNode||(R.emitNode={})).flags|=786432,L.createCallExpression(j("__asyncGenerator"),void 0,[b?L.createThis():L.createVoidZero(),L.createIdentifier("arguments"),R])}function k(R){return V.requestEmitHelper(e.awaitHelper),V.requestEmitHelper(e.asyncDelegator),L.createCallExpression(j("__asyncDelegator"),void 0,[R])}function X(R){return V.requestEmitHelper(e.asyncValues),L.createCallExpression(j("__asyncValues"),void 0,[R])}function O(R,b,G,Y){V.requestEmitHelper(e.restHelper);for(var pe=[],A=0,_e=0;_e<b.length-1;_e++){var Se=e.getPropertyNameOfBindingOrAssignmentElement(b[_e]);if(Se)if(e.isComputedPropertyName(Se)){e.Debug.assertIsDefined(G,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var ae=G[A];A++,pe.push(L.createConditionalExpression(L.createTypeCheck(ae,"symbol"),void 0,ae,void 0,L.createAdd(ae,L.createStringLiteral(""))))}else pe.push(L.createStringLiteralFromNode(Se))}return L.createCallExpression(j("__rest"),void 0,[R,e.setTextRange(L.createArrayLiteralExpression(pe),Y)])}function x(R,b,G,Y){V.requestEmitHelper(e.awaiterHelper);var pe=L.createFunctionExpression(void 0,L.createToken(41),void 0,void 0,[],void 0,Y);return(pe.emitNode||(pe.emitNode={})).flags|=786432,L.createCallExpression(j("__awaiter"),void 0,[R?L.createThis():L.createVoidZero(),b?L.createIdentifier("arguments"):L.createVoidZero(),G?e.createExpressionFromEntityName(L,G):L.createVoidZero(),pe])}function ie(R){return V.requestEmitHelper(e.extendsHelper),L.createCallExpression(j("__extends"),void 0,[R,L.createUniqueName("_super",48)])}function Z(R,b){return V.requestEmitHelper(e.templateObjectHelper),L.createCallExpression(j("__makeTemplateObject"),void 0,[R,b])}function re(R,b,G){return V.requestEmitHelper(e.spreadArrayHelper),L.createCallExpression(j("__spreadArray"),void 0,[R,b,G?m():y()])}function q(R){return V.requestEmitHelper(e.valuesHelper),L.createCallExpression(j("__values"),void 0,[R])}function P(R,b){return V.requestEmitHelper(e.readHelper),L.createCallExpression(j("__read"),void 0,b!==void 0?[R,L.createNumericLiteral(b+"")]:[R])}function M(R){return V.requestEmitHelper(e.generatorHelper),L.createCallExpression(j("__generator"),void 0,[L.createThis(),R])}function Q(R,b,G){return V.requestEmitHelper(e.createBindingHelper),L.createCallExpression(j("__createBinding"),void 0,Bt([L.createIdentifier("exports"),R,b],G?[G]:[],!0))}function H(R){return V.requestEmitHelper(e.importStarHelper),L.createCallExpression(j("__importStar"),void 0,[R])}function w(){return V.requestEmitHelper(e.importStarHelper),j("__importStar")}function d(R){return V.requestEmitHelper(e.importDefaultHelper),L.createCallExpression(j("__importDefault"),void 0,[R])}function B(R,b){return b===void 0&&(b=L.createIdentifier("exports")),V.requestEmitHelper(e.exportStarHelper),V.requestEmitHelper(e.createBindingHelper),L.createCallExpression(j("__exportStar"),void 0,[R,b])}function T(R,b,G,Y){V.requestEmitHelper(e.classPrivateFieldGetHelper);var pe;return Y?pe=[R,b,L.createStringLiteral(G),Y]:pe=[R,b,L.createStringLiteral(G)],L.createCallExpression(j("__classPrivateFieldGet"),void 0,pe)}function _(R,b,G,Y,pe){V.requestEmitHelper(e.classPrivateFieldSetHelper);var A;return pe?A=[R,b,G,L.createStringLiteral(Y),pe]:A=[R,b,G,L.createStringLiteral(Y)],L.createCallExpression(j("__classPrivateFieldSet"),void 0,A)}function h(R,b){return V.requestEmitHelper(e.classPrivateFieldInHelper),L.createCallExpression(j("__classPrivateFieldIn"),void 0,[R,b])}}e.createEmitHelperFactory=n;function c(V,L){return V===L||V.priority===L.priority?0:V.priority===void 0?1:L.priority===void 0?-1:e.compareValues(V.priority,L.priority)}e.compareEmitHelpers=c;function u(V){for(var L=[],m=1;m<arguments.length;m++)L[m-1]=arguments[m];return function(y){for(var j="",te=0;te<L.length;te++)j+=V[te],j+=y(L[te]);return j+=V[V.length-1],j}}e.helperString=u,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`},e.metadataHelper={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);
};`},e.paramHelper={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); }
};`},e.assignHelper={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);
};`},e.awaitHelper={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); }`},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
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]); }
};`},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],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: n === "return" } : f ? f(v) : v; } : f; }
};`},e.asyncValues={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); }
};`},e.restHelper={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;
};`},e.awaiterHelper={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());
});
};`},e.extendsHelper={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 __());
};
})();`},e.templateObjectHelper={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;
};`},e.readHelper={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;
};`},e.spreadArrayHelper={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));
};`},e.valuesHelper={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.");
};`},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (_) 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 };
}
};`},e.createBindingHelper={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;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));`},e.setModuleDefaultHelper={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;
});`},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:`
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};`},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],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);
};`},e.classPrivateFieldGetHelper={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);
};`},e.classPrivateFieldSetHelper={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;
};`},e.classPrivateFieldInHelper={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);
};`};var g;function p(){return g||(g=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(V){return V.name}))}e.getAllUnscopedEmitHelpers=p,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:u(EL([`
const `," = name => super[name];"],[`
const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:u(EL([`
const `,` = (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);`],[`
const `,` = (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);`]),"_superIndex")};function I(V,L){return e.isCallExpression(V)&&e.isIdentifier(V.expression)&&(e.getEmitFlags(V.expression)&4096)!==0&&V.expression.escapedText===L}e.isCallToHelper=I})(mr||(mr={}));var mr;(function(e){function n(wr){return wr.kind===8}e.isNumericLiteral=n;function c(wr){return wr.kind===9}e.isBigIntLiteral=c;function u(wr){return wr.kind===10}e.isStringLiteral=u;function g(wr){return wr.kind===11}e.isJsxText=g;function p(wr){return wr.kind===13}e.isRegularExpressionLiteral=p;function I(wr){return wr.kind===14}e.isNoSubstitutionTemplateLiteral=I;function V(wr){return wr.kind===15}e.isTemplateHead=V;function L(wr){return wr.kind===16}e.isTemplateMiddle=L;function m(wr){return wr.kind===17}e.isTemplateTail=m;function y(wr){return wr.kind===25}e.isDotDotDotToken=y;function j(wr){return wr.kind===27}e.isCommaToken=j;function te(wr){return wr.kind===39}e.isPlusToken=te;function E(wr){return wr.kind===40}e.isMinusToken=E;function F(wr){return wr.kind===41}e.isAsteriskToken=F;function $(wr){return wr.kind===53}e.isExclamationToken=$;function C(wr){return wr.kind===57}e.isQuestionToken=C;function K(wr){return wr.kind===58}e.isColonToken=K;function k(wr){return wr.kind===28}e.isQuestionDotToken=k;function X(wr){return wr.kind===38}e.isEqualsGreaterThanToken=X;function O(wr){return wr.kind===79}e.isIdentifier=O;function x(wr){return wr.kind===80}e.isPrivateIdentifier=x;function ie(wr){return wr.kind===93}e.isExportModifier=ie;function Z(wr){return wr.kind===131}e.isAsyncModifier=Z;function re(wr){return wr.kind===128}e.isAssertsKeyword=re;function q(wr){return wr.kind===132}e.isAwaitKeyword=q;function P(wr){return wr.kind===144}e.isReadonlyKeyword=P;function M(wr){return wr.kind===124}e.isStaticModifier=M;function Q(wr){return wr.kind===126}e.isAbstractModifier=Q;function H(wr){return wr.kind===106}e.isSuperKeyword=H;function w(wr){return wr.kind===100}e.isImportKeyword=w;function d(wr){return wr.kind===160}e.isQualifiedName=d;function B(wr){return wr.kind===161}e.isComputedPropertyName=B;function T(wr){return wr.kind===162}e.isTypeParameterDeclaration=T;function _(wr){return wr.kind===163}e.isParameter=_;function h(wr){return wr.kind===164}e.isDecorator=h;function R(wr){return wr.kind===165}e.isPropertySignature=R;function b(wr){return wr.kind===166}e.isPropertyDeclaration=b;function G(wr){return wr.kind===167}e.isMethodSignature=G;function Y(wr){return wr.kind===168}e.isMethodDeclaration=Y;function pe(wr){return wr.kind===169}e.isClassStaticBlockDeclaration=pe;function A(wr){return wr.kind===170}e.isConstructorDeclaration=A;function _e(wr){return wr.kind===171}e.isGetAccessorDeclaration=_e;function Se(wr){return wr.kind===172}e.isSetAccessorDeclaration=Se;function ae(wr){return wr.kind===173}e.isCallSignatureDeclaration=ae;function D(wr){return wr.kind===174}e.isConstructSignatureDeclaration=D;function be(wr){return wr.kind===175}e.isIndexSignatureDeclaration=be;function ne(wr){return wr.kind===176}e.isTypePredicateNode=ne;function J(wr){return wr.kind===177}e.isTypeReferenceNode=J;function le(wr){return wr.kind===178}e.isFunctionTypeNode=le;function Te(wr){return wr.kind===179}e.isConstructorTypeNode=Te;function Me(wr){return wr.kind===180}e.isTypeQueryNode=Me;function Ke(wr){return wr.kind===181}e.isTypeLiteralNode=Ke;function Ae(wr){return wr.kind===182}e.isArrayTypeNode=Ae;function Ge(wr){return wr.kind===183}e.isTupleTypeNode=Ge;function se(wr){return wr.kind===196}e.isNamedTupleMember=se;function xe(wr){return wr.kind===184}e.isOptionalTypeNode=xe;function Re(wr){return wr.kind===185}e.isRestTypeNode=Re;function ce(wr){return wr.kind===186}e.isUnionTypeNode=ce;function Ue(wr){return wr.kind===187}e.isIntersectionTypeNode=Ue;function We(wr){return wr.kind===188}e.isConditionalTypeNode=We;function Ne(wr){return wr.kind===189}e.isInferTypeNode=Ne;function ve(wr){return wr.kind===190}e.isParenthesizedTypeNode=ve;function Ve(wr){return wr.kind===191}e.isThisTypeNode=Ve;function gr(wr){return wr.kind===192}e.isTypeOperatorNode=gr;function Er(wr){return wr.kind===193}e.isIndexedAccessTypeNode=Er;function Nr(wr){return wr.kind===194}e.isMappedTypeNode=Nr;function ur(wr){return wr.kind===195}e.isLiteralTypeNode=ur;function xr(wr){return wr.kind===199}e.isImportTypeNode=xr;function sr(wr){return wr.kind===198}e.isTemplateLiteralTypeSpan=sr;function i(wr){return wr.kind===197}e.isTemplateLiteralTypeNode=i;function Mr(wr){return wr.kind===200}e.isObjectBindingPattern=Mr;function fr(wr){return wr.kind===201}e.isArrayBindingPattern=fr;function Ar(wr){return wr.kind===202}e.isBindingElement=Ar;function de(wr){return wr.kind===203}e.isArrayLiteralExpression=de;function we(wr){return wr.kind===204}e.isObjectLiteralExpression=we;function qe(wr){return wr.kind===205}e.isPropertyAccessExpression=qe;function Cr(wr){return wr.kind===206}e.isElementAccessExpression=Cr;function kr(wr){return wr.kind===207}e.isCallExpression=kr;function He(wr){return wr.kind===208}e.isNewExpression=He;function lr(wr){return wr.kind===209}e.isTaggedTemplateExpression=lr;function Hr(wr){return wr.kind===210}e.isTypeAssertionExpression=Hr;function Je(wr){return wr.kind===211}e.isParenthesizedExpression=Je;function Sr(wr){return wr.kind===212}e.isFunctionExpression=Sr;function Yr(wr){return wr.kind===213}e.isArrowFunction=Yr;function ot(wr){return wr.kind===214}e.isDeleteExpression=ot;function _t(wr){return wr.kind===215}e.isTypeOfExpression=_t;function kt(wr){return wr.kind===216}e.isVoidExpression=kt;function Yt(wr){return wr.kind===217}e.isAwaitExpression=Yt;function vn(wr){return wr.kind===218}e.isPrefixUnaryExpression=vn;function Mn(wr){return wr.kind===219}e.isPostfixUnaryExpression=Mn;function qn(wr){return wr.kind===220}e.isBinaryExpression=qn;function nr(wr){return wr.kind===221}e.isConditionalExpression=nr;function Zr(wr){return wr.kind===222}e.isTemplateExpression=Zr;function ir(wr){return wr.kind===223}e.isYieldExpression=ir;function ge(wr){return wr.kind===224}e.isSpreadElement=ge;function rr(wr){return wr.kind===225}e.isClassExpression=rr;function pr(wr){return wr.kind===226}e.isOmittedExpression=pr;function Lr(wr){return wr.kind===227}e.isExpressionWithTypeArguments=Lr;function Ce(wr){return wr.kind===228}e.isAsExpression=Ce;function cr(wr){return wr.kind===229}e.isNonNullExpression=cr;function $e(wr){return wr.kind===230}e.isMetaProperty=$e;function De(wr){return wr.kind===231}e.isSyntheticExpression=De;function z(wr){return wr.kind===348}e.isPartiallyEmittedExpression=z;function ke(wr){return wr.kind===349}e.isCommaListExpression=ke;function dr(wr){return wr.kind===232}e.isTemplateSpan=dr;function Xe(wr){return wr.kind===233}e.isSemicolonClassElement=Xe;function Qe(wr){return wr.kind===234}e.isBlock=Qe;function Ir(wr){return wr.kind===236}e.isVariableStatement=Ir;function Jr(wr){return wr.kind===235}e.isEmptyStatement=Jr;function Or(wr){return wr.kind===237}e.isExpressionStatement=Or;function Be(wr){return wr.kind===238}e.isIfStatement=Be;function yr(wr){return wr.kind===239}e.isDoStatement=yr;function Rr(wr){return wr.kind===240}e.isWhileStatement=Rr;function zr(wr){return wr.kind===241}e.isForStatement=zr;function ut(wr){return wr.kind===242}e.isForInStatement=ut;function mt(wr){return wr.kind===243}e.isForOfStatement=mt;function Lt(wr){return wr.kind===244}e.isContinueStatement=Lt;function vt(wr){return wr.kind===245}e.isBreakStatement=vt;function pt(wr){return wr.kind===246}e.isReturnStatement=pt;function Nt(wr){return wr.kind===247}e.isWithStatement=Nt;function Xt(wr){return wr.kind===248}e.isSwitchStatement=Xt;function st(wr){return wr.kind===249}e.isLabeledStatement=st;function $t(wr){return wr.kind===250}e.isThrowStatement=$t;function Pn(wr){return wr.kind===251}e.isTryStatement=Pn;function Ea(wr){return wr.kind===252}e.isDebuggerStatement=Ea;function ia(wr){return wr.kind===253}e.isVariableDeclaration=ia;function pa(wr){return wr.kind===254}e.isVariableDeclarationList=pa;function Gn(wr){return wr.kind===255}e.isFunctionDeclaration=Gn;function nn(wr){return wr.kind===256}e.isClassDeclaration=nn;function bt(wr){return wr.kind===257}e.isInterfaceDeclaration=bt;function Ut(wr){return wr.kind===258}e.isTypeAliasDeclaration=Ut;function Kt(wr){return wr.kind===259}e.isEnumDeclaration=Kt;function bn(wr){return wr.kind===260}e.isModuleDeclaration=bn;function wn(wr){return wr.kind===261}e.isModuleBlock=wn;function ra(wr){return wr.kind===262}e.isCaseBlock=ra;function ft(wr){return wr.kind===263}e.isNamespaceExportDeclaration=ft;function Ct(wr){return wr.kind===264}e.isImportEqualsDeclaration=Ct;function Pt(wr){return wr.kind===265}e.isImportDeclaration=Pt;function Et(wr){return wr.kind===266}e.isImportClause=Et;function et(wr){return wr.kind===292}e.isAssertClause=et;function hn(wr){return wr.kind===293}e.isAssertEntry=hn;function Qn(wr){return wr.kind===267}e.isNamespaceImport=Qn;function Ra(wr){return wr.kind===273}e.isNamespaceExport=Ra;function Ki(wr){return wr.kind===268}e.isNamedImports=Ki;function di(wr){return wr.kind===269}e.isImportSpecifier=di;function ya(wr){return wr.kind===270}e.isExportAssignment=ya;function $a(wr){return wr.kind===271}e.isExportDeclaration=$a;function ao(wr){return wr.kind===272}e.isNamedExports=ao;function ei(wr){return wr.kind===274}e.isExportSpecifier=ei;function Fi(wr){return wr.kind===275}e.isMissingDeclaration=Fi;function eo(wr){return wr.kind===347}e.isNotEmittedStatement=eo;function Wo(wr){return wr.kind===352}e.isSyntheticReference=Wo;function Yi(wr){return wr.kind===350}e.isMergeDeclarationMarker=Yi;function Ni(wr){return wr.kind===351}e.isEndOfDeclarationMarker=Ni;function Eo(wr){return wr.kind===276}e.isExternalModuleReference=Eo;function lo(wr){return wr.kind===277}e.isJsxElement=lo;function So(wr){return wr.kind===278}e.isJsxSelfClosingElement=So;function ts(wr){return wr.kind===279}e.isJsxOpeningElement=ts;function ja(wr){return wr.kind===280}e.isJsxClosingElement=ja;function Do(wr){return wr.kind===281}e.isJsxFragment=Do;function Pa(wr){return wr.kind===282}e.isJsxOpeningFragment=Pa;function Ti(wr){return wr.kind===283}e.isJsxClosingFragment=Ti;function mo(wr){return wr.kind===284}e.isJsxAttribute=mo;function No(wr){return wr.kind===285}e.isJsxAttributes=No;function ko(wr){return wr.kind===286}e.isJsxSpreadAttribute=ko;function Oo(wr){return wr.kind===287}e.isJsxExpression=Oo;function Po(wr){return wr.kind===288}e.isCaseClause=Po;function Ss(wr){return wr.kind===289}e.isDefaultClause=Ss;function Ds(wr){return wr.kind===290}e.isHeritageClause=Ds;function vr(wr){return wr.kind===291}e.isCatchClause=vr;function gt(wr){return wr.kind===294}e.isPropertyAssignment=gt;function tn(wr){return wr.kind===295}e.isShorthandPropertyAssignment=tn;function Bn(wr){return wr.kind===296}e.isSpreadAssignment=Bn;function Fe(wr){return wr.kind===297}e.isEnumMember=Fe;function Gr(wr){return wr.kind===299}e.isUnparsedPrepend=Gr;function ht(wr){return wr.kind===303}e.isSourceFile=ht;function ye(wr){return wr.kind===304}e.isBundle=ye;function oe(wr){return wr.kind===305}e.isUnparsedSource=oe;function Pe(wr){return wr.kind===307}e.isJSDocTypeExpression=Pe;function Ye(wr){return wr.kind===308}e.isJSDocNameReference=Ye;function Tr(wr){return wr.kind===309}e.isJSDocMemberName=Tr;function tt(wr){return wr.kind===322}e.isJSDocLink=tt;function Mt(wr){return wr.kind===323}e.isJSDocLinkCode=Mt;function Wt(wr){return wr.kind===324}e.isJSDocLinkPlain=Wt;function Ln(wr){return wr.kind===310}e.isJSDocAllType=Ln;function va(wr){return wr.kind===311}e.isJSDocUnknownType=va;function ti(wr){return wr.kind===312}e.isJSDocNullableType=ti;function ii(wr){return wr.kind===313}e.isJSDocNonNullableType=ii;function Si(wr){return wr.kind===314}e.isJSDocOptionalType=Si;function Oi(wr){return wr.kind===315}e.isJSDocFunctionType=Oi;function _s(wr){return wr.kind===316}e.isJSDocVariadicType=_s;function os(wr){return wr.kind===317}e.isJSDocNamepathType=os;function jo(wr){return wr.kind===318}e.isJSDoc=jo;function At(wr){return wr.kind===320}e.isJSDocTypeLiteral=At;function Wn(wr){return wr.kind===321}e.isJSDocSignature=Wn;function sa(wr){return wr.kind===326}e.isJSDocAugmentsTag=sa;function oi(wr){return wr.kind===328}e.isJSDocAuthorTag=oi;function vi(wr){return wr.kind===330}e.isJSDocClassTag=vi;function Ui(wr){return wr.kind===336}e.isJSDocCallbackTag=Ui;function Ca(wr){return wr.kind===331}e.isJSDocPublicTag=Ca;function gi(wr){return wr.kind===332}e.isJSDocPrivateTag=gi;function Mi(wr){return wr.kind===333}e.isJSDocProtectedTag=Mi;function Vi(wr){return wr.kind===334}e.isJSDocReadonlyTag=Vi;function Ro(wr){return wr.kind===335}e.isJSDocOverrideTag=Ro;function Yo(wr){return wr.kind===329}e.isJSDocDeprecatedTag=Yo;function ns(wr){return wr.kind===344}e.isJSDocSeeTag=ns;function me(wr){return wr.kind===337}e.isJSDocEnumTag=me;function Pr(wr){return wr.kind===338}e.isJSDocParameterTag=Pr;function yt(wr){return wr.kind===339}e.isJSDocReturnTag=yt;function Le(wr){return wr.kind===340}e.isJSDocThisTag=Le;function Xr(wr){return wr.kind===341}e.isJSDocTypeTag=Xr;function an(wr){return wr.kind===342}e.isJSDocTemplateTag=an;function Xn(wr){return wr.kind===343}e.isJSDocTypedefTag=Xn;function da(wr){return wr.kind===325}e.isJSDocUnknownTag=da;function bi(wr){return wr.kind===345}e.isJSDocPropertyTag=bi;function Qa(wr){return wr.kind===327}e.isJSDocImplementsTag=Qa;function go(wr){return wr.kind===346}e.isSyntaxList=go})(mr||(mr={}));var mr;(function(e){function n(fr){return fr.createExportDeclaration(void 0,void 0,!1,fr.createNamedExports([]),void 0)}e.createEmptyExports=n;function c(fr,Ar,de,we){if(e.isComputedPropertyName(de))return e.setTextRange(fr.createElementAccessExpression(Ar,de.expression),we);var qe=e.setTextRange(e.isMemberName(de)?fr.createPropertyAccessExpression(Ar,de):fr.createElementAccessExpression(Ar,de),de);return e.getOrCreateEmitNode(qe).flags|=64,qe}e.createMemberAccessForPropertyName=c;function u(fr,Ar){var de=e.parseNodeFactory.createIdentifier(fr||"React");return e.setParent(de,e.getParseTreeNode(Ar)),de}function g(fr,Ar,de){if(e.isQualifiedName(Ar)){var we=g(fr,Ar.left,de),qe=fr.createIdentifier(e.idText(Ar.right));return qe.escapedText=Ar.right.escapedText,fr.createPropertyAccessExpression(we,qe)}else return u(e.idText(Ar),de)}function p(fr,Ar,de,we){return Ar?g(fr,Ar,we):fr.createPropertyAccessExpression(u(de,we),"createElement")}e.createJsxFactoryExpression=p;function I(fr,Ar,de,we){return Ar?g(fr,Ar,we):fr.createPropertyAccessExpression(u(de,we),"Fragment")}function V(fr,Ar,de,we,qe,Cr){var kr=[de];if(we&&kr.push(we),qe&&qe.length>0)if(we||kr.push(fr.createNull()),qe.length>1)for(var He=0,lr=qe;He<lr.length;He++){var Hr=lr[He];d(Hr),kr.push(Hr)}else kr.push(qe[0]);return e.setTextRange(fr.createCallExpression(Ar,void 0,kr),Cr)}e.createExpressionForJsxElement=V;function L(fr,Ar,de,we,qe,Cr,kr){var He=I(fr,de,we,Cr),lr=[He,fr.createNull()];if(qe&&qe.length>0)if(qe.length>1)for(var Hr=0,Je=qe;Hr<Je.length;Hr++){var Sr=Je[Hr];d(Sr),lr.push(Sr)}else lr.push(qe[0]);return e.setTextRange(fr.createCallExpression(p(fr,Ar,we,Cr),void 0,lr),kr)}e.createExpressionForJsxFragment=L;function m(fr,Ar,de){if(e.isVariableDeclarationList(Ar)){var we=e.first(Ar.declarations),qe=fr.updateVariableDeclaration(we,we.name,void 0,void 0,de);return e.setTextRange(fr.createVariableStatement(void 0,fr.updateVariableDeclarationList(Ar,[qe])),Ar)}else{var Cr=e.setTextRange(fr.createAssignment(Ar,de),Ar);return e.setTextRange(fr.createExpressionStatement(Cr),Ar)}}e.createForOfBindingStatement=m;function y(fr,Ar,de){return e.isBlock(Ar)?fr.updateBlock(Ar,e.setTextRange(fr.createNodeArray(Bt([de],Ar.statements,!0)),Ar.statements)):fr.createBlock(fr.createNodeArray([Ar,de]),!0)}e.insertLeadingStatement=y;function j(fr,Ar){if(e.isQualifiedName(Ar)){var de=j(fr,Ar.left),we=e.setParent(e.setTextRange(fr.cloneNode(Ar.right),Ar.right),Ar.right.parent);return e.setTextRange(fr.createPropertyAccessExpression(de,we),Ar)}else return e.setParent(e.setTextRange(fr.cloneNode(Ar),Ar),Ar.parent)}e.createExpressionFromEntityName=j;function te(fr,Ar){return e.isIdentifier(Ar)?fr.createStringLiteralFromNode(Ar):e.isComputedPropertyName(Ar)?e.setParent(e.setTextRange(fr.cloneNode(Ar.expression),Ar.expression),Ar.expression.parent):e.setParent(e.setTextRange(fr.cloneNode(Ar),Ar),Ar.parent)}e.createExpressionForPropertyName=te;function E(fr,Ar,de,we,qe){var Cr=e.getAllAccessorDeclarations(Ar,de),kr=Cr.firstAccessor,He=Cr.getAccessor,lr=Cr.setAccessor;if(de===kr)return e.setTextRange(fr.createObjectDefinePropertyCall(we,te(fr,de.name),fr.createPropertyDescriptor({enumerable:fr.createFalse(),configurable:!0,get:He&&e.setTextRange(e.setOriginalNode(fr.createFunctionExpression(He.modifiers,void 0,void 0,void 0,He.parameters,void 0,He.body),He),He),set:lr&&e.setTextRange(e.setOriginalNode(fr.createFunctionExpression(lr.modifiers,void 0,void 0,void 0,lr.parameters,void 0,lr.body),lr),lr)},!qe)),kr)}function F(fr,Ar,de){return e.setOriginalNode(e.setTextRange(fr.createAssignment(c(fr,de,Ar.name,Ar.name),Ar.initializer),Ar),Ar)}function $(fr,Ar,de){return e.setOriginalNode(e.setTextRange(fr.createAssignment(c(fr,de,Ar.name,Ar.name),fr.cloneNode(Ar.name)),Ar),Ar)}function C(fr,Ar,de){return e.setOriginalNode(e.setTextRange(fr.createAssignment(c(fr,de,Ar.name,Ar.name),e.setOriginalNode(e.setTextRange(fr.createFunctionExpression(Ar.modifiers,Ar.asteriskToken,void 0,void 0,Ar.parameters,void 0,Ar.body),Ar),Ar)),Ar),Ar)}function K(fr,Ar,de,we){switch(de.name&&e.isPrivateIdentifier(de.name)&&e.Debug.failBadSyntaxKind(de.name,"Private identifiers are not allowed in object literals."),de.kind){case 171:case 172:return E(fr,Ar.properties,de,we,!!Ar.multiLine);case 294:return F(fr,de,we);case 295:return $(fr,de,we);case 168:return C(fr,de,we)}}e.createExpressionForObjectLiteralElementLike=K;function k(fr,Ar,de,we,qe){var Cr=Ar.operator;e.Debug.assert(Cr===45||Cr===46,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var kr=fr.createTempVariable(we);de=fr.createAssignment(kr,de),e.setTextRange(de,Ar.operand);var He=e.isPrefixUnaryExpression(Ar)?fr.createPrefixUnaryExpression(Cr,kr):fr.createPostfixUnaryExpression(kr,Cr);return e.setTextRange(He,Ar),qe&&(He=fr.createAssignment(qe,He),e.setTextRange(He,Ar)),de=fr.createComma(de,He),e.setTextRange(de,Ar),e.isPostfixUnaryExpression(Ar)&&(de=fr.createComma(de,kr),e.setTextRange(de,Ar)),de}e.expandPreOrPostfixIncrementOrDecrementExpression=k;function X(fr){return(e.getEmitFlags(fr)&32768)!==0}e.isInternalName=X;function O(fr){return(e.getEmitFlags(fr)&16384)!==0}e.isLocalName=O;function x(fr){return(e.getEmitFlags(fr)&8192)!==0}e.isExportName=x;function ie(fr){return e.isStringLiteral(fr.expression)&&fr.expression.text==="use strict"}function Z(fr){for(var Ar=0,de=fr;Ar<de.length;Ar++){var we=de[Ar];if(e.isPrologueDirective(we)){if(ie(we))return we}else break}}e.findUseStrictPrologue=Z;function re(fr){var Ar=e.firstOrUndefined(fr);return Ar!==void 0&&e.isPrologueDirective(Ar)&&ie(Ar)}e.startsWithUseStrict=re;function q(fr){return fr.kind===220&&fr.operatorToken.kind===27||fr.kind===349}e.isCommaSequence=q;function P(fr){return e.isParenthesizedExpression(fr)&&e.isInJSFile(fr)&&!!e.getJSDocTypeTag(fr)}e.isJSDocTypeAssertion=P;function M(fr){var Ar=e.getJSDocType(fr);return e.Debug.assertIsDefined(Ar),Ar}e.getJSDocTypeAssertionType=M;function Q(fr,Ar){switch(Ar===void 0&&(Ar=15),fr.kind){case 211:return Ar&16&&P(fr)?!1:(Ar&1)!==0;case 210:case 228:return(Ar&2)!==0;case 229:return(Ar&4)!==0;case 348:return(Ar&8)!==0}return!1}e.isOuterExpression=Q;function H(fr,Ar){for(Ar===void 0&&(Ar=15);Q(fr,Ar);)fr=fr.expression;return fr}e.skipOuterExpressions=H;function w(fr){return H(fr,6)}e.skipAssertions=w;function d(fr){return e.setStartsOnNewLine(fr,!0)}e.startOnNewLine=d;function B(fr){var Ar=e.getOriginalNode(fr,e.isSourceFile),de=Ar&&Ar.emitNode;return de&&de.externalHelpersModuleName}e.getExternalHelpersModuleName=B;function T(fr){var Ar=e.getOriginalNode(fr,e.isSourceFile),de=Ar&&Ar.emitNode;return!!de&&(!!de.externalHelpersModuleName||!!de.externalHelpers)}e.hasRecordedExternalHelpers=T;function _(fr,Ar,de,we,qe,Cr,kr){if(we.importHelpers&&e.isEffectiveExternalModule(de,we)){var He=void 0,lr=e.getEmitModuleKind(we);if(lr>=e.ModuleKind.ES2015&&lr<=e.ModuleKind.ESNext||de.impliedNodeFormat===e.ModuleKind.ESNext){var Hr=e.getEmitHelpers(de);if(Hr){for(var Je=[],Sr=0,Yr=Hr;Sr<Yr.length;Sr++){var ot=Yr[Sr];if(!ot.scoped){var _t=ot.importName;_t&&e.pushIfUnique(Je,_t)}}if(e.some(Je)){Je.sort(e.compareStringsCaseSensitive),He=fr.createNamedImports(e.map(Je,function(qn){return e.isFileLevelUniqueName(de,qn)?fr.createImportSpecifier(!1,void 0,fr.createIdentifier(qn)):fr.createImportSpecifier(!1,fr.createIdentifier(qn),Ar.getUnscopedHelperName(qn))}));var kt=e.getOriginalNode(de,e.isSourceFile),Yt=e.getOrCreateEmitNode(kt);Yt.externalHelpers=!0}}}else{var vn=h(fr,de,we,qe,Cr||kr);vn&&(He=fr.createNamespaceImport(vn))}if(He){var Mn=fr.createImportDeclaration(void 0,void 0,fr.createImportClause(!1,void 0,He),fr.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(Mn,67108864),Mn}}}e.createExternalHelpersImportDeclarationIfNeeded=_;function h(fr,Ar,de,we,qe){if(de.importHelpers&&e.isEffectiveExternalModule(Ar,de)){var Cr=B(Ar);if(Cr)return Cr;var kr=e.getEmitModuleKind(de),He=(we||e.getESModuleInterop(de)&&qe)&&kr!==e.ModuleKind.System&&(kr<e.ModuleKind.ES2015||Ar.impliedNodeFormat===e.ModuleKind.CommonJS);if(!He){var lr=e.getEmitHelpers(Ar);if(lr)for(var Hr=0,Je=lr;Hr<Je.length;Hr++){var Sr=Je[Hr];if(!Sr.scoped){He=!0;break}}}if(He){var Yr=e.getOriginalNode(Ar,e.isSourceFile),ot=e.getOrCreateEmitNode(Yr);return ot.externalHelpersModuleName||(ot.externalHelpersModuleName=fr.createUniqueName(e.externalHelpersModuleNameText))}}}e.getOrCreateExternalHelpersModuleNameIfNeeded=h;function R(fr,Ar,de){var we=e.getNamespaceDeclarationNode(Ar);if(we&&!e.isDefaultImport(Ar)&&!e.isExportNamespaceAsDefaultDeclaration(Ar)){var qe=we.name;return e.isGeneratedIdentifier(qe)?qe:fr.createIdentifier(e.getSourceTextOfNodeFromSourceFile(de,qe)||e.idText(qe))}if(Ar.kind===265&&Ar.importClause||Ar.kind===271&&Ar.moduleSpecifier)return fr.getGeneratedNameForNode(Ar)}e.getLocalNameForExternalImport=R;function b(fr,Ar,de,we,qe,Cr){var kr=e.getExternalModuleName(Ar);if(kr&&e.isStringLiteral(kr))return pe(Ar,we,fr,qe,Cr)||G(fr,kr,de)||fr.cloneNode(kr)}e.getExternalModuleNameLiteral=b;function G(fr,Ar,de){var we=de.renamedDependencies&&de.renamedDependencies.get(Ar.text);return we?fr.createStringLiteral(we):void 0}function Y(fr,Ar,de,we){if(!!Ar){if(Ar.moduleName)return fr.createStringLiteral(Ar.moduleName);if(!Ar.isDeclarationFile&&e.outFile(we))return fr.createStringLiteral(e.getExternalModuleNameFromPath(de,Ar.fileName))}}e.tryGetModuleNameFromFile=Y;function pe(fr,Ar,de,we,qe){return Y(de,we.getExternalModuleFileFromDeclaration(fr),Ar,qe)}function A(fr){if(e.isDeclarationBindingElement(fr))return fr.initializer;if(e.isPropertyAssignment(fr)){var Ar=fr.initializer;return e.isAssignmentExpression(Ar,!0)?Ar.right:void 0}if(e.isShorthandPropertyAssignment(fr))return fr.objectAssignmentInitializer;if(e.isAssignmentExpression(fr,!0))return fr.right;if(e.isSpreadElement(fr))return A(fr.expression)}e.getInitializerOfBindingOrAssignmentElement=A;function _e(fr){if(e.isDeclarationBindingElement(fr))return fr.name;if(e.isObjectLiteralElementLike(fr)){switch(fr.kind){case 294:return _e(fr.initializer);case 295:return fr.name;case 296:return _e(fr.expression)}return}return e.isAssignmentExpression(fr,!0)?_e(fr.left):e.isSpreadElement(fr)?_e(fr.expression):fr}e.getTargetOfBindingOrAssignmentElement=_e;function Se(fr){switch(fr.kind){case 163:case 202:return fr.dotDotDotToken;case 224:case 296:return fr}}e.getRestIndicatorOfBindingOrAssignmentElement=Se;function ae(fr){var Ar=D(fr);return e.Debug.assert(!!Ar||e.isSpreadAssignment(fr),"Invalid property name for binding element."),Ar}e.getPropertyNameOfBindingOrAssignmentElement=ae;function D(fr){switch(fr.kind){case 202:if(fr.propertyName){var Ar=fr.propertyName;return e.isPrivateIdentifier(Ar)?e.Debug.failBadSyntaxKind(Ar):e.isComputedPropertyName(Ar)&&be(Ar.expression)?Ar.expression:Ar}break;case 294:if(fr.name){var Ar=fr.name;return e.isPrivateIdentifier(Ar)?e.Debug.failBadSyntaxKind(Ar):e.isComputedPropertyName(Ar)&&be(Ar.expression)?Ar.expression:Ar}break;case 296:return fr.name&&e.isPrivateIdentifier(fr.name)?e.Debug.failBadSyntaxKind(fr.name):fr.name}var de=_e(fr);if(de&&e.isPropertyName(de))return de}e.tryGetPropertyNameOfBindingOrAssignmentElement=D;function be(fr){var Ar=fr.kind;return Ar===10||Ar===8}function ne(fr){switch(fr.kind){case 200:case 201:case 203:return fr.elements;case 204:return fr.properties}}e.getElementsOfBindingOrAssignmentPattern=ne;function J(fr){if(fr)for(var Ar=fr;;){if(e.isIdentifier(Ar)||!Ar.body)return e.isIdentifier(Ar)?Ar:Ar.name;Ar=Ar.body}}e.getJSDocTypeAliasName=J;function le(fr){var Ar=fr.kind;return Ar===163||Ar===165||Ar===166||Ar===167||Ar===168||Ar===170||Ar===171||Ar===172||Ar===175||Ar===212||Ar===213||Ar===225||Ar===236||Ar===255||Ar===256||Ar===257||Ar===258||Ar===259||Ar===260||Ar===264||Ar===265||Ar===270||Ar===271}e.canHaveModifiers=le,e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral);function Te(fr){var Ar=fr.kind;return Ar===104||Ar===110||Ar===95||e.isLiteralExpression(fr)||e.isPrefixUnaryExpression(fr)}e.isLiteralTypeLikeExpression=Te;function Me(fr){return fr===42}function Ke(fr){return fr===41||fr===43||fr===44}function Ae(fr){return Me(fr)||Ke(fr)}function Ge(fr){return fr===39||fr===40}function se(fr){return Ge(fr)||Ae(fr)}function xe(fr){return fr===47||fr===48||fr===49}function Re(fr){return xe(fr)||se(fr)}function ce(fr){return fr===29||fr===32||fr===31||fr===33||fr===102||fr===101}function Ue(fr){return ce(fr)||Re(fr)}function We(fr){return fr===34||fr===36||fr===35||fr===37}function Ne(fr){return We(fr)||Ue(fr)}function ve(fr){return fr===50||fr===51||fr===52}function Ve(fr){return ve(fr)||Ne(fr)}function gr(fr){return fr===55||fr===56}function Er(fr){return gr(fr)||Ve(fr)}function Nr(fr){return fr===60||Er(fr)||e.isAssignmentOperator(fr)}function ur(fr){return Nr(fr)||fr===27}function xr(fr){return ur(fr.kind)}e.isBinaryOperatorToken=xr;var sr;(function(fr){function Ar(Je,Sr,Yr,ot,_t,kt,Yt){var vn=Sr>0?_t[Sr-1]:void 0;return e.Debug.assertEqual(Yr[Sr],Ar),_t[Sr]=Je.onEnter(ot[Sr],vn,Yt),Yr[Sr]=He(Je,Ar),Sr}fr.enter=Ar;function de(Je,Sr,Yr,ot,_t,kt,Yt){e.Debug.assertEqual(Yr[Sr],de),e.Debug.assertIsDefined(Je.onLeft),Yr[Sr]=He(Je,de);var vn=Je.onLeft(ot[Sr].left,_t[Sr],ot[Sr]);return vn?(Hr(Sr,ot,vn),lr(Sr,Yr,ot,_t,vn)):Sr}fr.left=de;function we(Je,Sr,Yr,ot,_t,kt,Yt){return e.Debug.assertEqual(Yr[Sr],we),e.Debug.assertIsDefined(Je.onOperator),Yr[Sr]=He(Je,we),Je.onOperator(ot[Sr].operatorToken,_t[Sr],ot[Sr]),Sr}fr.operator=we;function qe(Je,Sr,Yr,ot,_t,kt,Yt){e.Debug.assertEqual(Yr[Sr],qe),e.Debug.assertIsDefined(Je.onRight),Yr[Sr]=He(Je,qe);var vn=Je.onRight(ot[Sr].right,_t[Sr],ot[Sr]);return vn?(Hr(Sr,ot,vn),lr(Sr,Yr,ot,_t,vn)):Sr}fr.right=qe;function Cr(Je,Sr,Yr,ot,_t,kt,Yt){e.Debug.assertEqual(Yr[Sr],Cr),Yr[Sr]=He(Je,Cr);var vn=Je.onExit(ot[Sr],_t[Sr]);if(Sr>0){if(Sr--,Je.foldState){var Mn=Yr[Sr]===Cr?"right":"left";_t[Sr]=Je.foldState(_t[Sr],vn,Mn)}}else kt.value=vn;return Sr}fr.exit=Cr;function kr(Je,Sr,Yr,ot,_t,kt,Yt){return e.Debug.assertEqual(Yr[Sr],kr),Sr}fr.done=kr;function He(Je,Sr){switch(Sr){case Ar:if(Je.onLeft)return de;case de:if(Je.onOperator)return we;case we:if(Je.onRight)return qe;case qe:return Cr;case Cr:return kr;case kr:return kr;default:e.Debug.fail("Invalid state")}}fr.nextState=He;function lr(Je,Sr,Yr,ot,_t){return Je++,Sr[Je]=Ar,Yr[Je]=_t,ot[Je]=void 0,Je}function Hr(Je,Sr,Yr){if(e.Debug.shouldAssert(2))for(;Je>=0;)e.Debug.assert(Sr[Je]!==Yr,"Circular traversal detected."),Je--}})(sr||(sr={}));var i=function(){function fr(Ar,de,we,qe,Cr,kr){this.onEnter=Ar,this.onLeft=de,this.onOperator=we,this.onRight=qe,this.onExit=Cr,this.foldState=kr}return fr}();function Mr(fr,Ar,de,we,qe,Cr){var kr=new i(fr,Ar,de,we,qe,Cr);return He;function He(lr,Hr){for(var Je={value:void 0},Sr=[sr.enter],Yr=[lr],ot=[void 0],_t=0;Sr[_t]!==sr.done;)_t=Sr[_t](kr,_t,Sr,Yr,ot,Je,Hr);return e.Debug.assertEqual(_t,0),Je.value}}e.createBinaryExpressionTrampoline=Mr})(mr||(mr={}));var mr;(function(e){function n(c,u){return u?e.setTextRangePosEnd(c,u.pos,u.end):c}e.setTextRange=n})(mr||(mr={}));var mr;(function(e){var n;(function(_){_[_.None=0]="None",_[_.Yield=1]="Yield",_[_.Await=2]="Await",_[_.Type=4]="Type",_[_.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",_[_.JSDoc=32]="JSDoc"})(n||(n={}));var c;(function(_){_[_.TryParse=0]="TryParse",_[_.Lookahead=1]="Lookahead",_[_.Reparse=2]="Reparse"})(c||(c={}));var u,g,p,I,V;e.parseBaseNodeFactory={createBaseSourceFileNode:function(_){return new(V||(V=e.objectAllocator.getSourceFileConstructor()))(_,-1,-1)},createBaseIdentifierNode:function(_){return new(p||(p=e.objectAllocator.getIdentifierConstructor()))(_,-1,-1)},createBasePrivateIdentifierNode:function(_){return new(I||(I=e.objectAllocator.getPrivateIdentifierConstructor()))(_,-1,-1)},createBaseTokenNode:function(_){return new(g||(g=e.objectAllocator.getTokenConstructor()))(_,-1,-1)},createBaseNode:function(_){return new(u||(u=e.objectAllocator.getNodeConstructor()))(_,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function L(_,h){return h&&_(h)}function m(_,h,R){if(R){if(h)return h(R);for(var b=0,G=R;b<G.length;b++){var Y=G[b],pe=_(Y);if(pe)return pe}}}function y(_,h){return _.charCodeAt(h+1)===42&&_.charCodeAt(h+2)===42&&_.charCodeAt(h+3)!==47}e.isJSDocLikeText=y;function j(_,h,R){if(!(!_||_.kind<=159))switch(_.kind){case 160:return L(h,_.left)||L(h,_.right);case 162:return L(h,_.name)||L(h,_.constraint)||L(h,_.default)||L(h,_.expression);case 295:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.questionToken)||L(h,_.exclamationToken)||L(h,_.equalsToken)||L(h,_.objectAssignmentInitializer);case 296:return L(h,_.expression);case 163:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.dotDotDotToken)||L(h,_.name)||L(h,_.questionToken)||L(h,_.type)||L(h,_.initializer);case 166:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.questionToken)||L(h,_.exclamationToken)||L(h,_.type)||L(h,_.initializer);case 165:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.questionToken)||L(h,_.type)||L(h,_.initializer);case 294:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.questionToken)||L(h,_.initializer);case 253:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.exclamationToken)||L(h,_.type)||L(h,_.initializer);case 202:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.dotDotDotToken)||L(h,_.propertyName)||L(h,_.name)||L(h,_.initializer);case 178:case 179:case 173:case 174:case 175:return m(h,R,_.decorators)||m(h,R,_.modifiers)||m(h,R,_.typeParameters)||m(h,R,_.parameters)||L(h,_.type);case 168:case 167:case 170:case 171:case 172:case 212:case 255:case 213:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.asteriskToken)||L(h,_.name)||L(h,_.questionToken)||L(h,_.exclamationToken)||m(h,R,_.typeParameters)||m(h,R,_.parameters)||L(h,_.type)||L(h,_.equalsGreaterThanToken)||L(h,_.body);case 169:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.body);case 177:return L(h,_.typeName)||m(h,R,_.typeArguments);case 176:return L(h,_.assertsModifier)||L(h,_.parameterName)||L(h,_.type);case 180:return L(h,_.exprName);case 181:return m(h,R,_.members);case 182:return L(h,_.elementType);case 183:return m(h,R,_.elements);case 186:case 187:return m(h,R,_.types);case 188:return L(h,_.checkType)||L(h,_.extendsType)||L(h,_.trueType)||L(h,_.falseType);case 189:return L(h,_.typeParameter);case 199:return L(h,_.argument)||L(h,_.qualifier)||m(h,R,_.typeArguments);case 190:case 192:return L(h,_.type);case 193:return L(h,_.objectType)||L(h,_.indexType);case 194:return L(h,_.readonlyToken)||L(h,_.typeParameter)||L(h,_.nameType)||L(h,_.questionToken)||L(h,_.type)||m(h,R,_.members);case 195:return L(h,_.literal);case 196:return L(h,_.dotDotDotToken)||L(h,_.name)||L(h,_.questionToken)||L(h,_.type);case 200:case 201:return m(h,R,_.elements);case 203:return m(h,R,_.elements);case 204:return m(h,R,_.properties);case 205:return L(h,_.expression)||L(h,_.questionDotToken)||L(h,_.name);case 206:return L(h,_.expression)||L(h,_.questionDotToken)||L(h,_.argumentExpression);case 207:case 208:return L(h,_.expression)||L(h,_.questionDotToken)||m(h,R,_.typeArguments)||m(h,R,_.arguments);case 209:return L(h,_.tag)||L(h,_.questionDotToken)||m(h,R,_.typeArguments)||L(h,_.template);case 210:return L(h,_.type)||L(h,_.expression);case 211:return L(h,_.expression);case 214:return L(h,_.expression);case 215:return L(h,_.expression);case 216:return L(h,_.expression);case 218:return L(h,_.operand);case 223:return L(h,_.asteriskToken)||L(h,_.expression);case 217:return L(h,_.expression);case 219:return L(h,_.operand);case 220:return L(h,_.left)||L(h,_.operatorToken)||L(h,_.right);case 228:return L(h,_.expression)||L(h,_.type);case 229:return L(h,_.expression);case 230:return L(h,_.name);case 221:return L(h,_.condition)||L(h,_.questionToken)||L(h,_.whenTrue)||L(h,_.colonToken)||L(h,_.whenFalse);case 224:return L(h,_.expression);case 234:case 261:return m(h,R,_.statements);case 303:return m(h,R,_.statements)||L(h,_.endOfFileToken);case 236:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.declarationList);case 254:return m(h,R,_.declarations);case 237:return L(h,_.expression);case 238:return L(h,_.expression)||L(h,_.thenStatement)||L(h,_.elseStatement);case 239:return L(h,_.statement)||L(h,_.expression);case 240:return L(h,_.expression)||L(h,_.statement);case 241:return L(h,_.initializer)||L(h,_.condition)||L(h,_.incrementor)||L(h,_.statement);case 242:return L(h,_.initializer)||L(h,_.expression)||L(h,_.statement);case 243:return L(h,_.awaitModifier)||L(h,_.initializer)||L(h,_.expression)||L(h,_.statement);case 244:case 245:return L(h,_.label);case 246:return L(h,_.expression);case 247:return L(h,_.expression)||L(h,_.statement);case 248:return L(h,_.expression)||L(h,_.caseBlock);case 262:return m(h,R,_.clauses);case 288:return L(h,_.expression)||m(h,R,_.statements);case 289:return m(h,R,_.statements);case 249:return L(h,_.label)||L(h,_.statement);case 250:return L(h,_.expression);case 251:return L(h,_.tryBlock)||L(h,_.catchClause)||L(h,_.finallyBlock);case 291:return L(h,_.variableDeclaration)||L(h,_.block);case 164:return L(h,_.expression);case 256:case 225:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||m(h,R,_.typeParameters)||m(h,R,_.heritageClauses)||m(h,R,_.members);case 257:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||m(h,R,_.typeParameters)||m(h,R,_.heritageClauses)||m(h,R,_.members);case 258:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||m(h,R,_.typeParameters)||L(h,_.type);case 259:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||m(h,R,_.members);case 297:return L(h,_.name)||L(h,_.initializer);case 260:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.body);case 264:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.name)||L(h,_.moduleReference);case 265:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.importClause)||L(h,_.moduleSpecifier)||L(h,_.assertClause);case 266:return L(h,_.name)||L(h,_.namedBindings);case 292:return m(h,R,_.elements);case 293:return L(h,_.name)||L(h,_.value);case 263:return L(h,_.name);case 267:return L(h,_.name);case 273:return L(h,_.name);case 268:case 272:return m(h,R,_.elements);case 271:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.exportClause)||L(h,_.moduleSpecifier)||L(h,_.assertClause);case 269:case 274:return L(h,_.propertyName)||L(h,_.name);case 270:return m(h,R,_.decorators)||m(h,R,_.modifiers)||L(h,_.expression);case 222:return L(h,_.head)||m(h,R,_.templateSpans);case 232:return L(h,_.expression)||L(h,_.literal);case 197:return L(h,_.head)||m(h,R,_.templateSpans);case 198:return L(h,_.type)||L(h,_.literal);case 161:return L(h,_.expression);case 290:return m(h,R,_.types);case 227:return L(h,_.expression)||m(h,R,_.typeArguments);case 276:return L(h,_.expression);case 275:return m(h,R,_.decorators);case 349:return m(h,R,_.elements);case 277:return L(h,_.openingElement)||m(h,R,_.children)||L(h,_.closingElement);case 281:return L(h,_.openingFragment)||m(h,R,_.children)||L(h,_.closingFragment);case 278:case 279:return L(h,_.tagName)||m(h,R,_.typeArguments)||L(h,_.attributes);case 285:return m(h,R,_.properties);case 284:return L(h,_.name)||L(h,_.initializer);case 286:return L(h,_.expression);case 287:return L(h,_.dotDotDotToken)||L(h,_.expression);case 280:return L(h,_.tagName);case 184:case 185:case 307:case 313:case 312:case 314:case 316:return L(h,_.type);case 315:return m(h,R,_.parameters)||L(h,_.type);case 318:return(typeof _.comment=="string"?void 0:m(h,R,_.comment))||m(h,R,_.tags);case 344:return L(h,_.tagName)||L(h,_.name)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 308:return L(h,_.name);case 309:return L(h,_.left)||L(h,_.right);case 338:case 345:return L(h,_.tagName)||(_.isNameFirst?L(h,_.name)||L(h,_.typeExpression)||(typeof _.comment=="string"?void 0:m(h,R,_.comment)):L(h,_.typeExpression)||L(h,_.name)||(typeof _.comment=="string"?void 0:m(h,R,_.comment)));case 328:return L(h,_.tagName)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 327:return L(h,_.tagName)||L(h,_.class)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 326:return L(h,_.tagName)||L(h,_.class)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 342:return L(h,_.tagName)||L(h,_.constraint)||m(h,R,_.typeParameters)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 343:return L(h,_.tagName)||(_.typeExpression&&_.typeExpression.kind===307?L(h,_.typeExpression)||L(h,_.fullName)||(typeof _.comment=="string"?void 0:m(h,R,_.comment)):L(h,_.fullName)||L(h,_.typeExpression)||(typeof _.comment=="string"?void 0:m(h,R,_.comment)));case 336:return L(h,_.tagName)||L(h,_.fullName)||L(h,_.typeExpression)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 339:case 341:case 340:case 337:return L(h,_.tagName)||L(h,_.typeExpression)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 321:return e.forEach(_.typeParameters,h)||e.forEach(_.parameters,h)||L(h,_.type);case 322:case 323:case 324:return L(h,_.name);case 320:return e.forEach(_.jsDocPropertyTags,h);case 325:case 330:case 331:case 332:case 333:case 334:case 329:return L(h,_.tagName)||(typeof _.comment=="string"?void 0:m(h,R,_.comment));case 348:return L(h,_.expression)}}e.forEachChild=j;function te(_,h,R){for(var b=E(_),G=[];G.length<b.length;)G.push(_);for(;b.length!==0;){var Y=b.pop(),pe=G.pop();if(e.isArray(Y)){if(R){var A=R(Y,pe);if(A){if(A==="skip")continue;return A}}for(var _e=Y.length-1;_e>=0;--_e)b.push(Y[_e]),G.push(pe)}else{var A=h(Y,pe);if(A){if(A==="skip")continue;return A}if(Y.kind>=160)for(var Se=0,ae=E(Y);Se<ae.length;Se++){var D=ae[Se];b.push(D),G.push(Y)}}}}e.forEachChildRecursively=te;function E(_){var h=[];return j(_,R,R),h;function R(b){h.unshift(b)}}function F(_,h,R,b,G){b===void 0&&(b=!1),e.tracing===null||e.tracing===void 0||e.tracing.push("parse","createSourceFile",{path:_},!0),e.performance.mark("beforeParse");var Y;return e.perfLogger.logStartParseSourceFile(_),R===100?Y=x.parseSourceFile(_,h,R,void 0,b,6):Y=x.parseSourceFile(_,h,R,void 0,b,G),e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Y}e.createSourceFile=F;function $(_,h){return x.parseIsolatedEntityName(_,h)}e.parseIsolatedEntityName=$;function C(_,h){return x.parseJsonText(_,h)}e.parseJsonText=C;function K(_){return _.externalModuleIndicator!==void 0}e.isExternalModule=K;function k(_,h,R,b){b===void 0&&(b=!1);var G=ie.updateSourceFile(_,h,R,b);return G.flags|=_.flags&3145728,G}e.updateSourceFile=k;function X(_,h,R){var b=x.JSDocParser.parseIsolatedJSDocComment(_,h,R);return b&&b.jsDoc&&x.fixupParentReferences(b.jsDoc),b}e.parseIsolatedJSDocComment=X;function O(_,h,R){return x.JSDocParser.parseJSDocTypeExpressionForTests(_,h,R)}e.parseJSDocTypeExpressionForTests=O;var x;(function(_){var h=e.createScanner(99,!0),R=20480,b,G,Y,pe,A;function _e(Ie){return se++,Ie}var Se={createBaseSourceFileNode:function(Ie){return _e(new A(Ie,0,0))},createBaseIdentifierNode:function(Ie){return _e(new Y(Ie,0,0))},createBasePrivateIdentifierNode:function(Ie){return _e(new pe(Ie,0,0))},createBaseTokenNode:function(Ie){return _e(new G(Ie,0,0))},createBaseNode:function(Ie){return _e(new b(Ie,0,0))}},ae=e.createNodeFactory(11,Se),D,be,ne,J,le,Te,Me,Ke,Ae,Ge,se,xe,Re,ce,Ue,We,Ne,ve=!0,Ve=!1;function gr(Ie,br,Ur,lt,xt,Zt){var Rn;if(xt===void 0&&(xt=!1),Zt=e.ensureScriptKind(Ie,Zt),Zt===6){var $n=Nr(Ie,br,Ur,lt,xt);return e.convertToObjectWorker($n,(Rn=$n.statements[0])===null||Rn===void 0?void 0:Rn.expression,$n.parseDiagnostics,!1,void 0,void 0),$n.referencedFiles=e.emptyArray,$n.typeReferenceDirectives=e.emptyArray,$n.libReferenceDirectives=e.emptyArray,$n.amdDependencies=e.emptyArray,$n.hasNoDefaultLib=!1,$n.pragmas=e.emptyMap,$n}ur(Ie,br,Ur,lt,Zt);var La=sr(Ur,xt,Zt);return xr(),La}_.parseSourceFile=gr;function Er(Ie,br){ur("",Ie,br,void 0,1),Xe();var Ur=jo(!0),lt=z()===1&&!Me.length;return xr(),lt?Ur:void 0}_.parseIsolatedEntityName=Er;function Nr(Ie,br,Ur,lt,xt){Ur===void 0&&(Ur=2),xt===void 0&&(xt=!1),ur(Ie,br,Ur,lt,6),be=Ne,Xe();var Zt=$e(),Rn,$n;if(z()===1)Rn=Et([],Zt,Zt),$n=wn();else{for(var La=void 0;z()!==1;){var Da=void 0;switch(z()){case 22:Da=wf();break;case 110:case 95:case 104:Da=wn();break;case 40:vt(function(){return Xe()===8&&Xe()!==58})?Da=Nf():Da=us();break;case 8:case 10:if(vt(function(){return Xe()!==58})){Da=Vi();break}default:Da=us();break}La&&e.isArray(La)?La.push(Da):La?La=[La,Da]:(La=Da,z()!==1&&rr(e.Diagnostics.Unexpected_token))}var zi=e.isArray(La)?et(ae.createArrayLiteralExpression(La),Zt):e.Debug.checkDefined(La),Qo=ae.createExpressionStatement(zi);et(Qo,Zt),Rn=Et([Qo],Zt),$n=Kt(1,e.Diagnostics.Unexpected_token)}var oo=we(Ie,2,6,!1,Rn,$n,be);xt&&de(oo),oo.nodeCount=se,oo.identifierCount=ce,oo.identifiers=xe,oo.parseDiagnostics=e.attachFileToDiagnostics(Me,oo),Ke&&(oo.jsDocDiagnostics=e.attachFileToDiagnostics(Ke,oo));var Bo=oo;return xr(),Bo}_.parseJsonText=Nr;function ur(Ie,br,Ur,lt,xt){switch(b=e.objectAllocator.getNodeConstructor(),G=e.objectAllocator.getTokenConstructor(),Y=e.objectAllocator.getIdentifierConstructor(),pe=e.objectAllocator.getPrivateIdentifierConstructor(),A=e.objectAllocator.getSourceFileConstructor(),D=e.normalizePath(Ie),ne=br,J=Ur,Ae=lt,le=xt,Te=e.getLanguageVariant(xt),Me=[],Ue=0,xe=new e.Map,Re=new e.Map,ce=0,se=0,be=0,ve=!0,le){case 1:case 2:Ne=131072;break;case 6:Ne=33685504;break;default:Ne=0;break}Ve=!1,h.setText(ne),h.setOnError(cr),h.setScriptTarget(J),h.setLanguageVariant(Te)}function xr(){h.clearCommentDirectives(),h.setText(""),h.setOnError(void 0),ne=void 0,J=void 0,Ae=void 0,le=void 0,Te=void 0,be=0,Me=void 0,Ke=void 0,Ue=0,xe=void 0,We=void 0,ve=!0}function sr(Ie,br,Ur){var lt=Z(D);lt&&(Ne|=8388608),be=Ne,Xe();var xt=Bn(0,Ha);e.Debug.assert(z()===1);var Zt=fr(wn()),Rn=we(D,Ie,Ur,lt,xt,Zt,be);return re(Rn,ne),q(Rn,$n),Rn.commentDirectives=h.getCommentDirectives(),Rn.nodeCount=se,Rn.identifierCount=ce,Rn.identifiers=xe,Rn.parseDiagnostics=e.attachFileToDiagnostics(Me,Rn),Ke&&(Rn.jsDocDiagnostics=e.attachFileToDiagnostics(Ke,Rn)),br&&de(Rn),Rn;function $n(La,Da,zi){Me.push(e.createDetachedDiagnostic(D,La,Da,zi))}}function i(Ie,br){return br?fr(Ie):Ie}var Mr=!1;function fr(Ie){e.Debug.assert(!Ie.jsDoc);var br=e.mapDefined(e.getJSDocCommentRanges(Ie,ne),function(Ur){return g_.parseJSDocComment(Ie,Ur.pos,Ur.end-Ur.pos)});return br.length&&(Ie.jsDoc=br),Mr&&(Mr=!1,Ie.flags|=134217728),Ie}function Ar(Ie){var br=Ae,Ur=ie.createSyntaxCursor(Ie);Ae={currentNode:Bo};var lt=[],xt=Me;Me=[];for(var Zt=0,Rn=Qo(Ie.statements,0),$n=function(){var vs=Ie.statements[Zt],sl=Ie.statements[Rn];e.addRange(lt,Ie.statements,Zt,Rn),Zt=oo(Ie.statements,Rn);var Os=e.findIndex(xt,function(Ps){return Ps.start>=vs.pos}),su=Os>=0?e.findIndex(xt,function(Ps){return Ps.start>=sl.pos},Os):-1;Os>=0&&e.addRange(Me,xt,Os,su>=0?su:void 0),Lt(function(){var Ps=Ne;for(Ne|=32768,h.setTextPos(sl.pos),Xe();z()!==1;){var Ku=h.getStartPos(),bd=Fe(0,Ha);if(lt.push(bd),Ku===h.getStartPos()&&Xe(),Zt>=0){var Fs=Ie.statements[Zt];if(bd.end===Fs.pos)break;bd.end>Fs.pos&&(Zt=oo(Ie.statements,Zt+1))}}Ne=Ps},2),Rn=Zt>=0?Qo(Ie.statements,Zt):-1};Rn!==-1;)$n();if(Zt>=0){var La=Ie.statements[Zt];e.addRange(lt,Ie.statements,Zt);var Da=e.findIndex(xt,function(vs){return vs.start>=La.pos});Da>=0&&e.addRange(Me,xt,Da)}return Ae=br,ae.updateSourceFile(Ie,e.setTextRange(ae.createNodeArray(lt),Ie.statements));function zi(vs){return!(vs.flags&32768)&&!!(vs.transformFlags&16777216)}function Qo(vs,sl){for(var Os=sl;Os<vs.length;Os++)if(zi(vs[Os]))return Os;return-1}function oo(vs,sl){for(var Os=sl;Os<vs.length;Os++)if(!zi(vs[Os]))return Os;return-1}function Bo(vs){var sl=Ur.currentNode(vs);return ve&&sl&&zi(sl)&&(sl.intersectsChange=!0),sl}}function de(Ie){e.setParentRecursive(Ie,!0)}_.fixupParentReferences=de;function we(Ie,br,Ur,lt,xt,Zt,Rn){var $n=ae.createSourceFile(xt,Zt,Rn);return e.setTextRangePosWidth($n,0,ne.length),ou($n),!lt&&K($n)&&$n.transformFlags&16777216&&($n=Ar($n)),$n.text=ne,$n.bindDiagnostics=[],$n.bindSuggestionDiagnostics=void 0,$n.languageVersion=br,$n.fileName=Ie,$n.languageVariant=e.getLanguageVariant(Ur),$n.isDeclarationFile=lt,$n.scriptKind=Ur,$n}function qe(Ie,br){Ie?Ne|=br:Ne&=~br}function Cr(Ie){qe(Ie,4096)}function kr(Ie){qe(Ie,8192)}function He(Ie){qe(Ie,16384)}function lr(Ie){qe(Ie,32768)}function Hr(Ie,br){var Ur=Ie&Ne;if(Ur){qe(!1,Ur);var lt=br();return qe(!0,Ur),lt}return br()}function Je(Ie,br){var Ur=Ie&~Ne;if(Ur){qe(!0,Ur);var lt=br();return qe(!1,Ur),lt}return br()}function Sr(Ie){return Hr(4096,Ie)}function Yr(Ie){return Je(4096,Ie)}function ot(Ie){return Je(8192,Ie)}function _t(Ie){return Je(16384,Ie)}function kt(Ie){return Je(32768,Ie)}function Yt(Ie){return Hr(32768,Ie)}function vn(Ie){return Je(40960,Ie)}function Mn(Ie){return Hr(40960,Ie)}function qn(Ie){return(Ne&Ie)!==0}function nr(){return qn(8192)}function Zr(){return qn(4096)}function ir(){return qn(16384)}function ge(){return qn(32768)}function rr(Ie,br){Lr(h.getTokenPos(),h.getTextPos(),Ie,br)}function pr(Ie,br,Ur,lt){var xt=e.lastOrUndefined(Me);(!xt||Ie!==xt.start)&&Me.push(e.createDetachedDiagnostic(D,Ie,br,Ur,lt)),Ve=!0}function Lr(Ie,br,Ur,lt){pr(Ie,br-Ie,Ur,lt)}function Ce(Ie,br,Ur){Lr(Ie.pos,Ie.end,br,Ur)}function cr(Ie,br){pr(h.getTextPos(),br,Ie)}function $e(){return h.getStartPos()}function De(){return h.hasPrecedingJSDocComment()}function z(){return Ge}function ke(){return Ge=h.scan()}function dr(Ie){return Xe(),Ie()}function Xe(){return e.isKeyword(Ge)&&(h.hasUnicodeEscape()||h.hasExtendedUnicodeEscape())&&Lr(h.getTokenPos(),h.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),ke()}function Qe(){return Ge=h.scanJsDocToken()}function Ir(){return Ge=h.reScanGreaterToken()}function Jr(){return Ge=h.reScanSlashToken()}function Or(Ie){return Ge=h.reScanTemplateToken(Ie)}function Be(){return Ge=h.reScanTemplateHeadOrNoSubstitutionTemplate()}function yr(){return Ge=h.reScanLessThanToken()}function Rr(){return Ge=h.reScanHashToken()}function zr(){return Ge=h.scanJsxIdentifier()}function ut(){return Ge=h.scanJsxToken()}function mt(){return Ge=h.scanJsxAttributeValue()}function Lt(Ie,br){var Ur=Ge,lt=Me.length,xt=Ve,Zt=Ne,Rn=br!==0?h.lookAhead(Ie):h.tryScan(Ie);return e.Debug.assert(Zt===Ne),(!Rn||br!==0)&&(Ge=Ur,br!==2&&(Me.length=lt),Ve=xt),Rn}function vt(Ie){return Lt(Ie,1)}function pt(Ie){return Lt(Ie,0)}function Nt(){return z()===79?!0:z()>116}function Xt(){return z()===79?!0:z()===125&&nr()||z()===132&&ge()?!1:z()>116}function st(Ie,br,Ur){return Ur===void 0&&(Ur=!0),z()===Ie?(Ur&&Xe(),!0):(br?rr(br):rr(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}var $t=Object.keys(e.textToKeywordObj).filter(function(Ie){return Ie.length>2});function Pn(Ie){var br;if(e.isTaggedTemplateExpression(Ie)){Lr(e.skipTrivia(ne,Ie.template.pos),Ie.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);return}var Ur=e.isIdentifier(Ie)?e.idText(Ie):void 0;if(!Ur||!e.isIdentifierText(Ur,J)){rr(e.Diagnostics._0_expected,e.tokenToString(26));return}var lt=e.skipTrivia(ne,Ie.pos);switch(Ur){case"const":case"let":case"var":Lr(lt,Ie.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Ea(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);return;case"is":Lr(lt,h.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Ea(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);return;case"type":Ea(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63);return}var xt=(br=e.getSpellingSuggestion(Ur,$t,function(Zt){return Zt}))!==null&&br!==void 0?br:ia(Ur);if(xt){Lr(lt,Ie.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,xt);return}z()!==0&&Lr(lt,Ie.end,e.Diagnostics.Unexpected_keyword_or_identifier)}function Ea(Ie,br,Ur){z()===Ur?rr(br):rr(Ie,h.getTokenValue())}function ia(Ie){for(var br=0,Ur=$t;br<Ur.length;br++){var lt=Ur[br];if(Ie.length>lt.length+2&&e.startsWith(Ie,lt))return"".concat(lt," ").concat(Ie.slice(lt.length))}}function pa(Ie,br,Ur){if(z()===59&&!h.hasPrecedingLineBreak()){rr(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(z()===20){rr(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),Xe();return}if(br&&!ft()){Ur?rr(e.Diagnostics._0_expected,e.tokenToString(26)):rr(e.Diagnostics.Expected_for_property_initializer);return}if(!Ct()){if(Ur){z()===18&&rr(e.Diagnostics._0_expected,e.tokenToString(26));return}Pn(Ie)}}function Gn(Ie){return z()===Ie?(Qe(),!0):(rr(e.Diagnostics._0_expected,e.tokenToString(Ie)),!1)}function nn(Ie){return z()===Ie?(Xe(),!0):!1}function bt(Ie){if(z()===Ie)return wn()}function Ut(Ie){if(z()===Ie)return ra()}function Kt(Ie,br,Ur){return bt(Ie)||hn(Ie,!1,br||e.Diagnostics._0_expected,Ur||e.tokenToString(Ie))}function bn(Ie){return Ut(Ie)||hn(Ie,!1,e.Diagnostics._0_expected,e.tokenToString(Ie))}function wn(){var Ie=$e(),br=z();return Xe(),et(ae.createToken(br),Ie)}function ra(){var Ie=$e(),br=z();return Qe(),et(ae.createToken(br),Ie)}function ft(){return z()===26?!0:z()===19||z()===1||h.hasPrecedingLineBreak()}function Ct(){return ft()?(z()===26&&Xe(),!0):!1}function Pt(){return Ct()||st(26)}function Et(Ie,br,Ur,lt){var xt=ae.createNodeArray(Ie,lt);return e.setTextRangePosEnd(xt,br,Ur!=null?Ur:h.getStartPos()),xt}function et(Ie,br,Ur){return e.setTextRangePosEnd(Ie,br,Ur!=null?Ur:h.getStartPos()),Ne&&(Ie.flags|=Ne),Ve&&(Ve=!1,Ie.flags|=65536),Ie}function hn(Ie,br,Ur,lt){br?pr(h.getStartPos(),0,Ur,lt):Ur&&rr(Ur,lt);var xt=$e(),Zt=Ie===79?ae.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(Ie)?ae.createTemplateLiteralLikeNode(Ie,"","",void 0):Ie===8?ae.createNumericLiteral("",void 0):Ie===10?ae.createStringLiteral("",void 0):Ie===275?ae.createMissingDeclaration():ae.createToken(Ie);return et(Zt,xt)}function Qn(Ie){var br=xe.get(Ie);return br===void 0&&xe.set(Ie,br=Ie),br}function Ra(Ie,br,Ur){if(Ie){ce++;var lt=$e(),xt=z(),Zt=Qn(h.getTokenValue());return ke(),et(ae.createIdentifier(Zt,void 0,xt),lt)}if(z()===80)return rr(Ur||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ra(!0);if(z()===0&&h.tryScan(function(){return h.reScanInvalidIdentifier()===79}))return Ra(!0);ce++;var Rn=z()===1,$n=h.isReservedWord(),La=h.getTokenText(),Da=$n?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return hn(79,Rn,br||Da,La)}function Ki(Ie){return Ra(Nt(),void 0,Ie)}function di(Ie,br){return Ra(Xt(),Ie,br)}function ya(Ie){return Ra(e.tokenIsIdentifierOrKeyword(z()),Ie)}function $a(){return e.tokenIsIdentifierOrKeyword(z())||z()===10||z()===8}function ao(){return e.tokenIsIdentifierOrKeyword(z())||z()===10}function ei(Ie){if(z()===10||z()===8){var br=Vi();return br.text=Qn(br.text),br}return Ie&&z()===22?eo():z()===80?Yi():ya()}function Fi(){return ei(!0)}function eo(){var Ie=$e();st(22);var br=Sr(qs);return st(23),et(ae.createComputedPropertyName(br),Ie)}function Wo(Ie){var br=Re.get(Ie);return br===void 0&&Re.set(Ie,br=Ie),br}function Yi(){var Ie=$e(),br=ae.createPrivateIdentifier(Wo(h.getTokenText()));return Xe(),et(br,Ie)}function Ni(Ie){return z()===Ie&&pt(lo)}function Eo(){return Xe(),h.hasPrecedingLineBreak()?!1:Do()}function lo(){switch(z()){case 85:return Xe()===92;case 93:return Xe(),z()===88?vt(Pa):z()===151?vt(ts):So();case 88:return Pa();case 124:case 136:case 148:return Xe(),Do();default:return Eo()}}function So(){return z()!==41&&z()!==127&&z()!==18&&Do()}function ts(){return Xe(),So()}function ja(){return e.isModifierKind(z())&&pt(lo)}function Do(){return z()===22||z()===18||z()===41||z()===25||$a()}function Pa(){return Xe(),z()===84||z()===98||z()===118||z()===126&&vt(dc)||z()===131&&vt(md)}function Ti(Ie,br){var Ur=Gr(Ie);if(Ur)return!0;switch(Ie){case 0:case 1:case 3:return!(z()===26&&br)&&Ol();case 2:return z()===82||z()===88;case 4:return vt(Fr);case 5:return vt(Uf)||z()===26&&!br;case 6:return z()===22||$a();case 12:switch(z()){case 22:case 41:case 25:case 24:return!0;default:return $a()}case 18:return $a();case 9:return z()===22||z()===25||$a();case 24:return ao();case 7:return z()===18?vt(mo):br?Xt()&&!Po():Gd()&&!Po();case 8:return Vu();case 10:return z()===27||z()===25||Vu();case 19:return Xt();case 15:switch(z()){case 27:case 24:return!0}case 11:return z()===25||Ll();case 16:return bs(!1);case 17:return bs(!0);case 20:case 21:return z()===27||Ci();case 22:return ep();case 23:return e.tokenIsIdentifierOrKeyword(z());case 13:return e.tokenIsIdentifierOrKeyword(z())||z()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function mo(){if(e.Debug.assert(z()===18),Xe()===19){var Ie=Xe();return Ie===27||Ie===18||Ie===94||Ie===117}return!0}function No(){return Xe(),Xt()}function ko(){return Xe(),e.tokenIsIdentifierOrKeyword(z())}function Oo(){return Xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(z())}function Po(){return z()===117||z()===94?vt(Ss):!1}function Ss(){return Xe(),Ll()}function Ds(){return Xe(),Ci()}function vr(Ie){if(z()===1)return!0;switch(Ie){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return z()===19;case 3:return z()===19||z()===82||z()===88;case 7:return z()===18||z()===94||z()===117;case 8:return gt();case 19:return z()===31||z()===20||z()===18||z()===94||z()===117;case 11:return z()===21||z()===26;case 15:case 21:case 10:return z()===23;case 17:case 16:case 18:return z()===21||z()===23;case 20:return z()!==27;case 22:return z()===18||z()===19;case 13:return z()===31||z()===43;case 14:return z()===29&&vt(tu);default:return!1}}function gt(){return!!(ft()||Jd(z())||z()===38)}function tn(){for(var Ie=0;Ie<25;Ie++)if(Ue&1<<Ie&&(Ti(Ie,!0)||vr(Ie)))return!0;return!1}function Bn(Ie,br){var Ur=Ue;Ue|=1<<Ie;for(var lt=[],xt=$e();!vr(Ie);){if(Ti(Ie,!1)){lt.push(Fe(Ie,br));continue}if(va(Ie))break}return Ue=Ur,Et(lt,xt)}function Fe(Ie,br){var Ur=Gr(Ie);return Ur?ht(Ur):br()}function Gr(Ie){if(!(!Ae||!ye(Ie)||Ve)){var br=Ae.currentNode(h.getStartPos());if(!(e.nodeIsMissing(br)||br.intersectsChange||e.containsParseError(br))){var Ur=br.flags&25358336;if(Ur===Ne&&!!oe(br,Ie))return br.jsDocCache&&(br.jsDocCache=void 0),br}}}function ht(Ie){return h.setTextPos(Ie.end),Xe(),Ie}function ye(Ie){switch(Ie){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function oe(Ie,br){switch(br){case 5:return Pe(Ie);case 2:return Ye(Ie);case 0:case 1:case 3:return Tr(Ie);case 6:return tt(Ie);case 4:return Mt(Ie);case 8:return Wt(Ie);case 17:case 16:return Ln(Ie)}return!1}function Pe(Ie){if(Ie)switch(Ie.kind){case 170:case 175:case 171:case 172:case 166:case 233:return!0;case 168:var br=Ie,Ur=br.name.kind===79&&br.name.originalKeywordKind===134;return!Ur}return!1}function Ye(Ie){if(Ie)switch(Ie.kind){case 288:case 289:return!0}return!1}function Tr(Ie){if(Ie)switch(Ie.kind){case 255:case 236:case 234:case 238:case 237:case 250:case 246:case 248:case 245:case 244:case 242:case 243:case 241:case 240:case 247:case 235:case 251:case 249:case 239:case 252:case 265:case 264:case 271:case 270:case 260:case 256:case 257:case 259:case 258:return!0}return!1}function tt(Ie){return Ie.kind===297}function Mt(Ie){if(Ie)switch(Ie.kind){case 174:case 167:case 175:case 165:case 173:return!0}return!1}function Wt(Ie){if(Ie.kind!==253)return!1;var br=Ie;return br.initializer===void 0}function Ln(Ie){if(Ie.kind!==163)return!1;var br=Ie;return br.initializer===void 0}function va(Ie){return ti(Ie),tn()?!0:(Xe(),!1)}function ti(Ie){switch(Ie){case 0:return z()===88?rr(e.Diagnostics._0_expected,e.tokenToString(93)):rr(e.Diagnostics.Declaration_or_statement_expected);case 1:return rr(e.Diagnostics.Declaration_or_statement_expected);case 2:return rr(e.Diagnostics.case_or_default_expected);case 3:return rr(e.Diagnostics.Statement_expected);case 18:case 4:return rr(e.Diagnostics.Property_or_signature_expected);case 5:return rr(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return rr(e.Diagnostics.Enum_member_expected);case 7:return rr(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(z())?rr(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(z())):rr(e.Diagnostics.Variable_declaration_expected);case 9:return rr(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return rr(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return rr(e.Diagnostics.Argument_expression_expected);case 12:return rr(e.Diagnostics.Property_assignment_expected);case 15:return rr(e.Diagnostics.Expression_or_comma_expected);case 17:return rr(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(z())?rr(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(z())):rr(e.Diagnostics.Parameter_declaration_expected);case 19:return rr(e.Diagnostics.Type_parameter_declaration_expected);case 20:return rr(e.Diagnostics.Type_argument_expected);case 21:return rr(e.Diagnostics.Type_expected);case 22:return rr(e.Diagnostics.Unexpected_token_expected);case 23:return rr(e.Diagnostics.Identifier_expected);case 13:return rr(e.Diagnostics.Identifier_expected);case 14:return rr(e.Diagnostics.Identifier_expected);default:return[void 0]}}function ii(Ie,br,Ur){var lt=Ue;Ue|=1<<Ie;for(var xt=[],Zt=$e(),Rn=-1;;){if(Ti(Ie,!1)){var $n=h.getStartPos();if(xt.push(Fe(Ie,br)),Rn=h.getTokenPos(),nn(27))continue;if(Rn=-1,vr(Ie))break;st(27,Si(Ie)),Ur&&z()===26&&!h.hasPrecedingLineBreak()&&Xe(),$n===h.getStartPos()&&Xe();continue}if(vr(Ie)||va(Ie))break}return Ue=lt,Et(xt,Zt,void 0,Rn>=0)}function Si(Ie){return Ie===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Oi(){var Ie=Et([],$e());return Ie.isMissingList=!0,Ie}function _s(Ie){return!!Ie.isMissingList}function os(Ie,br,Ur,lt){if(st(Ur)){var xt=ii(Ie,br);return st(lt),xt}return Oi()}function jo(Ie,br){for(var Ur=$e(),lt=Ie?ya(br):di(br),xt=$e();nn(24);){if(z()===29){lt.jsdocDotPos=xt;break}xt=$e(),lt=et(ae.createQualifiedName(lt,Wn(Ie,!1)),Ur)}return lt}function At(Ie,br){return et(ae.createQualifiedName(Ie,br),Ie.pos)}function Wn(Ie,br){if(h.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(z())){var Ur=vt(ff);if(Ur)return hn(79,!0,e.Diagnostics.Identifier_expected)}if(z()===80){var lt=Yi();return br?lt:hn(79,!0,e.Diagnostics.Identifier_expected)}return Ie?ya():di()}function sa(Ie){var br=$e(),Ur=[],lt;do lt=Mi(Ie),Ur.push(lt);while(lt.literal.kind===16);return Et(Ur,br)}function oi(Ie){var br=$e();return et(ae.createTemplateExpression(Ro(Ie),sa(Ie)),br)}function vi(){var Ie=$e();return et(ae.createTemplateLiteralType(Ro(!1),Ui()),Ie)}function Ui(){var Ie=$e(),br=[],Ur;do Ur=Ca(),br.push(Ur);while(Ur.literal.kind===16);return Et(br,Ie)}function Ca(){var Ie=$e();return et(ae.createTemplateLiteralTypeSpan(cs(),gi(!1)),Ie)}function gi(Ie){return z()===19?(Or(Ie),Yo()):Kt(17,e.Diagnostics._0_expected,e.tokenToString(19))}function Mi(Ie){var br=$e();return et(ae.createTemplateSpan(Sr(qs),gi(Ie)),br)}function Vi(){return me(z())}function Ro(Ie){Ie&&Be();var br=me(z());return e.Debug.assert(br.kind===15,"Template head has wrong token kind"),br}function Yo(){var Ie=me(z());return e.Debug.assert(Ie.kind===16||Ie.kind===17,"Template fragment has wrong token kind"),Ie}function ns(Ie){var br=Ie===14||Ie===17,Ur=h.getTokenText();return Ur.substring(1,Ur.length-(h.isUnterminated()?0:br?1:2))}function me(Ie){var br=$e(),Ur=e.isTemplateLiteralKind(Ie)?ae.createTemplateLiteralLikeNode(Ie,h.getTokenValue(),ns(Ie),h.getTokenFlags()&2048):Ie===8?ae.createNumericLiteral(h.getTokenValue(),h.getNumericLiteralFlags()):Ie===10?ae.createStringLiteral(h.getTokenValue(),void 0,h.hasExtendedUnicodeEscape()):e.isLiteralKind(Ie)?ae.createLiteralLikeNode(Ie,h.getTokenValue()):e.Debug.fail();return h.hasExtendedUnicodeEscape()&&(Ur.hasExtendedUnicodeEscape=!0),h.isUnterminated()&&(Ur.isUnterminated=!0),Xe(),et(Ur,br)}function Pr(){return jo(!0,e.Diagnostics.Type_expected)}function yt(){if(!h.hasPrecedingLineBreak()&&yr()===29)return os(20,cs,29,31)}function Le(){var Ie=$e();return et(ae.createTypeReferenceNode(Pr(),yt()),Ie)}function Xr(Ie){switch(Ie.kind){case 177:return e.nodeIsMissing(Ie.typeName);case 178:case 179:{var br=Ie,Ur=br.parameters,lt=br.type;return _s(Ur)||Xr(lt)}case 190:return Xr(Ie.type);default:return!1}}function an(Ie){return Xe(),et(ae.createTypePredicateNode(void 0,Ie,cs()),Ie.pos)}function Xn(){var Ie=$e();return Xe(),et(ae.createThisTypeNode(),Ie)}function da(){var Ie=$e();return Xe(),et(ae.createJSDocAllType(),Ie)}function bi(){var Ie=$e();return Xe(),et(ae.createJSDocNonNullableType(Ai()),Ie)}function Qa(){var Ie=$e();return Xe(),z()===27||z()===19||z()===21||z()===31||z()===63||z()===51?et(ae.createJSDocUnknownType(),Ie):et(ae.createJSDocNullableType(cs()),Ie)}function go(){var Ie=$e(),br=De();if(vt(hf)){Xe();var Ur=ul(36),lt=io(58,!1);return i(et(ae.createJSDocFunctionType(Ur,lt),Ie),br)}return et(ae.createTypeReferenceNode(ya(),void 0),Ie)}function wr(){var Ie=$e(),br;return(z()===108||z()===103)&&(br=ya(),st(58)),et(ae.createParameterDeclaration(void 0,void 0,void 0,br,void 0,ss(),void 0),Ie)}function ss(){h.setInJSDocType(!0);var Ie=$e();if(nn(141)){var br=ae.createJSDocNamepathType(void 0);e:for(;;)switch(z()){case 19:case 1:case 27:case 5:break e;default:Qe()}return h.setInJSDocType(!1),et(br,Ie)}var Ur=nn(25),lt=Fd();return h.setInJSDocType(!1),Ur&&(lt=et(ae.createJSDocVariadicType(lt),Ie)),z()===63?(Xe(),et(ae.createJSDocOptionalType(lt),Ie)):lt}function al(){var Ie=$e();return st(112),et(ae.createTypeQueryNode(jo(!0)),Ie)}function Sl(){var Ie=$e(),br=di(),Ur,lt;nn(94)&&(Ci()||!Ll()?Ur=cs():lt=Fc());var xt=nn(63)?cs():void 0,Zt=ae.createTypeParameterDeclaration(br,Ur,xt);return Zt.expression=lt,et(Zt,Ie)}function zo(){if(z()===29)return os(19,Sl,29,31)}function bs(Ie){return z()===25||Vu()||e.isModifierKind(z())||z()===59||Ci(!Ie)}function xl(Ie){var br=dl(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(br)===0&&!e.some(Ie)&&e.isModifierKind(z())&&Xe(),br}function ic(){return zc(!0)}function Vl(){return zc(!1)}function zc(Ie){var br=$e(),Ur=De(),lt=Ie?kt(gf):gf();if(z()===108){var xt=ae.createParameterDeclaration(lt,void 0,void 0,Ra(!0),void 0,hc(),void 0);return lt&&Ce(lt[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),i(et(xt,br),Ur)}var Zt=ve;ve=!1;var Rn=Uc(),$n=i(et(ae.createParameterDeclaration(lt,Rn,bt(25),xl(Rn),bt(57),hc(),Va()),br),Ur);return ve=Zt,$n}function io(Ie,br){if(Zl(Ie,br))return Fd()}function Zl(Ie,br){return Ie===38?(st(Ie),!0):nn(58)?!0:br&&z()===38?(rr(e.Diagnostics._0_expected,e.tokenToString(58)),Xe(),!0):!1}function Oc(Ie){var br=nr(),Ur=ge();kr(!!(Ie&1)),lr(!!(Ie&2));var lt=Ie&32?ii(17,wr):ii(16,Ur?ic:Vl);return kr(br),lr(Ur),lt}function ul(Ie){if(!st(20))return Oi();var br=Oc(Ie);return st(21),br}function oc(){nn(27)||Pt()}function sc(Ie){var br=$e(),Ur=De();Ie===174&&st(103);var lt=zo(),xt=ul(4),Zt=io(58,!0);oc();var Rn=Ie===173?ae.createCallSignature(lt,xt,Zt):ae.createConstructSignature(lt,xt,Zt);return i(et(Rn,br),Ur)}function Ia(){return z()===22&&vt(tf)}function tf(){if(Xe(),z()===25||z()===23)return!0;if(e.isModifierKind(z())){if(Xe(),Xt())return!0}else if(Xt())Xe();else return!1;return z()===58||z()===27?!0:z()!==57?!1:(Xe(),z()===58||z()===27||z()===23)}function Rc(Ie,br,Ur,lt){var xt=os(16,Vl,22,23),Zt=hc();oc();var Rn=ae.createIndexSignature(Ur,lt,xt,Zt);return i(et(Rn,Ie),br)}function lc(Ie,br,Ur){var lt=Fi(),xt=bt(57),Zt;if(z()===20||z()===29){var Rn=zo(),$n=ul(4),La=io(58,!0);Zt=ae.createMethodSignature(Ur,lt,xt,Rn,$n,La)}else{var La=hc();Zt=ae.createPropertySignature(Ur,lt,xt,La),z()===63&&(Zt.initializer=Va())}return oc(),i(et(Zt,Ie),br)}function Fr(){if(z()===20||z()===29||z()===136||z()===148)return!0;for(var Ie=!1;e.isModifierKind(z());)Ie=!0,Xe();return z()===22?!0:($a()&&(Ie=!0,Xe()),Ie?z()===20||z()===29||z()===57||z()===58||z()===27||ft():!1)}function rt(){if(z()===20||z()===29)return sc(173);if(z()===103&&vt(Dt))return sc(174);var Ie=$e(),br=De(),Ur=Uc();return Ni(136)?Wu(Ie,br,void 0,Ur,171):Ni(148)?Wu(Ie,br,void 0,Ur,172):Ia()?Rc(Ie,br,void 0,Ur):lc(Ie,br,Ur)}function Dt(){return Xe(),z()===20||z()===29}function zt(){return Xe()===24}function _n(){switch(Xe()){case 20:case 29:case 24:return!0}return!1}function dn(){var Ie=$e();return et(ae.createTypeLiteralNode(On()),Ie)}function On(){var Ie;return st(18)?(Ie=Bn(4,rt),st(19)):Ie=Oi(),Ie}function Jn(){return Xe(),z()===39||z()===40?Xe()===144:(z()===144&&Xe(),z()===22&&No()&&Xe()===101)}function Fa(){var Ie=$e(),br=ya();st(101);var Ur=cs();return et(ae.createTypeParameterDeclaration(br,Ur,void 0),Ie)}function fa(){var Ie=$e();st(18);var br;(z()===144||z()===39||z()===40)&&(br=wn(),br.kind!==144&&st(144)),st(22);var Ur=Fa(),lt=nn(127)?cs():void 0;st(23);var xt;(z()===57||z()===39||z()===40)&&(xt=wn(),xt.kind!==57&&st(57));var Zt=hc();Pt();var Rn=Bn(4,rt);return st(19),et(ae.createMappedTypeNode(br,Ur,lt,xt,Zt,Rn),Ie)}function ba(){var Ie=$e();if(nn(25))return et(ae.createRestTypeNode(cs()),Ie);var br=cs();if(e.isJSDocNullableType(br)&&br.pos===br.type.pos){var Ur=ae.createOptionalTypeNode(br.type);return e.setTextRange(Ur,br),Ur.flags=br.flags,Ur}return br}function Na(){return Xe()===58||z()===57&&Xe()===58}function he(){return z()===25?e.tokenIsIdentifierOrKeyword(Xe())&&Na():e.tokenIsIdentifierOrKeyword(z())&&Na()}function ar(){if(vt(he)){var Ie=$e(),br=De(),Ur=bt(25),lt=ya(),xt=bt(57);st(58);var Zt=ba(),Rn=ae.createNamedTupleMember(Ur,lt,xt,Zt);return i(et(Rn,Ie),br)}return ba()}function hr(){var Ie=$e();return et(ae.createTupleTypeNode(os(21,ar,22,23)),Ie)}function dt(){var Ie=$e();st(20);var br=cs();return st(21),et(ae.createParenthesizedType(br),Ie)}function en(){var Ie;if(z()===126){var br=$e();Xe();var Ur=et(ae.createToken(126),br);Ie=Et([Ur],br)}return Ie}function ta(){var Ie=$e(),br=De(),Ur=en(),lt=nn(103),xt=zo(),Zt=ul(4),Rn=io(38,!1),$n=lt?ae.createConstructorTypeNode(Ur,xt,Zt,Rn):ae.createFunctionTypeNode(xt,Zt,Rn);return lt||($n.modifiers=Ur),i(et($n,Ie),br)}function Un(){var Ie=wn();return z()===24?void 0:Ie}function Ta(Ie){var br=$e();Ie&&Xe();var Ur=z()===110||z()===95||z()===104?wn():me(z());return Ie&&(Ur=et(ae.createPrefixUnaryExpression(40,Ur),br)),et(ae.createLiteralTypeNode(Ur),br)}function Ei(){return Xe(),z()===100}function Qi(){be|=1048576;var Ie=$e(),br=nn(112);st(100),st(20);var Ur=cs();st(21);var lt=nn(24)?Pr():void 0,xt=yt();return et(ae.createImportTypeNode(Ur,lt,xt,br),Ie)}function Wi(){return Xe(),z()===8||z()===9}function Ai(){switch(z()){case 130:case 154:case 149:case 146:case 157:case 150:case 133:case 152:case 143:case 147:return pt(Un)||Le();case 66:h.reScanAsteriskEqualsToken();case 41:return da();case 60:h.reScanQuestionToken();case 57:return Qa();case 98:return go();case 53:return bi();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Ta();case 40:return vt(Wi)?Ta(!0):Le();case 114:return wn();case 108:{var Ie=Xn();return z()===139&&!h.hasPrecedingLineBreak()?an(Ie):Ie}case 112:return vt(Ei)?Qi():al();case 18:return vt(Jn)?fa():dn();case 22:return hr();case 20:return dt();case 100:return Qi();case 128:return vt(ff)?ld():Le();case 15:return vi();default:return Le()}}function Ci(Ie){switch(z()){case 130:case 154:case 149:case 146:case 157:case 133:case 144:case 150:case 153:case 114:case 152:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 147:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!Ie;case 40:return!Ie&&vt(Wi);case 20:return!Ie&&vt(Fo);default:return Xt()}}function Fo(){return Xe(),z()===21||bs(!1)||Ci()}function xo(){for(var Ie=$e(),br=Ai();!h.hasPrecedingLineBreak();)switch(z()){case 53:Xe(),br=et(ae.createJSDocNonNullableType(br),Ie);break;case 57:if(vt(Ds))return br;Xe(),br=et(ae.createJSDocNullableType(br),Ie);break;case 22:if(st(22),Ci()){var Ur=cs();st(23),br=et(ae.createIndexedAccessTypeNode(br,Ur),Ie)}else st(23),br=et(ae.createArrayTypeNode(br),Ie);break;default:return br}return br}function js(Ie){var br=$e();return st(Ie),et(ae.createTypeOperatorNode(Ie,qc()),br)}function Dl(){var Ie=$e();return et(ae.createTypeParameterDeclaration(di(),void 0,void 0),Ie)}function cc(){var Ie=$e();return st(137),et(ae.createInferTypeNode(Dl()),Ie)}function qc(){var Ie=z();switch(Ie){case 140:case 153:case 144:return js(Ie);case 137:return cc()}return xo()}function Br(Ie){if(Mc()){var br=ta(),Ur=void 0;return e.isFunctionTypeNode(br)?Ur=Ie?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ur=Ie?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Ce(br,Ur),br}}function Il(Ie,br,Ur){var lt=$e(),xt=Ie===51,Zt=nn(Ie),Rn=Zt&&Br(xt)||br();if(z()===Ie||Zt){for(var $n=[Rn];nn(Ie);)$n.push(Br(xt)||br());Rn=et(Ur(Et($n,lt)),lt)}return Rn}function Nl(){return Il(50,qc,ae.createIntersectionTypeNode)}function wc(){return Il(51,Nl,ae.createUnionTypeNode)}function fl(){return Xe(),z()===103}function Mc(){return z()===29||z()===20&&vt(co)?!0:z()===103||z()===126&&vt(fl)}function sd(){if(e.isModifierKind(z())&&Uc(),Xt()||z()===108)return Xe(),!0;if(z()===22||z()===18){var Ie=Me.length;return dl(),Ie===Me.length}return!1}function co(){return Xe(),!!(z()===21||z()===25||sd()&&(z()===58||z()===27||z()===57||z()===63||z()===21&&(Xe(),z()===38)))}function Fd(){var Ie=$e(),br=Xt()&&pt(bp),Ur=cs();return br?et(ae.createTypePredicateNode(void 0,br,Ur),Ie):Ur}function bp(){var Ie=di();if(z()===139&&!h.hasPrecedingLineBreak())return Xe(),Ie}function ld(){var Ie=$e(),br=Kt(128),Ur=z()===108?Xn():di(),lt=nn(139)?cs():void 0;return et(ae.createTypePredicateNode(br,Ur,lt),Ie)}function cs(){return Hr(40960,nf)}function nf(Ie){if(Mc())return ta();var br=$e(),Ur=wc();if(!Ie&&!h.hasPrecedingLineBreak()&&nn(94)){var lt=nf(!0);st(57);var xt=nf();st(58);var Zt=nf();return et(ae.createConditionalTypeNode(Ur,lt,xt,Zt),br)}return Ur}function hc(){return nn(58)?cs():void 0}function Gd(){switch(z()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return vt(_n);default:return Xt()}}function Ll(){if(Gd())return!0;switch(z()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return s_()?!0:Xt()}}function Bd(){return z()!==18&&z()!==98&&z()!==84&&z()!==59&&Ll()}function qs(){var Ie=ir();Ie&&He(!1);for(var br=$e(),Ur=Zn(),lt;lt=bt(27);)Ur=Tp(Ur,lt,Zn(),br);return Ie&&He(!0),Ur}function Va(){return nn(63)?Zn():void 0}function Zn(){if(Pc())return Ud();var Ie=vu()||of();if(Ie)return Ie;var br=$e(),Ur=Hd(0);return Ur.kind===79&&z()===38?af(br,Ur,void 0):e.isLeftHandSideExpression(Ur)&&e.isAssignmentOperator(Ir())?Tp(Ur,wn(),Zn(),br):o_(Ur,br)}function Pc(){return z()===125?nr()?!0:vt(Yd):!1}function Al(){return Xe(),!h.hasPrecedingLineBreak()&&Xt()}function Ud(){var Ie=$e();return Xe(),!h.hasPrecedingLineBreak()&&(z()===41||Ll())?et(ae.createYieldExpression(bt(41),Zn()),Ie):et(ae.createYieldExpression(void 0,void 0),Ie)}function af(Ie,br,Ur){e.Debug.assert(z()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var lt=ae.createParameterDeclaration(void 0,void 0,void 0,br,void 0,void 0,void 0);et(lt,br.pos);var xt=Et([lt],lt.pos,lt.end),Zt=Kt(38),Rn=$l(!!Ur),$n=ae.createArrowFunction(Ur,void 0,xt,void 0,Zt,Rn);return fr(et($n,Ie))}function vu(){var Ie=Ho();if(Ie!==0)return Ie===1?cd(!0):pt(Wd)}function Ho(){return z()===20||z()===29||z()===131?vt(Vd):z()===38?1:0}function Vd(){if(z()===131&&(Xe(),h.hasPrecedingLineBreak()||z()!==20&&z()!==29))return 0;var Ie=z(),br=Xe();if(Ie===20){if(br===21){var Ur=Xe();switch(Ur){case 38:case 58:case 18:return 1;default:return 0}}if(br===22||br===18)return 2;if(br===25||e.isModifierKind(br)&&br!==131&&vt(No))return 1;if(!Xt()&&br!==108)return 0;switch(Xe()){case 58:return 1;case 57:return Xe(),z()===58||z()===27||z()===63||z()===21?1:0;case 27:case 63:case 21:return 2}return 0}else{if(e.Debug.assert(Ie===29),!Xt())return 0;if(Te===1){var lt=vt(function(){var xt=Xe();if(xt===94){var Zt=Xe();switch(Zt){case 63:case 31:return!1;default:return!0}}else if(xt===27)return!0;return!1});return lt?1:0}return 2}}function Wd(){var Ie=h.getTokenPos();if(!(We!=null&&We.has(Ie))){var br=cd(!1);return br||(We||(We=new e.Set)).add(Ie),br}}function of(){if(z()===131&&vt(jd)===1){var Ie=$e(),br=Zd(),Ur=Hd(0);return af(Ie,Ur,br)}}function jd(){if(z()===131){if(Xe(),h.hasPrecedingLineBreak()||z()===38)return 0;var Ie=Hd(0);if(!h.hasPrecedingLineBreak()&&Ie.kind===79&&z()===38)return 1}return 0}function cd(Ie){var br=$e(),Ur=De(),lt=Zd(),xt=e.some(lt,e.isAsyncModifier)?2:0,Zt=zo(),Rn;if(st(20)){if(Rn=Oc(xt),!st(21)&&!Ie)return}else{if(!Ie)return;Rn=Oi()}var $n=io(58,!1);if(!($n&&!Ie&&Xr($n))){var La=$n&&e.isJSDocFunctionType($n);if(!(!Ie&&z()!==38&&(La||z()!==18))){var Da=z(),zi=Kt(38),Qo=Da===38||Da===18?$l(e.some(lt,e.isAsyncModifier)):di(),oo=ae.createArrowFunction(lt,Zt,Rn,$n,zi,Qo);return i(et(oo,br),Ur)}}}function $l(Ie){if(z()===18)return An(Ie?2:0);if(z()!==26&&z()!==98&&z()!==84&&Ol()&&!Bd())return An(16|(Ie?2:0));var br=ve;ve=!1;var Ur=Ie?kt(Zn):Yt(Zn);return ve=br,Ur}function o_(Ie,br){var Ur=bt(57);if(!Ur)return Ie;var lt;return et(ae.createConditionalExpression(Ie,Ur,Hr(R,Zn),lt=Kt(58),e.nodeIsPresent(lt)?Zn():hn(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),br)}function Hd(Ie){var br=$e(),Ur=Fc();return Ep(Ie,Ur,br)}function Jd(Ie){return Ie===101||Ie===159}function Ep(Ie,br,Ur){for(;;){Ir();var lt=e.getBinaryOperatorPrecedence(z()),xt=z()===42?lt>=Ie:lt>Ie;if(!xt||z()===101&&Zr())break;if(z()===127){if(h.hasPrecedingLineBreak())break;Xe(),br=Sp(br,cs())}else br=Tp(br,wn(),Hd(lt),Ur)}return br}function s_(){return Zr()&&z()===101?!1:e.getBinaryOperatorPrecedence(z())>0}function Tp(Ie,br,Ur,lt){return et(ae.createBinaryExpression(Ie,br,Ur),lt)}function Sp(Ie,br){return et(ae.createAsExpression(Ie,br),Ie.pos)}function Nf(){var Ie=$e();return et(ae.createPrefixUnaryExpression(z(),dr(uc)),Ie)}function l_(){var Ie=$e();return et(ae.createDeleteExpression(dr(uc)),Ie)}function Kd(){var Ie=$e();return et(ae.createTypeOfExpression(dr(uc)),Ie)}function Dp(){var Ie=$e();return et(ae.createVoidExpression(dr(uc)),Ie)}function P_(){return z()===132?ge()?!0:vt(Yd):!1}function hu(){var Ie=$e();return et(ae.createAwaitExpression(dr(uc)),Ie)}function Fc(){if(ec()){var Ie=$e(),br=ud();return z()===42?Ep(e.getBinaryOperatorPrecedence(z()),br,Ie):br}var Ur=z(),lt=uc();if(z()===42){var Ie=e.skipTrivia(ne,lt.pos),xt=lt.end;lt.kind===210?Lr(Ie,xt,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Lr(Ie,xt,e.Diagnostics.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,e.tokenToString(Ur))}return lt}function uc(){switch(z()){case 39:case 40:case 54:case 53:return Nf();case 89:return l_();case 112:return Kd();case 114:return Dp();case 29:return lf();case 132:if(P_())return hu();default:return ud()}}function ec(){switch(z()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(Te!==1)return!1;default:return!0}}function ud(){if(z()===45||z()===46){var Ie=$e();return et(ae.createPrefixUnaryExpression(z(),dr(kf)),Ie)}else if(Te===1&&z()===29&&vt(Oo))return sf(!0);var br=kf();if(e.Debug.assert(e.isLeftHandSideExpression(br)),(z()===45||z()===46)&&!h.hasPrecedingLineBreak()){var Ur=z();return Xe(),et(ae.createPostfixUnaryExpression(br,Ur),br.pos)}return br}function kf(){var Ie=$e(),br;return z()===100?vt(Dt)?(be|=1048576,br=wn()):vt(zt)?(Xe(),Xe(),br=et(ae.createMetaProperty(100,ya()),Ie),be|=2097152):br=fd():br=z()===106?c_():fd(),pd(Ie,br)}function fd(){var Ie=$e(),br=cf();return Wl(Ie,br,!0)}function c_(){var Ie=$e(),br=wn();if(z()===29){var Ur=$e(),lt=pt(Rf);lt!==void 0&&Lr(Ur,$e(),e.Diagnostics.super_may_not_use_type_arguments)}return z()===20||z()===24||z()===22?br:(Kt(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),et(ae.createPropertyAccessExpression(br,Wn(!0,!0)),Ie))}function sf(Ie,br,Ur){var lt=$e(),xt=zd(Ie),Zt;if(xt.kind===279){var Rn=u_(xt),$n=void 0,La=Rn[Rn.length-1];if((La==null?void 0:La.kind)===277&&!T(La.openingElement.tagName,La.closingElement.tagName)&&T(xt.tagName,La.closingElement.tagName)){var Da=La.children.end,zi=et(ae.createJsxElement(La.openingElement,La.children,et(ae.createJsxClosingElement(et(ae.createIdentifier(""),Da,Da)),Da,Da)),La.openingElement.pos,Da);Rn=Et(Bt(Bt([],Rn.slice(0,Rn.length-1),!0),[zi],!1),Rn.pos,Da),$n=La.closingElement}else $n=Yc(xt,Ie),T(xt.tagName,$n.tagName)||(Ur&&e.isJsxOpeningElement(Ur)&&T($n.tagName,Ur.tagName)?Ce(xt.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ne,xt.tagName)):Ce($n.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ne,xt.tagName)));Zt=et(ae.createJsxElement(xt,Rn,$n),lt)}else xt.kind===282?Zt=et(ae.createJsxFragment(xt,u_(xt),f_(Ie)),lt):(e.Debug.assert(xt.kind===278),Zt=xt);if(Ie&&z()===29){var Qo=typeof br=="undefined"?Zt.pos:br,oo=pt(function(){return sf(!0,Qo)});if(oo){var Bo=hn(27,!1);return e.setTextRangePosWidth(Bo,oo.pos,0),Lr(e.skipTrivia(ne,Qo),oo.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),et(ae.createBinaryExpression(Zt,Bo,oo),lt)}}return Zt}function F_(){var Ie=$e(),br=ae.createJsxText(h.getTokenValue(),Ge===12);return Ge=h.scanJsxToken(),et(br,Ie)}function dd(Ie,br){switch(br){case 1:if(e.isJsxOpeningFragment(Ie))Ce(Ie,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Ur=Ie.tagName,lt=e.skipTrivia(ne,Ur.pos);Lr(lt,Ur.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ne,Ie.tagName))}return;case 30:case 7:return;case 11:case 12:return F_();case 18:return qd(!1);case 29:return sf(!1,void 0,Ie);default:return e.Debug.assertNever(br)}}function u_(Ie){var br=[],Ur=$e(),lt=Ue;for(Ue|=16384;;){var xt=dd(Ie,Ge=h.reScanJsxToken());if(!xt||(br.push(xt),e.isJsxOpeningElement(Ie)&&(xt==null?void 0:xt.kind)===277&&!T(xt.openingElement.tagName,xt.closingElement.tagName)&&T(Ie.tagName,xt.closingElement.tagName)))break}return Ue=lt,Et(br,Ur)}function Of(){var Ie=$e();return et(ae.createJsxAttributes(Bn(13,ks)),Ie)}function zd(Ie){var br=$e();if(st(29),z()===31)return ut(),et(ae.createJsxOpeningFragment(),br);var Ur=Bu(),lt=(Ne&131072)===0?pn():void 0,xt=Of(),Zt;return z()===31?(ut(),Zt=ae.createJsxOpeningElement(Ur,lt,xt)):(st(43),st(31,void 0,!1)&&(Ie?Xe():ut()),Zt=ae.createJsxSelfClosingElement(Ur,lt,xt)),et(Zt,br)}function Bu(){var Ie=$e();zr();for(var br=z()===108?wn():ya();nn(24);)br=et(ae.createPropertyAccessExpression(br,Wn(!0,!1)),Ie);return br}function qd(Ie){var br=$e();if(!!st(18)){var Ur,lt;return z()!==19&&(Ur=bt(25),lt=qs()),Ie?st(19):st(19,void 0,!1)&&ut(),et(ae.createJsxExpression(Ur,lt),br)}}function ks(){if(z()===18)return Xc();zr();var Ie=$e();return et(ae.createJsxAttribute(ya(),z()!==63?void 0:mt()===10?Vi():qd(!0)),Ie)}function Xc(){var Ie=$e();st(18),st(25);var br=qs();return st(19),et(ae.createJsxSpreadAttribute(br),Ie)}function Yc(Ie,br){var Ur=$e();st(30);var lt=Bu();return st(31,void 0,!1)&&(br||!T(Ie.tagName,lt)?Xe():ut()),et(ae.createJsxClosingElement(lt),Ur)}function f_(Ie){var br=$e();return st(30),e.tokenIsIdentifierOrKeyword(z())&&Ce(Bu(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),st(31,void 0,!1)&&(Ie?Xe():ut()),et(ae.createJsxJsxClosingFragment(),br)}function lf(){var Ie=$e();st(29);var br=cs();st(31);var Ur=uc();return et(ae.createTypeAssertion(br,Ur),Ie)}function Uu(){return Xe(),e.tokenIsIdentifierOrKeyword(z())||z()===22||Bc()}function G_(){return z()===28&&vt(Uu)}function Gc(Ie){if(Ie.flags&32)return!0;if(e.isNonNullExpression(Ie)){for(var br=Ie.expression;e.isNonNullExpression(br)&&!(br.flags&32);)br=br.expression;if(br.flags&32){for(;e.isNonNullExpression(Ie);)Ie.flags|=32,Ie=Ie.expression;return!0}}return!1}function kl(Ie,br,Ur){var lt=Wn(!0,!0),xt=Ur||Gc(br),Zt=xt?ae.createPropertyAccessChain(br,Ur,lt):ae.createPropertyAccessExpression(br,lt);return xt&&e.isPrivateIdentifier(Zt.name)&&Ce(Zt.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),et(Zt,Ie)}function Qc(Ie,br,Ur){var lt;if(z()===23)lt=hn(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var xt=Sr(qs);e.isStringOrNumericLiteralLike(xt)&&(xt.text=Qn(xt.text)),lt=xt}st(23);var Zt=Ur||Gc(br)?ae.createElementAccessChain(br,Ur,lt):ae.createElementAccessExpression(br,lt);return et(Zt,Ie)}function Wl(Ie,br,Ur){for(;;){var lt=void 0,xt=!1;if(Ur&&G_()?(lt=Kt(28),xt=e.tokenIsIdentifierOrKeyword(z())):xt=nn(24),xt){br=kl(Ie,br,lt);continue}if(!lt&&z()===53&&!h.hasPrecedingLineBreak()){Xe(),br=et(ae.createNonNullExpression(br),Ie);continue}if((lt||!ir())&&nn(22)){br=Qc(Ie,br,lt);continue}if(Bc()){br=Xd(Ie,br,lt,void 0);continue}return br}}function Bc(){return z()===14||z()===15}function Xd(Ie,br,Ur,lt){var xt=ae.createTaggedTemplateExpression(br,lt,z()===14?(Be(),Vi()):oi(!0));return(Ur||br.flags&32)&&(xt.flags|=32),xt.questionDotToken=Ur,et(xt,Ie)}function pd(Ie,br){for(;;){br=Wl(Ie,br,!0);var Ur=bt(28);if((Ne&131072)===0&&(z()===29||z()===47)){var lt=pt(Rf);if(lt){if(Bc()){br=Xd(Ie,br,Ur,lt);continue}var xt=yu(),Zt=Ur||Gc(br)?ae.createCallChain(br,Ur,lt,xt):ae.createCallExpression(br,lt,xt);br=et(Zt,Ie);continue}}else if(z()===20){var xt=yu(),Zt=Ur||Gc(br)?ae.createCallChain(br,Ur,void 0,xt):ae.createCallExpression(br,void 0,xt);br=et(Zt,Ie);continue}if(Ur){var Rn=hn(79,!1,e.Diagnostics.Identifier_expected);br=et(ae.createPropertyAccessChain(br,Ur,Rn),Ie)}break}return br}function yu(){st(20);var Ie=ii(11,rc);return st(21),Ie}function Rf(){if((Ne&131072)===0&&yr()===29){Xe();var Ie=ii(20,cs);if(!!st(31))return Ie&&Zi()?Ie:void 0}}function Zi(){switch(z()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}function cf(){switch(z()){case 8:case 9:case 10:case 14:return Vi();case 108:case 106:case 104:case 110:case 95:return wn();case 20:return wo();case 22:return wf();case 18:return us();case 131:if(!vt(md))break;return ui();case 84:return vf();case 98:return ui();case 103:return Ap();case 43:case 68:if(Jr()===13)return Vi();break;case 15:return oi(!1);case 80:return Yi()}return di(e.Diagnostics.Expression_expected)}function wo(){var Ie=$e(),br=De();st(20);var Ur=Sr(qs);return st(21),i(et(ae.createParenthesizedExpression(Ur),Ie),br)}function Go(){var Ie=$e();st(25);var br=Zn();return et(ae.createSpreadElement(br),Ie)}function Lp(){return z()===25?Go():z()===27?et(ae.createOmittedExpression(),$e()):Zn()}function rc(){return Hr(R,Lp)}function wf(){var Ie=$e();st(22);var br=h.hasPrecedingLineBreak(),Ur=ii(15,Lp);return st(23),et(ae.createArrayLiteralExpression(Ur,br),Ie)}function Cn(){var Ie=$e(),br=De();if(bt(25)){var Ur=Zn();return i(et(ae.createSpreadAssignment(Ur),Ie),br)}var lt=gf(),xt=Uc();if(Ni(136))return Wu(Ie,br,lt,xt,171);if(Ni(148))return Wu(Ie,br,lt,xt,172);var Zt=bt(41),Rn=Xt(),$n=Fi(),La=bt(57),Da=bt(53);if(Zt||z()===20||z()===29)return Bf(Ie,br,lt,xt,Zt,$n,La,Da);var zi,Qo=Rn&&z()!==58;if(Qo){var oo=bt(63),Bo=oo?Sr(Zn):void 0;zi=ae.createShorthandPropertyAssignment($n,Bo),zi.equalsToken=oo}else{st(58);var vs=Sr(Zn);zi=ae.createPropertyAssignment($n,vs)}return zi.decorators=lt,zi.modifiers=xt,zi.questionToken=La,zi.exclamationToken=Da,i(et(zi,Ie),br)}function us(){var Ie=$e(),br=h.getTokenPos();st(18);var Ur=h.hasPrecedingLineBreak(),lt=ii(12,Cn,!0);if(!st(19)){var xt=e.lastOrUndefined(Me);xt&&xt.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(xt,e.createDetachedDiagnostic(D,br,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return et(ae.createObjectLiteralExpression(lt,Ur),Ie)}function ui(){var Ie=ir();He(!1);var br=$e(),Ur=De(),lt=Uc();st(98);var xt=bt(41),Zt=xt?1:0,Rn=e.some(lt,e.isAsyncModifier)?2:0,$n=Zt&&Rn?vn(yc):Zt?ot(yc):Rn?kt(yc):yc(),La=zo(),Da=ul(Zt|Rn),zi=io(58,!1),Qo=An(Zt|Rn);He(Ie);var oo=ae.createFunctionExpression(lt,xt,$n,La,Da,zi,Qo);return i(et(oo,br),Ur)}function yc(){return Nt()?Ki():void 0}function Ap(){var Ie=$e();if(st(103),nn(24)){var br=ya();return et(ae.createMetaProperty(103,br),Ie)}for(var Ur=$e(),lt=cf(),xt;;){lt=Wl(Ur,lt,!1),xt=pt(Rf),Bc()&&(e.Debug.assert(!!xt,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),lt=Xd(Ur,lt,void 0,xt),xt=void 0);break}var Zt;return z()===20?Zt=yu():xt&&Lr(Ie,h.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),et(ae.createNewExpression(lt,xt,Zt),Ie)}function Xs(Ie,br){var Ur=$e(),lt=De(),xt=h.getTokenPos();if(st(18,br)||Ie){var Zt=h.hasPrecedingLineBreak(),Rn=Bn(1,Ha);if(!st(19)){var $n=e.lastOrUndefined(Me);$n&&$n.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo($n,e.createDetachedDiagnostic(D,xt,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var La=i(et(ae.createBlock(Rn,Zt),Ur),lt);return z()===63&&(rr(e.Diagnostics.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_the_whole_assignment_in_parentheses),Xe()),La}else{var Rn=Oi();return i(et(ae.createBlock(Rn,void 0),Ur),lt)}}function An(Ie,br){var Ur=nr();kr(!!(Ie&1));var lt=ge();lr(!!(Ie&2));var xt=ve;ve=!1;var Zt=ir();Zt&&He(!1);var Rn=Xs(!!(Ie&16),br);return Zt&&He(!0),ve=xt,kr(Ur),lr(lt),Rn}function d_(){var Ie=$e(),br=De();return st(26),i(et(ae.createEmptyStatement(),Ie),br)}function fs(){var Ie=$e(),br=De();st(99),st(20);var Ur=Sr(qs);st(21);var lt=Ha(),xt=nn(91)?Ha():void 0;return i(et(ae.createIfStatement(Ur,lt,xt),Ie),br)}function ls(){var Ie=$e(),br=De();st(90);var Ur=Ha();st(115),st(20);var lt=Sr(qs);return st(21),nn(26),i(et(ae.createDoStatement(Ur,lt),Ie),br)}function fc(){var Ie=$e(),br=De();st(115),st(20);var Ur=Sr(qs);st(21);var lt=Ha();return i(et(ae.createWhileStatement(Ur,lt),Ie),br)}function jl(){var Ie=$e(),br=De();st(97);var Ur=bt(132);st(20);var lt;z()!==26&&(z()===113||z()===119||z()===85?lt=ml(!0):lt=Yr(qs));var xt;if(Ur?st(159):nn(159)){var Zt=Sr(Zn);st(21),xt=ae.createForOfStatement(Ur,lt,Zt,Ha())}else if(nn(101)){var Zt=Sr(qs);st(21),xt=ae.createForInStatement(lt,Zt,Ha())}else{st(26);var Rn=z()!==26&&z()!==21?Sr(qs):void 0;st(26);var $n=z()!==21?Sr(qs):void 0;st(21),xt=ae.createForStatement(lt,Rn,$n,Ha())}return i(et(xt,Ie),br)}function Mf(Ie){var br=$e(),Ur=De();st(Ie===245?81:86);var lt=ft()?void 0:di();Pt();var xt=Ie===245?ae.createBreakStatement(lt):ae.createContinueStatement(lt);return i(et(xt,br),Ur)}function Ys(){var Ie=$e(),br=De();st(105);var Ur=ft()?void 0:Sr(qs);return Pt(),i(et(ae.createReturnStatement(Ur),Ie),br)}function bc(){var Ie=$e(),br=De();st(116),st(20);var Ur=Sr(qs);st(21);var lt=Je(16777216,Ha);return i(et(ae.createWithStatement(Ur,lt),Ie),br)}function Pf(){var Ie=$e();st(82);var br=Sr(qs);st(58);var Ur=Bn(3,Ha);return et(ae.createCaseClause(br,Ur),Ie)}function Ec(){var Ie=$e();st(88),st(58);var br=Bn(3,Ha);return et(ae.createDefaultClause(br),Ie)}function Zc(){return z()===82?Pf():Ec()}function bu(){var Ie=$e();st(18);var br=Bn(2,Zc);return st(19),et(ae.createCaseBlock(br),Ie)}function _l(){var Ie=$e(),br=De();st(107),st(20);var Ur=Sr(qs);st(21);var lt=bu();return i(et(ae.createSwitchStatement(Ur,lt),Ie),br)}function Cp(){var Ie=$e(),br=De();st(109);var Ur=h.hasPrecedingLineBreak()?void 0:Sr(qs);return Ur===void 0&&(ce++,Ur=et(ae.createIdentifier(""),$e())),Ct()||Pn(Ur),i(et(ae.createThrowStatement(Ur),Ie),br)}function Eu(){var Ie=$e(),br=De();st(111);var Ur=Xs(!1),lt=z()===83?uf():void 0,xt;return(!lt||z()===96)&&(st(96),xt=Xs(!1)),i(et(ae.createTryStatement(Ur,lt,xt),Ie),br)}function uf(){var Ie=$e();st(83);var br;nn(20)?(br=$o(),st(21)):br=void 0;var Ur=Xs(!1);return et(ae.createCatchClause(br,Ur),Ie)}function Ff(){var Ie=$e(),br=De();return st(87),Pt(),i(et(ae.createDebuggerStatement(),Ie),br)}function _d(){var Ie=$e(),br=De(),Ur,lt=z()===20,xt=Sr(qs);return e.isIdentifier(xt)&&nn(58)?Ur=ae.createLabeledStatement(xt,Ha()):(Ct()||Pn(xt),Ur=ae.createExpressionStatement(xt),lt&&(br=!1)),i(et(Ur,Ie),br)}function ff(){return Xe(),e.tokenIsIdentifierOrKeyword(z())&&!h.hasPrecedingLineBreak()}function dc(){return Xe(),z()===84&&!h.hasPrecedingLineBreak()}function md(){return Xe(),z()===98&&!h.hasPrecedingLineBreak()}function Yd(){return Xe(),(e.tokenIsIdentifierOrKeyword(z())||z()===8||z()===9||z()===10)&&!h.hasPrecedingLineBreak()}function Tu(){for(;;)switch(z()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 151:return Al();case 141:case 142:return pf();case 126:case 131:case 135:case 121:case 122:case 123:case 144:if(Xe(),h.hasPrecedingLineBreak())return!1;continue;case 156:return Xe(),z()===18||z()===79||z()===93;case 100:return Xe(),z()===10||z()===41||z()===18||e.tokenIsIdentifierOrKeyword(z());case 93:var Ie=Xe();if(Ie===151&&(Ie=vt(Xe)),Ie===63||Ie===41||Ie===18||Ie===88||Ie===127)return!0;continue;case 124:Xe();continue;default:return!1}}function il(){return vt(Tu)}function Ol(){switch(z()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:return!0;case 100:return il()||vt(_n);case 85:case 93:return il();case 131:case 135:case 118:case 141:case 142:case 151:case 156:return!0;case 123:case 121:case 122:case 124:case 144:return il()||!vt(ff);default:return Ll()}}function $c(){return Xe(),Nt()||z()===18||z()===22}function df(){return vt($c)}function Ha(){switch(z()){case 26:return d_();case 18:return Xs(!1);case 113:return tc($e(),De(),void 0,void 0);case 119:if(df())return tc($e(),De(),void 0,void 0);break;case 98:return mf($e(),De(),void 0,void 0);case 84:return Hu($e(),De(),void 0,void 0);case 99:return fs();case 90:return ls();case 115:return fc();case 97:return jl();case 86:return Mf(244);case 81:return Mf(245);case 105:return Ys();case 116:return bc();case 107:return _l();case 109:return Cp();case 111:case 83:case 96:return Eu();case 87:return Ff();case 59:return Ls();case 131:case 118:case 151:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 144:case 156:if(il())return Ls();break}return _d()}function xn(Ie){return Ie.kind===135}function Ls(){var Ie=e.some(vt(function(){return gf(),Uc()}),xn);if(Ie){var br=xp();if(br)return br}var Ur=$e(),lt=De(),xt=gf(),Zt=Uc();if(Ie){for(var Rn=0,$n=Zt;Rn<$n.length;Rn++){var La=$n[Rn];La.flags|=8388608}return Je(8388608,function(){return Qd(Ur,lt,xt,Zt)})}else return Qd(Ur,lt,xt,Zt)}function xp(){return Je(8388608,function(){var Ie=Gr(Ue);if(Ie)return ht(Ie)})}function Qd(Ie,br,Ur,lt){switch(z()){case 113:case 119:case 85:return tc(Ie,br,Ur,lt);case 98:return mf(Ie,br,Ur,lt);case 84:return Hu(Ie,br,Ur,lt);case 118:return rp(Ie,br,Ur,lt);case 151:return kp(Ie,br,Ur,lt);case 92:return B_(Ie,br,Ur,lt);case 156:case 141:case 142:return wp(Ie,br,Ur,lt);case 100:return yd(Ie,br,Ur,lt);case 93:switch(Xe(),z()){case 88:case 63:return iu(Ie,br,Ur,lt);case 127:return nu(Ie,br,Ur,lt);default:return au(Ie,br,Ur,lt)}default:if(Ur||lt){var xt=hn(275,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(xt,Ie),xt.decorators=Ur,xt.modifiers=lt,xt}return}}function pf(){return Xe(),!h.hasPrecedingLineBreak()&&(Xt()||z()===10)}function _f(Ie,br){if(z()!==18&&ft()){Pt();return}return An(Ie,br)}function gd(){var Ie=$e();if(z()===27)return et(ae.createOmittedExpression(),Ie);var br=bt(25),Ur=dl(),lt=Va();return et(ae.createBindingElement(br,void 0,Ur,lt),Ie)}function Hl(){var Ie=$e(),br=bt(25),Ur=Nt(),lt=Fi(),xt;Ur&&z()!==58?(xt=lt,lt=void 0):(st(58),xt=dl());var Zt=Va();return et(ae.createBindingElement(br,lt,xt,Zt),Ie)}function Rs(){var Ie=$e();st(18);var br=ii(9,Hl);return st(19),et(ae.createObjectBindingPattern(br),Ie)}function Gf(){var Ie=$e();st(22);var br=ii(10,gd);return st(23),et(ae.createArrayBindingPattern(br),Ie)}function Vu(){return z()===18||z()===22||z()===80||Nt()}function dl(Ie){return z()===22?Gf():z()===18?Rs():Ki(Ie)}function Ip(){return $o(!0)}function $o(Ie){var br=$e(),Ur=De(),lt=dl(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations),xt;Ie&&lt.kind===79&&z()===53&&!h.hasPrecedingLineBreak()&&(xt=wn());var Zt=hc(),Rn=Jd(z())?void 0:Va(),$n=ae.createVariableDeclaration(lt,xt,Zt,Rn);return i(et($n,br),Ur)}function ml(Ie){var br=$e(),Ur=0;switch(z()){case 113:break;case 119:Ur|=1;break;case 85:Ur|=2;break;default:e.Debug.fail()}Xe();var lt;if(z()===159&&vt(p_))lt=Oi();else{var xt=Zr();Cr(Ie),lt=ii(8,Ie?$o:Ip),Cr(xt)}return et(ae.createVariableDeclarationList(lt,Ur),br)}function p_(){return No()&&Xe()===21}function tc(Ie,br,Ur,lt){var xt=ml(!1);Pt();var Zt=ae.createVariableStatement(lt,xt);return Zt.decorators=Ur,i(et(Zt,Ie),br)}function mf(Ie,br,Ur,lt){var xt=ge(),Zt=e.modifiersToFlags(lt);st(98);var Rn=bt(41),$n=Zt&512?yc():Ki(),La=Rn?1:0,Da=Zt&256?2:0,zi=zo();Zt&1&&lr(!0);var Qo=ul(La|Da),oo=io(58,!1),Bo=_f(La|Da,e.Diagnostics.or_expected);lr(xt);var vs=ae.createFunctionDeclaration(Ur,lt,Rn,$n,zi,Qo,oo,Bo);return i(et(vs,Ie),br)}function Su(){if(z()===134)return st(134);if(z()===10&&vt(Xe)===20)return pt(function(){var Ie=Vi();return Ie.text==="constructor"?Ie:void 0})}function Np(Ie,br,Ur,lt){return pt(function(){if(Su()){var xt=zo(),Zt=ul(0),Rn=io(58,!1),$n=_f(0,e.Diagnostics.or_expected),La=ae.createConstructorDeclaration(Ur,lt,Zt,$n);return La.typeParameters=xt,La.type=Rn,i(et(La,Ie),br)}})}function Bf(Ie,br,Ur,lt,xt,Zt,Rn,$n,La){var Da=xt?1:0,zi=e.some(lt,e.isAsyncModifier)?2:0,Qo=zo(),oo=ul(Da|zi),Bo=io(58,!1),vs=_f(Da|zi,La),sl=ae.createMethodDeclaration(Ur,lt,xt,Zt,Rn,Qo,oo,Bo,vs);return sl.exclamationToken=$n,i(et(sl,Ie),br)}function Rl(Ie,br,Ur,lt,xt,Zt){var Rn=!Zt&&!h.hasPrecedingLineBreak()?bt(53):void 0,$n=hc(),La=Hr(45056,Va);pa(xt,$n,La);var Da=ae.createPropertyDeclaration(Ur,lt,xt,Zt||Rn,$n,La);return i(et(Da,Ie),br)}function es(Ie,br,Ur,lt){var xt=bt(41),Zt=Fi(),Rn=bt(57);return xt||z()===20||z()===29?Bf(Ie,br,Ur,lt,xt,Zt,Rn,void 0,e.Diagnostics.or_expected):Rl(Ie,br,Ur,lt,Zt,Rn)}function Wu(Ie,br,Ur,lt,xt){var Zt=Fi(),Rn=zo(),$n=ul(0),La=io(58,!1),Da=_f(0),zi=xt===171?ae.createGetAccessorDeclaration(Ur,lt,Zt,$n,La,Da):ae.createSetAccessorDeclaration(Ur,lt,Zt,$n,Da);return zi.typeParameters=Rn,La&&zi.kind===172&&(zi.type=La),i(et(zi,Ie),br)}function Uf(){var Ie;if(z()===59)return!0;for(;e.isModifierKind(z());){if(Ie=z(),e.isClassMemberModifier(Ie))return!0;Xe()}if(z()===41||($a()&&(Ie=z(),Xe()),z()===22))return!0;if(Ie!==void 0){if(!e.isKeyword(Ie)||Ie===148||Ie===136)return!0;switch(z()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return ft()}}return!1}function eu(Ie,br,Ur,lt){Kt(124);var xt=Vf();return i(et(ae.createClassStaticBlockDeclaration(Ur,lt,xt),Ie),br)}function Vf(){var Ie=nr(),br=ge();kr(!1),lr(!0);var Ur=Xs(!1);return kr(Ie),lr(br),Ur}function vd(){if(ge()&&z()===132){var Ie=$e(),br=di(e.Diagnostics.Expression_expected);Xe();var Ur=Wl(Ie,br,!0);return pd(Ie,Ur)}return kf()}function hd(){var Ie=$e();if(!!nn(59)){var br=_t(vd);return et(ae.createDecorator(br),Ie)}}function gf(){for(var Ie=$e(),br,Ur;Ur=hd();)br=e.append(br,Ur);return br&&Et(br,Ie)}function ju(Ie,br,Ur){var lt=$e(),xt=z();if(z()===85&&Ie){if(!pt(Eo))return}else{if(br&&z()===124&&vt(Mp))return;if(Ur&&z()===124)return;if(!ja())return}return et(ae.createToken(xt),lt)}function Uc(Ie,br){for(var Ur=$e(),lt,xt,Zt=!1;xt=ju(Ie,br,Zt);)xt.kind===124&&(Zt=!0),lt=e.append(lt,xt);return lt&&Et(lt,Ur)}function Zd(){var Ie;if(z()===131){var br=$e();Xe();var Ur=et(ae.createToken(131),br);Ie=Et([Ur],br)}return Ie}function Du(){var Ie=$e();if(z()===26)return Xe(),et(ae.createSemicolonClassElement(),Ie);var br=De(),Ur=gf(),lt=Uc(!0,!0);if(z()===124&&vt(Mp))return eu(Ie,br,Ur,lt);if(Ni(136))return Wu(Ie,br,Ur,lt,171);if(Ni(148))return Wu(Ie,br,Ur,lt,172);if(z()===134||z()===10){var xt=Np(Ie,br,Ur,lt);if(xt)return xt}if(Ia())return Rc(Ie,br,Ur,lt);if(e.tokenIsIdentifierOrKeyword(z())||z()===10||z()===8||z()===41||z()===22){var Zt=e.some(lt,xn);if(Zt){for(var Rn=0,$n=lt;Rn<$n.length;Rn++){var La=$n[Rn];La.flags|=8388608}return Je(8388608,function(){return es(Ie,br,Ur,lt)})}else return es(Ie,br,Ur,lt)}if(Ur||lt){var Da=hn(79,!0,e.Diagnostics.Declaration_expected);return Rl(Ie,br,Ur,lt,Da,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function vf(){return Wf($e(),De(),void 0,void 0,225)}function Hu(Ie,br,Ur,lt){return Wf(Ie,br,Ur,lt,256)}function Wf(Ie,br,Ur,lt,xt){var Zt=ge();st(84);var Rn=Jl(),$n=zo();e.some(lt,e.isExportModifier)&&lr(!0);var La=$d(),Da;st(18)?(Da=jf(),st(19)):Da=Oi(),lr(Zt);var zi=xt===256?ae.createClassDeclaration(Ur,lt,Rn,$n,La,Da):ae.createClassExpression(Ur,lt,Rn,$n,La,Da);return i(et(zi,Ie),br)}function Jl(){return Nt()&&!Ju()?Ra(Nt()):void 0}function Ju(){return z()===117&&vt(ko)}function $d(){if(ep())return Bn(22,Ja)}function Ja(){var Ie=$e(),br=z();e.Debug.assert(br===94||br===117),Xe();var Ur=ii(7,Tc);return et(ae.createHeritageClause(br,Ur),Ie)}function Tc(){var Ie=$e(),br=kf(),Ur=pn();return et(ae.createExpressionWithTypeArguments(br,Ur),Ie)}function pn(){return z()===29?os(20,cs,29,31):void 0}function ep(){return z()===94||z()===117}function jf(){return Bn(5,Du)}function rp(Ie,br,Ur,lt){st(118);var xt=di(),Zt=zo(),Rn=$d(),$n=On(),La=ae.createInterfaceDeclaration(Ur,lt,xt,Zt,Rn,$n);return i(et(La,Ie),br)}function kp(Ie,br,Ur,lt){st(151);var xt=di(),Zt=zo();st(63);var Rn=z()===138&&pt(Un)||cs();Pt();var $n=ae.createTypeAliasDeclaration(Ur,lt,xt,Zt,Rn);return i(et($n,Ie),br)}function Op(){var Ie=$e(),br=De(),Ur=Fi(),lt=Sr(Va);return i(et(ae.createEnumMember(Ur,lt),Ie),br)}function B_(Ie,br,Ur,lt){st(92);var xt=di(),Zt;st(18)?(Zt=Mn(function(){return ii(6,Op)}),st(19)):Zt=Oi();var Rn=ae.createEnumDeclaration(Ur,lt,xt,Zt);return i(et(Rn,Ie),br)}function ru(){var Ie=$e(),br;return st(18)?(br=Bn(1,Ha),st(19)):br=Oi(),et(ae.createModuleBlock(br),Ie)}function Rp(Ie,br,Ur,lt,xt){var Zt=xt&16,Rn=di(),$n=nn(24)?Rp($e(),!1,void 0,void 0,4|Zt):ru(),La=ae.createModuleDeclaration(Ur,lt,Rn,$n,xt);return i(et(La,Ie),br)}function pc(Ie,br,Ur,lt){var xt=0,Zt;z()===156?(Zt=di(),xt|=1024):(Zt=Vi(),Zt.text=Qn(Zt.text));var Rn;z()===18?Rn=ru():Pt();var $n=ae.createModuleDeclaration(Ur,lt,Zt,Rn,xt);return i(et($n,Ie),br)}function wp(Ie,br,Ur,lt){var xt=0;if(z()===156)return pc(Ie,br,Ur,lt);if(nn(142))xt|=16;else if(st(141),z()===10)return pc(Ie,br,Ur,lt);return Rp(Ie,br,Ur,lt,xt)}function nc(){return z()===145&&vt(hf)}function hf(){return Xe()===20}function Mp(){return Xe()===18}function tu(){return Xe()===43}function nu(Ie,br,Ur,lt){st(127),st(142);var xt=di();Pt();var Zt=ae.createNamespaceExportDeclaration(xt);return Zt.decorators=Ur,Zt.modifiers=lt,i(et(Zt,Ie),br)}function yd(Ie,br,Ur,lt){st(100);var xt=h.getStartPos(),Zt;Xt()&&(Zt=di());var Rn=!1;if(z()!==155&&(Zt==null?void 0:Zt.escapedText)==="type"&&(Xt()||nt())&&(Rn=!0,Zt=Xt()?di():void 0),Zt&&!wt())return ca(Ie,br,Ur,lt,Zt,Rn);var $n;(Zt||z()===41||z()===18)&&($n=Ga(Zt,xt,Rn),st(155));var La=wa(),Da;z()===129&&!h.hasPrecedingLineBreak()&&(Da=Ze()),Pt();var zi=ae.createImportDeclaration(Ur,lt,$n,La,Da);return i(et(zi,Ie),br)}function S(){var Ie=$e(),br=e.tokenIsIdentifierOrKeyword(z())?ya():me(10);st(58);var Ur=me(10);return et(ae.createAssertEntry(br,Ur),Ie)}function Ze(){var Ie=$e();st(129);var br=h.getTokenPos();if(st(18)){var Ur=h.hasPrecedingLineBreak(),lt=ii(24,S,!0);if(!st(19)){var xt=e.lastOrUndefined(Me);xt&&xt.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(xt,e.createDetachedDiagnostic(D,br,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return et(ae.createAssertClause(lt,Ur),Ie)}else{var lt=Et([],$e(),void 0,!1);return et(ae.createAssertClause(lt,!1),Ie)}}function nt(){return z()===41||z()===18}function wt(){return z()===27||z()===155}function ca(Ie,br,Ur,lt,xt,Zt){st(63);var Rn=na();Pt();var $n=ae.createImportEqualsDeclaration(Ur,lt,Zt,xt,Rn),La=i(et($n,Ie),br);return La}function Ga(Ie,br,Ur){var lt;return(!Ie||nn(27))&&(lt=z()===41?Za():Lo(268)),et(ae.createImportClause(Ur,Ie,lt),br)}function na(){return nc()?si():jo(!1)}function si(){var Ie=$e();st(145),st(20);var br=wa();return st(21),et(ae.createExternalModuleReference(br),Ie)}function wa(){if(z()===10){var Ie=Vi();return Ie.text=Qn(Ie.text),Ie}else return qs()}function Za(){var Ie=$e();st(41),st(127);var br=di();return et(ae.createNamespaceImport(br),Ie)}function Lo(Ie){var br=$e(),Ur=Ie===268?ae.createNamedImports(os(23,As,18,19)):ae.createNamedExports(os(23,ol,18,19));return et(Ur,br)}function ol(){return Ms(274)}function As(){return Ms(269)}function Ms(Ie){var br=$e(),Ur=e.isKeyword(z())&&!Xt(),lt=h.getTokenPos(),xt=h.getTextPos(),Zt=!1,Rn,$n=!0,La=ya();if(La.escapedText==="type")if(z()===127){var Da=ya();if(z()===127){var zi=ya();e.tokenIsIdentifierOrKeyword(z())?(Zt=!0,Rn=Da,La=oo(),$n=!1):(Rn=La,La=zi,$n=!1)}else e.tokenIsIdentifierOrKeyword(z())?(Rn=La,$n=!1,La=oo()):(Zt=!0,La=Da)}else e.tokenIsIdentifierOrKeyword(z())&&(Zt=!0,La=oo());$n&&z()===127&&(Rn=La,st(127),La=oo()),Ie===269&&Ur&&Lr(lt,xt,e.Diagnostics.Identifier_expected);var Qo=Ie===269?ae.createImportSpecifier(Zt,Rn,La):ae.createExportSpecifier(Zt,Rn,La);return et(Qo,br);function oo(){return Ur=e.isKeyword(z())&&!Xt(),lt=h.getTokenPos(),xt=h.getTextPos(),ya()}}function gl(Ie){return et(ae.createNamespaceExport(ya()),Ie)}function au(Ie,br,Ur,lt){var xt=ge();lr(!0);var Zt,Rn,$n,La=nn(151),Da=$e();nn(41)?(nn(127)&&(Zt=gl(Da)),st(155),Rn=wa()):(Zt=Lo(272),(z()===155||z()===10&&!h.hasPrecedingLineBreak())&&(st(155),Rn=wa())),Rn&&z()===129&&!h.hasPrecedingLineBreak()&&($n=Ze()),Pt(),lr(xt);var zi=ae.createExportDeclaration(Ur,lt,La,Zt,Rn,$n);return i(et(zi,Ie),br)}function iu(Ie,br,Ur,lt){var xt=ge();lr(!0);var Zt;nn(63)?Zt=!0:st(88);var Rn=Zn();Pt(),lr(xt);var $n=ae.createExportAssignment(Ur,lt,Zt,Rn);return i(et($n,Ie),br)}function ou(Ie){Ie.externalModuleIndicator=e.forEach(Ie.statements,yf)||__(Ie)}function yf(Ie){return m_(Ie,93)||e.isImportEqualsDeclaration(Ie)&&e.isExternalModuleReference(Ie.moduleReference)||e.isImportDeclaration(Ie)||e.isExportAssignment(Ie)||e.isExportDeclaration(Ie)?Ie:void 0}function __(Ie){return Ie.flags&2097152?Vc(Ie):void 0}function Vc(Ie){return tp(Ie)?Ie:j(Ie,Vc)}function m_(Ie,br){return e.some(Ie.modifiers,function(Ur){return Ur.kind===br})}function tp(Ie){return e.isMetaProperty(Ie)&&Ie.keywordToken===100&&Ie.name.escapedText==="meta"}var ac;(function(Ie){Ie[Ie.SourceElements=0]="SourceElements",Ie[Ie.BlockStatements=1]="BlockStatements",Ie[Ie.SwitchClauses=2]="SwitchClauses",Ie[Ie.SwitchClauseStatements=3]="SwitchClauseStatements",Ie[Ie.TypeMembers=4]="TypeMembers",Ie[Ie.ClassMembers=5]="ClassMembers",Ie[Ie.EnumMembers=6]="EnumMembers",Ie[Ie.HeritageClauseElement=7]="HeritageClauseElement",Ie[Ie.VariableDeclarations=8]="VariableDeclarations",Ie[Ie.ObjectBindingElements=9]="ObjectBindingElements",Ie[Ie.ArrayBindingElements=10]="ArrayBindingElements",Ie[Ie.ArgumentExpressions=11]="ArgumentExpressions",Ie[Ie.ObjectLiteralMembers=12]="ObjectLiteralMembers",Ie[Ie.JsxAttributes=13]="JsxAttributes",Ie[Ie.JsxChildren=14]="JsxChildren",Ie[Ie.ArrayLiteralMembers=15]="ArrayLiteralMembers",Ie[Ie.Parameters=16]="Parameters",Ie[Ie.JSDocParameters=17]="JSDocParameters",Ie[Ie.RestProperties=18]="RestProperties",Ie[Ie.TypeParameters=19]="TypeParameters",Ie[Ie.TypeArguments=20]="TypeArguments",Ie[Ie.TupleElementTypes=21]="TupleElementTypes",Ie[Ie.HeritageClauses=22]="HeritageClauses",Ie[Ie.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Ie[Ie.AssertEntries=24]="AssertEntries",Ie[Ie.Count=25]="Count"})(ac||(ac={}));var np;(function(Ie){Ie[Ie.False=0]="False",Ie[Ie.True=1]="True",Ie[Ie.Unknown=2]="Unknown"})(np||(np={}));var g_;(function(Ie){function br(Da,zi,Qo){ur("file.js",Da,99,void 0,1),h.setText(Da,zi,Qo),Ge=h.scan();var oo=Ur(),Bo=we("file.js",99,1,!1,[],ae.createToken(1),0),vs=e.attachFileToDiagnostics(Me,Bo);return Ke&&(Bo.jsDocDiagnostics=e.attachFileToDiagnostics(Ke,Bo)),xr(),oo?{jsDocTypeExpression:oo,diagnostics:vs}:void 0}Ie.parseJSDocTypeExpressionForTests=br;function Ur(Da){var zi=$e(),Qo=(Da?nn:st)(18),oo=Je(4194304,ss);(!Da||Qo)&&Gn(19);var Bo=ae.createJSDocTypeExpression(oo);return de(Bo),et(Bo,zi)}Ie.parseJSDocTypeExpression=Ur;function lt(){for(var Da=$e(),zi=nn(18),Qo=$e(),oo=jo(!1);z()===80;)Rr(),Qe(),oo=et(ae.createJSDocMemberName(oo,di()),Qo);zi&&Gn(19);var Bo=ae.createJSDocNameReference(oo);return de(Bo),et(Bo,Da)}Ie.parseJSDocNameReference=lt;function xt(Da,zi,Qo){ur("",Da,99,void 0,1);var oo=Je(4194304,function(){return La(zi,Qo)}),Bo={languageVariant:0,text:Da},vs=e.attachFileToDiagnostics(Me,Bo);return xr(),oo?{jsDoc:oo,diagnostics:vs}:void 0}Ie.parseIsolatedJSDocComment=xt;function Zt(Da,zi,Qo){var oo=Ge,Bo=Me.length,vs=Ve,sl=Je(4194304,function(){return La(zi,Qo)});return e.setParent(sl,Da),Ne&131072&&(Ke||(Ke=[]),Ke.push.apply(Ke,Me)),Ge=oo,Me.length=Bo,Ve=vs,sl}Ie.parseJSDocComment=Zt;var Rn;(function(Da){Da[Da.BeginningOfLine=0]="BeginningOfLine",Da[Da.SawAsterisk=1]="SawAsterisk",Da[Da.SavingComments=2]="SavingComments",Da[Da.SavingBackticks=3]="SavingBackticks"})(Rn||(Rn={}));var $n;(function(Da){Da[Da.Property=1]="Property",Da[Da.Parameter=2]="Parameter",Da[Da.CallbackParameter=4]="CallbackParameter"})($n||($n={}));function La(Da,zi){Da===void 0&&(Da=0);var Qo=ne,oo=zi===void 0?Qo.length:Da+zi;if(zi=oo-Da,e.Debug.assert(Da>=0),e.Debug.assert(Da<=oo),e.Debug.assert(oo<=Qo.length),!y(Qo,Da))return;var Bo,vs,sl,Os,su,Ps=[],Ku=[];return h.scanRange(Da+3,zi-5,function(){var fn=1,_a,Kn=Da-(Qo.lastIndexOf(`
`,Da)+1)+4;function Aa(hl){_a||(_a=Kn),Ps.push(hl),Kn+=hl.length}for(Qe();Gp(5););Gp(4)&&(fn=0,Kn=0);e:for(;;){switch(z()){case 59:fn===0||fn===1?(Fs(Ps),su||(su=$e()),ln(zl(Kn)),fn=0,_a=void 0):Aa(h.getTokenText());break;case 4:Ps.push(h.getTokenText()),fn=0,Kn=0;break;case 41:var ri=h.getTokenText();fn===1||fn===2?(fn=2,Aa(ri)):(fn=1,Kn+=ri.length);break;case 5:var qi=h.getTokenText();fn===2?Ps.push(qi):_a!==void 0&&Kn+qi.length>_a&&Ps.push(qi.slice(_a-Kn)),Kn+=qi.length;break;case 1:break e;case 18:fn=2;var Mo=h.getStartPos(),Hs=h.getTextPos()-1,vl=er(Hs);if(vl){Os||bd(Ps),Ku.push(et(ae.createJSDocText(Ps.join("")),Os!=null?Os:Da,Mo)),Ku.push(vl),Ps=[],Os=h.getTextPos();break}default:fn=2,Aa(h.getTokenText());break}Qe()}Fs(Ps),Ku.length&&Ps.length&&Ku.push(et(ae.createJSDocText(Ps.join("")),Os!=null?Os:Da,su)),Ku.length&&Bo&&e.Debug.assertIsDefined(su,"having parsed tags implies that the end of the comment span should be set");var ql=Bo&&Et(Bo,vs,sl);return et(ae.createJSDocComment(Ku.length?Et(Ku,Da,su):Ps.length?Ps.join(""):void 0,ql),Da,oo)});function bd(fn){for(;fn.length&&(fn[0]===`
`||fn[0]==="\r");)fn.shift()}function Fs(fn){for(;fn.length&&fn[fn.length-1].trim()==="";)fn.pop()}function Sc(){for(;;){if(Qe(),z()===1)return!0;if(!(z()===5||z()===4))return!1}}function Kl(){if(!((z()===5||z()===4)&&vt(Sc)))for(;z()===5||z()===4;)Qe()}function zu(){if((z()===5||z()===4)&&vt(Sc))return"";for(var fn=h.hasPrecedingLineBreak(),_a=!1,Kn="";fn&&z()===41||z()===5||z()===4;)Kn+=h.getTokenText(),z()===4?(fn=!0,_a=!0,Kn=""):z()===41&&(fn=!1),Qe();return _a?Kn:""}function zl(fn){e.Debug.assert(z()===59);var _a=h.getTokenPos();Qe();var Kn=qu(void 0),Aa=zu(),ri;switch(Kn.escapedText){case"author":ri=En(_a,Kn,fn,Aa);break;case"implements":ri=Kf(_a,Kn,fn,Aa);break;case"augments":case"extends":ri=v_(_a,Kn,fn,Aa);break;case"class":case"constructor":ri=bf(_a,ae.createJSDocClassTag,Kn,fn,Aa);break;case"public":ri=bf(_a,ae.createJSDocPublicTag,Kn,fn,Aa);break;case"private":ri=bf(_a,ae.createJSDocPrivateTag,Kn,fn,Aa);break;case"protected":ri=bf(_a,ae.createJSDocProtectedTag,Kn,fn,Aa);break;case"readonly":ri=bf(_a,ae.createJSDocReadonlyTag,Kn,fn,Aa);break;case"override":ri=bf(_a,ae.createJSDocOverrideTag,Kn,fn,Aa);break;case"deprecated":Mr=!0,ri=bf(_a,ae.createJSDocDeprecatedTag,Kn,fn,Aa);break;case"this":ri=Xm(_a,Kn,fn,Aa);break;case"enum":ri=Ef(_a,Kn,fn,Aa);break;case"arg":case"argument":case"param":return U_(_a,Kn,2,fn);case"return":case"returns":ri=Pp(_a,Kn,fn,Aa);break;case"template":ri=ch(_a,Kn,fn,Aa);break;case"type":ri=Hf(_a,Kn,fn,Aa);break;case"typedef":ri=sh(_a,Kn,fn,Aa);break;case"callback":ri=h_(_a,Kn,fn,Aa);break;case"see":ri=oh(_a,Kn,fn,Aa);break;default:ri=Jt(_a,Kn,fn,Aa);break}return ri}function v(fn,_a,Kn,Aa){return Aa||(Kn+=_a-fn),W(Kn,Aa.slice(Kn))}function W(fn,_a){var Kn=$e(),Aa=[],ri=[],qi,Mo=0,Hs=!0,vl;function ql(gm){vl||(vl=fn),Aa.push(gm),fn+=gm.length}_a!==void 0&&(_a!==""&&ql(_a),Mo=1);var hl=z();e:for(;;){switch(hl){case 4:Mo=0,Aa.push(h.getTokenText()),fn=0;break;case 59:if(Mo===3||Mo===2&&(!Hs||vt(Ee))){Aa.push(h.getTokenText());break}h.setTextPos(h.getTextPos()-1);case 1:break e;case 5:if(Mo===2||Mo===3)ql(h.getTokenText());else{var Xu=h.getTokenText();vl!==void 0&&fn+Xu.length>vl&&Aa.push(Xu.slice(vl-fn)),fn+=Xu.length}break;case 18:Mo=2;var vo=h.getStartPos(),H_=h.getTextPos()-1,ap=er(H_);ap?(ri.push(et(ae.createJSDocText(Aa.join("")),qi!=null?qi:Kn,vo)),ri.push(ap),Aa=[],qi=h.getTextPos()):ql(h.getTokenText());break;case 61:Mo===3?Mo=2:Mo=3,ql(h.getTokenText());break;case 41:if(Mo===0){Mo=1,fn+=1;break}default:Mo!==3&&(Mo=2),ql(h.getTokenText());break}Hs=z()===5,hl=Qe()}if(bd(Aa),Fs(Aa),ri.length)return Aa.length&&ri.push(et(ae.createJSDocText(Aa.join("")),qi!=null?qi:Kn)),Et(ri,Kn,h.getTextPos());if(Aa.length)return Aa.join("")}function Ee(){var fn=Qe();return fn===5||fn===4}function er(fn){var _a=pt(Wr);if(!!_a){Qe(),Kl();var Kn=$e(),Aa=e.tokenIsIdentifierOrKeyword(z())?jo(!0):void 0;if(Aa)for(;z()===80;)Rr(),Qe(),Aa=et(ae.createJSDocMemberName(Aa,di()),Kn);for(var ri=[];z()!==19&&z()!==4&&z()!==1;)ri.push(h.getTokenText()),Qe();var qi=_a==="link"?ae.createJSDocLink:_a==="linkcode"?ae.createJSDocLinkCode:ae.createJSDocLinkPlain;return et(qi(Aa,ri.join("")),fn,h.getTextPos())}}function Wr(){if(zu(),z()===18&&Qe()===59&&e.tokenIsIdentifierOrKeyword(Qe())){var fn=h.getTokenValue();if(fn==="link"||fn==="linkcode"||fn==="linkplain")return fn}}function Jt(fn,_a,Kn,Aa){return et(ae.createJSDocUnknownTag(_a,v(fn,$e(),Kn,Aa)),fn)}function ln(fn){!fn||(Bo?Bo.push(fn):(Bo=[fn],vs=fn.pos),sl=fn.end)}function Xa(){return zu(),z()===18?Ur():void 0}function Uo(){var fn=Gp(22);fn&&Kl();var _a=Gp(61),Kn=uh();return _a&&bn(61),fn&&(Kl(),bt(63)&&qs(),st(23)),{name:Kn,isBracketed:fn}}function Es(fn){switch(fn.kind){case 147:return!0;case 182:return Es(fn.elementType);default:return e.isTypeReferenceNode(fn)&&e.isIdentifier(fn.typeName)&&fn.typeName.escapedText==="Object"&&!fn.typeArguments}}function U_(fn,_a,Kn,Aa){var ri=Xa(),qi=!ri;zu();var Mo=Uo(),Hs=Mo.name,vl=Mo.isBracketed,ql=zu();qi&&!vt(Wr)&&(ri=Xa());var hl=v(fn,$e(),Aa,ql),Xu=Kn!==4&&Ed(ri,Hs,Kn,Aa);Xu&&(ri=Xu,qi=!0);var vo=Kn===1?ae.createJSDocPropertyTag(_a,Hs,vl,ri,qi,hl):ae.createJSDocParameterTag(_a,Hs,vl,ri,qi,hl);return et(vo,fn)}function Ed(fn,_a,Kn,Aa){if(fn&&Es(fn.type)){for(var ri=$e(),qi=void 0,Mo=void 0;qi=pt(function(){return Lu(Kn,Aa,_a)});)(qi.kind===338||qi.kind===345)&&(Mo=e.append(Mo,qi));if(Mo){var Hs=et(ae.createJSDocTypeLiteral(Mo,fn.type.kind===182),ri);return et(ae.createJSDocTypeExpression(Hs),ri)}}}function Pp(fn,_a,Kn,Aa){e.some(Bo,e.isJSDocReturnTag)&&Lr(_a.pos,h.getTokenPos(),e.Diagnostics._0_tag_already_specified,_a.escapedText);var ri=Xa();return et(ae.createJSDocReturnTag(_a,ri,v(fn,$e(),Kn,Aa)),fn)}function Hf(fn,_a,Kn,Aa){e.some(Bo,e.isJSDocTypeTag)&&Lr(_a.pos,h.getTokenPos(),e.Diagnostics._0_tag_already_specified,_a.escapedText);var ri=Ur(!0),qi=Kn!==void 0&&Aa!==void 0?v(fn,$e(),Kn,Aa):void 0;return et(ae.createJSDocTypeTag(_a,ri,qi),fn)}function oh(fn,_a,Kn,Aa){var ri=z()===22||vt(function(){return Qe()===59&&e.tokenIsIdentifierOrKeyword(Qe())&&h.getTokenValue()==="link"}),qi=ri?void 0:lt(),Mo=Kn!==void 0&&Aa!==void 0?v(fn,$e(),Kn,Aa):void 0;return et(ae.createJSDocSeeTag(_a,qi,Mo),fn)}function En(fn,_a,Kn,Aa){var ri=$e(),qi=Jf(),Mo=h.getStartPos(),Hs=v(fn,Mo,Kn,Aa);Hs||(Mo=h.getStartPos());var vl=typeof Hs!="string"?Et(e.concatenate([et(qi,ri,Mo)],Hs),ri):qi.text+Hs;return et(ae.createJSDocAuthorTag(_a,vl),fn)}function Jf(){for(var fn=[],_a=!1,Kn=h.getToken();Kn!==1&&Kn!==4;){if(Kn===29)_a=!0;else{if(Kn===59&&!_a)break;if(Kn===31&&_a){fn.push(h.getTokenText()),h.setTextPos(h.getTokenPos()+1);break}}fn.push(h.getTokenText()),Kn=Qe()}return ae.createJSDocText(fn.join(""))}function Kf(fn,_a,Kn,Aa){var ri=Fp();return et(ae.createJSDocImplementsTag(_a,ri,v(fn,$e(),Kn,Aa)),fn)}function v_(fn,_a,Kn,Aa){var ri=Fp();return et(ae.createJSDocAugmentsTag(_a,ri,v(fn,$e(),Kn,Aa)),fn)}function Fp(){var fn=nn(18),_a=$e(),Kn=V_(),Aa=pn(),ri=ae.createExpressionWithTypeArguments(Kn,Aa),qi=et(ri,_a);return fn&&st(19),qi}function V_(){for(var fn=$e(),_a=qu();nn(24);){var Kn=qu();_a=et(ae.createPropertyAccessExpression(_a,Kn),fn)}return _a}function bf(fn,_a,Kn,Aa,ri){return et(_a(Kn,v(fn,$e(),Aa,ri)),fn)}function Xm(fn,_a,Kn,Aa){var ri=Ur(!0);return Kl(),et(ae.createJSDocThisTag(_a,ri,v(fn,$e(),Kn,Aa)),fn)}function Ef(fn,_a,Kn,Aa){var ri=Ur(!0);return Kl(),et(ae.createJSDocEnumTag(_a,ri,v(fn,$e(),Kn,Aa)),fn)}function sh(fn,_a,Kn,Aa){var ri,qi=Xa();zu();var Mo=W_();Kl();var Hs=W(Kn),vl;if(!qi||Es(qi.type)){for(var ql=void 0,hl=void 0,Xu=void 0,vo=!1;ql=pt(function(){return Ym(Kn)});)if(vo=!0,ql.kind===341)if(hl){rr(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var H_=e.lastOrUndefined(Me);H_&&e.addRelatedInfo(H_,e.createDetachedDiagnostic(D,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else hl=ql;else Xu=e.append(Xu,ql);if(vo){var ap=qi&&qi.type.kind===182,gm=ae.createJSDocTypeLiteral(Xu,ap);qi=hl&&hl.typeExpression&&!Es(hl.typeExpression.type)?hl.typeExpression:et(gm,fn),vl=qi.end}}vl=vl||Hs!==void 0?$e():((ri=Mo!=null?Mo:qi)!==null&&ri!==void 0?ri:_a).end,Hs||(Hs=v(fn,vl,Kn,Aa));var Jg=ae.createJSDocTypedefTag(_a,qi,Mo,Hs);return et(Jg,fn,vl)}function W_(fn){var _a=h.getTokenPos();if(!!e.tokenIsIdentifierOrKeyword(z())){var Kn=qu();if(nn(24)){var Aa=W_(!0),ri=ae.createModuleDeclaration(void 0,void 0,Kn,Aa,fn?4:void 0);return et(ri,_a)}return fn&&(Kn.isInJSDocNamespace=!0),Kn}}function j_(fn){for(var _a=$e(),Kn,Aa;Kn=pt(function(){return Lu(4,fn)});)Aa=e.append(Aa,Kn);return Et(Aa||[],_a)}function h_(fn,_a,Kn,Aa){var ri=W_();Kl();var qi=W(Kn),Mo=j_(Kn),Hs=pt(function(){if(Gp(59)){var ql=zl(Kn);if(ql&&ql.kind===339)return ql}}),vl=et(ae.createJSDocSignature(void 0,Mo,Hs),fn);return qi||(qi=v(fn,$e(),Kn,Aa)),et(ae.createJSDocCallbackTag(_a,vl,ri,qi),fn)}function _m(fn,_a){for(;!e.isIdentifier(fn)||!e.isIdentifier(_a);)if(!e.isIdentifier(fn)&&!e.isIdentifier(_a)&&fn.right.escapedText===_a.right.escapedText)fn=fn.left,_a=_a.left;else return!1;return fn.escapedText===_a.escapedText}function Ym(fn){return Lu(1,fn)}function Lu(fn,_a,Kn){for(var Aa=!0,ri=!1;;)switch(Qe()){case 59:if(Aa){var qi=lh(fn,_a);return qi&&(qi.kind===338||qi.kind===345)&&fn!==4&&Kn&&(e.isIdentifier(qi.name)||!_m(Kn,qi.name.left))?!1:qi}ri=!1;break;case 4:Aa=!0,ri=!1;break;case 41:ri&&(Aa=!1),ri=!0;break;case 79:Aa=!1;break;case 1:return!1}}function lh(fn,_a){e.Debug.assert(z()===59);var Kn=h.getStartPos();Qe();var Aa=qu();Kl();var ri;switch(Aa.escapedText){case"type":return fn===1&&Hf(Kn,Aa);case"prop":case"property":ri=1;break;case"arg":case"argument":case"param":ri=6;break;default:return!1}return fn&ri?U_(Kn,Aa,fn,_a):!1}function mm(){var fn=$e(),_a=Gp(22);_a&&Kl();var Kn=qu(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Aa;if(_a&&(Kl(),st(63),Aa=Je(4194304,ss),st(23)),!e.nodeIsMissing(Kn))return et(ae.createTypeParameterDeclaration(Kn,void 0,Aa),fn)}function Gs(){var fn=$e(),_a=[];do{Kl();var Kn=mm();Kn!==void 0&&_a.push(Kn),zu()}while(Gp(27));return Et(_a,fn)}function ch(fn,_a,Kn,Aa){var ri=z()===18?Ur():void 0,qi=Gs();return et(ae.createJSDocTemplateTag(_a,ri,qi,v(fn,$e(),Kn,Aa)),fn)}function Gp(fn){return z()===fn?(Qe(),!0):!1}function uh(){var fn=qu();for(nn(22)&&st(23);nn(24);){var _a=qu();nn(22)&&st(23),fn=At(fn,_a)}return fn}function qu(fn){if(!e.tokenIsIdentifierOrKeyword(z()))return hn(79,!fn,fn||e.Diagnostics.Identifier_expected);ce++;var _a=h.getTokenPos(),Kn=h.getTextPos(),Aa=z(),ri=Qn(h.getTokenValue()),qi=et(ae.createIdentifier(ri,void 0,Aa),_a,Kn);return Qe(),qi}}})(g_=_.JSDocParser||(_.JSDocParser={}))})(x||(x={}));var ie;(function(_){function h(ne,J,le,Te){if(Te=Te||e.Debug.shouldAssert(2),ae(ne,J,le,Te),e.textChangeRangeIsUnchanged(le))return ne;if(ne.statements.length===0)return x.parseSourceFile(ne.fileName,J,ne.languageVersion,void 0,!0,ne.scriptKind);var Me=ne;e.Debug.assert(!Me.hasBeenIncrementallyParsed),Me.hasBeenIncrementallyParsed=!0,x.fixupParentReferences(Me);var Ke=ne.text,Ae=D(ne),Ge=_e(ne,le);ae(ne,J,Ge,Te),e.Debug.assert(Ge.span.start<=le.span.start),e.Debug.assert(e.textSpanEnd(Ge.span)===e.textSpanEnd(le.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(Ge))===e.textSpanEnd(e.textChangeRangeNewSpan(le)));var se=e.textChangeRangeNewSpan(Ge).length-Ge.span.length;A(Me,Ge.span.start,e.textSpanEnd(Ge.span),e.textSpanEnd(e.textChangeRangeNewSpan(Ge)),se,Ke,J,Te);var xe=x.parseSourceFile(ne.fileName,J,ne.languageVersion,Ae,!0,ne.scriptKind);return xe.commentDirectives=R(ne.commentDirectives,xe.commentDirectives,Ge.span.start,e.textSpanEnd(Ge.span),se,Ke,J,Te),xe.impliedNodeFormat=ne.impliedNodeFormat,xe}_.updateSourceFile=h;function R(ne,J,le,Te,Me,Ke,Ae,Ge){if(!ne)return J;for(var se,xe=!1,Re=0,ce=ne;Re<ce.length;Re++){var Ue=ce[Re],We=Ue.range,Ne=Ue.type;if(We.end<le)se=e.append(se,Ue);else if(We.pos>Te){Ve();var ve={range:{pos:We.pos+Me,end:We.end+Me},type:Ne};se=e.append(se,ve),Ge&&e.Debug.assert(Ke.substring(We.pos,We.end)===Ae.substring(ve.range.pos,ve.range.end))}}return Ve(),se;function Ve(){xe||(xe=!0,se?J&&se.push.apply(se,J):se=J)}}function b(ne,J,le,Te,Me,Ke){J?Ge(ne):Ae(ne);return;function Ae(se){var xe="";if(Ke&&G(se)&&(xe=Te.substring(se.pos,se.end)),se._children&&(se._children=void 0),e.setTextRangePosEnd(se,se.pos+le,se.end+le),Ke&&G(se)&&e.Debug.assert(xe===Me.substring(se.pos,se.end)),j(se,Ae,Ge),e.hasJSDocNodes(se))for(var Re=0,ce=se.jsDoc;Re<ce.length;Re++){var Ue=ce[Re];Ae(Ue)}pe(se,Ke)}function Ge(se){se._children=void 0,e.setTextRangePosEnd(se,se.pos+le,se.end+le);for(var xe=0,Re=se;xe<Re.length;xe++){var ce=Re[xe];Ae(ce)}}}function G(ne){switch(ne.kind){case 10:case 8:case 79:return!0}return!1}function Y(ne,J,le,Te,Me){e.Debug.assert(ne.end>=J,"Adjusting an element that was entirely before the change range"),e.Debug.assert(ne.pos<=le,"Adjusting an element that was entirely after the change range"),e.Debug.assert(ne.pos<=ne.end);var Ke=Math.min(ne.pos,Te),Ae=ne.end>=le?ne.end+Me:Math.min(ne.end,Te);e.Debug.assert(Ke<=Ae),ne.parent&&(e.Debug.assertGreaterThanOrEqual(Ke,ne.parent.pos),e.Debug.assertLessThanOrEqual(Ae,ne.parent.end)),e.setTextRangePosEnd(ne,Ke,Ae)}function pe(ne,J){if(J){var le=ne.pos,Te=function(Ge){e.Debug.assert(Ge.pos>=le),le=Ge.end};if(e.hasJSDocNodes(ne))for(var Me=0,Ke=ne.jsDoc;Me<Ke.length;Me++){var Ae=Ke[Me];Te(Ae)}j(ne,Te),e.Debug.assert(le<=ne.end)}}function A(ne,J,le,Te,Me,Ke,Ae,Ge){se(ne);return;function se(Re){if(e.Debug.assert(Re.pos<=Re.end),Re.pos>le){b(Re,!1,Me,Ke,Ae,Ge);return}var ce=Re.end;if(ce>=J){if(Re.intersectsChange=!0,Re._children=void 0,Y(Re,J,le,Te,Me),j(Re,se,xe),e.hasJSDocNodes(Re))for(var Ue=0,We=Re.jsDoc;Ue<We.length;Ue++){var Ne=We[Ue];se(Ne)}pe(Re,Ge);return}e.Debug.assert(ce<J)}function xe(Re){if(e.Debug.assert(Re.pos<=Re.end),Re.pos>le){b(Re,!0,Me,Ke,Ae,Ge);return}var ce=Re.end;if(ce>=J){Re.intersectsChange=!0,Re._children=void 0,Y(Re,J,le,Te,Me);for(var Ue=0,We=Re;Ue<We.length;Ue++){var Ne=We[Ue];se(Ne)}return}e.Debug.assert(ce<J)}}function _e(ne,J){for(var le=1,Te=J.span.start,Me=0;Te>0&&Me<=le;Me++){var Ke=Se(ne,Te);e.Debug.assert(Ke.pos<=Te);var Ae=Ke.pos;Te=Math.max(0,Ae-1)}var Ge=e.createTextSpanFromBounds(Te,e.textSpanEnd(J.span)),se=J.newLength+(J.span.start-Te);return e.createTextChangeRange(Ge,se)}function Se(ne,J){var le=ne,Te;if(j(ne,Ae),Te){var Me=Ke(Te);Me.pos>le.pos&&(le=Me)}return le;function Ke(Ge){for(;;){var se=e.getLastChild(Ge);if(se)Ge=se;else return Ge}}function Ae(Ge){if(!e.nodeIsMissing(Ge))if(Ge.pos<=J){if(Ge.pos>=le.pos&&(le=Ge),J<Ge.end)return j(Ge,Ae),!0;e.Debug.assert(Ge.end<=J),Te=Ge}else return e.Debug.assert(Ge.pos>J),!0}}function ae(ne,J,le,Te){var Me=ne.text;if(le&&(e.Debug.assert(Me.length-le.span.length+le.newLength===J.length),Te||e.Debug.shouldAssert(3))){var Ke=Me.substr(0,le.span.start),Ae=J.substr(0,le.span.start);e.Debug.assert(Ke===Ae);var Ge=Me.substring(e.textSpanEnd(le.span),Me.length),se=J.substring(e.textSpanEnd(e.textChangeRangeNewSpan(le)),J.length);e.Debug.assert(Ge===se)}}function D(ne){var J=ne.statements,le=0;e.Debug.assert(le<J.length);var Te=J[le],Me=-1;return{currentNode:function(Ae){return Ae!==Me&&(Te&&Te.end===Ae&&le<J.length-1&&(le++,Te=J[le]),(!Te||Te.pos!==Ae)&&Ke(Ae)),Me=Ae,e.Debug.assert(!Te||Te.pos===Ae),Te}};function Ke(Ae){J=void 0,le=-1,Te=void 0,j(ne,Ge,se);return;function Ge(xe){return Ae>=xe.pos&&Ae<xe.end?(j(xe,Ge,se),!0):!1}function se(xe){if(Ae>=xe.pos&&Ae<xe.end)for(var Re=0;Re<xe.length;Re++){var ce=xe[Re];if(ce){if(ce.pos===Ae)return J=xe,le=Re,Te=ce,!0;if(ce.pos<Ae&&Ae<ce.end)return j(ce,Ge,se),!0}}return!1}}}_.createSyntaxCursor=D;var be;(function(ne){ne[ne.Value=-1]="Value"})(be||(be={}))})(ie||(ie={}));function Z(_){return e.fileExtensionIsOneOf(_,[".d.ts",".d.mts",".d.cts"])}e.isDeclarationFileName=Z;function re(_,h){for(var R=[],b=0,G=e.getLeadingCommentRanges(h,0)||e.emptyArray;b<G.length;b++){var Y=G[b],pe=h.substring(Y.pos,Y.end);w(R,Y,pe)}_.pragmas=new e.Map;for(var A=0,_e=R;A<_e.length;A++){var Se=_e[A];if(_.pragmas.has(Se.name)){var ae=_.pragmas.get(Se.name);ae instanceof Array?ae.push(Se.args):_.pragmas.set(Se.name,[ae,Se.args]);continue}_.pragmas.set(Se.name,Se.args)}}e.processCommentPragmas=re;function q(_,h){_.checkJsDirective=void 0,_.referencedFiles=[],_.typeReferenceDirectives=[],_.libReferenceDirectives=[],_.amdDependencies=[],_.hasNoDefaultLib=!1,_.pragmas.forEach(function(R,b){switch(b){case"reference":{var G=_.referencedFiles,Y=_.typeReferenceDirectives,pe=_.libReferenceDirectives;e.forEach(e.toArray(R),function(ae){var D=ae.arguments,be=D.types,ne=D.lib,J=D.path;ae.arguments["no-default-lib"]?_.hasNoDefaultLib=!0:be?Y.push({pos:be.pos,end:be.end,fileName:be.value}):ne?pe.push({pos:ne.pos,end:ne.end,fileName:ne.value}):J?G.push({pos:J.pos,end:J.end,fileName:J.value}):h(ae.range.pos,ae.range.end-ae.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)});break}case"amd-dependency":{_.amdDependencies=e.map(e.toArray(R),function(ae){return{name:ae.arguments.name,path:ae.arguments.path}});break}case"amd-module":{if(R instanceof Array)for(var A=0,_e=R;A<_e.length;A++){var Se=_e[A];_.moduleName&&h(Se.range.pos,Se.range.end-Se.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),_.moduleName=Se.arguments.name}else _.moduleName=R.arguments.name;break}case"ts-nocheck":case"ts-check":{e.forEach(e.toArray(R),function(ae){(!_.checkJsDirective||ae.range.pos>_.checkJsDirective.pos)&&(_.checkJsDirective={enabled:b==="ts-check",end:ae.range.end,pos:ae.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=q;var P=new e.Map;function M(_){if(P.has(_))return P.get(_);var h=new RegExp("(\\s".concat(_,`\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`),"im");return P.set(_,h),h}var Q=/^\/\/\/\s*<(\S+)\s.*?\/>/im,H=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function w(_,h,R){var b=h.kind===2&&Q.exec(R);if(b){var G=b[1].toLowerCase(),Y=e.commentPragmas[G];if(!Y||!(Y.kind&1))return;if(Y.args){for(var pe={},A=0,_e=Y.args;A<_e.length;A++){var Se=_e[A],ae=M(Se.name),D=ae.exec(R);if(!D&&!Se.optional)return;if(D){var be=D[2]||D[3];if(Se.captureSpan){var ne=h.pos+D.index+D[1].length+1;pe[Se.name]={value:be,pos:ne,end:ne+be.length}}else pe[Se.name]=be}}_.push({name:G,args:{arguments:pe,range:h}})}else _.push({name:G,args:{arguments:{},range:h}});return}var J=h.kind===2&&H.exec(R);if(J)return d(_,h,2,J);if(h.kind===3)for(var le=/@(\S+)(\s+.*)?$/gim,Te=void 0;Te=le.exec(R);)d(_,h,4,Te)}function d(_,h,R,b){if(!!b){var G=b[1].toLowerCase(),Y=e.commentPragmas[G];if(!(!Y||!(Y.kind&R))){var pe=b[2],A=B(Y,pe);A!=="fail"&&_.push({name:G,args:{arguments:A,range:h}})}}}function B(_,h){if(!h)return{};if(!_.args)return{};for(var R=e.trimString(h).split(/\s+/),b={},G=0;G<_.args.length;G++){var Y=_.args[G];if(!R[G]&&!Y.optional)return"fail";if(Y.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");b[Y.name]=R[G]}return b}function T(_,h){return _.kind!==h.kind?!1:_.kind===79?_.escapedText===h.escapedText:_.kind===108?!0:_.name.escapedText===h.name.escapedText&&T(_.expression,h.expression)}e.tagNamesAreEquivalent=T})(mr||(mr={}));var mr;(function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:"false"};var n=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(n.entries(),function(Be){var yr=Be[0],Rr=Be[1];return[""+Rr,yr]})));var c=[["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"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.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"],["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"],["es2020.bigint","lib.es2020.bigint.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"],["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"],["esnext.array","lib.es2019.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2021.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=c.map(function(Be){return Be[0]}),e.libMap=new e.Map(c),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:"false"},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:z},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:z},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:"false"},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:"false"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:"false"},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:"false"},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:"false"},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:"false"},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:"false"},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:"true"},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:"false"},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:"false"},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.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:"false"},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:"ES3"};var u=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:"false"},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:"false"},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:"false"},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:"false"},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:"false"},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:"false"},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node12:e.ModuleKind.Node12,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:"false"},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:"false"},{name:"jsx",type:n,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:"undefined"},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.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,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:"false",description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:"false",description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:"false"},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:"false"},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:"false"},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:"false"},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:"false"},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,defaultValueDescription:"false"},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:"false"},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:"false"},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:"false"},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:"false"},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Include_undefined_in_index_signature_results,defaultValueDescription:"false"},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:"false"},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:"false"},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node12:e.ModuleResolutionKind.Node12,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:"false"},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:"false"},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:"false"},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:"false"},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:"false"},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:"false"},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.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:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:"false"},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:"false"},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:"false"},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:"false"},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:"false"},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:"false"},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:"false"},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:"false"},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:"false"},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:"false"},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:"false"},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:"false"},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:"false"},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:"false"},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:"false"},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:"undefined"},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:"undefined"},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:"false"},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:"false"},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:"false"},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.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,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:"false"},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:"false"},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:"false"},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins,category:e.Diagnostics.Editor_Support}];e.optionDeclarations=Bt(Bt([],e.commonOptionsWithBuild,!0),u,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter(function(Be){return!!Be.affectsSemanticDiagnostics}),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter(function(Be){return!!Be.affectsEmit}),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter(function(Be){return!!Be.affectsModuleResolution}),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter(function(Be){return!!Be.affectsSourceFile||!!Be.affectsModuleResolution||!!Be.affectsBindDiagnostics}),e.optionsAffectingProgramStructure=e.optionDeclarations.filter(function(Be){return!!Be.affectsProgramStructure}),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter(function(Be){return e.hasProperty(Be,"transpileOptionValue")}),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:"false"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:"false"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:"false"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:"false"}],e.buildOpts=Bt(Bt([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:"false"},{name:"enable",type:"boolean",defaultValueDescription:"false"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:"false"}];function g(Be){var yr=new e.Map,Rr=new e.Map;return e.forEach(Be,function(zr){yr.set(zr.name.toLowerCase(),zr),zr.shortName&&Rr.set(zr.shortName,zr.name)}),{optionsNameMap:yr,shortOptionNames:Rr}}e.createOptionNameMap=g;var p;function I(){return p||(p=g(e.optionDeclarations))}e.getOptionsNameMap=I;var V={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:x};e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function L(Be){return Be&&Be.enableAutoDiscovery!==void 0&&Be.enable===void 0?{enable:Be.enableAutoDiscovery,include:Be.include||[],exclude:Be.exclude||[]}:Be}e.convertEnableAutoDiscoveryToEnable=L;function m(Be){return y(Be,e.createCompilerDiagnostic)}e.createCompilerDiagnosticForInvalidCustomType=m;function y(Be,yr){var Rr=e.arrayFrom(Be.type.keys()).map(function(zr){return"'".concat(zr,"'")}).join(", ");return yr(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(Be.name),Rr)}function j(Be,yr,Rr){return Zr(Be,e.trimString(yr||""),Rr)}e.parseCustomTypeOption=j;function te(Be,yr,Rr){if(yr===void 0&&(yr=""),yr=e.trimString(yr),!e.startsWith(yr,"-")){if(yr==="")return[];var zr=yr.split(",");switch(Be.element.type){case"number":return e.mapDefined(zr,function(ut){return nr(Be.element,parseInt(ut),Rr)});case"string":return e.mapDefined(zr,function(ut){return nr(Be.element,ut||"",Rr)});default:return e.mapDefined(zr,function(ut){return j(Be.element,ut,Rr)})}}}e.parseListTypeOption=te;function E(Be){return Be.name}function F(Be,yr,Rr,zr){var ut;if(!((ut=yr.alternateMode)===null||ut===void 0)&&ut.getOptionsNameMap().optionsNameMap.has(Be.toLowerCase()))return Rr(yr.alternateMode.diagnostic,Be);var mt=e.getSpellingSuggestion(Be,yr.optionDeclarations,E);return mt?Rr(yr.unknownDidYouMeanDiagnostic,zr||Be,mt.name):Rr(yr.unknownOptionDiagnostic,zr||Be)}function $(Be,yr,Rr){var zr={},ut,mt=[],Lt=[];return vt(yr),{options:zr,watchOptions:ut,fileNames:mt,errors:Lt};function vt(Nt){for(var Xt=0;Xt<Nt.length;){var st=Nt[Xt];if(Xt++,st.charCodeAt(0)===64)pt(st.slice(1));else if(st.charCodeAt(0)===45){var $t=st.slice(st.charCodeAt(1)===45?2:1),Pn=X(Be.getOptionsNameMap,$t,!0);if(Pn)Xt=C(Nt,Xt,Be,Pn,zr,Lt);else{var Ea=X(h.getOptionsNameMap,$t,!0);Ea?Xt=C(Nt,Xt,h,Ea,ut||(ut={}),Lt):Lt.push(F($t,Be,e.createCompilerDiagnostic,st))}}else mt.push(st)}}function pt(Nt){var Xt=w(Nt,Rr||function(Ea){return e.sys.readFile(Ea)});if(!e.isString(Xt)){Lt.push(Xt);return}for(var st=[],$t=0;;){for(;$t<Xt.length&&Xt.charCodeAt($t)<=32;)$t++;if($t>=Xt.length)break;var Pn=$t;if(Xt.charCodeAt(Pn)===34){for($t++;$t<Xt.length&&Xt.charCodeAt($t)!==34;)$t++;$t<Xt.length?(st.push(Xt.substring(Pn+1,$t)),$t++):Lt.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,Nt))}else{for(;Xt.charCodeAt($t)>32;)$t++;st.push(Xt.substring(Pn,$t))}}vt(st)}}e.parseCommandLineWorker=$;function C(Be,yr,Rr,zr,ut,mt){if(zr.isTSConfigOnly){var Lt=Be[yr];Lt==="null"?(ut[zr.name]=void 0,yr++):zr.type==="boolean"?Lt==="false"?(ut[zr.name]=nr(zr,!1,mt),yr++):(Lt==="true"&&yr++,mt.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,zr.name))):(mt.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,zr.name)),Lt&&!e.startsWith(Lt,"-")&&yr++)}else if(!Be[yr]&&zr.type!=="boolean"&&mt.push(e.createCompilerDiagnostic(Rr.optionTypeMismatchDiagnostic,zr.name,ne(zr))),Be[yr]!=="null")switch(zr.type){case"number":ut[zr.name]=nr(zr,parseInt(Be[yr]),mt),yr++;break;case"boolean":var Lt=Be[yr];ut[zr.name]=nr(zr,Lt!=="false",mt),(Lt==="false"||Lt==="true")&&yr++;break;case"string":ut[zr.name]=nr(zr,Be[yr]||"",mt),yr++;break;case"list":var vt=te(zr,Be[yr],mt);ut[zr.name]=vt||[],vt&&yr++;break;default:ut[zr.name]=j(zr,Be[yr],mt),yr++;break}else ut[zr.name]=void 0,yr++;return yr}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:V,getOptionsNameMap:I,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument};function K(Be,yr){return $(e.compilerOptionsDidYouMeanDiagnostics,Be,yr)}e.parseCommandLine=K;function k(Be,yr){return X(I,Be,yr)}e.getOptionFromName=k;function X(Be,yr,Rr){Rr===void 0&&(Rr=!1),yr=yr.toLowerCase();var zr=Be(),ut=zr.optionsNameMap,mt=zr.shortOptionNames;if(Rr){var Lt=mt.get(yr);Lt!==void 0&&(yr=Lt)}return ut.get(yr)}var O;function x(){return O||(O=g(e.buildOpts))}var ie={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:I},Z={alternateMode:ie,getOptionsNameMap:x,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function re(Be){var yr=$(Z,Be),Rr=yr.options,zr=yr.watchOptions,ut=yr.fileNames,mt=yr.errors,Lt=Rr;return ut.length===0&&ut.push("."),Lt.clean&&Lt.force&&mt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),Lt.clean&&Lt.verbose&&mt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),Lt.clean&&Lt.watch&&mt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),Lt.watch&&Lt.dry&&mt.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:Lt,watchOptions:zr,projects:ut,errors:mt}}e.parseBuildCommand=re;function q(Be){for(var yr=[],Rr=1;Rr<arguments.length;Rr++)yr[Rr-1]=arguments[Rr];var zr=e.createCompilerDiagnostic.apply(void 0,arguments);return zr.messageText}e.getDiagnosticText=q;function P(Be,yr,Rr,zr,ut,mt){var Lt=w(Be,function(Nt){return Rr.readFile(Nt)});if(!e.isString(Lt)){Rr.onUnRecoverableConfigFileDiagnostic(Lt);return}var vt=e.parseJsonText(Be,Lt),pt=Rr.getCurrentDirectory();return vt.path=e.toPath(Be,pt,e.createGetCanonicalFileName(Rr.useCaseSensitiveFileNames)),vt.resolvedPath=vt.path,vt.originalFileName=vt.fileName,gr(vt,Rr,e.getNormalizedAbsolutePath(e.getDirectoryPath(Be),pt),yr,e.getNormalizedAbsolutePath(Be,pt),void 0,mt,zr,ut)}e.getParsedCommandLineOfConfigFile=P;function M(Be,yr){var Rr=w(Be,yr);return e.isString(Rr)?Q(Be,Rr):{config:{},error:Rr}}e.readConfigFile=M;function Q(Be,yr){var Rr=e.parseJsonText(Be,yr);return{config:ae(Rr,Rr.parseDiagnostics,!1,void 0),error:Rr.parseDiagnostics.length?Rr.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=Q;function H(Be,yr){var Rr=w(Be,yr);return e.isString(Rr)?e.parseJsonText(Be,Rr):{fileName:Be,parseDiagnostics:[Rr]}}e.readJsonConfigFile=H;function w(Be,yr){var Rr;try{Rr=yr(Be)}catch(zr){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Be,zr.message)}return Rr===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,Be):Rr}e.tryReadFile=w;function d(Be){return e.arrayToMap(Be,E)}var B={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},T;function _(){return T||(T=g(e.optionsForWatch))}var h={getOptionsNameMap:_,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1},R;function b(){return R||(R=d(e.optionDeclarations))}var G;function Y(){return G||(G=d(e.optionsForWatch))}var pe;function A(){return pe||(pe=d(e.typeAcquisitionDeclarations))}var _e;function Se(){return _e===void 0&&(_e={name:void 0,type:"object",elementOptions:d([{name:"compilerOptions",type:"object",elementOptions:b(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:Y(),extraKeyDiagnostics:h},{name:"typingOptions",type:"object",elementOptions:A(),extraKeyDiagnostics:B},{name:"typeAcquisition",type:"object",elementOptions:A(),extraKeyDiagnostics:B},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),_e}function ae(Be,yr,Rr,zr){var ut,mt=(ut=Be.statements[0])===null||ut===void 0?void 0:ut.expression,Lt=Rr?Se():void 0;if(mt&&mt.kind!==204){if(yr.push(e.createDiagnosticForNodeInSourceFile(Be,mt,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(Be.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(mt)){var vt=e.find(mt.elements,e.isObjectLiteralExpression);if(vt)return be(Be,vt,yr,!0,Lt,zr)}return{}}return be(Be,mt,yr,!0,Lt,zr)}function D(Be,yr){var Rr;return be(Be,(Rr=Be.statements[0])===null||Rr===void 0?void 0:Rr.expression,yr,!0,void 0,void 0)}e.convertToObject=D;function be(Be,yr,Rr,zr,ut,mt){if(!yr)return zr?{}:void 0;return Nt(yr,ut);function Lt(st){return ut&&ut.elementOptions===st}function vt(st,$t,Pn,Ea){for(var ia=zr?{}:void 0,pa=function(Ut){if(Ut.kind!==294)return Rr.push(e.createDiagnosticForNodeInSourceFile(Be,Ut,e.Diagnostics.Property_assignment_expected)),"continue";Ut.questionToken&&Rr.push(e.createDiagnosticForNodeInSourceFile(Be,Ut.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),Xt(Ut.name)||Rr.push(e.createDiagnosticForNodeInSourceFile(Be,Ut.name,e.Diagnostics.String_literal_with_double_quotes_expected));var Kt=e.isComputedNonLiteralName(Ut.name)?void 0:e.getTextOfPropertyName(Ut.name),bn=Kt&&e.unescapeLeadingUnderscores(Kt),wn=bn&&$t?$t.get(bn):void 0;bn&&Pn&&!wn&&($t?Rr.push(F(bn,Pn,function(Ct,Pt,Et){return e.createDiagnosticForNodeInSourceFile(Be,Ut.name,Ct,Pt,Et)})):Rr.push(e.createDiagnosticForNodeInSourceFile(Be,Ut.name,Pn.unknownOptionDiagnostic,bn)));var ra=Nt(Ut.initializer,wn);if(typeof bn!="undefined"&&(zr&&(ia[bn]=ra),mt&&(Ea||Lt($t)))){var ft=J(wn,ra);Ea?ft&&mt.onSetValidOptionKeyValueInParent(Ea,wn,ra):Lt($t)&&(ft?mt.onSetValidOptionKeyValueInRoot(bn,Ut.name,ra,Ut.initializer):wn||mt.onSetUnknownOptionKeyValueInRoot(bn,Ut.name,ra,Ut.initializer))}},Gn=0,nn=st.properties;Gn<nn.length;Gn++){var bt=nn[Gn];pa(bt)}return ia}function pt(st,$t){if(!zr){st.forEach(function(Pn){return Nt(Pn,$t)});return}return e.filter(st.map(function(Pn){return Nt(Pn,$t)}),function(Pn){return Pn!==void 0})}function Nt(st,$t){var Pn;switch(st.kind){case 110:return bn($t&&$t.type!=="boolean"),Kt(!0);case 95:return bn($t&&$t.type!=="boolean"),Kt(!1);case 104:return bn($t&&$t.name==="extends"),Kt(null);case 10:Xt(st)||Rr.push(e.createDiagnosticForNodeInSourceFile(Be,st,e.Diagnostics.String_literal_with_double_quotes_expected)),bn($t&&e.isString($t.type)&&$t.type!=="string");var Ea=st.text;if($t&&!e.isString($t.type)){var ia=$t;ia.type.has(Ea.toLowerCase())||(Rr.push(y(ia,function(wn,ra,ft){return e.createDiagnosticForNodeInSourceFile(Be,st,wn,ra,ft)})),Pn=!0)}return Kt(Ea);case 8:return bn($t&&$t.type!=="number"),Kt(Number(st.text));case 218:if(st.operator!==40||st.operand.kind!==8)break;return bn($t&&$t.type!=="number"),Kt(-Number(st.operand.text));case 204:bn($t&&$t.type!=="object");var pa=st;if($t){var Gn=$t,nn=Gn.elementOptions,bt=Gn.extraKeyDiagnostics,Ut=Gn.name;return Kt(vt(pa,nn,bt,Ut))}else return Kt(vt(pa,void 0,void 0,void 0));case 203:return bn($t&&$t.type!=="list"),Kt(pt(st.elements,$t&&$t.element))}$t?bn(!0):Rr.push(e.createDiagnosticForNodeInSourceFile(Be,st,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));return;function Kt(wn){var ra;if(!Pn){var ft=(ra=$t==null?void 0:$t.extraValidation)===null||ra===void 0?void 0:ra.call($t,wn);if(ft){Rr.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,Bt([Be,st],ft,!1)));return}}return wn}function bn(wn){wn&&(Rr.push(e.createDiagnosticForNodeInSourceFile(Be,st,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,$t.name,ne($t))),Pn=!0)}}function Xt(st){return e.isStringLiteral(st)&&e.isStringDoubleQuoted(st,Be)}}e.convertToObjectWorker=be;function ne(Be){return Be.type==="list"?"Array":e.isString(Be.type)?Be.type:"string"}function J(Be,yr){if(Be){if(Nr(yr))return!0;if(Be.type==="list")return e.isArray(yr);var Rr=e.isString(Be.type)?Be.type:"string";return typeof yr===Rr}return!1}function le(Be,yr,Rr){var zr,ut,mt,Lt=e.createGetCanonicalFileName(Rr.useCaseSensitiveFileNames),vt=e.map(e.filter(Be.fileNames,!((ut=(zr=Be.options.configFile)===null||zr===void 0?void 0:zr.configFileSpecs)===null||ut===void 0)&&ut.validatedIncludeSpecs?Ke(yr,Be.options.configFile.configFileSpecs.validatedIncludeSpecs,Be.options.configFile.configFileSpecs.validatedExcludeSpecs,Rr):e.returnTrue),function(st){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(yr,Rr.getCurrentDirectory()),e.getNormalizedAbsolutePath(st,Rr.getCurrentDirectory()),Lt)}),pt=se(Be.options,{configFilePath:e.getNormalizedAbsolutePath(yr,Rr.getCurrentDirectory()),useCaseSensitiveFileNames:Rr.useCaseSensitiveFileNames}),Nt=Be.watchOptions&&xe(Be.watchOptions),Xt=kn(kn({compilerOptions:kn(kn({},Te(pt)),{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:Nt&&Te(Nt),references:e.map(Be.projectReferences,function(st){return kn(kn({},st),{path:st.originalPath?st.originalPath:"",originalPath:void 0})}),files:e.length(vt)?vt:void 0},!((mt=Be.options.configFile)===null||mt===void 0)&&mt.configFileSpecs?{include:Me(Be.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:Be.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:Be.compileOnSave?!0:void 0});return Xt}e.convertToTSConfig=le;function Te(Be){return kn({},e.arrayFrom(Be.entries()).reduce(function(yr,Rr){var zr;return kn(kn({},yr),(zr={},zr[Rr[0]]=Rr[1],zr))},{}))}function Me(Be){if(!!e.length(Be)){if(e.length(Be)!==1)return Be;if(Be[0]!=="**/*")return Be}}function Ke(Be,yr,Rr,zr){if(!yr)return e.returnTrue;var ut=e.getFileMatcherPatterns(Be,Rr,yr,zr.useCaseSensitiveFileNames,zr.getCurrentDirectory()),mt=ut.excludePattern&&e.getRegexFromPattern(ut.excludePattern,zr.useCaseSensitiveFileNames),Lt=ut.includeFilePattern&&e.getRegexFromPattern(ut.includeFilePattern,zr.useCaseSensitiveFileNames);return Lt?mt?function(vt){return!(Lt.test(vt)&&!mt.test(vt))}:function(vt){return!Lt.test(vt)}:mt?function(vt){return mt.test(vt)}:e.returnTrue}function Ae(Be){if(!(Be.type==="string"||Be.type==="number"||Be.type==="boolean"||Be.type==="object"))return Be.type==="list"?Ae(Be.element):Be.type}function Ge(Be,yr){return e.forEachEntry(yr,function(Rr,zr){if(Rr===Be)return zr})}function se(Be,yr){return Re(Be,I(),yr)}function xe(Be){return Re(Be,_())}function Re(Be,yr,Rr){var zr=yr.optionsNameMap,ut=new e.Map,mt=Rr&&e.createGetCanonicalFileName(Rr.useCaseSensitiveFileNames),Lt=function(pt){if(e.hasProperty(Be,pt)){if(zr.has(pt)&&(zr.get(pt).category===e.Diagnostics.Command_line_Options||zr.get(pt).category===e.Diagnostics.Output_Formatting))return"continue";var Nt=Be[pt],Xt=zr.get(pt.toLowerCase());if(Xt){var st=Ae(Xt);st?Xt.type==="list"?ut.set(pt,Nt.map(function($t){return Ge($t,st)})):ut.set(pt,Ge(Nt,st)):Rr&&Xt.isFilePath?ut.set(pt,e.getRelativePathFromFile(Rr.configFilePath,e.getNormalizedAbsolutePath(Nt,e.getDirectoryPath(Rr.configFilePath)),mt)):ut.set(pt,Nt)}}};for(var vt in Be)Lt(vt);return ut}function ce(Be,yr){var Rr=Ue(Be);return ut();function zr(mt){return Array(mt+1).join(" ")}function ut(){var mt=[],Lt=zr(2);return u.forEach(function(vt){if(!!Rr.has(vt.name)){var pt=Rr.get(vt.name),Nt=Or(vt);pt!==Nt?mt.push("".concat(Lt).concat(vt.name,": ").concat(pt)):e.hasProperty(e.defaultInitCompilerOptions,vt.name)&&mt.push("".concat(Lt).concat(vt.name,": ").concat(Nt))}}),mt.join(yr)+yr}}e.getCompilerOptionsDiffValue=ce;function Ue(Be){var yr=e.extend(Be,e.defaultInitCompilerOptions);return se(yr)}function We(Be,yr,Rr){var zr=Ue(Be);return Lt();function ut(vt){return Array(vt+1).join(" ")}function mt(vt){var pt=vt.category,Nt=vt.name,Xt=vt.isCommandLineOnly,st=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!Xt&&pt!==void 0&&(!st.includes(pt)||zr.has(Nt))}function Lt(){for(var vt=e.createMultiMap(),pt=0,Nt=e.optionDeclarations;pt<Nt.length;pt++){var Xt=Nt[pt],st=Xt.category;mt(Xt)&&vt.add(e.getLocaleSpecificMessage(st),Xt)}var $t=0,Pn=0,Ea=[];vt.forEach(function(ra,ft){Ea.length!==0&&Ea.push({value:""}),Ea.push({value:"/* ".concat(ft," */")});for(var Ct=0,Pt=ra;Ct<Pt.length;Ct++){var Et=Pt[Ct],et=void 0;zr.has(Et.name)?et='"'.concat(Et.name,'": ').concat(JSON.stringify(zr.get(Et.name))).concat((Pn+=1)===zr.size?"":","):et='// "'.concat(Et.name,'": ').concat(JSON.stringify(Or(Et)),","),Ea.push({value:et,description:"/* ".concat(Et.description&&e.getLocaleSpecificMessage(Et.description)||Et.name," */")}),$t=Math.max(et.length,$t)}});var ia=ut(2),pa=[];pa.push("{"),pa.push("".concat(ia,'"compilerOptions": {')),pa.push("".concat(ia).concat(ia,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file)," */")),pa.push("");for(var Gn=0,nn=Ea;Gn<nn.length;Gn++){var bt=nn[Gn],Ut=bt.value,Kt=bt.description,bn=Kt===void 0?"":Kt;pa.push(Ut&&"".concat(ia).concat(ia).concat(Ut).concat(bn&&ut($t-Ut.length+2)+bn))}if(yr.length){pa.push("".concat(ia,"},")),pa.push("".concat(ia,'"files": ['));for(var wn=0;wn<yr.length;wn++)pa.push("".concat(ia).concat(ia).concat(JSON.stringify(yr[wn])).concat(wn===yr.length-1?"":","));pa.push("".concat(ia,"]"))}else pa.push("".concat(ia,"}"));return pa.push("}"),pa.join(Rr)+Rr}}e.generateTSConfig=We;function Ne(Be,yr){var Rr={},zr=I().optionsNameMap;for(var ut in Be)e.hasProperty(Be,ut)&&(Rr[ut]=ve(zr.get(ut.toLowerCase()),Be[ut],yr));return Rr.configFilePath&&(Rr.configFilePath=yr(Rr.configFilePath)),Rr}e.convertToOptionsWithAbsolutePaths=Ne;function ve(Be,yr,Rr){if(Be&&!Nr(yr)){if(Be.type==="list"){var zr=yr;if(Be.element.isFilePath&&zr.length)return zr.map(Rr)}else if(Be.isFilePath)return Rr(yr)}return yr}function Ve(Be,yr,Rr,zr,ut,mt,Lt,vt,pt){return xr(Be,void 0,yr,Rr,zr,pt,ut,mt,Lt,vt)}e.parseJsonConfigFileContent=Ve;function gr(Be,yr,Rr,zr,ut,mt,Lt,vt,pt){return xr(void 0,Be,yr,Rr,zr,pt,ut,mt,Lt,vt)}e.parseJsonSourceFileConfigFileContent=gr;function Er(Be,yr){yr&&Object.defineProperty(Be,"configFile",{enumerable:!1,writable:!1,value:yr})}e.setConfigFileInOptions=Er;function Nr(Be){return Be==null}function ur(Be,yr){return e.getDirectoryPath(e.getNormalizedAbsolutePath(Be,yr))}function xr(Be,yr,Rr,zr,ut,mt,Lt,vt,pt,Nt){ut===void 0&&(ut={}),vt===void 0&&(vt=[]),pt===void 0&&(pt=[]),e.Debug.assert(Be===void 0&&yr!==void 0||Be!==void 0&&yr===void 0);var Xt=[],st=we(Be,yr,Rr,zr,Lt,vt,Xt,Nt),$t=st.raw,Pn=e.extend(ut,st.options||{}),Ea=mt&&st.watchOptions?e.extend(mt,st.watchOptions):st.watchOptions||mt;Pn.configFilePath=Lt&&e.normalizeSlashes(Lt);var ia=Gn();yr&&(yr.configFileSpecs=ia),Er(Pn,yr);var pa=e.normalizePath(Lt?ur(Lt,zr):zr);return{options:Pn,watchOptions:Ea,fileNames:nn(pa),projectReferences:bt(pa),typeAcquisition:st.typeAcquisition||ot(),raw:$t,errors:Xt,wildcardDirectories:ke(ia,pa,Rr.useCaseSensitiveFileNames),compileOnSave:!!$t.compileOnSave};function Gn(){var ra=bn("references",function(Fi){return typeof Fi=="object"},"object"),ft=Ut(Kt("files"));if(ft){var Ct=ra==="no-prop"||e.isArray(ra)&&ra.length===0,Pt=e.hasProperty($t,"extends");if(ft.length===0&&Ct&&!Pt)if(yr){var Et=Lt||"tsconfig.json",et=e.Diagnostics.The_files_list_in_config_file_0_is_empty,hn=e.firstDefined(e.getTsConfigPropArray(yr,"files"),function(Fi){return Fi.initializer}),Qn=hn?e.createDiagnosticForNodeInSourceFile(yr,hn,et,Et):e.createCompilerDiagnostic(et,Et);Xt.push(Qn)}else wn(e.Diagnostics.The_files_list_in_config_file_0_is_empty,Lt||"tsconfig.json")}var Ra=Ut(Kt("include")),Ki=Kt("exclude"),di=Ut(Ki);if(Ki==="no-prop"&&$t.compilerOptions){var ya=$t.compilerOptions.outDir,$a=$t.compilerOptions.declarationDir;(ya||$a)&&(di=[ya,$a].filter(function(Fi){return!!Fi}))}ft===void 0&&Ra===void 0&&(Ra=["**/*"]);var ao,ei;return Ra&&(ao=De(Ra,Xt,!0,yr,"include")),di&&(ei=De(di,Xt,!1,yr,"exclude")),{filesSpecs:ft,includeSpecs:Ra,excludeSpecs:di,validatedFilesSpec:e.filter(ft,e.isString),validatedIncludeSpecs:ao,validatedExcludeSpecs:ei,pathPatterns:void 0}}function nn(ra){var ft=pr(ia,ra,Pn,Rr,pt);return Mr(ft,fr($t),vt)&&Xt.push(i(ia,Lt)),ft}function bt(ra){var ft,Ct=bn("references",function(hn){return typeof hn=="object"},"object");if(e.isArray(Ct))for(var Pt=0,Et=Ct;Pt<Et.length;Pt++){var et=Et[Pt];typeof et.path!="string"?wn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ft||(ft=[])).push({path:e.getNormalizedAbsolutePath(et.path,ra),originalPath:et.path,prepend:et.prepend,circular:et.circular})}return ft}function Ut(ra){return e.isArray(ra)?ra:void 0}function Kt(ra){return bn(ra,e.isString,"string")}function bn(ra,ft,Ct){if(e.hasProperty($t,ra)&&!Nr($t[ra]))if(e.isArray($t[ra])){var Pt=$t[ra];return!yr&&!e.every(Pt,ft)&&Xt.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,ra,Ct)),Pt}else return wn(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,ra,"Array"),"not-array";return"no-prop"}function wn(ra,ft,Ct){yr||Xt.push(e.createCompilerDiagnostic(ra,ft,Ct))}}function sr(Be){return Be.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function i(Be,yr){var Rr=Be.includeSpecs,zr=Be.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,yr||"tsconfig.json",JSON.stringify(Rr||[]),JSON.stringify(zr||[]))}function Mr(Be,yr,Rr){return Be.length===0&&yr&&(!Rr||Rr.length===0)}function fr(Be){return!e.hasProperty(Be,"files")&&!e.hasProperty(Be,"references")}e.canJsonReportNoInputFiles=fr;function Ar(Be,yr,Rr,zr,ut){var mt=zr.length;return Mr(Be,ut)?zr.push(i(Rr,yr)):e.filterMutate(zr,function(Lt){return!sr(Lt)}),mt!==zr.length}e.updateErrorForNoInputFiles=Ar;function de(Be){return!!Be.options}function we(Be,yr,Rr,zr,ut,mt,Lt,vt){var pt;zr=e.normalizeSlashes(zr);var Nt=e.getNormalizedAbsolutePath(ut||"",zr);if(mt.indexOf(Nt)>=0)return Lt.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,Bt(Bt([],mt,!0),[Nt],!1).join(" -> "))),{raw:Be||D(yr,Lt)};var Xt=Be?qe(Be,Rr,zr,ut,Lt):Cr(yr,Rr,zr,ut,Lt);if(!((pt=Xt.options)===null||pt===void 0)&&pt.paths&&(Xt.options.pathsBasePath=zr),Xt.extendedConfigPath){mt=mt.concat([Nt]);var st=He(yr,Xt.extendedConfigPath,Rr,mt,Lt,vt);if(st&&de(st)){var $t=st.raw,Pn=Xt.raw,Ea,ia=function(pa){!Pn[pa]&&$t[pa]&&(Pn[pa]=e.map($t[pa],function(Gn){return e.isRootedDiskPath(Gn)?Gn:e.combinePaths(Ea||(Ea=e.convertToRelativePath(e.getDirectoryPath(Xt.extendedConfigPath),zr,e.createGetCanonicalFileName(Rr.useCaseSensitiveFileNames))),Gn)}))};ia("include"),ia("exclude"),ia("files"),Pn.compileOnSave===void 0&&(Pn.compileOnSave=$t.compileOnSave),Xt.options=e.assign({},st.options,Xt.options),Xt.watchOptions=Xt.watchOptions&&st.watchOptions?e.assign({},st.watchOptions,Xt.watchOptions):Xt.watchOptions||st.watchOptions}}return Xt}function qe(Be,yr,Rr,zr,ut){e.hasProperty(Be,"excludes")&&ut.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var mt=Yr(Be.compilerOptions,Rr,ut,zr),Lt=_t(Be.typeAcquisition||Be.typingOptions,Rr,ut,zr),vt=kt(Be.watchOptions,Rr,ut);Be.compileOnSave=lr(Be,Rr,ut);var pt;if(Be.extends)if(!e.isString(Be.extends))ut.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var Nt=zr?ur(zr,Rr):Rr;pt=kr(Be.extends,yr,Nt,ut,e.createCompilerDiagnostic)}return{raw:Be,options:mt,watchOptions:vt,typeAcquisition:Lt,extendedConfigPath:pt}}function Cr(Be,yr,Rr,zr,ut){var mt=Sr(zr),Lt,vt,pt,Nt,Xt,st={onSetValidOptionKeyValueInParent:function(Pn,Ea,ia){var pa;switch(Pn){case"compilerOptions":pa=mt;break;case"watchOptions":pa=pt||(pt={});break;case"typeAcquisition":pa=Lt||(Lt=ot(zr));break;case"typingOptions":pa=vt||(vt=ot(zr));break;default:e.Debug.fail("Unknown option")}pa[Ea.name]=Mn(Ea,Rr,ia)},onSetValidOptionKeyValueInRoot:function(Pn,Ea,ia,pa){switch(Pn){case"extends":var Gn=zr?ur(zr,Rr):Rr;Nt=kr(ia,yr,Gn,ut,function(nn,bt){return e.createDiagnosticForNodeInSourceFile(Be,pa,nn,bt)});return}},onSetUnknownOptionKeyValueInRoot:function(Pn,Ea,ia,pa){Pn==="excludes"&&ut.push(e.createDiagnosticForNodeInSourceFile(Be,Ea,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(u,function(Gn){return Gn.name===Pn})&&(Xt=e.append(Xt,Ea))}},$t=ae(Be,ut,!0,st);return Lt||(vt?Lt=vt.enableAutoDiscovery!==void 0?{enable:vt.enableAutoDiscovery,include:vt.include,exclude:vt.exclude}:vt:Lt=ot(zr)),Xt&&$t&&$t.compilerOptions===void 0&&ut.push(e.createDiagnosticForNodeInSourceFile(Be,Xt[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(Xt[0]))),{raw:$t,options:mt,watchOptions:pt,typeAcquisition:Lt,extendedConfigPath:Nt}}function kr(Be,yr,Rr,zr,ut){if(Be=e.normalizeSlashes(Be),e.isRootedDiskPath(Be)||e.startsWith(Be,"./")||e.startsWith(Be,"../")){var mt=e.getNormalizedAbsolutePath(Be,Rr);if(!yr.fileExists(mt)&&!e.endsWith(mt,".json")&&(mt="".concat(mt,".json"),!yr.fileExists(mt))){zr.push(ut(e.Diagnostics.File_0_not_found,Be));return}return mt}var Lt=e.nodeModuleNameResolver(Be,e.combinePaths(Rr,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},yr,void 0,void 0,!0);if(Lt.resolvedModule)return Lt.resolvedModule.resolvedFileName;zr.push(ut(e.Diagnostics.File_0_not_found,Be))}function He(Be,yr,Rr,zr,ut,mt){var Lt,vt=Rr.useCaseSensitiveFileNames?yr:e.toFileNameLowerCase(yr),pt,Nt,Xt;if(mt&&(pt=mt.get(vt))?(Nt=pt.extendedResult,Xt=pt.extendedConfig):(Nt=H(yr,function(st){return Rr.readFile(st)}),Nt.parseDiagnostics.length||(Xt=we(void 0,Nt,Rr,e.getDirectoryPath(yr),e.getBaseFileName(yr),zr,ut,mt)),mt&&mt.set(vt,{extendedResult:Nt,extendedConfig:Xt})),Be&&(Be.extendedSourceFiles=[Nt.fileName],Nt.extendedSourceFiles&&(Lt=Be.extendedSourceFiles).push.apply(Lt,Nt.extendedSourceFiles)),Nt.parseDiagnostics.length){ut.push.apply(ut,Nt.parseDiagnostics);return}return Xt}function lr(Be,yr,Rr){if(!e.hasProperty(Be,e.compileOnSaveCommandLineOption.name))return!1;var zr=vn(e.compileOnSaveCommandLineOption,Be.compileOnSave,yr,Rr);return typeof zr=="boolean"&&zr}function Hr(Be,yr,Rr){var zr=[],ut=Yr(Be,yr,zr,Rr);return{options:ut,errors:zr}}e.convertCompilerOptionsFromJson=Hr;function Je(Be,yr,Rr){var zr=[],ut=_t(Be,yr,zr,Rr);return{options:ut,errors:zr}}e.convertTypeAcquisitionFromJson=Je;function Sr(Be){var yr=Be&&e.getBaseFileName(Be)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return yr}function Yr(Be,yr,Rr,zr){var ut=Sr(zr);return Yt(b(),Be,yr,ut,e.compilerOptionsDidYouMeanDiagnostics,Rr),zr&&(ut.configFilePath=e.normalizeSlashes(zr)),ut}function ot(Be){return{enable:!!Be&&e.getBaseFileName(Be)==="jsconfig.json",include:[],exclude:[]}}function _t(Be,yr,Rr,zr){var ut=ot(zr),mt=L(Be);return Yt(A(),mt,yr,ut,B,Rr),ut}function kt(Be,yr,Rr){return Yt(Y(),Be,yr,void 0,h,Rr)}function Yt(Be,yr,Rr,zr,ut,mt){if(!!yr){for(var Lt in yr){var vt=Be.get(Lt);vt?(zr||(zr={}))[vt.name]=vn(vt,yr[Lt],Rr,mt):mt.push(F(Lt,ut,e.createCompilerDiagnostic))}return zr}}function vn(Be,yr,Rr,zr){if(J(Be,yr)){var ut=Be.type;if(ut==="list"&&e.isArray(yr))return ir(Be,yr,Rr,zr);if(!e.isString(ut))return Zr(Be,yr,zr);var mt=nr(Be,yr,zr);return Nr(mt)?mt:qn(Be,Rr,mt)}else zr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Be.name,ne(Be)))}e.convertJsonOption=vn;function Mn(Be,yr,Rr){if(!Nr(Rr)){if(Be.type==="list"){var zr=Be;return zr.element.isFilePath||!e.isString(zr.element.type)?e.filter(e.map(Rr,function(ut){return Mn(zr.element,yr,ut)}),function(ut){return!!ut}):Rr}else if(!e.isString(Be.type))return Be.type.get(e.isString(Rr)?Rr.toLowerCase():Rr);return qn(Be,yr,Rr)}}function qn(Be,yr,Rr){return Be.isFilePath&&(Rr=e.getNormalizedAbsolutePath(Rr,yr),Rr===""&&(Rr=".")),Rr}function nr(Be,yr,Rr){var zr;if(!Nr(yr)){var ut=(zr=Be.extraValidation)===null||zr===void 0?void 0:zr.call(Be,yr);if(!ut)return yr;Rr.push(e.createCompilerDiagnostic.apply(void 0,ut))}}function Zr(Be,yr,Rr){if(!Nr(yr)){var zr=yr.toLowerCase(),ut=Be.type.get(zr);if(ut!==void 0)return nr(Be,ut,Rr);Rr.push(m(Be))}}function ir(Be,yr,Rr,zr){return e.filter(e.map(yr,function(ut){return vn(Be.element,ut,Rr,zr)}),function(ut){return!!ut})}var ge=/(^|\/)\*\*\/?$/,rr=/^[^*?]*(?=\/[^/]*[*?])/;function pr(Be,yr,Rr,zr,ut){ut===void 0&&(ut=e.emptyArray),yr=e.normalizePath(yr);var mt=e.createGetCanonicalFileName(zr.useCaseSensitiveFileNames),Lt=new e.Map,vt=new e.Map,pt=new e.Map,Nt=Be.validatedFilesSpec,Xt=Be.validatedIncludeSpecs,st=Be.validatedExcludeSpecs,$t=e.getSupportedExtensions(Rr,ut),Pn=e.getSupportedExtensionsWithJsonIfResolveJsonModule(Rr,$t);if(Nt)for(var Ea=0,ia=Nt;Ea<ia.length;Ea++){var pa=ia[Ea],Gn=e.getNormalizedAbsolutePath(pa,yr);Lt.set(mt(Gn),Gn)}var nn;if(Xt&&Xt.length>0)for(var bt=function(ra){if(e.fileExtensionIs(ra,".json")){if(!nn){var ft=Xt.filter(function(hn){return e.endsWith(hn,".json")}),Ct=e.map(e.getRegularExpressionsForWildcards(ft,yr,"files"),function(hn){return"^".concat(hn,"$")});nn=Ct?Ct.map(function(hn){return e.getRegexFromPattern(hn,zr.useCaseSensitiveFileNames)}):e.emptyArray}var Pt=e.findIndex(nn,function(hn){return hn.test(ra)});if(Pt!==-1){var Et=mt(ra);!Lt.has(Et)&&!pt.has(Et)&&pt.set(Et,ra)}return"continue"}if(Xe(ra,Lt,vt,$t,mt))return"continue";Qe(ra,vt,$t,mt);var et=mt(ra);!Lt.has(et)&&!vt.has(et)&&vt.set(et,ra)},Ut=0,Kt=zr.readDirectory(yr,e.flatten(Pn),st,Xt,void 0);Ut<Kt.length;Ut++){var Gn=Kt[Ut];bt(Gn)}var bn=e.arrayFrom(Lt.values()),wn=e.arrayFrom(vt.values());return bn.concat(wn,e.arrayFrom(pt.values()))}e.getFileNamesFromConfigSpecs=pr;function Lr(Be,yr,Rr,zr,ut){var mt=yr.validatedFilesSpec,Lt=yr.validatedIncludeSpecs,vt=yr.validatedExcludeSpecs;if(!e.length(Lt)||!e.length(vt))return!1;Rr=e.normalizePath(Rr);var pt=e.createGetCanonicalFileName(zr);if(mt)for(var Nt=0,Xt=mt;Nt<Xt.length;Nt++){var st=Xt[Nt];if(pt(e.getNormalizedAbsolutePath(st,Rr))===Be)return!1}return $e(Be,vt,zr,ut,Rr)}e.isExcludedFile=Lr;function Ce(Be){var yr=e.startsWith(Be,"**/")?0:Be.indexOf("/**/");if(yr===-1)return!1;var Rr=e.endsWith(Be,"/..")?Be.length:Be.lastIndexOf("/../");return Rr>yr}function cr(Be,yr,Rr,zr){return $e(Be,e.filter(yr,function(ut){return!Ce(ut)}),Rr,zr)}e.matchesExclude=cr;function $e(Be,yr,Rr,zr,ut){var mt=e.getRegularExpressionForWildcard(yr,e.combinePaths(e.normalizePath(zr),ut),"exclude"),Lt=mt&&e.getRegexFromPattern(mt,Rr);return Lt?Lt.test(Be)?!0:!e.hasExtension(Be)&&Lt.test(e.ensureTrailingDirectorySeparator(Be)):!1}function De(Be,yr,Rr,zr,ut){return Be.filter(function(Lt){if(!e.isString(Lt))return!1;var vt=z(Lt,Rr);return vt!==void 0&&yr.push(mt.apply(void 0,vt)),vt===void 0});function mt(Lt,vt){var pt=e.getTsConfigPropArrayElementValue(zr,ut,vt);return pt?e.createDiagnosticForNodeInSourceFile(zr,pt,Lt,vt):e.createCompilerDiagnostic(Lt,vt)}}function z(Be,yr){if(yr&&ge.test(Be))return[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Be];if(Ce(Be))return[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,Be]}function ke(Be,yr,Rr){var zr=Be.validatedIncludeSpecs,ut=Be.validatedExcludeSpecs,mt=e.getRegularExpressionForWildcard(ut,yr,"exclude"),Lt=mt&&new RegExp(mt,Rr?"":"i"),vt={};if(zr!==void 0){for(var pt=[],Nt=0,Xt=zr;Nt<Xt.length;Nt++){var st=Xt[Nt],$t=e.normalizePath(e.combinePaths(yr,st));if(!(Lt&&Lt.test($t))){var Pn=dr($t,Rr);if(Pn){var Ea=Pn.key,ia=Pn.flags,pa=vt[Ea];(pa===void 0||pa<ia)&&(vt[Ea]=ia,ia===1&&pt.push(Ea))}}}for(var Ea in vt)if(e.hasProperty(vt,Ea))for(var Gn=0,nn=pt;Gn<nn.length;Gn++){var bt=nn[Gn];Ea!==bt&&e.containsPath(bt,Ea,yr,!Rr)&&delete vt[Ea]}}return vt}function dr(Be,yr){var Rr=rr.exec(Be);if(Rr){var zr=Be.indexOf("?"),ut=Be.indexOf("*"),mt=Be.lastIndexOf(e.directorySeparator);return{key:yr?Rr[0]:e.toFileNameLowerCase(Rr[0]),flags:zr!==-1&&zr<mt||ut!==-1&&ut<mt?1:0}}if(e.isImplicitGlob(Be))return{key:yr?Be:e.toFileNameLowerCase(Be),flags:1}}function Xe(Be,yr,Rr,zr,ut){var mt=e.forEach(zr,function(Xt){return e.fileExtensionIsOneOf(Be,Xt)?Xt:void 0});if(!mt)return!1;for(var Lt=0,vt=mt;Lt<vt.length;Lt++){var pt=vt[Lt];if(e.fileExtensionIs(Be,pt))return!1;var Nt=ut(e.changeExtension(Be,pt));if(yr.has(Nt)||Rr.has(Nt)){if(pt===".d.ts"&&(e.fileExtensionIs(Be,".js")||e.fileExtensionIs(Be,".jsx")))continue;return!0}}return!1}function Qe(Be,yr,Rr,zr){var ut=e.forEach(Rr,function(pt){return e.fileExtensionIsOneOf(Be,pt)?pt:void 0});if(!!ut)for(var mt=ut.length-1;mt>=0;mt--){var Lt=ut[mt];if(e.fileExtensionIs(Be,Lt))return;var vt=zr(e.changeExtension(Be,Lt));yr.delete(vt)}}function Ir(Be){var yr={};for(var Rr in Be)if(Be.hasOwnProperty(Rr)){var zr=k(Rr);zr!==void 0&&(yr[Rr]=Jr(Be[Rr],zr))}return yr}e.convertCompilerOptionsForTelemetry=Ir;function Jr(Be,yr){switch(yr.type){case"object":return"";case"string":return"";case"number":return typeof Be=="number"?Be:"";case"boolean":return typeof Be=="boolean"?Be:"";case"list":var Rr=yr.element;return e.isArray(Be)?Be.map(function(zr){return Jr(zr,Rr)}):"";default:return e.forEachEntry(yr.type,function(zr,ut){if(zr===Be)return ut})}}function Or(Be){switch(Be.type){case"number":return 1;case"boolean":return!0;case"string":return Be.isFilePath?"./":"";case"list":return[];case"object":return{};default:var yr=Be.type.keys().next();return yr.done?e.Debug.fail("Expected 'option.type' to have entries."):yr.value}}})(mr||(mr={}));var mr;(function(e){function n(ir){ir.trace(e.formatMessage.apply(void 0,arguments))}e.trace=n;function c(ir,ge){return!!ir.traceResolution&&ge.trace!==void 0}e.isTraceEnabled=c;function u(ir,ge){var rr;if(ge&&ir){var pr=ir.packageJsonContent;typeof pr.name=="string"&&typeof pr.version=="string"&&(rr={name:pr.name,subModuleName:ge.path.slice(ir.packageDirectory.length+e.directorySeparator.length),version:pr.version})}return ge&&{path:ge.path,extension:ge.ext,packageId:rr}}function g(ir){return u(void 0,ir)}function p(ir){if(ir)return e.Debug.assert(ir.packageId===void 0),{path:ir.path,ext:ir.extension}}var I;(function(ir){ir[ir.TypeScript=0]="TypeScript",ir[ir.JavaScript=1]="JavaScript",ir[ir.Json=2]="Json",ir[ir.TSConfig=3]="TSConfig",ir[ir.DtsOnly=4]="DtsOnly"})(I||(I={}));function V(ir){if(!!ir)return e.Debug.assert(e.extensionIsTS(ir.extension)),{fileName:ir.path,packageId:ir.packageId}}function L(ir,ge,rr,pr){var Lr;return pr?((Lr=pr.failedLookupLocations).push.apply(Lr,rr),pr):{resolvedModule:ir&&{resolvedFileName:ir.path,originalPath:ir.originalPath===!0?void 0:ir.originalPath,extension:ir.extension,isExternalLibraryImport:ge,packageId:ir.packageId},failedLookupLocations:rr}}function m(ir,ge,rr,pr){if(!e.hasProperty(ir,ge)){pr.traceEnabled&&n(pr.host,e.Diagnostics.package_json_does_not_have_a_0_field,ge);return}var Lr=ir[ge];if(typeof Lr!==rr||Lr===null){pr.traceEnabled&&n(pr.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,ge,rr,Lr===null?"null":typeof Lr);return}return Lr}function y(ir,ge,rr,pr){var Lr=m(ir,ge,"string",pr);if(Lr!==void 0){if(!Lr){pr.traceEnabled&&n(pr.host,e.Diagnostics.package_json_had_a_falsy_0_field,ge);return}var Ce=e.normalizePath(e.combinePaths(rr,Lr));return pr.traceEnabled&&n(pr.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,ge,Lr,Ce),Ce}}function j(ir,ge,rr){return y(ir,"typings",ge,rr)||y(ir,"types",ge,rr)}function te(ir,ge,rr){return y(ir,"tsconfig",ge,rr)}function E(ir,ge,rr){return y(ir,"main",ge,rr)}function F(ir,ge){var rr=m(ir,"typesVersions","object",ge);if(rr!==void 0)return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),rr}function $(ir,ge){var rr=F(ir,ge);if(rr!==void 0){if(ge.traceEnabled)for(var pr in rr)e.hasProperty(rr,pr)&&!e.VersionRange.tryParse(pr)&&n(ge.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,pr);var Lr=K(rr);if(!Lr){ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor);return}var Ce=Lr.version,cr=Lr.paths;if(typeof cr!="object"){ge.traceEnabled&&n(ge.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(Ce,"']"),"object",typeof cr);return}return Lr}}var C;function K(ir){C||(C=new e.Version(e.version));for(var ge in ir)if(!!e.hasProperty(ir,ge)){var rr=e.VersionRange.tryParse(ge);if(rr!==void 0&&rr.test(C))return{version:ge,paths:ir[ge]}}}e.getPackageJsonTypesVersionsPaths=K;function k(ir,ge){if(ir.typeRoots)return ir.typeRoots;var rr;if(ir.configFilePath?rr=e.getDirectoryPath(ir.configFilePath):ge.getCurrentDirectory&&(rr=ge.getCurrentDirectory()),rr!==void 0)return X(rr,ge)}e.getEffectiveTypeRoots=k;function X(ir,ge){if(!ge.directoryExists)return[e.combinePaths(ir,O)];var rr;return e.forEachAncestorDirectory(e.normalizePath(ir),function(pr){var Lr=e.combinePaths(pr,O);ge.directoryExists(Lr)&&(rr||(rr=[])).push(Lr)}),rr}var O=e.combinePaths("node_modules","@types");function x(ir,ge,rr){var pr=typeof rr.useCaseSensitiveFileNames=="function"?rr.useCaseSensitiveFileNames():rr.useCaseSensitiveFileNames;return e.comparePaths(ir,ge,!pr)===0}function ie(ir,ge,rr,pr,Lr,Ce){var cr=c(rr,pr);Lr&&(rr=Lr.commandLine.options);var $e=ge?e.getDirectoryPath(ge):void 0,De=$e?Ce&&Ce.getOrCreateCacheForDirectory($e,Lr):void 0,z=De&&De.get(ir,void 0);if(z)return cr&&(n(pr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,ir,ge),Lr&&n(pr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Lr.sourceFile.fileName),n(pr,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,ir,$e),zr(z)),z;var ke=k(rr,pr);cr&&(ge===void 0?ke===void 0?n(pr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,ir):n(pr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,ir,ke):ke===void 0?n(pr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,ir,ge):n(pr,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,ir,ge,ke),Lr&&n(pr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Lr.sourceFile.fileName));var dr=[],Xe=e.getEmitModuleResolutionKind(rr)===e.ModuleResolutionKind.Node12?A.Node12Default:e.getEmitModuleResolutionKind(rr)===e.ModuleResolutionKind.NodeNext?A.NodeNextDefault:A.None,Qe={compilerOptions:rr,host:pr,traceEnabled:cr,failedLookupLocations:dr,packageJsonInfoCache:Ce,features:Xe,conditions:["node","require","types"]},Ir=ut(),Jr=!0;Ir||(Ir=mt(),Jr=!1);var Or;if(Ir){var Be=Ir.fileName,yr=Ir.packageId,Rr=rr.preserveSymlinks?Be:Ke(Be,pr,cr);Or={primary:Jr,resolvedFileName:Rr,originalPath:x(Be,Rr,pr)?void 0:Be,packageId:yr,isExternalLibraryImport:Ge(Be)}}return z={resolvedTypeReferenceDirective:Or,failedLookupLocations:dr},De==null||De.set(ir,void 0,z),cr&&zr(z),z;function zr(Lt){var vt;!((vt=Lt.resolvedTypeReferenceDirective)===null||vt===void 0)&&vt.resolvedFileName?Lt.resolvedTypeReferenceDirective.packageId?n(pr,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,ir,Lt.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(Lt.resolvedTypeReferenceDirective.packageId),Lt.resolvedTypeReferenceDirective.primary):n(pr,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,ir,Lt.resolvedTypeReferenceDirective.resolvedFileName,Lt.resolvedTypeReferenceDirective.primary):n(pr,e.Diagnostics.Type_reference_directive_0_was_not_resolved,ir)}function ut(){if(ke&&ke.length)return cr&&n(pr,e.Diagnostics.Resolving_with_primary_search_path_0,ke.join(", ")),e.firstDefined(ke,function(Lt){var vt=e.combinePaths(Lt,ir),pt=e.getDirectoryPath(vt),Nt=e.directoryProbablyExists(pt,pr);return!Nt&&cr&&n(pr,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,pt),V(Ve(I.DtsOnly,vt,!Nt,Qe))});cr&&n(pr,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function mt(){var Lt=ge&&e.getDirectoryPath(ge);if(Lt!==void 0){cr&&n(pr,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,Lt);var vt;if(e.isExternalModuleNameRelative(ir)){var Nt=e.normalizePathAndParts(e.combinePaths(Lt,ir)).path;vt=Ae(I.DtsOnly,Nt,!1,Qe,!0)}else{var pt=kr(I.DtsOnly,ir,Lt,Qe,void 0,void 0);vt=pt&&pt.value}return V(vt)}else cr&&n(pr,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}e.resolveTypeReferenceDirective=ie;function Z(ir,ge){if(ir.types)return ir.types;var rr=[];if(ge.directoryExists&&ge.getDirectories){var pr=k(ir,ge);if(pr)for(var Lr=0,Ce=pr;Lr<Ce.length;Lr++){var cr=Ce[Lr];if(ge.directoryExists(cr))for(var $e=0,De=ge.getDirectories(cr);$e<De.length;$e++){var z=De[$e],ke=e.normalizePath(z),dr=e.combinePaths(cr,ke,"package.json"),Xe=ge.fileExists(dr)&&e.readJson(dr,ge).typings===null;if(!Xe){var Qe=e.getBaseFileName(ke);Qe.charCodeAt(0)!==46&&rr.push(Qe)}}}}return rr}e.getAutomaticTypeDirectiveNames=Z;function re(ir){var ge=new e.Map,rr=new e.Map;return{getOwnMap:pr,redirectsMap:rr,getOrCreateMapOfCacheRedirects:cr,clear:$e,setOwnOptions:Lr,setOwnMap:Ce};function pr(){return ge}function Lr(De){ir=De}function Ce(De){ge=De}function cr(De){if(!De)return ge;var z=De.sourceFile.path,ke=rr.get(z);return ke||(ke=!ir||e.optionsHaveModuleResolutionChanges(ir,De.commandLine.options)?new e.Map:ge,rr.set(z,ke)),ke}function $e(){ge.clear(),rr.clear()}}e.createCacheWithRedirects=re;function q(ir,ge){var rr;return{getPackageJsonInfo:pr,setPackageJsonInfo:Lr,clear:Ce,entries:cr};function pr($e){return rr==null?void 0:rr.get(e.toPath($e,ir,ge))}function Lr($e,De){(rr||(rr=new e.Map)).set(e.toPath($e,ir,ge),De)}function Ce(){rr=void 0}function cr(){var $e=rr==null?void 0:rr.entries();return $e?e.arrayFrom($e):[]}}function P(ir,ge,rr,pr){var Lr=ir.getOrCreateMapOfCacheRedirects(ge),Ce=Lr.get(rr);return Ce||(Ce=pr(),Lr.set(rr,Ce)),Ce}function M(ir,ge,rr){if(!!ir.configFile){if(ge.redirectsMap.size===0)e.Debug.assert(!rr||rr.redirectsMap.size===0),e.Debug.assert(ge.getOwnMap().size===0),e.Debug.assert(!rr||rr.getOwnMap().size===0),ge.redirectsMap.set(ir.configFile.path,ge.getOwnMap()),rr==null||rr.redirectsMap.set(ir.configFile.path,rr.getOwnMap());else{e.Debug.assert(!rr||rr.redirectsMap.size>0);var pr={sourceFile:ir.configFile,commandLine:{options:ir}};ge.setOwnMap(ge.getOrCreateMapOfCacheRedirects(pr)),rr==null||rr.setOwnMap(rr.getOrCreateMapOfCacheRedirects(pr))}ge.setOwnOptions(ir),rr==null||rr.setOwnOptions(ir)}}function Q(ir,ge,rr){return{getOrCreateCacheForDirectory:Ce,clear:pr,update:Lr};function pr(){rr.clear()}function Lr(cr){M(cr,rr)}function Ce(cr,$e){var De=e.toPath(cr,ir,ge);return P(rr,$e,De,function(){return H()})}}function H(){var ir=new e.Map,ge=new e.Map,rr={get:function(Lr,Ce){return ir.get(pr(Lr,Ce))},set:function(Lr,Ce,cr){return ir.set(pr(Lr,Ce),cr),rr},delete:function(Lr,Ce){return ir.delete(pr(Lr,Ce)),rr},has:function(Lr,Ce){return ir.has(pr(Lr,Ce))},forEach:function(Lr){return ir.forEach(function(Ce,cr){var $e=ge.get(cr),De=$e[0],z=$e[1];return Lr(Ce,De,z)})},size:function(){return ir.size}};return rr;function pr(Lr,Ce){var cr=Ce===void 0?Lr:"".concat(Ce,"|").concat(Lr);return ge.set(cr,[Lr,Ce]),cr}}e.createModeAwareCache=H;function w(ir,ge,rr){e.Debug.assert(ge.length===rr.length);for(var pr=H(),Lr=0;Lr<ge.length;++Lr)pr.set(ge[Lr],e.getModeForResolutionAtIndex(ir,Lr),rr[Lr]);return pr}e.zipToModeAwareCache=w;function d(ir,ge,rr,pr,Lr){var Ce=Q(ir,ge,pr||(pr=re(rr)));Lr||(Lr=re(rr));var cr=q(ir,ge);return kn(kn(kn({},cr),Ce),{getOrCreateCacheForModuleName:z,clear:$e,update:De,getPackageJsonInfoCache:function(){return cr}});function $e(){Ce.clear(),Lr.clear(),cr.clear()}function De(dr){M(dr,pr,Lr)}function z(dr,Xe,Qe){return e.Debug.assert(!e.isExternalModuleNameRelative(dr)),P(Lr,Qe,Xe===void 0?dr:"".concat(Xe,"|").concat(dr),ke)}function ke(){var dr=new e.Map;return{get:Xe,set:Qe};function Xe(Jr){return dr.get(e.toPath(Jr,ir,ge))}function Qe(Jr,Or){var Be=e.toPath(Jr,ir,ge);if(!dr.has(Be)){dr.set(Be,Or);for(var yr=Or.resolvedModule&&(Or.resolvedModule.originalPath||Or.resolvedModule.resolvedFileName),Rr=yr&&Ir(Be,yr),zr=Be;zr!==Rr;){var ut=e.getDirectoryPath(zr);if(ut===zr||dr.has(ut))break;dr.set(ut,Or),zr=ut}}}function Ir(Jr,Or){for(var Be=e.toPath(e.getDirectoryPath(Or),ir,ge),yr=0,Rr=Math.min(Jr.length,Be.length);yr<Rr&&Jr.charCodeAt(yr)===Be.charCodeAt(yr);)yr++;if(yr===Jr.length&&(Be.length===yr||Be[yr]===e.directorySeparator))return Jr;var zr=e.getRootLength(Jr);if(!(yr<zr)){var ut=Jr.lastIndexOf(e.directorySeparator,yr-1);if(ut!==-1)return Jr.substr(0,Math.max(ut,zr))}}}}e.createModuleResolutionCache=d;function B(ir,ge,rr,pr,Lr){var Ce=Q(ir,ge,Lr||(Lr=re(rr)));return pr||(pr=q(ir,ge)),kn(kn(kn({},pr),Ce),{clear:cr});function cr(){Ce.clear(),pr.clear()}}e.createTypeReferenceDirectiveResolutionCache=B;function T(ir,ge,rr,pr){var Lr=e.getDirectoryPath(ge),Ce=rr&&rr.getOrCreateCacheForDirectory(Lr);if(!!Ce)return Ce.get(ir,pr)}e.resolveModuleNameFromCache=T;function _(ir,ge,rr,pr,Lr,Ce,cr){var $e=c(rr,pr);Ce&&(rr=Ce.commandLine.options),$e&&(n(pr,e.Diagnostics.Resolving_module_0_from_1,ir,ge),Ce&&n(pr,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,Ce.sourceFile.fileName));var De=e.getDirectoryPath(ge),z=Lr&&Lr.getOrCreateCacheForDirectory(De,Ce),ke=z&&z.get(ir,cr);if(ke)$e&&n(pr,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,ir,De);else{var dr=rr.moduleResolution;if(dr===void 0){switch(e.getEmitModuleKind(rr)){case e.ModuleKind.CommonJS:dr=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node12:dr=e.ModuleResolutionKind.Node12;break;case e.ModuleKind.NodeNext:dr=e.ModuleResolutionKind.NodeNext;break;default:dr=e.ModuleResolutionKind.Classic;break}$e&&n(pr,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[dr])}else $e&&n(pr,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[dr]);switch(e.perfLogger.logStartResolveModule(ir),dr){case e.ModuleResolutionKind.Node12:ke=_e(ir,ge,rr,pr,Lr,Ce,cr);break;case e.ModuleResolutionKind.NodeNext:ke=Se(ir,ge,rr,pr,Lr,Ce,cr);break;case e.ModuleResolutionKind.NodeJs:ke=Te(ir,ge,rr,pr,Lr,Ce);break;case e.ModuleResolutionKind.Classic:ke=qn(ir,ge,rr,pr,Lr,Ce);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(dr))}ke&&ke.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(ir,'" resolved to "').concat(ke.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(ke&&ke.resolvedModule?""+ke.resolvedModule.resolvedFileName:"null"),z&&(z.set(ir,cr,ke),e.isExternalModuleNameRelative(ir)||Lr.getOrCreateCacheForModuleName(ir,cr,Ce).set(De,ke))}return $e&&(ke.resolvedModule?ke.resolvedModule.packageId?n(pr,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,ir,ke.resolvedModule.resolvedFileName,e.packageIdToString(ke.resolvedModule.packageId)):n(pr,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,ir,ke.resolvedModule.resolvedFileName):n(pr,e.Diagnostics.Module_name_0_was_not_resolved,ir)),ke}e.resolveModuleName=_;function h(ir,ge,rr,pr,Lr){var Ce=R(ir,ge,pr,Lr);return Ce?Ce.value:e.isExternalModuleNameRelative(ge)?b(ir,ge,rr,pr,Lr):G(ir,ge,pr,Lr)}function R(ir,ge,rr,pr){var Lr,Ce=pr.compilerOptions,cr=Ce.baseUrl,$e=Ce.paths,De=Ce.configFile;if($e&&!e.pathIsRelative(ge)){pr.traceEnabled&&(cr&&n(pr.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,cr,ge),n(pr.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,ge));var z=e.getPathsBasePath(pr.compilerOptions,pr.host),ke=De!=null&&De.configFileSpecs?(Lr=De.configFileSpecs).pathPatterns||(Lr.pathPatterns=e.tryParsePatterns($e)):void 0;return Sr(ir,ge,z,$e,ke,rr,!1,pr)}}function b(ir,ge,rr,pr,Lr){if(!!Lr.compilerOptions.rootDirs){Lr.traceEnabled&&n(Lr.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,ge);for(var Ce=e.normalizePath(e.combinePaths(rr,ge)),cr,$e,De=0,z=Lr.compilerOptions.rootDirs;De<z.length;De++){var ke=z[De],dr=e.normalizePath(ke);e.endsWith(dr,e.directorySeparator)||(dr+=e.directorySeparator);var Xe=e.startsWith(Ce,dr)&&($e===void 0||$e.length<dr.length);Lr.traceEnabled&&n(Lr.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,dr,Ce,Xe),Xe&&($e=dr,cr=ke)}if($e){Lr.traceEnabled&&n(Lr.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,Ce,$e);var Qe=Ce.substr($e.length);Lr.traceEnabled&&n(Lr.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,Qe,$e,Ce);var Ir=pr(ir,Ce,!e.directoryProbablyExists(rr,Lr.host),Lr);if(Ir)return Ir;Lr.traceEnabled&&n(Lr.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var Jr=0,Or=Lr.compilerOptions.rootDirs;Jr<Or.length;Jr++){var ke=Or[Jr];if(ke!==cr){var Be=e.combinePaths(e.normalizePath(ke),Qe);Lr.traceEnabled&&n(Lr.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,Qe,ke,Be);var yr=e.getDirectoryPath(Be),Rr=pr(ir,Be,!e.directoryProbablyExists(yr,Lr.host),Lr);if(Rr)return Rr}}Lr.traceEnabled&&n(Lr.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}function G(ir,ge,rr,pr){var Lr=pr.compilerOptions.baseUrl;if(!!Lr){pr.traceEnabled&&n(pr.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,Lr,ge);var Ce=e.normalizePath(e.combinePaths(Lr,ge));return pr.traceEnabled&&n(pr.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,ge,Lr,Ce),rr(ir,Ce,!e.directoryProbablyExists(e.getDirectoryPath(Ce),pr.host),pr)}}function Y(ir,ge,rr){var pr=le(ir,ge,rr),Lr=pr.resolvedModule,Ce=pr.failedLookupLocations;if(!Lr)throw new Error("Could not resolve JS module '".concat(ir,"' starting at '").concat(ge,"'. Looked in: ").concat(Ce.join(", ")));return Lr.resolvedFileName}e.resolveJSModule=Y;function pe(ir,ge,rr){return le(ir,ge,rr).resolvedModule}e.tryResolveJSModule=pe;var A;(function(ir){ir[ir.None=0]="None",ir[ir.Imports=2]="Imports",ir[ir.SelfName=4]="SelfName",ir[ir.Exports=8]="Exports",ir[ir.ExportsPatternTrailers=16]="ExportsPatternTrailers",ir[ir.AllFeatures=30]="AllFeatures",ir[ir.Node12Default=14]="Node12Default",ir[ir.NodeNextDefault=30]="NodeNextDefault",ir[ir.EsmMode=32]="EsmMode"})(A||(A={}));function _e(ir,ge,rr,pr,Lr,Ce,cr){return ae(A.Node12Default,ir,ge,rr,pr,Lr,Ce,cr)}function Se(ir,ge,rr,pr,Lr,Ce,cr){return ae(A.NodeNextDefault,ir,ge,rr,pr,Lr,Ce,cr)}function ae(ir,ge,rr,pr,Lr,Ce,cr,$e){var De=e.getDirectoryPath(rr),z=$e===e.ModuleKind.ESNext?A.EsmMode:0;return Me(ir|z,ge,De,pr,Lr,Ce,pr.resolveJsonModule?ne:be,cr)}var D=[I.JavaScript],be=[I.TypeScript,I.JavaScript],ne=Bt(Bt([],be,!0),[I.Json],!1),J=[I.TSConfig];function le(ir,ge,rr){return Me(A.None,ir,ge,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},rr,void 0,D,void 0)}function Te(ir,ge,rr,pr,Lr,Ce,cr){return Me(A.None,ir,e.getDirectoryPath(ge),rr,pr,Lr,cr?J:rr.resolveJsonModule?ne:be,Ce)}e.nodeModuleNameResolver=Te;function Me(ir,ge,rr,pr,Lr,Ce,cr,$e){var De,z,ke=c(pr,Lr),dr=[],Xe={compilerOptions:pr,host:Lr,traceEnabled:ke,failedLookupLocations:dr,packageJsonInfoCache:Ce,features:ir,conditions:ir&A.EsmMode?["node","import","types"]:["node","require","types"]},Qe=e.forEach(cr,function(Jr){return Ir(Jr)});return L((De=Qe==null?void 0:Qe.value)===null||De===void 0?void 0:De.resolved,(z=Qe==null?void 0:Qe.value)===null||z===void 0?void 0:z.isExternalLibraryImport,dr,Xe.resultFromCache);function Ir(Jr){var Or=function(Nt,Xt,st,$t){return Ae(Nt,Xt,st,$t,!0)},Be=h(Jr,ge,rr,Or,Xe);if(Be)return Zr({resolved:Be,isExternalLibraryImport:Ge(Be.path)});if(e.isExternalModuleNameRelative(ge)){var mt=e.normalizePathAndParts(e.combinePaths(rr,ge)),Lt=mt.path,vt=mt.parts,pt=Ae(Jr,Lt,!1,Xe,!0);return pt&&Zr({resolved:pt,isExternalLibraryImport:e.contains(vt,"node_modules")})}else{var yr;if(ir&A.Imports&&e.startsWith(ge,"#")&&(yr=de(Jr,ge,rr,Xe,Ce,$e)),!yr&&ir&A.SelfName&&(yr=fr(Jr,ge,rr,Xe,Ce,$e)),yr||(ke&&n(Lr,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,ge,I[Jr]),yr=kr(Jr,ge,rr,Xe,Ce,$e)),!yr)return;var Rr=yr.value;if(!pr.preserveSymlinks&&Rr&&!Rr.originalPath){var zr=Ke(Rr.path,Lr,ke),ut=x(zr,Rr.path,Lr)?void 0:Rr.path;Rr=kn(kn({},Rr),{path:zr,originalPath:ut})}return{value:Rr&&{resolved:Rr,isExternalLibraryImport:!0}}}}}function Ke(ir,ge,rr){if(!ge.realpath)return ir;var pr=e.normalizePath(ge.realpath(ir));return rr&&n(ge,e.Diagnostics.Resolving_real_path_for_0_result_1,ir,pr),e.Debug.assert(ge.fileExists(pr),"".concat(ir," linked to nonexistent file ").concat(pr)),pr}function Ae(ir,ge,rr,pr,Lr){if(pr.traceEnabled&&n(pr.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,ge,I[ir]),!e.hasTrailingDirectorySeparator(ge)){if(!rr){var Ce=e.getDirectoryPath(ge);e.directoryProbablyExists(Ce,pr.host)||(pr.traceEnabled&&n(pr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,Ce),rr=!0)}var cr=ce(ir,ge,rr,pr);if(cr){var $e=Lr?se(cr.path):void 0,De=$e?Er($e,!1,pr):void 0;return u(De,cr)}}if(!rr){var z=e.directoryProbablyExists(ge,pr.host);z||(pr.traceEnabled&&n(pr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ge),rr=!0)}return Ve(ir,ge,rr,pr,Lr)}e.nodeModulesPathPart="/node_modules/";function Ge(ir){return e.stringContains(ir,e.nodeModulesPathPart)}e.pathContainsNodeModules=Ge;function se(ir){var ge=e.normalizePath(ir),rr=ge.lastIndexOf(e.nodeModulesPathPart);if(rr!==-1){var pr=rr+e.nodeModulesPathPart.length,Lr=xe(ge,pr);return ge.charCodeAt(pr)===64&&(Lr=xe(ge,Lr)),ge.slice(0,Lr)}}e.parseNodeModuleFromPath=se;function xe(ir,ge){var rr=ir.indexOf(e.directorySeparator,ge+1);return rr===-1?ge:rr}function Re(ir,ge,rr,pr){return g(ce(ir,ge,rr,pr))}function ce(ir,ge,rr,pr){if(ir===I.Json||ir===I.TSConfig){var Lr=e.tryRemoveExtension(ge,".json"),Ce=Lr?ge.substring(Lr.length):"";return Lr===void 0&&ir===I.Json?void 0:Ne(Lr||ge,ir,Ce,rr,pr)}if(!(pr.features&A.EsmMode)){var cr=Ne(ge,ir,"",rr,pr);if(cr)return cr}return Ue(ir,ge,rr,pr)}function Ue(ir,ge,rr,pr){if(e.hasJSFileExtension(ge)||e.fileExtensionIs(ge,".json")&&pr.compilerOptions.resolveJsonModule){var Lr=e.removeFileExtension(ge),Ce=ge.substring(Lr.length);return pr.traceEnabled&&n(pr.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,ge,Ce),Ne(Lr,ir,Ce,rr,pr)}}function We(ir,ge,rr,pr){if((ir===I.TypeScript||ir===I.DtsOnly)&&e.fileExtensionIsOneOf(ge,[".d.ts",".d.cts",".d.mts"])){var Lr=ve(ge,rr,pr);return Lr!==void 0?{path:ge,ext:e.forEach([".d.ts",".d.cts",".d.mts"],function(Ce){return e.fileExtensionIs(ge,Ce)?Ce:void 0})}:void 0}return Ue(ir,ge,rr,pr)}function Ne(ir,ge,rr,pr,Lr){if(!pr){var Ce=e.getDirectoryPath(ir);Ce&&(pr=!e.directoryProbablyExists(Ce,Lr.host))}switch(ge){case I.DtsOnly:switch(rr){case".mjs":case".mts":case".d.mts":return cr(".d.mts");case".cjs":case".cts":case".d.cts":return cr(".d.cts");case".json":return ir+=".json",cr(".d.ts");default:return cr(".d.ts")}case I.TypeScript:switch(rr){case".mjs":case".mts":case".d.mts":return cr(".mts")||cr(".d.mts");case".cjs":case".cts":case".d.cts":return cr(".cts")||cr(".d.cts");case".json":return ir+=".json",cr(".d.ts");default:return cr(".ts")||cr(".tsx")||cr(".d.ts")}case I.JavaScript:switch(rr){case".mjs":case".mts":case".d.mts":return cr(".mjs");case".cjs":case".cts":case".d.cts":return cr(".cjs");case".json":return cr(".json");default:return cr(".js")||cr(".jsx")}case I.TSConfig:case I.Json:return cr(".json")}function cr($e){var De=ve(ir+$e,pr,Lr);return De===void 0?void 0:{path:De,ext:$e}}}function ve(ir,ge,rr){if(!ge){if(rr.host.fileExists(ir))return rr.traceEnabled&&n(rr.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,ir),ir;rr.traceEnabled&&n(rr.host,e.Diagnostics.File_0_does_not_exist,ir)}rr.failedLookupLocations.push(ir)}function Ve(ir,ge,rr,pr,Lr){Lr===void 0&&(Lr=!0);var Ce=Lr?Er(ge,rr,pr):void 0,cr=Ce&&Ce.packageJsonContent,$e=Ce&&Ce.versionPaths;return u(Ce,Nr(ir,ge,rr,pr,cr,$e))}function gr(ir,ge,rr,pr){var Lr={host:rr,compilerOptions:pr,traceEnabled:c(pr,rr),failedLookupLocations:[],packageJsonInfoCache:ge,features:0,conditions:[]},Ce=e.getPathComponents(ir);for(Ce.pop();Ce.length>0;){var cr=Er(e.getPathFromPathComponents(Ce),!1,Lr);if(cr)return cr;Ce.pop()}}e.getPackageScopeForPath=gr;function Er(ir,ge,rr){var pr,Lr,Ce,cr=rr.host,$e=rr.traceEnabled,De=e.combinePaths(ir,"package.json");if(ge){rr.failedLookupLocations.push(De);return}var z=(pr=rr.packageJsonInfoCache)===null||pr===void 0?void 0:pr.getPackageJsonInfo(De);if(z!==void 0){if(typeof z!="boolean")return $e&&n(cr,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,De),z;z&&$e&&n(cr,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,De),rr.failedLookupLocations.push(De);return}var ke=e.directoryProbablyExists(ir,cr);if(ke&&cr.fileExists(De)){var dr=e.readJson(De,cr);$e&&n(cr,e.Diagnostics.Found_package_json_at_0,De);var Xe=$(dr,rr),Qe={packageDirectory:ir,packageJsonContent:dr,versionPaths:Xe};return(Lr=rr.packageJsonInfoCache)===null||Lr===void 0||Lr.setPackageJsonInfo(De,Qe),Qe}else ke&&$e&&n(cr,e.Diagnostics.File_0_does_not_exist,De),(Ce=rr.packageJsonInfoCache)===null||Ce===void 0||Ce.setPackageJsonInfo(De,ke),rr.failedLookupLocations.push(De)}e.getPackageJsonInfo=Er;function Nr(ir,ge,rr,pr,Lr,Ce){var cr;if(Lr)switch(ir){case I.JavaScript:case I.Json:cr=E(Lr,ge,pr);break;case I.TypeScript:cr=j(Lr,ge,pr)||E(Lr,ge,pr);break;case I.DtsOnly:cr=j(Lr,ge,pr);break;case I.TSConfig:cr=te(Lr,ge,pr);break;default:return e.Debug.assertNever(ir)}var $e=function(Ir,Jr,Or,Be){var yr=ve(Jr,Or,Be);if(yr){var Rr=ur(Ir,yr);if(Rr)return g(Rr);Be.traceEnabled&&n(Be.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,yr)}var zr=Ir===I.DtsOnly?I.TypeScript:Ir;return Ae(zr,Jr,Or,Be,!1)},De=cr?!e.directoryProbablyExists(e.getDirectoryPath(cr),pr.host):void 0,z=rr||!e.directoryProbablyExists(ge,pr.host),ke=e.combinePaths(ge,ir===I.TSConfig?"tsconfig":"index");if(Ce&&(!cr||e.containsPath(ge,cr))){var dr=e.getRelativePathFromDirectory(ge,cr||ke,!1);pr.traceEnabled&&n(pr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,Ce.version,e.version,dr);var Xe=Sr(ir,dr,ge,Ce.paths,void 0,$e,De||z,pr);if(Xe)return p(Xe.value)}var Qe=cr&&p($e(ir,cr,De,pr));if(Qe)return Qe;if(!(pr.features&A.EsmMode))return ce(ir,ke,z,pr)}function ur(ir,ge){var rr=e.tryGetExtensionFromPath(ge);return rr!==void 0&&xr(ir,rr)?{path:ge,ext:rr}:void 0}function xr(ir,ge){switch(ir){case I.JavaScript:return ge===".js"||ge===".jsx";case I.TSConfig:case I.Json:return ge===".json";case I.TypeScript:return ge===".ts"||ge===".tsx"||ge===".d.ts";case I.DtsOnly:return ge===".d.ts"}}function sr(ir){var ge=ir.indexOf(e.directorySeparator);return ir[0]==="@"&&(ge=ir.indexOf(e.directorySeparator,ge+1)),ge===-1?{packageName:ir,rest:""}:{packageName:ir.slice(0,ge),rest:ir.slice(ge+1)}}e.parsePackageName=sr;function i(ir){return e.every(e.getOwnKeys(ir),function(ge){return e.startsWith(ge,".")})}e.allKeysStartWithDot=i;function Mr(ir){return!e.some(e.getOwnKeys(ir),function(ge){return e.startsWith(ge,".")})}function fr(ir,ge,rr,pr,Lr,Ce){var cr,$e,De=typeof pr.host.useCaseSensitiveFileNames=="function"?pr.host.useCaseSensitiveFileNames():pr.host.useCaseSensitiveFileNames,z=e.toPath(e.combinePaths(rr,"dummy"),($e=(cr=pr.host).getCurrentDirectory)===null||$e===void 0?void 0:$e.call(cr),e.createGetCanonicalFileName(De===void 0?!0:De)),ke=gr(z,pr.packageJsonInfoCache,pr.host,pr.compilerOptions);if(!(!ke||!ke.packageJsonContent.exports)&&typeof ke.packageJsonContent.name=="string"){var dr=e.getPathComponents(ge),Xe=e.getPathComponents(ke.packageJsonContent.name);if(!!e.every(Xe,function(Ir,Jr){return dr[Jr]===Ir})){var Qe=dr.slice(Xe.length);return Ar(ke,ir,e.length(Qe)?".".concat(e.directorySeparator).concat(Qe.join(e.directorySeparator)):".",pr,Lr,Ce)}}}function Ar(ir,ge,rr,pr,Lr,Ce){if(!!ir.packageJsonContent.exports){if(rr==="."){var cr=void 0;if(typeof ir.packageJsonContent.exports=="string"||Array.isArray(ir.packageJsonContent.exports)||typeof ir.packageJsonContent.exports=="object"&&Mr(ir.packageJsonContent.exports)?cr=ir.packageJsonContent.exports:e.hasProperty(ir.packageJsonContent.exports,".")&&(cr=ir.packageJsonContent.exports["."]),cr){var $e=qe(ge,pr,Lr,Ce,rr,ir,!1);return $e(cr,"",!1)}}else if(i(ir.packageJsonContent.exports)){if(typeof ir.packageJsonContent.exports!="object")return pr.traceEnabled&&n(pr.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,rr,ir.packageDirectory),Zr(void 0);var De=we(ge,pr,Lr,Ce,rr,ir.packageJsonContent.exports,ir,!1);if(De)return De}return pr.traceEnabled&&n(pr.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,rr,ir.packageDirectory),Zr(void 0)}}function de(ir,ge,rr,pr,Lr,Ce){var cr,$e;if(ge==="#"||e.startsWith(ge,"#/"))return pr.traceEnabled&&n(pr.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,ge),Zr(void 0);var De=typeof pr.host.useCaseSensitiveFileNames=="function"?pr.host.useCaseSensitiveFileNames():pr.host.useCaseSensitiveFileNames,z=e.toPath(e.combinePaths(rr,"dummy"),($e=(cr=pr.host).getCurrentDirectory)===null||$e===void 0?void 0:$e.call(cr),e.createGetCanonicalFileName(De===void 0?!0:De)),ke=gr(z,pr.packageJsonInfoCache,pr.host,pr.compilerOptions);if(!ke)return pr.traceEnabled&&n(pr.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,z),Zr(void 0);if(!ke.packageJsonContent.imports)return pr.traceEnabled&&n(pr.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,ke.packageDirectory),Zr(void 0);var dr=we(ir,pr,Lr,Ce,ge,ke.packageJsonContent.imports,ke,!0);return dr||(pr.traceEnabled&&n(pr.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,ge,ke.packageDirectory),Zr(void 0))}function we(ir,ge,rr,pr,Lr,Ce,cr,$e){var De=qe(ir,ge,rr,pr,Lr,cr,$e);if(!e.endsWith(Lr,e.directorySeparator)&&Lr.indexOf("*")===-1&&e.hasProperty(Ce,Lr)){var z=Ce[Lr];return De(z,"",!1)}for(var ke=e.sort(e.filter(e.getOwnKeys(Ce),function(Be){return Be.indexOf("*")!==-1||e.endsWith(Be,"/")}),function(Be,yr){return Be.length-yr.length}),dr=0,Xe=ke;dr<Xe.length;dr++){var Qe=Xe[dr];if(ge.features&A.ExportsPatternTrailers&&Or(Qe,Lr)){var z=Ce[Qe],Ir=Qe.indexOf("*"),Jr=Lr.substring(Qe.substring(0,Ir).length,Lr.length-(Qe.length-1-Ir));return De(z,Jr,!0)}else if(e.endsWith(Qe,"*")&&e.startsWith(Lr,Qe.substring(0,Qe.length-1))){var z=Ce[Qe],Jr=Lr.substring(Qe.length-1);return De(z,Jr,!0)}else if(e.startsWith(Lr,Qe)){var z=Ce[Qe],Jr=Lr.substring(Qe.length);return De(z,Jr,!1)}}function Or(Be,yr){if(e.endsWith(Be,"*"))return!1;var Rr=Be.indexOf("*");return Rr===-1?!1:e.startsWith(yr,Be.substring(0,Rr))&&e.endsWith(yr,Be.substring(Rr+1))}}function qe(ir,ge,rr,pr,Lr,Ce,cr){return $e;function $e(De,z,ke){var dr,Xe;if(typeof De=="string"){if(!ke&&z.length>0&&!e.endsWith(De,"/"))return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ce.packageDirectory,Lr),Zr(void 0);if(!e.startsWith(De,"./")){if(cr&&!e.startsWith(De,"../")&&!e.startsWith(De,"/")&&!e.isRootedDiskPath(De)){var Qe=ke?De.replace(/\*/g,z):De+z,Ir=Me(ge.features,Qe,Ce.packageDirectory+"/",ge.compilerOptions,ge.host,rr,[ir],pr);return Zr(Ir.resolvedModule?{path:Ir.resolvedModule.resolvedFileName,extension:Ir.resolvedModule.extension,packageId:Ir.resolvedModule.packageId,originalPath:Ir.resolvedModule.originalPath}:void 0)}return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ce.packageDirectory,Lr),Zr(void 0)}var Jr=e.pathIsRelative(De)?e.getPathComponents(De).slice(1):e.getPathComponents(De),Or=Jr.slice(1);if(Or.indexOf("..")>=0||Or.indexOf(".")>=0||Or.indexOf("node_modules")>=0)return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ce.packageDirectory,Lr),Zr(void 0);var Be=e.combinePaths(Ce.packageDirectory,De),yr=e.getPathComponents(z);if(yr.indexOf("..")>=0||yr.indexOf(".")>=0||yr.indexOf("node_modules")>=0)return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ce.packageDirectory,Lr),Zr(void 0);var Rr=e.getNormalizedAbsolutePath(ke?Be.replace(/\*/g,z):Be+z,(Xe=(dr=ge.host).getCurrentDirectory)===null||Xe===void 0?void 0:Xe.call(dr));return Zr(u(Ce,We(ir,Rr,!1,ge)))}else if(typeof De=="object"&&De!==null)if(Array.isArray(De)){if(!e.length(De))return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ce.packageDirectory,Lr),Zr(void 0);for(var vt=0,pt=De;vt<pt.length;vt++){var Nt=pt[vt],Ir=$e(Nt,z,ke);if(Ir)return Ir}}else{for(var zr=0,ut=e.getOwnKeys(De);zr<ut.length;zr++){var mt=ut[zr];if(mt==="default"||ge.conditions.indexOf(mt)>=0||Cr(ge.conditions,mt)){var Lt=De[mt],Ir=$e(Lt,z,ke);if(Ir)return Ir}}return}else if(De===null)return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,Ce.packageDirectory,Lr),Zr(void 0);return ge.traceEnabled&&n(ge.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,Ce.packageDirectory,Lr),Zr(void 0)}}function Cr(ir,ge){if(ir.indexOf("types")===-1||!e.startsWith(ge,"types@"))return!1;var rr=e.VersionRange.tryParse(ge.substring(6));return rr?rr.test(e.version):!1}e.isApplicableVersionedTypesKey=Cr;function kr(ir,ge,rr,pr,Lr,Ce){return lr(ir,ge,rr,pr,!1,Lr,Ce)}function He(ir,ge,rr){return lr(I.DtsOnly,ir,ge,rr,!0,void 0,void 0)}function lr(ir,ge,rr,pr,Lr,Ce,cr){var $e=Ce&&Ce.getOrCreateCacheForModuleName(ge,pr.features===0?void 0:pr.features&A.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,cr);return e.forEachAncestorDirectory(e.normalizeSlashes(rr),function(De){if(e.getBaseFileName(De)!=="node_modules"){var z=Mn($e,ge,De,pr);return z||Zr(Hr(ir,ge,De,pr,Lr,Ce,cr))}})}function Hr(ir,ge,rr,pr,Lr,Ce,cr){var $e=e.combinePaths(rr,"node_modules"),De=e.directoryProbablyExists($e,pr.host);!De&&pr.traceEnabled&&n(pr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,$e);var z=Lr?void 0:Je(ir,ge,$e,De,pr,Ce,cr);if(z)return z;if(ir===I.TypeScript||ir===I.DtsOnly){var ke=e.combinePaths($e,"@types"),dr=De;return De&&!e.directoryProbablyExists(ke,pr.host)&&(pr.traceEnabled&&n(pr.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,ke),dr=!1),Je(I.DtsOnly,ot(ge,pr),ke,dr,pr,Ce,cr)}}function Je(ir,ge,rr,pr,Lr,Ce,cr){var $e=e.normalizePath(e.combinePaths(rr,ge)),De=Er($e,!pr,Lr);if(!(Lr.features&A.Exports)&&De){var z=ce(ir,$e,!pr,Lr);if(z)return g(z);var ke=Nr(ir,$e,!pr,Lr,De.packageJsonContent,De.versionPaths);return u(De,ke)}var dr=sr(ge),Xe=dr.packageName,Qe=dr.rest,Ir=function(yr,Rr,zr,ut){var mt;if(De&&De.packageJsonContent.exports&&ut.features&A.Exports)return(mt=Ar(De,yr,e.combinePaths(".",Qe),ut,Ce,cr))===null||mt===void 0?void 0:mt.value;var Lt=ce(yr,Rr,zr,ut)||Nr(yr,Rr,zr,ut,De&&De.packageJsonContent,De&&De.versionPaths);return u(De,Lt)};if(Qe!==""){var Jr=e.combinePaths(rr,Xe);if(De=Er(Jr,!pr,Lr),De&&De.versionPaths){Lr.traceEnabled&&n(Lr.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,De.versionPaths.version,e.version,Qe);var Or=pr&&e.directoryProbablyExists(Jr,Lr.host),Be=Sr(ir,Qe,Jr,De.versionPaths.paths,void 0,Ir,!Or,Lr);if(Be)return Be.value}}return Ir(ir,$e,!pr,Lr)}function Sr(ir,ge,rr,pr,Lr,Ce,cr,$e){Lr||(Lr=e.tryParsePatterns(pr));var De=e.matchPatternOrExact(Lr,ge);if(De){var z=e.isString(De)?void 0:e.matchedText(De,ge),ke=e.isString(De)?De:e.patternText(De);$e.traceEnabled&&n($e.host,e.Diagnostics.Module_name_0_matched_pattern_1,ge,ke);var dr=e.forEach(pr[ke],function(Xe){var Qe=z?Xe.replace("*",z):Xe,Ir=e.normalizePath(e.combinePaths(rr,Qe));$e.traceEnabled&&n($e.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,Xe,Qe);var Jr=e.tryGetExtensionFromPath(Xe);if(Jr!==void 0){var Or=ve(Ir,cr,$e);if(Or!==void 0)return g({path:Or,ext:Jr})}return Ce(ir,Ir,cr||!e.directoryProbablyExists(e.getDirectoryPath(Ir),$e.host),$e)});return{value:dr}}}var Yr="__";function ot(ir,ge){var rr=kt(ir);return ge.traceEnabled&&rr!==ir&&n(ge.host,e.Diagnostics.Scoped_package_detected_looking_in_0,rr),rr}function _t(ir){return"@types/".concat(kt(ir))}e.getTypesPackageName=_t;function kt(ir){if(e.startsWith(ir,"@")){var ge=ir.replace(e.directorySeparator,Yr);if(ge!==ir)return ge.slice(1)}return ir}e.mangleScopedPackageName=kt;function Yt(ir){var ge=e.removePrefix(ir,"@types/");return ge!==ir?vn(ge):ir}e.getPackageNameFromTypesPackageName=Yt;function vn(ir){return e.stringContains(ir,Yr)?"@"+ir.replace(Yr,e.directorySeparator):ir}e.unmangleScopedPackageName=vn;function Mn(ir,ge,rr,pr){var Lr=ir&&ir.get(rr);if(Lr)return pr.traceEnabled&&n(pr.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,ge,rr),pr.resultFromCache=Lr,{value:Lr.resolvedModule&&{path:Lr.resolvedModule.resolvedFileName,originalPath:Lr.resolvedModule.originalPath||!0,extension:Lr.resolvedModule.extension,packageId:Lr.resolvedModule.packageId}}}function qn(ir,ge,rr,pr,Lr,Ce){var cr=c(rr,pr),$e=[],De={compilerOptions:rr,host:pr,traceEnabled:cr,failedLookupLocations:$e,packageJsonInfoCache:Lr,features:A.None,conditions:[]},z=e.getDirectoryPath(ge),ke=dr(I.TypeScript)||dr(I.JavaScript);return L(ke&&ke.value,!1,$e,De.resultFromCache);function dr(Xe){var Qe=h(Xe,ir,z,Re,De);if(Qe)return{value:Qe};if(e.isExternalModuleNameRelative(ir)){var Or=e.normalizePath(e.combinePaths(z,ir));return Zr(Re(Xe,Or,!1,De))}else{var Ir=Lr&&Lr.getOrCreateCacheForModuleName(ir,void 0,Ce),Jr=e.forEachAncestorDirectory(z,function(Be){var yr=Mn(Ir,ir,Be,De);if(yr)return yr;var Rr=e.normalizePath(e.combinePaths(Be,ir));return Zr(Re(Xe,Rr,!1,De))});if(Jr)return Jr;if(Xe===I.TypeScript)return He(ir,z,De)}}}e.classicNameResolver=qn;function nr(ir,ge,rr,pr,Lr,Ce){var cr=c(rr,pr);cr&&n(pr,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,ge,ir,Lr);var $e=[],De={compilerOptions:rr,host:pr,traceEnabled:cr,failedLookupLocations:$e,packageJsonInfoCache:Ce,features:A.None,conditions:[]},z=Hr(I.DtsOnly,ir,Lr,De,!1,void 0,void 0);return L(z,!0,$e,De.resultFromCache)}e.loadModuleFromGlobalCache=nr;function Zr(ir){return ir!==void 0?{value:ir}:void 0}})(mr||(mr={}));var mr;(function(e){var n;(function(C){C[C.NonInstantiated=0]="NonInstantiated",C[C.Instantiated=1]="Instantiated",C[C.ConstEnumOnly=2]="ConstEnumOnly"})(n=e.ModuleInstanceState||(e.ModuleInstanceState={}));function c(C,K){return C.body&&!C.body.parent&&(e.setParent(C.body,C),e.setParentRecursive(C.body,!1)),C.body?u(C.body,K):1}e.getModuleInstanceState=c;function u(C,K){K===void 0&&(K=new e.Map);var k=e.getNodeId(C);if(K.has(k))return K.get(k)||0;K.set(k,void 0);var X=g(C,K);return K.set(k,X),X}function g(C,K){switch(C.kind){case 257:case 258:return 0;case 259:if(e.isEnumConst(C))return 2;break;case 265:case 264:if(!e.hasSyntacticModifier(C,1))return 0;break;case 271:var k=C;if(!k.moduleSpecifier&&k.exportClause&&k.exportClause.kind===272){for(var X=0,O=0,x=k.exportClause.elements;O<x.length;O++){var ie=x[O],Z=p(ie,K);if(Z>X&&(X=Z),X===1)return X}return X}break;case 261:{var re=0;return e.forEachChild(C,function(q){var P=u(q,K);switch(P){case 0:return;case 2:re=2;return;case 1:return re=1,!0;default:e.Debug.assertNever(P)}}),re}case 260:return c(C,K);case 79:if(C.isInJSDocNamespace)return 0}return 1}function p(C,K){for(var k=C.propertyName||C.name,X=C.parent;X;){if(e.isBlock(X)||e.isModuleBlock(X)||e.isSourceFile(X)){for(var O=X.statements,x=void 0,ie=0,Z=O;ie<Z.length;ie++){var re=Z[ie];if(e.nodeHasName(re,k)){re.parent||(e.setParent(re,X),e.setParentRecursive(re,!1));var q=u(re,K);if((x===void 0||q>x)&&(x=q),x===1)return x}}if(x!==void 0)return x}X=X.parent}return 1}var I;(function(C){C[C.None=0]="None",C[C.IsContainer=1]="IsContainer",C[C.IsBlockScopedContainer=2]="IsBlockScopedContainer",C[C.IsControlFlowContainer=4]="IsControlFlowContainer",C[C.IsFunctionLike=8]="IsFunctionLike",C[C.IsFunctionExpression=16]="IsFunctionExpression",C[C.HasLocals=32]="HasLocals",C[C.IsInterface=64]="IsInterface",C[C.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"})(I||(I={}));function V(C){return e.Debug.attachFlowNodeDebugInfo(C),C}var L=y();function m(C,K){e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:C.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+C.fileName),L(C,K),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}e.bindSourceFile=m;function y(){var C,K,k,X,O,x,ie,Z,re,q,P,M,Q,H,w,d,B,T,_,h,R,b,G=!1,Y=0,pe,A,_e={flags:1},Se={flags:1},ae=Qe();function D(me,Pr,yt,Le,Xr){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(me)||C,me,Pr,yt,Le,Xr)}function be(me,Pr){C=me,K=Pr,k=e.getEmitScriptTarget(K),b=ne(C,Pr),A=new e.Set,Y=0,pe=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(_e),e.Debug.attachFlowNodeDebugInfo(Se),C.locals||(ja(C),C.symbolCount=Y,C.classifiableNames=A,Ct()),C=void 0,K=void 0,k=void 0,X=void 0,O=void 0,x=void 0,ie=void 0,Z=void 0,re=void 0,q=!1,P=void 0,M=void 0,Q=void 0,H=void 0,w=void 0,d=void 0,B=void 0,_=void 0,h=!1,G=!1,R=0}return be;function ne(me,Pr){return e.getStrictOptionValue(Pr,"alwaysStrict")&&!me.isDeclarationFile?!0:!!me.externalModuleIndicator}function J(me,Pr){return Y++,new pe(me,Pr)}function le(me,Pr,yt){me.flags|=yt,Pr.symbol=me,me.declarations=e.appendIfUnique(me.declarations,Pr),yt&1955&&!me.exports&&(me.exports=e.createSymbolTable()),yt&6240&&!me.members&&(me.members=e.createSymbolTable()),me.constEnumOnlyModule&&me.flags&304&&(me.constEnumOnlyModule=!1),yt&111551&&e.setValueDeclaration(me,Pr)}function Te(me){if(me.kind===270)return me.isExportEquals?"export=":"default";var Pr=e.getNameOfDeclaration(me);if(Pr){if(e.isAmbientModule(me)){var yt=e.getTextOfIdentifierOrLiteral(Pr);return e.isGlobalScopeAugmentation(me)?"__global":'"'.concat(yt,'"')}if(Pr.kind===161){var Le=Pr.expression;if(e.isStringOrNumericLiteralLike(Le))return e.escapeLeadingUnderscores(Le.text);if(e.isSignedNumericLiteral(Le))return e.tokenToString(Le.operator)+Le.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(Pr)){var Xr=e.getContainingClass(me);if(!Xr)return;var an=Xr.symbol;return e.getSymbolNameForPrivateIdentifier(an,Pr.escapedText)}return e.isPropertyNameLiteral(Pr)?e.getEscapedTextOfIdentifierOrLiteral(Pr):void 0}switch(me.kind){case 170:return"__constructor";case 178:case 173:case 321:return"__call";case 179:case 174:return"__new";case 175:return"__index";case 271:return"__export";case 303:return"export=";case 220:if(e.getAssignmentDeclarationKind(me)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 315:return e.isJSDocConstructSignature(me)?"__new":"__call";case 163:e.Debug.assert(me.parent.kind===315,"Impossible parameter parent kind",function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[me.parent.kind]:me.parent.kind,", expected JSDocFunctionType")});var Xn=me.parent,da=Xn.parameters.indexOf(me);return"arg"+da}}function Me(me){return e.isNamedDeclaration(me)?e.declarationNameToString(me.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(Te(me)))}function Ke(me,Pr,yt,Le,Xr,an,Xn){e.Debug.assert(Xn||!e.hasDynamicName(yt));var da=e.hasSyntacticModifier(yt,512)||e.isExportSpecifier(yt)&&yt.name.escapedText==="default",bi=Xn?"__computed":da&&Pr?"default":Te(yt),Qa;if(bi===void 0)Qa=J(0,"__missing");else if(Qa=me.get(bi),Le&2885600&&A.add(bi),!Qa)me.set(bi,Qa=J(0,bi)),an&&(Qa.isReplaceableByMethod=!0);else{if(an&&!Qa.isReplaceableByMethod)return Qa;if(Qa.flags&Xr){if(Qa.isReplaceableByMethod)me.set(bi,Qa=J(0,bi));else if(!(Le&3&&Qa.flags&67108864)){e.isNamedDeclaration(yt)&&e.setParent(yt.name,yt);var go=Qa.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,wr=!0;(Qa.flags&384||Le&384)&&(go=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,wr=!1);var ss=!1;e.length(Qa.declarations)&&(da||Qa.declarations&&Qa.declarations.length&&yt.kind===270&&!yt.isExportEquals)&&(go=e.Diagnostics.A_module_cannot_have_multiple_default_exports,wr=!1,ss=!0);var al=[];e.isTypeAliasDeclaration(yt)&&e.nodeIsMissing(yt.type)&&e.hasSyntacticModifier(yt,1)&&Qa.flags&2887656&&al.push(D(yt,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(yt.name.escapedText)," }")));var Sl=e.getNameOfDeclaration(yt)||yt;e.forEach(Qa.declarations,function(bs,xl){var ic=e.getNameOfDeclaration(bs)||bs,Vl=D(ic,go,wr?Me(bs):void 0);C.bindDiagnostics.push(ss?e.addRelatedInfo(Vl,D(Sl,xl===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):Vl),ss&&al.push(D(ic,e.Diagnostics.The_first_export_default_is_here))});var zo=D(Sl,go,wr?Me(yt):void 0);C.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,Bt([zo],al,!1))),Qa=J(0,bi)}}}return le(Qa,yt,Le),Qa.parent?e.Debug.assert(Qa.parent===Pr,"Existing symbol parent should match new one"):Qa.parent=Pr,Qa}function Ae(me,Pr,yt){var Le=!!(e.getCombinedModifierFlags(me)&1)||Ge(me);if(Pr&2097152)return me.kind===274||me.kind===264&&Le?Ke(O.symbol.exports,O.symbol,me,Pr,yt):Ke(O.locals,void 0,me,Pr,yt);if(e.isJSDocTypeAlias(me)&&e.Debug.assert(e.isInJSFile(me)),!e.isAmbientModule(me)&&(Le||O.flags&64)){if(!O.locals||e.hasSyntacticModifier(me,512)&&!Te(me))return Ke(O.symbol.exports,O.symbol,me,Pr,yt);var Xr=Pr&111551?1048576:0,an=Ke(O.locals,void 0,me,Xr,yt);return an.exportSymbol=Ke(O.symbol.exports,O.symbol,me,Pr,yt),me.localSymbol=an,an}else return Ke(O.locals,void 0,me,Pr,yt)}function Ge(me){if(me.parent&&e.isModuleDeclaration(me)&&(me=me.parent),!e.isJSDocTypeAlias(me))return!1;if(!e.isJSDocEnumTag(me)&&!!me.fullName)return!0;var Pr=e.getNameOfDeclaration(me);return Pr?!!(e.isPropertyAccessEntityNameExpression(Pr.parent)&&Si(Pr.parent)||e.isDeclaration(Pr.parent)&&e.getCombinedModifierFlags(Pr.parent)&1):!1}function se(me,Pr){var yt=O,Le=x,Xr=ie;if(Pr&1?(me.kind!==213&&(x=O),O=ie=me,Pr&32&&(O.locals=e.createSymbolTable()),$t(O)):Pr&2&&(ie=me,ie.locals=void 0),Pr&4){var an=P,Xn=M,da=Q,bi=H,Qa=B,go=_,wr=h,ss=Pr&16&&!e.hasSyntacticModifier(me,256)&&!me.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(me);ss||(P=V({flags:2}),Pr&144&&(P.node=me)),H=ss||me.kind===170||me.kind===169||e.isInJSFile(me)&&(me.kind===255||me.kind===212)?ur():void 0,B=void 0,M=void 0,Q=void 0,_=void 0,h=!1,Ue(me),me.flags&=-2817,!(P.flags&1)&&Pr&8&&e.nodeIsPresent(me.body)&&(me.flags|=256,h&&(me.flags|=512),me.endFlowNode=P),me.kind===303&&(me.flags|=R,me.endFlowNode=P),H&&(Mr(H,P),P=qe(H),(me.kind===170||me.kind===169||e.isInJSFile(me)&&(me.kind===255||me.kind===212))&&(me.returnFlowNode=P)),ss||(P=an),M=Xn,Q=da,H=bi,B=Qa,_=go,h=wr}else Pr&64?(q=!1,Ue(me),me.flags=q?me.flags|128:me.flags&-129):Ue(me);O=yt,x=Le,ie=Xr}function xe(me){Re(me,function(Pr){return Pr.kind===255?ja(Pr):void 0}),Re(me,function(Pr){return Pr.kind!==255?ja(Pr):void 0})}function Re(me,Pr){Pr===void 0&&(Pr=ja),me!==void 0&&e.forEach(me,Pr)}function ce(me){e.forEachChild(me,ja,Re)}function Ue(me){var Pr=G;if(G=!1,ns(me)){ce(me),Do(me),G=Pr;return}switch(me.kind>=236&&me.kind<=252&&!K.allowUnreachableCode&&(me.flowNode=P),me.kind){case 240:ot(me);break;case 239:_t(me);break;case 241:kt(me);break;case 242:case 243:Yt(me);break;case 238:vn(me);break;case 246:case 250:Mn(me);break;case 245:case 244:Zr(me);break;case 251:ir(me);break;case 248:ge(me);break;case 262:rr(me);break;case 288:pr(me);break;case 237:Lr(me);break;case 249:cr(me);break;case 218:ke(me);break;case 219:dr(me);break;case 220:if(e.isDestructuringAssignment(me)){G=Pr,Xe(me);return}ae(me);break;case 214:Ir(me);break;case 221:Jr(me);break;case 253:Be(me);break;case 205:case 206:Nt(me);break;case 207:Xt(me);break;case 229:pt(me);break;case 343:case 336:case 337:Rr(me);break;case 303:{xe(me.statements),ja(me.endOfFileToken);break}case 234:case 261:xe(me.statements);break;case 202:yr(me);break;case 204:case 203:case 294:case 224:G=Pr;default:ce(me);break}Do(me),G=Pr}function We(me){switch(me.kind){case 79:case 80:case 108:case 205:case 206:return ve(me);case 207:return Ve(me);case 211:case 229:return We(me.expression);case 220:return Er(me);case 218:return me.operator===53&&We(me.operand);case 215:return We(me.expression)}return!1}function Ne(me){return e.isDottedName(me)||(e.isPropertyAccessExpression(me)||e.isNonNullExpression(me)||e.isParenthesizedExpression(me))&&Ne(me.expression)||e.isBinaryExpression(me)&&me.operatorToken.kind===27&&Ne(me.right)||e.isElementAccessExpression(me)&&e.isStringOrNumericLiteralLike(me.argumentExpression)&&Ne(me.expression)||e.isAssignmentExpression(me)&&Ne(me.left)}function ve(me){return Ne(me)||e.isOptionalChain(me)&&ve(me.expression)}function Ve(me){if(me.arguments)for(var Pr=0,yt=me.arguments;Pr<yt.length;Pr++){var Le=yt[Pr];if(ve(Le))return!0}return!!(me.expression.kind===205&&ve(me.expression.expression))}function gr(me,Pr){return e.isTypeOfExpression(me)&&Nr(me.expression)&&e.isStringLiteralLike(Pr)}function Er(me){switch(me.operatorToken.kind){case 63:case 75:case 76:case 77:return ve(me.left);case 34:case 35:case 36:case 37:return Nr(me.left)||Nr(me.right)||gr(me.right,me.left)||gr(me.left,me.right);case 102:return Nr(me.left);case 101:return We(me.right);case 27:return We(me.right)}return!1}function Nr(me){switch(me.kind){case 211:return Nr(me.expression);case 220:switch(me.operatorToken.kind){case 63:return Nr(me.left);case 27:return Nr(me.right)}}return ve(me)}function ur(){return V({flags:4,antecedents:void 0})}function xr(){return V({flags:8,antecedents:void 0})}function sr(me,Pr,yt){return V({flags:1024,target:me,antecedents:Pr,antecedent:yt})}function i(me){me.flags|=me.flags&2048?4096:2048}function Mr(me,Pr){!(Pr.flags&1)&&!e.contains(me.antecedents,Pr)&&((me.antecedents||(me.antecedents=[])).push(Pr),i(Pr))}function fr(me,Pr,yt){return Pr.flags&1?Pr:yt?(yt.kind===110&&me&64||yt.kind===95&&me&32)&&!e.isExpressionOfOptionalChainRoot(yt)&&!e.isNullishCoalesce(yt.parent)?_e:We(yt)?(i(Pr),V({flags:me,antecedent:Pr,node:yt})):Pr:me&32?Pr:_e}function Ar(me,Pr,yt,Le){return i(me),V({flags:128,antecedent:me,switchStatement:Pr,clauseStart:yt,clauseEnd:Le})}function de(me,Pr,yt){i(Pr);var Le=V({flags:me,antecedent:Pr,node:yt});return B&&Mr(B,Le),Le}function we(me,Pr){return i(me),V({flags:512,antecedent:me,node:Pr})}function qe(me){var Pr=me.antecedents;return Pr?Pr.length===1?Pr[0]:me:_e}function Cr(me){var Pr=me.parent;switch(Pr.kind){case 238:case 240:case 239:return Pr.expression===me;case 241:case 221:return Pr.condition===me}return!1}function kr(me){for(;;)if(me.kind===211)me=me.expression;else if(me.kind===218&&me.operator===53)me=me.operand;else return me.kind===220&&(me.operatorToken.kind===55||me.operatorToken.kind===56||me.operatorToken.kind===60)}function He(me){return me=e.skipParentheses(me),e.isBinaryExpression(me)&&e.isLogicalOrCoalescingAssignmentOperator(me.operatorToken.kind)}function lr(me){for(;e.isParenthesizedExpression(me.parent)||e.isPrefixUnaryExpression(me.parent)&&me.parent.operator===53;)me=me.parent;return!Cr(me)&&!He(me.parent)&&!kr(me.parent)&&!(e.isOptionalChain(me.parent)&&me.parent.expression===me)}function Hr(me,Pr,yt,Le){var Xr=w,an=d;w=yt,d=Le,me(Pr),w=Xr,d=an}function Je(me,Pr,yt){Hr(ja,me,Pr,yt),(!me||!He(me)&&!kr(me)&&!(e.isOptionalChain(me)&&e.isOutermostOptionalChain(me)))&&(Mr(Pr,fr(32,P,me)),Mr(yt,fr(64,P,me)))}function Sr(me,Pr,yt){var Le=M,Xr=Q;M=Pr,Q=yt,ja(me),M=Le,Q=Xr}function Yr(me,Pr){for(var yt=_;yt&&me.parent.kind===249;)yt.continueTarget=Pr,yt=yt.next,me=me.parent;return Pr}function ot(me){var Pr=Yr(me,xr()),yt=ur(),Le=ur();Mr(Pr,P),P=Pr,Je(me.expression,yt,Le),P=qe(yt),Sr(me.statement,Le,Pr),Mr(Pr,P),P=qe(Le)}function _t(me){var Pr=xr(),yt=Yr(me,ur()),Le=ur();Mr(Pr,P),P=Pr,Sr(me.statement,Le,yt),Mr(yt,P),P=qe(yt),Je(me.expression,Pr,Le),P=qe(Le)}function kt(me){var Pr=Yr(me,xr()),yt=ur(),Le=ur();ja(me.initializer),Mr(Pr,P),P=Pr,Je(me.condition,yt,Le),P=qe(yt),Sr(me.statement,Le,Pr),ja(me.incrementor),Mr(Pr,P),P=qe(Le)}function Yt(me){var Pr=Yr(me,xr()),yt=ur();ja(me.expression),Mr(Pr,P),P=Pr,me.kind===243&&ja(me.awaitModifier),Mr(yt,P),ja(me.initializer),me.initializer.kind!==254&&De(me.initializer),Sr(me.statement,yt,Pr),Mr(Pr,P),P=qe(yt)}function vn(me){var Pr=ur(),yt=ur(),Le=ur();Je(me.expression,Pr,yt),P=qe(Pr),ja(me.thenStatement),Mr(Le,P),P=qe(yt),ja(me.elseStatement),Mr(Le,P),P=qe(Le)}function Mn(me){ja(me.expression),me.kind===246&&(h=!0,H&&Mr(H,P)),P=_e}function qn(me){for(var Pr=_;Pr;Pr=Pr.next)if(Pr.name===me)return Pr}function nr(me,Pr,yt){var Le=me.kind===245?Pr:yt;Le&&(Mr(Le,P),P=_e)}function Zr(me){if(ja(me.label),me.label){var Pr=qn(me.label.escapedText);Pr&&(Pr.referenced=!0,nr(me,Pr.breakTarget,Pr.continueTarget))}else nr(me,M,Q)}function ir(me){var Pr=H,yt=B,Le=ur(),Xr=ur(),an=ur();if(me.finallyBlock&&(H=Xr),Mr(an,P),B=an,ja(me.tryBlock),Mr(Le,P),me.catchClause&&(P=qe(an),an=ur(),Mr(an,P),B=an,ja(me.catchClause),Mr(Le,P)),H=Pr,B=yt,me.finallyBlock){var Xn=ur();Xn.antecedents=e.concatenate(e.concatenate(Le.antecedents,an.antecedents),Xr.antecedents),P=Xn,ja(me.finallyBlock),P.flags&1?P=_e:(H&&Xr.antecedents&&Mr(H,sr(Xn,Xr.antecedents,P)),B&&an.antecedents&&Mr(B,sr(Xn,an.antecedents,P)),P=Le.antecedents?sr(Xn,Le.antecedents,P):_e)}else P=qe(Le)}function ge(me){var Pr=ur();ja(me.expression);var yt=M,Le=T;M=Pr,T=P,ja(me.caseBlock),Mr(Pr,P);var Xr=e.forEach(me.caseBlock.clauses,function(an){return an.kind===289});me.possiblyExhaustive=!Xr&&!Pr.antecedents,Xr||Mr(Pr,Ar(T,me,0,0)),M=yt,T=Le,P=qe(Pr)}function rr(me){for(var Pr=me.clauses,yt=We(me.parent.expression),Le=_e,Xr=0;Xr<Pr.length;Xr++){for(var an=Xr;!Pr[Xr].statements.length&&Xr+1<Pr.length;)ja(Pr[Xr]),Xr++;var Xn=ur();Mr(Xn,yt?Ar(T,me.parent,an,Xr+1):T),Mr(Xn,Le),P=qe(Xn);var da=Pr[Xr];ja(da),Le=P,!(P.flags&1)&&Xr!==Pr.length-1&&K.noFallthroughCasesInSwitch&&(da.fallthroughFlowNode=P)}}function pr(me){var Pr=P;P=T,ja(me.expression),P=Pr,Re(me.statements)}function Lr(me){ja(me.expression),Ce(me.expression)}function Ce(me){if(me.kind===207){var Pr=me;Pr.expression.kind!==106&&e.isDottedName(Pr.expression)&&(P=we(P,Pr))}}function cr(me){var Pr=ur();_={next:_,name:me.label.escapedText,breakTarget:Pr,continueTarget:void 0,referenced:!1},ja(me.label),ja(me.statement),!_.referenced&&!K.allowUnusedLabels&&lo(e.unusedLabelIsError(K),me.label,e.Diagnostics.Unused_label),_=_.next,Mr(Pr,P),P=qe(Pr)}function $e(me){me.kind===220&&me.operatorToken.kind===63?De(me.left):De(me)}function De(me){if(Ne(me))P=de(16,P,me);else if(me.kind===203)for(var Pr=0,yt=me.elements;Pr<yt.length;Pr++){var Le=yt[Pr];Le.kind===224?De(Le.expression):$e(Le)}else if(me.kind===204)for(var Xr=0,an=me.properties;Xr<an.length;Xr++){var Xn=an[Xr];Xn.kind===294?$e(Xn.initializer):Xn.kind===295?De(Xn.name):Xn.kind===296&&De(Xn.expression)}}function z(me,Pr,yt){var Le=ur();me.operatorToken.kind===55||me.operatorToken.kind===76?Je(me.left,Le,yt):Je(me.left,Pr,Le),P=qe(Le),ja(me.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(me.operatorToken.kind)?(Hr(ja,me.right,Pr,yt),De(me.left),Mr(Pr,fr(32,P,me)),Mr(yt,fr(64,P,me))):Je(me.right,Pr,yt)}function ke(me){if(me.operator===53){var Pr=w;w=d,d=Pr,ce(me),d=w,w=Pr}else ce(me),(me.operator===45||me.operator===46)&&De(me.operand)}function dr(me){ce(me),(me.operator===45||me.operator===46)&&De(me.operand)}function Xe(me){G?(G=!1,ja(me.operatorToken),ja(me.right),G=!0,ja(me.left)):(G=!0,ja(me.left),G=!1,ja(me.operatorToken),ja(me.right)),De(me.left)}function Qe(){return e.createBinaryExpressionTrampoline(me,Pr,yt,Le,Xr,void 0);function me(Xn,da){if(da){da.stackIndex++,e.setParent(Xn,X);var bi=b;mo(Xn);var Qa=X;X=Xn,da.skip=!1,da.inStrictModeStack[da.stackIndex]=bi,da.parentStack[da.stackIndex]=Qa}else da={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var go=Xn.operatorToken.kind;if(go===55||go===56||go===60||e.isLogicalOrCoalescingAssignmentOperator(go)){if(lr(Xn)){var wr=ur();z(Xn,wr,wr),P=qe(wr)}else z(Xn,w,d);da.skip=!0}return da}function Pr(Xn,da,bi){if(!da.skip)return an(Xn)}function yt(Xn,da,bi){da.skip||(Xn.kind===27&&Ce(bi.left),ja(Xn))}function Le(Xn,da,bi){if(!da.skip)return an(Xn)}function Xr(Xn,da){if(!da.skip){var bi=Xn.operatorToken.kind;if(e.isAssignmentOperator(bi)&&!e.isAssignmentTarget(Xn)&&(De(Xn.left),bi===63&&Xn.left.kind===206)){var Qa=Xn.left;Nr(Qa.expression)&&(P=de(256,P,Xn))}}var go=da.inStrictModeStack[da.stackIndex],wr=da.parentStack[da.stackIndex];go!==void 0&&(b=go),wr!==void 0&&(X=wr),da.skip=!1,da.stackIndex--}function an(Xn){if(Xn&&e.isBinaryExpression(Xn)&&!e.isDestructuringAssignment(Xn))return Xn;ja(Xn)}}function Ir(me){ce(me),me.expression.kind===205&&De(me.expression)}function Jr(me){var Pr=ur(),yt=ur(),Le=ur();Je(me.condition,Pr,yt),P=qe(Pr),ja(me.questionToken),ja(me.whenTrue),Mr(Le,P),P=qe(yt),ja(me.colonToken),ja(me.whenFalse),Mr(Le,P),P=qe(Le)}function Or(me){var Pr=e.isOmittedExpression(me)?void 0:me.name;if(e.isBindingPattern(Pr))for(var yt=0,Le=Pr.elements;yt<Le.length;yt++){var Xr=Le[yt];Or(Xr)}else P=de(16,P,me)}function Be(me){ce(me),(me.initializer||e.isForInOrOfStatement(me.parent.parent))&&Or(me)}function yr(me){e.isBindingPattern(me.name)?(Re(me.decorators),Re(me.modifiers),ja(me.dotDotDotToken),ja(me.propertyName),ja(me.initializer),ja(me.name)):ce(me)}function Rr(me){ja(me.tagName),me.kind!==337&&me.fullName&&(e.setParent(me.fullName,me),e.setParentRecursive(me.fullName,!1)),typeof me.comment!="string"&&Re(me.comment)}function zr(me){ce(me);var Pr=e.getHostSignatureFromJSDoc(me);Pr&&Pr.kind!==168&&le(Pr.symbol,Pr,32)}function ut(me,Pr,yt){Hr(ja,me,Pr,yt),(!e.isOptionalChain(me)||e.isOutermostOptionalChain(me))&&(Mr(Pr,fr(32,P,me)),Mr(yt,fr(64,P,me)))}function mt(me){switch(me.kind){case 205:ja(me.questionDotToken),ja(me.name);break;case 206:ja(me.questionDotToken),ja(me.argumentExpression);break;case 207:ja(me.questionDotToken),Re(me.typeArguments),Re(me.arguments);break}}function Lt(me,Pr,yt){var Le=e.isOptionalChainRoot(me)?ur():void 0;ut(me.expression,Le||Pr,yt),Le&&(P=qe(Le)),Hr(mt,me,Pr,yt),e.isOutermostOptionalChain(me)&&(Mr(Pr,fr(32,P,me)),Mr(yt,fr(64,P,me)))}function vt(me){if(lr(me)){var Pr=ur();Lt(me,Pr,Pr),P=qe(Pr)}else Lt(me,w,d)}function pt(me){e.isOptionalChain(me)?vt(me):ce(me)}function Nt(me){e.isOptionalChain(me)?vt(me):ce(me)}function Xt(me){if(e.isOptionalChain(me))vt(me);else{var Pr=e.skipParentheses(me.expression);Pr.kind===212||Pr.kind===213?(Re(me.typeArguments),Re(me.arguments),ja(me.expression)):(ce(me),me.expression.kind===106&&(P=we(P,me)))}if(me.expression.kind===205){var yt=me.expression;e.isIdentifier(yt.name)&&Nr(yt.expression)&&e.isPushOrUnshiftIdentifier(yt.name)&&(P=de(256,P,me))}}function st(me){switch(me.kind){case 225:case 256:case 259:case 204:case 181:case 320:case 285:return 1;case 257:return 65;case 260:case 258:case 194:return 33;case 303:return 37;case 171:case 172:case 168:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(me))return 173;case 170:case 255:case 167:case 173:case 321:case 315:case 178:case 174:case 175:case 179:case 169:return 45;case 212:case 213:return 61;case 261:return 4;case 166:return me.initializer?4:0;case 291:case 241:case 242:case 243:case 262:return 2;case 234:return e.isFunctionLike(me.parent)||e.isClassStaticBlockDeclaration(me.parent)?0:2}return 0}function $t(me){Z&&(Z.nextContainer=me),Z=me}function Pn(me,Pr,yt){switch(O.kind){case 260:return Ae(me,Pr,yt);case 303:return ia(me,Pr,yt);case 225:case 256:return Ea(me,Pr,yt);case 259:return Ke(O.symbol.exports,O.symbol,me,Pr,yt);case 181:case 320:case 204:case 257:case 285:return Ke(O.symbol.members,O.symbol,me,Pr,yt);case 178:case 179:case 173:case 174:case 321:case 175:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 315:case 343:case 336:case 169:case 258:case 194:return Ke(O.locals,void 0,me,Pr,yt)}}function Ea(me,Pr,yt){return e.isStatic(me)?Ke(O.symbol.exports,O.symbol,me,Pr,yt):Ke(O.symbol.members,O.symbol,me,Pr,yt)}function ia(me,Pr,yt){return e.isExternalModule(C)?Ae(me,Pr,yt):Ke(C.locals,void 0,me,Pr,yt)}function pa(me){var Pr=e.isSourceFile(me)?me:e.tryCast(me.body,e.isModuleBlock);return!!Pr&&Pr.statements.some(function(yt){return e.isExportDeclaration(yt)||e.isExportAssignment(yt)})}function Gn(me){me.flags&8388608&&!pa(me)?me.flags|=64:me.flags&=-65}function nn(me){if(Gn(me),e.isAmbientModule(me))if(e.hasSyntacticModifier(me,1)&&Eo(me,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(me))bt(me);else{var Pr=void 0;if(me.name.kind===10){var yt=me.name.text;Pr=e.tryParsePattern(yt),Pr===void 0&&Eo(me.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,yt)}var Le=Pn(me,512,110735);C.patternAmbientModules=e.append(C.patternAmbientModules,Pr&&!e.isString(Pr)?{pattern:Pr,symbol:Le}:void 0)}else{var Xr=bt(me);if(Xr!==0){var Le=me.symbol;Le.constEnumOnlyModule=!(Le.flags&304)&&Xr===2&&Le.constEnumOnlyModule!==!1}}}function bt(me){var Pr=c(me),yt=Pr!==0;return Pn(me,yt?512:1024,yt?110735:0),Pr}function Ut(me){var Pr=J(131072,Te(me));le(Pr,me,131072);var yt=J(2048,"__type");le(yt,me,2048),yt.members=e.createSymbolTable(),yt.members.set(Pr.escapedName,Pr)}function Kt(me){var Pr;if(function(go){go[go.Property=1]="Property",go[go.Accessor=2]="Accessor"}(Pr||(Pr={})),b&&!e.isAssignmentTarget(me))for(var yt=new e.Map,Le=0,Xr=me.properties;Le<Xr.length;Le++){var an=Xr[Le];if(!(an.kind===296||an.name.kind!==79)){var Xn=an.name,da=an.kind===294||an.kind===295||an.kind===168?1:2,bi=yt.get(Xn.escapedText);if(!bi){yt.set(Xn.escapedText,da);continue}if(da===1&&bi===1){var Qa=e.getErrorSpanForNode(C,Xn);C.bindDiagnostics.push(e.createFileDiagnostic(C,Qa.start,Qa.length,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode))}}}return ra(me,4096,"__object")}function bn(me){return ra(me,4096,"__jsxAttributes")}function wn(me,Pr,yt){return Pn(me,Pr,yt)}function ra(me,Pr,yt){var Le=J(Pr,yt);return Pr&106508&&(Le.parent=O.symbol),le(Le,me,Pr),Le}function ft(me,Pr,yt){switch(ie.kind){case 260:Ae(me,Pr,yt);break;case 303:if(e.isExternalOrCommonJsModule(O)){Ae(me,Pr,yt);break}default:ie.locals||(ie.locals=e.createSymbolTable(),$t(ie)),Ke(ie.locals,void 0,me,Pr,yt)}}function Ct(){if(!!re){for(var me=O,Pr=Z,yt=ie,Le=X,Xr=P,an=0,Xn=re;an<Xn.length;an++){var da=Xn[an],bi=da.parent.parent;O=e.findAncestor(bi.parent,function(ss){return!!(st(ss)&1)})||C,ie=e.getEnclosingBlockScopeContainer(bi)||C,P=V({flags:2}),X=da,ja(da.typeExpression);var Qa=e.getNameOfDeclaration(da);if((e.isJSDocEnumTag(da)||!da.fullName)&&Qa&&e.isPropertyAccessEntityNameExpression(Qa.parent)){var go=Si(Qa.parent);if(go){ti(C.symbol,Qa.parent,go,!!e.findAncestor(Qa,function(ss){return e.isPropertyAccessExpression(ss)&&ss.name.escapedText==="prototype"}),!1);var wr=O;switch(e.getAssignmentDeclarationPropertyAccessKind(Qa.parent)){case 1:case 2:e.isExternalOrCommonJsModule(C)?O=C:O=void 0;break;case 4:O=Qa.parent.expression;break;case 3:O=Qa.parent.expression.name;break;case 5:O=F(C,Qa.parent.expression)?C:e.isPropertyAccessExpression(Qa.parent.expression)?Qa.parent.expression.name:Qa.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}O&&Ae(da,524288,788968),O=wr}}else e.isJSDocEnumTag(da)||!da.fullName||da.fullName.kind===79?(X=da.parent,ft(da,524288,788968)):ja(da.fullName)}O=me,Z=Pr,ie=yt,X=Le,P=Xr}}function Pt(me){!C.parseDiagnostics.length&&!(me.flags&8388608)&&!(me.flags&4194304)&&!e.isIdentifierName(me)&&(b&&me.originalKeywordKind>=117&&me.originalKeywordKind<=125?C.bindDiagnostics.push(D(me,Et(me),e.declarationNameToString(me))):me.originalKeywordKind===132?e.isExternalModule(C)&&e.isInTopLevelContext(me)?C.bindDiagnostics.push(D(me,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(me))):me.flags&32768&&C.bindDiagnostics.push(D(me,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(me))):me.originalKeywordKind===125&&me.flags&8192&&C.bindDiagnostics.push(D(me,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(me))))}function Et(me){return e.getContainingClass(me)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:C.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function et(me){me.escapedText==="#constructor"&&(C.parseDiagnostics.length||C.bindDiagnostics.push(D(me,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(me))))}function hn(me){b&&e.isLeftHandSideExpression(me.left)&&e.isAssignmentOperator(me.operatorToken.kind)&&di(me,me.left)}function Qn(me){b&&me.variableDeclaration&&di(me,me.variableDeclaration.name)}function Ra(me){if(b&&me.expression.kind===79){var Pr=e.getErrorSpanForNode(C,me.expression);C.bindDiagnostics.push(e.createFileDiagnostic(C,Pr.start,Pr.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Ki(me){return e.isIdentifier(me)&&(me.escapedText==="eval"||me.escapedText==="arguments")}function di(me,Pr){if(Pr&&Pr.kind===79){var yt=Pr;if(Ki(yt)){var Le=e.getErrorSpanForNode(C,Pr);C.bindDiagnostics.push(e.createFileDiagnostic(C,Le.start,Le.length,ya(me),e.idText(yt)))}}}function ya(me){return e.getContainingClass(me)?e.Diagnostics.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:C.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function $a(me){b&&di(me,me.name)}function ao(me){return e.getContainingClass(me)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:C.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function ei(me){if(k<2&&ie.kind!==303&&ie.kind!==260&&!e.isFunctionLikeOrClassStaticBlockDeclaration(ie)){var Pr=e.getErrorSpanForNode(C,me);C.bindDiagnostics.push(e.createFileDiagnostic(C,Pr.start,Pr.length,ao(me)))}}function Fi(me){b&&me.numericLiteralFlags&32&&C.bindDiagnostics.push(D(me,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function eo(me){b&&di(me,me.operand)}function Wo(me){b&&(me.operator===45||me.operator===46)&&di(me,me.operand)}function Yi(me){b&&Eo(me,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Ni(me){b&&e.getEmitScriptTarget(K)>=2&&(e.isDeclarationStatement(me.statement)||e.isVariableStatement(me.statement))&&Eo(me.label,e.Diagnostics.A_label_is_not_allowed_here)}function Eo(me,Pr,yt,Le,Xr){var an=e.getSpanOfTokenAtPosition(C,me.pos);C.bindDiagnostics.push(e.createFileDiagnostic(C,an.start,an.length,Pr,yt,Le,Xr))}function lo(me,Pr,yt){So(me,Pr,Pr,yt)}function So(me,Pr,yt,Le){ts(me,{pos:e.getTokenPosOfNode(Pr,C),end:yt.end},Le)}function ts(me,Pr,yt){var Le=e.createFileDiagnostic(C,Pr.pos,Pr.end-Pr.pos,yt);me?C.bindDiagnostics.push(Le):C.bindSuggestionDiagnostics=e.append(C.bindSuggestionDiagnostics,kn(kn({},Le),{category:e.DiagnosticCategory.Suggestion}))}function ja(me){if(!!me){e.setParent(me,X);var Pr=b;if(mo(me),me.kind>159){var yt=X;X=me;var Le=st(me);Le===0?Ue(me):se(me,Le),X=yt}else{var yt=X;me.kind===1&&(X=me),Do(me),X=yt}b=Pr}}function Do(me){if(e.hasJSDocNodes(me))if(e.isInJSFile(me))for(var Pr=0,yt=me.jsDoc;Pr<yt.length;Pr++){var Le=yt[Pr];ja(Le)}else for(var Xr=0,an=me.jsDoc;Xr<an.length;Xr++){var Le=an[Xr];e.setParent(Le,me),e.setParentRecursive(Le,!1)}}function Pa(me){if(!b)for(var Pr=0,yt=me;Pr<yt.length;Pr++){var Le=yt[Pr];if(!e.isPrologueDirective(Le))return;if(Ti(Le)){b=!0;return}}}function Ti(me){var Pr=e.getSourceTextOfNodeFromSourceFile(C,me.expression);return Pr==='"use strict"'||Pr==="'use strict'"}function mo(me){switch(me.kind){case 79:if(me.isInJSDocNamespace){for(var Pr=me.parent;Pr&&!e.isJSDocTypeAlias(Pr);)Pr=Pr.parent;ft(Pr,524288,788968);break}case 108:return P&&(e.isExpression(me)||X.kind===295)&&(me.flowNode=P),Pt(me);case 160:P&&e.isPartOfTypeQuery(me)&&(me.flowNode=P);break;case 230:case 106:me.flowNode=P;break;case 80:return et(me);case 205:case 206:var yt=me;P&&Ne(yt)&&(yt.flowNode=P),e.isSpecialPropertyDeclaration(yt)&&Ye(yt),e.isInJSFile(yt)&&C.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(yt)&&!$(ie,"module")&&Ke(C.locals,void 0,yt.expression,134217729,111550);break;case 220:var Le=e.getAssignmentDeclarationKind(me);switch(Le){case 1:Fe(me);break;case 2:Gr(me);break;case 3:Mt(me.left,me);break;case 6:Tr(me);break;case 4:ye(me);break;case 5:var Xr=me.left.expression;if(e.isInJSFile(me)&&e.isIdentifier(Xr)){var an=$(ie,Xr.escapedText);if(e.isThisInitializedDeclaration(an==null?void 0:an.valueDeclaration)){ye(me);break}}Ln(me);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return hn(me);case 291:return Qn(me);case 214:return Ra(me);case 8:return Fi(me);case 219:return eo(me);case 218:return Wo(me);case 247:return Yi(me);case 249:return Ni(me);case 191:q=!0;return;case 176:break;case 162:return Ro(me);case 163:return Ui(me);case 253:return vi(me);case 202:return me.flowNode=P,vi(me);case 166:case 165:return No(me);case 294:case 295:return Mi(me,4,0);case 297:return Mi(me,8,900095);case 173:case 174:case 175:return Pn(me,131072,0);case 168:case 167:return Mi(me,8192|(me.questionToken?16777216:0),e.isObjectLiteralMethod(me)?0:103359);case 255:return Ca(me);case 170:return Pn(me,16384,0);case 171:return Mi(me,32768,46015);case 172:return Mi(me,65536,78783);case 178:case 315:case 321:case 179:return Ut(me);case 181:case 320:case 194:return ko(me);case 330:return zr(me);case 204:return Kt(me);case 212:case 213:return gi(me);case 207:var Xn=e.getAssignmentDeclarationKind(me);switch(Xn){case 7:return Wt(me);case 8:return Bn(me);case 9:return tt(me);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(me)&&Wn(me);break;case 225:case 256:return b=!0,sa(me);case 257:return ft(me,64,788872);case 258:return ft(me,524288,788968);case 259:return oi(me);case 260:return nn(me);case 285:return bn(me);case 284:return wn(me,4,0);case 264:case 267:case 269:case 274:return Pn(me,2097152,2097152);case 263:return Ds(me);case 266:return gt(me);case 271:return vr(me);case 270:return Ss(me);case 303:return Pa(me.statements),Oo();case 234:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(me.parent))return;case 261:return Pa(me.statements);case 338:if(me.parent.kind===321)return Ui(me);if(me.parent.kind!==320)break;case 345:var da=me,bi=da.isBracketed||da.typeExpression&&da.typeExpression.type.kind===314?16777220:4;return Pn(da,bi,0);case 343:case 336:case 337:return(re||(re=[])).push(me)}}function No(me){return Mi(me,4|(me.questionToken?16777216:0),0)}function ko(me){return ra(me,2048,"__type")}function Oo(){if(Gn(C),e.isExternalModule(C))Po();else if(e.isJsonSourceFile(C)){Po();var me=C.symbol;Ke(C.symbol.exports,C.symbol,C,4,67108863),C.symbol=me}}function Po(){ra(C,512,'"'.concat(e.removeFileExtension(C.fileName),'"'))}function Ss(me){if(!O.symbol||!O.symbol.exports)ra(me,111551,Te(me));else{var Pr=e.exportAssignmentIsAlias(me)?2097152:4,yt=Ke(O.symbol.exports,O.symbol,me,Pr,67108863);me.isExportEquals&&e.setValueDeclaration(yt,me)}}function Ds(me){me.modifiers&&me.modifiers.length&&C.bindDiagnostics.push(D(me,e.Diagnostics.Modifiers_cannot_appear_here));var Pr=e.isSourceFile(me.parent)?e.isExternalModule(me.parent)?me.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;Pr?C.bindDiagnostics.push(D(me,Pr)):(C.symbol.globalExports=C.symbol.globalExports||e.createSymbolTable(),Ke(C.symbol.globalExports,C.symbol,me,2097152,2097152))}function vr(me){!O.symbol||!O.symbol.exports?ra(me,8388608,Te(me)):me.exportClause?e.isNamespaceExport(me.exportClause)&&(e.setParent(me.exportClause,me),Ke(O.symbol.exports,O.symbol,me.exportClause,2097152,2097152)):Ke(O.symbol.exports,O.symbol,me,8388608,0)}function gt(me){me.name&&Pn(me,2097152,2097152)}function tn(me){return C.externalModuleIndicator?!1:(C.commonJsModuleIndicator||(C.commonJsModuleIndicator=me,Po()),!0)}function Bn(me){if(!!tn(me)){var Pr=At(me.arguments[0],void 0,function(Le,Xr){return Xr&&le(Xr,Le,67110400),Xr});if(Pr){var yt=1048580;Ke(Pr.exports,Pr,me,yt,0)}}}function Fe(me){if(!!tn(me)){var Pr=At(me.left.expression,void 0,function(Xr,an){return an&&le(an,Xr,67110400),an});if(Pr){var yt=e.isAliasableExpression(me.right)&&(e.isExportsIdentifier(me.left.expression)||e.isModuleExportsAccessExpression(me.left.expression)),Le=yt?2097152:1048580;e.setParent(me.left,me),Ke(Pr.exports,Pr,me.left,Le,0)}}}function Gr(me){if(!!tn(me)){var Pr=e.getRightMostAssignedExpression(me.right);if(!(e.isEmptyObjectLiteral(Pr)||O===C&&F(C,Pr))){if(e.isObjectLiteralExpression(Pr)&&e.every(Pr.properties,e.isShorthandPropertyAssignment)){e.forEach(Pr.properties,ht);return}var yt=e.exportAssignmentIsAlias(me)?2097152:1049092,Le=Ke(C.symbol.exports,C.symbol,me,yt|67108864,0);e.setValueDeclaration(Le,me)}}}function ht(me){Ke(C.symbol.exports,C.symbol,me,69206016,0)}function ye(me){e.Debug.assert(e.isInJSFile(me));var Pr=e.isBinaryExpression(me)&&e.isPropertyAccessExpression(me.left)&&e.isPrivateIdentifier(me.left.name)||e.isPropertyAccessExpression(me)&&e.isPrivateIdentifier(me.name);if(!Pr){var yt=e.getThisContainer(me,!1);switch(yt.kind){case 255:case 212:var Le=yt.symbol;if(e.isBinaryExpression(yt.parent)&&yt.parent.operatorToken.kind===63){var Xr=yt.parent.left;e.isBindableStaticAccessExpression(Xr)&&e.isPrototypeAccess(Xr.expression)&&(Le=jo(Xr.expression.expression,x))}Le&&Le.valueDeclaration&&(Le.members=Le.members||e.createSymbolTable(),e.hasDynamicName(me)?oe(me,Le,Le.members):Ke(Le.members,Le,me,67108868,0),le(Le,Le.valueDeclaration,32));break;case 170:case 166:case 168:case 171:case 172:case 169:var an=yt.parent,Xn=e.isStatic(yt)?an.symbol.exports:an.symbol.members;e.hasDynamicName(me)?oe(me,an.symbol,Xn):Ke(Xn,an.symbol,me,67108868,0,!0);break;case 303:if(e.hasDynamicName(me))break;yt.commonJsModuleIndicator?Ke(yt.symbol.exports,yt.symbol,me,1048580,0):Pn(me,1,111550);break;default:e.Debug.failBadSyntaxKind(yt)}}}function oe(me,Pr,yt){Ke(yt,Pr,me,4,0,!0,!0),Pe(me,Pr)}function Pe(me,Pr){Pr&&(Pr.assignmentDeclarationMembers||(Pr.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(me),me)}function Ye(me){me.expression.kind===108?ye(me):e.isBindableStaticAccessExpression(me)&&me.parent.parent.kind===303&&(e.isPrototypeAccess(me.expression)?Mt(me,me.parent):va(me))}function Tr(me){e.setParent(me.left,me),e.setParent(me.right,me),Oi(me.left.expression,me.left,!1,!0)}function tt(me){var Pr=jo(me.arguments[0].expression);Pr&&Pr.valueDeclaration&&le(Pr,Pr.valueDeclaration,32),ii(me,Pr,!0)}function Mt(me,Pr){var yt=me.expression,Le=yt.expression;e.setParent(Le,yt),e.setParent(yt,me),e.setParent(me,Pr),Oi(Le,me,!0,!0)}function Wt(me){var Pr=jo(me.arguments[0]),yt=me.parent.parent.kind===303;Pr=ti(Pr,me.arguments[0],yt,!1,!1),ii(me,Pr,!1)}function Ln(me){var Pr,yt=jo(me.left.expression,O)||jo(me.left.expression,ie);if(!(!e.isInJSFile(me)&&!e.isFunctionSymbol(yt))){var Le=e.getLeftmostAccessExpression(me.left);if(!(e.isIdentifier(Le)&&((Pr=$(O,Le.escapedText))===null||Pr===void 0?void 0:Pr.flags)&2097152))if(e.setParent(me.left,me),e.setParent(me.right,me),e.isIdentifier(me.left.expression)&&O===C&&F(C,me.left.expression))Fe(me);else if(e.hasDynamicName(me)){ra(me,67108868,"__computed");var Xr=ti(yt,me.left.expression,Si(me.left),!1,!1);Pe(me,Xr)}else va(e.cast(me.left,e.isBindableStaticNameExpression))}}function va(me){e.Debug.assert(!e.isIdentifier(me)),e.setParent(me.expression,me),Oi(me.expression,me,!1,!1)}function ti(me,Pr,yt,Le,Xr){if((me==null?void 0:me.flags)&2097152)return me;if(yt&&!Le){var an=67110400,Xn=110735;me=At(Pr,me,function(da,bi,Qa){if(bi)return le(bi,da,an),bi;var go=Qa?Qa.exports:C.jsGlobalAugmentations||(C.jsGlobalAugmentations=e.createSymbolTable());return Ke(go,Qa,da,an,Xn)})}return Xr&&me&&me.valueDeclaration&&le(me,me.valueDeclaration,32),me}function ii(me,Pr,yt){if(!(!Pr||!_s(Pr))){var Le=yt?Pr.members||(Pr.members=e.createSymbolTable()):Pr.exports||(Pr.exports=e.createSymbolTable()),Xr=0,an=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(me))?(Xr=8192,an=103359):e.isCallExpression(me)&&e.isBindableObjectDefinePropertyCall(me)&&(e.some(me.arguments[2].properties,function(Xn){var da=e.getNameOfDeclaration(Xn);return!!da&&e.isIdentifier(da)&&e.idText(da)==="set"})&&(Xr|=65540,an|=78783),e.some(me.arguments[2].properties,function(Xn){var da=e.getNameOfDeclaration(Xn);return!!da&&e.isIdentifier(da)&&e.idText(da)==="get"})&&(Xr|=32772,an|=46015)),Xr===0&&(Xr=4,an=0),Ke(Le,Pr,me,Xr|67108864,an&-67108865)}}function Si(me){return e.isBinaryExpression(me.parent)?os(me.parent).parent.kind===303:me.parent.parent.kind===303}function Oi(me,Pr,yt,Le){var Xr=jo(me,O)||jo(me,ie),an=Si(Pr);Xr=ti(Xr,Pr.expression,an,yt,Le),ii(Pr,Xr,yt)}function _s(me){if(me.flags&1072)return!0;var Pr=me.valueDeclaration;if(Pr&&e.isCallExpression(Pr))return!!e.getAssignedExpandoInitializer(Pr);var yt=Pr?e.isVariableDeclaration(Pr)?Pr.initializer:e.isBinaryExpression(Pr)?Pr.right:e.isPropertyAccessExpression(Pr)&&e.isBinaryExpression(Pr.parent)?Pr.parent.right:void 0:void 0;if(yt=yt&&e.getRightMostAssignedExpression(yt),yt){var Le=e.isPrototypeAccess(e.isVariableDeclaration(Pr)?Pr.name:e.isBinaryExpression(Pr)?Pr.left:Pr);return!!e.getExpandoInitializer(e.isBinaryExpression(yt)&&(yt.operatorToken.kind===56||yt.operatorToken.kind===60)?yt.right:yt,Le)}return!1}function os(me){for(;e.isBinaryExpression(me.parent);)me=me.parent;return me.parent}function jo(me,Pr){if(Pr===void 0&&(Pr=O),e.isIdentifier(me))return $(Pr,me.escapedText);var yt=jo(me.expression);return yt&&yt.exports&&yt.exports.get(e.getElementOrPropertyAccessName(me))}function At(me,Pr,yt){if(F(C,me))return C.symbol;if(e.isIdentifier(me))return yt(me,jo(me),Pr);var Le=At(me.expression,Pr,yt),Xr=e.getNameOrArgument(me);return e.isPrivateIdentifier(Xr)&&e.Debug.fail("unexpected PrivateIdentifier"),yt(Xr,Le&&Le.exports&&Le.exports.get(e.getElementOrPropertyAccessName(me)),Le)}function Wn(me){!C.commonJsModuleIndicator&&e.isRequireCall(me,!1)&&tn(me)}function sa(me){if(me.kind===256)ft(me,32,899503);else{var Pr=me.name?me.name.escapedText:"__class";ra(me,32,Pr),me.name&&A.add(me.name.escapedText)}var yt=me.symbol,Le=J(4194308,"prototype"),Xr=yt.exports.get(Le.escapedName);Xr&&(me.name&&e.setParent(me.name,me),C.bindDiagnostics.push(D(Xr.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(Le)))),yt.exports.set(Le.escapedName,Le),Le.parent=yt}function oi(me){return e.isEnumConst(me)?ft(me,128,899967):ft(me,256,899327)}function vi(me){b&&di(me,me.name),e.isBindingPattern(me.name)||(e.isInJSFile(me)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(me)&&!e.getJSDocTypeTag(me)?Pn(me,2097152,2097152):e.isBlockOrCatchScoped(me)?ft(me,2,111551):e.isParameterDeclaration(me)?Pn(me,1,111551):Pn(me,1,111550))}function Ui(me){if(!(me.kind===338&&O.kind!==321)&&(b&&!(me.flags&8388608)&&di(me,me.name),e.isBindingPattern(me.name)?ra(me,1,"__"+me.parent.parameters.indexOf(me)):Pn(me,1,111551),e.isParameterPropertyDeclaration(me,me.parent))){var Pr=me.parent.parent;Ke(Pr.symbol.members,Pr.symbol,me,4|(me.questionToken?16777216:0),0)}}function Ca(me){!C.isDeclarationFile&&!(me.flags&8388608)&&e.isAsyncFunction(me)&&(R|=2048),$a(me),b?(ei(me),ft(me,16,110991)):Pn(me,16,110991)}function gi(me){!C.isDeclarationFile&&!(me.flags&8388608)&&e.isAsyncFunction(me)&&(R|=2048),P&&(me.flowNode=P),$a(me);var Pr=me.name?me.name.escapedText:"__function";return ra(me,16,Pr)}function Mi(me,Pr,yt){return!C.isDeclarationFile&&!(me.flags&8388608)&&e.isAsyncFunction(me)&&(R|=2048),P&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(me)&&(me.flowNode=P),e.hasDynamicName(me)?ra(me,Pr,"__computed"):Pn(me,Pr,yt)}function Vi(me){var Pr=e.findAncestor(me,function(yt){return yt.parent&&e.isConditionalTypeNode(yt.parent)&&yt.parent.extendsType===yt});return Pr&&Pr.parent}function Ro(me){if(e.isJSDocTemplateTag(me.parent)){var Pr=e.getEffectiveContainerForJSDocTemplateTag(me.parent);Pr?(Pr.locals||(Pr.locals=e.createSymbolTable()),Ke(Pr.locals,void 0,me,262144,526824)):Pn(me,262144,526824)}else if(me.parent.kind===189){var yt=Vi(me.parent);yt?(yt.locals||(yt.locals=e.createSymbolTable()),Ke(yt.locals,void 0,me,262144,526824)):ra(me,262144,Te(me))}else Pn(me,262144,526824)}function Yo(me){var Pr=c(me);return Pr===1||Pr===2&&e.shouldPreserveConstEnums(K)}function ns(me){if(!(P.flags&1))return!1;if(P===_e){var Pr=e.isStatementButNotDeclaration(me)&&me.kind!==235||me.kind===256||me.kind===260&&Yo(me);if(Pr&&(P=Se,!K.allowUnreachableCode)){var yt=e.unreachableCodeIsError(K)&&!(me.flags&8388608)&&(!e.isVariableStatement(me)||!!(e.getCombinedNodeFlags(me.declarationList)&3)||me.declarationList.declarations.some(function(Le){return!!Le.initializer}));j(me,function(Le,Xr){return So(yt,Le,Xr,e.Diagnostics.Unreachable_code_detected)})}}return!0}}function j(C,K){if(e.isStatement(C)&&te(C)&&e.isBlock(C.parent)){var k=C.parent.statements,X=e.sliceAfter(k,C);e.getRangesWhere(X,te,function(O,x){return K(X[O],X[x-1])})}else K(C,C)}function te(C){return!e.isFunctionDeclaration(C)&&!E(C)&&!e.isEnumDeclaration(C)&&!(e.isVariableStatement(C)&&!(e.getCombinedNodeFlags(C)&3)&&C.declarationList.declarations.some(function(K){return!K.initializer}))}function E(C){switch(C.kind){case 257:case 258:return!0;case 260:return c(C)!==1;case 259:return e.hasSyntacticModifier(C,2048);default:return!1}}function F(C,K){for(var k=0,X=[K];X.length&&k<100;){if(k++,K=X.shift(),e.isExportsIdentifier(K)||e.isModuleExportsAccessExpression(K))return!0;if(e.isIdentifier(K)){var O=$(C,K.escapedText);if(!!O&&!!O.valueDeclaration&&e.isVariableDeclaration(O.valueDeclaration)&&!!O.valueDeclaration.initializer){var x=O.valueDeclaration.initializer;X.push(x),e.isAssignmentExpression(x,!0)&&(X.push(x.left),X.push(x.right))}}}return!1}e.isExportsOrModuleExportsOrAlias=F;function $(C,K){var k=C.locals&&C.locals.get(K);return k?k.exportSymbol||k:e.isSourceFile(C)&&C.jsGlobalAugmentations&&C.jsGlobalAugmentations.has(K)?C.jsGlobalAugmentations.get(K):C.symbol&&C.symbol.exports&&C.symbol.exports.get(K)}})(mr||(mr={}));var mr;(function(e){function n(c,u,g,p,I,V,L,m,y,j){return te;function te(E){E===void 0&&(E=function(){return!0});var F=[],$=[];return{walkType:function(M){try{return C(M),{visitedTypes:e.getOwnValues(F),visitedSymbols:e.getOwnValues($)}}finally{e.clear(F),e.clear($)}},walkSymbol:function(M){try{return P(M),{visitedTypes:e.getOwnValues(F),visitedSymbols:e.getOwnValues($)}}finally{e.clear(F),e.clear($)}}};function C(M){if(!!M&&!F[M.id]){F[M.id]=M;var Q=P(M.symbol);if(!Q){if(M.flags&524288){var H=M,w=H.objectFlags;w&4&&K(M),w&32&&ie(M),w&3&&re(M),w&24&&q(H)}M.flags&262144&&k(M),M.flags&3145728&&X(M),M.flags&4194304&&O(M),M.flags&8388608&&x(M)}}}function K(M){C(M.target),e.forEach(j(M),C)}function k(M){C(m(M))}function X(M){e.forEach(M.types,C)}function O(M){C(M.type)}function x(M){C(M.objectType),C(M.indexType),C(M.constraint)}function ie(M){C(M.typeParameter),C(M.constraintType),C(M.templateType),C(M.modifiersType)}function Z(M){var Q=u(M);Q&&C(Q.type),e.forEach(M.typeParameters,C);for(var H=0,w=M.parameters;H<w.length;H++){var d=w[H];P(d)}C(c(M)),C(g(M))}function re(M){q(M),e.forEach(M.typeParameters,C),e.forEach(p(M),C),C(M.thisType)}function q(M){for(var Q=I(M),H=0,w=Q.indexInfos;H<w.length;H++){var d=w[H];C(d.keyType),C(d.type)}for(var B=0,T=Q.callSignatures;B<T.length;B++){var _=T[B];Z(_)}for(var h=0,R=Q.constructSignatures;h<R.length;h++){var _=R[h];Z(_)}for(var b=0,G=Q.properties;b<G.length;b++){var Y=G[b];P(Y)}}function P(M){if(!M)return!1;var Q=e.getSymbolId(M);if($[Q])return!1;if($[Q]=M,!E(M))return!0;var H=V(M);return C(H),M.exports&&M.exports.forEach(P),e.forEach(M.declarations,function(w){if(w.type&&w.type.kind===180){var d=w.type,B=L(y(d.exprName));P(B)}}),!1}}}e.createGetSymbolWalker=n})(mr||(mr={}));var mr;(function(e){var n=/^".+"$/,c="(anonymous)",u=1,g=1,p=1,I=1,V;(function(A){A[A.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",A[A.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",A[A.AllowsStringInputFlag=4]="AllowsStringInputFlag",A[A.ForOfFlag=8]="ForOfFlag",A[A.YieldStarFlag=16]="YieldStarFlag",A[A.SpreadFlag=32]="SpreadFlag",A[A.DestructuringFlag=64]="DestructuringFlag",A[A.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",A[A.Element=1]="Element",A[A.Spread=33]="Spread",A[A.Destructuring=65]="Destructuring",A[A.ForOf=13]="ForOf",A[A.ForAwaitOf=15]="ForAwaitOf",A[A.YieldStar=17]="YieldStar",A[A.AsyncYieldStar=19]="AsyncYieldStar",A[A.GeneratorReturnType=1]="GeneratorReturnType",A[A.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"})(V||(V={}));var L;(function(A){A[A.Yield=0]="Yield",A[A.Return=1]="Return",A[A.Next=2]="Next"})(L||(L={}));var m;(function(A){A[A.Normal=0]="Normal",A[A.FunctionReturn=1]="FunctionReturn",A[A.GeneratorNext=2]="GeneratorNext",A[A.GeneratorYield=3]="GeneratorYield"})(m||(m={}));var y;(function(A){A[A.None=0]="None",A[A.TypeofEQString=1]="TypeofEQString",A[A.TypeofEQNumber=2]="TypeofEQNumber",A[A.TypeofEQBigInt=4]="TypeofEQBigInt",A[A.TypeofEQBoolean=8]="TypeofEQBoolean",A[A.TypeofEQSymbol=16]="TypeofEQSymbol",A[A.TypeofEQObject=32]="TypeofEQObject",A[A.TypeofEQFunction=64]="TypeofEQFunction",A[A.TypeofEQHostObject=128]="TypeofEQHostObject",A[A.TypeofNEString=256]="TypeofNEString",A[A.TypeofNENumber=512]="TypeofNENumber",A[A.TypeofNEBigInt=1024]="TypeofNEBigInt",A[A.TypeofNEBoolean=2048]="TypeofNEBoolean",A[A.TypeofNESymbol=4096]="TypeofNESymbol",A[A.TypeofNEObject=8192]="TypeofNEObject",A[A.TypeofNEFunction=16384]="TypeofNEFunction",A[A.TypeofNEHostObject=32768]="TypeofNEHostObject",A[A.EQUndefined=65536]="EQUndefined",A[A.EQNull=131072]="EQNull",A[A.EQUndefinedOrNull=262144]="EQUndefinedOrNull",A[A.NEUndefined=524288]="NEUndefined",A[A.NENull=1048576]="NENull",A[A.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",A[A.Truthy=4194304]="Truthy",A[A.Falsy=8388608]="Falsy",A[A.All=16777215]="All",A[A.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",A[A.BaseStringFacts=12582401]="BaseStringFacts",A[A.StringStrictFacts=16317953]="StringStrictFacts",A[A.StringFacts=16776705]="StringFacts",A[A.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",A[A.EmptyStringFacts=12582401]="EmptyStringFacts",A[A.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",A[A.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",A[A.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",A[A.BaseNumberFacts=12582146]="BaseNumberFacts",A[A.NumberStrictFacts=16317698]="NumberStrictFacts",A[A.NumberFacts=16776450]="NumberFacts",A[A.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",A[A.ZeroNumberFacts=12582146]="ZeroNumberFacts",A[A.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",A[A.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",A[A.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",A[A.BaseBigIntFacts=12581636]="BaseBigIntFacts",A[A.BigIntStrictFacts=16317188]="BigIntStrictFacts",A[A.BigIntFacts=16775940]="BigIntFacts",A[A.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",A[A.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",A[A.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",A[A.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",A[A.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",A[A.BaseBooleanFacts=12580616]="BaseBooleanFacts",A[A.BooleanStrictFacts=16316168]="BooleanStrictFacts",A[A.BooleanFacts=16774920]="BooleanFacts",A[A.FalseStrictFacts=12121864]="FalseStrictFacts",A[A.FalseFacts=12580616]="FalseFacts",A[A.TrueStrictFacts=7927560]="TrueStrictFacts",A[A.TrueFacts=16774920]="TrueFacts",A[A.SymbolStrictFacts=7925520]="SymbolStrictFacts",A[A.SymbolFacts=16772880]="SymbolFacts",A[A.ObjectStrictFacts=7888800]="ObjectStrictFacts",A[A.ObjectFacts=16736160]="ObjectFacts",A[A.FunctionStrictFacts=7880640]="FunctionStrictFacts",A[A.FunctionFacts=16728e3]="FunctionFacts",A[A.UndefinedFacts=9830144]="UndefinedFacts",A[A.NullFacts=9363232]="NullFacts",A[A.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",A[A.AllTypeofNE=556800]="AllTypeofNE",A[A.EmptyObjectFacts=16777215]="EmptyObjectFacts"})(y||(y={}));var j=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),te=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),E;(function(A){A[A.Type=0]="Type",A[A.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",A[A.DeclaredType=2]="DeclaredType",A[A.ResolvedReturnType=3]="ResolvedReturnType",A[A.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",A[A.EnumTagType=5]="EnumTagType",A[A.ResolvedTypeArguments=6]="ResolvedTypeArguments",A[A.ResolvedBaseTypes=7]="ResolvedBaseTypes"})(E||(E={}));var F;(function(A){A[A.Normal=0]="Normal",A[A.Contextual=1]="Contextual",A[A.Inferential=2]="Inferential",A[A.SkipContextSensitive=4]="SkipContextSensitive",A[A.SkipGenericFunctions=8]="SkipGenericFunctions",A[A.IsForSignatureHelp=16]="IsForSignatureHelp"})(F||(F={}));var $;(function(A){A[A.BivariantCallback=1]="BivariantCallback",A[A.StrictCallback=2]="StrictCallback",A[A.IgnoreReturnTypes=4]="IgnoreReturnTypes",A[A.StrictArity=8]="StrictArity",A[A.Callback=3]="Callback"})($||($={}));var C;(function(A){A[A.None=0]="None",A[A.Source=1]="Source",A[A.Target=2]="Target",A[A.PropertyCheck=4]="PropertyCheck",A[A.UnionIntersectionCheck=8]="UnionIntersectionCheck",A[A.InPropertyCheck=16]="InPropertyCheck"})(C||(C={}));var K;(function(A){A[A.None=0]="None",A[A.Source=1]="Source",A[A.Target=2]="Target",A[A.Both=3]="Both"})(K||(K={}));var k;(function(A){A[A.IncludeReadonly=1]="IncludeReadonly",A[A.ExcludeReadonly=2]="ExcludeReadonly",A[A.IncludeOptional=4]="IncludeOptional",A[A.ExcludeOptional=8]="ExcludeOptional"})(k||(k={}));var X;(function(A){A[A.None=0]="None",A[A.Source=1]="Source",A[A.Target=2]="Target",A[A.Both=3]="Both"})(X||(X={}));var O;(function(A){A.resolvedExports="resolvedExports",A.resolvedMembers="resolvedMembers"})(O||(O={}));var x;(function(A){A[A.Local=0]="Local",A[A.Parameter=1]="Parameter"})(x||(x={}));var ie=e.and(h,_),Z;(function(A){A[A.GetAccessor=1]="GetAccessor",A[A.SetAccessor=2]="SetAccessor",A[A.PropertyAssignment=4]="PropertyAssignment",A[A.Method=8]="Method",A[A.PrivateStatic=16]="PrivateStatic",A[A.GetOrSetAccessor=3]="GetOrSetAccessor",A[A.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"})(Z||(Z={}));var re;(function(A){A[A.None=0]="None",A[A.ExportValue=1]="ExportValue",A[A.ExportType=2]="ExportType",A[A.ExportNamespace=4]="ExportNamespace"})(re||(re={}));var q;(function(A){A[A.None=0]="None",A[A.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",A[A.VoidIsNonOptional=2]="VoidIsNonOptional"})(q||(q={}));var P;(function(A){A[A.Uppercase=0]="Uppercase",A[A.Lowercase=1]="Lowercase",A[A.Capitalize=2]="Capitalize",A[A.Uncapitalize=3]="Uncapitalize"})(P||(P={}));var M=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function Q(){}function H(){this.flags=0}function w(A){return A.id||(A.id=g,g++),A.id}e.getNodeId=w;function d(A){return A.id||(A.id=u,u++),A.id}e.getSymbolId=d;function B(A,_e){var Se=e.getModuleInstanceState(A);return Se===1||_e&&Se===2}e.isInstantiatedModule=B;function T(A,_e){var Se=e.memoize(function(){var r=new e.Map;return A.getSourceFiles().forEach(function(t){!t.resolvedModules||t.resolvedModules.forEach(function(a){a&&a.packageId&&r.set(a.packageId.name,a.extension===".d.ts"||!!r.get(a.packageId.name))})}),r}),ae,D,be,ne=e.objectAllocator.getSymbolConstructor(),J=e.objectAllocator.getTypeConstructor(),le=e.objectAllocator.getSignatureConstructor(),Te=0,Me=0,Ke=0,Ae=0,Ge=0,se=0,xe=0,Re,ce=e.createSymbolTable(),Ue=[1],We=A.getCompilerOptions(),Ne=e.getEmitScriptTarget(We),ve=e.getEmitModuleKind(We),Ve=e.getUseDefineForClassFields(We),gr=e.getAllowSyntheticDefaultImports(We),Er=e.getStrictOptionValue(We,"strictNullChecks"),Nr=e.getStrictOptionValue(We,"strictFunctionTypes"),ur=e.getStrictOptionValue(We,"strictBindCallApply"),xr=e.getStrictOptionValue(We,"strictPropertyInitialization"),sr=e.getStrictOptionValue(We,"noImplicitAny"),i=e.getStrictOptionValue(We,"noImplicitThis"),Mr=e.getStrictOptionValue(We,"useUnknownInCatchVariables"),fr=!!We.keyofStringsOnly,Ar=We.suppressExcessPropertyErrors?0:16384,de=We.exactOptionalPropertyTypes,we=g3(),qe=O7(),Cr=B_(),kr=e.createSymbolTable(),He=co(4,"undefined");He.declarations=[];var lr=co(1536,"globalThis",8);lr.exports=kr,lr.declarations=[],kr.set(lr.escapedName,lr);var Hr=co(4,"arguments"),Je=co(4,"require"),Sr,Yr={getNodeCount:function(){return e.sum(A.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(A.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(A.getSourceFiles(),"symbolCount")+Me},getTypeCount:function(){return Te},getInstantiationCount:function(){return Ae},getRelationCacheSizes:function(){return{assignable:Un.size,identity:Ei.size,subtype:en.size,strictSubtype:ta.size}},isUndefinedSymbol:function(r){return r===He},isArgumentsSymbol:function(r){return r===Hr},isUnknownSymbol:function(r){return r===cr},getMergedSymbol:Ha,getDiagnostics:yN,getGlobalDiagnostics:q8,getRecursionIdentity:Gh,getUnmatchedProperties:F1,getTypeOfSymbolAtLocation:function(r,t){var a=e.getParseTreeNode(t);return a?w6(r,a):Qe},getSymbolsOfParameterPropertyDeclaration:function(r,t){var a=e.getParseTreeNode(r,e.isParameter);return a===void 0?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):Ud(a,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:vo,getPropertiesOfType:ro,getPropertyOfType:function(r,t){return pi(r,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(r,t,a){var o=e.getParseTreeNode(a);if(!!o){var s=e.escapeLeadingUnderscores(t),f=qb(s,o);return f?mT(r,f):void 0}},getTypeOfPropertyOfType:function(r,t){return na(r,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:function(r,t){return cu(r,t===0?pt:Nt)},getIndexInfosOfType:Bs,getSignaturesOfType:Li,getIndexTypeOfType:function(r,t){return Qu(r,t===0?pt:Nt)},getBaseTypes:Gs,getBaseTypeOfLiteralType:Ru,getWidenedType:Gl,getTypeFromTypeNode:function(r){var t=e.getParseTreeNode(r,e.isTypeNode);return t?xa(t):Qe},getParameterType:Hc,getParameterIdentifierNameAtPosition:zP,getPromisedTypeOfPromise:xv,getAwaitedType:function(r){return tm(r)},getReturnTypeOfSignature:_o,isNullableType:zb,getNullableType:Eb,getNonNullableType:Id,getNonOptionalType:C1,getTypeArguments:ho,typeToTypeNode:Cr.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Cr.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Cr.signatureToSignatureDeclaration,symbolToEntityName:Cr.symbolToEntityName,symbolToExpression:Cr.symbolToExpression,symbolToTypeParameterDeclarations:Cr.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Cr.symbolToParameterDeclaration,typeParameterToDeclaration:Cr.typeParameterToDeclaration,getSymbolsInScope:function(r,t){var a=e.getParseTreeNode(r);return a?X8(a,t):[]},getSymbolAtLocation:function(r){var t=e.getParseTreeNode(r);return t?Jc(t,!0):void 0},getIndexInfosAtLocation:function(r){var t=e.getParseTreeNode(r);return t?t7(t):void 0},getShorthandAssignmentValueSymbol:function(r){var t=e.getParseTreeNode(r);return t?n7(t):void 0},getExportSpecifierLocalTargetSymbol:function(r){var t=e.getParseTreeNode(r,e.isExportSpecifier);return t?a7(t):void 0},getExportSymbolOfSymbol:function(r){return Ha(r.exportSymbol||r)},getTypeAtLocation:function(r){var t=e.getParseTreeNode(r);return t?e_(t):Qe},getTypeOfAssignmentPattern:function(r){var t=e.getParseTreeNode(r,e.isAssignmentPattern);return t&&DE(t)||Qe},getPropertySymbolOfDestructuringAssignment:function(r){var t=e.getParseTreeNode(r,e.isIdentifier);return t?i7(t):void 0},signatureToString:function(r,t,a,o){return Tc(r,e.getParseTreeNode(t),a,o)},typeToString:function(r,t,a){return pn(r,e.getParseTreeNode(t),a)},symbolToString:function(r,t,a,o){return Ja(r,e.getParseTreeNode(t),a,o)},typePredicateToString:function(r,t,a){return ru(r,e.getParseTreeNode(t),a)},writeSignature:function(r,t,a,o,s){return Tc(r,e.getParseTreeNode(t),a,o,s)},writeType:function(r,t,a,o){return pn(r,e.getParseTreeNode(t),a,o)},writeSymbol:function(r,t,a,o,s){return Ja(r,e.getParseTreeNode(t),a,o,s)},writeTypePredicate:function(r,t,a,o){return ru(r,e.getParseTreeNode(t),a,o)},getAugmentedPropertiesOfType:sS,getRootSymbols:LN,getSymbolOfExpando:nE,getContextualType:function(r,t){var a=e.getParseTreeNode(r,e.isExpression);if(!!a){var o=e.findAncestor(a,e.isCallLikeExpression),s=o&&Zn(o).resolvedSignature;if(t&4&&o){var f=a;do Zn(f).skipDirectInference=!0,f=f.parent;while(f&&f!==o);Zn(o).resolvedSignature=void 0}var N=Ic(a,t);if(t&4&&o){var f=a;do Zn(f).skipDirectInference=void 0,f=f.parent;while(f&&f!==o);Zn(o).resolvedSignature=s}return N}},getContextualTypeForObjectLiteralElement:function(r){var t=e.getParseTreeNode(r,e.isObjectLiteralElementLike);return t?tT(t):void 0},getContextualTypeForArgumentAtIndex:function(r,t){var a=e.getParseTreeNode(r,e.isCallLikeExpression);return a&&rT(a,t)},getContextualTypeForJsxAttribute:function(r){var t=e.getParseTreeNode(r,e.isJsxAttributeLike);return t&&ex(t)},isContextSensitive:fu,getTypeOfPropertyOfContextualType:N_,getFullyQualifiedName:Xs,getResolvedSignature:function(r,t,a){return ot(r,t,a,0)},getResolvedSignatureForSignatureHelp:function(r,t,a){return ot(r,t,a,16)},getExpandedParameters:Vy,hasEffectiveRestParameter:Fu,containsArgumentsReference:N0,getConstantValue:function(r){var t=e.getParseTreeNode(r,NN);return t?cS(t):void 0},isValidPropertyAccess:function(r,t){var a=e.getParseTreeNode(r,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!a&&lP(a,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(r,t,a){var o=e.getParseTreeNode(r,e.isPropertyAccessExpression);return!!o&&Ix(o,t,a)},getSignatureFromDeclaration:function(r){var t=e.getParseTreeNode(r,e.isFunctionLike);return t?Iu(t):void 0},isImplementationOfOverload:function(r){var t=e.getParseTreeNode(r,e.isFunctionLike);return t?xN(t):void 0},getImmediateAliasedSymbol:ix,getAliasedSymbol:Go,getEmitResolver:js,getExportsOfModule:_d,getExportsAndPropertiesOfModule:ff,forEachExportAndPropertyOfModule:dc,getSymbolWalker:e.createGetSymbolWalker(hR,Cc,_o,Gs,Wc,En,wu,bl,e.getFirstIdentifier,ho),getAmbientModules:DF,getJsxIntrinsicTagNamesAt:WM,isOptionalParameter:function(r){var t=e.getParseTreeNode(r,e.isParameter);return t?Vp(t):!1},tryGetMemberInModuleExports:function(r,t){return md(e.escapeLeadingUnderscores(r),t)},tryGetMemberInModuleExportsAndProperties:function(r,t){return Yd(e.escapeLeadingUnderscores(r),t)},tryFindAmbientModule:function(r){return Ah(r,!0)},tryFindAmbientModuleWithoutAugmentations:function(r){return Ah(r,!1)},getApparentType:Dn,getUnionType:ha,isTypeAssignableTo:$i,createAnonymousType:es,createSignature:Cu,createSymbol:co,createIndexInfo:Nu,getAnyType:function(){return ke},getStringType:function(){return pt},getNumberType:function(){return Nt},createPromiseType:ry,createArrayType:Js,getElementTypeOfArrayType:E1,getBooleanType:function(){return ia},getFalseType:function(r){return r?st:$t},getTrueType:function(r){return r?Pn:Ea},getVoidType:function(){return Gn},getUndefinedType:function(){return Rr},getNullType:function(){return Lt},getESSymbolType:function(){return pa},getNeverType:function(){return nn},getOptionalType:function(){return ut},getPromiseType:function(){return Ih(!1)},getPromiseLikeType:function(){return YL(!1)},isSymbolAccessible:Du,isArrayType:$s,isTupleType:ki,isArrayLikeType:_p,isTypeInvalidDueToUnionDiscriminant:Qy,getExactOptionalProperties:mw,getAllPossiblePropertiesOfTypes:S0,getSuggestedSymbolForNonexistentProperty:hT,getSuggestionForNonexistentProperty:yT,getSuggestedSymbolForNonexistentJSXAttribute:Cx,getSuggestedSymbolForNonexistentSymbol:function(r,t,a){return bT(r,e.escapeLeadingUnderscores(t),a)},getSuggestionForNonexistentSymbol:function(r,t,a){return aP(r,e.escapeLeadingUnderscores(t),a)},getSuggestedSymbolForNonexistentModule:Yb,getSuggestionForNonexistentExport:iP,getSuggestedSymbolForNonexistentClassMember:Ax,getBaseConstraintOfType:pl,getDefaultFromTypeParameter:function(r){return r&&r.flags&262144?ee(r):void 0},resolveName:function(r,t,a,o){return Ho(t,e.escapeLeadingUnderscores(r),a,void 0,void 0,!1,o)},getJsxNamespace:function(r){return e.unescapeLeadingUnderscores(Ci(r))},getJsxFragmentFactory:function(r){var t=fS(r);return t&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(t).escapedText)},getAccessibleSymbolChain:Vf,getTypePredicateOfSignature:Cc,resolveExternalModuleName:function(r){var t=e.getParseTreeNode(r,e.isExpression);return t&&Ys(t,t,!0)},resolveExternalModuleSymbol:_l,tryGetThisTypeAt:function(r,t){var a=e.getParseTreeNode(r);return a&&Y1(a,t)},getTypeArgumentConstraint:function(r){var t=e.getParseTreeNode(r,e.isTypeNode);return t&&j3(t)},getSuggestionDiagnostics:function(r,t){var a=e.getParseTreeNode(r,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(a,We,A))return e.emptyArray;var o;try{return ae=t,iS(a),e.Debug.assert(!!(Zn(a).flags&1)),o=e.addRange(o,ba.getDiagnostics(a.fileName)),BI(hN(a),function(s,f,N){!e.containsParseError(s)&&!vN(f,!!(s.flags&8388608))&&(o||(o=[])).push(kn(kn({},N),{category:e.DiagnosticCategory.Suggestion}))}),o||e.emptyArray}finally{ae=void 0}},runWithCancellationToken:function(r,t){try{return ae=r,t(Yr)}finally{ae=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:Ef,isDeclarationVisible:nu,isPropertyAccessible:TT,getTypeOnlyAliasDeclaration:Cn,getMemberOverrideModifierStatus:d8};function ot(r,t,a,o){var s=e.getParseTreeNode(r,e.isCallLikeExpression);Sr=a;var f=s?Lg(s,t,o):void 0;return Sr=void 0,f}var _t=new e.Map,kt=new e.Map,Yt=new e.Map,vn=new e.Map,Mn=new e.Map,qn=new e.Map,nr=new e.Map,Zr=new e.Map,ir=new e.Map,ge=new e.Map,rr=new e.Map,pr=new e.Map,Lr=[],Ce=new e.Map,cr=co(4,"unknown"),$e=co(0,"__resolving__"),De=new e.Map,z=new e.Map,ke=$o(1,"any"),dr=$o(1,"any"),Xe=$o(1,"any"),Qe=$o(1,"error"),Ir=$o(1,"unresolved"),Jr=$o(1,"any",131072),Or=$o(1,"intrinsic"),Be=$o(2,"unknown"),yr=$o(2,"unknown"),Rr=$o(32768,"undefined"),zr=Er?Rr:$o(32768,"undefined",131072),ut=$o(32768,"undefined"),mt=de?$o(32768,"undefined"):Rr,Lt=$o(65536,"null"),vt=Er?Lt:$o(65536,"null",131072),pt=$o(4,"string"),Nt=$o(8,"number"),Xt=$o(64,"bigint"),st=$o(512,"false"),$t=$o(512,"false"),Pn=$o(512,"true"),Ea=$o(512,"true");Pn.regularType=Ea,Pn.freshType=Pn,Ea.regularType=Ea,Ea.freshType=Pn,st.regularType=$t,st.freshType=st,$t.regularType=$t,$t.freshType=st;var ia=ha([$t,Ea]),pa=$o(4096,"symbol"),Gn=$o(16384,"void"),nn=$o(131072,"never"),bt=$o(131072,"never"),Ut=$o(131072,"never",524288),Kt=$o(131072,"never"),bn=$o(131072,"never"),wn=$o(67108864,"object"),ra=ha([pt,Nt]),ft=ha([pt,Nt,pa]),Ct=fr?pt:ft,Pt=ha([Nt,Xt]),Et=ha([pt,Nt,ia,Xt,Lt,Rr]),et=S_(function(r){return r.flags&262144?j4(r):r}),hn=S_(function(r){return r.flags&262144?Xe:r}),Qn=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray),Ra=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray);Ra.objectFlags|=2048;var Ki=co(2048,"__type");Ki.members=e.createSymbolTable();var di=es(Ki,ce,e.emptyArray,e.emptyArray,e.emptyArray),ya=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray);ya.instantiations=new e.Map;var $a=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray);$a.objectFlags|=524288;var ao=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray),ei=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray),Fi=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray),eo=tc(),Wo=tc();Wo.constraint=eo;var Yi=tc(),Ni=Em(1,"<<unresolved>>",0,ke),Eo=Cu(void 0,void 0,void 0,e.emptyArray,ke,void 0,0,0),lo=Cu(void 0,void 0,void 0,e.emptyArray,Qe,void 0,0,0),So=Cu(void 0,void 0,void 0,e.emptyArray,ke,void 0,0,0),ts=Cu(void 0,void 0,void 0,e.emptyArray,bt,void 0,0,0),ja=Nu(Nt,pt,!0),Do=new e.Map,Pa={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Ti=nd(ke,ke,ke),mo=nd(ke,ke,Be),No=nd(nn,ke,Rr),ko={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:MR,getGlobalIterableType:wR,getGlobalIterableIteratorType:PR,getGlobalGeneratorType:FR,resolveIterationType:tm,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Oo={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:GR,getGlobalIterableType:QL,getGlobalIterableIteratorType:BR,getGlobalGeneratorType:UR,resolveIterationType:function(r,t){return r},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Po,Ss=new e.Map,Ds=!1,vr,gt,tn,Bn,Fe,Gr,ht,ye,oe,Pe,Ye,Tr,tt,Mt,Wt,Ln,va,ti,ii,Si,Oi,_s,os,jo,At,Wn,sa,oi,vi,Ui,Ca,gi,Mi,Vi,Ro,Yo,ns,me,Pr,yt,Le,Xr,an,Xn,da=new e.Map,bi=0,Qa=0,go=0,wr=!1,ss=0,al,Sl,zo,bs=xc(""),xl=Yf(0),ic=t1({negative:!1,base10Value:"0"}),Vl=[],zc=[],io=[],Zl=0,Oc=10,ul=[],oc=[],sc=[],Ia=[],tf=[],Rc=[],lc=[],Fr=[],rt=[],Dt=[],zt=[],_n=[],dn=[],On=[],Jn=[],Fa=[],fa=e.createDiagnosticCollection(),ba=e.createDiagnosticCollection(),Na=new e.Map(e.getEntries({string:pt,number:Nt,bigint:Xt,boolean:ia,symbol:pa,undefined:Rr})),he=p_(),ar,hr,dt,en=new e.Map,ta=new e.Map,Un=new e.Map,Ta=new e.Map,Ei=new e.Map,Qi=new e.Map,Wi=e.createSymbolTable();Wi.set(He.escapedName,He);var Ai=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",We.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return R7(),Yr;function Ci(r){if(r){var t=e.getSourceFileOfNode(r);if(t)if(e.isJsxOpeningFragment(r)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var a=t.pragmas.get("jsxfrag");if(a){var o=e.isArray(a)?a[0]:a;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,Ne),e.visitNode(t.localJsxFragmentFactory,xo),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var s=fS(r);if(s)return t.localJsxFragmentFactory=s,t.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{var f=Fo(t);if(f)return t.localJsxNamespace=f}}return ar||(ar="React",We.jsxFactory?(hr=e.parseIsolatedEntityName(We.jsxFactory,Ne),e.visitNode(hr,xo),hr&&(ar=e.getFirstIdentifier(hr).escapedText)):We.reactNamespace&&(ar=e.escapeLeadingUnderscores(We.reactNamespace))),hr||(hr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(ar)),"createElement")),ar}function Fo(r){if(r.localJsxNamespace)return r.localJsxNamespace;var t=r.pragmas.get("jsx");if(t){var a=e.isArray(t)?t[0]:t;if(r.localJsxFactory=e.parseIsolatedEntityName(a.arguments.factory,Ne),e.visitNode(r.localJsxFactory,xo),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}function xo(r){return e.setTextRangePosEnd(r,-1,-1),e.visitEachChild(r,xo,e.nullTransformationContext)}function js(r,t){return yN(r,t),qe}function Dl(r,t,a,o,s,f){var N=r?e.createDiagnosticForNode(r,t,a,o,s,f):e.createCompilerDiagnostic(t,a,o,s,f),U=fa.lookup(N);return U||(fa.add(N),N)}function cc(r,t,a,o,s,f,N){var U=Br(t,a,o,s,f,N);return U.skippedOn=r,U}function qc(r,t,a,o,s,f){return r?e.createDiagnosticForNode(r,t,a,o,s,f):e.createCompilerDiagnostic(t,a,o,s,f)}function Br(r,t,a,o,s,f){var N=qc(r,t,a,o,s,f);return fa.add(N),N}function Il(r,t){r?fa.add(t):ba.add(kn(kn({},t),{category:e.DiagnosticCategory.Suggestion}))}function Nl(r,t,a,o,s,f,N){if(t.pos<0||t.end<0){if(!r)return;var U=e.getSourceFileOfNode(t);Il(r,"message"in a?e.createFileDiagnostic(U,0,0,a,o,s,f,N):e.createDiagnosticForFileFromMessageChain(U,a));return}Il(r,"message"in a?e.createDiagnosticForNode(t,a,o,s,f,N):e.createDiagnosticForNodeFromMessageChain(t,a))}function wc(r,t,a,o,s,f,N){var U=Br(r,a,o,s,f,N);if(t){var fe=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(U,fe)}return U}function fl(r,t){var a=Array.isArray(r)?e.forEach(r,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(r);return a&&e.addRelatedInfo(t,e.createDiagnosticForNode(a,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),ba.add(t),t}function Mc(r,t,a){var o=e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,a);return fl(t,o)}function sd(r,t,a,o){var s=a?e.createDiagnosticForNode(r,e.Diagnostics.The_signature_0_of_1_is_deprecated,o,a):e.createDiagnosticForNode(r,e.Diagnostics._0_is_deprecated,o);return fl(t,s)}function co(r,t,a){Me++;var o=new ne(r|33554432,t);return o.checkFlags=a||0,o}function Fd(r){var t=0;return r&2&&(t|=111551),r&1&&(t|=111550),r&4&&(t|=0),r&8&&(t|=900095),r&16&&(t|=110991),r&32&&(t|=899503),r&64&&(t|=788872),r&256&&(t|=899327),r&128&&(t|=899967),r&512&&(t|=110735),r&8192&&(t|=103359),r&32768&&(t|=46015),r&65536&&(t|=78783),r&262144&&(t|=526824),r&524288&&(t|=788968),r&2097152&&(t|=2097152),t}function bp(r,t){t.mergeId||(t.mergeId=p,p++),ul[t.mergeId]=r}function ld(r){var t=co(r.flags,r.escapedName);return t.declarations=r.declarations?r.declarations.slice():[],t.parent=r.parent,r.valueDeclaration&&(t.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),r.members&&(t.members=new e.Map(r.members)),r.exports&&(t.exports=new e.Map(r.exports)),bp(t,r),t}function cs(r,t,a){if(a===void 0&&(a=!1),!(r.flags&Fd(t.flags))||(t.flags|r.flags)&67108864){if(t===r)return r;if(!(r.flags&33554432)){var o=wo(r);if(o===cr)return t;r=ld(o)}t.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!t.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(r,t.valueDeclaration),e.addRange(r.declarations,t.declarations),t.members&&(r.members||(r.members=e.createSymbolTable()),Ll(r.members,t.members,a)),t.exports&&(r.exports||(r.exports=e.createSymbolTable()),Ll(r.exports,t.exports,a)),a||bp(r,t)}else if(r.flags&1024)r!==lr&&Br(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ja(r));else{var s=!!(r.flags&384||t.flags&384),f=!!(r.flags&2||t.flags&2),N=s?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:f?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,U=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),fe=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),Oe=Ja(t);if(U&&fe&&Po&&!s&&U!==fe){var je=e.comparePaths(U.path,fe.path)===-1?U:fe,ze=je===U?fe:U,tr=e.getOrUpdate(Po,"".concat(je.path,"|").concat(ze.path),function(){return{firstFile:je,secondFile:ze,conflictingSymbols:new e.Map}}),_r=e.getOrUpdate(tr.conflictingSymbols,Oe,function(){return{isBlockScoped:f,firstFileLocations:[],secondFileLocations:[]}});Vr(_r.firstFileLocations,t),Vr(_r.secondFileLocations,r)}else nf(t,N,Oe,r),nf(r,N,Oe,t)}return r;function Vr($r,Tt){if(Tt.declarations)for(var St=0,It=Tt.declarations;St<It.length;St++){var jt=It[St];e.pushIfUnique($r,jt)}}}function nf(r,t,a,o){e.forEach(r.declarations,function(s){hc(s,t,a,o.declarations)})}function hc(r,t,a,o){for(var s=(e.getExpandoInitializer(r,!1)?e.getNameOfExpando(r):e.getNameOfDeclaration(r))||r,f=Dl(s,t,a),N=function(je){var ze=(e.getExpandoInitializer(je,!1)?e.getNameOfExpando(je):e.getNameOfDeclaration(je))||je;if(ze===s)return"continue";f.relatedInformation=f.relatedInformation||[];var tr=e.createDiagnosticForNode(ze,e.Diagnostics._0_was_also_declared_here,a),_r=e.createDiagnosticForNode(ze,e.Diagnostics.and_here);if(e.length(f.relatedInformation)>=5||e.some(f.relatedInformation,function(Vr){return e.compareDiagnostics(Vr,_r)===0||e.compareDiagnostics(Vr,tr)===0}))return"continue";e.addRelatedInfo(f,e.length(f.relatedInformation)?_r:tr)},U=0,fe=o||e.emptyArray;U<fe.length;U++){var Oe=fe[U];N(Oe)}}function Gd(r,t){if(!(r!=null&&r.size))return t;if(!(t!=null&&t.size))return r;var a=e.createSymbolTable();return Ll(a,r),Ll(a,t),a}function Ll(r,t,a){a===void 0&&(a=!1),t.forEach(function(o,s){var f=r.get(s);r.set(s,f?cs(f,o,a):o)})}function Bd(r){var t,a,o,s=r.parent;if(((t=s.symbol.declarations)===null||t===void 0?void 0:t[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))Ll(kr,s.symbol.exports);else{var f=r.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,N=bc(r,r,f,!0);if(!N)return;if(N=_l(N),N.flags&1920)if(e.some(gt,function(Vr){return N===Vr.symbol})){var U=cs(s.symbol,N,!0);tn||(tn=new e.Map),tn.set(r.text,U)}else{if(((a=N.exports)===null||a===void 0?void 0:a.get("__export"))&&((o=s.symbol.exports)===null||o===void 0?void 0:o.size))for(var fe=Xg(N,"resolvedExports"),Oe=0,je=e.arrayFrom(s.symbol.exports.entries());Oe<je.length;Oe++){var ze=je[Oe],tr=ze[0],_r=ze[1];fe.has(tr)&&!N.exports.has(tr)&&cs(fe.get(tr),_r)}cs(N,s.symbol)}else Br(r,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function qs(r,t,a){t.forEach(function(s,f){var N=r.get(f);N?e.forEach(N.declarations,o(e.unescapeLeadingUnderscores(f),a)):r.set(f,s)});function o(s,f){return function(N){return fa.add(e.createDiagnosticForNode(N,f,s))}}}function Va(r){if(r.flags&33554432)return r;var t=d(r);return oc[t]||(oc[t]=new Q)}function Zn(r){var t=w(r);return sc[t]||(sc[t]=new H)}function Pc(r){return r.kind===303&&!e.isExternalOrCommonJsModule(r)}function Al(r,t,a){if(a){var o=Ha(r.get(t));if(o){if(e.Debug.assert((e.getCheckFlags(o)&1)===0,"Should never get an instantiated symbol here."),o.flags&a)return o;if(o.flags&2097152){var s=Go(o);if(s===cr||s.flags&a)return o}}}}function Ud(r,t){var a=r.parent,o=r.parent.parent,s=Al(a.locals,t,111551),f=Al(Tf(o.symbol),t,111551);return s&&f?[s,f]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function af(r,t){var a=e.getSourceFileOfNode(r),o=e.getSourceFileOfNode(t),s=e.getEnclosingBlockScopeContainer(r);if(a!==o){if(ve&&(a.externalModuleIndicator||o.externalModuleIndicator)||!e.outFile(We)||yg(t)||r.flags&8388608||Oe(t,r))return!0;var f=A.getSourceFiles();return f.indexOf(a)<=f.indexOf(o)}if(r.pos<=t.pos&&!(e.isPropertyDeclaration(r)&&e.isThisProperty(t.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===202){var N=e.getAncestor(t,202);return N?e.findAncestor(N,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<N.pos:af(e.getAncestor(r,253),t)}else{if(r.kind===253)return!fe(r,t);if(e.isClassDeclaration(r))return!e.findAncestor(t,function(ze){return e.isComputedPropertyName(ze)&&ze.parent.parent===r});if(e.isPropertyDeclaration(r))return!je(r,t,!1);if(e.isParameterPropertyDeclaration(r,r.parent))return!(e.getEmitScriptTarget(We)===99&&Ve&&e.getContainingClass(r)===e.getContainingClass(t)&&Oe(t,r))}return!0}if(t.parent.kind===274||t.parent.kind===270&&t.parent.isExportEquals||t.kind===270&&t.isExportEquals||!!(t.flags&4194304)||yg(t)||U())return!0;if(Oe(t,r))return e.getEmitScriptTarget(We)===99&&Ve&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))?!je(r,t,!0):!0;return!1;function U(){return!!e.findAncestor(t,function(ze){return e.isInterfaceDeclaration(ze)||e.isTypeAliasDeclaration(ze)})}function fe(ze,tr){switch(ze.parent.parent.kind){case 236:case 241:case 243:if(Fc(tr,ze,s))return!0;break}var _r=ze.parent.parent;return e.isForInOrOfStatement(_r)&&Fc(tr,_r.expression,s)}function Oe(ze,tr){return!!e.findAncestor(ze,function(_r){if(_r===s)return"quit";if(e.isFunctionLike(_r))return!0;if(e.isClassStaticBlockDeclaration(_r))return tr.pos<ze.pos;var Vr=e.tryCast(_r.parent,e.isPropertyDeclaration);if(Vr){var $r=Vr.initializer===_r;if($r)if(e.isStatic(_r.parent)){if(tr.kind===168)return!0;if(e.isPropertyDeclaration(tr)&&e.getContainingClass(ze)===e.getContainingClass(tr)){var Tt=tr.name;if(e.isIdentifier(Tt)||e.isPrivateIdentifier(Tt)){var St=En(xn(tr)),It=e.filter(tr.parent.members,e.isClassStaticBlockDeclaration);if(h8(Tt,St,It,tr.parent.pos,_r.pos))return!0}}}else{var jt=tr.kind===166&&!e.isStatic(tr);if(!jt||e.getContainingClass(ze)!==e.getContainingClass(tr))return!0}}return!1})}function je(ze,tr,_r){if(tr.end>ze.end)return!1;var Vr=e.findAncestor(tr,function($r){if($r===ze)return"quit";switch($r.kind){case 213:return!0;case 166:return _r&&(e.isPropertyDeclaration(ze)&&$r.parent===ze.parent||e.isParameterPropertyDeclaration(ze,ze.parent)&&$r.parent===ze.parent.parent)?"quit":!0;case 234:switch($r.parent.kind){case 171:case 168:case 172:return!0;default:return!1}default:return!1}});return Vr===void 0}}function vu(r,t,a){var o=e.getEmitScriptTarget(We),s=t;if(e.isParameter(a)&&s.body&&r.valueDeclaration&&r.valueDeclaration.pos>=s.body.pos&&r.valueDeclaration.end<=s.body.end&&o>=2){var f=Zn(s);return f.declarationRequiresScopeChange===void 0&&(f.declarationRequiresScopeChange=e.forEach(s.parameters,N)||!1),!f.declarationRequiresScopeChange}return!1;function N(fe){return U(fe.name)||!!fe.initializer&&U(fe.initializer)}function U(fe){switch(fe.kind){case 213:case 212:case 255:case 170:return!1;case 168:case 171:case 172:case 294:return U(fe.name);case 166:return e.hasStaticModifier(fe)?o<99||!Ve:U(fe.name);default:return e.isNullishCoalesce(fe)||e.isOptionalChain(fe)?o<7:e.isBindingElement(fe)&&fe.dotDotDotToken&&e.isObjectBindingPattern(fe.parent)?o<4:e.isTypeNode(fe)?!1:e.forEachChild(fe,U)||!1}}}function Ho(r,t,a,o,s,f,N,U){return N===void 0&&(N=!1),U===void 0&&(U=!0),Vd(r,t,a,o,s,f,N,U,Al)}function Vd(r,t,a,o,s,f,N,U,fe){var Oe,je,ze,tr=r,_r,Vr,$r,Tt,St,It=!1,jt=r,In,sn=!1;e:for(;r;){if(r.locals&&!Pc(r)&&(_r=fe(r.locals,t,a))){var ua=!0;if(e.isFunctionLike(r)&&Vr&&Vr!==r.body?(a&_r.flags&788968&&Vr.kind!==318&&(ua=_r.flags&262144?Vr===r.type||Vr.kind===163||Vr.kind===162:!1),a&_r.flags&3&&(vu(_r,r,Vr)?ua=!1:_r.flags&1&&(ua=Vr.kind===163||Vr===r.type&&!!e.findAncestor(_r.valueDeclaration,e.isParameter)))):r.kind===188&&(ua=Vr===r.trueType),ua)break e;_r=void 0}switch(It=It||jd(r,Vr),r.kind){case 303:if(!e.isExternalOrCommonJsModule(r))break;sn=!0;case 260:var la=((Oe=xn(r))===null||Oe===void 0?void 0:Oe.exports)||ce;if(r.kind===303||e.isModuleDeclaration(r)&&r.flags&8388608&&!e.isGlobalScopeAugmentation(r)){if(_r=la.get("default")){var _i=e.getLocalSymbolForExportDefault(_r);if(_i&&_r.flags&a&&_i.escapedName===t)break e;_r=void 0}var ka=la.get(t);if(ka&&ka.flags===2097152&&(e.getDeclarationOfKind(ka,274)||e.getDeclarationOfKind(ka,273)))break}if(t!=="default"&&(_r=fe(la,t,a&2623475)))if(e.isSourceFile(r)&&r.commonJsModuleIndicator&&!(!((je=_r.declarations)===null||je===void 0)&&je.some(e.isJSDocTypeAlias)))_r=void 0;else break e;break;case 259:if(_r=fe(((ze=xn(r))===null||ze===void 0?void 0:ze.exports)||ce,t,a&8))break e;break;case 166:if(!e.isStatic(r)){var xi=Vu(r.parent);xi&&xi.locals&&fe(xi.locals,t,a&111551)&&(Tt=r)}break;case 256:case 225:case 257:if(_r=fe(xn(r).members||ce,t,a&788968)){if(!o_(_r,r)){_r=void 0;break}if(Vr&&e.isStatic(Vr)){Br(jt,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(r.kind===225&&a&32){var Bi=r.name;if(Bi&&t===Bi.escapedText){_r=r.symbol;break e}}break;case 227:if(Vr===r.expression&&r.parent.token===94){var Ii=r.parent.parent;if(e.isClassLike(Ii)&&(_r=fe(xn(Ii).members,t,a&788968))){o&&Br(jt,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 161:if(In=r.parent.parent,(e.isClassLike(In)||In.kind===257)&&(_r=fe(xn(In).members,t,a&788968))){Br(jt,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 213:if(e.getEmitScriptTarget(We)>=2)break;case 168:case 170:case 171:case 172:case 255:if(a&3&&t==="arguments"){_r=Hr;break e}break;case 212:if(a&3&&t==="arguments"){_r=Hr;break e}if(a&16){var Co=r.name;if(Co&&t===Co.escapedText){_r=r.symbol;break e}}break;case 164:r.parent&&r.parent.kind===163&&(r=r.parent),r.parent&&(e.isClassElement(r.parent)||r.parent.kind===256)&&(r=r.parent);break;case 343:case 336:case 337:var Ht=e.getJSDocRoot(r);Ht&&(r=Ht.parent);break;case 163:Vr&&(Vr===r.initializer||Vr===r.name&&e.isBindingPattern(Vr))&&(St||(St=r));break;case 202:Vr&&(Vr===r.initializer||Vr===r.name&&e.isBindingPattern(Vr))&&e.isParameterDeclaration(r)&&!St&&(St=r);break;case 189:if(a&262144){var Gt=r.typeParameter.name;if(Gt&&t===Gt.escapedText){_r=r.typeParameter.symbol;break e}}break}cd(r)&&($r=r),Vr=r,r=e.isJSDocTemplateTag(r)&&e.getEffectiveContainerForJSDocTemplateTag(r)||r.parent}if(f&&_r&&(!$r||_r!==$r.symbol)&&(_r.isReferenced|=a),!_r){if(Vr&&(e.Debug.assert(Vr.kind===303),Vr.commonJsModuleIndicator&&t==="exports"&&a&Vr.symbol.flags))return Vr.symbol;N||(_r=fe(kr,t,a))}if(!_r&&tr&&e.isInJSFile(tr)&&tr.parent&&e.isRequireCall(tr.parent,!1))return Je;if(!_r){if(o&&_e&&(!jt||!Hd(jt,t,s)&&!Jd(jt)&&!s_(jt,t,a)&&!Nf(jt,t)&&!l_(jt,t,a)&&!P_(jt,t,a)&&!Tp(jt,t,a))){var mn=void 0;if(U&&Zl<Oc){mn=bT(tr,t,a);var Oa=(mn==null?void 0:mn.valueDeclaration)&&e.isAmbientModule(mn.valueDeclaration)&&e.isGlobalScopeAugmentation(mn.valueDeclaration);if(Oa&&(mn=void 0),mn){var Yn=Ja(mn),Ba=vT(tr,mn,!1),Di=a===1920||s&&typeof s!="string"&&e.nodeIsSynthesized(s)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:Ba?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,Pi=qc(jt,Di,$l(s),Yn);Il(!Ba,Pi),mn.valueDeclaration&&e.addRelatedInfo(Pi,e.createDiagnosticForNode(mn.valueDeclaration,e.Diagnostics._0_is_declared_here,Yn))}}if(!mn&&s){var Hn=tP(s);Hn?Br(jt,o,$l(s),Hn):Br(jt,o,$l(s))}Zl++}return}if(o&&_e){if(Tt&&!(e.getEmitScriptTarget(We)===99&&Ve)){var Gi=Tt.name;Br(jt,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(Gi),$l(s));return}if(jt&&(a&2||(a&32||a&384)&&(a&111551)===111551)){var Kr=Rs(_r);(Kr.flags&2||Kr.flags&32||Kr.flags&384)&&hu(Kr,jt)}if(_r&&sn&&(a&111551)===111551&&!(tr.flags&4194304)){var Dr=Ha(_r);e.length(Dr.declarations)&&e.every(Dr.declarations,function(on){return e.isNamespaceExportDeclaration(on)||e.isSourceFile(on)&&!!on.symbol.globalExports})&&Nl(!We.allowUmdGlobalAccess,jt,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(_r&&St&&!It&&(a&111551)===111551){var yn=Ha(Qm(_r)),Ht=e.getRootDeclaration(St);yn===xn(St)?Br(jt,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(St.name)):yn.valueDeclaration&&yn.valueDeclaration.pos>St.pos&&Ht.parent.locals&&fe(Ht.parent.locals,yn.escapedName,a)===yn&&Br(jt,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(St.name),e.declarationNameToString(jt))}_r&&jt&&a&111551&&_r.flags&2097152&&Wd(_r,t,jt)}return _r}function Wd(r,t,a){if(!e.isValidTypeOnlyAliasUseSite(a)){var o=Cn(r);if(o){var s=o.kind===274?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,f=e.unescapeLeadingUnderscores(t);of(Br(a,s,f),o,f)}}}function of(r,t,a){return t?e.addRelatedInfo(r,e.createDiagnosticForNode(t,t.kind===274?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,a)):r}function jd(r,t){return r.kind!==213&&r.kind!==212?e.isTypeQueryNode(r)||(e.isFunctionLikeDeclaration(r)||r.kind===166&&!e.isStatic(r))&&(!t||t!==r.name):t&&t===r.name?!1:r.asteriskToken||e.hasSyntacticModifier(r,256)?!0:!e.getImmediatelyInvokedFunctionExpression(r)}function cd(r){switch(r.kind){case 255:case 256:case 257:case 259:case 258:case 260:return!0;default:return!1}}function $l(r){return e.isString(r)?e.unescapeLeadingUnderscores(r):e.declarationNameToString(r)}function o_(r,t){if(r.declarations)for(var a=0,o=r.declarations;a<o.length;a++){var s=o[a];if(s.kind===162){var f=e.isJSDocTemplateTag(s.parent)?e.getJSDocHost(s.parent):s.parent;if(f===t)return!(e.isJSDocTemplateTag(s.parent)&&e.find(s.parent.parent.tags,e.isJSDocTypeAlias))}}return!1}function Hd(r,t,a){if(!e.isIdentifier(r)||r.escapedText!==t||EN(r)||yg(r))return!1;for(var o=e.getThisContainer(r,!1),s=o;s;){if(e.isClassLike(s.parent)){var f=xn(s.parent);if(!f)break;var N=En(f);if(pi(N,t))return Br(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,$l(a),Ja(f)),!0;if(s===o&&!e.isStatic(s)){var U=vo(f).thisType;if(pi(U,t))return Br(r,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,$l(a)),!0}}s=s.parent}return!1}function Jd(r){var t=Ep(r);return t&&fs(t,64,!0)?(Br(r,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(t)),!0):!1}function Ep(r){switch(r.kind){case 79:case 205:return r.parent?Ep(r.parent):void 0;case 227:if(e.isEntityNameExpression(r.expression))return r.expression;default:return}}function s_(r,t,a){var o=1920|(e.isInJSFile(r)?111551:0);if(a===o){var s=wo(Ho(r,t,788968&~o,void 0,void 0,!1)),f=r.parent;if(s){if(e.isQualifiedName(f)){e.Debug.assert(f.left===r,"Should only be resolving left side of qualified name as a namespace");var N=f.right.escapedText,U=pi(vo(s),N);if(U)return Br(f,e.Diagnostics.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,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(N)),!0}return Br(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}function Tp(r,t,a){if(a&788584){var o=wo(Ho(r,t,111127,void 0,void 0,!1));if(o&&!(o.flags&1920))return Br(r,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}function Sp(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Nf(r,t){return Sp(t)&&r.parent.kind===274?(Br(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0):!1}function l_(r,t,a){if(a&111551){if(Sp(t))return Br(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var o=wo(Ho(r,t,788544,void 0,void 0,!1));if(o&&!(o.flags&1024)){var s=e.unescapeLeadingUnderscores(t);return Dp(t)?Br(r,e.Diagnostics._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):Kd(r,o)?Br(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,s,s==="K"?"P":"K"):Br(r,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,s),!0}}return!1}function Kd(r,t){var a=e.findAncestor(r.parent,function(s){return e.isComputedPropertyName(s)||e.isPropertySignature(s)?!1:e.isTypeLiteralNode(s)||"quit"});if(a&&a.members.length===1){var o=vo(t);return!!(o.flags&1048576)&&Fm(o,384,!0)}return!1}function Dp(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function P_(r,t,a){if(a&111127){var o=wo(Ho(r,t,1024,void 0,void 0,!1));if(o)return Br(r,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(a&788544){var o=wo(Ho(r,t,1536,void 0,void 0,!1));if(o)return Br(r,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}function hu(r,t){var a;if(e.Debug.assert(!!(r.flags&2||r.flags&32||r.flags&384)),!(r.flags&67108881&&r.flags&32)){var o=(a=r.declarations)===null||a===void 0?void 0:a.find(function(N){return e.isBlockOrCatchScoped(N)||e.isClassLike(N)||N.kind===259});if(o===void 0)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(o.flags&8388608)&&!af(o,t)){var s=void 0,f=e.declarationNameToString(e.getNameOfDeclaration(o));r.flags&2?s=Br(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,f):r.flags&32?s=Br(t,e.Diagnostics.Class_0_used_before_its_declaration,f):r.flags&256?s=Br(t,e.Diagnostics.Enum_0_used_before_its_declaration,f):(e.Debug.assert(!!(r.flags&128)),e.shouldPreserveConstEnums(We)&&(s=Br(t,e.Diagnostics.Enum_0_used_before_its_declaration,f))),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,f))}}}function Fc(r,t,a){return!!t&&!!e.findAncestor(r,function(o){return o===a||e.isFunctionLike(o)?"quit":o===t})}function uc(r){switch(r.kind){case 264:return r;case 266:return r.parent;case 267:return r.parent.parent;case 269:return r.parent.parent.parent;default:return}}function ec(r){return r.declarations&&e.findLast(r.declarations,ud)}function ud(r){return r.kind===264||r.kind===263||r.kind===266&&!!r.name||r.kind===267||r.kind===273||r.kind===269||r.kind===274||r.kind===270&&e.exportAssignmentIsAlias(r)||e.isBinaryExpression(r)&&e.getAssignmentDeclarationKind(r)===2&&e.exportAssignmentIsAlias(r)||e.isAccessExpression(r)&&e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63&&kf(r.parent.right)||r.kind===295||r.kind===294&&kf(r.initializer)||e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)}function kf(r){return e.isAliasableExpression(r)||e.isFunctionExpression(r)&&_u(r)}function fd(r,t){var a=Qc(r);if(a){var o=e.getLeftmostAccessExpression(a.expression).arguments[0];return e.isIdentifier(a.name)?wo(pi(LL(o),a.name.escapedText)):void 0}if(e.isVariableDeclaration(r)||r.moduleReference.kind===276){var s=Ys(r,e.getExternalModuleRequireArgument(r)||e.getExternalModuleImportEqualsDeclarationExpression(r)),f=_l(s);return rc(r,s,f,!1),f}var N=Ap(r.moduleReference,t);return c_(r,N),N}function c_(r,t){if(rc(r,void 0,t,!1)&&!r.isTypeOnly){var a=Cn(xn(r)),o=a.kind===274,s=o?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,f=o?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,N=e.unescapeLeadingUnderscores(a.name.escapedText);e.addRelatedInfo(Br(r.moduleReference,s),e.createDiagnosticForNode(a,f,N))}}function sf(r,t,a,o){var s=r.exports.get("export="),f=s?pi(En(s),t):r.exports.get(t),N=wo(f,o);return rc(a,f,N,!1),N}function F_(r){return e.isExportAssignment(r)&&!r.isExportEquals||e.hasSyntacticModifier(r,512)||e.isExportSpecifier(r)}function dd(r){return e.isStringLiteralLike(r)?e.getModeForUsageLocation(e.getSourceFileOfNode(r),r):void 0}function u_(r,t){return r===e.ModuleKind.ESNext&&t===e.ModuleKind.CommonJS}function Of(r){var t=dd(r);return t===e.ModuleKind.ESNext&&e.endsWith(r.text,".json")}function zd(r,t,a,o){var s=r&&dd(o);if(r&&s!==void 0){var f=u_(s,r.impliedNodeFormat);if(s===e.ModuleKind.ESNext||f)return f}if(!gr)return!1;if(!r||r.isDeclarationFile){var N=sf(t,"default",void 0,!0);return!(N&&e.some(N.declarations,F_)||sf(t,e.escapeLeadingUnderscores("__esModule"),void 0,a))}return e.isSourceFileJS(r)?!r.externalModuleIndicator&&!sf(t,e.escapeLeadingUnderscores("__esModule"),void 0,a):Ff(t)}function Bu(r,t){var a,o=Ys(r,r.parent.moduleSpecifier);if(o){var s=void 0;e.isShorthandAmbientModuleSymbol(o)?s=o:s=sf(o,"default",r,t);var f=(a=o.declarations)===null||a===void 0?void 0:a.find(e.isSourceFile),N=Of(r.parent.moduleSpecifier),U=zd(f,o,t,r.parent.moduleSpecifier);if(!s&&!U&&!N)if(Ff(o)){var fe=ve>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",Oe=o.exports.get("export="),je=Oe.valueDeclaration,ze=Br(r.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ja(o),fe);je&&e.addRelatedInfo(ze,e.createDiagnosticForNode(je,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,fe))}else qd(o,r);else if(U||N){var tr=_l(o,t)||wo(o,t);return rc(r,o,tr,!1),tr}return rc(r,s,void 0,!1),s}}function qd(r,t){var a,o,s;if(!((a=r.exports)===null||a===void 0)&&a.has(t.symbol.escapedName))Br(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ja(r),Ja(t.symbol));else{var f=Br(t.name,e.Diagnostics.Module_0_has_no_default_export,Ja(r)),N=(o=r.exports)===null||o===void 0?void 0:o.get("__export");if(N){var U=(s=N.declarations)===null||s===void 0?void 0:s.find(function(fe){var Oe,je;return!!(e.isExportDeclaration(fe)&&fe.moduleSpecifier&&((je=(Oe=Ys(fe,fe.moduleSpecifier))===null||Oe===void 0?void 0:Oe.exports)===null||je===void 0?void 0:je.has("default")))});U&&e.addRelatedInfo(f,e.createDiagnosticForNode(U,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function ks(r,t){var a=r.parent.parent.moduleSpecifier,o=Ys(r,a),s=Eu(o,a,t,!1);return rc(r,o,s,!1),s}function Xc(r,t){var a=r.parent.moduleSpecifier,o=a&&Ys(r,a),s=a&&Eu(o,a,t,!1);return rc(r,o,s,!1),s}function Yc(r,t){if(r===cr&&t===cr)return cr;if(r.flags&790504)return r;var a=co(r.flags|t.flags,r.escapedName);return a.declarations=e.deduplicate(e.concatenate(r.declarations,t.declarations),e.equateValues),a.parent=r.parent||t.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),t.members&&(a.members=new e.Map(t.members)),r.exports&&(a.exports=new e.Map(r.exports)),a}function f_(r,t,a,o){if(r.flags&1536){var s=il(r).get(t.escapedText),f=wo(s,o);return rc(a,s,f,!1),f}}function lf(r,t){if(r.flags&3){var a=r.valueDeclaration.type;if(a)return wo(pi(xa(a),t))}}function Uu(r,t,a){var o,s;a===void 0&&(a=!1);var f=e.getExternalModuleRequireArgument(r)||r.moduleSpecifier,N=Ys(r,f),U=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(!!e.isIdentifier(U)){var fe=U.escapedText==="default"&&!!(We.allowSyntheticDefaultImports||e.getESModuleInterop(We)),Oe=Eu(N,f,!1,fe);if(Oe&&U.escapedText){if(e.isShorthandAmbientModuleSymbol(N))return N;var je=void 0;N&&N.exports&&N.exports.get("export=")?je=pi(En(Oe),U.escapedText,!0):je=lf(Oe,U.escapedText),je=wo(je,a);var ze=f_(Oe,U,t,a);if(ze===void 0&&U.escapedText==="default"){var tr=(o=N.declarations)===null||o===void 0?void 0:o.find(e.isSourceFile);(Of(f)||zd(tr,N,a,f))&&(ze=_l(N,a)||wo(N,a))}var _r=ze&&je&&ze!==je?Yc(je,ze):ze||je;if(!_r){var Vr=Xs(N,r),$r=e.declarationNameToString(U),Tt=Yb(U,Oe);if(Tt!==void 0){var St=Ja(Tt),It=Br(U,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Vr,$r,St);Tt.valueDeclaration&&e.addRelatedInfo(It,e.createDiagnosticForNode(Tt.valueDeclaration,e.Diagnostics._0_is_declared_here,St))}else!((s=N.exports)===null||s===void 0)&&s.has("default")?Br(U,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Vr,$r):G_(r,U,$r,N,Vr)}return _r}}}function G_(r,t,a,o,s){var f,N,U=(N=(f=o.valueDeclaration)===null||f===void 0?void 0:f.locals)===null||N===void 0?void 0:N.get(t.escapedText),fe=o.exports;if(U){var Oe=fe==null?void 0:fe.get("export=");if(Oe)Hl(Oe,U)?Gc(r,t,a,s):Br(t,e.Diagnostics.Module_0_has_no_exported_member_1,s,a);else{var je=fe?e.find(ag(fe),function(tr){return!!Hl(tr,U)}):void 0,ze=je?Br(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,a,Ja(je)):Br(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,a);U.declarations&&e.addRelatedInfo.apply(void 0,Bt([ze],e.map(U.declarations,function(tr,_r){return e.createDiagnosticForNode(tr,_r===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,a)}),!1))}}else Br(t,e.Diagnostics.Module_0_has_no_exported_member_1,s,a)}function Gc(r,t,a,o){if(ve>=e.ModuleKind.ES2015){var s=e.getESModuleInterop(We)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Br(t,s,a)}else if(e.isInJSFile(r)){var s=e.getESModuleInterop(We)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Br(t,s,a)}else{var s=e.getESModuleInterop(We)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Br(t,s,a,a,o)}}function kl(r,t){var a=e.isBindingElement(r)?e.getRootDeclaration(r):r.parent.parent.parent,o=Qc(a),s=Uu(a,o||r,t),f=r.propertyName||r.name;return o&&s&&e.isIdentifier(f)?wo(pi(En(s),f.escapedText),t):(rc(r,void 0,s,!1),s)}function Qc(r){if(e.isVariableDeclaration(r)&&r.initializer&&e.isPropertyAccessExpression(r.initializer))return r.initializer}function Wl(r,t){var a=_l(r.parent.symbol,t);return rc(r,void 0,a,!1),a}function Bc(r,t,a){var o=r.parent.parent.moduleSpecifier?Uu(r.parent.parent,r,a):fs(r.propertyName||r.name,t,!1,a);return rc(r,void 0,o,!1),o}function Xd(r,t){var a=e.isExportAssignment(r)?r.expression:r.right,o=pd(a,t);return rc(r,void 0,o,!1),o}function pd(r,t){if(e.isClassExpression(r))return Cs(r).symbol;if(!(!e.isEntityName(r)&&!e.isEntityNameExpression(r))){var a=fs(r,901119,!0,t);return a||(Cs(r),Zn(r).resolvedSymbol)}}function yu(r,t){var a=r.initializer;return pd(a,t)}function Rf(r,t){if(!!(e.isBinaryExpression(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===63))return pd(r.parent.right,t)}function Zi(r,t){switch(t===void 0&&(t=!1),r.kind){case 264:case 253:return fd(r,t);case 266:return Bu(r,t);case 267:return ks(r,t);case 273:return Xc(r,t);case 269:case 202:return kl(r,t);case 274:return Bc(r,901119,t);case 270:case 220:return Xd(r,t);case 263:return Wl(r,t);case 295:return fs(r.name,901119,!0,t);case 294:return yu(r,t);case 206:case 205:return Rf(r,t);default:return e.Debug.fail()}}function cf(r,t){return t===void 0&&(t=901119),r?(r.flags&(2097152|t))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function wo(r,t){return!t&&cf(r)?Go(r):r}function Go(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var t=Va(r);if(t.target)t.target===$e&&(t.target=cr);else{t.target=$e;var a=ec(r);if(!a)return e.Debug.fail();var o=Zi(a);t.target===$e?t.target=o||cr:Br(a,e.Diagnostics.Circular_definition_of_import_alias_0,Ja(r))}return t.target}function Lp(r){var t=Va(r);if(t.target!==$e)return Go(r)}function rc(r,t,a,o){if(!r||e.isPropertyAccessExpression(r))return!1;var s=xn(r);if(e.isTypeOnlyImportOrExportDeclaration(r)){var f=Va(s);return f.typeOnlyDeclaration=r,!0}var N=Va(s);return wf(N,t,o)||wf(N,a,o)}function wf(r,t,a){var o,s,f;if(t&&(r.typeOnlyDeclaration===void 0||a&&r.typeOnlyDeclaration===!1)){var N=(s=(o=t.exports)===null||o===void 0?void 0:o.get("export="))!==null&&s!==void 0?s:t,U=N.declarations&&e.find(N.declarations,e.isTypeOnlyImportOrExportDeclaration);r.typeOnlyDeclaration=(f=U!=null?U:Va(N).typeOnlyDeclaration)!==null&&f!==void 0?f:!1}return!!r.typeOnlyDeclaration}function Cn(r){if(!!(r.flags&2097152)){var t=Va(r);return t.typeOnlyDeclaration||void 0}}function us(r){var t=xn(r),a=Go(t);if(a){var o=a===cr||a.flags&111551&&!wv(a)&&!Cn(t);o&&ui(t)}}function ui(r){var t=Va(r);if(!t.referenced){t.referenced=!0;var a=ec(r);if(!a)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(a)){var o=wo(r);(o===cr||o.flags&111551)&&Cs(a.moduleReference)}}}function yc(r){var t=Va(r);t.constEnumReferenced||(t.constEnumReferenced=!0)}function Ap(r,t){return r.kind===79&&e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),r.kind===79||r.parent.kind===160?fs(r,1920,!1,t):(e.Debug.assert(r.parent.kind===264),fs(r,901119,!1,t))}function Xs(r,t){return r.parent?Xs(r.parent,t)+"."+Ja(r):Ja(r,t,void 0,20)}function An(r){for(;e.isQualifiedName(r.parent);)r=r.parent;return r}function d_(r){var t=e.getFirstIdentifier(r),a=Ho(t,t.escapedText,111551,void 0,t,!0);if(!!a){for(;e.isQualifiedName(t.parent);){var o=En(a);if(a=pi(o,t.parent.right.escapedText),!a)return;t=t.parent}return a}}function fs(r,t,a,o,s){if(!e.nodeIsMissing(r)){var f=1920|(e.isInJSFile(r)?t&111551:0),N;if(r.kind===79){var U=t===f||e.nodeIsSynthesized(r)?e.Diagnostics.Cannot_find_namespace_0:bC(e.getFirstIdentifier(r)),fe=e.isInJSFile(r)&&!e.nodeIsSynthesized(r)?ls(r,t):void 0;if(N=Ha(Ho(s||r,r.escapedText,t,a||fe?void 0:U,r,!0,!1)),!N)return Ha(fe)}else if(r.kind===160||r.kind===205){var Oe=r.kind===160?r.left:r.expression,je=r.kind===160?r.right:r.name,ze=fs(Oe,f,a,!1,s);if(!ze||e.nodeIsMissing(je))return;if(ze===cr)return ze;if(ze.valueDeclaration&&e.isInJSFile(ze.valueDeclaration)&&e.isVariableDeclaration(ze.valueDeclaration)&&ze.valueDeclaration.initializer&&$x(ze.valueDeclaration.initializer)){var tr=ze.valueDeclaration.initializer.arguments[0],_r=Ys(tr,tr);if(_r){var Vr=_l(_r);Vr&&(ze=Vr)}}if(N=Ha(Al(il(ze),je.escapedText,t)),!N){if(!a){var $r=Xs(ze),Tt=e.declarationNameToString(je),St=Yb(je,ze);if(St){Br(je,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,$r,Tt,Ja(St));return}var It=e.isQualifiedName(r)&&An(r),jt=Bn&&t&788968&&It&&!e.isTypeOfExpression(It.parent)&&d_(It);if(jt){Br(It,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(It));return}if(t&1920&&e.isQualifiedName(r.parent)){var In=Ha(Al(il(ze),je.escapedText,788968));if(In){Br(r.parent.right,e.Diagnostics.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,Ja(In),e.unescapeLeadingUnderscores(r.parent.right.escapedText));return}}Br(je,e.Diagnostics.Namespace_0_has_no_exported_member_1,$r,Tt)}return}}else throw e.Debug.assertNever(r,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(N)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(r)&&e.isEntityName(r)&&(N.flags&2097152||r.parent.kind===270)&&rc(e.getAliasDeclarationFromName(r),N,void 0,!0),N.flags&t||o?N:Go(N)}}function ls(r,t){if(ib(r.parent)){var a=fc(r.parent);if(a)return Ho(a,r.escapedText,t,void 0,r,!0)}}function fc(r){var t=e.findAncestor(r,function(f){return e.isJSDocNode(f)||f.flags&4194304?e.isJSDocTypeAlias(f):"quit"});if(!t){var a=e.getJSDocHost(r);if(a&&e.isExpressionStatement(a)&&e.isBinaryExpression(a.expression)&&e.getAssignmentDeclarationKind(a.expression)===3){var o=xn(a.expression.left);if(o)return jl(o)}if(a&&(e.isObjectLiteralMethod(a)||e.isPropertyAssignment(a))&&e.isBinaryExpression(a.parent.parent)&&e.getAssignmentDeclarationKind(a.parent.parent)===6){var o=xn(a.parent.parent.left);if(o)return jl(o)}var s=e.getEffectiveJSDocHost(r);if(s&&e.isFunctionLike(s)){var o=xn(s);return o&&o.valueDeclaration}}}function jl(r){var t=r.parent.valueDeclaration;if(!!t){var a=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return a||t}}function Mf(r){var t=r.valueDeclaration;if(!(!t||!e.isInJSFile(t)||r.flags&524288||e.getExpandoInitializer(t,!1))){var a=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(a){var o=xn(a);if(o)return xT(o,r)}}}function Ys(r,t,a){var o=e.getEmitModuleResolutionKind(We)===e.ModuleResolutionKind.Classic,s=o?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return bc(r,t,a?void 0:s)}function bc(r,t,a,o){return o===void 0&&(o=!1),e.isStringLiteralLike(t)?Pf(r,t.text,a,t,o):void 0}function Pf(r,t,a,o,s){var f,N,U,fe,Oe,je,ze;if(s===void 0&&(s=!1),e.startsWith(t,"@types/")){var tr=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,_r=e.removePrefix(t,"@types/");Br(o,tr,_r,t)}var Vr=Ah(t,!0);if(Vr)return Vr;var $r=e.getSourceFileOfNode(r),Tt=e.isStringLiteralLike(r)?r:((f=e.findAncestor(r,e.isImportCall))===null||f===void 0?void 0:f.arguments[0])||((N=e.findAncestor(r,e.isImportDeclaration))===null||N===void 0?void 0:N.moduleSpecifier)||((U=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))===null||U===void 0?void 0:U.moduleReference.expression)||((fe=e.findAncestor(r,e.isExportDeclaration))===null||fe===void 0?void 0:fe.moduleSpecifier)||((Oe=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)===null||Oe===void 0?void 0:Oe.name)||((je=e.isLiteralImportTypeNode(r)?r:void 0)===null||je===void 0?void 0:je.argument.literal),St=Tt&&e.isStringLiteralLike(Tt)?e.getModeForUsageLocation($r,Tt):$r.impliedNodeFormat,It=e.getResolvedModule($r,t,St),jt=It&&e.getResolutionDiagnostic(We,It),In=It&&!jt&&A.getSourceFile(It.resolvedFileName);if(In){if(In.symbol){if(It.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(It.extension)&&Ec(!1,o,It,t),e.getEmitModuleResolutionKind(We)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(We)===e.ModuleResolutionKind.NodeNext){var sn=$r.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration);sn&&In.impliedNodeFormat===e.ModuleKind.ESNext&&Br(o,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,t),St===e.ModuleKind.ESNext&&We.resolveJsonModule&&It.extension===".json"&&Br(o,e.Diagnostics.JSON_imports_are_experimental_in_ES_module_mode_imports)}return Ha(In.symbol)}a&&Br(o,e.Diagnostics.File_0_is_not_a_module,In.fileName);return}if(gt){var ua=e.findBestPatternMatch(gt,function(Oa){return Oa.pattern},t);if(ua){var la=tn&&tn.get(t);return Ha(la||ua.symbol)}}if(It&&!e.resolutionExtensionIsTSOrJson(It.extension)&&jt===void 0||jt===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var tr=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Br(o,tr,t,It.resolvedFileName)}else Ec(sr&&!!a,o,It,t);return}if(a){if(It){var _i=A.getProjectReferenceRedirect(It.resolvedFileName);if(_i){Br(o,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,_i,It.resolvedFileName);return}}if(jt)Br(o,jt,t,It.resolvedFileName);else{var ka=e.tryExtractTSExtension(t),xi=e.pathIsRelative(t)&&!e.hasExtension(t),Bi=e.getEmitModuleResolutionKind(We),Ii=Bi===e.ModuleResolutionKind.Node12||Bi===e.ModuleResolutionKind.NodeNext;if(ka){var tr=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,Co=e.removeExtension(t,ka),Ht=Co;ve>=e.ModuleKind.ES2015&&(Ht+=ka===".mts"?".mjs":ka===".cts"?".cjs":".js"),Br(o,tr,ka,Ht)}else if(!We.resolveJsonModule&&e.fileExtensionIs(t,".json")&&e.getEmitModuleResolutionKind(We)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(We))Br(o,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,t);else if(St===e.ModuleKind.ESNext&&Ii&&xi){var Gt=e.getNormalizedAbsolutePath(t,e.getDirectoryPath($r.path)),mn=(ze=Ai.find(function(Oa){var Yn=Oa[0],Ba=Oa[1];return A.fileExists(Gt+Yn)}))===null||ze===void 0?void 0:ze[1];mn?Br(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Did_you_mean_0,t+mn):Br(o,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node12_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Br(o,a,t)}}}function Ec(r,t,a,o){var s=a.packageId,f=a.resolvedFileName,N=!e.isExternalModuleNameRelative(o)&&s?Zc(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.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.name,e.mangleScopedPackageName(s.name)):bu(s.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s.name,o):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,o,e.mangleScopedPackageName(s.name)):void 0;Nl(r,t,e.chainDiagnosticMessages(N,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,f))}function Zc(r){return Se().has(e.getTypesPackageName(r))}function bu(r){return!!Se().get(r)}function _l(r,t){if(r!=null&&r.exports){var a=wo(r.exports.get("export="),t),o=Cp(Ha(a),Ha(r));return Ha(o)||r}}function Cp(r,t){if(!r||r===cr||r===t||t.exports.size===1||r.flags&2097152)return r;var a=Va(r);if(a.cjsExportMerged)return a.cjsExportMerged;var o=r.flags&33554432?r:ld(r);return o.flags=o.flags|512,o.exports===void 0&&(o.exports=e.createSymbolTable()),t.exports.forEach(function(s,f){f!=="export="&&o.exports.set(f,o.exports.has(f)?cs(o.exports.get(f),s):s)}),Va(o).cjsExportMerged=o,a.cjsExportMerged=o}function Eu(r,t,a,o){var s=_l(r,a);if(!a&&s){if(!o&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,303)){var f=ve>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Br(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,f),s}var N=t.parent;if(e.isImportDeclaration(N)&&e.getNamespaceDeclarationNode(N)||e.isImportCall(N)){var U=e.isImportCall(N)?N.arguments[0]:N.moduleSpecifier,fe=En(s),Oe=Qx(fe,s,r,U);if(Oe)return uf(s,Oe,N);if(e.getESModuleInterop(We)){var je=ip(fe,0);if((!je||!je.length)&&(je=ip(fe,1)),je&&je.length||pi(fe,"default",!0)){var ze=Zx(fe,s,r,U);return uf(s,ze,N)}}}}return s}function uf(r,t,a){var o=co(r.flags,r.escapedName);o.declarations=r.declarations?r.declarations.slice():[],o.parent=r.parent,o.target=r,o.originatingImport=a,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(o.constEnumOnlyModule=!0),r.members&&(o.members=new e.Map(r.members)),r.exports&&(o.exports=new e.Map(r.exports));var s=Wc(t);return o.type=es(o,s.members,e.emptyArray,e.emptyArray,s.indexInfos),o}function Ff(r){return r.exports.get("export=")!==void 0}function _d(r){return ag(Ol(r))}function ff(r){var t=_d(r),a=_l(r);if(a!==r){var o=En(a);Tu(o)&&e.addRange(t,ro(o))}return t}function dc(r,t){var a=Ol(r);a.forEach(function(f,N){mf(N)||t(f,N)});var o=_l(r);if(o!==r){var s=En(o);Tu(s)&&Yy(s,function(f,N){t(f,N)})}}function md(r,t){var a=Ol(t);if(a)return a.get(r)}function Yd(r,t){var a=md(r,t);if(a)return a;var o=_l(t);if(o!==t){var s=En(o);return Tu(s)?pi(s,r):void 0}}function Tu(r){return!(r.flags&131068||e.getObjectFlags(r)&1||$s(r)||ki(r))}function il(r){return r.flags&6256?Xg(r,"resolvedExports"):r.flags&1536?Ol(r):r.exports||ce}function Ol(r){var t=Va(r);return t.resolvedExports||(t.resolvedExports=df(r))}function $c(r,t,a,o){!t||t.forEach(function(s,f){if(f!=="default"){var N=r.get(f);if(!N)r.set(f,s),a&&o&&a.set(f,{specifierText:e.getTextOfNode(o.moduleSpecifier)});else if(a&&o&&N&&wo(N)!==wo(s)){var U=a.get(f);U.exportsWithDuplicate?U.exportsWithDuplicate.push(o):U.exportsWithDuplicate=[o]}}})}function df(r){var t=[];return r=_l(r),a(r)||ce;function a(o){if(!!(o&&o.exports&&e.pushIfUnique(t,o))){var s=new e.Map(o.exports),f=o.exports.get("__export");if(f){var N=e.createSymbolTable(),U=new e.Map;if(f.declarations)for(var fe=0,Oe=f.declarations;fe<Oe.length;fe++){var je=Oe[fe],ze=Ys(je,je.moduleSpecifier),tr=a(ze);$c(N,tr,U,je)}U.forEach(function(_r,Vr){var $r=_r.exportsWithDuplicate;if(!(Vr==="export="||!($r&&$r.length)||s.has(Vr)))for(var Tt=0,St=$r;Tt<St.length;Tt++){var It=St[Tt];fa.add(e.createDiagnosticForNode(It,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,U.get(Vr).specifierText,e.unescapeLeadingUnderscores(Vr)))}}),$c(s,N)}return s}}}function Ha(r){var t;return r&&r.mergeId&&(t=ul[r.mergeId])?t:r}function xn(r){return Ha(r.symbol&&Qm(r.symbol))}function Ls(r){return Ha(r.parent&&Qm(r.parent))}function xp(r,t){var a=e.getSourceFileOfNode(t),o=w(a),s=Va(r),f;if(s.extendedContainersByFile&&(f=s.extendedContainersByFile.get(o)))return f;if(a&&a.imports){for(var N=0,U=a.imports;N<U.length;N++){var fe=U[N];if(!e.nodeIsSynthesized(fe)){var Oe=Ys(t,fe,!0);if(!!Oe){var je=gd(Oe,r);!je||(f=e.append(f,Oe))}}}if(e.length(f))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,f),f}if(s.extendedContainers)return s.extendedContainers;for(var ze=A.getSourceFiles(),tr=0,_r=ze;tr<_r.length;tr++){var Vr=_r[tr];if(!!e.isExternalModule(Vr)){var $r=xn(Vr),je=gd($r,r);!je||(f=e.append(f,$r))}}return s.extendedContainers=f||e.emptyArray}function Qd(r,t,a){var o=Ls(r);if(o&&!(r.flags&262144)){var s=e.mapDefined(o.declarations,je),f=t&&xp(r,t),N=pf(o,a);if(t&&o.flags&eu(a)&&Vf(o,t,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),f),N);var U=!(o.flags&eu(a))&&o.flags&788968&&vo(o).flags&524288&&a===111551?Uf(t,function(ze){return e.forEachEntry(ze,function(tr){if(tr.flags&eu(a)&&En(tr)===vo(o))return tr})}):void 0,fe=U?Bt(Bt([U],s,!0),[o],!1):Bt(Bt([],s,!0),[o],!1);return fe=e.append(fe,N),fe=e.addRange(fe,f),fe}var Oe=e.mapDefined(r.declarations,function(ze){if(!e.isAmbientModule(ze)&&ze.parent&&Jl(ze.parent))return xn(ze.parent);if(e.isClassExpression(ze)&&e.isBinaryExpression(ze.parent)&&ze.parent.operatorToken.kind===63&&e.isAccessExpression(ze.parent.left)&&e.isEntityNameExpression(ze.parent.left.expression))return e.isModuleExportsAccessExpression(ze.parent.left)||e.isExportsIdentifier(ze.parent.left.expression)?xn(e.getSourceFileOfNode(ze)):(Cs(ze.parent.left.expression),Zn(ze.parent.left.expression).resolvedSymbol)});if(!e.length(Oe))return;return e.mapDefined(Oe,function(ze){return gd(ze,r)?ze:void 0});function je(ze){return o&&_f(ze,o)}}function pf(r,t){var a=!!e.length(r.declarations)&&e.first(r.declarations);if(t&111551&&a&&a.parent&&e.isVariableDeclaration(a.parent)&&(e.isObjectLiteralExpression(a)&&a===a.parent.initializer||e.isTypeLiteralNode(a)&&a===a.parent.type))return xn(a.parent)}function _f(r,t){var a=Hu(r),o=a&&a.exports&&a.exports.get("export=");return o&&Hl(o,t)?a:void 0}function gd(r,t){if(r===Ls(t))return t;var a=r.exports&&r.exports.get("export=");if(a&&Hl(a,t))return r;var o=il(r),s=o.get(t.escapedName);return s&&Hl(s,t)?s:e.forEachEntry(o,function(f){if(Hl(f,t))return f})}function Hl(r,t){if(Ha(wo(Ha(r)))===Ha(wo(Ha(t))))return r}function Rs(r){return Ha(r&&(r.flags&1048576)!==0?r.exportSymbol:r)}function Gf(r){return!!(r.flags&111551||r.flags&2097152&&Go(r).flags&111551&&!Cn(r))}function Vu(r){for(var t=r.members,a=0,o=t;a<o.length;a++){var s=o[a];if(s.kind===170&&e.nodeIsPresent(s.body))return s}}function dl(r){var t=new J(Yr,r);return Te++,t.id=Te,_e&&(e.tracing===null||e.tracing===void 0||e.tracing.recordType(t)),t}function Ip(r){return new J(Yr,r)}function $o(r,t,a){a===void 0&&(a=0);var o=dl(r);return o.intrinsicName=t,o.objectFlags=a,o}function ml(r,t){var a=dl(524288);return a.objectFlags=r,a.symbol=t,a.members=void 0,a.properties=void 0,a.callSignatures=void 0,a.constructSignatures=void 0,a.indexInfos=void 0,a}function p_(){return ha(e.arrayFrom(j.keys(),xc))}function tc(r){var t=dl(262144);return r&&(t.symbol=r),t}function mf(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Su(r){var t;return r.forEach(function(a,o){Np(a,o)&&(t||(t=[])).push(a)}),t||e.emptyArray}function Np(r,t){return!mf(t)&&Gf(r)}function Bf(r){var t=Su(r),a=R0(r);return a?e.concatenate(t,[a]):t}function Rl(r,t,a,o,s){var f=r;return f.members=t,f.properties=e.emptyArray,f.callSignatures=a,f.constructSignatures=o,f.indexInfos=s,t!==ce&&(f.properties=Su(t)),f}function es(r,t,a,o,s){return Rl(ml(16,r),t,a,o,s)}function Wu(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(r.constructSignatures,function(o){return!(o.flags&4)});if(r.constructSignatures===t)return r;var a=es(r.symbol,r.members,r.callSignatures,e.some(t)?t:e.emptyArray,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=a,a.objectTypeWithoutAbstractConstructSignatures=a,a}function Uf(r,t){for(var a,o=function(N){if(N.locals&&!Pc(N)&&(a=t(N.locals,void 0,!0,N)))return{value:a};switch(N.kind){case 303:if(!e.isExternalOrCommonJsModule(N))break;case 260:var U=xn(N);if(a=t((U==null?void 0:U.exports)||ce,void 0,!0,N))return{value:a};break;case 256:case 225:case 257:var fe;if((xn(N).members||ce).forEach(function(Oe,je){Oe.flags&788968&&(fe||(fe=e.createSymbolTable())).set(je,Oe)}),fe&&(a=t(fe,void 0,!1,N)))return{value:a};break}},s=r;s;s=s.parent){var f=o(s);if(typeof f=="object")return f.value}return t(kr,void 0,!0)}function eu(r){return r===111551?111551:1920}function Vf(r,t,a,o,s){if(s===void 0&&(s=new e.Map),!(r&&!hd(r)))return;var f=Va(r),N=f.accessibleChainCache||(f.accessibleChainCache=new e.Map),U=Uf(t,function(St,It,jt,In){return In}),fe="".concat(o?0:1,"|").concat(U&&w(U),"|").concat(a);if(N.has(fe))return N.get(fe);var Oe=d(r),je=s.get(Oe);je||s.set(Oe,je=[]);var ze=Uf(t,tr);return N.set(fe,ze),ze;function tr(St,It,jt){if(!!e.pushIfUnique(je,St)){var In=$r(St,It,jt);return je.pop(),In}}function _r(St,It){return!vd(St,t,It)||!!Vf(St.parent,t,eu(It),o,s)}function Vr(St,It,jt){return(r===(It||St)||Ha(r)===Ha(It||St))&&!e.some(St.declarations,Jl)&&(jt||_r(Ha(St),a))}function $r(St,It,jt){if(Vr(St.get(r.escapedName),void 0,It))return[r];var In=e.forEachEntry(St,function(sn){if(sn.flags&2097152&&sn.escapedName!=="export="&&sn.escapedName!=="default"&&!(e.isUMDExportSymbol(sn)&&t&&e.isExternalModule(e.getSourceFileOfNode(t)))&&(!o||e.some(sn.declarations,e.isExternalModuleImportEqualsDeclaration))&&(jt?!e.some(sn.declarations,e.isNamespaceReexportDeclaration):!0)&&(It||!e.getDeclarationOfKind(sn,274))){var ua=Go(sn),la=Tt(sn,ua,It);if(la)return la}if(sn.escapedName===r.escapedName&&sn.exportSymbol&&Vr(Ha(sn.exportSymbol),void 0,It))return[r]});return In||(St===kr?Tt(lr,lr,It):void 0)}function Tt(St,It,jt){if(Vr(St,It,jt))return[St];var In=il(It),sn=In&&tr(In,!0);if(sn&&_r(St,eu(a)))return[St].concat(sn)}}function vd(r,t,a){var o=!1;return Uf(t,function(s){var f=Ha(s.get(r.escapedName));return f?f===r?!0:(f=f.flags&2097152&&!e.getDeclarationOfKind(f,274)?Go(f):f,f.flags&a?(o=!0,!0):!1):!1}),o}function hd(r){if(r.declarations&&r.declarations.length){for(var t=0,a=r.declarations;t<a.length;t++){var o=a[t];switch(o.kind){case 166:case 168:case 171:case 172:continue;default:return!1}}return!0}return!1}function gf(r,t){var a=vf(r,t,788968,!1,!0);return a.accessibility===0}function ju(r,t){var a=vf(r,t,111551,!1,!0);return a.accessibility===0}function Uc(r,t,a){var o=vf(r,t,a,!1,!1);return o.accessibility===0}function Zd(r,t,a,o,s,f){if(!!e.length(r)){for(var N,U=!1,fe=0,Oe=r;fe<Oe.length;fe++){var je=Oe[fe],ze=Vf(je,t,o,!1);if(ze){N=je;var tr=Ju(ze[0],s);if(tr)return tr}if(f&&e.some(je.declarations,Jl)){if(s){U=!0;continue}return{accessibility:0}}var _r=Qd(je,t,o),Vr=Zd(_r,t,a,a===je?eu(o):o,s,f);if(Vr)return Vr}if(U)return{accessibility:0};if(N)return{accessibility:1,errorSymbolName:Ja(a,t,o),errorModuleName:N!==a?Ja(N,t,1920):void 0}}}function Du(r,t,a,o){return vf(r,t,a,o,!0)}function vf(r,t,a,o,s){if(r&&t){var f=Zd([r],t,r,a,o,s);if(f)return f;var N=e.forEach(r.declarations,Hu);if(N){var U=Hu(t);if(N!==U)return{accessibility:2,errorSymbolName:Ja(r,t,a),errorModuleName:Ja(N),errorNode:e.isInJSFile(t)?t:void 0}}return{accessibility:1,errorSymbolName:Ja(r,t,a)}}return{accessibility:0}}function Hu(r){var t=e.findAncestor(r,Wf);return t&&xn(t)}function Wf(r){return e.isAmbientModule(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Jl(r){return e.isModuleWithStringLiteralName(r)||r.kind===303&&e.isExternalOrCommonJsModule(r)}function Ju(r,t){var a;if(!e.every(e.filter(r.declarations,function(f){return f.kind!==79}),o))return;return{accessibility:0,aliasesToMakeVisible:a};function o(f){var N,U;if(!nu(f)){var fe=uc(f);return fe&&!e.hasSyntacticModifier(fe,1)&&nu(fe.parent)?s(f,fe):e.isVariableDeclaration(f)&&e.isVariableStatement(f.parent.parent)&&!e.hasSyntacticModifier(f.parent.parent,1)&&nu(f.parent.parent.parent)?s(f,f.parent.parent):e.isLateVisibilityPaintedStatement(f)&&!e.hasSyntacticModifier(f,1)&&nu(f.parent)?s(f,f):r.flags&2097152&&e.isBindingElement(f)&&e.isInJSFile(f)&&((N=f.parent)===null||N===void 0?void 0:N.parent)&&e.isVariableDeclaration(f.parent.parent)&&((U=f.parent.parent.parent)===null||U===void 0?void 0:U.parent)&&e.isVariableStatement(f.parent.parent.parent.parent)&&!e.hasSyntacticModifier(f.parent.parent.parent.parent,1)&&f.parent.parent.parent.parent.parent&&nu(f.parent.parent.parent.parent.parent)?s(f,f.parent.parent.parent.parent):!1}return!0}function s(f,N){return t&&(Zn(f).isVisible=!0,a=e.appendIfUnique(a,N)),!0}}function $d(r,t){var a;r.parent.kind===180||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)||r.parent.kind===161?a=1160127:r.kind===160||r.kind===205||r.parent.kind===264?a=1920:a=788968;var o=e.getFirstIdentifier(r),s=Ho(t,o.escapedText,a,void 0,void 0,!1);return s&&s.flags&262144&&a&788968?{accessibility:0}:s&&Ju(s,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(o),errorNode:o}}function Ja(r,t,a,o,s){o===void 0&&(o=4);var f=70221824;o&2&&(f|=128),o&1&&(f|=512),o&8&&(f|=16384),o&16&&(f|=134217728);var N=o&4?Cr.symbolToExpression:Cr.symbolToEntityName;return s?U(s).getText():e.usingSingleLineStringWriter(U);function U(fe){var Oe=N(r,a,t,f),je=(t==null?void 0:t.kind)===303?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),ze=t&&e.getSourceFileOfNode(t);return je.writeNode(4,Oe,ze,fe),fe}}function Tc(r,t,a,o,s){return a===void 0&&(a=0),s?f(s).getText():e.usingSingleLineStringWriter(f);function f(N){var U;a&262144?U=o===1?179:178:U=o===1?174:173;var fe=Cr.signatureToSignatureDeclaration(r,U,t,kp(a)|70221824|512),Oe=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),je=t&&e.getSourceFileOfNode(t);return Oe.writeNode(4,fe,je,e.getTrailingSemicolonDeferringWriter(N)),N}}function pn(r,t,a,o){a===void 0&&(a=1064960),o===void 0&&(o=e.createTextWriter(""));var s=We.noErrorTruncation||a&1,f=Cr.typeToTypeNode(r,t,kp(a)|70221824|(s?1:0),o);if(f===void 0)return e.Debug.fail("should always get typenode");var N={removeComments:r!==Ir},U=e.createPrinter(N),fe=t&&e.getSourceFileOfNode(t);U.writeNode(4,f,fe,o);var Oe=o.getText(),je=s?e.noTruncationMaximumTruncationLength*2:e.defaultMaximumTruncationLength*2;return je&&Oe&&Oe.length>=je?Oe.substr(0,je-3)+"...":Oe}function ep(r,t){var a=rp(r.symbol)?pn(r,r.symbol.valueDeclaration):pn(r),o=rp(t.symbol)?pn(t,t.symbol.valueDeclaration):pn(t);return a===o&&(a=jf(r),o=jf(t)),[a,o]}function jf(r){return pn(r,void 0,64)}function rp(r){return r&&!!r.valueDeclaration&&e.isExpression(r.valueDeclaration)&&!fu(r.valueDeclaration)}function kp(r){return r===void 0&&(r=0),r&814775659}function Op(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===Kn(r.symbol)||!!(r.flags&524288)&&!!(e.getObjectFlags(r)&16777216))}function B_(){return{typeToTypeNode:function(Kr,Dr,yn,on){return r(Dr,yn,on,function(jn){return o(Kr,jn)})},indexInfoToIndexSignatureDeclaration:function(Kr,Dr,yn,on){return r(Dr,yn,on,function(jn){return Oe(Kr,jn,void 0)})},signatureToSignatureDeclaration:function(Kr,Dr,yn,on,jn){return r(yn,on,jn,function(Tn){return je(Kr,Dr,Tn)})},symbolToEntityName:function(Kr,Dr,yn,on,jn){return r(yn,on,jn,function(Tn){return ka(Kr,Tn,Dr,!1)})},symbolToExpression:function(Kr,Dr,yn,on,jn){return r(yn,on,jn,function(Tn){return xi(Kr,Tn,Dr)})},symbolToTypeParameterDeclarations:function(Kr,Dr,yn,on){return r(Dr,yn,on,function(jn){return St(Kr,jn)})},symbolToParameterDeclaration:function(Kr,Dr,yn,on){return r(Dr,yn,on,function(jn){return _r(Kr,jn)})},typeParameterToDeclaration:function(Kr,Dr,yn,on){return r(Dr,yn,on,function(jn){return tr(Kr,jn)})},symbolTableToDeclarationStatements:function(Kr,Dr,yn,on,jn){return r(Dr,yn,on,function(Tn){return Gi(Kr,Tn,jn)})}};function r(Kr,Dr,yn,on){var jn,Tn;e.Debug.assert(Kr===void 0||(Kr.flags&8)===0);var Fn={enclosingDeclaration:Kr,flags:Dr||0,tracker:yn&&yn.trackSymbol?yn:{trackSymbol:function(){return!1},moduleResolverHost:Dr&134217728?{getCommonSourceDirectory:A.getCommonSourceDirectory?function(){return A.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return A.getCurrentDirectory()},getSymlinkCache:e.maybeBind(A,A.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(A,A.useCaseSensitiveFileNames),redirectTargetsMap:A.redirectTargetsMap,getProjectReferenceRedirect:function(at){return A.getProjectReferenceRedirect(at)},isSourceOfProjectReferenceRedirect:function(at){return A.isSourceOfProjectReferenceRedirect(at)},fileExists:function(at){return A.fileExists(at)},getFileIncludeReasons:function(){return A.getFileIncludeReasons()},readFile:A.readFile?function(at){return A.readFile(at)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};Fn.tracker=t(Fn,Fn.tracker);var Qr=on(Fn);return Fn.truncating&&Fn.flags&1&&((Tn=(jn=Fn.tracker)===null||jn===void 0?void 0:jn.reportTruncationError)===null||Tn===void 0||Tn.call(jn)),Fn.encounteredError?void 0:Qr}function t(Kr,Dr){var yn=Dr.trackSymbol;return kn(kn({},Dr),{reportCyclicStructureError:on(Dr.reportCyclicStructureError),reportInaccessibleThisError:on(Dr.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:on(Dr.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:on(Dr.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:on(Dr.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:on(Dr.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:on(Dr.reportNonSerializableProperty),trackSymbol:yn&&function(){for(var jn=[],Tn=0;Tn<arguments.length;Tn++)jn[Tn]=arguments[Tn];var Fn=yn.apply(void 0,jn);return Fn&&(Kr.reportedDiagnostic=!0),Fn}});function on(jn){return jn&&function(){for(var Tn=[],Fn=0;Fn<arguments.length;Fn++)Tn[Fn]=arguments[Fn];return Kr.reportedDiagnostic=!0,jn.apply(void 0,Tn)}}}function a(Kr){return Kr.truncating?Kr.truncating:Kr.truncating=Kr.approximateLength>(Kr.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(Kr,Dr){ae&&ae.throwIfCancellationRequested&&ae.throwIfCancellationRequested();var yn=Dr.flags&8388608;if(Dr.flags&=-8388609,!Kr){if(!(Dr.flags&262144)){Dr.encounteredError=!0;return}return Dr.approximateLength+=3,e.factory.createKeywordTypeNode(130)}if(Dr.flags&536870912||(Kr=to(Kr)),Kr.flags&1)return Kr.aliasSymbol?e.factory.createTypeReferenceNode(sn(Kr.aliasSymbol),U(Kr.aliasTypeArguments,Dr)):Kr===Ir?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(Dr.approximateLength+=3,e.factory.createKeywordTypeNode(Kr===Or?138:130));if(Kr.flags&2)return e.factory.createKeywordTypeNode(154);if(Kr.flags&4)return Dr.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(Kr.flags&8)return Dr.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(Kr.flags&64)return Dr.approximateLength+=6,e.factory.createKeywordTypeNode(157);if(Kr.flags&16&&!Kr.aliasSymbol)return Dr.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(Kr.flags&1024&&!(Kr.flags&1048576)){var on=Ls(Kr.symbol),jn=ua(on,Dr,788968);if(vo(on)===Kr)return jn;var Tn=e.symbolName(Kr.symbol);return e.isIdentifierText(Tn,0)?Rd(jn,e.factory.createTypeReferenceNode(Tn,void 0)):e.isImportTypeNode(jn)?(jn.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(jn,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Tn)))):e.isTypeReferenceNode(jn)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(jn.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Tn))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(Kr.flags&1056)return ua(Kr.symbol,Dr,788968);if(Kr.flags&128)return Dr.approximateLength+=Kr.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(Kr.value,!!(Dr.flags&268435456)),16777216));if(Kr.flags&256){var Fn=Kr.value;return Dr.approximateLength+=(""+Fn).length,e.factory.createLiteralTypeNode(Fn<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-Fn)):e.factory.createNumericLiteral(Fn))}if(Kr.flags&2048)return Dr.approximateLength+=e.pseudoBigIntToString(Kr.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(Kr.value));if(Kr.flags&512)return Dr.approximateLength+=Kr.intrinsicName.length,e.factory.createLiteralTypeNode(Kr.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(Kr.flags&8192){if(!(Dr.flags&1048576)){if(ju(Kr.symbol,Dr.enclosingDeclaration))return Dr.approximateLength+=6,ua(Kr.symbol,Dr,111551);Dr.tracker.reportInaccessibleUniqueSymbolError&&Dr.tracker.reportInaccessibleUniqueSymbolError()}return Dr.approximateLength+=13,e.factory.createTypeOperatorNode(153,e.factory.createKeywordTypeNode(150))}if(Kr.flags&16384)return Dr.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(Kr.flags&32768)return Dr.approximateLength+=9,e.factory.createKeywordTypeNode(152);if(Kr.flags&65536)return Dr.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(Kr.flags&131072)return Dr.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(Kr.flags&4096)return Dr.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(Kr.flags&67108864)return Dr.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(kh(Kr))return Dr.flags&4194304&&(!Dr.encounteredError&&!(Dr.flags&32768)&&(Dr.encounteredError=!0),Dr.tracker.reportInaccessibleThisError&&Dr.tracker.reportInaccessibleThisError()),Dr.approximateLength+=4,e.factory.createThisTypeNode();if(!yn&&Kr.aliasSymbol&&(Dr.flags&16384||gf(Kr.aliasSymbol,Dr.enclosingDeclaration))){var Qr=U(Kr.aliasTypeArguments,Dr);return mf(Kr.aliasSymbol.escapedName)&&!(Kr.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),Qr):ua(Kr.aliasSymbol,Dr,788968,Qr)}var at=e.getObjectFlags(Kr);if(at&4)return e.Debug.assert(!!(Kr.flags&524288)),Kr.node?ys(Kr,Is):Is(Kr);if(Kr.flags&262144||at&3){if(Kr.flags&262144&&e.contains(Dr.inferTypeParameters,Kr))return Dr.approximateLength+=e.symbolName(Kr.symbol).length+6,e.factory.createInferTypeNode(ze(Kr,Dr,void 0));if(Dr.flags&4&&Kr.flags&262144&&!gf(Kr.symbol,Dr.enclosingDeclaration)){var Ft=_i(Kr,Dr);return Dr.approximateLength+=e.idText(Ft).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(Ft)),void 0)}return Kr.symbol?ua(Kr.symbol,Dr,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(Kr.flags&1048576&&Kr.origin&&(Kr=Kr.origin),Kr.flags&3145728){var Vt=Kr.flags&1048576?Rp(Kr.types):Kr.types;if(e.length(Vt)===1)return o(Vt[0],Dr);var Qt=U(Vt,Dr,!0);if(Qt&&Qt.length>0)return Kr.flags&1048576?e.factory.createUnionTypeNode(Qt):e.factory.createIntersectionTypeNode(Qt);!Dr.encounteredError&&!(Dr.flags&262144)&&(Dr.encounteredError=!0);return}if(at&48)return e.Debug.assert(!!(Kr.flags&524288)),zs(Kr);if(Kr.flags&4194304){var gn=Kr.type;Dr.approximateLength+=6;var Sa=o(gn,Dr);return e.factory.createTypeOperatorNode(140,Sa)}if(Kr.flags&134217728){var ga=Kr.texts,za=Kr.types,Hi=e.factory.createTemplateHead(ga[0]),Ya=e.factory.createNodeArray(e.map(za,function(Ua,wi){return e.factory.createTemplateLiteralTypeSpan(o(Ua,Dr),(wi<za.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(ga[wi+1]))}));return Dr.approximateLength+=2,e.factory.createTemplateLiteralType(Hi,Ya)}if(Kr.flags&268435456){var yo=o(Kr.type,Dr);return ua(Kr.symbol,Dr,788968,[yo])}if(Kr.flags&8388608){var Vo=o(Kr.objectType,Dr),Sa=o(Kr.indexType,Dr);return Dr.approximateLength+=2,e.factory.createIndexedAccessTypeNode(Vo,Sa)}if(Kr.flags&16777216)return ys(Kr,function(Ua){return so(Ua)});if(Kr.flags&33554432)return o(Kr.baseType,Dr);return e.Debug.fail("Should be unreachable.");function so(Ua){var wi=o(Ua.checkType,Dr),qo=Dr.inferTypeParameters;Dr.inferTypeParameters=Ua.root.inferTypeParameters;var po=o(Ua.extendsType,Dr);Dr.inferTypeParameters=qo;var Ws=xs(up(Ua)),qr=xs(fp(Ua));return Dr.approximateLength+=15,e.factory.createConditionalTypeNode(wi,po,Ws,qr)}function xs(Ua){var wi,qo,po;return Ua.flags&1048576?!((wi=Dr.visitedTypes)===null||wi===void 0)&&wi.has(jc(Ua))?(Dr.flags&131072||(Dr.encounteredError=!0,(po=(qo=Dr.tracker)===null||qo===void 0?void 0:qo.reportCyclicStructureError)===null||po===void 0||po.call(qo)),s(Dr)):ys(Ua,function(Ws){return o(Ws,Dr)}):o(Ua,Dr)}function ds(Ua){e.Debug.assert(!!(Ua.flags&524288));var wi=Ua.declaration.readonlyToken?e.factory.createToken(Ua.declaration.readonlyToken.kind):void 0,qo=Ua.declaration.questionToken?e.factory.createToken(Ua.declaration.questionToken.kind):void 0,po;$m(Ua)?po=e.factory.createTypeOperatorNode(140,o(eg(Ua),Dr)):po=o(Dc(Ua),Dr);var Ws=ze(lu(Ua),Dr,po),qr=Ua.declaration.nameType?o(Td(Ua),Dr):void 0,ct=o(Nm(xu(Ua),!!(Lc(Ua)&4)),Dr),Rt=e.factory.createMappedTypeNode(wi,Ws,qr,qo,ct,void 0);return Dr.approximateLength+=10,e.setEmitFlags(Rt,1)}function zs(Ua){var wi,qo=Ua.id,po=Ua.symbol;if(po){var Ws=Op(Ua)?788968:111551;if(_u(po.valueDeclaration))return ua(po,Dr,Ws);if(po.flags&32&&!ln(po)&&!(po.valueDeclaration&&po.valueDeclaration.kind===225&&Dr.flags&2048)||po.flags&896||ct())return ua(po,Dr,Ws);if(!((wi=Dr.visitedTypes)===null||wi===void 0)&&wi.has(qo)){var qr=wp(Ua);return qr?ua(qr,Dr,788968):s(Dr)}else return ys(Ua,ad)}else return ad(Ua);function ct(){var Rt,rn=!!(po.flags&8192)&&e.some(po.declarations,function(Vn){return e.isStatic(Vn)}),ea=!!(po.flags&16)&&(po.parent||e.forEach(po.declarations,function(Vn){return Vn.parent.kind===303||Vn.parent.kind===261}));if(rn||ea)return(!!(Dr.flags&4096)||((Rt=Dr.visitedTypes)===null||Rt===void 0?void 0:Rt.has(qo)))&&(!(Dr.flags&8)||ju(po,Dr.enclosingDeclaration))}}function ys(Ua,wi){var qo,po,Ws=Ua.id,qr=e.getObjectFlags(Ua)&16&&Ua.symbol&&Ua.symbol.flags&32,ct=e.getObjectFlags(Ua)&4&&Ua.node?"N"+w(Ua.node):Ua.flags&16777216?"N"+w(Ua.root.node):Ua.symbol?(qr?"+":"")+d(Ua.symbol):void 0;Dr.visitedTypes||(Dr.visitedTypes=new e.Set),ct&&!Dr.symbolDepth&&(Dr.symbolDepth=new e.Map);var Rt=Dr.enclosingDeclaration&&Zn(Dr.enclosingDeclaration),rn="".concat(jc(Ua),"|").concat(Dr.flags);Rt&&(Rt.serializedTypes||(Rt.serializedTypes=new e.Map));var ea=(qo=Rt==null?void 0:Rt.serializedTypes)===null||qo===void 0?void 0:qo.get(rn);if(ea)return ea.truncating&&(Dr.truncating=!0),Dr.approximateLength+=ea.addedLength,yi(ea);var Vn;if(ct){if(Vn=Dr.symbolDepth.get(ct)||0,Vn>10)return s(Dr);Dr.symbolDepth.set(ct,Vn+1)}Dr.visitedTypes.add(Ws);var Sn=Dr.approximateLength,qt=wi(Ua),ni=Dr.approximateLength-Sn;return!Dr.reportedDiagnostic&&!Dr.encounteredError&&(Dr.truncating&&(qt.truncating=!0),qt.addedLength=ni,(po=Rt==null?void 0:Rt.serializedTypes)===null||po===void 0||po.set(rn,qt)),Dr.visitedTypes.delete(Ws),ct&&Dr.symbolDepth.set(ct,Vn),qt;function yi(ai){return!e.nodeIsSynthesized(ai)&&e.getParseTreeNode(ai)===ai?ai:e.setTextRange(e.factory.cloneNode(e.visitEachChild(ai,yi,e.nullTransformationContext)),ai)}}function ad(Ua){if(wl(Ua)||Ua.containsError)return ds(Ua);var wi=Wc(Ua);if(!wi.properties.length&&!wi.indexInfos.length){if(!wi.callSignatures.length&&!wi.constructSignatures.length)return Dr.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(wi.callSignatures.length===1&&!wi.constructSignatures.length){var qo=wi.callSignatures[0],po=je(qo,178,Dr);return po}if(wi.constructSignatures.length===1&&!wi.callSignatures.length){var qo=wi.constructSignatures[0],po=je(qo,179,Dr);return po}}var Ws=e.filter(wi.constructSignatures,function(Vn){return!!(Vn.flags&4)});if(e.some(Ws)){var qr=e.map(Ws,sg),ct=wi.callSignatures.length+(wi.constructSignatures.length-Ws.length)+wi.indexInfos.length+(Dr.flags&2048?e.countWhere(wi.properties,function(Vn){return!(Vn.flags&4194304)}):e.length(wi.properties));return ct&&qr.push(Wu(wi)),o(To(qr),Dr)}var Rt=Dr.flags;Dr.flags|=4194304;var rn=Fv(wi);Dr.flags=Rt;var ea=e.factory.createTypeLiteralNode(rn);return Dr.approximateLength+=2,e.setEmitFlags(ea,Dr.flags&1024?0:1),ea}function Is(Ua){var wi=ho(Ua);if(Ua.target===ye||Ua.target===oe){if(Dr.flags&2){var qo=o(wi[0],Dr);return e.factory.createTypeReferenceNode(Ua.target===ye?"Array":"ReadonlyArray",[qo])}var po=o(wi[0],Dr),Ws=e.factory.createArrayTypeNode(po);return Ua.target===ye?Ws:e.factory.createTypeOperatorNode(144,Ws)}else if(Ua.target.objectFlags&8){if(wi=e.sameMap(wi,function(no,Ko){return Nm(no,!!(Ua.target.elementFlags[Ko]&2))}),wi.length>0){var qr=op(Ua),ct=U(wi.slice(0,qr),Dr);if(ct){if(Ua.target.labeledElementDeclarations)for(var Rt=0;Rt<ct.length;Rt++){var rn=Ua.target.elementFlags[Rt];ct[Rt]=e.factory.createNamedTupleMember(rn&12?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(iE(Ua.target.labeledElementDeclarations[Rt]))),rn&2?e.factory.createToken(57):void 0,rn&4?e.factory.createArrayTypeNode(ct[Rt]):ct[Rt])}else for(var Rt=0;Rt<Math.min(qr,ct.length);Rt++){var rn=Ua.target.elementFlags[Rt];ct[Rt]=rn&12?e.factory.createRestTypeNode(rn&4?e.factory.createArrayTypeNode(ct[Rt]):ct[Rt]):rn&2?e.factory.createOptionalTypeNode(ct[Rt]):ct[Rt]}var ea=e.setEmitFlags(e.factory.createTupleTypeNode(ct),1);return Ua.target.readonly?e.factory.createTypeOperatorNode(144,ea):ea}}if(Dr.encounteredError||Dr.flags&524288){var ea=e.setEmitFlags(e.factory.createTupleTypeNode([]),1);return Ua.target.readonly?e.factory.createTypeOperatorNode(144,ea):ea}Dr.encounteredError=!0;return}else{if(Dr.flags&2048&&Ua.symbol.valueDeclaration&&e.isClassLike(Ua.symbol.valueDeclaration)&&!ju(Ua.symbol,Dr.enclosingDeclaration))return zs(Ua);var Vn=Ua.target.outerTypeParameters,Rt=0,Sn=void 0;if(Vn)for(var qt=Vn.length;Rt<qt;){var ni=Rt,yi=OL(Vn[Rt]);do Rt++;while(Rt<qt&&OL(Vn[Rt])===yi);if(!e.rangeEquals(Vn,wi,ni,Rt)){var ai=U(wi.slice(ni,Rt),Dr),uo=Dr.flags;Dr.flags|=16;var ji=ua(yi,Dr,788968,ai);Dr.flags=uo,Sn=Sn?Rd(Sn,ji):ji}}var gs=void 0;if(wi.length>0){var ps=(Ua.target.typeParameters||e.emptyArray).length;gs=U(wi.slice(Rt,ps),Dr)}var rn=Dr.flags;Dr.flags|=16;var Xo=ua(Ua.symbol,Dr,788968,gs);return Dr.flags=rn,Sn?Rd(Sn,Xo):Xo}}function Rd(Ua,wi){if(e.isImportTypeNode(Ua)){var qo=Ua.typeArguments,po=Ua.qualifier;po&&(e.isIdentifier(po)?po=e.factory.updateIdentifier(po,qo):po=e.factory.updateQualifiedName(po,po.left,e.factory.updateIdentifier(po.right,qo))),qo=wi.typeArguments;for(var Ws=Pv(wi),qr=0,ct=Ws;qr<ct.length;qr++){var Rt=ct[qr];po=po?e.factory.createQualifiedName(po,Rt):Rt}return e.factory.updateImportTypeNode(Ua,Ua.argument,po,qo,Ua.isTypeOf)}else{var qo=Ua.typeArguments,rn=Ua.typeName;e.isIdentifier(rn)?rn=e.factory.updateIdentifier(rn,qo):rn=e.factory.updateQualifiedName(rn,rn.left,e.factory.updateIdentifier(rn.right,qo)),qo=wi.typeArguments;for(var Ws=Pv(wi),ea=0,Vn=Ws;ea<Vn.length;ea++){var Rt=Vn[ea];rn=e.factory.createQualifiedName(rn,Rt)}return e.factory.updateTypeReferenceNode(Ua,rn,qo)}}function Pv(Ua){for(var wi=Ua.typeName,qo=[];!e.isIdentifier(wi);)qo.unshift(wi.right),wi=wi.left;return qo.unshift(wi),qo}function Fv(Ua){if(a(Dr))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var wi=[],qo=0,po=Ua.callSignatures;qo<po.length;qo++){var Ws=po[qo];wi.push(je(Ws,173,Dr))}for(var qr=0,ct=Ua.constructSignatures;qr<ct.length;qr++){var Ws=ct[qr];Ws.flags&4||wi.push(je(Ws,174,Dr))}for(var Rt=0,rn=Ua.indexInfos;Rt<rn.length;Rt++){var ea=rn[Rt];wi.push(Oe(ea,Dr,Ua.objectFlags&1024?s(Dr):void 0))}var Vn=Ua.properties;if(!Vn)return wi;for(var Sn=0,qt=0,ni=Vn;qt<ni.length;qt++){var yi=ni[qt];if(Sn++,Dr.flags&2048){if(yi.flags&4194304)continue;e.getDeclarationModifierFlagsFromSymbol(yi)&24&&Dr.tracker.reportPrivateInBaseOfClassExpression&&Dr.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(yi.escapedName))}if(a(Dr)&&Sn+2<Vn.length-1){wi.push(e.factory.createPropertySignature(void 0,"... ".concat(Vn.length-Sn," more ..."),void 0,void 0)),N(Vn[Vn.length-1],Dr,wi);break}N(yi,Dr,wi)}return wi.length?wi:void 0}}function s(Kr){return Kr.approximateLength+=3,Kr.flags&1?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function f(Kr,Dr){var yn;return!!(e.getCheckFlags(Kr)&8192)&&(e.contains(Dr.reverseMappedStack,Kr)||((yn=Dr.reverseMappedStack)===null||yn===void 0?void 0:yn[0])&&!(e.getObjectFlags(e.last(Dr.reverseMappedStack).propertyType)&16))}function N(Kr,Dr,yn){var on,jn,Tn=!!(e.getCheckFlags(Kr)&8192),Fn=f(Kr,Dr)?ke:Jf(Kr),Qr=Dr.enclosingDeclaration;if(Dr.enclosingDeclaration=void 0,Dr.tracker.trackSymbol&&e.getCheckFlags(Kr)&4096&&y_(Kr.escapedName))if(Kr.declarations){var at=e.first(Kr.declarations);if(vm(at))if(e.isBinaryExpression(at)){var Ft=e.getNameOfDeclaration(at);Ft&&e.isElementAccessExpression(Ft)&&e.isPropertyAccessEntityNameExpression(Ft.argumentExpression)&&Vr(Ft.argumentExpression,Qr,Dr)}else Vr(at.name.expression,Qr,Dr)}else!((on=Dr.tracker)===null||on===void 0)&&on.reportNonSerializableProperty&&Dr.tracker.reportNonSerializableProperty(Ja(Kr));Dr.enclosingDeclaration=Kr.valueDeclaration||((jn=Kr.declarations)===null||jn===void 0?void 0:jn[0])||Qr;var Vt=Co(Kr,Dr);Dr.enclosingDeclaration=Qr,Dr.approximateLength+=e.symbolName(Kr).length+1;var Qt=Kr.flags&16777216?e.factory.createToken(57):void 0;if(Kr.flags&8208&&!zf(Fn).length&&!Gu(Kr))for(var gn=Li(el(Fn,function(xs){return!(xs.flags&32768)}),0),Sa=0,ga=gn;Sa<ga.length;Sa++){var za=ga[Sa],Hi=je(za,167,Dr,{name:Vt,questionToken:Qt});yn.push(so(Hi))}else{var Ya=void 0;f(Kr,Dr)?Ya=s(Dr):(Tn&&(Dr.reverseMappedStack||(Dr.reverseMappedStack=[]),Dr.reverseMappedStack.push(Kr)),Ya=Fn?Ba(Dr,Fn,Kr,Qr):e.factory.createKeywordTypeNode(130),Tn&&Dr.reverseMappedStack.pop());var yo=Gu(Kr)?[e.factory.createToken(144)]:void 0;yo&&(Dr.approximateLength+=9);var Vo=e.factory.createPropertySignature(yo,Vt,Qt,Ya);yn.push(so(Vo))}function so(xs){var ds;if(e.some(Kr.declarations,function(ad){return ad.kind===345})){var zs=(ds=Kr.declarations)===null||ds===void 0?void 0:ds.find(function(ad){return ad.kind===345}),ys=e.getTextOfJSDocComment(zs.comment);ys&&e.setSyntheticLeadingComments(xs,[{kind:3,text:`*
* `+ys.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Kr.valueDeclaration&&e.setCommentRange(xs,Kr.valueDeclaration);return xs}}function U(Kr,Dr,yn){if(e.some(Kr)){if(a(Dr))if(yn){if(Kr.length>2)return[o(Kr[0],Dr),e.factory.createTypeReferenceNode("... ".concat(Kr.length-2," more ..."),void 0),o(Kr[Kr.length-1],Dr)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var on=!(Dr.flags&64),jn=on?e.createUnderscoreEscapedMultiMap():void 0,Tn=[],Fn=0,Qr=0,at=Kr;Qr<at.length;Qr++){var Ft=at[Qr];if(Fn++,a(Dr)&&Fn+2<Kr.length-1){Tn.push(e.factory.createTypeReferenceNode("... ".concat(Kr.length-Fn," more ..."),void 0));var Vt=o(Kr[Kr.length-1],Dr);Vt&&Tn.push(Vt);break}Dr.approximateLength+=2;var Qt=o(Ft,Dr);Qt&&(Tn.push(Qt),jn&&e.isIdentifierTypeReference(Qt)&&jn.add(Qt.typeName.escapedText,[Ft,Tn.length-1]))}if(jn){var gn=Dr.flags;Dr.flags|=64,jn.forEach(function(Sa){if(!e.arrayIsHomogeneous(Sa,function(Vo,so){var xs=Vo[0],ds=so[0];return fe(xs,ds)}))for(var ga=0,za=Sa;ga<za.length;ga++){var Hi=za[ga],Ya=Hi[0],yo=Hi[1];Tn[yo]=o(Ya,Dr)}}),Dr.flags=gn}return Tn}}function fe(Kr,Dr){return Kr===Dr||!!Kr.symbol&&Kr.symbol===Dr.symbol||!!Kr.aliasSymbol&&Kr.aliasSymbol===Dr.aliasSymbol}function Oe(Kr,Dr,yn){var on=e.getNameFromIndexInfo(Kr)||"x",jn=o(Kr.keyType,Dr),Tn=e.factory.createParameterDeclaration(void 0,void 0,void 0,on,void 0,jn,void 0);return yn||(yn=o(Kr.type||ke,Dr)),!Kr.type&&!(Dr.flags&2097152)&&(Dr.encounteredError=!0),Dr.approximateLength+=on.length+4,e.factory.createIndexSignature(void 0,Kr.isReadonly?[e.factory.createToken(144)]:void 0,[Tn],yn)}function je(Kr,Dr,yn,on){var jn,Tn,Fn,Qr,at=yn.flags&256;at&&(yn.flags&=-257),yn.approximateLength+=3;var Ft,Vt;yn.flags&32&&Kr.target&&Kr.mapper&&Kr.target.typeParameters?Vt=Kr.target.typeParameters.map(function(zs){return o(ci(zs,Kr.mapper),yn)}):Ft=Kr.typeParameters&&Kr.typeParameters.map(function(zs){return tr(zs,yn)});var Qt=Vy(Kr,!0)[0],gn=(e.some(Qt,function(zs){return zs!==Qt[Qt.length-1]&&!!(e.getCheckFlags(zs)&32768)})?Kr.parameters:Qt).map(function(zs){return _r(zs,yn,Dr===170,on==null?void 0:on.privateSymbolVisitor,on==null?void 0:on.bundledImports)});if(Kr.thisParameter){var Sa=_r(Kr.thisParameter,yn);gn.unshift(Sa)}var ga,za=Cc(Kr);if(za){var Hi=za.kind===2||za.kind===3?e.factory.createToken(128):void 0,Ya=za.kind===1||za.kind===3?e.setEmitFlags(e.factory.createIdentifier(za.parameterName),16777216):e.factory.createThisTypeNode(),yo=za.type&&o(za.type,yn);ga=e.factory.createTypePredicateNode(Hi,Ya,yo)}else{var Vo=_o(Kr);Vo&&!(at&&wa(Vo))?ga=Di(yn,Vo,Kr,on==null?void 0:on.privateSymbolVisitor,on==null?void 0:on.bundledImports):at||(ga=e.factory.createKeywordTypeNode(130))}var so=on==null?void 0:on.modifiers;if(Dr===179&&Kr.flags&4){var xs=e.modifiersToFlags(so);so=e.factory.createModifiersFromModifierFlags(xs|128)}var ds=Dr===173?e.factory.createCallSignature(Ft,gn,ga):Dr===174?e.factory.createConstructSignature(Ft,gn,ga):Dr===167?e.factory.createMethodSignature(so,(jn=on==null?void 0:on.name)!==null&&jn!==void 0?jn:e.factory.createIdentifier(""),on==null?void 0:on.questionToken,Ft,gn,ga):Dr===168?e.factory.createMethodDeclaration(void 0,so,void 0,(Tn=on==null?void 0:on.name)!==null&&Tn!==void 0?Tn:e.factory.createIdentifier(""),void 0,Ft,gn,ga,void 0):Dr===170?e.factory.createConstructorDeclaration(void 0,so,gn,void 0):Dr===171?e.factory.createGetAccessorDeclaration(void 0,so,(Fn=on==null?void 0:on.name)!==null&&Fn!==void 0?Fn:e.factory.createIdentifier(""),gn,ga,void 0):Dr===172?e.factory.createSetAccessorDeclaration(void 0,so,(Qr=on==null?void 0:on.name)!==null&&Qr!==void 0?Qr:e.factory.createIdentifier(""),gn,void 0):Dr===175?e.factory.createIndexSignature(void 0,so,gn,ga):Dr===315?e.factory.createJSDocFunctionType(gn,ga):Dr===178?e.factory.createFunctionTypeNode(Ft,gn,ga!=null?ga:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Dr===179?e.factory.createConstructorTypeNode(so,Ft,gn,ga!=null?ga:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):Dr===255?e.factory.createFunctionDeclaration(void 0,so,void 0,on!=null&&on.name?e.cast(on.name,e.isIdentifier):e.factory.createIdentifier(""),Ft,gn,ga,void 0):Dr===212?e.factory.createFunctionExpression(so,void 0,on!=null&&on.name?e.cast(on.name,e.isIdentifier):e.factory.createIdentifier(""),Ft,gn,ga,e.factory.createBlock([])):Dr===213?e.factory.createArrowFunction(so,Ft,gn,ga,void 0,e.factory.createBlock([])):e.Debug.assertNever(Dr);return Vt&&(ds.typeArguments=e.factory.createNodeArray(Vt)),ds}function ze(Kr,Dr,yn){var on=Dr.flags;Dr.flags&=-513;var jn=_i(Kr,Dr),Tn=ee(Kr),Fn=Tn&&o(Tn,Dr);return Dr.flags=on,e.factory.createTypeParameterDeclaration(jn,yn,Fn)}function tr(Kr,Dr,yn){yn===void 0&&(yn=bl(Kr));var on=yn&&o(yn,Dr);return ze(Kr,Dr,on)}function _r(Kr,Dr,yn,on,jn){var Tn=e.getDeclarationOfKind(Kr,163);!Tn&&!e.isTransientSymbol(Kr)&&(Tn=e.getDeclarationOfKind(Kr,338));var Fn=En(Kr);Tn&&IN(Tn)&&(Fn=$f(Fn)),Dr.flags&1073741824&&Tn&&!e.isJSDocParameterTag(Tn)&&b7(Tn)&&(Fn=Us(Fn,524288));var Qr=Ba(Dr,Fn,Kr,Dr.enclosingDeclaration,on,jn),at=!(Dr.flags&8192)&&yn&&Tn&&Tn.modifiers?Tn.modifiers.map(e.factory.cloneNode):void 0,Ft=Tn&&e.isRestParameter(Tn)||e.getCheckFlags(Kr)&32768,Vt=Ft?e.factory.createToken(25):void 0,Qt=Tn&&Tn.name?Tn.name.kind===79?e.setEmitFlags(e.factory.cloneNode(Tn.name),16777216):Tn.name.kind===160?e.setEmitFlags(e.factory.cloneNode(Tn.name.right),16777216):za(Tn.name):e.symbolName(Kr),gn=Tn&&Vp(Tn)||e.getCheckFlags(Kr)&16384,Sa=gn?e.factory.createToken(57):void 0,ga=e.factory.createParameterDeclaration(void 0,at,Vt,Qt,Sa,Qr,void 0);return Dr.approximateLength+=e.symbolName(Kr).length+3,ga;function za(Hi){return Ya(Hi);function Ya(yo){Dr.tracker.trackSymbol&&e.isComputedPropertyName(yo)&&dh(yo)&&Vr(yo.expression,Dr.enclosingDeclaration,Dr);var Vo=e.visitEachChild(yo,Ya,e.nullTransformationContext,void 0,Ya);return e.isBindingElement(Vo)&&(Vo=e.factory.updateBindingElement(Vo,Vo.dotDotDotToken,Vo.propertyName,Vo.name,void 0)),e.nodeIsSynthesized(Vo)||(Vo=e.factory.cloneNode(Vo)),e.setEmitFlags(Vo,16777217)}}}function Vr(Kr,Dr,yn){if(!!yn.tracker.trackSymbol){var on=e.getFirstIdentifier(Kr),jn=Ho(on,on.escapedText,1160127,void 0,void 0,!0);jn&&yn.tracker.trackSymbol(jn,Dr,111551)}}function $r(Kr,Dr,yn,on){return Dr.tracker.trackSymbol(Kr,Dr.enclosingDeclaration,yn),Tt(Kr,Dr,yn,on)}function Tt(Kr,Dr,yn,on){var jn,Tn=Kr.flags&262144;return!Tn&&(Dr.enclosingDeclaration||Dr.flags&64)&&!(Dr.flags&134217728)?(jn=e.Debug.checkDefined(Fn(Kr,yn,!0)),e.Debug.assert(jn&&jn.length>0)):jn=[Kr],jn;function Fn(Qr,at,Ft){var Vt=Vf(Qr,Dr.enclosingDeclaration,at,!!(Dr.flags&128)),Qt;if(!Vt||vd(Vt[0],Dr.enclosingDeclaration,Vt.length===1?at:eu(at))){var gn=Qd(Vt?Vt[0]:Qr,Dr.enclosingDeclaration,at);if(e.length(gn)){Qt=gn.map(function(so){return e.some(so.declarations,Jl)?In(so,Dr):void 0});var Sa=gn.map(function(so,xs){return xs});Sa.sort(Vo);for(var ga=Sa.map(function(so){return gn[so]}),za=0,Hi=ga;za<Hi.length;za++){var Ya=Hi[za],yo=Fn(Ya,eu(at),!1);if(yo){if(Ya.exports&&Ya.exports.get("export=")&&Hl(Ya.exports.get("export="),Qr)){Vt=yo;break}Vt=yo.concat(Vt||[gd(Ya,Qr)||Qr]);break}}}}if(Vt)return Vt;if(Ft||!(Qr.flags&6144))return!Ft&&!on&&!!e.forEach(Qr.declarations,Jl)?void 0:[Qr];function Vo(so,xs){var ds=Qt[so],zs=Qt[xs];if(ds&&zs){var ys=e.pathIsRelative(zs);return e.pathIsRelative(ds)===ys?e.moduleSpecifiers.countPathComponents(ds)-e.moduleSpecifiers.countPathComponents(zs):ys?-1:1}return 0}}}function St(Kr,Dr){var yn,on=Um(Kr);return on.flags&524384&&(yn=e.factory.createNodeArray(e.map(Ef(Kr),function(jn){return tr(jn,Dr)}))),yn}function It(Kr,Dr,yn){var on;e.Debug.assert(Kr&&0<=Dr&&Dr<Kr.length);var jn=Kr[Dr],Tn=d(jn);if(!(!((on=yn.typeParameterSymbolList)===null||on===void 0)&&on.has(Tn))){(yn.typeParameterSymbolList||(yn.typeParameterSymbolList=new e.Set)).add(Tn);var Fn;if(yn.flags&512&&Dr<Kr.length-1){var Qr=jn,at=Kr[Dr+1];if(e.getCheckFlags(at)&1){var Ft=sh(Qr.flags&2097152?Go(Qr):Qr);Fn=U(e.map(Ft,function(Vt){return dp(Vt,at.mapper)}),yn)}else Fn=St(jn,yn)}return Fn}}function jt(Kr){return e.isIndexedAccessTypeNode(Kr.objectType)?jt(Kr.objectType):Kr}function In(Kr,Dr){var yn,on=e.getDeclarationOfKind(Kr,303);if(!on){var jn=e.firstDefined(Kr.declarations,function(za){return _f(za,Kr)});jn&&(on=e.getDeclarationOfKind(jn,303))}if(on&&on.moduleName!==void 0)return on.moduleName;if(!on){if(Dr.tracker.trackReferencedAmbientModule){var Tn=e.filter(Kr.declarations,e.isAmbientModule);if(e.length(Tn))for(var Fn=0,Qr=Tn;Fn<Qr.length;Fn++){var at=Qr[Fn];Dr.tracker.trackReferencedAmbientModule(at,Kr)}}if(n.test(Kr.escapedName))return Kr.escapedName.substring(1,Kr.escapedName.length-1)}if(!Dr.enclosingDeclaration||!Dr.tracker.moduleResolverHost)return n.test(Kr.escapedName)?Kr.escapedName.substring(1,Kr.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(Kr)).fileName;var Ft=e.getSourceFileOfNode(e.getOriginalNode(Dr.enclosingDeclaration)),Vt=Va(Kr),Qt=Vt.specifierCache&&Vt.specifierCache.get(Ft.path);if(!Qt){var gn=!!e.outFile(We),Sa=Dr.tracker.moduleResolverHost,ga=gn?kn(kn({},We),{baseUrl:Sa.getCommonSourceDirectory()}):We;Qt=e.first(e.moduleSpecifiers.getModuleSpecifiers(Kr,Yr,ga,Ft,Sa,{importModuleSpecifierPreference:gn?"non-relative":"project-relative",importModuleSpecifierEnding:gn?"minimal":void 0})),(yn=Vt.specifierCache)!==null&&yn!==void 0||(Vt.specifierCache=new e.Map),Vt.specifierCache.set(Ft.path,Qt)}return Qt}function sn(Kr){var Dr=e.factory.createIdentifier(e.unescapeLeadingUnderscores(Kr.escapedName));return Kr.parent?e.factory.createQualifiedName(sn(Kr.parent),Dr):Dr}function ua(Kr,Dr,yn,on){var jn=$r(Kr,Dr,yn,!(Dr.flags&16384)),Tn=yn===111551;if(e.some(jn[0].declarations,Jl)){var Fn=jn.length>1?za(jn,jn.length-1,1):void 0,Qr=on||It(jn,0,Dr),at=In(jn[0],Dr);!(Dr.flags&67108864)&&e.getEmitModuleResolutionKind(We)!==e.ModuleResolutionKind.Classic&&at.indexOf("/node_modules/")>=0&&(Dr.encounteredError=!0,Dr.tracker.reportLikelyUnsafeImportRequiredError&&Dr.tracker.reportLikelyUnsafeImportRequiredError(at));var Ft=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(at));if(Dr.tracker.trackExternalModuleSymbolOfImportTypeNode&&Dr.tracker.trackExternalModuleSymbolOfImportTypeNode(jn[0]),Dr.approximateLength+=at.length+10,!Fn||e.isEntityName(Fn)){if(Fn){var Vt=e.isIdentifier(Fn)?Fn:Fn.right;Vt.typeArguments=void 0}return e.factory.createImportTypeNode(Ft,Fn,Qr,Tn)}else{var Qt=jt(Fn),gn=Qt.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(Ft,gn,Qr,Tn),Qt.indexType)}}var Sa=za(jn,jn.length-1,0);if(e.isIndexedAccessTypeNode(Sa))return Sa;if(Tn)return e.factory.createTypeQueryNode(Sa);var Vt=e.isIdentifier(Sa)?Sa:Sa.right,ga=Vt.typeArguments;return Vt.typeArguments=void 0,e.factory.createTypeReferenceNode(Sa,ga);function za(Hi,Ya,yo){var Vo=Ya===Hi.length-1?on:It(Hi,Ya,Dr),so=Hi[Ya],xs=Hi[Ya-1],ds;if(Ya===0)Dr.flags|=16777216,ds=tu(so,Dr),Dr.approximateLength+=(ds?ds.length:0)+1,Dr.flags^=16777216;else if(xs&&il(xs)){var zs=il(xs);e.forEachEntry(zs,function(Is,Rd){if(Hl(Is,so)&&!y_(Rd)&&Rd!=="export=")return ds=e.unescapeLeadingUnderscores(Rd),!0})}if(ds||(ds=tu(so,Dr)),Dr.approximateLength+=ds.length+1,!(Dr.flags&16)&&xs&&Tf(xs)&&Tf(xs).get(so.escapedName)&&Hl(Tf(xs).get(so.escapedName),so)){var ys=za(Hi,Ya-1,yo);return e.isIndexedAccessTypeNode(ys)?e.factory.createIndexedAccessTypeNode(ys,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ds))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(ys,Vo),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(ds)))}var ad=e.setEmitFlags(e.factory.createIdentifier(ds,Vo),16777216);if(ad.symbol=so,Ya>yo){var ys=za(Hi,Ya-1,yo);return e.isEntityName(ys)?e.factory.createQualifiedName(ys,ad):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ad}}function la(Kr,Dr,yn){var on=Ho(Dr.enclosingDeclaration,Kr,788968,void 0,Kr,!1);return on?!(on.flags&262144&&on===yn.symbol):!1}function _i(Kr,Dr){var yn,on;if(Dr.flags&4&&Dr.typeParameterNames){var jn=Dr.typeParameterNames.get(jc(Kr));if(jn)return jn}var Tn=ka(Kr.symbol,Dr,788968,!0);if(!(Tn.kind&79))return e.factory.createIdentifier("(Missing type parameter)");if(Dr.flags&4){for(var Fn=Tn.escapedText,Qr=((yn=Dr.typeParameterNamesByTextNextNameCount)===null||yn===void 0?void 0:yn.get(Fn))||0,at=Fn;((on=Dr.typeParameterNamesByText)===null||on===void 0?void 0:on.has(at))||la(at,Dr,Kr);)Qr++,at="".concat(Fn,"_").concat(Qr);at!==Fn&&(Tn=e.factory.createIdentifier(at,Tn.typeArguments)),(Dr.typeParameterNamesByTextNextNameCount||(Dr.typeParameterNamesByTextNextNameCount=new e.Map)).set(Fn,Qr),(Dr.typeParameterNames||(Dr.typeParameterNames=new e.Map)).set(jc(Kr),Tn),(Dr.typeParameterNamesByText||(Dr.typeParameterNamesByText=new e.Set)).add(Fn)}return Tn}function ka(Kr,Dr,yn,on){var jn=$r(Kr,Dr,yn);return on&&jn.length!==1&&!Dr.encounteredError&&!(Dr.flags&65536)&&(Dr.encounteredError=!0),Tn(jn,jn.length-1);function Tn(Fn,Qr){var at=It(Fn,Qr,Dr),Ft=Fn[Qr];Qr===0&&(Dr.flags|=16777216);var Vt=tu(Ft,Dr);Qr===0&&(Dr.flags^=16777216);var Qt=e.setEmitFlags(e.factory.createIdentifier(Vt,at),16777216);return Qt.symbol=Ft,Qr>0?e.factory.createQualifiedName(Tn(Fn,Qr-1),Qt):Qt}}function xi(Kr,Dr,yn){var on=$r(Kr,Dr,yn);return jn(on,on.length-1);function jn(Tn,Fn){var Qr=It(Tn,Fn,Dr),at=Tn[Fn];Fn===0&&(Dr.flags|=16777216);var Ft=tu(at,Dr);Fn===0&&(Dr.flags^=16777216);var Vt=Ft.charCodeAt(0);if(e.isSingleOrDoubleQuote(Vt)&&e.some(at.declarations,Jl))return e.factory.createStringLiteral(In(at,Dr));var Qt=Vt===35?Ft.length>1&&e.isIdentifierStart(Ft.charCodeAt(1),Ne):e.isIdentifierStart(Vt,Ne);if(Fn===0||Qt){var gn=e.setEmitFlags(e.factory.createIdentifier(Ft,Qr),16777216);return gn.symbol=at,Fn>0?e.factory.createPropertyAccessExpression(jn(Tn,Fn-1),gn):gn}else{Vt===91&&(Ft=Ft.substring(1,Ft.length-1),Vt=Ft.charCodeAt(0));var Sa=void 0;return e.isSingleOrDoubleQuote(Vt)?Sa=e.factory.createStringLiteral(Ft.substring(1,Ft.length-1).replace(/\\./g,function(ga){return ga.substring(1)}),Vt===39):""+ +Ft===Ft&&(Sa=e.factory.createNumericLiteral(+Ft)),Sa||(Sa=e.setEmitFlags(e.factory.createIdentifier(Ft,Qr),16777216),Sa.symbol=at),e.factory.createElementAccessExpression(jn(Tn,Fn-1),Sa)}}}function Bi(Kr){var Dr=e.getNameOfDeclaration(Kr);return!!Dr&&e.isStringLiteral(Dr)}function Ii(Kr){var Dr=e.getNameOfDeclaration(Kr);return!!(Dr&&e.isStringLiteral(Dr)&&(Dr.singleQuote||!e.nodeIsSynthesized(Dr)&&e.startsWith(e.getTextOfNode(Dr,!1),"'")))}function Co(Kr,Dr){var yn=!!e.length(Kr.declarations)&&e.every(Kr.declarations,Ii),on=Ht(Kr,Dr,yn);if(on)return on;var jn=e.unescapeLeadingUnderscores(Kr.escapedName),Tn=!!e.length(Kr.declarations)&&e.every(Kr.declarations,Bi);return Gt(jn,Tn,yn)}function Ht(Kr,Dr,yn){var on=Va(Kr).nameType;if(on){if(on.flags&384){var jn=""+on.value;return!e.isIdentifierText(jn,e.getEmitScriptTarget(We))&&!rd(jn)?e.factory.createStringLiteral(jn,!!yn):rd(jn)&&e.startsWith(jn,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+jn)):Gt(jn)}if(on.flags&8192)return e.factory.createComputedPropertyName(xi(on.symbol,Dr,111551))}}function Gt(Kr,Dr,yn){return e.isIdentifierText(Kr,e.getEmitScriptTarget(We))?e.factory.createIdentifier(Kr):!Dr&&rd(Kr)&&+Kr>=0?e.factory.createNumericLiteral(+Kr):e.factory.createStringLiteral(Kr,!!yn)}function mn(Kr){var Dr=kn({},Kr);return Dr.typeParameterNames&&(Dr.typeParameterNames=new e.Map(Dr.typeParameterNames)),Dr.typeParameterNamesByText&&(Dr.typeParameterNamesByText=new e.Set(Dr.typeParameterNamesByText)),Dr.typeParameterSymbolList&&(Dr.typeParameterSymbolList=new e.Set(Dr.typeParameterSymbolList)),Dr.tracker=t(Dr,Dr.tracker),Dr}function Oa(Kr,Dr){return Kr.declarations&&e.find(Kr.declarations,function(yn){return!!e.getEffectiveTypeAnnotationNode(yn)&&(!Dr||!!e.findAncestor(yn,function(on){return on===Dr}))})}function Yn(Kr,Dr){return!(e.getObjectFlags(Dr)&4)||!e.isTypeReferenceNode(Kr)||e.length(Kr.typeArguments)>=uu(Dr.target.typeParameters)}function Ba(Kr,Dr,yn,on,jn,Tn){if(!Za(Dr)&&on){var Fn=Oa(yn,on);if(Fn&&!e.isFunctionLikeDeclaration(Fn)&&!e.isGetAccessorDeclaration(Fn)){var Qr=e.getEffectiveTypeAnnotationNode(Fn);if(xa(Qr)===Dr&&Yn(Qr,Dr)){var at=Hn(Kr,Qr,jn,Tn);if(at)return at}}}var Ft=Kr.flags;Dr.flags&8192&&Dr.symbol===yn&&(!Kr.enclosingDeclaration||e.some(yn.declarations,function(Qt){return e.getSourceFileOfNode(Qt)===e.getSourceFileOfNode(Kr.enclosingDeclaration)}))&&(Kr.flags|=1048576);var Vt=o(Dr,Kr);return Kr.flags=Ft,Vt}function Di(Kr,Dr,yn,on,jn){if(!Za(Dr)&&Kr.enclosingDeclaration){var Tn=yn.declaration&&e.getEffectiveReturnTypeNode(yn.declaration);if(!!e.findAncestor(Tn,function(Ft){return Ft===Kr.enclosingDeclaration})&&Tn){var Fn=xa(Tn),Qr=Fn.flags&262144&&Fn.isThisType?ci(Fn,yn.mapper):Fn;if(Qr===Dr&&Yn(Tn,Dr)){var at=Hn(Kr,Tn,on,jn);if(at)return at}}}return o(Dr,Kr)}function Pi(Kr,Dr,yn){var on,jn,Tn=!1,Fn=e.getFirstIdentifier(Kr);if(e.isInJSFile(Kr)&&(e.isExportsIdentifier(Fn)||e.isModuleExportsAccessExpression(Fn.parent)||e.isQualifiedName(Fn.parent)&&e.isModuleIdentifier(Fn.parent.left)&&e.isExportsIdentifier(Fn.parent.right)))return Tn=!0,{introducesError:Tn,node:Kr};var Qr=fs(Fn,67108863,!0,!0);if(Qr&&(Du(Qr,Dr.enclosingDeclaration,67108863,!1).accessibility!==0?Tn=!0:((jn=(on=Dr.tracker)===null||on===void 0?void 0:on.trackSymbol)===null||jn===void 0||jn.call(on,Qr,Dr.enclosingDeclaration,67108863),yn==null||yn(Qr)),e.isIdentifier(Kr))){var at=Qr.flags&262144?_i(vo(Qr),Dr):e.factory.cloneNode(Kr);return at.symbol=Qr,{introducesError:Tn,node:e.setEmitFlags(e.setOriginalNode(at,Kr),16777216)}}return{introducesError:Tn,node:Kr}}function Hn(Kr,Dr,yn,on){ae&&ae.throwIfCancellationRequested&&ae.throwIfCancellationRequested();var jn=!1,Tn=e.getSourceFileOfNode(Dr),Fn=e.visitNode(Dr,Qr);if(jn)return;return Fn===Dr?e.setTextRange(e.factory.cloneNode(Dr),Dr):Fn;function Qr(at){if(e.isJSDocAllType(at)||at.kind===317)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(at))return e.factory.createKeywordTypeNode(154);if(e.isJSDocNullableType(at))return e.factory.createUnionTypeNode([e.visitNode(at.type,Qr),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(at))return e.factory.createUnionTypeNode([e.visitNode(at.type,Qr),e.factory.createKeywordTypeNode(152)]);if(e.isJSDocNonNullableType(at))return e.visitNode(at.type,Qr);if(e.isJSDocVariadicType(at))return e.factory.createArrayTypeNode(e.visitNode(at.type,Qr));if(e.isJSDocTypeLiteral(at))return e.factory.createTypeLiteralNode(e.map(at.jsDocPropertyTags,function(Ya){var yo=e.isIdentifier(Ya.name)?Ya.name:Ya.name.right,Vo=na(xa(at),yo.escapedText),so=Vo&&Ya.typeExpression&&xa(Ya.typeExpression.type)!==Vo?o(Vo,Kr):void 0;return e.factory.createPropertySignature(void 0,yo,Ya.isBracketed||Ya.typeExpression&&e.isJSDocOptionalType(Ya.typeExpression.type)?e.factory.createToken(57):void 0,so||Ya.typeExpression&&e.visitNode(Ya.typeExpression.type,Qr)||e.factory.createKeywordTypeNode(130))}));if(e.isTypeReferenceNode(at)&&e.isIdentifier(at.typeName)&&at.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(130),at);if((e.isExpressionWithTypeArguments(at)||e.isTypeReferenceNode(at))&&e.isJSDocIndexSignature(at))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(at.typeArguments[0],Qr))],e.visitNode(at.typeArguments[1],Qr))]);if(e.isJSDocFunctionType(at))if(e.isJSDocConstructSignature(at)){var Ft;return e.factory.createConstructorTypeNode(at.modifiers,e.visitNodes(at.typeParameters,Qr),e.mapDefined(at.parameters,function(Ya,yo){return Ya.name&&e.isIdentifier(Ya.name)&&Ya.name.escapedText==="new"?(Ft=Ya.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,ga(Ya),za(Ya,yo),Ya.questionToken,e.visitNode(Ya.type,Qr),void 0)}),e.visitNode(Ft||at.type,Qr)||e.factory.createKeywordTypeNode(130))}else return e.factory.createFunctionTypeNode(e.visitNodes(at.typeParameters,Qr),e.map(at.parameters,function(Ya,yo){return e.factory.createParameterDeclaration(void 0,void 0,ga(Ya),za(Ya,yo),Ya.questionToken,e.visitNode(Ya.type,Qr),void 0)}),e.visitNode(at.type,Qr)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(at)&&e.isInJSDoc(at)&&(!Yn(at,xa(at))||VL(at)||cr===ug(at,788968,!0)))return e.setOriginalNode(o(xa(at),Kr),at);if(e.isLiteralImportTypeNode(at)){var Vt=Zn(at).resolvedSymbol;return e.isInJSDoc(at)&&Vt&&(!at.isTypeOf&&!(Vt.flags&788968)||!(e.length(at.typeArguments)>=uu(Ef(Vt))))?e.setOriginalNode(o(xa(at),Kr),at):e.factory.updateImportTypeNode(at,e.factory.updateLiteralTypeNode(at.argument,Hi(at,at.argument.literal)),at.qualifier,e.visitNodes(at.typeArguments,Qr,e.isTypeNode),at.isTypeOf)}if(e.isEntityName(at)||e.isEntityNameExpression(at)){var Qt=Pi(at,Kr,yn),gn=Qt.introducesError,Sa=Qt.node;if(jn=jn||gn,Sa!==at)return Sa}return Tn&&e.isTupleTypeNode(at)&&e.getLineAndCharacterOfPosition(Tn,at.pos).line===e.getLineAndCharacterOfPosition(Tn,at.end).line&&e.setEmitFlags(at,1),e.visitEachChild(at,Qr,e.nullTransformationContext);function ga(Ya){return Ya.dotDotDotToken||(Ya.type&&e.isJSDocVariadicType(Ya.type)?e.factory.createToken(25):void 0)}function za(Ya,yo){return Ya.name&&e.isIdentifier(Ya.name)&&Ya.name.escapedText==="this"?"this":ga(Ya)?"args":"arg".concat(yo)}function Hi(Ya,yo){if(on){if(Kr.tracker&&Kr.tracker.moduleResolverHost){var Vo=dS(Ya);if(Vo){var so=e.createGetCanonicalFileName(!!A.useCaseSensitiveFileNames),xs={getCanonicalFileName:so,getCurrentDirectory:function(){return Kr.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return Kr.tracker.moduleResolverHost.getCommonSourceDirectory()}},ds=e.getResolvedExternalModuleName(xs,Vo);return e.factory.createStringLiteral(ds)}}}else if(Kr.tracker&&Kr.tracker.trackExternalModuleSymbolOfImportTypeNode){var zs=bc(yo,yo,void 0);zs&&Kr.tracker.trackExternalModuleSymbolOfImportTypeNode(zs)}return yo}}}function Gi(Kr,Dr,yn){var on=yi(e.factory.createPropertyDeclaration,168,!0),jn=yi(function(it,un,oa,zn,aa){return e.factory.createPropertySignature(un,oa,zn,aa)},167,!1),Tn=Dr.enclosingDeclaration,Fn=[],Qr=new e.Set,at=[],Ft=Dr;Dr=kn(kn({},Ft),{usedSymbolNames:new e.Set(Ft.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:kn(kn({},Ft.tracker),{trackSymbol:function(it,un,oa){var zn=Du(it,un,oa,!1);if(zn.accessibility===0){var aa=Tt(it,Dr,oa);it.flags&4||ys(aa[0])}else if(Ft.tracker&&Ft.tracker.trackSymbol)return Ft.tracker.trackSymbol(it,un,oa);return!1}})}),Dr.tracker=t(Dr,Dr.tracker),e.forEachEntry(Kr,function(it,un){var oa=e.unescapeLeadingUnderscores(un);rs(it,oa)});var Vt=!yn,Qt=Kr.get("export=");return Qt&&Kr.size>1&&Qt.flags&2097152&&(Kr=e.createSymbolTable(),Kr.set("export=",Qt)),xs(Kr),Ya(Fn);function gn(it){return!!it&&it.kind===79}function Sa(it){return e.isVariableStatement(it)?e.filter(e.map(it.declarationList.declarations,e.getNameOfDeclaration),gn):e.filter([e.getNameOfDeclaration(it)],gn)}function ga(it){var un=e.find(it,e.isExportAssignment),oa=e.findIndex(it,e.isModuleDeclaration),zn=oa!==-1?it[oa]:void 0;if(zn&&un&&un.isExportEquals&&e.isIdentifier(un.expression)&&e.isIdentifier(zn.name)&&e.idText(zn.name)===e.idText(un.expression)&&zn.body&&e.isModuleBlock(zn.body)){var aa=e.filter(it,function(Wa){return!!(e.getEffectiveModifierFlags(Wa)&1)}),qa=zn.name,Ka=zn.body;if(e.length(aa)&&(zn=e.factory.updateModuleDeclaration(zn,zn.decorators,zn.modifiers,zn.name,Ka=e.factory.updateModuleBlock(Ka,e.factory.createNodeArray(Bt(Bt([],zn.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(aa,function(Wa){return Sa(Wa)}),function(Wa){return e.factory.createExportSpecifier(!1,void 0,Wa)})),void 0)],!1)))),it=Bt(Bt(Bt([],it.slice(0,oa),!0),[zn],!1),it.slice(oa+1),!0)),!e.find(it,function(Wa){return Wa!==zn&&e.nodeHasName(Wa,qa)})){Fn=[];var mi=!e.some(Ka.statements,function(Wa){return e.hasSyntacticModifier(Wa,1)||e.isExportAssignment(Wa)||e.isExportDeclaration(Wa)});e.forEach(Ka.statements,function(Wa){Is(Wa,mi?1:0)}),it=Bt(Bt([],e.filter(it,function(Wa){return Wa!==zn&&Wa!==un}),!0),Fn,!0)}}return it}function za(it){var un=e.filter(it,function(Ma){return e.isExportDeclaration(Ma)&&!Ma.moduleSpecifier&&!!Ma.exportClause&&e.isNamedExports(Ma.exportClause)});if(e.length(un)>1){var oa=e.filter(it,function(Ma){return!e.isExportDeclaration(Ma)||!!Ma.moduleSpecifier||!Ma.exportClause});it=Bt(Bt([],oa,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(un,function(Ma){return e.cast(Ma.exportClause,e.isNamedExports).elements})),void 0)],!1)}var zn=e.filter(it,function(Ma){return e.isExportDeclaration(Ma)&&!!Ma.moduleSpecifier&&!!Ma.exportClause&&e.isNamedExports(Ma.exportClause)});if(e.length(zn)>1){var aa=e.group(zn,function(Ma){return e.isStringLiteral(Ma.moduleSpecifier)?">"+Ma.moduleSpecifier.text:">"});if(aa.length!==zn.length)for(var qa=function(Ma){Ma.length>1&&(it=Bt(Bt([],e.filter(it,function(Xi){return Ma.indexOf(Xi)===-1}),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Ma,function(Xi){return e.cast(Xi.exportClause,e.isNamedExports).elements})),Ma[0].moduleSpecifier)],!1))},Ka=0,mi=aa;Ka<mi.length;Ka++){var Wa=mi[Ka];qa(Wa)}}return it}function Hi(it){var un=e.findIndex(it,function(aa){return e.isExportDeclaration(aa)&&!aa.moduleSpecifier&&!aa.assertClause&&!!aa.exportClause&&e.isNamedExports(aa.exportClause)});if(un>=0){var oa=it[un],zn=e.mapDefined(oa.exportClause.elements,function(aa){if(!aa.propertyName){var qa=e.indicesOf(it),Ka=e.filter(qa,function(Xi){return e.nodeHasName(it[Xi],aa.name)});if(e.length(Ka)&&e.every(Ka,function(Xi){return yo(it[Xi])})){for(var mi=0,Wa=Ka;mi<Wa.length;mi++){var Ma=Wa[mi];it[Ma]=Vo(it[Ma])}return}}return aa});e.length(zn)?it[un]=e.factory.updateExportDeclaration(oa,oa.decorators,oa.modifiers,oa.isTypeOnly,e.factory.updateNamedExports(oa.exportClause,zn),oa.moduleSpecifier,oa.assertClause):e.orderedRemoveItemAt(it,un)}return it}function Ya(it){return it=ga(it),it=za(it),it=Hi(it),Tn&&(e.isSourceFile(Tn)&&e.isExternalOrCommonJsModule(Tn)||e.isModuleDeclaration(Tn))&&(!e.some(it,e.isExternalModuleIndicator)||!e.hasScopeMarker(it)&&e.some(it,e.needsScopeMarker))&&it.push(e.createEmptyExports(e.factory)),it}function yo(it){return e.isEnumDeclaration(it)||e.isVariableStatement(it)||e.isFunctionDeclaration(it)||e.isClassDeclaration(it)||e.isModuleDeclaration(it)&&!e.isExternalModuleAugmentation(it)&&!e.isGlobalScopeAugmentation(it)||e.isInterfaceDeclaration(it)||_y(it)}function Vo(it){var un=(e.getEffectiveModifierFlags(it)|1)&-3;return e.factory.updateModifiers(it,un)}function so(it){var un=e.getEffectiveModifierFlags(it)&-2;return e.factory.updateModifiers(it,un)}function xs(it,un,oa){un||at.push(new e.Map),it.forEach(function(zn){ds(zn,!1,!!oa)}),un||(at[at.length-1].forEach(function(zn){ds(zn,!0,!!oa)}),at.pop())}function ds(it,un,oa){var zn=Ha(it);if(!Qr.has(d(zn))){Qr.add(d(zn));var aa=!un;if(aa||!!e.length(it.declarations)&&e.some(it.declarations,function(mi){return!!e.findAncestor(mi,function(Wa){return Wa===Tn})})){var qa=Dr;Dr=mn(Dr);var Ka=zs(it,un,oa);return Dr.reportedDiagnostic&&(Ft.reportedDiagnostic=Dr.reportedDiagnostic),Dr=qa,Ka}}}function zs(it,un,oa){var zn,aa,qa=e.unescapeLeadingUnderscores(it.escapedName),Ka=it.escapedName==="default";if(un&&!(Dr.flags&131072)&&e.isStringANonContextualKeyword(qa)&&!Ka){Dr.encounteredError=!0;return}var mi=Ka&&!!(it.flags&-113||it.flags&16&&e.length(ro(En(it))))&&!(it.flags&2097152),Wa=!mi&&!un&&e.isStringANonContextualKeyword(qa)&&!Ka;(mi||Wa)&&(un=!0);var Ma=(un?0:1)|(Ka&&!mi?512:0),Xi=it.flags&1536&&it.flags&7&&it.escapedName!=="export=",bo=Xi&&ni(En(it),it);if((it.flags&8208||bo)&&po(En(it),it,rs(it,qa),Ma),it.flags&524288&&Rd(it,qa,Ma),it.flags&7&&it.escapedName!=="export="&&!(it.flags&4194304)&&!(it.flags&32)&&!bo)if(oa){var is=qt(it);is&&(Wa=!1,mi=!1)}else{var Io=En(it),Ao=rs(it,qa);if(!(it.flags&16)&&ni(Io,it))po(Io,it,Ao,Ma);else{var ws=it.flags&2?Jh(it)?2:1:void 0,El=mi||!(it.flags&4)?Ao:no(Ao,it),Ns=it.declarations&&e.find(it.declarations,function(Wm){return e.isVariableDeclaration(Wm)});Ns&&e.isVariableDeclarationList(Ns.parent)&&Ns.parent.declarations.length===1&&(Ns=Ns.parent.parent);var Nc=(zn=it.declarations)===null||zn===void 0?void 0:zn.find(e.isPropertyAccessExpression);if(Nc&&e.isBinaryExpression(Nc.parent)&&e.isIdentifier(Nc.parent.right)&&((aa=Io.symbol)===null||aa===void 0?void 0:aa.valueDeclaration)&&e.isSourceFile(Io.symbol.valueDeclaration)){var am=Ao===Nc.parent.right.escapedText?void 0:Nc.parent.right;Is(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,am,Ao)])),0),Dr.tracker.trackSymbol(Io.symbol,Dr.enclosingDeclaration,111551)}else{var w_=e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(El,void 0,Ba(Dr,Io,it,Tn,ys,yn))],ws)),Ns);Is(w_,El!==Ao?Ma&-2:Ma),El!==Ao&&!un&&(Is(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,El,Ao)])),0),Wa=!1,mi=!1)}}}if(it.flags&384&&qo(it,qa,Ma),it.flags&32&&(it.flags&4&&it.valueDeclaration&&e.isBinaryExpression(it.valueDeclaration.parent)&&e.isClassExpression(it.valueDeclaration.parent.right)?Vn(it,rs(it,qa),Ma):rn(it,rs(it,qa),Ma)),(it.flags&1536&&(!Xi||Ua(it))||bo)&&wi(it,qa,Ma),it.flags&64&&!(it.flags&32)&&Pv(it,qa,Ma),it.flags&2097152&&Vn(it,rs(it,qa),Ma),it.flags&4&&it.escapedName==="export="&&qt(it),it.flags&8388608&&it.declarations)for(var wd=0,r_=it.declarations;wd<r_.length;wd++){var t_=r_[wd],Md=Ys(t_,t_.moduleSpecifier);!Md||Is(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(In(Md,Dr))),0)}mi?Is(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(rs(it,qa))),0):Wa&&Is(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,rs(it,qa),qa)])),0)}function ys(it){if(!e.some(it.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(at[at.length-1]),no(e.unescapeLeadingUnderscores(it.escapedName),it);var un=!!(it.flags&2097152)&&!e.some(it.declarations,function(oa){return!!e.findAncestor(oa,e.isExportDeclaration)||e.isNamespaceExport(oa)||e.isImportEqualsDeclaration(oa)&&!e.isExternalModuleReference(oa.moduleReference)});at[un?0:at.length-1].set(d(it),it)}}function ad(it){return e.isSourceFile(it)&&(e.isExternalOrCommonJsModule(it)||e.isJsonSourceFile(it))||e.isAmbientModule(it)&&!e.isGlobalScopeAugmentation(it)}function Is(it,un){if(e.canHaveModifiers(it)){var oa=0,zn=Dr.enclosingDeclaration&&(e.isJSDocTypeAlias(Dr.enclosingDeclaration)?e.getSourceFileOfNode(Dr.enclosingDeclaration):Dr.enclosingDeclaration);un&1&&zn&&(ad(zn)||e.isModuleDeclaration(zn))&&yo(it)&&(oa|=1),Vt&&!(oa&1)&&(!zn||!(zn.flags&8388608))&&(e.isEnumDeclaration(it)||e.isVariableStatement(it)||e.isFunctionDeclaration(it)||e.isClassDeclaration(it)||e.isModuleDeclaration(it))&&(oa|=2),un&512&&(e.isClassDeclaration(it)||e.isInterfaceDeclaration(it)||e.isFunctionDeclaration(it))&&(oa|=512),oa&&(it=e.factory.updateModifiers(it,oa|e.getEffectiveModifierFlags(it)))}Fn.push(it)}function Rd(it,un,oa){var zn,aa=Aa(it),qa=Va(it).typeParameters,Ka=e.map(qa,function(is){return tr(is,Dr)}),mi=(zn=it.declarations)===null||zn===void 0?void 0:zn.find(e.isJSDocTypeAlias),Wa=e.getTextOfJSDocComment(mi?mi.comment||mi.parent.comment:void 0),Ma=Dr.flags;Dr.flags|=8388608;var Xi=Dr.enclosingDeclaration;Dr.enclosingDeclaration=mi;var bo=mi&&mi.typeExpression&&e.isJSDocTypeExpression(mi.typeExpression)&&Hn(Dr,mi.typeExpression.type,ys,yn)||o(aa,Dr);Is(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,rs(it,un),Ka,bo),Wa?[{kind:3,text:`*
* `+Wa.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),oa),Dr.flags=Ma,Dr.enclosingDeclaration=Xi}function Pv(it,un,oa){var zn=Kn(it),aa=Ef(it),qa=e.map(aa,function(Io){return tr(Io,Dr)}),Ka=Gs(zn),mi=e.length(Ka)?To(Ka):void 0,Wa=e.flatMap(ro(zn),function(Io){return ai(Io,mi)}),Ma=uo(0,zn,mi,173),Xi=uo(1,zn,mi,174),bo=ji(zn,mi),is=e.length(Ka)?[e.factory.createHeritageClause(94,e.mapDefined(Ka,function(Io){return ps(Io,111551)}))]:void 0;Is(e.factory.createInterfaceDeclaration(void 0,void 0,rs(it,un),qa,is,Bt(Bt(Bt(Bt([],bo,!0),Xi,!0),Ma,!0),Wa,!0)),oa)}function Fv(it){return it.exports?e.filter(e.arrayFrom(it.exports.values()),ct):[]}function Ua(it){return e.every(Fv(it),function(un){return!(wo(un).flags&111551)})}function wi(it,un,oa){var zn=Fv(it),aa=e.arrayToMultiMap(zn,function(Xi){return Xi.parent&&Xi.parent===it?"real":"merged"}),qa=aa.get("real")||e.emptyArray,Ka=aa.get("merged")||e.emptyArray;if(e.length(qa)){var mi=rs(it,un);qr(qa,mi,oa,!!(it.flags&67108880))}if(e.length(Ka)){var Wa=e.getSourceFileOfNode(Dr.enclosingDeclaration),mi=rs(it,un),Ma=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(Ka,function(bo){return bo.escapedName!=="export="}),function(bo){var is,Io,Ao=e.unescapeLeadingUnderscores(bo.escapedName),ws=rs(bo,Ao),El=bo.declarations&&ec(bo);if(Wa&&(El?Wa!==e.getSourceFileOfNode(El):!e.some(bo.declarations,function(am){return e.getSourceFileOfNode(am)===Wa}))){(Io=(is=Dr.tracker)===null||is===void 0?void 0:is.reportNonlocalAugmentation)===null||Io===void 0||Io.call(is,Wa,it,bo);return}var Ns=El&&Zi(El,!0);ys(Ns||bo);var Nc=Ns?rs(Ns,e.unescapeLeadingUnderscores(Ns.escapedName)):ws;return e.factory.createExportSpecifier(!1,Ao===Nc?void 0:Nc,Ao)})))]);Is(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(mi),Ma,16),0)}}function qo(it,un,oa){Is(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(PT(it)?2048:0),rs(it,un),e.map(e.filter(ro(En(it)),function(zn){return!!(zn.flags&8)}),function(zn){var aa=zn.declarations&&zn.declarations[0]&&e.isEnumMember(zn.declarations[0])?cS(zn.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(zn.escapedName),aa===void 0?void 0:typeof aa=="string"?e.factory.createStringLiteral(aa):e.factory.createNumericLiteral(aa))})),oa)}function po(it,un,oa,zn){for(var aa=Li(it,0),qa=0,Ka=aa;qa<Ka.length;qa++){var mi=Ka[qa],Wa=je(mi,255,Dr,{name:e.factory.createIdentifier(oa),privateSymbolVisitor:ys,bundledImports:yn});Is(e.setTextRange(Wa,Ws(mi)),zn)}if(!(un.flags&1536&&!!un.exports&&!!un.exports.size)){var Ma=e.filter(ro(it),ct);qr(Ma,oa,zn,!0)}}function Ws(it){if(it.declaration&&it.declaration.parent){if(e.isBinaryExpression(it.declaration.parent)&&e.getAssignmentDeclarationKind(it.declaration.parent)===5)return it.declaration.parent;if(e.isVariableDeclaration(it.declaration.parent)&&it.declaration.parent.parent)return it.declaration.parent.parent}return it.declaration}function qr(it,un,oa,zn){if(e.length(it)){var aa=e.arrayToMultiMap(it,function(Ao){return!e.length(Ao.declarations)||e.some(Ao.declarations,function(ws){return e.getSourceFileOfNode(ws)===e.getSourceFileOfNode(Dr.enclosingDeclaration)})?"local":"remote"}),qa=aa.get("local")||e.emptyArray,Ka=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(un),e.factory.createModuleBlock([]),16);e.setParent(Ka,Tn),Ka.locals=e.createSymbolTable(it),Ka.symbol=it[0].parent;var mi=Fn;Fn=[];var Wa=Vt;Vt=!1;var Ma=kn(kn({},Dr),{enclosingDeclaration:Ka}),Xi=Dr;Dr=Ma,xs(e.createSymbolTable(qa),zn,!0),Dr=Xi,Vt=Wa;var bo=Fn;Fn=mi;var is=e.map(bo,function(Ao){return e.isExportAssignment(Ao)&&!Ao.isExportEquals&&e.isIdentifier(Ao.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,Ao.expression,e.factory.createIdentifier("default"))])):Ao}),Io=e.every(is,function(Ao){return e.hasSyntacticModifier(Ao,1)})?e.map(is,so):is;Ka=e.factory.updateModuleDeclaration(Ka,Ka.decorators,Ka.modifiers,Ka.name,e.factory.createModuleBlock(Io)),Is(Ka,oa)}}function ct(it){return!!(it.flags&2887656)||!(it.flags&4194304||it.escapedName==="prototype"||it.valueDeclaration&&e.isStatic(it.valueDeclaration)&&e.isClassLike(it.valueDeclaration.parent))}function Rt(it){var un=e.mapDefined(it,function(oa){var zn,aa=Dr.enclosingDeclaration;Dr.enclosingDeclaration=oa;var qa=oa.expression;if(e.isEntityNameExpression(qa)){if(e.isIdentifier(qa)&&e.idText(qa)==="")return mi(void 0);var Ka=void 0;if(zn=Pi(qa,Dr,ys),Ka=zn.introducesError,qa=zn.node,Ka)return mi(void 0)}return mi(e.factory.createExpressionWithTypeArguments(qa,e.map(oa.typeArguments,function(Wa){return Hn(Dr,Wa,ys,yn)||o(xa(Wa),Dr)})));function mi(Wa){return Dr.enclosingDeclaration=aa,Wa}});if(un.length===it.length)return un}function rn(it,un,oa){var zn,aa,qa=(zn=it.declarations)===null||zn===void 0?void 0:zn.find(e.isClassLike),Ka=Dr.enclosingDeclaration;Dr.enclosingDeclaration=qa||Ka;var mi=Ef(it),Wa=e.map(mi,function(Yl){return tr(Yl,Dr)}),Ma=Kn(it),Xi=Gs(Ma),bo=qa&&e.getEffectiveImplementsTypeNodes(qa),is=bo&&Rt(bo)||e.mapDefined(lh(Ma),Xo),Io=En(it),Ao=!!(!((aa=Io.symbol)===null||aa===void 0)&&aa.valueDeclaration)&&e.isClassLike(Io.symbol.valueDeclaration),ws=Ao?Lu(Io):ke,El=Bt(Bt([],e.length(Xi)?[e.factory.createHeritageClause(94,e.map(Xi,function(Yl){return gs(Yl,ws,un)}))]:[],!0),e.length(is)?[e.factory.createHeritageClause(117,is)]:[],!0),Ns=m8(Ma,Xi,ro(Ma)),Nc=e.filter(Ns,function(Yl){var vp=Yl.valueDeclaration;return!!vp&&!(e.isNamedDeclaration(vp)&&e.isPrivateIdentifier(vp.name))}),am=e.some(Ns,function(Yl){var vp=Yl.valueDeclaration;return!!vp&&e.isNamedDeclaration(vp)&&e.isPrivateIdentifier(vp.name)}),w_=am?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,wd=e.flatMap(Nc,function(Yl){return on(Yl,!1,Xi[0])}),r_=e.flatMap(e.filter(ro(Io),function(Yl){return!(Yl.flags&4194304)&&Yl.escapedName!=="prototype"&&!ct(Yl)}),function(Yl){return on(Yl,!0,ws)}),t_=!Ao&&!!it.valueDeclaration&&e.isInJSFile(it.valueDeclaration)&&!e.some(Li(Io,1)),Md=t_?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:uo(1,Io,ws,170),Wm=ji(Ma,Xi[0]);Dr.enclosingDeclaration=Ka,Is(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,un,Wa,El,Bt(Bt(Bt(Bt(Bt([],Wm,!0),r_,!0),Md,!0),wd,!0),w_,!0)),it.declarations&&e.filter(it.declarations,function(Yl){return e.isClassDeclaration(Yl)||e.isClassExpression(Yl)})[0]),oa)}function ea(it){return e.firstDefined(it,function(un){if(e.isImportSpecifier(un)||e.isExportSpecifier(un))return e.idText(un.propertyName||un.name);if(e.isBinaryExpression(un)||e.isExportAssignment(un)){var oa=e.isExportAssignment(un)?un.expression:un.right;if(e.isPropertyAccessExpression(oa))return e.idText(oa.name)}if(ud(un)){var zn=e.getNameOfDeclaration(un);if(zn&&e.isIdentifier(zn))return e.idText(zn)}})}function Vn(it,un,oa){var zn,aa,qa,Ka,mi,Wa=ec(it);if(!Wa)return e.Debug.fail();var Ma=Ha(Zi(Wa,!0));if(!!Ma){var Xi=e.isShorthandAmbientModuleSymbol(Ma)&&ea(it.declarations)||e.unescapeLeadingUnderscores(Ma.escapedName);Xi==="export="&&(e.getESModuleInterop(We)||We.allowSyntheticDefaultImports)&&(Xi="default");var bo=rs(Ma,Xi);switch(ys(Ma),Wa.kind){case 202:if(((aa=(zn=Wa.parent)===null||zn===void 0?void 0:zn.parent)===null||aa===void 0?void 0:aa.kind)===253){var is=In(Ma.parent||Ma,Dr),Io=Wa.propertyName;Is(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,Io&&e.isIdentifier(Io)?e.factory.createIdentifier(e.idText(Io)):void 0,e.factory.createIdentifier(un))])),e.factory.createStringLiteral(is),void 0),0);break}e.Debug.failBadSyntaxKind(((qa=Wa.parent)===null||qa===void 0?void 0:qa.parent)||Wa,"Unhandled binding element grandparent kind in declaration serialization");break;case 295:((mi=(Ka=Wa.parent)===null||Ka===void 0?void 0:Ka.parent)===null||mi===void 0?void 0:mi.kind)===220&&Sn(e.unescapeLeadingUnderscores(it.escapedName),bo);break;case 253:if(e.isPropertyAccessExpression(Wa.initializer)){var Ao=Wa.initializer,ws=e.factory.createUniqueName(un),El=In(Ma.parent||Ma,Dr);Is(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,ws,e.factory.createExternalModuleReference(e.factory.createStringLiteral(El))),0),Is(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(un),e.factory.createQualifiedName(ws,Ao.name)),oa);break}case 264:if(Ma.escapedName==="export="&&e.some(Ma.declarations,e.isJsonSourceFile)){qt(it);break}var Ns=!(Ma.flags&512)&&!e.isVariableDeclaration(Wa);Is(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(un),Ns?ka(Ma,Dr,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(In(Ma,Dr)))),Ns?oa:0);break;case 263:Is(e.factory.createNamespaceExportDeclaration(e.idText(Wa.name)),0);break;case 266:Is(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(un),void 0),e.factory.createStringLiteral(In(Ma.parent||Ma,Dr)),void 0),0);break;case 267:Is(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(un))),e.factory.createStringLiteral(In(Ma,Dr)),void 0),0);break;case 273:Is(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(un)),e.factory.createStringLiteral(In(Ma,Dr))),0);break;case 269:Is(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,un!==Xi?e.factory.createIdentifier(Xi):void 0,e.factory.createIdentifier(un))])),e.factory.createStringLiteral(In(Ma.parent||Ma,Dr)),void 0),0);break;case 274:var Nc=Wa.parent.parent.moduleSpecifier;Sn(e.unescapeLeadingUnderscores(it.escapedName),Nc?Xi:bo,Nc&&e.isStringLiteralLike(Nc)?e.factory.createStringLiteral(Nc.text):void 0);break;case 270:qt(it);break;case 220:case 205:case 206:it.escapedName==="default"||it.escapedName==="export="?qt(it):Sn(un,bo);break;default:return e.Debug.failBadSyntaxKind(Wa,"Unhandled alias declaration kind in symbol serializer!")}}}function Sn(it,un,oa){Is(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,it!==un?un:void 0,it)]),oa),0)}function qt(it){if(it.flags&4194304)return!1;var un=e.unescapeLeadingUnderscores(it.escapedName),oa=un==="export=",zn=un==="default",aa=oa||zn,qa=it.declarations&&ec(it),Ka=qa&&Zi(qa,!0);if(Ka&&e.length(Ka.declarations)&&e.some(Ka.declarations,function(Ao){return e.getSourceFileOfNode(Ao)===e.getSourceFileOfNode(Tn)})){var mi=qa&&(e.isExportAssignment(qa)||e.isBinaryExpression(qa)?e.getExportAssignmentExpression(qa):e.getPropertyAssignmentAliasLikeExpression(qa)),Wa=mi&&e.isEntityNameExpression(mi)?x8(mi):void 0,Ma=Wa&&fs(Wa,67108863,!0,!0,Tn);(Ma||Ka)&&ys(Ma||Ka);var Xi=Dr.tracker.trackSymbol;if(Dr.tracker.trackSymbol=function(){return!1},aa)Fn.push(e.factory.createExportAssignment(void 0,void 0,oa,xi(Ka,Dr,67108863)));else if(Wa===mi&&Wa)Sn(un,e.idText(Wa));else if(mi&&e.isClassExpression(mi))Sn(un,rs(Ka,e.symbolName(Ka)));else{var bo=no(un,it);Is(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(bo),ka(Ka,Dr,67108863,!1)),0),Sn(un,bo)}return Dr.tracker.trackSymbol=Xi,!0}else{var bo=no(un,it),is=Gl(En(Ha(it)));if(ni(is,it))po(is,it,bo,aa?0:1);else{var Io=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(bo,void 0,Ba(Dr,is,it,Tn,ys,yn))],2));Is(Io,Ka&&Ka.flags&4&&Ka.escapedName==="export="?2:un===bo?1:0)}return aa?(Fn.push(e.factory.createExportAssignment(void 0,void 0,oa,e.factory.createIdentifier(bo))),!0):un!==bo?(Sn(un,bo),!0):!1}}function ni(it,un){var oa=e.getSourceFileOfNode(Dr.enclosingDeclaration);return e.getObjectFlags(it)&48&&!e.length(Bs(it))&&!Op(it)&&!!(e.length(e.filter(ro(it),ct))||e.length(Li(it,0)))&&!e.length(Li(it,1))&&!Oa(un,Tn)&&!(it.symbol&&e.some(it.symbol.declarations,function(zn){return e.getSourceFileOfNode(zn)!==oa}))&&!e.some(ro(it),function(zn){return y_(zn.escapedName)})&&!e.some(ro(it),function(zn){return e.some(zn.declarations,function(aa){return e.getSourceFileOfNode(aa)!==oa})})&&e.every(ro(it),function(zn){return e.isIdentifierText(e.symbolName(zn),Ne)})}function yi(it,un,oa){return function(aa,qa,Ka){var mi,Wa,Ma,Xi,bo,is=e.getDeclarationModifierFlagsFromSymbol(aa),Io=!!(is&8);if(qa&&aa.flags&2887656)return[];if(aa.flags&4194304||Ka&&pi(Ka,aa.escapedName)&&Gu(pi(Ka,aa.escapedName))===Gu(aa)&&(aa.flags&16777216)===(pi(Ka,aa.escapedName).flags&16777216)&&Qf(En(aa),na(Ka,aa.escapedName)))return[];var Ao=is&-257|(qa?32:0),ws=Co(aa,Dr),El=(mi=aa.declarations)===null||mi===void 0?void 0:mi.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(aa.flags&98304&&oa){var Ns=[];if(aa.flags&65536&&Ns.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ao),ws,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,Io?void 0:Ba(Dr,En(aa),aa,Tn,ys,yn))],void 0),((Wa=aa.declarations)===null||Wa===void 0?void 0:Wa.find(e.isSetAccessor))||El)),aa.flags&32768){var Nc=is&8;Ns.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Ao),ws,[],Nc?void 0:Ba(Dr,En(aa),aa,Tn,ys,yn),void 0),((Ma=aa.declarations)===null||Ma===void 0?void 0:Ma.find(e.isGetAccessor))||El))}return Ns}else if(aa.flags&98311)return e.setTextRange(it(void 0,e.factory.createModifiersFromModifierFlags((Gu(aa)?64:0)|Ao),ws,aa.flags&16777216?e.factory.createToken(57):void 0,Io?void 0:Ba(Dr,En(aa),aa,Tn,ys,yn),void 0),((Xi=aa.declarations)===null||Xi===void 0?void 0:Xi.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||El);if(aa.flags&8208){var am=En(aa),w_=Li(am,0);if(Ao&8)return e.setTextRange(it(void 0,e.factory.createModifiersFromModifierFlags((Gu(aa)?64:0)|Ao),ws,aa.flags&16777216?e.factory.createToken(57):void 0,void 0,void 0),((bo=aa.declarations)===null||bo===void 0?void 0:bo.find(e.isFunctionLikeDeclaration))||w_[0]&&w_[0].declaration||aa.declarations&&aa.declarations[0]);for(var wd=[],r_=0,t_=w_;r_<t_.length;r_++){var Md=t_[r_],Wm=je(Md,un,Dr,{name:ws,questionToken:aa.flags&16777216?e.factory.createToken(57):void 0,modifiers:Ao?e.factory.createModifiersFromModifierFlags(Ao):void 0}),Yl=Md.declaration&&e.isPrototypePropertyAssignment(Md.declaration.parent)?Md.declaration.parent:Md.declaration;wd.push(e.setTextRange(Wm,Yl))}return wd}return e.Debug.fail("Unhandled class member kind! ".concat(aa.__debugFlags||aa.flags))}}function ai(it,un){return jn(it,!1,un)}function uo(it,un,oa,zn){var aa=Li(un,it);if(it===1){if(!oa&&e.every(aa,function(Ns){return e.length(Ns.parameters)===0}))return[];if(oa){var qa=Li(oa,1);if(!e.length(qa)&&e.every(aa,function(Ns){return e.length(Ns.parameters)===0}))return[];if(qa.length===aa.length){for(var Ka=!1,mi=0;mi<qa.length;mi++)if(!Bh(aa[mi],qa[mi],!1,!1,!0,cv)){Ka=!0;break}if(!Ka)return[]}}for(var Wa=0,Ma=0,Xi=aa;Ma<Xi.length;Ma++){var bo=Xi[Ma];bo.declaration&&(Wa|=e.getSelectedEffectiveModifierFlags(bo.declaration,24))}if(Wa)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Wa),[],void 0),aa[0].declaration)]}for(var is=[],Io=0,Ao=aa;Io<Ao.length;Io++){var ws=Ao[Io],El=je(ws,zn,Dr);is.push(e.setTextRange(El,ws.declaration))}return is}function ji(it,un){for(var oa=[],zn=0,aa=Bs(it);zn<aa.length;zn++){var qa=aa[zn];if(un){var Ka=cu(un,qa.keyType);if(Ka&&Qf(qa.type,Ka.type))continue}oa.push(Oe(qa,Dr,void 0))}return oa}function gs(it,un,oa){var zn=ps(it,111551);if(zn)return zn;var aa=no("".concat(oa,"_base")),qa=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(aa,void 0,o(un,Dr))],2));return Is(qa,0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(aa),void 0)}function ps(it,un){var oa,zn;if(it.target&&Uc(it.target.symbol,Tn,un)?(oa=e.map(ho(it),function(aa){return o(aa,Dr)}),zn=xi(it.target.symbol,Dr,788968)):it.symbol&&Uc(it.symbol,Tn,un)&&(zn=xi(it.symbol,Dr,788968)),zn)return e.factory.createExpressionWithTypeArguments(zn,oa)}function Xo(it){var un=ps(it,788968);if(un)return un;if(it.symbol)return e.factory.createExpressionWithTypeArguments(xi(it.symbol,Dr,788968),void 0)}function no(it,un){var oa,zn,aa=un?d(un):void 0;if(aa&&Dr.remappedSymbolNames.has(aa))return Dr.remappedSymbolNames.get(aa);un&&(it=Ko(un,it));for(var qa=0,Ka=it;!((oa=Dr.usedSymbolNames)===null||oa===void 0)&&oa.has(it);)qa++,it="".concat(Ka,"_").concat(qa);return(zn=Dr.usedSymbolNames)===null||zn===void 0||zn.add(it),aa&&Dr.remappedSymbolNames.set(aa,it),it}function Ko(it,un){if(un==="default"||un==="__class"||un==="__function"){var oa=Dr.flags;Dr.flags|=16777216;var zn=tu(it,Dr);Dr.flags=oa,un=zn.length>0&&e.isSingleOrDoubleQuote(zn.charCodeAt(0))?e.stripQuotes(zn):zn}return un==="default"?un="_default":un==="export="&&(un="_exports"),un=e.isIdentifierText(un,Ne)&&!e.isStringANonContextualKeyword(un)?un:"_"+un.replace(/[^a-zA-Z0-9]/g,"_"),un}function rs(it,un){var oa=d(it);return Dr.remappedSymbolNames.has(oa)?Dr.remappedSymbolNames.get(oa):(un=Ko(it,un),Dr.remappedSymbolNames.set(oa,un),un)}}}function ru(r,t,a,o){return a===void 0&&(a=16384),o?s(o).getText():e.usingSingleLineStringWriter(s);function s(f){var N=e.factory.createTypePredicateNode(r.kind===2||r.kind===3?e.factory.createToken(128):void 0,r.kind===1||r.kind===3?e.factory.createIdentifier(r.parameterName):e.factory.createThisTypeNode(),r.type&&Cr.typeToTypeNode(r.type,t,kp(a)|70221824|512)),U=e.createPrinter({removeComments:!0}),fe=t&&e.getSourceFileOfNode(t);return U.writeNode(4,N,fe,f),f}}function Rp(r){for(var t=[],a=0,o=0;o<r.length;o++){var s=r[o];if(a|=s.flags,!(s.flags&98304)){if(s.flags&1536){var f=s.flags&512?ia:Hs(s);if(f.flags&1048576){var N=f.types.length;if(o+N<=r.length&&Ml(r[o+N-1])===Ml(f.types[N-1])){t.push(f),o+=N-1;continue}}}t.push(s)}}return a&65536&&t.push(Lt),a&32768&&t.push(Rr),t||r}function pc(r){return r===8?"private":r===16?"protected":"public"}function wp(r){if(r.symbol&&r.symbol.flags&2048&&r.symbol.declarations){var t=e.walkUpParenthesizedTypes(r.symbol.declarations[0].parent);if(t.kind===258)return xn(t)}}function nc(r){return r&&r.parent&&r.parent.kind===261&&e.isExternalModuleAugmentation(r.parent.parent)}function hf(r){return r.kind===303||e.isAmbientModule(r)}function Mp(r,t){var a=Va(r).nameType;if(a){if(a.flags&384){var o=""+a.value;return!e.isIdentifierText(o,e.getEmitScriptTarget(We))&&!rd(o)?'"'.concat(e.escapeString(o,34),'"'):rd(o)&&e.startsWith(o,"-")?"[".concat(o,"]"):o}if(a.flags&8192)return"[".concat(tu(a.symbol,t),"]")}}function tu(r,t){if(t&&r.escapedName==="default"&&!(t.flags&16384)&&(!(t.flags&16777216)||!r.declarations||t.enclosingDeclaration&&e.findAncestor(r.declarations[0],hf)!==e.findAncestor(t.enclosingDeclaration,hf)))return"default";if(r.declarations&&r.declarations.length){var a=e.firstDefined(r.declarations,function(U){return e.getNameOfDeclaration(U)?U:void 0}),o=a&&e.getNameOfDeclaration(a);if(a&&o){if(e.isCallExpression(a)&&e.isBindableObjectDefinePropertyCall(a))return e.symbolName(r);if(e.isComputedPropertyName(o)&&!(e.getCheckFlags(r)&4096)){var s=Va(r).nameType;if(s&&s.flags&384){var f=Mp(r,t);if(f!==void 0)return f}}return e.declarationNameToString(o)}if(a||(a=r.declarations[0]),a.parent&&a.parent.kind===253)return e.declarationNameToString(a.parent.name);switch(a.kind){case 225:case 212:case 213:return t&&!t.encounteredError&&!(t.flags&131072)&&(t.encounteredError=!0),a.kind===225?"(Anonymous class)":"(Anonymous function)"}}var N=Mp(r,t);return N!==void 0?N:e.symbolName(r)}function nu(r){if(r){var t=Zn(r);return t.isVisible===void 0&&(t.isVisible=!!a()),t.isVisible}return!1;function a(){switch(r.kind){case 336:case 343:case 337:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&e.isSourceFile(r.parent.parent.parent));case 202:return nu(r.parent.parent);case 253:if(e.isBindingPattern(r.name)&&!r.name.elements.length)return!1;case 260:case 256:case 257:case 258:case 255:case 259:case 264:if(e.isExternalModuleAugmentation(r))return!0;var o=ca(r);return!(e.getCombinedModifierFlags(r)&1)&&!(r.kind!==264&&o.kind!==303&&o.flags&8388608)?Pc(o):nu(o);case 166:case 165:case 171:case 172:case 168:case 167:if(e.hasEffectiveModifier(r,24))return!1;case 170:case 174:case 173:case 175:case 163:case 261:case 178:case 179:case 181:case 177:case 182:case 183:case 186:case 187:case 190:case 196:return nu(r.parent);case 266:case 267:case 269:return!1;case 162:case 303:case 263:return!0;case 270:return!1;default:return!1}}}function yd(r,t){var a;r.parent&&r.parent.kind===270?a=Ho(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===274&&(a=Bc(r.parent,2998271));var o,s;return a&&(s=new e.Set,s.add(d(a)),f(a.declarations)),o;function f(N){e.forEach(N,function(U){var fe=uc(U)||U;if(t?Zn(U).isVisible=!0:(o=o||[],e.pushIfUnique(o,fe)),e.isInternalModuleImportEqualsDeclaration(U)){var Oe=U.moduleReference,je=e.getFirstIdentifier(Oe),ze=Ho(U,je.escapedText,901119,void 0,void 0,!1);ze&&s&&e.tryAddToSet(s,d(ze))&&f(ze.declarations)}})}}function S(r,t){var a=Ze(r,t);if(a>=0){for(var o=Vl.length,s=a;s<o;s++)zc[s]=!1;return!1}return Vl.push(r),zc.push(!0),io.push(t),!0}function Ze(r,t){for(var a=Vl.length-1;a>=0;a--){if(nt(Vl[a],io[a]))return-1;if(Vl[a]===r&&io[a]===t)return a}return-1}function nt(r,t){switch(t){case 0:return!!Va(r).type;case 5:return!!Zn(r).resolvedEnumType;case 2:return!!Va(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved}return e.Debug.assertNever(t)}function wt(){return Vl.pop(),io.pop(),zc.pop()}function ca(r){return e.findAncestor(e.getRootDeclaration(r),function(t){switch(t.kind){case 253:case 254:case 269:case 268:case 267:case 266:return!1;default:return!0}}).parent}function Ga(r){var t=vo(Ls(r));return t.typeParameters?qf(t,e.map(t.typeParameters,function(a){return ke})):t}function na(r,t){var a=pi(r,t);return a?En(a):void 0}function si(r,t){var a;return na(r,t)||((a=Up(r,t))===null||a===void 0?void 0:a.type)||Be}function wa(r){return r&&(r.flags&1)!==0}function Za(r){return r===Qe||!!(r.flags&1&&r.aliasSymbol)}function Lo(r){var t=xn(r);return t&&Va(t).type||np(r,!1)}function ol(r,t,a){if(r=el(r,function(je){return!(je.flags&98304)}),r.flags&131072)return Qn;if(r.flags&1048576)return ms(r,function(je){return ol(je,t,a)});var o=ha(e.map(t,lp));if(z_(r)||q_(o)){if(o.flags&131072)return r;var s=HR();return s?cg(s,[r,o]):Qe}for(var f=e.createSymbolTable(),N=0,U=ro(r);N<U.length;N++){var fe=U[N];!$i(fg(fe,8576),o)&&!(e.getDeclarationModifierFlagsFromSymbol(fe)&24)&&cb(fe)&&f.set(fe.escapedName,r1(fe,!1))}var Oe=es(a,f,e.emptyArray,e.emptyArray,Bs(r));return Oe.objectFlags|=8388608,Oe}function As(r){return!!(r.flags&465829888)&&Jo(pl(r)||Be,32768)}function Ms(r){var t=Om(r,As)?ms(r,function(a){return a.flags&465829888?bm(a):a}):r;return Us(t,524288)}function gl(r,t){var a=au(r);return a?I_(a,t):t}function au(r){var t=iu(r);if(t&&t.flowNode){var a=ou(r);if(a){var o=e.setTextRange(e.parseNodeFactory.createStringLiteral(a),r),s=e.isLeftHandSideExpression(t)?t:e.parseNodeFactory.createParenthesizedExpression(t),f=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(s,o),r);return e.setParent(o,f),e.setParent(f,r),s!==t&&e.setParent(s,f),f.flowNode=t.flowNode,f}}}function iu(r){var t=r.parent.parent;switch(t.kind){case 202:case 294:return au(t);case 203:return au(r.parent);case 253:return t.initializer;case 220:return t.right}}function ou(r){var t=r.parent;return r.kind===202&&t.kind===200?yf(r.propertyName||r.name):r.kind===294||r.kind===295?yf(r.name):""+t.elements.indexOf(r)}function yf(r){var t=lp(r);return t.flags&384?""+t.value:void 0}function __(r){var t=r.parent,a=Lo(t.parent);if(!a||wa(a))return a;Er&&r.flags&8388608&&e.isParameterDeclaration(r)?a=Id(a):Er&&t.parent.initializer&&!(mp(NC(t.parent.initializer))&65536)&&(a=Us(a,524288));var o;if(t.kind===200)if(r.dotDotDotToken){if(a=to(a),a.flags&2||!Eg(a))return Br(r,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Qe;for(var s=[],f=0,N=t.elements;f<N.length;f++){var U=N[f];U.dotDotDotToken||s.push(U.propertyName||U.name)}o=ol(a,s,r.symbol)}else{var fe=r.propertyName||r.name,Oe=lp(fe),je=Xl(a,Oe,32,fe);o=gl(r,je)}else{var ze=Od(65|(r.dotDotDotToken?0:128),a,Rr,t),tr=t.elements.indexOf(r);if(r.dotDotDotToken)o=ed(a,ki)?ms(a,function(Vr){return av(Vr,tr)}):Js(ze);else if(_p(a)){var Oe=Yf(tr),_r=32|(bg(r)?16:0),je=cp(a,Oe,_r,r.name)||Qe;o=gl(r,je)}else o=ze}return r.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(r))?Er&&!(mc(ay(r))&32768)?Ms(o):o:GT(r,ha([Ms(o),ay(r)],2)):o}function Vc(r){var t=e.getJSDocType(r);if(t)return xa(t)}function m_(r){var t=e.skipParentheses(r,!0);return t.kind===104||t.kind===79&&wu(t)===He}function tp(r){var t=e.skipParentheses(r,!0);return t.kind===203&&t.elements.length===0}function ac(r,t,a){return t===void 0&&(t=!1),a===void 0&&(a=!0),Er&&a?$f(r,t):r}function np(r,t){if(e.isVariableDeclaration(r)&&r.parent.parent.kind===242){var a=Zu(_T(fi(r.parent.parent.expression)));return a.flags&4456448?mA(a):pt}if(e.isVariableDeclaration(r)&&r.parent.parent.kind===243){var o=r.parent.parent;return uy(o)||ke}if(e.isBindingPattern(r.parent))return __(r);var s=e.isPropertyDeclaration(r)||e.isPropertySignature(r),f=t&&(s&&!!r.questionToken||e.isParameter(r)&&(!!r.questionToken||ig(r))||og(r)),N=Fs(r);if(N)return ac(N,s,f);if((sr||e.isInJSFile(r))&&e.isVariableDeclaration(r)&&!e.isBindingPattern(r.name)&&!(e.getCombinedModifierFlags(r)&1)&&!(r.flags&8388608)){if(!(e.getCombinedNodeFlags(r)&2)&&(!r.initializer||m_(r.initializer)))return dr;if(r.initializer&&tp(r.initializer))return Ln}if(e.isParameter(r)){var U=r.parent;if(U.kind===172&&b_(U)){var fe=e.getDeclarationOfKind(xn(r.parent),171);if(fe){var Oe=Iu(fe),je=mS(U);return je&&r===je?(e.Debug.assert(!je.type),En(Oe.thisParameter)):_o(Oe)}}if(e.isInJSFile(r)){var ze=e.getJSDocType(U);if(ze&&e.isFunctionTypeNode(ze)){var tr=Iu(ze),_r=U.parameters.indexOf(r);return r.dotDotDotToken?Cg(tr,_r):Hc(tr,_r)}}var Vr=r.symbol.escapedName==="this"?XC(U):YC(r);if(Vr)return ac(Vr,!1,f)}if(e.hasOnlyExpressionInitializer(r)&&!!r.initializer){if(e.isInJSFile(r)&&!e.isParameter(r)){var $r=$n(r,xn(r),e.getDeclaredExpandoInitializer(r));if($r)return $r}var Vr=GT(r,ay(r));return ac(Vr,s,f)}if(e.isPropertyDeclaration(r)&&(sr||e.isInJSFile(r)))if(e.hasStaticModifier(r)){var St=e.filter(r.parent.members,e.isClassStaticBlockDeclaration),Vr=St.length?lt(r.symbol,St):e.getEffectiveModifierFlags(r)&2?hb(r.symbol):void 0;return Vr&&ac(Vr,!0,f)}else{var Tt=Vu(r.parent),Vr=Tt?xt(r.symbol,Tt):e.getEffectiveModifierFlags(r)&2?hb(r.symbol):void 0;return Vr&&ac(Vr,!0,f)}if(e.isJsxAttribute(r))return Pn;if(e.isBindingPattern(r.name))return Os(r.name,!1,!0)}function g_(r){if(r.valueDeclaration&&e.isBinaryExpression(r.valueDeclaration)){var t=Va(r);return t.isConstructorDeclaredProperty===void 0&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!br(r)&&e.every(r.declarations,function(a){return e.isBinaryExpression(a)&&Vb(a)&&(a.left.kind!==206||e.isStringOrNumericLiteralLike(a.left.argumentExpression))&&!La(void 0,a,r,a)})),t.isConstructorDeclaredProperty}return!1}function Ie(r){var t=r.valueDeclaration;return t&&e.isPropertyDeclaration(t)&&!e.getEffectiveTypeAnnotationNode(t)&&!t.initializer&&(sr||e.isInJSFile(t))}function br(r){if(!!r.declarations)for(var t=0,a=r.declarations;t<a.length;t++){var o=a[t],s=e.getThisContainer(o,!1);if(s&&(s.kind===170||_u(s)))return s}}function Ur(r){var t=e.getSourceFileOfNode(r.declarations[0]),a=e.unescapeLeadingUnderscores(r.escapedName),o=r.declarations.every(function(f){return e.isInJSFile(f)&&e.isAccessExpression(f)&&e.isModuleExportsAccessExpression(f.expression)}),s=o?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),a):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),a);return o&&e.setParent(s.expression.expression,s.expression),e.setParent(s.expression,s),e.setParent(s,t),s.flowNode=t.endFlowNode,I_(s,dr,Rr)}function lt(r,t){for(var a=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=0,s=t;o<s.length;o++){var f=s[o],N=e.factory.createPropertyAccessExpression(e.factory.createThis(),a);e.setParent(N.expression,N),e.setParent(N,f),N.flowNode=f.returnFlowNode;var U=Zt(N,r);if(sr&&(U===dr||U===Ln)&&Br(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ja(r),pn(U)),!ed(U,zb))return Ov(U)}}function xt(r,t){var a=e.startsWith(r.escapedName,"__#")?e.factory.createPrivateIdentifier(r.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(r.escapedName),o=e.factory.createPropertyAccessExpression(e.factory.createThis(),a);e.setParent(o.expression,o),e.setParent(o,t),o.flowNode=t.returnFlowNode;var s=Zt(o,r);return sr&&(s===dr||s===Ln)&&Br(r.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ja(r),pn(s)),ed(s,zb)?void 0:Ov(s)}function Zt(r,t){var a=(t==null?void 0:t.valueDeclaration)&&(!Ie(t)||e.getEffectiveModifierFlags(t.valueDeclaration)&2)&&hb(t)||Rr;return I_(r,dr,a)}function Rn(r,t){var a=e.getAssignedExpandoInitializer(r.valueDeclaration);if(a){var o=e.getJSDocTypeTag(a);if(o&&o.typeExpression)return xa(o.typeExpression);var s=r.valueDeclaration&&$n(r.valueDeclaration,r,a);return s||zp(Cs(a))}var f,N=!1,U=!1;if(g_(r)&&(f=xt(r,br(r))),!f){var fe=void 0;if(r.declarations){for(var Oe=void 0,je=0,ze=r.declarations;je<ze.length;je++){var tr=ze[je],_r=e.isBinaryExpression(tr)||e.isCallExpression(tr)?tr:e.isAccessExpression(tr)?e.isBinaryExpression(tr.parent)?tr.parent:tr:void 0;if(!!_r){var Vr=e.isAccessExpression(_r)?e.getAssignmentDeclarationPropertyAccessKind(_r):e.getAssignmentDeclarationKind(_r);(Vr===4||e.isBinaryExpression(_r)&&Vb(_r,Vr))&&(Qo(_r)?N=!0:U=!0),e.isCallExpression(_r)||(Oe=La(Oe,_r,r,tr)),Oe||(fe||(fe=[])).push(e.isBinaryExpression(_r)||e.isCallExpression(_r)?Da(r,t,_r,Vr):nn)}}f=Oe}if(!f){if(!e.length(fe))return Qe;var $r=N&&r.declarations?oo(fe,r.declarations):void 0;if(U){var Tt=hb(r);Tt&&(($r||($r=[])).push(Tt),N=!0)}var St=e.some($r,function(jt){return!!(jt.flags&-98305)})?$r:fe;f=ha(St,2)}}var It=Gl(ac(f,!1,U&&!N));return r.valueDeclaration&&el(It,function(jt){return!!(jt.flags&-98305)})===nn?(qp(r.valueDeclaration,ke),ke):It}function $n(r,t,a){var o,s;if(!(!e.isInJSFile(r)||!a||!e.isObjectLiteralExpression(a)||a.properties.length)){for(var f=e.createSymbolTable();e.isBinaryExpression(r)||e.isPropertyAccessExpression(r);){var N=xn(r);!((o=N==null?void 0:N.exports)===null||o===void 0)&&o.size&&Ll(f,N.exports),r=e.isBinaryExpression(r)?r.parent:r.parent.parent}var U=xn(r);!((s=U==null?void 0:U.exports)===null||s===void 0)&&s.size&&Ll(f,U.exports);var fe=es(t,f,e.emptyArray,e.emptyArray,e.emptyArray);return fe.objectFlags|=8192,fe}}function La(r,t,a,o){var s,f=e.getEffectiveTypeAnnotationNode(t.parent);if(f){var N=Gl(xa(f));if(r)!Za(r)&&!Za(N)&&!Qf(r,N)&&HI(void 0,r,o,N);else return N}if(!((s=a.parent)===null||s===void 0)&&s.valueDeclaration){var U=e.getEffectiveTypeAnnotationNode(a.parent.valueDeclaration);if(U){var fe=pi(xa(U),a.escapedName);if(fe)return Jf(fe)}}return r}function Da(r,t,a,o){if(e.isCallExpression(a)){if(t)return En(t);var s=Cs(a.arguments[2]),f=na(s,"value");if(f)return f;var N=na(s,"get");if(N){var U=em(N);if(U)return _o(U)}var fe=na(s,"set");if(fe){var Oe=em(fe);if(Oe)return NT(Oe)}return ke}if(zi(a.left,a.right))return ke;var je=t?En(t):zp(Cs(a.right));if(je.flags&524288&&o===2&&r.escapedName==="export="){var ze=Wc(je),tr=e.createSymbolTable();e.copyEntries(ze.members,tr);var _r=tr.size;t&&!t.exports&&(t.exports=e.createSymbolTable()),(t||r).exports.forEach(function($r,Tt){var St,It=tr.get(Tt);if(It&&It!==$r)if($r.flags&111551&&It.flags&111551){if($r.valueDeclaration&&It.valueDeclaration&&e.getSourceFileOfNode($r.valueDeclaration)!==e.getSourceFileOfNode(It.valueDeclaration)){var jt=e.unescapeLeadingUnderscores($r.escapedName),In=((St=e.tryCast(It.valueDeclaration,e.isNamedDeclaration))===null||St===void 0?void 0:St.name)||It.valueDeclaration;e.addRelatedInfo(Br($r.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,jt),e.createDiagnosticForNode(In,e.Diagnostics._0_was_also_declared_here,jt)),e.addRelatedInfo(Br(In,e.Diagnostics.Duplicate_identifier_0,jt),e.createDiagnosticForNode($r.valueDeclaration,e.Diagnostics._0_was_also_declared_here,jt))}var sn=co($r.flags|It.flags,Tt);sn.type=ha([En($r),En(It)]),sn.valueDeclaration=It.valueDeclaration,sn.declarations=e.concatenate(It.declarations,$r.declarations),tr.set(Tt,sn)}else tr.set(Tt,cs($r,It));else tr.set(Tt,$r)});var Vr=es(_r!==tr.size?void 0:ze.symbol,tr,ze.callSignatures,ze.constructSignatures,ze.indexInfos);return Vr.objectFlags|=e.getObjectFlags(je)&8192,Vr.symbol&&Vr.symbol.flags&32&&je===Kn(Vr.symbol)&&(Vr.objectFlags|=16777216),Vr}return S1(je)?(qp(a,Wt),Wt):je}function zi(r,t){return e.isPropertyAccessExpression(r)&&r.expression.kind===108&&e.forEachChildRecursively(t,function(a){return Ks(r,a)})}function Qo(r){var t=e.getThisContainer(r,!1);return t.kind===170||t.kind===255||t.kind===212&&!e.isPrototypePropertyAssignment(t.parent)}function oo(r,t){return e.Debug.assert(r.length===t.length),r.filter(function(a,o){var s=t[o],f=e.isBinaryExpression(s)?s:e.isBinaryExpression(s.parent)?s.parent:void 0;return f&&Qo(f)})}function Bo(r,t,a){if(r.initializer){var o=e.isBindingPattern(r.name)?Os(r.name,!0,!1):Be;return ac(GT(r,ay(r,o)))}return e.isBindingPattern(r.name)?Os(r.name,t,a):(a&&!bd(r)&&qp(r,ke),t?Jr:ke)}function vs(r,t,a){var o=e.createSymbolTable(),s,f=262272;e.forEach(r.elements,function(U){var fe=U.propertyName||U.name;if(U.dotDotDotToken){s=Nu(pt,ke,!1);return}var Oe=lp(fe);if(!Yu(Oe)){f|=512;return}var je=Au(Oe),ze=4|(U.initializer?16777216:0),tr=co(ze,je);tr.type=Bo(U,t,a),tr.bindingElement=U,o.set(tr.escapedName,tr)});var N=es(void 0,o,e.emptyArray,e.emptyArray,s?[s]:e.emptyArray);return N.objectFlags|=f,t&&(N.pattern=r,N.objectFlags|=262144),N}function sl(r,t,a){var o=r.elements,s=e.lastOrUndefined(o),f=s&&s.kind===202&&s.dotDotDotToken?s:void 0;if(o.length===0||o.length===1&&f)return Ne>=2?KR(ke):Wt;var N=e.map(o,function(je){return e.isOmittedExpression(je)?ke:Bo(je,t,a)}),U=e.findLastIndex(o,function(je){return!(je===f||e.isOmittedExpression(je)||bg(je))},o.length-1)+1,fe=e.map(o,function(je,ze){return je===f?4:ze>=U?2:1}),Oe=ku(N,fe);return t&&(Oe=RL(Oe),Oe.pattern=r,Oe.objectFlags|=262144),Oe}function Os(r,t,a){return t===void 0&&(t=!1),a===void 0&&(a=!1),r.kind===200?vs(r,t,a):sl(r,t,a)}function su(r,t){return Ku(np(r,!0),r,t)}function Ps(r){var t=xn(r),a=OR(!1);return a&&t&&t===a}function Ku(r,t,a){return r?(r.flags&4096&&Ps(t.parent)&&(r=n1(t)),a&&Ab(t,r),r.flags&8192&&(e.isBindingElement(t)||!t.type)&&r.symbol!==xn(t)&&(r=pa),Gl(r)):(r=e.isParameter(t)&&t.dotDotDotToken?Wt:ke,a&&(bd(t)||qp(t,r)),r)}function bd(r){var t=e.getRootDeclaration(r),a=t.kind===163?t.parent:t;return uE(a)}function Fs(r){var t=e.getEffectiveTypeAnnotationNode(r);if(t)return xa(t)}function Sc(r){var t=Va(r);if(!t.type){var a=Kl(r);t.type||(t.type=a)}return t.type}function Kl(r){if(r.flags&4194304)return Ga(r);if(r===Je)return ke;if(r.flags&134217728&&r.valueDeclaration){var t=xn(e.getSourceFileOfNode(r.valueDeclaration)),a=co(t.flags,"exports");a.declarations=t.declarations?t.declarations.slice():[],a.parent=r,a.target=t,t.valueDeclaration&&(a.valueDeclaration=t.valueDeclaration),t.members&&(a.members=new e.Map(t.members)),t.exports&&(a.exports=new e.Map(t.exports));var o=e.createSymbolTable();return o.set("exports",a),es(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(r.valueDeclaration);var s=r.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var f=e.getEffectiveTypeAnnotationNode(s);if(f===void 0)return Mr?Be:ke;var N=e_(f);return wa(N)||N===Be?N:Qe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Gl(zp(fi(s.statements[0].expression))):Qn;if(!S(r,0))return r.flags&512&&!(r.flags&67108864)?Xa(r):Pp(r);var U;if(s.kind===270)U=Ku(Fs(s)||Cs(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))U=Rn(r);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(r.flags&9136)return Xa(r);U=e.isBinaryExpression(s.parent)?Rn(r):Fs(s)||ke}else if(e.isPropertyAssignment(s))U=Fs(s)||bI(s);else if(e.isJsxAttribute(s))U=Fs(s)||ox(s);else if(e.isShorthandPropertyAssignment(s))U=Fs(s)||Ig(s.name,0);else if(e.isObjectLiteralMethod(s))U=Fs(s)||EI(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))U=su(s,!0);else if(e.isEnumDeclaration(s))U=Xa(r);else if(e.isEnumMember(s))U=Es(r);else if(e.isAccessor(s))U=Jt(r)||e.Debug.fail("Non-write accessor resolution must always produce a type");else return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(r));return wt()?U:r.flags&512&&!(r.flags&67108864)?Xa(r):Pp(r)}function zu(r){if(r)if(r.kind===171){var t=e.getEffectiveReturnTypeNode(r);return t}else{var a=e.getEffectiveSetAccessorTypeAnnotationNode(r);return a}}function zl(r){var t=zu(r);return t&&xa(t)}function v(r){var t=mS(r);return t&&t.symbol}function W(r){return E_(Iu(r))}function Ee(r){var t=Va(r);return t.type||(t.type=Wr(r)||e.Debug.fail("Read type of accessor must always produce a type"))}function er(r){var t=Va(r);return t.writeType||(t.writeType=Wr(r,!0))}function Wr(r,t){if(t===void 0&&(t=!1),!S(r,0))return Qe;var a=Jt(r,t);if(!wt()&&(a=ke,sr)){var o=e.getDeclarationOfKind(r,171);Br(o,e.Diagnostics._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,Ja(r))}return a}function Jt(r,t){t===void 0&&(t=!1);var a=e.getDeclarationOfKind(r,171),o=e.getDeclarationOfKind(r,172),s=zl(o);if(t&&s)return fe(s,r);if(a&&e.isInJSFile(a)){var f=Vc(a);if(f)return fe(f,r)}var N=zl(a);if(N)return fe(N,r);if(s)return s;if(a&&a.body){var U=oE(a);return fe(U,r)}if(o)return uE(o)||Nl(sr,o,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ja(r)),ke;if(a)return e.Debug.assert(!!a,"there must exist a getter as we are current checking either setter or getter in this function"),uE(a)||Nl(sr,a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ja(r)),ke;return;function fe(Oe,je){if(e.getCheckFlags(je)&1){var ze=Va(je);return ci(Oe,ze.mapper)}return Oe}}function ln(r){var t=Lu(Kn(r));return t.flags&8650752?t:t.flags&2097152?e.find(t.types,function(a){return!!(a.flags&8650752)}):void 0}function Xa(r){var t=Va(r),a=t;if(!t.type){var o=r.valueDeclaration&&nE(r.valueDeclaration,!1);if(o){var s=xT(r,o);s&&(r=t=s)}a.type=t.type=Uo(r)}return t.type}function Uo(r){var t=r.valueDeclaration;if(r.flags&1536&&e.isShorthandAmbientModuleSymbol(r))return ke;if(t&&(t.kind===220||e.isAccessExpression(t)&&t.parent.kind===220))return Rn(r);if(r.flags&512&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var a=_l(r);if(a!==r){if(!S(r,0))return Qe;var o=Ha(r.exports.get("export=")),s=Rn(o,o===a?void 0:a);return wt()?s:Pp(r)}}var f=ml(16,r);if(r.flags&32){var N=ln(r);return N?To([f,N]):f}else return Er&&r.flags&16777216?$f(f):f}function Es(r){var t=Va(r);return t.type||(t.type=ql(r))}function U_(r){var t=Va(r);if(!t.type){var a=Go(r),o=r.declarations&&Zi(ec(r),!0),s=e.firstDefined(o==null?void 0:o.declarations,function(f){return e.isExportAssignment(f)?Fs(f):void 0});t.type=(o==null?void 0:o.declarations)&&EE(o.declarations)&&r.declarations.length?Ur(o):EE(r.declarations)?dr:s||(a.flags&111551?En(a):Qe)}return t.type}function Ed(r){var t=Va(r);if(!t.type){if(!S(r,0))return t.type=Qe;var a=ci(En(t.target),t.mapper);wt()||(a=Pp(r)),t.type=a}return t.type}function Pp(r){var t=r.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(Br(r.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ja(r)),Qe):(sr&&(t.kind!==163||t.initializer)&&Br(r.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Ja(r)),ke)}function Hf(r){var t=Va(r);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=t.deferralParent.flags&1048576?ha(t.deferralConstituents):To(t.deferralConstituents)),t.type}function oh(r){if(r.flags&98304){var t=er(r);if(t)return t}return En(r)}function En(r){var t=e.getCheckFlags(r);return t&65536?Hf(r):t&1?Ed(r):t&262144?E0(r):t&8192?Xw(r):r.flags&7?Sc(r):r.flags&9136?Xa(r):r.flags&8?Es(r):r.flags&98304?Ee(r):r.flags&2097152?U_(r):Qe}function Jf(r){return Nm(En(r),!!(r.flags&16777216))}function Kf(r,t){return r!==void 0&&t!==void 0&&(e.getObjectFlags(r)&4)!==0&&r.target===t}function v_(r){return e.getObjectFlags(r)&4?r.target:r}function Fp(r,t){return a(r);function a(o){if(e.getObjectFlags(o)&7){var s=v_(o);return s===t||e.some(Gs(s),a)}else if(o.flags&2097152)return e.some(o.types,a);return!1}}function V_(r,t){for(var a=0,o=t;a<o.length;a++){var s=o[a];r=e.appendIfUnique(r,hl(xn(s)))}return r}function bf(r,t){for(;;){if(r=r.parent,r&&e.isBinaryExpression(r)){var a=e.getAssignmentDeclarationKind(r);if(a===6||a===3){var o=xn(r.left);o&&o.parent&&!e.findAncestor(o.parent.valueDeclaration,function(fe){return r===fe})&&(r=o.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 256:case 225:case 257:case 173:case 174:case 167:case 178:case 179:case 315:case 255:case 168:case 212:case 213:case 258:case 342:case 343:case 337:case 336:case 194:case 188:{var s=bf(r,t);if(r.kind===194)return e.append(s,hl(xn(r.typeParameter)));if(r.kind===188)return e.concatenate(s,LA(r));var f=V_(s,e.getEffectiveTypeParameterDeclarations(r)),N=t&&(r.kind===256||r.kind===225||r.kind===257||_u(r))&&Kn(xn(r)).thisType;return N?e.append(f,N):f}case 338:var U=e.getParameterSymbolFromJSDoc(r);U&&(r=U.valueDeclaration);break;case 318:{var s=bf(r,t);return r.tags?V_(s,e.flatMap(r.tags,function(Oe){return e.isJSDocTemplateTag(Oe)?Oe.typeParameters:void 0})):s}}}}function Xm(r){var t=r.flags&32?r.valueDeclaration:e.getDeclarationOfKind(r,257);return e.Debug.assert(!!t,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),bf(t)}function Ef(r){if(!!r.declarations){for(var t,a=0,o=r.declarations;a<o.length;a++){var s=o[a];if(s.kind===257||s.kind===256||s.kind===225||_u(s)||e.isTypeAlias(s)){var f=s;t=V_(t,e.getEffectiveTypeParameterDeclarations(f))}}return t}}function sh(r){return e.concatenate(Xm(r),Ef(r))}function W_(r){var t=Li(r,1);if(t.length===1){var a=t[0];if(!a.typeParameters&&a.parameters.length===1&&Y(a)){var o=Ev(a.parameters[0]);return wa(o)||E1(o)===ke}}return!1}function j_(r){if(Li(r,1).length>0)return!0;if(r.flags&8650752){var t=pl(r);return!!t&&W_(t)}return!1}function h_(r){return e.getEffectiveBaseTypeNode(r.symbol.valueDeclaration)}function _m(r,t,a){var o=e.length(t),s=e.isInJSFile(a);return e.filter(Li(r,1),function(f){return(s||o>=uu(f.typeParameters))&&o<=e.length(f.typeParameters)})}function Ym(r,t,a){var o=_m(r,t,a),s=e.map(t,xa);return e.sameMap(o,function(f){return e.some(f.typeParameters)?Ch(f,s,e.isInJSFile(a)):f})}function Lu(r){if(!r.resolvedBaseConstructorType){var t=r.symbol.valueDeclaration,a=e.getEffectiveBaseTypeNode(t),o=h_(r);if(!o)return r.resolvedBaseConstructorType=Rr;if(!S(r,1))return Qe;var s=fi(o.expression);if(a&&o!==a&&(e.Debug.assert(!a.typeArguments),fi(a.expression)),s.flags&2621440&&Wc(s),!wt())return Br(r.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ja(r.symbol)),r.resolvedBaseConstructorType=Qe;if(!(s.flags&1)&&s!==vt&&!j_(s)){var f=Br(o.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,pn(s));if(s.flags&262144){var N=lg(s),U=Be;if(N){var fe=Li(N,1);fe[0]&&(U=_o(fe[0]))}s.symbol.declarations&&e.addRelatedInfo(f,e.createDiagnosticForNode(s.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ja(s.symbol),pn(U)))}return r.resolvedBaseConstructorType=Qe}r.resolvedBaseConstructorType=s}return r.resolvedBaseConstructorType}function lh(r){var t=e.emptyArray;if(r.symbol.declarations)for(var a=0,o=r.symbol.declarations;a<o.length;a++){var s=o[a],f=e.getEffectiveImplementsTypeNodes(s);if(!!f)for(var N=0,U=f;N<U.length;N++){var fe=U[N],Oe=xa(fe);Za(Oe)||(t===e.emptyArray?t=[Oe]:t.push(Oe))}}return t}function mm(r,t){Br(r,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,pn(t,void 0,2))}function Gs(r){if(!r.baseTypesResolved){if(S(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[ch(r)]:r.symbol.flags&96?(r.symbol.flags&32&&Gp(r),r.symbol.flags&64&&fn(r)):e.Debug.fail("type must be class or interface"),!wt()&&r.symbol.declarations))for(var t=0,a=r.symbol.declarations;t<a.length;t++){var o=a[t];(o.kind===256||o.kind===257)&&mm(o,r)}r.baseTypesResolved=!0}return r.resolvedBaseTypes}function ch(r){var t=e.sameMap(r.typeParameters,function(a,o){return r.elementFlags[o]&8?Xl(a,Nt):a});return Js(ha(t||e.emptyArray),r.readonly)}function Gp(r){r.resolvedBaseTypes=e.resolvingEmptyArray;var t=Dn(Lu(r));if(!(t.flags&2621441))return r.resolvedBaseTypes=e.emptyArray;var a=h_(r),o,s=t.symbol?vo(t.symbol):void 0;if(t.symbol&&t.symbol.flags&32&&uh(s))o=wL(a,t.symbol);else if(t.flags&1)o=t;else{var f=Ym(t,a.typeArguments,a);if(!f.length)return Br(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=e.emptyArray;o=_o(f[0])}if(Za(o))return r.resolvedBaseTypes=e.emptyArray;var N=to(o);if(!qu(N)){var U=as(void 0,o),fe=e.chainDiagnosticMessages(U,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,pn(N));return fa.add(e.createDiagnosticForNodeFromMessageChain(a.expression,fe)),r.resolvedBaseTypes=e.emptyArray}return r===N||Fp(N,r)?(Br(r.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,pn(r,void 0,2)),r.resolvedBaseTypes=e.emptyArray):(r.resolvedBaseTypes===e.resolvingEmptyArray&&(r.members=void 0),r.resolvedBaseTypes=[N])}function uh(r){var t=r.outerTypeParameters;if(t){var a=t.length-1,o=ho(r);return t[a].symbol!==o[a].symbol}return!0}function qu(r){if(r.flags&262144){var t=pl(r);if(t)return qu(t)}return!!(r.flags&67633153&&!wl(r)||r.flags&2097152&&e.every(r.types,qu))}function fn(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||e.emptyArray,r.symbol.declarations)for(var t=0,a=r.symbol.declarations;t<a.length;t++){var o=a[t];if(o.kind===257&&e.getInterfaceBaseTypeNodes(o))for(var s=0,f=e.getInterfaceBaseTypeNodes(o);s<f.length;s++){var N=f[s],U=to(xa(N));Za(U)||(qu(U)?r!==U&&!Fp(U,r)?r.resolvedBaseTypes===e.emptyArray?r.resolvedBaseTypes=[U]:r.resolvedBaseTypes.push(U):mm(o,r):Br(N,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function _a(r){if(!r.declarations)return!0;for(var t=0,a=r.declarations;t<a.length;t++){var o=a[t];if(o.kind===257){if(o.flags&128)return!1;var s=e.getInterfaceBaseTypeNodes(o);if(s)for(var f=0,N=s;f<N.length;f++){var U=N[f];if(e.isEntityNameExpression(U.expression)){var fe=fs(U.expression,788968,!0);if(!fe||!(fe.flags&64)||Kn(fe).thisType)return!1}}}}return!0}function Kn(r){var t=Va(r),a=t;if(!t.declaredType){var o=r.flags&32?1:2,s=xT(r,r.valueDeclaration&&FP(r.valueDeclaration));s&&(r=t=s);var f=a.declaredType=t.declaredType=ml(o,r),N=Xm(r),U=Ef(r);(N||U||o===1||!_a(r))&&(f.objectFlags|=4,f.typeParameters=e.concatenate(N,U),f.outerTypeParameters=N,f.localTypeParameters=U,f.instantiations=new e.Map,f.instantiations.set(_c(f.typeParameters),f),f.target=f,f.resolvedTypeArguments=f.typeParameters,f.thisType=tc(r),f.thisType.isThisType=!0,f.thisType.constraint=f)}return t.declaredType}function Aa(r){var t,a=Va(r);if(!a.declaredType){if(!S(r,2))return Qe;var o=e.Debug.checkDefined((t=r.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),s=e.isJSDocTypeAlias(o)?o.typeExpression:o.type,f=s?xa(s):Qe;if(wt()){var N=Ef(r);N&&(a.typeParameters=N,a.instantiations=new e.Map,a.instantiations.set(_c(N),f))}else f=Qe,o.kind===337?Br(o.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Ja(r)):Br(e.isNamedDeclaration(o)?o.name:o||o,e.Diagnostics.Type_alias_0_circularly_references_itself,Ja(r));a.declaredType=f}return a.declaredType}function ri(r){return e.isStringLiteralLike(r)?!0:r.kind===220?ri(r.left)&&ri(r.right):!1}function qi(r){var t=r.initializer;if(!t)return!(r.flags&8388608);switch(t.kind){case 10:case 8:case 14:return!0;case 218:return t.operator===40&&t.operand.kind===8;case 79:return e.nodeIsMissing(t)||!!xn(r.parent).exports.get(t.escapedText);case 220:return ri(t);default:return!1}}function Mo(r){var t=Va(r);if(t.enumKind!==void 0)return t.enumKind;var a=!1;if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var f=s[o];if(f.kind===259)for(var N=0,U=f.members;N<U.length;N++){var fe=U[N];if(fe.initializer&&e.isStringLiteralLike(fe.initializer))return t.enumKind=1;qi(fe)||(a=!0)}}return t.enumKind=a?0:1}function Hs(r){return r.flags&1024&&!(r.flags&1048576)?vo(Ls(r.symbol)):r}function vl(r){var t=Va(r);if(t.declaredType)return t.declaredType;if(Mo(r)===1){Ke++;var a=[];if(r.declarations)for(var o=0,s=r.declarations;o<s.length;o++){var f=s[o];if(f.kind===259)for(var N=0,U=f.members;N<U.length;N++){var fe=U[N],Oe=CE(fe),je=Lm(M4(Oe!==void 0?Oe:0,Ke,xn(fe)));Va(xn(fe)).declaredType=je,a.push(Ml(je))}}if(a.length){var ze=ha(a,1,r,void 0);return ze.flags&1048576&&(ze.flags|=1024,ze.symbol=r),t.declaredType=ze}}var tr=dl(32);return tr.symbol=r,t.declaredType=tr}function ql(r){var t=Va(r);if(!t.declaredType){var a=vl(Ls(r));t.declaredType||(t.declaredType=a)}return t.declaredType}function hl(r){var t=Va(r);return t.declaredType||(t.declaredType=tc(r))}function Xu(r){var t=Va(r);return t.declaredType||(t.declaredType=vo(Go(r)))}function vo(r){return H_(r)||Qe}function H_(r){if(r.flags&96)return Kn(r);if(r.flags&524288)return Aa(r);if(r.flags&262144)return hl(r);if(r.flags&384)return vl(r);if(r.flags&8)return ql(r);if(r.flags&2097152)return Xu(r)}function ap(r){switch(r.kind){case 130:case 154:case 149:case 146:case 157:case 133:case 150:case 147:case 114:case 152:case 143:case 195:return!0;case 182:return ap(r.elementType);case 177:return!r.typeArguments||r.typeArguments.every(ap)}return!1}function gm(r){var t=e.getEffectiveConstraintOfTypeParameter(r);return!t||ap(t)}function Jg(r){var t=e.getEffectiveTypeAnnotationNode(r);return t?ap(t):!e.hasInitializer(r)}function wy(r){var t=e.getEffectiveReturnTypeNode(r),a=e.getEffectiveTypeParameterDeclarations(r);return(r.kind===170||!!t&&ap(t))&&r.parameters.every(Jg)&&a.every(gm)}function My(r){if(r.declarations&&r.declarations.length===1){var t=r.declarations[0];if(t)switch(t.kind){case 166:case 165:return Jg(t);case 168:case 167:case 170:case 171:case 172:return wy(t)}}return!1}function Py(r,t,a){for(var o=e.createSymbolTable(),s=0,f=r;s<f.length;s++){var N=f[s];o.set(N.escapedName,a&&My(N)?N:a1(N,t))}return o}function Fy(r,t){for(var a=0,o=t;a<o.length;a++){var s=o[a];!r.has(s.escapedName)&&!Kg(s)&&r.set(s.escapedName,s)}}function Kg(r){return!!r.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(r.valueDeclaration)&&e.isStatic(r.valueDeclaration)}function fh(r){if(!r.declaredProperties){var t=r.symbol,a=Tf(t);r.declaredProperties=Su(a),r.declaredCallSignatures=e.emptyArray,r.declaredConstructSignatures=e.emptyArray,r.declaredIndexInfos=e.emptyArray,r.declaredCallSignatures=jp(a.get("__call")),r.declaredConstructSignatures=jp(a.get("__new")),r.declaredIndexInfos=IL(t)}return r}function Yu(r){return!!(r.flags&8576)}function dh(r){if(!e.isComputedPropertyName(r)&&!e.isElementAccessExpression(r))return!1;var t=e.isComputedPropertyName(r)?r.expression:r.argumentExpression;return e.isEntityNameExpression(t)&&Yu(e.isComputedPropertyName(r)?td(r):Cs(t))}function y_(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function vm(r){var t=e.getNameOfDeclaration(r);return!!t&&dh(t)}function b_(r){return!e.hasDynamicName(r)||vm(r)}function Gy(r){return e.isDynamicName(r)&&!dh(r)}function Au(r){return r.flags&8192?r.escapedName:r.flags&384?e.escapeLeadingUnderscores(""+r.value):e.Debug.fail()}function zg(r,t,a){e.Debug.assert(!!(e.getCheckFlags(r)&4096),"Expected a late-bound symbol."),r.flags|=a,Va(t.symbol).lateSymbol=r,r.declarations?t.symbol.isReplaceableByMethod||r.declarations.push(t):r.declarations=[t],a&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==t.kind)&&(r.valueDeclaration=t)}function qg(r,t,a,o){e.Debug.assert(!!o.symbol,"The member is expected to have a symbol.");var s=Zn(o);if(!s.resolvedSymbol){s.resolvedSymbol=o.symbol;var f=e.isBinaryExpression(o)?o.left:o.name,N=e.isElementAccessExpression(f)?Cs(f.argumentExpression):td(f);if(Yu(N)){var U=Au(N),fe=o.symbol.flags,Oe=a.get(U);Oe||a.set(U,Oe=co(0,U,4096));var je=t&&t.get(U);if(Oe.flags&Fd(fe)||je){var ze=je?e.concatenate(je.declarations,Oe.declarations):Oe.declarations,tr=!(N.flags&8192)&&e.unescapeLeadingUnderscores(U)||e.declarationNameToString(f);e.forEach(ze,function(_r){return Br(e.getNameOfDeclaration(_r)||_r,e.Diagnostics.Property_0_was_also_declared_here,tr)}),Br(f||o,e.Diagnostics.Duplicate_property_0,tr),Oe=co(0,U,4096)}return Oe.nameType=N,zg(Oe,o,fe),Oe.parent?e.Debug.assert(Oe.parent===r,"Existing symbol parent should match new one"):Oe.parent=r,s.resolvedSymbol=Oe}}return s.resolvedSymbol}function Xg(r,t){var a=Va(r);if(!a[t]){var o=t==="resolvedExports",s=o?r.flags&1536?df(r):r.exports:r.members;a[t]=s||ce;for(var f=e.createSymbolTable(),N=0,U=r.declarations||e.emptyArray;N<U.length;N++){var fe=U[N],Oe=e.getMembersOfDeclaration(fe);if(Oe)for(var je=0,ze=Oe;je<ze.length;je++){var tr=ze[je];o===e.hasStaticModifier(tr)&&vm(tr)&&qg(r,s,f,tr)}}var _r=r.assignmentDeclarationMembers;if(_r)for(var Vr=e.arrayFrom(_r.values()),$r=0,Tt=Vr;$r<Tt.length;$r++){var tr=Tt[$r],St=e.getAssignmentDeclarationKind(tr),It=St===3||e.isBinaryExpression(tr)&&Vb(tr,St)||St===9||St===6;o===!It&&vm(tr)&&qg(r,s,f,tr)}a[t]=Gd(s,f)||ce}return a[t]}function Tf(r){return r.flags&6256?Xg(r,"resolvedMembers"):r.members||ce}function Qm(r){if(r.flags&106500&&r.escapedName==="__computed"){var t=Va(r);if(!t.lateSymbol&&e.some(r.declarations,vm)){var a=Ha(r.parent);e.some(r.declarations,e.hasStaticModifier)?il(a):Tf(a)}return t.lateSymbol||(t.lateSymbol=r)}return r}function yl(r,t,a){if(e.getObjectFlags(r)&4){var o=r.target,s=ho(r);if(e.length(o.typeParameters)===e.length(s)){var f=qf(o,e.concatenate(s,[t||o.thisType]));return a?Dn(f):f}}else if(r.flags&2097152){var N=e.sameMap(r.types,function(U){return yl(U,t,a)});return N!==r.types?To(N):r}return a?Dn(r):r}function ph(r,t,a,o){var s,f,N,U,fe;e.rangeEquals(a,o,0,a.length)?(f=t.symbol?Tf(t.symbol):e.createSymbolTable(t.declaredProperties),N=t.declaredCallSignatures,U=t.declaredConstructSignatures,fe=t.declaredIndexInfos):(s=Pl(a,o),f=Py(t.declaredProperties,s,a.length===1),N=db(t.declaredCallSignatures,s),U=db(t.declaredConstructSignatures,s),fe=kA(t.declaredIndexInfos,s));var Oe=Gs(t);if(Oe.length){t.symbol&&f===Tf(t.symbol)&&(f=e.createSymbolTable(t.declaredProperties)),Rl(r,f,N,U,fe);for(var je=e.lastOrUndefined(o),ze=0,tr=Oe;ze<tr.length;ze++){var _r=tr[ze],Vr=je?yl(ci(_r,s),je):_r;Fy(f,ro(Vr)),N=e.concatenate(N,Li(Vr,0)),U=e.concatenate(U,Li(Vr,1));var $r=Vr!==ke?Bs(Vr):[Nu(pt,ke,!1)];fe=e.concatenate(fe,e.filter($r,function(Tt){return!Dd(fe,Tt.keyType)}))}}Rl(r,f,N,U,fe)}function Yg(r){ph(r,fh(r),e.emptyArray,e.emptyArray)}function _0(r){var t=fh(r.target),a=e.concatenate(t.typeParameters,[t.thisType]),o=ho(r),s=o.length===a.length?o:e.concatenate(o,[r]);ph(r,t,a,s)}function Cu(r,t,a,o,s,f,N,U){var fe=new le(Yr,U);return fe.declaration=r,fe.typeParameters=t,fe.parameters=o,fe.thisParameter=a,fe.resolvedReturnType=s,fe.resolvedTypePredicate=f,fe.minArgumentCount=N,fe.resolvedMinArgumentCount=void 0,fe.target=void 0,fe.mapper=void 0,fe.compositeSignatures=void 0,fe.compositeKind=void 0,fe}function hm(r){var t=Cu(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&39);return t.target=r.target,t.mapper=r.mapper,t.compositeSignatures=r.compositeSignatures,t.compositeKind=r.compositeKind,t}function By(r,t){var a=hm(r);return a.compositeSignatures=t,a.compositeKind=1048576,a.target=void 0,a.mapper=void 0,a}function Uy(r,t){if((r.flags&24)===t)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});var a=t===8?"inner":"outer";return r.optionalCallSignatureCache[a]||(r.optionalCallSignatureCache[a]=m0(r,t))}function m0(r,t){e.Debug.assert(t===8||t===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var a=hm(r);return a.flags|=t,a}function Vy(r,t){if(Y(r)){var a=r.parameters.length-1,o=En(r.parameters[a]);if(ki(o))return[s(o,a)];if(!t&&o.flags&1048576&&e.every(o.types,ki))return e.map(o.types,function(f){return s(f,a)})}return[r.parameters];function s(f,N){var U=ho(f),fe=f.target.labeledElementDeclarations,Oe=e.map(U,function(je,ze){var tr=!!fe&&iE(fe[ze]),_r=tr||Ag(r,N+ze,f),Vr=f.target.elementFlags[ze],$r=Vr&12?32768:Vr&2?16384:0,Tt=co(1,_r,$r);return Tt.type=Vr&4?Js(je):je,Tt});return e.concatenate(r.parameters.slice(0,N),Oe)}}function Qg(r){var t=Lu(r),a=Li(t,1),o=e.getClassLikeDeclarationOfSymbol(r.symbol),s=!!o&&e.hasSyntacticModifier(o,128);if(a.length===0)return[Cu(void 0,r.localTypeParameters,void 0,e.emptyArray,r,void 0,0,s?4:0)];for(var f=h_(r),N=e.isInJSFile(f),U=ob(f),fe=e.length(U),Oe=[],je=0,ze=a;je<ze.length;je++){var tr=ze[je],_r=uu(tr.typeParameters),Vr=e.length(tr.typeParameters);if(N||fe>=_r&&fe<=Vr){var $r=Vr?rb(tr,Wp(U,tr.typeParameters,_r,N)):hm(tr);$r.typeParameters=r.localTypeParameters,$r.resolvedReturnType=r,$r.flags=s?$r.flags|4:$r.flags&-5,Oe.push($r)}}return Oe}function _h(r,t,a,o,s){for(var f=0,N=r;f<N.length;f++){var U=N[f];if(Bh(U,t,a,o,s,a?ew:cv))return U}}function Wy(r,t,a){if(t.typeParameters){if(a>0)return;for(var o=1;o<r.length;o++)if(!_h(r[o],t,!1,!1,!1))return;return[t]}for(var s,o=0;o<r.length;o++){var f=o===a?t:_h(r[o],t,!0,!1,!0);if(!f)return;s=e.appendIfUnique(s,f)}return s}function Zg(r){for(var t,a,o=0;o<r.length;o++){if(r[o].length===0)return e.emptyArray;r[o].length>1&&(a=a===void 0?o:-1);for(var s=0,f=r[o];s<f.length;s++){var N=f[s];if(!t||!_h(t,N,!1,!1,!0)){var U=Wy(r,N,o);if(U){var fe=N;if(U.length>1){var Oe=N.thisParameter,je=e.forEach(U,function(jt){return jt.thisParameter});if(je){var ze=To(e.mapDefined(U,function(jt){return jt.thisParameter&&En(jt.thisParameter)}));Oe=Z_(je,ze)}fe=By(N,U),fe.thisParameter=Oe}(t||(t=[])).push(fe)}}}}if(!e.length(t)&&a!==-1){for(var tr=r[a!==void 0?a:0],_r=tr.slice(),Vr=function(jt){if(jt!==tr){var In=jt[0];if(e.Debug.assert(!!In,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_r=!!In.typeParameters&&e.some(_r,function(sn){return!!sn.typeParameters&&!jy(In.typeParameters,sn.typeParameters)})?void 0:e.map(_r,function(sn){return h0(sn,In)}),!_r)return"break"}},$r=0,Tt=r;$r<Tt.length;$r++){var St=Tt[$r],It=Vr(St);if(It==="break")break}t=_r}return t||e.emptyArray}function jy(r,t){if(e.length(r)!==e.length(t))return!1;if(!r||!t)return!0;for(var a=Pl(t,r),o=0;o<r.length;o++){var s=r[o],f=t[o];if(s!==f&&!Qf(lg(s)||Be,ci(lg(f)||Be,a)))return!1}return!0}function g0(r,t,a){if(!r||!t)return r||t;var o=To([En(r),ci(En(t),a)]);return Z_(r,o)}function v0(r,t,a){for(var o=Cl(r),s=Cl(t),f=o>=s?r:t,N=f===r?t:r,U=f===r?o:s,fe=Fu(r)||Fu(t),Oe=fe&&!Fu(f),je=new Array(U+(Oe?1:0)),ze=0;ze<U;ze++){var tr=k_(f,ze);f===t&&(tr=ci(tr,a));var _r=k_(N,ze)||Be;N===t&&(_r=ci(_r,a));var Vr=To([tr,_r]),$r=fe&&!Oe&&ze===U-1,Tt=ze>=Pu(f)&&ze>=Pu(N),St=ze>=o?void 0:Ag(r,ze),It=ze>=s?void 0:Ag(t,ze),jt=St===It?St:St?It?void 0:St:It,In=co(1|(Tt&&!$r?16777216:0),jt||"arg".concat(ze));In.type=$r?Js(Vr):Vr,je[ze]=In}if(Oe){var sn=co(1,"args");sn.type=Js(Hc(N,U)),N===t&&(sn.type=ci(sn.type,a)),je[U]=sn}return je}function h0(r,t){var a=r.typeParameters||t.typeParameters,o;r.typeParameters&&t.typeParameters&&(o=Pl(t.typeParameters,r.typeParameters));var s=r.declaration,f=v0(r,t,o),N=g0(r.thisParameter,t.thisParameter,o),U=Math.max(r.minArgumentCount,t.minArgumentCount),fe=Cu(s,a,N,f,void 0,void 0,U,(r.flags|t.flags)&39);return fe.compositeKind=1048576,fe.compositeSignatures=e.concatenate(r.compositeKind!==2097152&&r.compositeSignatures||[r],[t]),o&&(fe.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?D_(r.mapper,o):o),fe}function mh(r){var t=Bs(r[0]);if(t){for(var a=[],o=function(U){var fe=U.keyType;e.every(r,function(Oe){return!!cu(Oe,fe)})&&a.push(Nu(fe,ha(e.map(r,function(Oe){return Qu(Oe,fe)})),e.some(r,function(Oe){return cu(Oe,fe).isReadonly})))},s=0,f=t;s<f.length;s++){var N=f[s];o(N)}return a}return e.emptyArray}function y0(r){var t=Zg(e.map(r.types,function(s){return s===Fe?[lo]:Li(s,0)})),a=Zg(e.map(r.types,function(s){return Li(s,1)})),o=mh(r.types);Rl(r,ce,t,a,o)}function J_(r,t){return r?t?To([r,t]):r:t}function ym(r){var t=e.countWhere(r,function(s){return Li(s,1).length>0}),a=e.map(r,W_);if(t>0&&t===e.countWhere(a,function(s){return s})){var o=a.indexOf(!0);a[o]=!1}return a}function Hy(r,t,a,o){for(var s=[],f=0;f<t.length;f++)f===o?s.push(r):a[f]&&s.push(_o(Li(t[f],1)[0]));return To(s)}function Jy(r){for(var t,a,o,s=r.types,f=ym(s),N=e.countWhere(f,function(Oe){return Oe}),U=function(Oe){var je=r.types[Oe];if(!f[Oe]){var ze=Li(je,1);ze.length&&N>0&&(ze=e.map(ze,function(tr){var _r=hm(tr);return _r.resolvedReturnType=Hy(_o(tr),s,f,Oe),_r})),a=Ky(a,ze)}t=Ky(t,Li(je,0)),o=e.reduceLeft(Bs(je),function(tr,_r){return gh(tr,_r,!1)},o)},fe=0;fe<s.length;fe++)U(fe);Rl(r,ce,t||e.emptyArray,a||e.emptyArray,o||e.emptyArray)}function Ky(r,t){for(var a=function(N){(!r||e.every(r,function(U){return!Bh(U,N,!1,!1,!1,cv)}))&&(r=e.append(r,N))},o=0,s=t;o<s.length;o++){var f=s[o];a(f)}return r}function gh(r,t,a){if(r)for(var o=0;o<r.length;o++){var s=r[o];if(s.keyType===t.keyType)return r[o]=Nu(s.keyType,a?ha([s.type,t.type]):To([s.type,t.type]),a?s.isReadonly||t.isReadonly:s.isReadonly&&t.isReadonly),r}return e.append(r,t)}function b0(r){var t=Ha(r.symbol);if(r.target){Rl(r,ce,e.emptyArray,e.emptyArray,e.emptyArray);var a=Py(zf(r.target),r.mapper,!1),o=db(Li(r.target,0),r.mapper),s=db(Li(r.target,1),r.mapper),f=kA(Bs(r.target),r.mapper);Rl(r,a,o,s,f)}else if(t.flags&2048){Rl(r,ce,e.emptyArray,e.emptyArray,e.emptyArray);var a=Tf(t),o=jp(a.get("__call")),s=jp(a.get("__new")),f=IL(t);Rl(r,a,o,s,f)}else{var a=ce,f=void 0;if(t.exports&&(a=il(t),t===lr)){var N=new e.Map;a.forEach(function(Vr){Vr.flags&418||N.set(Vr.escapedName,Vr)}),a=N}var U=void 0;if(Rl(r,a,e.emptyArray,e.emptyArray,e.emptyArray),t.flags&32){var fe=Kn(t),Oe=Lu(fe);Oe.flags&11272192?(a=e.createSymbolTable(Bf(a)),Fy(a,ro(Oe))):Oe===ke&&(U=Nu(pt,ke,!1))}var je=R0(a);if(je?f=NL(je):(U&&(f=e.append(f,U)),t.flags&384&&(vo(t).flags&32||e.some(r.properties,function(Vr){return!!(En(Vr).flags&296)}))&&(f=e.append(f,ja))),Rl(r,a,e.emptyArray,e.emptyArray,f||e.emptyArray),t.flags&8208&&(r.callSignatures=jp(t)),t.flags&32){var ze=Kn(t),s=t.members?jp(t.members.get("__constructor")):e.emptyArray;t.flags&16&&(s=e.addRange(s.slice(),e.mapDefined(r.callSignatures,function($r){return _u($r.declaration)?Cu($r.declaration,$r.typeParameters,$r.thisParameter,$r.parameters,ze,void 0,$r.minArgumentCount,$r.flags&39):void 0}))),s.length||(s=Qg(ze)),r.constructSignatures=s}}}function $g(r,t,a){return ci(r,Pl([t.indexType,t.objectType],[Yf(0),ku([a])]))}function zy(r){for(var t=cu(r.source,pt),a=Lc(r.mappedType),o=!(a&1),s=a&4?0:16777216,f=t?[Nu(pt,xb(t.type,r.mappedType,r.constraintType),o&&t.isReadonly)]:e.emptyArray,N=e.createSymbolTable(),U=0,fe=ro(r.source);U<fe.length;U++){var Oe=fe[U],je=8192|(o&&Gu(Oe)?8:0),ze=co(4|Oe.flags&s,Oe.escapedName,je);if(ze.declarations=Oe.declarations,ze.nameType=Va(Oe).nameType,ze.propertyType=En(Oe),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){var tr=r.constraintType.type.objectType,_r=$g(r.mappedType,r.constraintType.type,tr);ze.mappedType=_r,ze.constraintType=Zu(tr)}else ze.mappedType=r.mappedType,ze.constraintType=r.constraintType;N.set(Oe.escapedName,ze)}Rl(r,N,e.emptyArray,e.emptyArray,f)}function Zm(r){if(r.flags&4194304){var t=Dn(r.type);return vg(t)?aA(t):Zu(t)}if(r.flags&16777216){if(r.root.isDistributive){var a=r.checkType,o=Zm(a);if(o!==a)return l1(r,Am(r.root.checkType,o,r.mapper))}return r}return r.flags&1048576?ms(r,Zm):r.flags&2097152?To(e.sameMap(r.types,Zm)):r}function vh(r){return e.getCheckFlags(r)&4096}function hh(r,t,a,o){for(var s=0,f=ro(r);s<f.length;s++){var N=f[s];o(fg(N,t))}if(r.flags&1)o(pt);else for(var U=0,fe=Bs(r);U<fe.length;U++){var Oe=fe[U];(!a||Oe.keyType.flags&134217732)&&o(Oe.keyType)}}function yh(r){var t=e.createSymbolTable(),a;Rl(r,ce,e.emptyArray,e.emptyArray,e.emptyArray);var o=lu(r),s=Dc(r),f=Td(r.target||r),N=xu(r.target||r),U=Dn(eg(r)),fe=Lc(r),Oe=fr?128:8576;$m(r)?hh(U,Oe,fr,je):C_(Zm(s),je),Rl(r,t,e.emptyArray,e.emptyArray,a||e.emptyArray);function je(tr){var _r=f?ci(f,lv(r.mapper,o,tr)):tr;C_(_r,function(Vr){return ze(tr,Vr)})}function ze(tr,_r){if(Yu(_r)){var Vr=Au(_r),$r=t.get(Vr);if($r)$r.nameType=ha([$r.nameType,_r]),$r.keyType=ha([$r.keyType,tr]);else{var Tt=Yu(tr)?pi(U,Au(tr)):void 0,St=!!(fe&4||!(fe&8)&&Tt&&Tt.flags&16777216),It=!!(fe&1||!(fe&2)&&Tt&&Gu(Tt)),jt=Er&&!St&&Tt&&Tt.flags&16777216,In=Tt?vh(Tt):0,sn=co(4|(St?16777216:0),Vr,In|262144|(It?8:0)|(jt?524288:0));sn.mappedType=r,sn.nameType=_r,sn.keyType=tr,Tt&&(sn.syntheticOrigin=Tt,sn.declarations=f?void 0:Tt.declarations),t.set(Vr,sn)}}else if(tb(_r)||_r.flags&33){var ua=_r.flags&5?pt:_r.flags&40?Nt:_r,la=ci(N,lv(r.mapper,o,tr)),_i=Nu(ua,la,!!(fe&1));a=gh(a,_i,!0)}}}function E0(r){if(!r.type){var t=r.mappedType;if(!S(r,0))return t.containsError=!0,Qe;var a=xu(t.target||t),o=lv(t.mapper,lu(t),r.keyType),s=ci(a,o),f=Er&&r.flags&16777216&&!Jo(s,49152)?$f(s,!0):r.checkFlags&524288?x1(s):s;wt()||(Br(Re,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ja(r),pn(t)),f=Qe),r.type=f}return r.type}function lu(r){return r.typeParameter||(r.typeParameter=hl(xn(r.declaration.typeParameter)))}function Dc(r){return r.constraintType||(r.constraintType=bl(lu(r))||Qe)}function Td(r){return r.declaration.nameType?r.nameType||(r.nameType=ci(xa(r.declaration.nameType),r.mapper)):void 0}function xu(r){return r.templateType||(r.templateType=r.declaration.type?ci(ac(xa(r.declaration.type),!0,!!(Lc(r)&4)),r.mapper):Qe)}function qy(r){return e.getEffectiveConstraintOfTypeParameter(r.declaration.typeParameter)}function $m(r){var t=qy(r);return t.kind===192&&t.operator===140}function eg(r){if(!r.modifiersType)if($m(r))r.modifiersType=ci(xa(qy(r).type),r.mapper);else{var t=X0(r.declaration),a=Dc(t),o=a&&a.flags&262144?bl(a):a;r.modifiersType=o&&o.flags&4194304?ci(o.type,r.mapper):Be}return r.modifiersType}function Lc(r){var t=r.declaration;return(t.readonlyToken?t.readonlyToken.kind===40?2:1:0)|(t.questionToken?t.questionToken.kind===40?8:4:0)}function Xy(r){var t=Lc(r);return t&8?-1:t&4?1:0}function bh(r){var t=Xy(r),a=eg(r);return t||(wl(a)?Xy(a):0)}function T0(r){return!!(e.getObjectFlags(r)&32&&Lc(r)&4)}function wl(r){return!!(e.getObjectFlags(r)&32)&&q_(Dc(r))}function Wc(r){return r.members||(r.flags&524288?r.objectFlags&4?_0(r):r.objectFlags&3?Yg(r):r.objectFlags&1024?zy(r):r.objectFlags&16?b0(r):r.objectFlags&32&&yh(r):r.flags&1048576?y0(r):r.flags&2097152&&Jy(r)),r}function zf(r){return r.flags&524288?Wc(r).properties:e.emptyArray}function Sd(r,t){if(r.flags&524288){var a=Wc(r),o=a.members.get(t);if(o&&Gf(o))return o}}function rg(r){if(!r.resolvedProperties){for(var t=e.createSymbolTable(),a=0,o=r.types;a<o.length;a++){for(var s=o[a],f=0,N=ro(s);f<N.length;f++){var U=N[f];if(!t.has(U.escapedName)){var fe=fo(r,U.escapedName);fe&&t.set(U.escapedName,fe)}}if(r.flags&1048576&&Bs(s).length===0)break}r.resolvedProperties=Su(t)}return r.resolvedProperties}function ro(r){return r=ma(r),r.flags&3145728?rg(r):zf(r)}function Yy(r,t){r=ma(r),r.flags&3670016&&Wc(r).members.forEach(function(a,o){Np(a,o)&&t(a,o)})}function Qy(r,t){var a=t.properties;return a.some(function(o){var s=o.name&&lp(o.name),f=s&&Yu(s)?Au(s):void 0,N=f===void 0?void 0:na(r,f);return!!N&&Im(N)&&!$i(e_(o),N)})}function S0(r){var t=ha(r);if(!(t.flags&1048576))return sS(t);for(var a=e.createSymbolTable(),o=0,s=r;o<s.length;o++)for(var f=s[o],N=0,U=sS(f);N<U.length;N++){var fe=U[N].escapedName;if(!a.has(fe)){var Oe=hi(t,fe);Oe&&a.set(fe,Oe)}}return e.arrayFrom(a.values())}function Bp(r){return r.flags&262144?bl(r):r.flags&8388608?D0(r):r.flags&16777216?A0(r):pl(r)}function bl(r){return Dh(r)?lg(r):void 0}function D0(r){return Dh(r)?L0(r):void 0}function Eh(r){var t=Xf(r,!1);return t!==r?t:Bp(r)}function L0(r){var t=Eh(r.indexType);if(t&&t!==r.indexType){var a=cp(r.objectType,t,r.accessFlags);if(a)return a}var o=Eh(r.objectType);if(o&&o!==r.objectType)return cp(o,r.indexType,r.accessFlags)}function Th(r){if(!r.resolvedDefaultConstraint){var t=I4(r),a=fp(r);r.resolvedDefaultConstraint=wa(t)?a:wa(a)?t:ha([t,a])}return r.resolvedDefaultConstraint}function Zy(r){if(r.root.isDistributive&&r.restrictiveInstantiation!==r){var t=Xf(r.checkType,!1),a=t===r.checkType?Bp(t):t;if(a&&a!==r.checkType){var o=l1(r,Am(r.root.checkType,a,r.mapper));if(!(o.flags&131072))return o}}}function Sh(r){return Zy(r)||Th(r)}function A0(r){return Dh(r)?Sh(r):void 0}function C0(r,t){for(var a,o=!1,s=0,f=r;s<f.length;s++){var N=f[s];if(N.flags&465829888){for(var U=Bp(N);U&&U.flags&21233664;)U=Bp(U);U&&(a=e.append(a,U),t&&(a=e.append(a,N)))}else N.flags&469892092&&(o=!0)}if(a&&(t||o)){if(o)for(var fe=0,Oe=r;fe<Oe.length;fe++){var N=Oe[fe];N.flags&469892092&&(a=e.append(a,N))}return To(a)}}function pl(r){if(r.flags&464781312){var t=Lh(r);return t!==ao&&t!==ei?t:void 0}return r.flags&4194304?Ct:void 0}function bm(r){return pl(r)||r}function Dh(r){return Lh(r)!==ei}function Lh(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;var t=[];return r.resolvedBaseConstraint=yl(a(r),r);function a(f){if(!f.immediateBaseConstraint){if(!S(f,4))return ei;var N=void 0;if((t.length<10||t.length<50&&!Fh(f,t,t.length))&&(t.push(f),N=s(Xf(f,!1)),t.pop()),!wt()){if(f.flags&262144){var U=kL(f);if(U){var fe=Br(U,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,pn(f));Re&&!e.isNodeDescendantOf(U,Re)&&!e.isNodeDescendantOf(Re,U)&&e.addRelatedInfo(fe,e.createDiagnosticForNode(Re,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}N=ei}f.immediateBaseConstraint=N||ao}return f.immediateBaseConstraint}function o(f){var N=a(f);return N!==ao&&N!==ei?N:void 0}function s(f){if(f.flags&262144){var N=lg(f);return f.isThisType||!N?N:o(N)}if(f.flags&3145728){for(var U=f.types,fe=[],Oe=!1,je=0,ze=U;je<ze.length;je++){var tr=ze[je],_r=o(tr);_r?(_r!==tr&&(Oe=!0),fe.push(_r)):Oe=!0}return Oe?f.flags&1048576&&fe.length===U.length?ha(fe):f.flags&2097152&&fe.length?To(fe):void 0:f}if(f.flags&4194304)return Ct;if(f.flags&134217728){var U=f.types,Vr=e.mapDefined(U,o);return Vr.length===U.length?dg(f.texts,Vr):pt}if(f.flags&268435456){var N=o(f.type);return N?lb(f.symbol,N):pt}if(f.flags&8388608){var $r=o(f.objectType),Tt=o(f.indexType),St=$r&&Tt&&cp($r,Tt,f.accessFlags);return St&&o(St)}if(f.flags&16777216){var N=Sh(f);return N&&o(N)}return f.flags&33554432?o(f.substitute):f}}function x0(r){return r.resolvedApparentType||(r.resolvedApparentType=yl(r,r,!0))}function l(r){if(r.default)r.default===Fi&&(r.default=ei);else if(r.target){var t=l(r.target);r.default=t?ci(t,r.mapper):ao}else{r.default=Fi;var a=r.symbol&&e.forEach(r.symbol.declarations,function(s){return e.isTypeParameterDeclaration(s)&&s.default}),o=a?xa(a):ao;r.default===Fi&&(r.default=o)}return r.default}function ee(r){var t=l(r);return t!==ao&&t!==ei?t:void 0}function or(r){return l(r)!==ei}function jr(r){return!!(r.symbol&&e.forEach(r.symbol.declarations,function(t){return e.isTypeParameterDeclaration(t)&&t.default}))}function Ot(r){return r.resolvedApparentType||(r.resolvedApparentType=Nn(r))}function Nn(r){var t=i1(r);if(t&&!r.declaration.nameType){var a=bl(t);if(a&&($s(a)||ki(a)))return ci(r,Am(t,a,r.mapper))}return r}function Dn(r){var t=r.flags&465829888?pl(r)||Be:r;return e.getObjectFlags(t)&32?Ot(t):t.flags&2097152?x0(t):t.flags&402653316?Pe:t.flags&296?Ye:t.flags&2112?JR(Ne>=7):t.flags&528?Tr:t.flags&12288?XL(Ne>=2):t.flags&67108864?Qn:t.flags&4194304?Ct:t.flags&2&&!Er?Qn:t}function ma(r){return to(Dn(to(r)))}function hi(r,t,a){for(var o,s,f,N,U,fe=r.flags&1048576,Oe=fe?0:16777216,je=4,ze=fe?0:8,tr=!1,_r=0,Vr=r.types;_r<Vr.length;_r++){var $r=Vr[_r],Tt=Dn($r);if(!(Za(Tt)||Tt.flags&131072)){var St=pi(Tt,t,a),It=St?e.getDeclarationModifierFlagsFromSymbol(St):0;if(St){if(fe?Oe|=St.flags&16777216:Oe&=St.flags,!f)f=St;else if(St!==f){var jt=(Um(St)||St)===(Um(f)||f);if(jt&&b1(f,St,function(Oa,Yn){return Oa===Yn?-1:0})===-1)tr=!!f.parent&&!!e.length(Ef(f.parent));else{N||(N=new e.Map,N.set(d(f),f));var In=d(St);N.has(In)||N.set(In,St)}}fe&&Gu(St)?ze|=8:!fe&&!Gu(St)&&(ze&=-9),ze|=(It&24?0:256)|(It&16?512:0)|(It&8?1024:0)|(It&32?2048:0),dT(St)||(je=2)}else if(fe){var sn=!y_(t)&&Up(Tt,t);sn?(ze|=32|(sn.isReadonly?8:0),U=e.append(U,ki(Tt)?fv(Tt)||Rr:sn.type)):Xp(Tt)&&!(e.getObjectFlags(Tt)&4194304)?(ze|=32,U=e.append(U,Rr)):ze|=16}}}if(!(!f||fe&&(N||ze&48)&&ze&1536)){if(!N&&!(ze&16)&&!U)if(tr){var ua=Z_(f,f.type);return ua.parent=(s=(o=f.valueDeclaration)===null||o===void 0?void 0:o.symbol)===null||s===void 0?void 0:s.parent,ua.containingType=r,ua.mapper=f.mapper,ua}else return f;for(var la=N?e.arrayFrom(N.values()):[f],_i,ka,xi,Bi=[],Ii,Co=!1,Ht=0,Gt=la;Ht<Gt.length;Ht++){var St=Gt[Ht];Ii?St.valueDeclaration&&St.valueDeclaration!==Ii&&(Co=!0):Ii=St.valueDeclaration,_i=e.addRange(_i,St.declarations);var Tt=En(St);ka?Tt!==ka&&(ze|=64):(ka=Tt,xi=Va(St).nameType),(Im(Tt)||pg(Tt))&&(ze|=128),Tt.flags&131072&&(ze|=131072),Bi.push(Tt)}e.addRange(Bi,U);var mn=co(4|Oe,t,je|ze);return mn.containingType=r,!Co&&Ii&&(mn.valueDeclaration=Ii,Ii.symbol.parent&&(mn.parent=Ii.symbol.parent)),mn.declarations=_i,mn.nameType=xi,Bi.length>2?(mn.checkFlags|=65536,mn.deferralParent=r,mn.deferralConstituents=Bi):mn.type=fe?ha(Bi):To(Bi),mn}}function li(r,t,a){var o,s,f=((o=r.propertyCacheWithoutObjectFunctionPropertyAugment)===null||o===void 0?void 0:o.get(t))||!a?(s=r.propertyCache)===null||s===void 0?void 0:s.get(t):void 0;if(!f&&(f=hi(r,t,a),f)){var N=a?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):r.propertyCache||(r.propertyCache=e.createSymbolTable());N.set(t,f)}return f}function fo(r,t,a){var o=li(r,t,a);return o&&!(e.getCheckFlags(o)&16)?o:void 0}function to(r){return r.flags&1048576&&r.objectFlags&33554432?r.resolvedReducedType||(r.resolvedReducedType=ll(r)):r.flags&2097152?(r.objectFlags&33554432||(r.objectFlags|=33554432|(e.some(rg(r),Qs)?67108864:0)),r.objectFlags&67108864?nn:r):r}function ll(r){var t=e.sameMap(r.types,to);if(t===r.types)return r;var a=ha(t);return a.flags&1048576&&(a.resolvedReducedType=a),a}function Qs(r){return Ts(r)||Ac(r)}function Ts(r){return!(r.flags&16777216)&&(e.getCheckFlags(r)&131264)===192&&!!(En(r).flags&131072)}function Ac(r){return!r.valueDeclaration&&!!(e.getCheckFlags(r)&1024)}function as(r,t){if(t.flags&2097152&&e.getObjectFlags(t)&67108864){var a=e.find(rg(t),Ts);if(a)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,pn(t,void 0,536870912),Ja(a));var o=e.find(rg(t),Ac);if(o)return e.chainDiagnosticMessages(r,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,pn(t,void 0,536870912),Ja(o))}return r}function pi(r,t,a){if(r=ma(r),r.flags&524288){var o=Wc(r),s=o.members.get(t);if(s&&Gf(s))return s;if(a)return;var f=o===$a?Fe:o.callSignatures.length?Gr:o.constructSignatures.length?ht:void 0;if(f){var N=Sd(f,t);if(N)return N}return Sd(Bn,t)}if(r.flags&3145728)return fo(r,t,a)}function ip(r,t){if(r.flags&3670016){var a=Wc(r);return t===0?a.callSignatures:a.constructSignatures}return e.emptyArray}function Li(r,t){return ip(ma(r),t)}function Dd(r,t){return e.find(r,function(a){return a.keyType===t})}function tg(r,t){for(var a,o,s,f=0,N=r;f<N.length;f++){var U=N[f];U.keyType===pt?a=U:Ld(t,U.keyType)&&(o?(s||(s=[o])).push(U):o=U)}return s?Nu(Be,To(e.map(s,function(fe){return fe.type})),e.reduceLeft(s,function(fe,Oe){return fe&&Oe.isReadonly},!0)):o||(a&&Ld(t,pt)?a:void 0)}function Ld(r,t){return $i(r,t)||t===pt&&$i(r,Nt)||t===Nt&&!!(r.flags&128)&&rd(r.value)}function ev(r){if(r.flags&3670016){var t=Wc(r);return t.indexInfos}return e.emptyArray}function Bs(r){return ev(ma(r))}function cu(r,t){return Dd(Bs(r),t)}function Qu(r,t){var a;return(a=cu(r,t))===null||a===void 0?void 0:a.type}function $y(r,t){return Bs(r).filter(function(a){return Ld(t,a.keyType)})}function K_(r,t){return tg(Bs(r),t)}function Up(r,t){return K_(r,y_(t)?pa:xc(e.unescapeLeadingUnderscores(t)))}function ng(r){for(var t,a=0,o=e.getEffectiveTypeParameterDeclarations(r);a<o.length;a++){var s=o[a];t=e.appendIfUnique(t,hl(s.symbol))}return t}function ag(r){var t=[];return r.forEach(function(a,o){mf(o)||t.push(a)}),t}function ig(r){return e.isInJSFile(r)&&(r.type&&r.type.kind===314||e.getJSDocParameterTags(r).some(function(t){var a=t.isBracketed,o=t.typeExpression;return a||!!o&&o.type.kind===314}))}function Ah(r,t){if(!e.isExternalModuleNameRelative(r)){var a=Al(kr,'"'+r+'"',512);return a&&t?Ha(a):a}}function Vp(r){if(e.hasQuestionToken(r)||og(r)||ig(r))return!0;if(r.initializer){var t=Iu(r.parent),a=r.parent.parameters.indexOf(r);return e.Debug.assert(a>=0),a>=Pu(t,3)}var o=e.getImmediatelyInvokedFunctionExpression(r.parent);return o?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=o.arguments.length:!1}function eb(r){return e.isPropertyDeclaration(r)&&r.questionToken}function og(r){if(!e.isJSDocPropertyLikeTag(r))return!1;var t=r.isBracketed,a=r.typeExpression;return t||!!a&&a.type.kind===314}function Em(r,t,a,o){return{kind:r,parameterName:t,parameterIndex:a,type:o}}function uu(r){var t=0;if(r)for(var a=0;a<r.length;a++)jr(r[a])||(t=a+1);return t}function Wp(r,t,a,o){var s=e.length(t);if(!s)return[];var f=e.length(r);if(o||f>=a&&f<=s){for(var N=r?r.slice():[],U=f;U<s;U++)N[U]=Qe;for(var fe=U1(o),U=f;U<s;U++){var Oe=ee(t[U]);o&&Oe&&(Qf(Oe,Be)||Qf(Oe,Qn))&&(Oe=ke),N[U]=Oe?ci(Oe,Pl(t,N)):fe}return N.length=t.length,N}return r&&r.slice()}function Iu(r){var t=Zn(r);if(!t.resolvedSignature){var a=[],o=0,s=0,f=void 0,N=!1,U=e.getImmediatelyInvokedFunctionExpression(r),fe=e.isJSDocConstructSignature(r),Oe=!U&&e.isInJSFile(r)&&e.isValueSignatureDeclaration(r)&&!e.hasJSDocParameterTags(r)&&!e.getJSDocType(r);Oe&&(o|=32);for(var je=fe?1:0;je<r.parameters.length;je++){var ze=r.parameters[je],tr=ze.symbol,_r=e.isJSDocParameterTag(ze)?ze.typeExpression&&ze.typeExpression.type:ze.type;if(tr&&!!(tr.flags&4)&&!e.isBindingPattern(ze.name)){var Vr=Ho(ze,tr.escapedName,111551,void 0,void 0,!1);tr=Vr}je===0&&tr.escapedName==="this"?(N=!0,f=ze.symbol):a.push(tr),_r&&_r.kind===195&&(o|=2);var $r=og(ze)||ze.initializer||ze.questionToken||e.isRestParameter(ze)||U&&a.length>U.arguments.length&&!_r||ig(ze);$r||(s=a.length)}if((r.kind===171||r.kind===172)&&b_(r)&&(!N||!f)){var Tt=r.kind===171?172:171,St=e.getDeclarationOfKind(xn(r),Tt);St&&(f=v(St))}var It=r.kind===170?Kn(Ha(r.parent.symbol)):void 0,jt=It?It.localTypeParameters:ng(r);(e.hasRestParameter(r)||e.isInJSFile(r)&&mR(r,a))&&(o|=1),(e.isConstructorTypeNode(r)&&e.hasSyntacticModifier(r,128)||e.isConstructorDeclaration(r)&&e.hasSyntacticModifier(r.parent,128))&&(o|=4),t.resolvedSignature=Cu(r,jt,f,a,void 0,void 0,s,o)}return t.resolvedSignature}function mR(r,t){if(e.isJSDocSignature(r)||!N0(r))return!1;var a=e.lastOrUndefined(r.parameters),o=a?e.getJSDocParameterTags(a):e.getJSDocTags(r).filter(e.isJSDocParameterTag),s=e.firstDefined(o,function(N){return N.typeExpression&&e.isJSDocVariadicType(N.typeExpression.type)?N.typeExpression.type:void 0}),f=co(3,"args",32768);return f.type=s?Js(xa(s.type)):Wt,s&&t.pop(),t.push(f),!0}function I0(r){if(!!(e.isInJSFile(r)&&e.isFunctionLikeDeclaration(r))){var t=e.getJSDocTypeTag(r);return(t==null?void 0:t.typeExpression)&&em(xa(t.typeExpression))}}function gR(r){var t=I0(r);return t&&_o(t)}function N0(r){var t=Zn(r);return t.containsArgumentsReference===void 0&&(t.flags&8192?t.containsArgumentsReference=!0:t.containsArgumentsReference=a(r.body)),t.containsArgumentsReference;function a(o){if(!o)return!1;switch(o.kind){case 79:return o.escapedText===Hr.escapedName&&Mv(o)===Hr;case 166:case 168:case 171:case 172:return o.name.kind===161&&a(o.name);case 205:case 206:return a(o.expression);default:return!e.nodeStartsNewLexicalEnvironment(o)&&!e.isPartOfTypeNode(o)&&!!e.forEachChild(o,a)}}}function jp(r){if(!r||!r.declarations)return e.emptyArray;for(var t=[],a=0;a<r.declarations.length;a++){var o=r.declarations[a];if(!!e.isFunctionLike(o)){if(a>0&&o.body){var s=r.declarations[a-1];if(o.parent===s.parent&&o.kind===s.kind&&o.pos===s.end)continue}t.push(Iu(o))}}return t}function LL(r){var t=Ys(r,r);if(t){var a=_l(t);if(a)return En(a)}return ke}function E_(r){if(r.thisParameter)return En(r.thisParameter)}function Cc(r){if(!r.resolvedTypePredicate){if(r.target){var t=Cc(r.target);r.resolvedTypePredicate=t?H4(t,r.mapper):Ni}else if(r.compositeSignatures)r.resolvedTypePredicate=n4(r.compositeSignatures,r.compositeKind)||Ni;else{var a=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration),o=void 0;if(!a&&e.isInJSFile(r.declaration)){var s=I0(r.declaration);s&&r!==s&&(o=Cc(s))}r.resolvedTypePredicate=a&&e.isTypePredicateNode(a)?vR(a,r):o||Ni}e.Debug.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===Ni?void 0:r.resolvedTypePredicate}function vR(r,t){var a=r.parameterName,o=r.type&&xa(r.type);return a.kind===191?Em(r.assertsModifier?2:0,void 0,void 0,o):Em(r.assertsModifier?3:1,a.escapedText,e.findIndex(t.parameters,function(s){return s.escapedName===a.escapedText}),o)}function AL(r,t,a){return t!==2097152?ha(r,a):To(r)}function _o(r){if(!r.resolvedReturnType){if(!S(r,3))return Qe;var t=r.target?ci(_o(r.target),r.mapper):r.compositeSignatures?ci(AL(e.map(r.compositeSignatures,_o),r.compositeKind,2),r.mapper):Tm(r.declaration)||(e.nodeIsMissing(r.declaration.body)?ke:oE(r.declaration));if(r.flags&8?t=sC(t):r.flags&16&&(t=$f(t)),!wt()){if(r.declaration){var a=e.getEffectiveReturnTypeNode(r.declaration);if(a)Br(a,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(sr){var o=r.declaration,s=e.getNameOfDeclaration(o);s?Br(s,e.Diagnostics._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,e.declarationNameToString(s)):Br(o,e.Diagnostics.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)}}t=ke}r.resolvedReturnType=t}return r.resolvedReturnType}function Tm(r){if(r.kind===170)return Kn(Ha(r.parent.symbol));if(e.isJSDocConstructSignature(r))return xa(r.parameters[0].type);var t=e.getEffectiveReturnTypeNode(r);if(t)return xa(t);if(r.kind===171&&b_(r)){var a=e.isInJSFile(r)&&Vc(r);if(a)return a;var o=e.getDeclarationOfKind(xn(r),172),s=zl(o);if(s)return s}return gR(r)}function k0(r){return!r.resolvedReturnType&&Ze(r,3)>=0}function hR(r){return CL(r)||ke}function CL(r){if(Y(r)){var t=En(r.parameters[r.parameters.length-1]),a=ki(t)?fv(t):t;return a&&Qu(a,Nt)}}function Ch(r,t,a,o){var s=O0(r,Wp(t,r.typeParameters,uu(r.typeParameters),a));if(o){var f=wx(_o(s));if(f){var N=hm(f);N.typeParameters=o;var U=hm(s);return U.resolvedReturnType=sg(N),U}}return s}function O0(r,t){var a=r.instantiations||(r.instantiations=new e.Map),o=_c(t),s=a.get(o);return s||a.set(o,s=rb(r,t)),s}function rb(r,t){return Cm(r,yR(r,t),!0)}function yR(r,t){return Pl(r.typeParameters,t)}function rv(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=bR(r)):r}function bR(r){return Cm(r,OA(r.typeParameters),!0)}function ER(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=TR(r)):r}function TR(r){return Ch(r,e.map(r.typeParameters,function(t){return t.target&&!bl(t.target)?t.target:t}),e.isInJSFile(r.declaration))}function SR(r){var t=r.typeParameters;if(t){if(r.baseSignatureCache)return r.baseSignatureCache;for(var a=OA(t),o=Pl(t,e.map(t,function(N){return bl(N)||Be})),s=e.map(t,function(N){return ci(N,o)||Be}),f=0;f<t.length-1;f++)s=Cd(s,o);return s=Cd(s,a),r.baseSignatureCache=Cm(r,Pl(t,s),!0)}return r}function sg(r){if(!r.isolatedSignatureType){var t=r.declaration?r.declaration.kind:0,a=t===170||t===174||t===179,o=ml(16);o.members=ce,o.properties=e.emptyArray,o.callSignatures=a?e.emptyArray:[r],o.constructSignatures=a?[r]:e.emptyArray,o.indexInfos=e.emptyArray,r.isolatedSignatureType=o}return r.isolatedSignatureType}function xL(r){return r.members?R0(r.members):void 0}function R0(r){return r.get("__index")}function Nu(r,t,a,o){return{keyType:r,type:t,isReadonly:a,declaration:o}}function IL(r){var t=xL(r);return t?NL(t):e.emptyArray}function NL(r){if(r.declarations){for(var t=[],a=function(N){if(N.parameters.length===1){var U=N.parameters[0];U.type&&C_(xa(U.type),function(fe){tb(fe)&&!Dd(t,fe)&&t.push(Nu(fe,N.type?xa(N.type):ke,e.hasEffectiveModifier(N,64),N))})}},o=0,s=r.declarations;o<s.length;o++){var f=s[o];a(f)}return t}return e.emptyArray}function tb(r){return!!(r.flags&4108)||pg(r)||!!(r.flags&2097152)&&!ov(r)&&e.some(r.types,tb)}function kL(r){return e.mapDefined(e.filter(r.symbol&&r.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function DR(r){var t,a;if(!((t=r.symbol)===null||t===void 0)&&t.declarations)for(var o=0,s=r.symbol.declarations;o<s.length;o++){var f=s[o];if(f.parent.kind===189){var N=e.walkUpParenthesizedTypesAndGetParentAndChild(f.parent.parent),U=N[0],fe=U===void 0?f.parent:U,Oe=N[1];if(Oe.kind===177){var je=Oe,ze=WT(je);if(ze){var tr=je.typeArguments.indexOf(fe);if(tr<ze.length){var _r=bl(ze[tr]);if(_r){var Vr=Pl(ze,cE(je,ze)),$r=ci(_r,Vr);$r!==r&&(a=e.append(a,$r))}}}}else if(Oe.kind===163&&Oe.dotDotDotToken||Oe.kind===185||Oe.kind===196&&Oe.dotDotDotToken)a=e.append(a,Js(Be));else if(Oe.kind===198)a=e.append(a,pt);else if(Oe.kind===162&&Oe.parent.kind===194)a=e.append(a,Ct);else if(Oe.kind===194&&Oe.type&&e.skipParentheses(Oe.type)===f.parent&&Oe.parent.kind===188&&Oe.parent.extendsType===Oe&&Oe.parent.checkType.kind===194&&Oe.parent.checkType.type){var Tt=Oe.parent.checkType,St=xa(Tt.type);a=e.append(a,ci(St,Y_(hl(xn(Tt.typeParameter)),Tt.typeParameter.constraint?xa(Tt.typeParameter.constraint):Ct)))}}}return a&&To(a)}function lg(r){if(!r.constraint)if(r.target){var t=bl(r.target);r.constraint=t?ci(t,r.mapper):ao}else{var a=kL(r);if(!a)r.constraint=DR(r)||ao;else{var o=xa(a);o.flags&1&&!Za(o)&&(o=a.parent.parent.kind===194?Ct:Be),r.constraint=o}}return r.constraint===ao?void 0:r.constraint}function OL(r){var t=e.getDeclarationOfKind(r.symbol,162),a=e.isJSDocTemplateTag(t.parent)?e.getEffectiveContainerForJSDocTemplateTag(t.parent):t.parent;return a&&xn(a)}function _c(r){var t="";if(r)for(var a=r.length,o=0;o<a;){for(var s=r[o].id,f=1;o+f<a&&r[o+f].id===s+f;)f++;t.length&&(t+=","),t+=s,f>1&&(t+=":"+f),o+=f}return t}function Sm(r,t){return r?"@".concat(d(r))+(t?":".concat(_c(t)):""):""}function w0(r,t){for(var a=0,o=0,s=r;o<s.length;o++){var f=s[o];f.flags&t||(a|=e.getObjectFlags(f))}return a&917504}function qf(r,t){var a=_c(t),o=r.instantiations.get(a);return o||(o=ml(4,r.symbol),r.instantiations.set(a,o),o.objectFlags|=t?w0(t,0):0,o.target=r,o.resolvedTypeArguments=t),o}function RL(r){var t=dl(r.flags);return t.symbol=r.symbol,t.objectFlags=r.objectFlags,t.target=r.target,t.resolvedTypeArguments=r.resolvedTypeArguments,t}function M0(r,t,a,o,s){if(!o){o=X_(t);var f=Dm(o);s=a?Cd(f,a):f}var N=ml(4,r.symbol);return N.target=r,N.node=t,N.mapper=a,N.aliasSymbol=o,N.aliasTypeArguments=s,N}function ho(r){var t,a;if(!r.resolvedTypeArguments){if(!S(r,6))return((t=r.target.localTypeParameters)===null||t===void 0?void 0:t.map(function(){return Qe}))||e.emptyArray;var o=r.node,s=o?o.kind===177?e.concatenate(r.target.outerTypeParameters,cE(o,r.target.localTypeParameters)):o.kind===182?[xa(o.elementType)]:e.map(o.elements,xa):e.emptyArray;wt()?r.resolvedTypeArguments=r.mapper?Cd(s,r.mapper):s:(r.resolvedTypeArguments=((a=r.target.localTypeParameters)===null||a===void 0?void 0:a.map(function(){return Qe}))||e.emptyArray,Br(r.node||Re,r.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&Ja(r.target.symbol)))}return r.resolvedTypeArguments}function op(r){return e.length(r.target.typeParameters)}function wL(r,t){var a=vo(Ha(t)),o=a.localTypeParameters;if(o){var s=e.length(r.typeArguments),f=uu(o),N=e.isInJSFile(r),U=!sr&&N;if(!U&&(s<f||s>o.length)){var fe=N&&e.isExpressionWithTypeArguments(r)&&!e.isJSDocAugmentsTag(r.parent),Oe=f===o.length?fe?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:fe?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,je=pn(a,void 0,2);if(Br(r,Oe,je,f,o.length),!N)return Qe}if(r.kind===177&&rA(r,e.length(r.typeArguments)!==o.length))return M0(a,r,void 0);var ze=e.concatenate(a.outerTypeParameters,Wp(ob(r),o,f,N));return qf(a,ze)}return Hp(r,t)?a:Qe}function cg(r,t,a,o){var s=vo(r);if(s===Or&&M.has(r.escapedName)&&t&&t.length===1)return lb(r,t[0]);var f=Va(r),N=f.typeParameters,U=_c(t)+Sm(a,o),fe=f.instantiations.get(U);return fe||f.instantiations.set(U,fe=PA(s,Pl(N,Wp(t,N,uu(N),e.isInJSFile(r.valueDeclaration))),a,o)),fe}function LR(r,t){if(e.getCheckFlags(t)&1048576){var a=ob(r),o=Sm(t,a),s=z.get(o);return s||(s=$o(1,"error"),s.aliasSymbol=t,s.aliasTypeArguments=a,z.set(o,s)),s}var f=vo(t),N=Va(t).typeParameters;if(N){var U=e.length(r.typeArguments),fe=uu(N);if(U<fe||U>N.length)return Br(r,fe===N.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ja(t),fe,N.length),Qe;var Oe=X_(r),je=Oe&&(ML(t)||!ML(Oe))?Oe:void 0;return cg(t,ob(r),je,Dm(je))}return Hp(r,t)?f:Qe}function ML(r){var t,a=(t=r.declarations)===null||t===void 0?void 0:t.find(e.isTypeAlias);return!!(a&&e.getContainingFunction(a))}function AR(r){switch(r.kind){case 177:return r.typeName;case 227:var t=r.expression;if(e.isEntityNameExpression(t))return t}}function PL(r){return r.parent?"".concat(PL(r.parent),".").concat(r.escapedName):r.escapedName}function nb(r){var t=r.kind===160?r.right:r.kind===205?r.name:r,a=t.escapedText;if(a){var o=r.kind===160?nb(r.left):r.kind===205?nb(r.expression):void 0,s=o?"".concat(PL(o),".").concat(a):a,f=De.get(s);return f||(De.set(s,f=co(524288,a,1048576)),f.parent=o,f.declaredType=Ir),f}return cr}function ug(r,t,a){var o=AR(r);if(!o)return cr;var s=fs(o,t,a);return s&&s!==cr?s:a?cr:nb(o)}function ab(r,t){if(t===cr)return Qe;if(t=Mf(t)||t,t.flags&96)return wL(r,t);if(t.flags&524288)return LR(r,t);var a=H_(t);if(a)return Hp(r,t)?Ml(a):Qe;if(t.flags&111551&&ib(r)){var o=CR(r,t);return o||(ug(r,788968),En(t))}return Qe}function CR(r,t){var a=Zn(r);if(!a.resolvedJSDocType){var o=En(t),s=o;if(t.valueDeclaration){var f=r.kind===199&&r.qualifier;o.symbol&&o.symbol!==t&&f&&(s=ab(r,o.symbol))}a.resolvedJSDocType=s}return a.resolvedJSDocType}function FL(r,t){if(t.flags&3||t===r)return r;var a="".concat(jc(r),">").concat(jc(t)),o=rr.get(a);if(o)return o;var s=dl(33554432);return s.baseType=r,s.substitute=t,rr.set(a,s),s}function GL(r){return r.kind===183&&r.elements.length===1}function BL(r,t,a){return GL(t)&&GL(a)?BL(r,t.elements[0],a.elements[0]):T_(xa(t))===r?xa(a):void 0}function UL(r,t){for(var a,o=!0;t&&!e.isStatement(t)&&t.kind!==318;){var s=t.parent;if(s.kind===163&&(o=!o),(o||r.flags&8650752)&&s.kind===188&&t===s.trueType){var f=BL(r,s.checkType,s.extendsType);f&&(a=e.append(a,f))}t=s}return a?FL(r,To(e.append(a,r))):r}function ib(r){return!!(r.flags&4194304)&&(r.kind===177||r.kind===199)}function Hp(r,t){return r.typeArguments?(Br(r,e.Diagnostics.Type_0_is_not_generic,t?Ja(t):r.typeName?e.declarationNameToString(r.typeName):c),!1):!0}function VL(r){if(e.isIdentifier(r.typeName)){var t=r.typeArguments;switch(r.typeName.escapedText){case"String":return Hp(r),pt;case"Number":return Hp(r),Nt;case"Boolean":return Hp(r),ia;case"Void":return Hp(r),Gn;case"Undefined":return Hp(r),Rr;case"Null":return Hp(r),Lt;case"Function":case"function":return Hp(r),Fe;case"array":return(!t||!t.length)&&!sr?Wt:void 0;case"promise":return(!t||!t.length)&&!sr?ry(ke):void 0;case"Object":if(t&&t.length===2){if(e.isJSDocIndexSignature(r)){var a=xa(t[0]),o=xa(t[1]),s=a===pt||a===Nt?[Nu(a,o,!1)]:e.emptyArray;return es(void 0,ce,e.emptyArray,e.emptyArray,s)}return ke}return Hp(r),sr?void 0:ke}}}function xR(r){var t=xa(r.type);return Er?Eb(t,65536):t}function xh(r){var t=Zn(r);if(!t.resolvedType){if(e.isConstTypeReference(r)&&e.isAssertionExpression(r.parent))return t.resolvedSymbol=cr,t.resolvedType=Cs(r.parent.expression);var a=void 0,o=void 0,s=788968;ib(r)&&(o=VL(r),o||(a=ug(r,s,!0),a===cr?a=ug(r,s|111551):ug(r,s),o=ab(r,a))),o||(a=ug(r,s),o=ab(r,a)),t.resolvedSymbol=a,t.resolvedType=o}return t.resolvedType}function ob(r){return e.map(r.typeArguments,xa)}function WL(r){var t=Zn(r);if(!t.resolvedType){var a=e.isThisIdentifier(r.exprName)?Ub(r.exprName):fi(r.exprName);t.resolvedType=Ml(Gl(a))}return t.resolvedType}function jL(r,t){function a(s){var f=s.declarations;if(f)for(var N=0,U=f;N<U.length;N++){var fe=U[N];switch(fe.kind){case 256:case 257:case 259:return fe}}}if(!r)return t?ya:Qn;var o=vo(r);return o.flags&524288?e.length(o.typeParameters)!==t?(Br(a(r),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(r),t),t?ya:Qn):o:(Br(a(r),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(r)),t?ya:Qn)}function HL(r,t){return tv(r,111551,t?e.Diagnostics.Cannot_find_global_value_0:void 0)}function JL(r,t){return tv(r,788968,t?e.Diagnostics.Cannot_find_global_type_0:void 0)}function P0(r,t,a){var o=tv(r,788968,a?e.Diagnostics.Cannot_find_global_type_0:void 0);if(o&&(vo(o),e.length(Va(o).typeParameters)!==t)){var s=o.declarations&&e.find(o.declarations,e.isTypeAliasDeclaration);Br(s,e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(o),t);return}return o}function tv(r,t,a){return Ho(void 0,r,t,a,r,!1,!1,!1)}function Zs(r,t,a){var o=JL(r,a);return o||a?jL(o,t):void 0}function IR(){return _s||(_s=Zs("TypedPropertyDescriptor",1,!0)||ya)}function NR(){return ns||(ns=Zs("TemplateStringsArray",0,!0)||Qn)}function KL(){return me||(me=Zs("ImportMeta",0,!0)||Qn)}function kR(){if(!Pr){var r=co(0,"ImportMetaExpression"),t=KL(),a=co(4,"meta",8);a.parent=r,a.type=t;var o=e.createSymbolTable([a]);r.members=o,Pr=es(r,o,e.emptyArray,e.emptyArray,e.emptyArray)}return Pr}function zL(r){return yt||(yt=Zs("ImportCallOptions",0,r))||Qn}function qL(r){return ii||(ii=HL("Symbol",r))}function OR(r){return Si||(Si=JL("SymbolConstructor",r))}function XL(r){return Oi||(Oi=Zs("Symbol",0,r))||Qn}function Ih(r){return os||(os=Zs("Promise",1,r))||ya}function YL(r){return jo||(jo=Zs("PromiseLike",1,r))||ya}function F0(r){return At||(At=HL("Promise",r))}function RR(r){return Wn||(Wn=Zs("PromiseConstructorLike",0,r))||Qn}function wR(r){return Mi||(Mi=Zs("AsyncIterable",1,r))||ya}function MR(r){return Vi||(Vi=Zs("AsyncIterator",3,r))||ya}function PR(r){return Ro||(Ro=Zs("AsyncIterableIterator",1,r))||ya}function FR(r){return Yo||(Yo=Zs("AsyncGenerator",3,r))||ya}function QL(r){return sa||(sa=Zs("Iterable",1,r))||ya}function GR(r){return oi||(oi=Zs("Iterator",3,r))||ya}function BR(r){return vi||(vi=Zs("IterableIterator",1,r))||ya}function UR(r){return Ui||(Ui=Zs("Generator",3,r))||ya}function VR(r){return Ca||(Ca=Zs("IteratorYieldResult",1,r))||ya}function WR(r){return gi||(gi=Zs("IteratorReturnResult",1,r))||ya}function ZL(r,t){t===void 0&&(t=0);var a=tv(r,788968,void 0);return a&&jL(a,t)}function jR(){return Le||(Le=P0("Extract",2,!0)||cr),Le===cr?void 0:Le}function HR(){return Xr||(Xr=P0("Omit",2,!0)||cr),Xr===cr?void 0:Xr}function G0(r){return an||(an=P0("Awaited",1,r)||(r?cr:void 0)),an===cr?void 0:an}function JR(r){return Xn||(Xn=Zs("BigInt",0,r))||Qn}function nv(r,t){return r!==ya?qf(r,t):Qn}function $L(r){return nv(IR(),[r])}function KR(r){return nv(QL(!0),[r])}function Js(r,t){return nv(t?oe:ye,[r])}function B0(r){switch(r.kind){case 184:return 2;case 185:return eA(r);case 196:return r.questionToken?2:r.dotDotDotToken?eA(r):1;default:return 1}}function eA(r){return Rh(r.type)?4:8}function zR(r){var t=XR(r.parent),a=Rh(r);if(a)return t?oe:ye;var o=e.map(r.elements,B0),s=e.some(r.elements,function(f){return f.kind!==196});return U0(o,t,s?void 0:r.elements)}function rA(r,t){return!!X_(r)||tA(r)&&(r.kind===182?Ad(r.elementType):r.kind===183?e.some(r.elements,Ad):t||e.some(r.typeArguments,Ad))}function tA(r){var t=r.parent;switch(t.kind){case 190:case 196:case 177:case 186:case 187:case 193:case 188:case 192:case 182:case 183:return tA(t);case 258:return!0}return!1}function Ad(r){switch(r.kind){case 177:return ib(r)||!!(ug(r,788968).flags&524288);case 180:return!0;case 192:return r.operator!==153&&Ad(r.type);case 190:case 184:case 196:case 314:case 312:case 313:case 307:return Ad(r.type);case 185:return r.type.kind!==182||Ad(r.type.elementType);case 186:case 187:return e.some(r.types,Ad);case 193:return Ad(r.objectType)||Ad(r.indexType);case 188:return Ad(r.checkType)||Ad(r.extendsType)||Ad(r.trueType)||Ad(r.falseType)}return!1}function qR(r){var t=Zn(r);if(!t.resolvedType){var a=zR(r);if(a===ya)t.resolvedType=Qn;else if(!(r.kind===183&&e.some(r.elements,function(s){return!!(B0(s)&8)}))&&rA(r))t.resolvedType=r.kind===183&&r.elements.length===0?a:M0(a,r,void 0);else{var o=r.kind===182?[xa(r.elementType)]:e.map(r.elements,xa);t.resolvedType=V0(a,o)}}return t.resolvedType}function XR(r){return e.isTypeOperatorNode(r)&&r.operator===144}function ku(r,t,a,o){a===void 0&&(a=!1);var s=U0(t||e.map(r,function(f){return 1}),a,o);return s===ya?Qn:r.length?V0(s,r):s}function U0(r,t,a){if(r.length===1&&r[0]&4)return t?oe:ye;var o=e.map(r,function(f){return f&1?"#":f&2?"?":f&4?".":"*"}).join()+(t?"R":"")+(a&&a.length?","+e.map(a,w).join(","):""),s=_t.get(o);return s||_t.set(o,s=YR(r,t,a)),s}function YR(r,t,a){var o=r.length,s=e.countWhere(r,function(Tt){return!!(Tt&9)}),f,N=[],U=0;if(o){f=new Array(o);for(var fe=0;fe<o;fe++){var Oe=f[fe]=tc(),je=r[fe];if(U|=je,!(U&12)){var ze=co(4|(je&2?16777216:0),""+fe,t?8:0);ze.tupleLabelDeclaration=a==null?void 0:a[fe],ze.type=Oe,N.push(ze)}}}var tr=N.length,_r=co(4,"length");if(U&12)_r.type=Nt;else{for(var Vr=[],fe=s;fe<=o;fe++)Vr.push(Yf(fe));_r.type=ha(Vr)}N.push(_r);var $r=ml(12);return $r.typeParameters=f,$r.outerTypeParameters=void 0,$r.localTypeParameters=f,$r.instantiations=new e.Map,$r.instantiations.set(_c($r.typeParameters),$r),$r.target=$r,$r.resolvedTypeArguments=$r.typeParameters,$r.thisType=tc(),$r.thisType.isThisType=!0,$r.thisType.constraint=$r,$r.declaredProperties=N,$r.declaredCallSignatures=e.emptyArray,$r.declaredConstructSignatures=e.emptyArray,$r.declaredIndexInfos=e.emptyArray,$r.elementFlags=r,$r.minLength=s,$r.fixedLength=tr,$r.hasRestElement=!!(U&12),$r.combinedFlags=U,$r.readonly=t,$r.labeledElementDeclarations=a,$r}function V0(r,t){return r.objectFlags&8?nA(r,t):qf(r,t)}function nA(r,t){var a,o,s;if(!(r.combinedFlags&14))return qf(r,t);if(r.combinedFlags&8){var f=e.findIndex(t,function(St,It){return!!(r.elementFlags[It]&8&&St.flags&1179648)});if(f>=0)return Nh(e.map(t,function(St,It){return r.elementFlags[It]&8?St:Be}))?ms(t[f],function(St){return nA(r,e.replaceElement(t,f,St))}):Qe}for(var N=[],U=[],fe=[],Oe=-1,je=-1,ze=-1,tr=function(St){var It=t[St],jt=r.elementFlags[St];if(jt&8)if(It.flags&58982400||wl(It))Tt(It,8,(a=r.labeledElementDeclarations)===null||a===void 0?void 0:a[St]);else if(ki(It)){var In=ho(It);if(In.length+N.length>=1e4)return Br(Re,e.isPartOfTypeNode(Re)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Qe};e.forEach(In,function(sn,ua){var la;return Tt(sn,It.target.elementFlags[ua],(la=It.target.labeledElementDeclarations)===null||la===void 0?void 0:la[ua])})}else Tt(_p(It)&&Qu(It,Nt)||Qe,4,(o=r.labeledElementDeclarations)===null||o===void 0?void 0:o[St]);else Tt(It,jt,(s=r.labeledElementDeclarations)===null||s===void 0?void 0:s[St])},_r=0;_r<t.length;_r++){var Vr=tr(_r);if(typeof Vr=="object")return Vr.value}for(var _r=0;_r<Oe;_r++)U[_r]&2&&(U[_r]=1);je>=0&&je<ze&&(N[je]=ha(e.sameMap(N.slice(je,ze+1),function(St,It){return U[je+It]&8?Xl(St,Nt):St})),N.splice(je+1,ze-je),U.splice(je+1,ze-je),fe==null||fe.splice(je+1,ze-je));var $r=U0(U,r.readonly,fe);return $r===ya?Qn:U.length?qf($r,N):$r;function Tt(St,It,jt){It&1&&(Oe=U.length),It&4&&je<0&&(je=U.length),It&6&&(ze=U.length),N.push(St),U.push(It),fe&&jt?fe.push(jt):fe=void 0}}function av(r,t,a){a===void 0&&(a=0);var o=r.target,s=op(r)-a;return t>o.fixedLength?ww(r)||ku(e.emptyArray):ku(ho(r).slice(t,s),o.elementFlags.slice(t,s),!1,o.labeledElementDeclarations&&o.labeledElementDeclarations.slice(t,s))}function aA(r){return ha(e.append(e.arrayOf(r.target.fixedLength,function(t){return xc(""+t)}),Zu(r.target.readonly?oe:ye)))}function iA(r,t){var a=e.findIndex(r.elementFlags,function(o){return!(o&t)});return a>=0?a:r.elementFlags.length}function sb(r,t){return r.elementFlags.length-e.findLastIndex(r.elementFlags,function(a){return!(a&t)})-1}function QR(r){return ac(xa(r.type),!0)}function jc(r){return r.id}function sp(r,t){return e.binarySearch(r,t,jc,e.compareValues)>=0}function W0(r,t){var a=e.binarySearch(r,t,jc,e.compareValues);return a<0?(r.splice(~a,0,t),!0):!1}function ZR(r,t,a){var o=a.flags;if(o&1048576)return oA(r,t|(t4(a)?1048576:0),a.types);if(!(o&131072))if(t|=o&205258751,o&465829888&&(t|=33554432),a===Xe&&(t|=8388608),!Er&&o&98304)e.getObjectFlags(a)&131072||(t|=4194304);else{var s=r.length,f=s&&a.id>r[s-1].id?~s:e.binarySearch(r,a,jc,e.compareValues);f<0&&r.splice(~f,0,a)}return t}function oA(r,t,a){for(var o=0,s=a;o<s.length;o++){var f=s[o];t=ZR(r,t,f)}return t}function $R(r,t){var a=_c(r),o=pr.get(a);if(o)return o;for(var s=t&&e.some(r,function(Tt){return!!(Tt.flags&524288)&&!wl(Tt)&&d1(Wc(Tt))}),f=r.length,N=f,U=0;N>0;){N--;var fe=r[N];if(s||fe.flags&469499904)for(var Oe=fe.flags&61603840?e.find(ro(fe),function(Tt){return Ou(En(Tt))}):void 0,je=Oe&&Ml(En(Oe)),ze=0,tr=r;ze<tr.length;ze++){var _r=tr[ze];if(fe!==_r){if(U===1e5){var Vr=U/(f-N)*f;if(Vr>1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:r.map(function(Tt){return Tt.id})}),Br(Re,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(U++,Oe&&_r.flags&61603840){var $r=na(_r,Oe.escapedName);if($r&&Ou($r)&&Ml($r)!==je)continue}if(Zf(fe,_r,ta)&&(!(e.getObjectFlags(v_(fe))&1)||!(e.getObjectFlags(v_(_r))&1)||xm(fe,_r))){e.orderedRemoveItemAt(r,N);break}}}}return pr.set(a,r),r}function e4(r,t,a){for(var o=r.length;o>0;){o--;var s=r[o],f=s.flags,N=f&402653312&&t&4||f&256&&t&8||f&2048&&t&64||f&8192&&t&4096||a&&f&32768&&t&16384||Kp(s)&&sp(r,s.regularType);N&&e.orderedRemoveItemAt(r,o)}}function r4(r){var t=e.filter(r,pg);if(t.length)for(var a=r.length,o=function(){a--;var s=r[a];s.flags&128&&e.some(t,function(f){return vC(s,f)})&&e.orderedRemoveItemAt(r,a)};a>0;)o()}function t4(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function sA(r,t){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.flags&1048576){var f=s.origin;s.aliasSymbol||f&&!(f.flags&1048576)?e.pushIfUnique(r,s):f&&f.flags&1048576&&sA(r,f.types)}}}function j0(r,t){var a=Ip(r);return a.types=t,a}function ha(r,t,a,o,s){if(t===void 0&&(t=1),r.length===0)return nn;if(r.length===1)return r[0];var f=[],N=oA(f,0,r);if(t!==0){if(N&3)return N&1?N&8388608?Xe:ke:N&65536||sp(f,Be)?Be:yr;if(de&&N&32768){var U=e.binarySearch(f,mt,jc,e.compareValues);U>=0&&sp(f,Rr)&&e.orderedRemoveItemAt(f,U)}if((N&402664320||N&16384&&N&32768)&&e4(f,N,!!(t&2)),N&128&&N&134217728&&r4(f),t===2&&(f=$R(f,!!(N&524288)),!f))return Qe;if(f.length===0)return N&65536?N&4194304?Lt:vt:N&32768?N&4194304?Rr:zr:nn}if(!s&&N&1048576){var fe=[];sA(fe,r);for(var Oe=[],je=function(It){e.some(fe,function(jt){return sp(jt.types,It)})||Oe.push(It)},ze=0,tr=f;ze<tr.length;ze++){var _r=tr[ze];je(_r)}if(!a&&fe.length===1&&Oe.length===0)return fe[0];var Vr=e.reduceLeft(fe,function(It,jt){return It+jt.types.length},0);if(Vr+Oe.length===f.length){for(var $r=0,Tt=fe;$r<Tt.length;$r++){var _r=Tt[$r];W0(Oe,_r)}s=j0(1048576,Oe)}}var St=(N&36323363?0:65536)|(N&2097152?33554432:0);return J0(f,St,a,o,s)}function n4(r,t){for(var a,o=[],s=0,f=r;s<f.length;s++){var N=f[s],U=Cc(N);if(!U||U.kind===2||U.kind===3){if(t!==2097152)continue;return}if(a){if(!H0(a,U))return}else a=U;o.push(U.type)}if(!!a){var fe=AL(o,t);return Em(a.kind,a.parameterName,a.parameterIndex,fe)}}function H0(r,t){return r.kind===t.kind&&r.parameterIndex===t.parameterIndex}function J0(r,t,a,o,s){if(r.length===0)return nn;if(r.length===1)return r[0];var f=s?s.flags&1048576?"|".concat(_c(s.types)):s.flags&2097152?"&".concat(_c(s.types)):"#".concat(s.type.id,"|").concat(_c(r)):_c(r),N=f+Sm(a,o),U=kt.get(N);return U||(U=dl(1048576),U.objectFlags=t|w0(r,98304),U.types=r,U.origin=s,U.aliasSymbol=a,U.aliasTypeArguments=o,r.length===2&&r[0].flags&512&&r[1].flags&512&&(U.flags|=16,U.intrinsicName="boolean"),kt.set(N,U)),U}function a4(r){var t=Zn(r);if(!t.resolvedType){var a=X_(r);t.resolvedType=ha(e.map(r.types,xa),1,a,Dm(a))}return t.resolvedType}function i4(r,t,a){var o=a.flags;return o&2097152?lA(r,t,a.types):(HA(a)?t&16777216||(t|=16777216,r.set(a.id.toString(),a)):(o&3?a===Xe&&(t|=8388608):(Er||!(o&98304))&&(de&&a===mt&&(t|=262144,a=Rr),r.has(a.id.toString())||(a.flags&109440&&t&109440&&(t|=67108864),r.set(a.id.toString(),a))),t|=o&205258751),t)}function lA(r,t,a){for(var o=0,s=a;o<s.length;o++){var f=s[o];t=i4(r,t,Ml(f))}return t}function o4(r,t){for(var a=r.length;a>0;){a--;var o=r[a],s=o.flags&4&&t&128||o.flags&8&&t&256||o.flags&64&&t&2048||o.flags&4096&&t&8192;s&&e.orderedRemoveItemAt(r,a)}}function s4(r,t){for(var a=0,o=r;a<o.length;a++){var s=o[a];if(!sp(s.types,t)){var f=t.flags&128?pt:t.flags&256?Nt:t.flags&2048?Xt:t.flags&8192?pa:void 0;if(!f||!sp(s.types,f))return!1}}return!0}function l4(r){for(var t=r.length,a=e.filter(r,function(U){return!!(U.flags&128)});t>0;){t--;var o=r[t];if(!!(o.flags&134217728))for(var s=0,f=a;s<f.length;s++){var N=f[s];if(xd(N,o)){e.orderedRemoveItemAt(r,t);break}else if(pg(o))return!0}}return!1}function cA(r,t){return e.every(r,function(a){return!!(a.flags&1048576)&&e.some(a.types,function(o){return!!(o.flags&t)})})}function uA(r,t){for(var a=0;a<r.length;a++)r[a]=el(r[a],function(o){return!(o.flags&t)})}function c4(r){var t,a=e.findIndex(r,function(tr){return!!(e.getObjectFlags(tr)&65536)});if(a<0)return!1;for(var o=a+1;o<r.length;){var s=r[o];e.getObjectFlags(s)&65536?((t||(t=[r[a]])).push(s),e.orderedRemoveItemAt(r,o)):o++}if(!t)return!1;for(var f=[],N=[],U=0,fe=t;U<fe.length;U++)for(var Oe=fe[U],je=0,ze=Oe.types;je<ze.length;je++){var s=ze[je];W0(f,s)&&s4(t,s)&&W0(N,s)}return r[a]=J0(N,65536),!0}function u4(r,t,a){var o=dl(2097152);return o.objectFlags=w0(r,98304),o.types=r,o.aliasSymbol=t,o.aliasTypeArguments=a,o}function To(r,t,a){var o=new e.Map,s=lA(o,0,r),f=e.arrayFrom(o.values());if(s&131072)return e.contains(f,bt)?bt:nn;if(Er&&s&98304&&s&84410368||s&67108864&&s&402783228||s&402653316&&s&67238776||s&296&&s&469891796||s&2112&&s&469889980||s&12288&&s&469879804||s&49152&&s&469842940||s&134217728&&s&128&&l4(f))return nn;if(s&1)return s&8388608?Xe:ke;if(!Er&&s&98304)return s&32768?Rr:Lt;if((s&4&&s&128||s&8&&s&256||s&64&&s&2048||s&4096&&s&8192)&&o4(f,s),s&16777216&&s&524288&&e.orderedRemoveItemAt(f,e.findIndex(f,HA)),s&262144&&(f[f.indexOf(Rr)]=mt),f.length===0)return Be;if(f.length===1)return f[0];var N=_c(f)+Sm(t,a),U=Yt.get(N);if(!U){if(s&1048576)if(c4(f))U=To(f,t,a);else if(cA(f,32768)){var fe=de&&e.some(f,function(ze){return sp(ze.types,mt)})?mt:Rr;uA(f,32768),U=ha([To(f),fe],1,t,a)}else if(cA(f,65536))uA(f,65536),U=ha([To(f),Lt],1,t,a);else{if(!Nh(f))return Qe;var Oe=f4(f),je=e.some(Oe,function(ze){return!!(ze.flags&2097152)})?j0(2097152,f):void 0;U=ha(Oe,1,t,a,je)}else U=u4(f,t,a);Yt.set(N,U)}return U}function fA(r){return e.reduceLeft(r,function(t,a){return a.flags&1048576?t*a.types.length:a.flags&131072?0:t},1)}function Nh(r){var t=fA(r);return t>=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:r.map(function(a){return a.id}),size:t}),Br(Re,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function f4(r){for(var t=fA(r),a=[],o=0;o<t;o++){for(var s=r.slice(),f=o,N=r.length-1;N>=0;N--)if(r[N].flags&1048576){var U=r[N].types,fe=U.length;s[N]=U[f%fe],f=Math.floor(f/fe)}var Oe=To(s);Oe.flags&131072||a.push(Oe)}return a}function d4(r){var t=Zn(r);if(!t.resolvedType){var a=X_(r);t.resolvedType=To(e.map(r.types,xa),a,Dm(a))}return t.resolvedType}function dA(r,t){var a=dl(4194304);return a.type=r,a.stringsOnly=t,a}function p4(r){var t=Ip(4194304);return t.type=r,t}function pA(r,t){return t?r.resolvedStringIndexType||(r.resolvedStringIndexType=dA(r,!0)):r.resolvedIndexType||(r.resolvedIndexType=dA(r,!1))}function _4(r,t,a){var o=lu(r),s=Dc(r),f=Td(r.target||r);if(!f&&!a)return s;var N=[];if($m(r)){if(q_(s))return pA(r,t);var U=Dn(eg(r));hh(U,8576,t,Oe)}else C_(Zm(s),Oe);q_(s)&&C_(s,Oe);var fe=a?el(ha(N),function(je){return!(je.flags&5)}):ha(N);if(fe.flags&1048576&&s.flags&1048576&&_c(fe.types)===_c(s.types))return s;return fe;function Oe(je){var ze=f?ci(f,lv(r.mapper,o,je)):je;N.push(ze===pt?ra:ze)}}function m4(r){var t=lu(r);return a(Td(r)||t);function a(o){return o.flags&68157439?!0:o.flags&16777216?o.root.isDistributive&&o.checkType===t:o.flags&137363456?e.every(o.types,a):o.flags&8388608?a(o.objectType)&&a(o.indexType):o.flags&33554432?a(o.substitute):o.flags&268435456?a(o.type):!1}}function lp(r){return e.isPrivateIdentifier(r)?nn:e.isIdentifier(r)?xc(e.unescapeLeadingUnderscores(r.escapedText)):Ml(e.isComputedPropertyName(r)?td(r):fi(r))}function fg(r,t,a){if(a||!(e.getDeclarationModifierFlagsFromSymbol(r)&24)){var o=Va(Qm(r)).nameType;if(!o){var s=e.getNameOfDeclaration(r.valueDeclaration);o=r.escapedName==="default"?xc("default"):s&&lp(s)||(e.isKnownSymbol(r)?void 0:xc(e.symbolName(r)))}if(o&&o.flags&t)return o}return nn}function _A(r,t){return!!(r.flags&t||r.flags&2097152&&e.some(r.types,function(a){return _A(a,t)}))}function g4(r,t,a){var o=a&&(e.getObjectFlags(r)&7||r.aliasSymbol)?p4(r):void 0,s=e.map(ro(r),function(N){return fg(N,t)}),f=e.map(Bs(r),function(N){return N!==ja&&_A(N.keyType,t)?N.keyType===pt&&t&8?ra:N.keyType:nn});return ha(e.concatenate(s,f),1,void 0,void 0,o)}function Zu(r,t,a){return t===void 0&&(t=fr),r=to(r),r.flags&1048576?To(e.map(r.types,function(o){return Zu(o,t,a)})):r.flags&2097152?ha(e.map(r.types,function(o){return Zu(o,t,a)})):r.flags&58982400||vg(r)||wl(r)&&!m4(r)?pA(r,t):e.getObjectFlags(r)&32?_4(r,t,a):r===Xe?Xe:r.flags&2?nn:r.flags&131073?Ct:g4(r,(a?128:402653316)|(t?0:12584),t===fr&&!a)}function mA(r){if(fr)return r;var t=jR();return t?cg(t,[r,pt]):pt}function v4(r){var t=mA(Zu(r));return t.flags&131072?pt:t}function h4(r){var t=Zn(r);if(!t.resolvedType)switch(r.operator){case 140:t.resolvedType=Zu(xa(r.type));break;case 153:t.resolvedType=r.type.kind===150?n1(e.walkUpParenthesizedTypes(r.parent)):Qe;break;case 144:t.resolvedType=xa(r.type);break;default:throw e.Debug.assertNever(r.operator)}return t.resolvedType}function y4(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=dg(Bt([r.head.text],e.map(r.templateSpans,function(a){return a.literal.text}),!0),e.map(r.templateSpans,function(a){return xa(a.type)}))),t.resolvedType}function dg(r,t){var a=e.findIndex(t,function(Oe){return!!(Oe.flags&1179648)});if(a>=0)return Nh(t)?ms(t[a],function(Oe){return dg(r,e.replaceElement(t,a,Oe))}):Qe;if(e.contains(t,Xe))return Xe;var o=[],s=[],f=r[0];if(!fe(r,t))return pt;if(o.length===0)return xc(f);if(s.push(f),e.every(s,function(Oe){return Oe===""})&&e.every(o,function(Oe){return!!(Oe.flags&4)}))return pt;var N="".concat(_c(o),"|").concat(e.map(s,function(Oe){return Oe.length}).join(","),"|").concat(s.join("")),U=ir.get(N);return U||ir.set(N,U=E4(s,o)),U;function fe(Oe,je){for(var ze=0;ze<je.length;ze++){var tr=je[ze];if(tr.flags&101248)f+=b4(tr)||"",f+=Oe[ze+1];else if(tr.flags&134217728){if(f+=tr.texts[0],!fe(tr.texts,tr.types))return!1;f+=Oe[ze+1]}else if(q_(tr)||vA(tr))o.push(tr),s.push(f),f=Oe[ze+1];else return!1}return!0}}function b4(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?e.pseudoBigIntToString(r.value):r.flags&98816?r.intrinsicName:void 0}function E4(r,t){var a=dl(134217728);return a.texts=r,a.types=t,a}function lb(r,t){return t.flags&1179648?ms(t,function(a){return lb(r,a)}):q_(t)?S4(r,t):t.flags&128?xc(T4(r,t.value)):t}function T4(r,t){switch(M.get(r.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}function S4(r,t){var a="".concat(d(r),",").concat(jc(t)),o=ge.get(a);return o||ge.set(a,o=D4(r,t)),o}function D4(r,t){var a=dl(268435456);return a.symbol=r,a.type=t,a}function L4(r,t,a,o,s){var f=dl(8388608);return f.objectType=r,f.indexType=t,f.accessFlags=a,f.aliasSymbol=o,f.aliasTypeArguments=s,f}function iv(r){if(sr)return!1;if(e.getObjectFlags(r)&8192)return!0;if(r.flags&1048576)return e.every(r.types,iv);if(r.flags&2097152)return e.some(r.types,iv);if(r.flags&465829888){var t=Lh(r);return t!==r&&iv(t)}return!1}function K0(r,t){return Yu(r)?Au(r):t&&e.isPropertyName(t)?e.getPropertyNameForPropertyNameNode(t):void 0}function z0(r,t){if(t.flags&8208){var a=e.findAncestor(r.parent,function(o){return!e.isAccessExpression(o)})||r.parent;return e.isCallLikeExpression(a)?e.isCallOrNewExpression(a)&&e.isIdentifier(r)&&LC(a,r):e.every(t.declarations,function(o){return!e.isFunctionLike(o)||!!(e.getCombinedNodeFlags(o)&134217728)})}return!0}function gA(r,t,a,o,s,f){var N,U=s&&s.kind===206?s:void 0,fe=s&&e.isPrivateIdentifier(s)?void 0:K0(a,s);if(fe!==void 0){if(f&256)return N_(t,fe)||ke;var Oe=pi(t,fe);if(Oe){if(f&64&&s&&Oe.declarations&&yv(Oe)&134217728&&z0(s,Oe)){var je=(N=U==null?void 0:U.argumentExpression)!==null&&N!==void 0?N:e.isIndexedAccessTypeNode(s)?s.indexType:s;Mc(je,Oe.declarations,fe)}if(U){if(Qh(Oe,U,xx(U.expression,t.symbol)),_I(U,Oe,e.getAssignmentTargetKind(U))){Br(U.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ja(Oe));return}if(f&8&&(Zn(s).resolvedSymbol=Oe),Ex(U,Oe))return dr}var ze=En(Oe);return U&&e.getAssignmentTargetKind(U)!==1?I_(U,ze):ze}if(ed(t,ki)&&rd(fe)&&+fe>=0){if(s&&ed(t,function(sn){return!sn.target.hasRestElement})&&!(f&16)){var tr=q0(s);ki(t)?Br(tr,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,pn(t),op(t),e.unescapeLeadingUnderscores(fe)):Br(tr,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(fe),pn(t))}return In(cu(t,Nt)),ms(t,function(sn){var ua=fv(sn)||Rr;return f&1?ha([ua,Rr]):ua})}}if(!(a.flags&98304)&&hs(a,402665900)){if(t.flags&131073)return t;var _r=K_(t,a)||cu(t,pt);if(_r){if(f&2&&_r.keyType!==Nt){U&&Br(U,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,pn(a),pn(r));return}if(s&&_r.keyType===pt&&!hs(a,12)){var tr=q0(s);return Br(tr,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,pn(a)),f&1?ha([_r.type,Rr]):_r.type}return In(_r),f&1?ha([_r.type,Rr]):_r.type}if(a.flags&131072)return nn;if(iv(t))return ke;if(U&&!MT(t)){if(Xp(t)){if(sr&&a.flags&384)return fa.add(e.createDiagnosticForNode(U,e.Diagnostics.Property_0_does_not_exist_on_type_1,a.value,pn(t))),Rr;if(a.flags&12){var Vr=e.map(t.properties,function(sn){return En(sn)});return ha(e.append(Vr,Rr))}}if(t.symbol===lr&&fe!==void 0&&lr.exports.has(fe)&&lr.exports.get(fe).flags&418)Br(U,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(fe),pn(t));else if(sr&&!We.suppressImplicitAnyIndexErrors&&!(f&128))if(fe!==void 0&&Lx(fe,t)){var $r=pn(t);Br(U,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,fe,$r,$r+"["+e.getTextOfNode(U.argumentExpression)+"]")}else if(Qu(t,Nt))Br(U.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var Tt=void 0;if(fe!==void 0&&(Tt=yT(fe,t)))Tt!==void 0&&Br(U.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,fe,pn(t),Tt);else{var St=oP(t,U,a);if(St!==void 0)Br(U,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,pn(t),St);else{var It=void 0;if(a.flags&1024)It=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+pn(a)+"]",pn(t));else if(a.flags&8192){var jt=Xs(a.symbol,U);It=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+jt+"]",pn(t))}else a.flags&128||a.flags&256?It=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,a.value,pn(t)):a.flags&12&&(It=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,pn(a),pn(t)));It=e.chainDiagnosticMessages(It,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,pn(o),pn(t)),fa.add(e.createDiagnosticForNodeFromMessageChain(U,It))}}}return}}if(iv(t))return ke;if(s){var tr=q0(s);a.flags&384?Br(tr,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+a.value,pn(t)):a.flags&12?Br(tr,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,pn(t),pn(a)):Br(tr,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,pn(a))}if(wa(a))return a;return;function In(sn){sn&&sn.isReadonly&&U&&(e.isAssignmentTarget(U)||e.isDeleteTarget(U))&&Br(U,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,pn(t))}}function q0(r){return r.kind===206?r.argumentExpression:r.kind===193?r.indexType:r.kind===161?r.expression:r}function vA(r){return!!(r.flags&77)}function pg(r){return!!(r.flags&134217728)&&e.every(r.types,vA)}function ov(r){return!!sv(r)}function z_(r){return!!(sv(r)&8388608)}function q_(r){return!!(sv(r)&16777216)}function sv(r){return r.flags&3145728?(r.objectFlags&4194304||(r.objectFlags|=4194304|e.reduceLeft(r.types,function(t,a){return t|sv(a)},0)),r.objectFlags&25165824):r.flags&33554432?(r.objectFlags&4194304||(r.objectFlags|=4194304|sv(r.substitute)|sv(r.baseType)),r.objectFlags&25165824):(r.flags&58982400||wl(r)||vg(r)?8388608:0)|(r.flags&465829888&&!pg(r)?16777216:0)}function kh(r){return!!(r.flags&262144&&r.isThisType)}function Xf(r,t){return r.flags&8388608?C4(r,t):r.flags&16777216?x4(r,t):r}function hA(r,t,a){if(r.flags&3145728){var o=e.map(r.types,function(s){return Xf(Xl(s,t),a)});return r.flags&2097152||a?To(o):ha(o)}}function A4(r,t,a){if(t.flags&1048576){var o=e.map(t.types,function(s){return Xf(Xl(r,s),a)});return a?To(o):ha(o)}}function C4(r,t){var a=t?"simplifiedForWriting":"simplifiedForReading";if(r[a])return r[a]===ei?r:r[a];r[a]=ei;var o=Xf(r.objectType,t),s=Xf(r.indexType,t),f=A4(o,s,t);if(f)return r[a]=f;if(!(s.flags&465829888)){var N=hA(o,s,t);if(N)return r[a]=N}if(vg(o)&&s.flags&296){var U=bb(o,s.flags&8?0:o.target.fixedLength,0,t);if(U)return r[a]=U}return wl(o)?r[a]=ms(bA(o,r.indexType),function(fe){return Xf(fe,t)}):r[a]=r}function x4(r,t){var a=r.checkType,o=r.extendsType,s=up(r),f=fp(r);if(f.flags&131072&&T_(s)===T_(a)){if(a.flags&1||$i(L_(a),L_(o)))return Xf(s,t);if(yA(a,o))return nn}else if(s.flags&131072&&T_(f)===T_(a)){if(!(a.flags&1)&&$i(L_(a),L_(o)))return nn;if(a.flags&1||yA(a,o))return Xf(f,t)}return r}function yA(r,t){return!!(ha([J_(r,t),nn]).flags&131072)}function bA(r,t){var a=Pl([lu(r)],[t]),o=D_(r.mapper,a);return ci(xu(r),o)}function Xl(r,t,a,o,s,f){return a===void 0&&(a=0),cp(r,t,a,o,s,f)||(o?Qe:Be)}function EA(r,t){return ed(r,function(a){if(a.flags&384){var o=Au(a);if(rd(o)){var s=+o;return s>=0&&s<t}}return!1})}function cp(r,t,a,o,s,f){if(a===void 0&&(a=0),r===Xe||t===Xe)return Xe;if(JA(r)&&!(t.flags&98304)&&hs(t,12)&&(t=pt),We.noUncheckedIndexedAccess&&a&32&&(a|=1),q_(t)||(o&&o.kind!==193?vg(r)&&!EA(t,r.target.fixedLength):z_(r)&&!(ki(r)&&EA(t,r.target.fixedLength)))){if(r.flags&3)return r;var N=a&1,U=r.id+","+t.id+","+N+Sm(s,f),fe=Zr.get(U);return fe||Zr.set(U,fe=L4(r,t,N,s,f)),fe}var Oe=ma(r);if(t.flags&1048576&&!(t.flags&16)){for(var je=[],ze=!1,tr=0,_r=t.types;tr<_r.length;tr++){var Vr=_r[tr],$r=gA(r,Oe,Vr,t,o,a|(ze?128:0));if($r)je.push($r);else if(o)ze=!0;else return}return ze?void 0:a&4?To(je,s,f):ha(je,1,s,f)}return gA(r,Oe,t,t,o,a|8|64)}function TA(r){var t=Zn(r);if(!t.resolvedType){var a=xa(r.objectType),o=xa(r.indexType),s=X_(r),f=Xl(a,o,0,r,s,Dm(s));t.resolvedType=f.flags&8388608&&f.objectType===a&&f.indexType===o?UL(f,r):f}return t.resolvedType}function X0(r){var t=Zn(r);if(!t.resolvedType){var a=ml(32,r.symbol);a.declaration=r,a.aliasSymbol=X_(r),a.aliasTypeArguments=Dm(a.aliasSymbol),t.resolvedType=a,Dc(a)}return t.resolvedType}function T_(r){return r.flags&33554432?r.baseType:r.flags&8388608&&(r.objectType.flags&33554432||r.indexType.flags&33554432)?Xl(T_(r.objectType),T_(r.indexType)):r}function SA(r){return!r.isDistributive&&DA(r.node.checkType)&&DA(r.node.extendsType)}function DA(r){return e.isTupleTypeNode(r)&&e.length(r.elements)===1&&!e.isOptionalTypeNode(r.elements[0])&&!e.isRestTypeNode(r.elements[0])}function Y0(r,t){return SA(r)&&ki(t)?ho(t)[0]:t}function Q0(r,t,a,o){for(var s,f,N=0;;){if(N===1e3){Br(Re,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),s=Qe;break}var U=SA(r),fe=ci(Y0(r,T_(r.checkType)),t),Oe=ov(fe),je=ci(Y0(r,r.extendsType),t);if(fe===Xe||je===Xe)return Xe;var ze=void 0;if(r.inferTypeParameters){var tr=pv(r.inferTypeParameters,void 0,0);Oe||Df(tr.inferences,fe,je,1536),ze=t?D_(tr.mapper,t):tr.mapper}var _r=ze?ci(Y0(r,r.extendsType),ze):je;if(!Oe&&!ov(_r)){if(!(_r.flags&3)&&(fe.flags&1&&!U||!$i(mb(fe),mb(_r)))){fe.flags&1&&!U&&(f||(f=[])).push(ci(xa(r.node.trueType),ze||t));var Vr=xa(r.node.falseType);if(Vr.flags&16777216){var $r=Vr.root;if($r.node.parent===r.node&&(!$r.isDistributive||$r.checkType===r.checkType)){r=$r;continue}if(It(Vr,t))continue}s=ci(Vr,t);break}if(_r.flags&3||$i(L_(fe),L_(_r))){var Tt=xa(r.node.trueType),St=ze||t;if(It(Tt,St))continue;s=ci(Tt,St);break}}s=dl(16777216),s.root=r,s.checkType=ci(r.checkType,t),s.extendsType=ci(r.extendsType,t),s.mapper=t,s.combinedMapper=ze,s.aliasSymbol=a||r.aliasSymbol,s.aliasTypeArguments=a?o:Cd(r.aliasTypeArguments,t);break}return f?ha(e.append(f,s)):s;function It(jt,In){if(jt.flags&16777216&&In){var sn=jt.root;if(sn.outerTypeParameters){var ua=D_(jt.mapper,In),la=e.map(sn.outerTypeParameters,function(xi){return dp(xi,ua)}),_i=Pl(sn.outerTypeParameters,la),ka=sn.isDistributive?dp(sn.checkType,_i):void 0;if(!ka||ka===sn.checkType||!(ka.flags&1179648))return r=sn,t=_i,a=void 0,o=void 0,sn.aliasSymbol&&N++,!0}}return!1}}function up(r){return r.resolvedTrueType||(r.resolvedTrueType=ci(xa(r.root.node.trueType),r.mapper))}function fp(r){return r.resolvedFalseType||(r.resolvedFalseType=ci(xa(r.root.node.falseType),r.mapper))}function I4(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?ci(xa(r.root.node.trueType),r.combinedMapper):up(r))}function LA(r){var t;return r.locals&&r.locals.forEach(function(a){a.flags&262144&&(t=e.append(t,vo(a)))}),t}function N4(r){return r.isDistributive&&(_b(r.checkType,r.node.trueType)||_b(r.checkType,r.node.falseType))}function k4(r){var t=Zn(r);if(!t.resolvedType){var a=xa(r.checkType),o=X_(r),s=Dm(o),f=bf(r,!0),N=s?f:e.filter(f,function(fe){return _b(fe,r)}),U={node:r,checkType:a,extendsType:xa(r.extendsType),isDistributive:!!(a.flags&262144),inferTypeParameters:LA(r),outerTypeParameters:N,instantiations:void 0,aliasSymbol:o,aliasTypeArguments:s};t.resolvedType=Q0(U,void 0),N&&(U.instantiations=new e.Map,U.instantiations.set(_c(N),t.resolvedType))}return t.resolvedType}function O4(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=hl(xn(r.typeParameter))),t.resolvedType}function AA(r){return e.isIdentifier(r)?[r]:e.append(AA(r.left),r.right)}function R4(r){var t=Zn(r);if(!t.resolvedType){if(r.isTypeOf&&r.typeArguments)return Br(r,e.Diagnostics.Type_arguments_cannot_be_used_here),t.resolvedSymbol=cr,t.resolvedType=Qe;if(!e.isLiteralImportTypeNode(r))return Br(r.argument,e.Diagnostics.String_literal_expected),t.resolvedSymbol=cr,t.resolvedType=Qe;var a=r.isTypeOf?111551:r.flags&4194304?900095:788968,o=Ys(r,r.argument.literal);if(!o)return t.resolvedSymbol=cr,t.resolvedType=Qe;var s=_l(o,!1);if(e.nodeIsMissing(r.qualifier))if(s.flags&a)t.resolvedType=CA(r,t,s,a);else{var ze=a===111551?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Br(r,ze,r.argument.literal.text),t.resolvedSymbol=cr,t.resolvedType=Qe}else{for(var f=AA(r.qualifier),N=s,U=void 0;U=f.shift();){var fe=f.length?1920:a,Oe=Ha(wo(N)),je=r.isTypeOf?pi(En(Oe),U.escapedText):Al(il(Oe),U.escapedText,fe);if(!je)return Br(U,e.Diagnostics.Namespace_0_has_no_exported_member_1,Xs(N),e.declarationNameToString(U)),t.resolvedType=Qe;Zn(U).resolvedSymbol=je,Zn(U.parent).resolvedSymbol=je,N=je}t.resolvedType=CA(r,t,N,a)}}return t.resolvedType}function CA(r,t,a,o){var s=wo(a);return t.resolvedSymbol=s,o===111551?En(a):ab(r,s)}function xA(r){var t=Zn(r);if(!t.resolvedType){var a=X_(r);if(Tf(r.symbol).size===0&&!a)t.resolvedType=di;else{var o=ml(16,r.symbol);o.aliasSymbol=a,o.aliasTypeArguments=Dm(a),e.isJSDocTypeLiteral(r)&&r.isArrayType&&(o=Js(o)),t.resolvedType=o}}return t.resolvedType}function X_(r){for(var t=r.parent;e.isParenthesizedTypeNode(t)||e.isJSDocTypeExpression(t)||e.isTypeOperatorNode(t)&&t.operator===144;)t=t.parent;return e.isTypeAlias(t)?xn(t):void 0}function Dm(r){return r?Ef(r):void 0}function Z0(r){return!!(r.flags&524288)&&!wl(r)}function $0(r){return Sf(r)||!!(r.flags&474058748)}function e1(r,t){if(!(r.flags&1048576))return r;if(e.every(r.types,$0))return e.find(r.types,Sf)||Qn;var a=e.find(r.types,function(f){return!$0(f)});if(!a)return r;var o=e.find(r.types,function(f){return f!==a&&!$0(f)});if(o)return r;return s(a);function s(f){for(var N=e.createSymbolTable(),U=0,fe=ro(f);U<fe.length;U++){var Oe=fe[U];if(!(e.getDeclarationModifierFlagsFromSymbol(Oe)&24)){if(cb(Oe)){var je=Oe.flags&65536&&!(Oe.flags&32768),ze=16777220,tr=co(ze,Oe.escapedName,vh(Oe)|(t?8:0));tr.type=je?Rr:ac(En(Oe),!0),tr.declarations=Oe.declarations,tr.nameType=Va(Oe).nameType,tr.syntheticOrigin=Oe,N.set(Oe.escapedName,tr)}}}var _r=es(f.symbol,N,e.emptyArray,e.emptyArray,Bs(f));return _r.objectFlags|=262272,_r}}function Jp(r,t,a,o,s){if(r.flags&1||t.flags&1)return ke;if(r.flags&2||t.flags&2)return Be;if(r.flags&131072)return t;if(t.flags&131072)return r;if(r=e1(r,s),r.flags&1048576)return Nh([r,t])?ms(r,function(sn){return Jp(sn,t,a,o,s)}):Qe;if(t=e1(t,s),t.flags&1048576)return Nh([r,t])?ms(t,function(sn){return Jp(r,sn,a,o,s)}):Qe;if(t.flags&473960444)return r;if(z_(r)||z_(t)){if(Sf(r))return t;if(r.flags&2097152){var f=r.types,N=f[f.length-1];if(Z0(N)&&Z0(t))return To(e.concatenate(f.slice(0,f.length-1),[Jp(N,t,a,o,s)]))}return To([r,t])}for(var U=e.createSymbolTable(),fe=new e.Set,Oe=r===Qn?Bs(t):mh([r,t]),je=0,ze=ro(t);je<ze.length;je++){var tr=ze[je];e.getDeclarationModifierFlagsFromSymbol(tr)&24?fe.add(tr.escapedName):cb(tr)&&U.set(tr.escapedName,r1(tr,s))}for(var _r=0,Vr=ro(r);_r<Vr.length;_r++){var $r=Vr[_r];if(!(fe.has($r.escapedName)||!cb($r)))if(U.has($r.escapedName)){var tr=U.get($r.escapedName),Tt=En(tr);if(tr.flags&16777216){var St=e.concatenate($r.declarations,tr.declarations),It=4|$r.flags&16777216,jt=co(It,$r.escapedName);jt.type=ha([En($r),x1(Tt)]),jt.leftSpread=$r,jt.rightSpread=tr,jt.declarations=St,jt.nameType=Va($r).nameType,U.set($r.escapedName,jt)}}else U.set($r.escapedName,r1($r,s))}var In=es(a,U,e.emptyArray,e.emptyArray,e.sameMap(Oe,function(sn){return w4(sn,s)}));return In.objectFlags|=4456576|o,In}function cb(r){var t;return!e.some(r.declarations,e.isPrivateIdentifierClassElementDeclaration)&&(!(r.flags&106496)||!(!((t=r.declarations)===null||t===void 0)&&t.some(function(a){return e.isClassLike(a.parent)})))}function r1(r,t){var a=r.flags&65536&&!(r.flags&32768);if(!a&&t===Gu(r))return r;var o=4|r.flags&16777216,s=co(o,r.escapedName,vh(r)|(t?8:0));return s.type=a?Rr:En(r),s.declarations=r.declarations,s.nameType=Va(r).nameType,s.syntheticOrigin=r,s}function w4(r,t){return r.isReadonly!==t?Nu(r.keyType,r.type,t,r.declaration):r}function Oh(r,t,a,o){var s=dl(r);return s.symbol=a,s.value=t,s.regularType=o||s,s}function Lm(r){if(r.flags&2944){if(!r.freshType){var t=Oh(r.flags,r.value,r.symbol,r);t.freshType=t,r.freshType=t}return r.freshType}return r}function Ml(r){return r.flags&2944?r.regularType:r.flags&1048576?r.regularType||(r.regularType=ms(r,Ml)):r}function Kp(r){return!!(r.flags&2944)&&r.freshType===r}function xc(r){var t;return vn.get(r)||(vn.set(r,t=Oh(128,r)),t)}function Yf(r){var t;return Mn.get(r)||(Mn.set(r,t=Oh(256,r)),t)}function t1(r){var t,a=e.pseudoBigIntToString(r);return qn.get(a)||(qn.set(a,t=Oh(2048,r)),t)}function M4(r,t,a){var o,s=typeof r=="string"?"@":"#",f=t+s+r,N=1024|(typeof r=="string"?128:256);return nr.get(f)||(nr.set(f,o=Oh(N,r,a)),o)}function P4(r){if(r.literal.kind===104)return Lt;var t=Zn(r);return t.resolvedType||(t.resolvedType=Ml(fi(r.literal))),t.resolvedType}function F4(r){var t=dl(8192);return t.symbol=r,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(d(t.symbol)),t}function n1(r){if(e.isValidESSymbolDeclaration(r)){var t=xn(r),a=Va(t);return a.uniqueESSymbolType||(a.uniqueESSymbolType=F4(t))}return pa}function G4(r){var t=e.getThisContainer(r,!1),a=t&&t.parent;if(a&&(e.isClassLike(a)||a.kind===257)&&!e.isStatic(t)&&(!e.isConstructorDeclaration(t)||e.isNodeDescendantOf(r,t.body)))return Kn(xn(a)).thisType;if(a&&e.isObjectLiteralExpression(a)&&e.isBinaryExpression(a.parent)&&e.getAssignmentDeclarationKind(a.parent)===6)return Kn(xn(a.parent.left).parent).thisType;var o=r.flags&4194304?e.getHostSignatureFromJSDoc(r):void 0;return o&&e.isFunctionExpression(o)&&e.isBinaryExpression(o.parent)&&e.getAssignmentDeclarationKind(o.parent)===3?Kn(xn(o.parent.left).parent).thisType:_u(t)&&e.isNodeDescendantOf(r,t.body)?Kn(xn(t)).thisType:(Br(r,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Qe)}function ub(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=G4(r)),t.resolvedType}function IA(r){return xa(Rh(r.type)||r.type)}function Rh(r){switch(r.kind){case 190:return Rh(r.type);case 183:if(r.elements.length===1&&(r=r.elements[0],r.kind===185||r.kind===196&&r.dotDotDotToken))return Rh(r.type);break;case 182:return r.elementType}}function B4(r){var t=Zn(r);return t.resolvedType||(t.resolvedType=r.dotDotDotToken?IA(r):ac(xa(r.type),!0,!!r.questionToken))}function xa(r){return UL(NA(r),r)}function NA(r){switch(r.kind){case 130:case 310:case 311:return ke;case 154:return Be;case 149:return pt;case 146:return Nt;case 157:return Xt;case 133:return ia;case 150:return pa;case 114:return Gn;case 152:return Rr;case 104:return Lt;case 143:return nn;case 147:return r.flags&131072&&!sr?ke:wn;case 138:return Or;case 191:case 108:return ub(r);case 195:return P4(r);case 177:return xh(r);case 176:return r.assertsModifier?Gn:ia;case 227:return xh(r);case 180:return WL(r);case 182:case 183:return qR(r);case 184:return QR(r);case 186:return a4(r);case 187:return d4(r);case 312:return xR(r);case 314:return ac(xa(r.type));case 196:return B4(r);case 190:case 313:case 307:return xa(r.type);case 185:return IA(r);case 316:return j8(r);case 178:case 179:case 181:case 320:case 315:case 321:return xA(r);case 192:return h4(r);case 193:return TA(r);case 194:return X0(r);case 188:return k4(r);case 189:return O4(r);case 197:return y4(r);case 199:return R4(r);case 79:case 160:case 205:var t=Jc(r);return t?vo(t):Qe;default:return Qe}}function fb(r,t,a){if(r&&r.length)for(var o=0;o<r.length;o++){var s=r[o],f=a(s,t);if(s!==f){var N=o===0?[]:r.slice(0,o);for(N.push(f),o++;o<r.length;o++)N.push(a(r[o],t));return N}}return r}function Cd(r,t){return fb(r,t,ci)}function db(r,t){return fb(r,t,Cm)}function kA(r,t){return fb(r,t,Z4)}function Pl(r,t){return r.length===1?Y_(r[0],t?t[0]:ke):U4(r,t)}function dp(r,t){switch(t.kind){case 0:return r===t.source?t.target:r;case 1:for(var a=t.sources,o=t.targets,s=0;s<a.length;s++)if(r===a[s])return o?o[s]:ke;return r;case 2:return t.func(r);case 3:case 4:var f=dp(r,t.mapper1);return f!==r&&t.kind===3?ci(f,t.mapper2):dp(f,t.mapper2)}}function Y_(r,t){return{kind:0,source:r,target:t}}function U4(r,t){return{kind:1,sources:r,targets:t}}function S_(r){return{kind:2,func:r}}function pb(r,t,a){return{kind:r,mapper1:t,mapper2:a}}function OA(r){return Pl(r,void 0)}function V4(r,t){return S_(function(a){return e.findIndex(r.inferences,function(o){return o.typeParameter===a})>=t?Be:a})}function D_(r,t){return r?pb(3,r,t):t}function W4(r,t){return r?pb(4,r,t):t}function Am(r,t,a){return a?pb(4,Y_(r,t),a):Y_(r,t)}function lv(r,t,a){return r?pb(4,r,Y_(t,a)):Y_(t,a)}function j4(r){return r.constraint===Be?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=tc(r.symbol),r.restrictiveInstantiation.constraint=Be,r.restrictiveInstantiation)}function RA(r){var t=tc(r.symbol);return t.target=r,t}function H4(r,t){return Em(r.kind,r.parameterName,r.parameterIndex,ci(r.type,t))}function Cm(r,t,a){var o;if(r.typeParameters&&!a){o=e.map(r.typeParameters,RA),t=D_(Pl(r.typeParameters,o),t);for(var s=0,f=o;s<f.length;s++){var N=f[s];N.mapper=t}}var U=Cu(r.declaration,o,r.thisParameter&&a1(r.thisParameter,t),fb(r.parameters,t,a1),void 0,void 0,r.minArgumentCount,r.flags&39);return U.target=r,U.mapper=t,U}function a1(r,t){var a=Va(r);if(a.type&&!_v(a.type))return r;e.getCheckFlags(r)&1&&(r=a.target,t=D_(a.mapper,t));var o=co(r.flags,r.escapedName,1|e.getCheckFlags(r)&53256);return o.declarations=r.declarations,o.parent=r.parent,o.target=r,o.mapper=t,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),a.nameType&&(o.nameType=a.nameType),o}function J4(r,t,a,o){var s=r.objectFlags&4?r.node:r.symbol.declarations[0],f=Zn(s),N=r.objectFlags&4?f.resolvedType:r.objectFlags&64?r.target:r,U=f.outerTypeParameters;if(!U){var fe=bf(s,!0);if(_u(s)){var Oe=ng(s);fe=e.addRange(fe,Oe)}U=fe||e.emptyArray;var je=r.objectFlags&4?[s]:r.symbol.declarations;U=(N.objectFlags&4||N.symbol.flags&8192||N.symbol.flags&2048)&&!N.aliasTypeArguments?e.filter(U,function(It){return e.some(je,function(jt){return _b(It,jt)})}):U,f.outerTypeParameters=U}if(U.length){var ze=D_(r.mapper,t),tr=e.map(U,function(It){return dp(It,ze)}),_r=a||r.aliasSymbol,Vr=a?o:Cd(r.aliasTypeArguments,t),$r=_c(tr)+Sm(_r,Vr);N.instantiations||(N.instantiations=new e.Map,N.instantiations.set(_c(U)+Sm(N.aliasSymbol,N.aliasTypeArguments),N));var Tt=N.instantiations.get($r);if(!Tt){var St=Pl(U,tr);Tt=N.objectFlags&4?M0(r.target,r.node,St,_r,Vr):N.objectFlags&32?wA(N,St,_r,Vr):s1(N,St,_r,Vr),N.instantiations.set($r,Tt)}return Tt}return r}function K4(r){return!(r.parent.kind===177&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===199&&r.parent.typeArguments&&r===r.parent.qualifier)}function _b(r,t){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){for(var a=r.symbol.declarations[0].parent,o=t;o!==a;o=o.parent)if(!o||o.kind===234||o.kind===188&&e.forEachChild(o.extendsType,s))return!0;return s(t)}return!0;function s(f){switch(f.kind){case 191:return!!r.isThisType;case 79:return!r.isThisType&&e.isPartOfTypeNode(f)&&K4(f)&&NA(f)===r;case 180:return!0;case 168:case 167:return!f.type&&!!f.body||e.some(f.typeParameters,s)||e.some(f.parameters,s)||!!f.type&&s(f.type)}return!!e.forEachChild(f,s)}}function i1(r){var t=Dc(r);if(t.flags&4194304){var a=T_(t.type);if(a.flags&262144)return a}}function wA(r,t,a,o){var s=i1(r);if(s){var f=ci(s,t);if(s!==f)return wC(to(f),function(N){if(N.flags&61603843&&N!==Xe&&!Za(N)){if(!r.declaration.nameType){var U=void 0;if($s(N)||N.flags&1&&Ze(s,4)<0&&(U=bl(s))&&ed(U,e.or($s,ki)))return q4(N,r,Am(s,N,t));if(vg(N))return z4(N,r,s,t);if(ki(N))return X4(N,r,Am(s,N,t))}return s1(r,Am(s,N,t))}return N},a,o)}return ci(Dc(r),t)===Xe?Xe:s1(r,t,a,o)}function o1(r,t){return t&1?!0:t&2?!1:r}function z4(r,t,a,o){var s=r.target.elementFlags,f=e.map(ho(r),function(U,fe){var Oe=s[fe]&8?U:s[fe]&4?Js(U):ku([U],[s[fe]]);return wA(t,Am(a,Oe,o))}),N=o1(r.target.readonly,Lc(t));return ku(f,e.map(f,function(U){return 8}),N)}function q4(r,t,a){var o=MA(t,Nt,!0,a);return Za(o)?Qe:Js(o,o1(mg(r),Lc(t)))}function X4(r,t,a){var o=r.target.elementFlags,s=e.map(ho(r),function(fe,Oe){return MA(t,xc(""+Oe),!!(o[Oe]&2),a)}),f=Lc(t),N=f&4?e.map(o,function(fe){return fe&1?2:fe}):f&8?e.map(o,function(fe){return fe&2?1:fe}):o,U=o1(r.target.readonly,f);return e.contains(s,Qe)?Qe:ku(s,N,U,r.target.labeledElementDeclarations)}function MA(r,t,a,o){var s=lv(o,lu(r),t),f=ci(xu(r.target||r),s),N=Lc(r);return Er&&N&4&&!Jo(f,49152)?$f(f,!0):Er&&N&8&&a?Us(f,524288):f}function s1(r,t,a,o){var s=ml(r.objectFlags|64,r.symbol);if(r.objectFlags&32){s.declaration=r.declaration;var f=lu(r),N=RA(f);s.typeParameter=N,t=D_(Y_(f,N),t),N.mapper=t}return s.target=r,s.mapper=t,s.aliasSymbol=a||r.aliasSymbol,s.aliasTypeArguments=a?o:Cd(r.aliasTypeArguments,t),s}function l1(r,t,a,o){var s=r.root;if(s.outerTypeParameters){var f=e.map(s.outerTypeParameters,function(ze){return dp(ze,t)}),N=_c(f)+Sm(a,o),U=s.instantiations.get(N);if(!U){var fe=Pl(s.outerTypeParameters,f),Oe=s.checkType,je=s.isDistributive?dp(Oe,fe):void 0;U=je&&Oe!==je&&je.flags&1179648?wC(je,function(ze){return Q0(s,Am(Oe,ze,fe))},a,o):Q0(s,fe,a,o),s.instantiations.set(N,U)}return U}return r}function ci(r,t){return r&&t?PA(r,t,void 0,void 0):r}function PA(r,t,a,o){if(!_v(r))return r;if(se===100||Ge>=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:se,instantiationCount:Ge}),Br(Re,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Qe;Ae++,Ge++,se++;var s=Y4(r,t,a,o);return se--,s}function Y4(r,t,a,o){var s=r.flags;if(s&262144)return dp(r,t);if(s&524288){var f=r.objectFlags;if(f&52){if(f&4&&!r.node){var N=r.resolvedTypeArguments,U=Cd(N,t);return U!==N?V0(r.target,U):r}return f&1024?Q4(r,t):J4(r,t,a,o)}return r}if(s&3145728){var fe=r.flags&1048576?r.origin:void 0,Oe=fe&&fe.flags&3145728?fe.types:r.types,je=Cd(Oe,t);if(je===Oe&&a===r.aliasSymbol)return r;var ze=a||r.aliasSymbol,tr=a?o:Cd(r.aliasTypeArguments,t);return s&2097152||fe&&fe.flags&2097152?To(je,ze,tr):ha(je,1,ze,tr)}if(s&4194304)return Zu(ci(r.type,t));if(s&134217728)return dg(r.texts,Cd(r.types,t));if(s&268435456)return lb(r.symbol,ci(r.type,t));if(s&8388608){var ze=a||r.aliasSymbol,tr=a?o:Cd(r.aliasTypeArguments,t);return Xl(ci(r.objectType,t),ci(r.indexType,t),r.accessFlags,void 0,ze,tr)}if(s&16777216)return l1(r,D_(r.mapper,t),a,o);if(s&33554432){var _r=ci(r.baseType,t);if(_r.flags&8650752)return FL(_r,ci(r.substitute,t));var Vr=ci(r.substitute,t);return Vr.flags&3||$i(L_(_r),L_(Vr))?_r:Vr}return r}function Q4(r,t){var a=ci(r.mappedType,t);if(!(e.getObjectFlags(a)&32))return r;var o=ci(r.constraintType,t);if(!(o.flags&4194304))return r;var s=pC(ci(r.source,t),a,o);return s||r}function mb(r){return r.flags&262143?r:r.permissiveInstantiation||(r.permissiveInstantiation=ci(r,hn))}function L_(r){return r.flags&262143?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=ci(r,et),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function Z4(r,t){return Nu(r.keyType,ci(r.type,t),r.isReadonly,r.declaration)}function fu(r){switch(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),r.kind){case 212:case 213:case 168:case 255:return FA(r);case 204:return e.some(r.properties,fu);case 203:return e.some(r.elements,fu);case 221:return fu(r.whenTrue)||fu(r.whenFalse);case 220:return(r.operatorToken.kind===56||r.operatorToken.kind===60)&&(fu(r.left)||fu(r.right));case 294:return fu(r.initializer);case 211:return fu(r.expression);case 285:return e.some(r.properties,fu)||e.isJsxOpeningElement(r.parent)&&e.some(r.parent.parent.children,fu);case 284:{var t=r.initializer;return!!t&&fu(t)}case 287:{var a=r.expression;return!!a&&fu(a)}}return!1}function FA(r){return(!e.isFunctionDeclaration(r)||e.isInJSFile(r)&&!!Vc(r))&&(e.hasContextSensitiveParameters(r)||$4(r))}function $4(r){return!r.typeParameters&&!e.getEffectiveReturnTypeNode(r)&&!!r.body&&r.body.kind!==234&&fu(r.body)}function GA(r){return(e.isInJSFile(r)&&e.isFunctionDeclaration(r)||e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r))&&FA(r)}function BA(r){if(r.flags&524288){var t=Wc(r);if(t.constructSignatures.length||t.callSignatures.length){var a=ml(16,r.symbol);return a.members=t.members,a.properties=t.properties,a.callSignatures=e.emptyArray,a.constructSignatures=e.emptyArray,a.indexInfos=e.emptyArray,a}}else if(r.flags&2097152)return To(e.map(r.types,BA));return r}function Qf(r,t){return Zf(r,t,Ei)}function cv(r,t){return Zf(r,t,Ei)?-1:0}function c1(r,t){return Zf(r,t,Un)?-1:0}function ew(r,t){return Zf(r,t,en)?-1:0}function xd(r,t){return Zf(r,t,en)}function $i(r,t){return Zf(r,t,Un)}function xm(r,t){return r.flags&1048576?e.every(r.types,function(a){return xm(a,t)}):t.flags&1048576?e.some(t.types,function(a){return xm(r,a)}):r.flags&58982400?xm(pl(r)||Be,t):t===Bn?!!(r.flags&67633152):t===Fe?!!(r.flags&524288)&&j1(r):Fp(r,v_(t))||$s(t)&&!mg(t)&&xm(r,oe)}function _g(r,t){return Zf(r,t,Ta)}function gb(r,t){return _g(r,t)||_g(t,r)}function Fl(r,t,a,o,s,f){return du(r,t,Un,a,o,s,f)}function pp(r,t,a,o,s,f){return u1(r,t,Un,a,o,s,f,void 0)}function u1(r,t,a,o,s,f,N,U){return Zf(r,t,a)?!0:!o||!wh(s,r,t,a,f,N,U)?du(r,t,a,o,f,N,U):!1}function UA(r){return!!(r.flags&16777216||r.flags&2097152&&e.some(r.types,UA))}function wh(r,t,a,o,s,f,N){if(!r||UA(a))return!1;if(!du(t,a,o,void 0)&&rw(r,t,a,o,s,f,N))return!0;switch(r.kind){case 287:case 211:return wh(r.expression,t,a,o,s,f,N);case 220:switch(r.operatorToken.kind){case 63:case 27:return wh(r.right,t,a,o,s,f,N)}break;case 204:return uw(r,t,a,o,f,N);case 203:return lw(r,t,a,o,f,N);case 285:return sw(r,t,a,o,f,N);case 213:return tw(r,t,a,o,f,N)}return!1}function rw(r,t,a,o,s,f,N){for(var U=Li(t,0),fe=Li(t,1),Oe=0,je=[fe,U];Oe<je.length;Oe++){var ze=je[Oe];if(e.some(ze,function(Vr){var $r=_o(Vr);return!($r.flags&131073)&&du($r,a,o,void 0)})){var tr=N||{};Fl(t,a,r,s,f,tr);var _r=tr.errors[tr.errors.length-1];return e.addRelatedInfo(_r,e.createDiagnosticForNode(r,ze===fe?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}function tw(r,t,a,o,s,f){if(e.isBlock(r.body)||e.some(r.parameters,e.hasType))return!1;var N=em(t);if(!N)return!1;var U=Li(a,0);if(!e.length(U))return!1;var fe=r.body,Oe=_o(N),je=ha(e.map(U,_o));if(!du(Oe,je,o,void 0)){var ze=fe&&wh(fe,Oe,je,o,void 0,s,f);if(ze)return ze;var tr=f||{};if(du(Oe,je,o,fe,void 0,s,tr),tr.errors)return a.symbol&&e.length(a.symbol.declarations)&&e.addRelatedInfo(tr.errors[tr.errors.length-1],e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),(e.getFunctionFlags(r)&2)===0&&!na(Oe,"then")&&du(ry(Oe),je,o,void 0)&&e.addRelatedInfo(tr.errors[tr.errors.length-1],e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function nw(r,t,a){var o=cp(t,a);if(o)return o;if(t.flags&1048576){var s=qA(r,t);if(s)return cp(s,a)}}function aw(r,t){r.contextualType=t;try{return Ig(r,1,t)}finally{r.contextualType=void 0}}function uv(r,t,a,o,s,f){for(var N=!1,U=r.next();!U.done;U=r.next()){var fe=U.value,Oe=fe.errorNode,je=fe.innerExpression,ze=fe.nameType,tr=fe.errorMessage,_r=nw(t,a,ze);if(!(!_r||_r.flags&8388608)){var Vr=cp(t,ze);if(!!Vr){var $r=K0(ze,void 0);if(!du(Vr,_r,o,void 0)){var Tt=je&&wh(je,Vr,_r,o,void 0,s,f);if(N=!0,!Tt){var St=f||{},It=je?aw(je,Vr):Vr;if(de&&g1(It,_r)){var jt=e.createDiagnosticForNode(Oe,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,pn(It),pn(_r));fa.add(jt),St.errors=[jt]}else{var In=!!($r&&(pi(a,$r)||cr).flags&16777216),sn=!!($r&&(pi(t,$r)||cr).flags&16777216);_r=Nm(_r,In),Vr=Nm(Vr,In&&sn);var ua=du(It,_r,o,Oe,tr,s,St);ua&&It!==Vr&&du(Vr,_r,o,Oe,tr,s,St)}if(St.errors){var la=St.errors[St.errors.length-1],_i=Yu(ze)?Au(ze):void 0,ka=_i!==void 0?pi(a,_i):void 0,xi=!1;if(!ka){var Bi=K_(a,ze);Bi&&Bi.declaration&&!e.getSourceFileOfNode(Bi.declaration).hasNoDefaultLib&&(xi=!0,e.addRelatedInfo(la,e.createDiagnosticForNode(Bi.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!xi&&(ka&&e.length(ka.declarations)||a.symbol&&e.length(a.symbol.declarations))){var Ii=ka&&e.length(ka.declarations)?ka.declarations[0]:a.symbol.declarations[0];e.getSourceFileOfNode(Ii).hasNoDefaultLib||e.addRelatedInfo(la,e.createDiagnosticForNode(Ii,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,_i&&!(ze.flags&8192)?e.unescapeLeadingUnderscores(_i):pn(ze),pn(a)))}}}}}}}return N}function iw(r){var t,a,o;return jg(this,function(s){switch(s.label){case 0:if(!e.length(r.properties))return[2];t=0,a=r.properties,s.label=1;case 1:return t<a.length?(o=a[t],e.isJsxSpreadAttribute(o)||sT(e.idText(o.name))?[3,3]:[4,{errorNode:o.name,innerExpression:o.initializer,nameType:xc(e.idText(o.name))}]):[3,4];case 2:s.sent(),s.label=3;case 3:return t++,[3,1];case 4:return[2]}})}function ow(r,t){var a,o,s,f,N;return jg(this,function(U){switch(U.label){case 0:if(!e.length(r.children))return[2];a=0,o=0,U.label=1;case 1:return o<r.children.length?(s=r.children[o],f=Yf(o-a),N=VA(s,f,t),N?[4,N]:[3,3]):[3,5];case 2:return U.sent(),[3,4];case 3:a++,U.label=4;case 4:return o++,[3,1];case 5:return[2]}})}function VA(r,t,a){switch(r.kind){case 287:return{errorNode:r,innerExpression:r.expression,nameType:t};case 11:if(r.containsOnlyTriviaWhiteSpaces)break;return{errorNode:r,innerExpression:void 0,nameType:t,errorMessage:a()};case 277:case 278:case 281:return{errorNode:r,innerExpression:r,nameType:t};default:return e.Debug.assertNever(r,"Found invalid jsx child")}}function sw(r,t,a,o,s,f){var N=uv(iw(r),t,a,o,s,f),U;if(e.isJsxOpeningElement(r.parent)&&e.isJsxElement(r.parent.parent)){var fe=r.parent.parent,Oe=Kb(Mm(r)),je=Oe===void 0?"children":e.unescapeLeadingUnderscores(Oe),ze=xc(je),tr=Xl(a,ze),_r=e.getSemanticJsxChildren(fe.children);if(!e.length(_r))return N;var Vr=e.length(_r)>1,$r=el(tr,rC),Tt=el(tr,function(la){return!rC(la)});if(Vr){if($r!==nn){var St=ku(Jb(fe,0)),It=ow(fe,ua);N=uv(It,St,$r,o,s,f)||N}else if(!Zf(Xl(t,ze),tr,o)){N=!0;var jt=Br(fe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,je,pn(tr));f&&f.skipLogging&&(f.errors||(f.errors=[])).push(jt)}}else if(Tt!==nn){var In=_r[0],sn=VA(In,ze,ua);sn&&(N=uv(function(){return jg(this,function(la){switch(la.label){case 0:return[4,sn];case 1:return la.sent(),[2]}})}(),t,a,o,s,f)||N)}else if(!Zf(Xl(t,ze),tr,o)){N=!0;var jt=Br(fe.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,je,pn(tr));f&&f.skipLogging&&(f.errors||(f.errors=[])).push(jt)}}return N;function ua(){if(!U){var la=e.getTextOfNode(r.parent.tagName),_i=Kb(Mm(r)),ka=_i===void 0?"children":e.unescapeLeadingUnderscores(_i),xi=Xl(a,xc(ka)),Bi=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;U=kn(kn({},Bi),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,Bi,la,ka,pn(xi))})}return U}}function WA(r,t){var a,o,s,f;return jg(this,function(N){switch(N.label){case 0:if(a=e.length(r.elements),!a)return[2];o=0,N.label=1;case 1:return o<a?gg(t)&&!pi(t,""+o)?[3,3]:(s=r.elements[o],e.isOmittedExpression(s)?[3,3]:(f=Yf(o),[4,{errorNode:s,innerExpression:s,nameType:f}])):[3,4];case 2:N.sent(),N.label=3;case 3:return o++,[3,1];case 4:return[2]}})}function lw(r,t,a,o,s,f){if(a.flags&131068)return!1;if(gg(t))return uv(WA(r,a),t,a,o,s,f);var N=r.contextualType;r.contextualType=a;try{var U=tx(r,1,!0);return r.contextualType=N,gg(U)?uv(WA(r,a),U,a,o,s,f):!1}finally{r.contextualType=N}}function cw(r){var t,a,o,s,f;return jg(this,function(N){switch(N.label){case 0:if(!e.length(r.properties))return[2];t=0,a=r.properties,N.label=1;case 1:if(!(t<a.length))return[3,8];if(o=a[t],e.isSpreadAssignment(o))return[3,7];if(s=fg(xn(o),8576),!s||s.flags&131072)return[3,7];switch(f=o.kind,f){case 172:return[3,2];case 171:return[3,2];case 168:return[3,2];case 295:return[3,2];case 294:return[3,4]}return[3,6];case 2:return[4,{errorNode:o.name,innerExpression:void 0,nameType:s}];case 3:return N.sent(),[3,7];case 4:return[4,{errorNode:o.name,innerExpression:o.initializer,nameType:s,errorMessage:e.isComputedNonLiteralName(o.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return N.sent(),[3,7];case 6:e.Debug.assertNever(o),N.label=7;case 7:return t++,[3,1];case 8:return[2]}})}function uw(r,t,a,o,s,f){return a.flags&131068?!1:uv(cw(r),t,a,o,s,f)}function jA(r,t,a,o,s){return du(r,t,Ta,a,o,s)}function fw(r,t,a){return f1(r,t,a?4:0,!1,void 0,void 0,c1,void 0)!==0}function dw(r){return!r.typeParameters&&(!r.thisParameter||wa(Ev(r.thisParameter)))&&r.parameters.length===1&&Y(r)&&(Ev(r.parameters[0])===Wt||wa(Ev(r.parameters[0])))&&wa(_o(r))}function f1(r,t,a,o,s,f,N,U){if(r===t||dw(t))return-1;var fe=Cl(t),Oe=!Fu(t)&&(a&8?Fu(r)||Cl(r)>fe:Pu(r)>fe);if(Oe)return 0;r.typeParameters&&r.typeParameters!==t.typeParameters&&(t=ER(t),r=Mx(r,t,void 0,N));var je=Cl(r),ze=Sv(r),tr=Sv(t);if((ze||tr)&&ci(ze||tr,U),ze&&tr&&je!==fe)return 0;var _r=t.declaration?t.declaration.kind:0,Vr=!(a&3)&&Nr&&_r!==168&&_r!==167&&_r!==170,$r=-1,Tt=E_(r);if(Tt&&Tt!==Gn){var St=E_(t);if(St){var It=!Vr&&N(Tt,St,!1)||N(St,Tt,o);if(!It)return o&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;$r&=It}}for(var jt=ze||tr?Math.min(je,fe):Math.max(je,fe),In=ze||tr?jt-1:-1,sn=0;sn<jt;sn++){var ua=sn===In?Cg(r,sn):k_(r,sn),la=sn===In?Cg(t,sn):k_(t,sn);if(ua&&la){var _i=a&3?void 0:em(Id(ua)),ka=a&3?void 0:em(Id(la)),xi=_i&&ka&&!Cc(_i)&&!Cc(ka)&&(mc(ua)&98304)===(mc(la)&98304),It=xi?f1(ka,_i,a&8|(Vr?2:1),o,s,f,N,U):!(a&3)&&!Vr&&N(ua,la,!1)||N(la,ua,o);if(It&&a&8&&sn>=Pu(r)&&sn<Pu(t)&&N(ua,la,!1)&&(It=0),!It)return o&&s(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(Ag(r,sn)),e.unescapeLeadingUnderscores(Ag(t,sn))),0;$r&=It}}if(!(a&4)){var Bi=k0(t)?ke:t.declaration&&_u(t.declaration)?Kn(Ha(t.declaration.symbol)):_o(t);if(Bi===Gn)return $r;var Ii=k0(r)?ke:r.declaration&&_u(r.declaration)?Kn(Ha(r.declaration.symbol)):_o(r),Co=Cc(t);if(Co){var Ht=Cc(r);if(Ht)$r&=pw(Ht,Co,o,s,N);else if(e.isIdentifierTypePredicate(Co))return o&&s(e.Diagnostics.Signature_0_must_be_a_type_predicate,Tc(r)),0}else $r&=a&1&&N(Bi,Ii,!1)||N(Ii,Bi,o),!$r&&o&&f&&f(Ii,Bi)}return $r}function pw(r,t,a,o,s){if(r.kind!==t.kind)return a&&(o(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ru(r),ru(t))),0;if((r.kind===1||r.kind===3)&&r.parameterIndex!==t.parameterIndex)return a&&(o(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,r.parameterName,t.parameterName),o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ru(r),ru(t))),0;var f=r.type===t.type?-1:r.type&&t.type?s(r.type,t.type,a):0;return f===0&&a&&o(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,ru(r),ru(t)),f}function _w(r,t){var a=rv(r),o=rv(t),s=_o(a),f=_o(o);return f===Gn||Zf(f,s,Un)||Zf(s,f,Un)?fw(a,o,!0):!1}function d1(r){return r!==$a&&r.properties.length===0&&r.callSignatures.length===0&&r.constructSignatures.length===0&&r.indexInfos.length===0}function Sf(r){return r.flags&524288?!wl(r)&&d1(Wc(r)):r.flags&67108864?!0:r.flags&1048576?e.some(r.types,Sf):r.flags&2097152?e.every(r.types,Sf):!1}function HA(r){return!!(e.getObjectFlags(r)&16&&(r.members&&d1(r)||r.symbol&&r.symbol.flags&2048&&Tf(r.symbol).size===0))}function JA(r){return r.flags&524288&&!wl(r)&&ro(r).length===0&&Bs(r).length===1&&!!cu(r,pt)||r.flags&3145728&&e.every(r.types,JA)||!1}function p1(r,t,a){if(r===t)return!0;var o=d(r)+","+d(t),s=Qi.get(o);if(s!==void 0&&!(!(s&4)&&s&2&&a))return!!(s&1);if(r.escapedName!==t.escapedName||!(r.flags&256)||!(t.flags&256))return Qi.set(o,6),!1;for(var f=En(t),N=0,U=ro(En(r));N<U.length;N++){var fe=U[N];if(fe.flags&8){var Oe=pi(f,fe.escapedName);if(!Oe||!(Oe.flags&8))return a?(a(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(fe),pn(vo(t),void 0,64)),Qi.set(o,6)):Qi.set(o,2),!1}}return Qi.set(o,1),!0}function Mh(r,t,a,o){var s=r.flags,f=t.flags;return f&3||s&131072||r===Xe?!0:f&131072?!1:!!(s&402653316&&f&4||s&128&&s&1024&&f&128&&!(f&1024)&&r.value===t.value||s&296&&f&8||s&256&&s&1024&&f&256&&!(f&1024)&&r.value===t.value||s&2112&&f&64||s&528&&f&16||s&12288&&f&4096||s&32&&f&32&&p1(r.symbol,t.symbol,o)||s&1024&&f&1024&&(s&1048576&&f&1048576&&p1(r.symbol,t.symbol,o)||s&2944&&f&2944&&r.value===t.value&&p1(Ls(r.symbol),Ls(t.symbol),o))||s&32768&&(!Er||f&49152)||s&65536&&(!Er||f&65536)||s&524288&&f&67108864||(a===Un||a===Ta)&&(s&1||s&264&&!(s&1024)&&(f&32||a===Un&&f&256&&f&1024)))}function Zf(r,t,a){if(Kp(r)&&(r=r.regularType),Kp(t)&&(t=t.regularType),r===t)return!0;if(a!==Ei){if(a===Ta&&!(t.flags&131072)&&Mh(t,r,a)||Mh(r,t,a))return!0}else{if(r.flags!==t.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&t.flags&524288){var o=a.get(y1(r,t,0,a,!1));if(o!==void 0)return!!(o&1)}return r.flags&469499904||t.flags&469499904?du(r,t,a,void 0):!1}function KA(r,t){return e.getObjectFlags(r)&2048&&sT(t.escapedName)}function _1(r,t){for(;;){var a=Kp(r)?r.regularType:e.getObjectFlags(r)&4&&r.node?qf(r.target,ho(r)):r.flags&3145728?to(r):r.flags&33554432?t?r.baseType:r.substitute:r.flags&25165824?Xf(r,t):r;if(a=T1(a)||a,a===r)break;r=a}return r}function du(r,t,a,o,s,f,N){var U,fe,Oe,je,ze,tr=0,_r=0,Vr=0,$r=0,Tt=!1,St=0,It,jt=[],In=!1;e.Debug.assert(a!==Ei||!o,"no error reporting in identity checking");var sn=Hn(r,t,3,!!o,s);if(jt.length&&Gt(),Tt){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:t.id,depth:_r,targetDepth:Vr});var ua=Br(o||Re,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,pn(r),pn(t));N&&(N.errors||(N.errors=[])).push(ua)}else if(U){if(f){var la=f();la&&(e.concatenateDiagnosticMessageChains(la,U),U=la)}var _i=void 0;if(s&&o&&!sn&&r.symbol){var ka=Va(r.symbol);if(ka.originatingImport&&!e.isImportCall(ka.originatingImport)){var xi=du(En(ka.target),t,a,void 0);if(xi){var Bi=e.createDiagnosticForNode(ka.originatingImport,e.Diagnostics.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);_i=e.append(_i,Bi)}}}var ua=e.createDiagnosticForNodeFromMessageChain(o,U,_i);fe&&e.addRelatedInfo.apply(void 0,Bt([ua],fe,!1)),N&&(N.errors||(N.errors=[])).push(ua),(!N||!N.skipLogging)&&fa.add(ua)}return o&&N&&N.skipLogging&&sn===0&&e.Debug.assert(!!N.errors,"missed opportunity to interact with error."),sn!==0;function Ii(qr){U=qr.errorInfo,It=qr.lastSkippedInfo,jt=qr.incompatibleStack,St=qr.overrideNextErrorInfo,fe=qr.relatedInfo}function Co(){return{errorInfo:U,lastSkippedInfo:It,incompatibleStack:jt.slice(),overrideNextErrorInfo:St,relatedInfo:fe?fe.slice():void 0}}function Ht(qr,ct,Rt,rn,ea){St++,It=void 0,jt.push([qr,ct,Rt,rn,ea])}function Gt(){var qr=jt;jt=[];var ct=It;if(It=void 0,qr.length===1){mn.apply(void 0,qr[0]),ct&&Yn.apply(void 0,Bt([void 0],ct,!1));return}for(var Rt="",rn=[];qr.length;){var ea=qr.pop(),Vn=ea[0],Sn=ea.slice(1);switch(Vn.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:{Rt.indexOf("new ")===0&&(Rt="(".concat(Rt,")"));var qt=""+Sn[0];Rt.length===0?Rt="".concat(qt):e.isIdentifierText(qt,e.getEmitScriptTarget(We))?Rt="".concat(Rt,".").concat(qt):qt[0]==="["&&qt[qt.length-1]==="]"?Rt="".concat(Rt).concat(qt):Rt="".concat(Rt,"[").concat(qt,"]");break}case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Rt.length===0){var ni=Vn;Vn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?ni=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:Vn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(ni=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),rn.unshift([ni,Sn[0],Sn[1]])}else{var yi=Vn.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||Vn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",ai=Vn.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Vn.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Rt="".concat(yi).concat(Rt,"(").concat(ai,")")}break}case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{rn.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Sn[0],Sn[1]]);break}case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{rn.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Sn[0],Sn[1],Sn[2]]);break}default:return e.Debug.fail("Unhandled Diagnostic: ".concat(Vn.code))}}Rt?mn(Rt[Rt.length-1]===")"?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,Rt):rn.shift();for(var uo=0,ji=rn;uo<ji.length;uo++){var gs=ji[uo],Vn=gs[0],Sn=gs.slice(1),ps=Vn.elidedInCompatabilityPyramid;Vn.elidedInCompatabilityPyramid=!1,mn.apply(void 0,Bt([Vn],Sn,!1)),Vn.elidedInCompatabilityPyramid=ps}ct&&Yn.apply(void 0,Bt([void 0],ct,!1))}function mn(qr,ct,Rt,rn,ea){e.Debug.assert(!!o),jt.length&&Gt(),!qr.elidedInCompatabilityPyramid&&(U=e.chainDiagnosticMessages(U,qr,ct,Rt,rn,ea))}function Oa(qr){e.Debug.assert(!!U),fe?fe.push(qr):fe=[qr]}function Yn(qr,ct,Rt){jt.length&&Gt();var rn=ep(ct,Rt),ea=rn[0],Vn=rn[1],Sn=ct,qt=ea;if(Im(ct)&&!m1(Rt)&&(Sn=Ru(ct),e.Debug.assert(!$i(Sn,Rt),"generalized source shouldn't be assignable"),qt=jf(Sn)),Rt.flags&262144){var ni=pl(Rt),yi=void 0;ni&&($i(Sn,ni)||(yi=$i(ct,ni)))?mn(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,yi?ea:qt,Vn,pn(ni)):(U=void 0,mn(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Vn,qt))}if(qr)qr===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&de&&zA(ct,Rt).length&&(qr=e.Diagnostics.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(a===Ta)qr=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(ea===Vn)qr=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(de&&zA(ct,Rt).length)qr=e.Diagnostics.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(ct.flags&128&&Rt.flags&1048576){var ai=sP(ct,Rt);if(ai){mn(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,qt,Vn,pn(ai));return}}qr=e.Diagnostics.Type_0_is_not_assignable_to_type_1}mn(qr,qt,Vn)}function Ba(qr,ct){var Rt=rp(qr.symbol)?pn(qr,qr.symbol.valueDeclaration):pn(qr),rn=rp(ct.symbol)?pn(ct,ct.symbol.valueDeclaration):pn(ct);(Pe===qr&&pt===ct||Ye===qr&&Nt===ct||Tr===qr&&ia===ct||XL(!1)===qr&&pa===ct)&&mn(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,rn,Rt)}function Di(qr,ct,Rt){return ki(qr)?qr.target.readonly&&yb(ct)?(Rt&&mn(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,pn(qr),pn(ct)),!1):ki(ct)||$s(ct):mg(qr)&&yb(ct)?(Rt&&mn(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,pn(qr),pn(ct)),!1):ki(ct)?$s(qr):!0}function Pi(qr,ct,Rt){return Hn(qr,ct,3,Rt)}function Hn(qr,ct,Rt,rn,ea,Vn){if(Rt===void 0&&(Rt=3),rn===void 0&&(rn=!1),Vn===void 0&&(Vn=0),qr.flags&524288&&ct.flags&131068)return Mh(qr,ct,a,rn?mn:void 0)?-1:(it(qr,ct,0,!!(e.getObjectFlags(qr)&2048)),0);var Sn=_1(qr,!1),qt=_1(ct,!0);if(Sn===qt)return-1;if(a===Ei)return Kr(Sn,qt,Rt);if(Sn.flags&262144&&Bp(Sn)===qt)return-1;if(qt.flags&1048576&&Sn.flags&524288&&qt.types.length<=3&&Jo(qt,98304)){var ni=$_(qt,-98305);if(ni.flags&1179648||(qt=_1(ni,!0)),Sn===ni)return-1}if(a===Ta&&!(qt.flags&131072)&&Mh(qt,Sn,a)||Mh(Sn,qt,a,rn?mn:void 0))return-1;var yi=!!(e.getObjectFlags(Sn)&2048),ai=!(Vn&2)&&Xp(Sn)&&e.getObjectFlags(Sn)&16384;if(ai&&yn(Sn,qt,rn))return rn&&Yn(ea,Sn,ct.aliasSymbol?ct:qt),0;var uo=a!==Ta&&!(Vn&2)&&Sn.flags&2752508&&Sn!==Bn&&qt.flags&2621440&&XA(qt)&&(ro(Sn).length>0||lS(Sn));if(uo&&!gw(Sn,qt,yi)){if(rn){var ji=pn(qr.aliasSymbol?qr:Sn),gs=pn(ct.aliasSymbol?ct:qt),ps=Li(Sn,0),Xo=Li(Sn,1);ps.length>0&&Hn(_o(ps[0]),qt,1,!1)||Xo.length>0&&Hn(_o(Xo[0]),qt,1,!1)?mn(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ji,gs):mn(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,ji,gs)}return 0}Gi(Sn,qt);var no=0,Ko=Co();if((Sn.flags&1048576||qt.flags&1048576)&&MC(Sn)*MC(qt)<4?no=gn(Sn,qt,rn,Vn|8):(Sn.flags&3145728||qt.flags&3145728)&&(no=Qt(Sn,qt,rn,Vn|8,Rt)),!no&&!(Sn.flags&1048576)&&(Sn.flags&469499904||qt.flags&469499904)&&(no=Qt(Sn,qt,rn,Vn,Rt))&&Ii(Ko),!no&&Sn.flags&2359296){var rs=C0(Sn.flags&2097152?Sn.types:[Sn],!!(qt.flags&1048576));rs&&(Sn.flags&2097152||qt.flags&1048576)&&ed(rs,function(un){return un!==Sn})&&(no=Hn(rs,qt,1,!1,void 0,Vn))&&Ii(Ko)}return no&&!In&&(qt.flags&2097152&&(ai||uo)||Z0(qt)&&!$s(qt)&&!ki(qt)&&Sn.flags&2097152&&Dn(Sn).flags&3670016&&!e.some(Sn.types,function(un){return!!(e.getObjectFlags(un)&524288)}))&&(In=!0,no&=Qt(Sn,qt,rn,4,Rt),In=!1),it(Sn,qt,no,yi),no;function it(un,oa,zn,aa){if(!zn&&rn){var qa=!!T1(qr),Ka=!!T1(ct);un=qr.aliasSymbol||qa?qr:un,oa=ct.aliasSymbol||Ka?ct:oa;var mi=St>0;if(mi&&St--,un.flags&524288&&oa.flags&524288){var Wa=U;Di(un,oa,rn),U!==Wa&&(mi=!!U)}if(un.flags&524288&&oa.flags&131068)Ba(un,oa);else if(un.symbol&&un.flags&524288&&Bn===un)mn(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(aa&&oa.flags&2097152){var Ma=oa.types,Xi=Zp(b.IntrinsicAttributes,o),bo=Zp(b.IntrinsicClassAttributes,o);if(!Za(Xi)&&!Za(bo)&&(e.contains(Ma,Xi)||e.contains(Ma,bo)))return zn}else U=as(U,ct);if(!ea&&mi)return It=[un,oa],zn;Yn(ea,un,oa)}}}function Gi(qr,ct){if(!!e.tracing&&qr.flags&3145728&&ct.flags&3145728){var Rt=qr,rn=ct;if(Rt.objectFlags&rn.objectFlags&65536)return;var ea=Rt.types.length,Vn=rn.types.length;ea*Vn>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:qr.id,sourceSize:ea,targetId:ct.id,targetSize:Vn,pos:o==null?void 0:o.pos,end:o==null?void 0:o.end})}}function Kr(qr,ct,Rt){if(qr.flags!==ct.flags)return 0;if(qr.flags&67358815)return-1;if(Gi(qr,ct),qr.flags&3145728){var rn=jn(qr,ct);return rn&&(rn&=jn(ct,qr)),rn}return Qt(qr,ct,!1,0,Rt)}function Dr(qr,ct){var Rt=function(rn,ea){var Vn;ea=Dn(ea);var Sn=ea.flags&3145728?fo(ea,ct):Sd(ea,ct),qt=Sn&&En(Sn)||((Vn=Up(ea,ct))===null||Vn===void 0?void 0:Vn.type)||Rr;return e.append(rn,qt)};return ha(e.reduceLeft(qr,Rt,void 0)||e.emptyArray)}function yn(qr,ct,Rt){var rn;if(!Xh(ct)||!sr&&e.getObjectFlags(ct)&8192)return!1;var ea=!!(e.getObjectFlags(qr)&2048);if((a===Un||a===Ta)&&(Vh(Bn,ct)||!ea&&Sf(ct)))return!1;var Vn=ct,Sn;ct.flags&1048576&&(Vn=JN(qr,ct,Hn)||kF(ct),Sn=Vn.flags&1048576?Vn.types:[Vn]);for(var qt=function(ji){if(on(ji,qr.symbol)&&!KA(qr,ji)){if(!fT(Vn,ji.escapedName,ea)){if(Rt){var gs=el(Vn,Xh);if(!o)return{value:e.Debug.fail()};if(e.isJsxAttributes(o)||e.isJsxOpeningLikeElement(o)||e.isJsxOpeningLikeElement(o.parent)){ji.valueDeclaration&&e.isJsxAttribute(ji.valueDeclaration)&&e.getSourceFileOfNode(o)===e.getSourceFileOfNode(ji.valueDeclaration.name)&&(o=ji.valueDeclaration.name);var ps=Ja(ji),Xo=Cx(ps,gs),no=Xo?Ja(Xo):void 0;no?mn(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,ps,pn(gs),no):mn(e.Diagnostics.Property_0_does_not_exist_on_type_1,ps,pn(gs))}else{var Ko=((rn=qr.symbol)===null||rn===void 0?void 0:rn.declarations)&&e.firstOrUndefined(qr.symbol.declarations),no=void 0;if(ji.valueDeclaration&&e.findAncestor(ji.valueDeclaration,function(oa){return oa===Ko})&&e.getSourceFileOfNode(Ko)===e.getSourceFileOfNode(o)){var rs=ji.valueDeclaration;e.Debug.assertNode(rs,e.isObjectLiteralElementLike),o=rs;var it=rs.name;e.isIdentifier(it)&&(no=yT(it,gs))}no!==void 0?mn(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ja(ji),pn(gs),no):mn(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ja(ji),pn(gs))}}return{value:!0}}if(Sn&&!Hn(En(ji),Dr(Sn,ji.escapedName),3,Rt))return Rt&&Ht(e.Diagnostics.Types_of_property_0_are_incompatible,Ja(ji)),{value:!0}}},ni=0,yi=ro(qr);ni<yi.length;ni++){var ai=yi[ni],uo=qt(ai);if(typeof uo=="object")return uo.value}return!1}function on(qr,ct){return qr.valueDeclaration&&ct.valueDeclaration&&qr.valueDeclaration.parent===ct.valueDeclaration}function jn(qr,ct){for(var Rt=-1,rn=qr.types,ea=0,Vn=rn;ea<Vn.length;ea++){var Sn=Vn[ea],qt=Tn(Sn,ct,!1);if(!qt)return 0;Rt&=qt}return Rt}function Tn(qr,ct,Rt){var rn=ct.types;if(ct.flags&1048576){if(sp(rn,qr))return-1;var ea=SC(ct,qr);if(ea){var Vn=Hn(qr,ea,2,!1);if(Vn)return Vn}}for(var Sn=0,qt=rn;Sn<qt.length;Sn++){var ni=qt[Sn],Vn=Hn(qr,ni,2,!1);if(Vn)return Vn}if(Rt){var yi=qA(qr,ct,Hn);Hn(qr,yi||rn[rn.length-1],2,!0)}return 0}function Fn(qr,ct,Rt,rn){for(var ea=-1,Vn=ct.types,Sn=0,qt=Vn;Sn<qt.length;Sn++){var ni=qt[Sn],yi=Hn(qr,ni,2,Rt,void 0,rn);if(!yi)return 0;ea&=yi}return ea}function Qr(qr,ct,Rt,rn){var ea=qr.types;if(qr.flags&1048576&&sp(ea,ct))return-1;for(var Vn=ea.length,Sn=0;Sn<Vn;Sn++){var qt=Hn(ea[Sn],ct,1,Rt&&Sn===Vn-1,void 0,rn);if(qt)return qt}return 0}function at(qr,ct){return qr.flags&1048576&&ct.flags&1048576&&!(qr.types[0].flags&32768)&&ct.types[0].flags&32768?$_(ct,-32769):ct}function Ft(qr,ct,Rt,rn){for(var ea=-1,Vn=qr.types,Sn=at(qr,ct),qt=0;qt<Vn.length;qt++){var ni=Vn[qt];if(Sn.flags&1048576&&Vn.length>=Sn.types.length&&Vn.length%Sn.types.length===0){var yi=Hn(ni,Sn.types[qt%Sn.types.length],3,!1,void 0,rn);if(yi){ea&=yi;continue}}var ai=Hn(ni,ct,1,Rt,void 0,rn);if(!ai)return 0;ea&=ai}return ea}function Vt(qr,ct,Rt,rn,ea){if(qr===void 0&&(qr=e.emptyArray),ct===void 0&&(ct=e.emptyArray),Rt===void 0&&(Rt=e.emptyArray),qr.length!==ct.length&&a===Ei)return 0;for(var Vn=qr.length<=ct.length?qr.length:ct.length,Sn=-1,qt=0;qt<Vn;qt++){var ni=qt<Rt.length?Rt[qt]:1,yi=ni&7;if(yi!==4){var ai=qr[qt],uo=ct[qt],ji=-1;if(ni&8?ji=a===Ei?Hn(ai,uo,3,!1):cv(ai,uo):yi===1?ji=Hn(ai,uo,3,rn,void 0,ea):yi===2?ji=Hn(uo,ai,3,rn,void 0,ea):yi===3?(ji=Hn(uo,ai,3,!1),ji||(ji=Hn(ai,uo,3,rn,void 0,ea))):(ji=Hn(ai,uo,3,rn,void 0,ea),ji&&(ji&=Hn(uo,ai,3,rn,void 0,ea))),!ji)return 0;Sn&=ji}}return Sn}function Qt(qr,ct,Rt,rn,ea){if(Tt)return 0;var Vn=rn|(In?16:0),Sn=y1(qr,ct,Vn,a,!1),qt=a.get(Sn);if(qt!==void 0&&!(Rt&&qt&2&&!(qt&4))){if(dt){var ni=qt&24;ni&8&&ci(qr,S_(ga)),ni&16&&ci(qr,S_(za))}return qt&1?-1:0}if(!Oe)Oe=[],je=[],ze=[];else{for(var yi=Sn.startsWith("*")?y1(qr,ct,Vn,a,!0):void 0,ai=0;ai<tr;ai++)if(Sn===Oe[ai]||yi&&yi===Oe[ai])return 3;if(_r===100||Vr===100)return Tt=!0,0}var uo=tr;Oe[tr]=Sn,tr++;var ji=$r;ea&1&&(je[_r]=qr,_r++,!($r&1)&&Fh(qr,je,_r)&&($r|=1)),ea&2&&(ze[Vr]=ct,Vr++,!($r&2)&&Fh(ct,ze,Vr)&&($r|=2));var gs,ps=0;dt&&(gs=dt,dt=function(no){return ps|=no?16:8,gs(no)}),$r===3&&(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:qr.id,sourceIdStack:je.map(function(no){return no.id}),targetId:ct.id,targetIdStack:ze.map(function(no){return no.id}),depth:_r,targetDepth:Vr}));var Xo=$r!==3?gn(qr,ct,Rt,rn):3;if(dt&&(dt=gs),ea&1&&_r--,ea&2&&Vr--,$r=ji,Xo){if(Xo===-1||_r===0&&Vr===0){if(Xo===-1||Xo===3)for(var ai=uo;ai<tr;ai++)a.set(Oe[ai],1|ps);tr=uo}}else a.set(Sn,(Rt?4:0)|2|ps),tr=uo;return Xo}function gn(qr,ct,Rt,rn){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:qr.id,targetId:ct.id});var ea=Sa(qr,ct,Rt,rn);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),ea}function Sa(qr,ct,Rt,rn){if(rn&4)return ds(qr,ct,Rt,void 0,0);if(rn&8){if(qr.flags&1048576)return a===Ta?Qr(qr,ct,Rt&&!(qr.flags&131068),rn&-9):Ft(qr,ct,Rt&&!(qr.flags&131068),rn&-9);if(ct.flags&1048576)return Tn(hg(qr),ct,Rt&&!(qr.flags&131068)&&!(ct.flags&131068));if(ct.flags&2097152)return Fn(hg(qr),ct,Rt,2);if(a===Ta&&ct.flags&131068){var ea=e.sameMap(qr.types,bm);if(ea!==qr.types&&(qr=To(ea),!(qr.flags&2097152)))return Hn(qr,ct,1,!1)}return Qr(qr,ct,!1,1)}var Vn=qr.flags&ct.flags;if(a===Ei&&!(Vn&524288)){if(Vn&4194304)return Hn(qr.type,ct.type,3,!1);var Sn=0;return Vn&8388608&&(Sn=Hn(qr.objectType,ct.objectType,3,!1))&&(Sn&=Hn(qr.indexType,ct.indexType,3,!1))||Vn&16777216&&qr.root.isDistributive===ct.root.isDistributive&&(Sn=Hn(qr.checkType,ct.checkType,3,!1))&&(Sn&=Hn(qr.extendsType,ct.extendsType,3,!1))&&(Sn&=Hn(up(qr),up(ct),3,!1))&&(Sn&=Hn(fp(qr),fp(ct),3,!1))?Sn:Vn&33554432?Hn(qr.substitute,ct.substitute,3,!1):0}var qt,ni,yi=!1,ai=Co();if(qr.flags&17301504&&qr.aliasSymbol&&qr.aliasTypeArguments&&qr.aliasSymbol===ct.aliasSymbol&&!(qr.aliasTypeArgumentsContainsMarker||ct.aliasTypeArgumentsContainsMarker)){var uo=YA(qr.aliasSymbol);if(uo===e.emptyArray)return 1;var ji=qN(qr.aliasTypeArguments,ct.aliasTypeArguments,uo,rn);if(ji!==void 0)return ji}if(aC(qr)&&!qr.target.readonly&&(qt=Hn(ho(qr)[0],ct,1))||aC(ct)&&(ct.target.readonly||yb(pl(qr)||qr))&&(qt=Hn(qr,ho(ct)[0],2)))return qt;if(ct.flags&262144){if(e.getObjectFlags(qr)&32&&!qr.declaration.nameType&&Hn(Zu(ct),Dc(qr),3)&&!(Lc(qr)&4)){var gs=xu(qr),ps=Xl(ct,lu(qr));if(qt=Hn(gs,ps,3,Rt))return qt}}else if(ct.flags&4194304){var Xo=ct.type;if(qr.flags&4194304&&(qt=Hn(Xo,qr.type,3,!1)))return qt;if(ki(Xo)){if(qt=Hn(qr,aA(Xo),2,Rt))return qt}else{var no=Eh(Xo);if(no){if(Hn(qr,Zu(no,ct.stringsOnly),2,Rt)===-1)return-1}else if(wl(Xo)){var Ko=Td(Xo),rs=Dc(Xo),it=void 0;if(Ko&&$m(Xo)){var un=Dn(eg(Xo)),oa=[];hh(un,8576,!1,function(Gv){return void oa.push(ci(Ko,lv(Xo.mapper,lu(Xo),Gv)))}),it=ha(Bt(Bt([],oa,!0),[Ko],!1))}else it=Ko||rs;if(Hn(qr,it,2,Rt)===-1)return-1}}}else if(ct.flags&8388608){if(qr.flags&8388608){if((qt=Hn(qr.objectType,ct.objectType,3,Rt))&&(qt&=Hn(qr.indexType,ct.indexType,3,Rt)),qt)return Ii(ai),qt;Rt&&(ni=U)}if(a===Un||a===Ta){var zn=ct.objectType,aa=ct.indexType,qa=pl(zn)||zn,Ka=pl(aa)||aa;if(!z_(qa)&&!q_(Ka)){var mi=4|(qa!==zn?2:0),no=cp(qa,Ka,mi);if(no){if(Rt&&ni&&Ii(ai),qt=Hn(qr,no,2,Rt))return qt;Rt&&ni&&U&&(U=hS([ni])<=hS([U])?ni:U)}}}Rt&&(ni=void 0)}else if(wl(ct)&&a!==Ei){var Wa=!!ct.declaration.nameType,gs=xu(ct),Ma=Lc(ct);if(!(Ma&8)){if(!Wa&&gs.flags&8388608&&gs.objectType===qr&&gs.indexType===lu(ct))return-1;if(!wl(qr)){var it=Wa?Td(ct):Dc(ct),Xi=Zu(qr,void 0,!0),bo=Ma&4,is=bo?J_(it,Xi):void 0;if(bo?!(is.flags&131072):Hn(it,Xi,3)){var Io=xu(ct),Ao=lu(ct),ws=$_(Io,-98305);if(!Wa&&ws.flags&8388608&&ws.indexType===Ao){if(qt=Hn(qr,ws.objectType,2,Rt))return qt}else{var El=Wa?is||it:is?To([is,Ao]):Ao,ps=Xl(qr,El);if(qt=Hn(ps,Io,3,Rt))return qt}}ni=U,Ii(ai)}}}else if(ct.flags&16777216){if(Fh(ct,ze,Vr,10))return Ii(ai),3;var Ns=ct;if(!Ns.root.inferTypeParameters&&!N4(Ns.root)){var Nc=!$i(mb(Ns.checkType),mb(Ns.extendsType)),am=!Nc&&$i(L_(Ns.checkType),L_(Ns.extendsType));if((qt=Nc?-1:Hn(qr,up(Ns),2,!1))&&(qt&=am?-1:Hn(qr,fp(Ns),2,!1),qt))return Ii(ai),qt}}else if(ct.flags&134217728){if(qr.flags&134217728){if(a===Ta)return $w(qr,ct)?0:-1;ci(qr,S_(za))}if(vC(qr,ct))return-1}if(qr.flags&8650752){if(!(qr.flags&8388608&&ct.flags&8388608)){var no=Bp(qr);if(!no||qr.flags&262144&&no.flags&1){if(qt=Hn(Qn,$_(ct,-67108865),3))return Ii(ai),qt}else{if(qt=Hn(no,ct,1,!1,void 0,rn))return Ii(ai),qt;if(qt=Hn(yl(no,qr),ct,1,Rt&&!(ct.flags&qr.flags&262144),void 0,rn))return Ii(ai),qt}}}else if(qr.flags&4194304){if(qt=Hn(Ct,ct,1,Rt))return Ii(ai),qt}else if(qr.flags&134217728&&!(ct.flags&524288)){if(!(ct.flags&134217728)){var no=pl(qr);if(no&&no!==qr&&(qt=Hn(no,ct,1,Rt)))return Ii(ai),qt}}else if(qr.flags&268435456)if(ct.flags&268435456&&qr.symbol===ct.symbol){if(qt=Hn(qr.type,ct.type,3,Rt))return Ii(ai),qt}else{var no=pl(qr);if(no&&(qt=Hn(no,ct,1,Rt)))return Ii(ai),qt}else if(qr.flags&16777216){if(Fh(qr,je,_r,10))return Ii(ai),3;if(ct.flags&16777216){var w_=qr.root.inferTypeParameters,wd=qr.extendsType,r_=void 0;if(w_){var t_=pv(w_,void 0,0,Pi);Df(t_.inferences,ct.extendsType,wd,1536),wd=ci(wd,t_.mapper),r_=t_.mapper}if(Qf(wd,ct.extendsType)&&(Hn(qr.checkType,ct.checkType,3)||Hn(ct.checkType,qr.checkType,3))&&((qt=Hn(ci(up(qr),r_),up(ct),3,Rt))&&(qt&=Hn(fp(qr),fp(ct),3,Rt)),qt))return Ii(ai),qt}else{var Md=Zy(qr);if(Md&&(qt=Hn(Md,ct,1,Rt)))return Ii(ai),qt}var Wm=Th(qr);if(Wm&&(qt=Hn(Wm,ct,1,Rt)))return Ii(ai),qt}else{if(a!==en&&a!==ta&&T0(ct)&&Sf(qr))return-1;if(wl(ct))return wl(qr)&&(qt=Hi(qr,ct,Rt))?(Ii(ai),qt):0;var Yl=!!(qr.flags&131068);if(a!==Ei)qr=Dn(qr);else if(wl(qr))return 0;if(e.getObjectFlags(qr)&4&&e.getObjectFlags(ct)&4&&qr.target===ct.target&&!ki(qr)&&!(e.getObjectFlags(qr)&4096||e.getObjectFlags(ct)&4096)){var uo=h1(qr.target);if(uo===e.emptyArray)return 1;var ji=qN(ho(qr),ho(ct),uo,rn);if(ji!==void 0)return ji}else{if(mg(ct)?$s(qr)||ki(qr):$s(ct)&&ki(qr)&&!qr.target.readonly)return a!==Ei?Hn(Qu(qr,Nt)||ke,Qu(ct,Nt)||ke,3,Rt):0;if((a===en||a===ta)&&Sf(ct)&&e.getObjectFlags(ct)&16384&&!Sf(qr))return 0}if(qr.flags&2621440&&ct.flags&524288){var vp=Rt&&U===ai.errorInfo&&!Yl;if(qt=ds(qr,ct,vp,void 0,rn),qt&&(qt&=ys(qr,ct,0,vp),qt&&(qt&=ys(qr,ct,1,vp),qt&&(qt&=wi(qr,ct,Yl,vp,rn)))),yi&&qt)U=ni||U||ai.errorInfo;else if(qt)return qt}if(qr.flags&2621440&&ct.flags&1048576){var KN=$_(ct,36175872);if(KN.flags&1048576){var zN=Ya(qr,KN);if(zN)return zN}}}return 0;function hS(Gv){return Gv?e.reduceLeft(Gv,function(gy,Mg){return gy+1+hS(Mg.next)},0):0}function qN(Gv,gy,Mg,OF){if(qt=Vt(Gv,gy,Mg,Rt,OF))return qt;if(e.some(Mg,function(yS){return!!(yS&24)})){ni=void 0,Ii(ai);return}var XN=gy&&hw(gy,Mg);if(yi=!XN,Mg!==e.emptyArray&&!XN){if(yi&&!(Rt&&e.some(Mg,function(yS){return(yS&7)===0})))return 0;ni=U,Ii(ai)}}}function ga(qr){return dt&&(qr===eo||qr===Wo||qr===Yi)&&dt(!1),qr}function za(qr){return dt&&(qr===eo||qr===Wo||qr===Yi)&&dt(!0),qr}function Hi(qr,ct,Rt){var rn=a===Ta||(a===Ei?Lc(qr)===Lc(ct):bh(qr)<=bh(ct));if(rn){var ea,Vn=Dc(ct),Sn=ci(Dc(qr),S_(bh(qr)<0?ga:za));if(ea=Hn(Vn,Sn,3,Rt)){var qt=Pl([lu(qr)],[lu(ct)]);if(ci(Td(qr),qt)===ci(Td(ct),qt))return ea&Hn(ci(xu(qr),qt),xu(ct),3,Rt)}}return 0}function Ya(qr,ct){var Rt=ro(qr),rn=TC(Rt,ct);if(!rn)return 0;for(var ea=1,Vn=0,Sn=rn;Vn<Sn.length;Vn++){var qt=Sn[Vn];if(ea*=L6(Jf(qt)),ea>25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:qr.id,targetId:ct.id,numCombinations:ea}),0}for(var ni=new Array(rn.length),yi=new e.Set,ai=0;ai<rn.length;ai++){var qt=rn[ai],uo=Jf(qt);ni[ai]=uo.flags&1048576?uo.types:[uo],yi.add(qt.escapedName)}for(var ji=e.cartesianProduct(ni),gs=[],ps=function(aa){var qa=!1;e:for(var Ka=0,mi=ct.types;Ka<mi.length;Ka++){for(var Wa=mi[Ka],Ma=function(is){var Io=rn[is],Ao=pi(Wa,Io.escapedName);if(!Ao)return"continue-outer";if(Io===Ao)return"continue";var ws=so(qr,ct,Io,Ao,function(El){return aa[is]},!1,0,Er||a===Ta);if(!ws)return"continue-outer"},Xi=0;Xi<rn.length;Xi++){var bo=Ma(Xi);switch(bo){case"continue-outer":continue e}}e.pushIfUnique(gs,Wa,e.equateValues),qa=!0}if(!qa)return{value:0}},Xo=0,no=ji;Xo<no.length;Xo++){var Ko=no[Xo],rs=ps(Ko);if(typeof rs=="object")return rs.value}for(var it=-1,un=0,oa=gs;un<oa.length;un++){var zn=oa[un];if(it&=ds(qr,zn,!1,yi,0),it&&(it&=ys(qr,zn,0,!1),it&&(it&=ys(qr,zn,1,!1),it&&!(ki(qr)&&ki(zn))&&(it&=wi(qr,zn,!1,!1,0)))),!it)return it}return it}function yo(qr,ct){if(!ct||qr.length===0)return qr;for(var Rt,rn=0;rn<qr.length;rn++)ct.has(qr[rn].escapedName)?Rt||(Rt=qr.slice(0,rn)):Rt&&Rt.push(qr[rn]);return Rt||qr}function Vo(qr,ct,Rt,rn,ea){var Vn=Er&&!!(e.getCheckFlags(ct)&48),Sn=ac(Jf(ct),!1,Vn),qt=Rt(qr);return Hn(qt,Sn,3,rn,void 0,ea)}function so(qr,ct,Rt,rn,ea,Vn,Sn,qt){var ni=e.getDeclarationModifierFlagsFromSymbol(Rt),yi=e.getDeclarationModifierFlagsFromSymbol(rn);if(ni&8||yi&8){if(Rt.valueDeclaration!==rn.valueDeclaration)return Vn&&(ni&8&&yi&8?mn(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ja(rn)):mn(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ja(rn),pn(ni&8?qr:ct),pn(ni&8?ct:qr))),0}else if(yi&16){if(!Sw(Rt,rn))return Vn&&mn(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ja(rn),pn(Q_(Rt)||qr),pn(Q_(rn)||ct)),0}else if(ni&16)return Vn&&mn(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ja(rn),pn(qr),pn(ct)),0;var ai=Vo(Rt,rn,ea,Vn,Sn);return ai?!qt&&Rt.flags&16777216&&!(rn.flags&16777216)?(Vn&&mn(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ja(rn),pn(qr),pn(ct)),0):ai:(Vn&&Ht(e.Diagnostics.Types_of_property_0_are_incompatible,Ja(rn)),0)}function xs(qr,ct,Rt,rn){var ea=!1;if(Rt.valueDeclaration&&e.isNamedDeclaration(Rt.valueDeclaration)&&e.isPrivateIdentifier(Rt.valueDeclaration.name)&&qr.symbol&&qr.symbol.flags&32){var Vn=Rt.valueDeclaration.name.escapedText,Sn=e.getSymbolNameForPrivateIdentifier(qr.symbol,Vn);if(Sn&&pi(qr,Sn)){var qt=e.factory.getDeclarationName(qr.symbol.valueDeclaration),ni=e.factory.getDeclarationName(ct.symbol.valueDeclaration);mn(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,$l(Vn),$l(qt.escapedText===""?c:qt),$l(ni.escapedText===""?c:ni));return}}var yi=e.arrayFrom(F1(qr,ct,rn,!1));if((!s||s.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&s.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(ea=!0),yi.length===1){var ai=Ja(Rt);mn.apply(void 0,Bt([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,ai],ep(qr,ct),!1)),e.length(Rt.declarations)&&Oa(e.createDiagnosticForNode(Rt.declarations[0],e.Diagnostics._0_is_declared_here,ai)),ea&&U&&St++}else Di(qr,ct,!1)&&(yi.length>5?mn(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,pn(qr),pn(ct),e.map(yi.slice(0,4),function(uo){return Ja(uo)}).join(", "),yi.length-4):mn(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,pn(qr),pn(ct),e.map(yi,function(uo){return Ja(uo)}).join(", ")),ea&&U&&St++)}function ds(qr,ct,Rt,rn,ea){if(a===Ei)return zs(qr,ct,rn);var Vn=-1;if(ki(ct)){if($s(qr)||ki(qr)){if(!ct.target.readonly&&(mg(qr)||ki(qr)&&qr.target.readonly))return 0;var Sn=op(qr),qt=op(ct),ni=ki(qr)?qr.target.combinedFlags&4:4,yi=ct.target.combinedFlags&4,ai=ki(qr)?qr.target.minLength:0,uo=ct.target.minLength;if(!ni&&Sn<uo)return Rt&&mn(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,Sn,uo),0;if(!yi&&qt<ai)return Rt&&mn(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,ai,qt),0;if(!yi&&(ni||qt<Sn))return Rt&&(ai<uo?mn(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,uo):mn(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,qt)),0;for(var ji=ho(qr),gs=ho(ct),ps=Math.min(ki(qr)?iA(qr.target,11):0,iA(ct.target,11)),Xo=Math.min(ki(qr)?sb(qr.target,11):0,yi?sb(ct.target,11):0),no=!!rn,Ko=0;Ko<qt;Ko++){var rs=Ko<qt-Xo?Ko:Ko+Sn-qt,it=ki(qr)&&(Ko<ps||Ko>=qt-Xo)?qr.target.elementFlags[rs]:4,un=ct.target.elementFlags[Ko];if(un&8&&!(it&8))return Rt&&mn(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Ko),0;if(it&8&&!(un&12))return Rt&&mn(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,rs,Ko),0;if(un&1&&!(it&1))return Rt&&mn(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,Ko),0;if(!(no&&((it&12||un&12)&&(no=!1),no&&(rn==null?void 0:rn.has(""+Ko))))){var oa=ki(qr)?Ko<ps||Ko>=qt-Xo?Nm(ji[rs],!!(it&un&2)):bb(qr,ps,Xo)||nn:ji[0],zn=gs[Ko],aa=it&8&&un&4?Js(zn):Nm(zn,!!(un&2)),qa=Hn(oa,aa,3,Rt,void 0,ea);if(!qa)return Rt&&(qt>1||Sn>1)&&(Ko<ps||Ko>=qt-Xo||Sn-ps-Xo===1?Ht(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,rs,Ko):Ht(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,ps,Sn-Xo-1,Ko)),0;Vn&=qa}}return Vn}if(ct.target.combinedFlags&12)return 0}var Ka=(a===en||a===ta)&&!Xp(qr)&&!S1(qr)&&!ki(qr),mi=G1(qr,ct,Ka,!1);if(mi)return Rt&&xs(qr,ct,mi,Ka),0;if(Xp(ct))for(var Wa=0,Ma=yo(ro(qr),rn);Wa<Ma.length;Wa++){var Xi=Ma[Wa];if(!Sd(ct,Xi.escapedName)){var oa=En(Xi);if(!(oa.flags&32768))return Rt&&mn(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ja(Xi),pn(ct)),0}}for(var bo=ro(ct),is=ki(qr)&&ki(ct),Io=0,Ao=yo(bo,rn);Io<Ao.length;Io++){var ws=Ao[Io],El=ws.escapedName;if(!(ws.flags&4194304)&&(!is||rd(El)||El==="length")){var Xi=pi(qr,El);if(Xi&&Xi!==ws){var qa=so(qr,ct,Xi,ws,Jf,Rt,ea,a===Ta);if(!qa)return 0;Vn&=qa}}}return Vn}function zs(qr,ct,Rt){if(!(qr.flags&524288&&ct.flags&524288))return 0;var rn=yo(zf(qr),Rt),ea=yo(zf(ct),Rt);if(rn.length!==ea.length)return 0;for(var Vn=-1,Sn=0,qt=rn;Sn<qt.length;Sn++){var ni=qt[Sn],yi=Sd(ct,ni.escapedName);if(!yi)return 0;var ai=b1(ni,yi,Hn);if(!ai)return 0;Vn&=ai}return Vn}function ys(qr,ct,Rt,rn){var ea,Vn;if(a===Ei)return Pv(qr,ct,Rt);if(ct===$a||qr===$a)return-1;var Sn=qr.symbol&&_u(qr.symbol.valueDeclaration),qt=ct.symbol&&_u(ct.symbol.valueDeclaration),ni=Li(qr,Sn&&Rt===1?0:Rt),yi=Li(ct,qt&&Rt===1?0:Rt);if(Rt===1&&ni.length&&yi.length){var ai=!!(ni[0].flags&4),uo=!!(yi[0].flags&4);if(ai&&!uo)return rn&&mn(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Ws(ni[0],yi[0],rn))return 0}var ji=-1,gs=Co(),ps=Rt===1?Is:ad,Xo=e.getObjectFlags(qr),no=e.getObjectFlags(ct);if(Xo&64&&no&64&&qr.symbol===ct.symbol)for(var Ko=0;Ko<yi.length;Ko++){var rs=Rd(ni[Ko],yi[Ko],!0,rn,ps(ni[Ko],yi[Ko]));if(!rs)return 0;ji&=rs}else if(ni.length===1&&yi.length===1){var it=a===Ta||!!We.noStrictGenericChecks,un=e.first(ni),oa=e.first(yi);if(ji=Rd(un,oa,it,rn,ps(un,oa)),!ji&&rn&&Rt===1&&Xo&no&&(((ea=oa.declaration)===null||ea===void 0?void 0:ea.kind)===170||((Vn=un.declaration)===null||Vn===void 0?void 0:Vn.kind)===170)){var zn=function(bo){return Tc(bo,void 0,262144,Rt)};return mn(e.Diagnostics.Type_0_is_not_assignable_to_type_1,zn(un),zn(oa)),mn(e.Diagnostics.Types_of_construct_signatures_are_incompatible),ji}}else{e:for(var aa=0,qa=yi;aa<qa.length;aa++){for(var Ka=qa[aa],mi=rn,Wa=0,Ma=ni;Wa<Ma.length;Wa++){var Xi=Ma[Wa],rs=Rd(Xi,Ka,!0,mi,ps(Xi,Ka));if(rs){ji&=rs,Ii(gs);continue e}mi=!1}return mi&&mn(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,pn(qr),Tc(Ka,void 0,void 0,Rt)),0}}return ji}function ad(qr,ct){return qr.parameters.length===0&&ct.parameters.length===0?function(Rt,rn){return Ht(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,pn(Rt),pn(rn))}:function(Rt,rn){return Ht(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,pn(Rt),pn(rn))}}function Is(qr,ct){return qr.parameters.length===0&&ct.parameters.length===0?function(Rt,rn){return Ht(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,pn(Rt),pn(rn))}:function(Rt,rn){return Ht(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,pn(Rt),pn(rn))}}function Rd(qr,ct,Rt,rn,ea){return f1(Rt?rv(qr):qr,Rt?rv(ct):ct,a===ta?8:0,rn,mn,ea,Pi,S_(za))}function Pv(qr,ct,Rt){var rn=Li(qr,Rt),ea=Li(ct,Rt);if(rn.length!==ea.length)return 0;for(var Vn=-1,Sn=0;Sn<rn.length;Sn++){var qt=Bh(rn[Sn],ea[Sn],!1,!1,!1,Hn);if(!qt)return 0;Vn&=qt}return Vn}function Fv(qr,ct,Rt){for(var rn=-1,ea=ct.keyType,Vn=qr.flags&2097152?rg(qr):zf(qr),Sn=0,qt=Vn;Sn<qt.length;Sn++){var ni=qt[Sn];if(!KA(qr,ni)&&Ld(fg(ni,8576),ea)){var yi=Jf(ni),ai=de||yi.flags&32768||ea===Nt||!(ni.flags&16777216)?yi:Us(yi,524288),uo=Hn(ai,ct.type,3,Rt);if(!uo)return Rt&&mn(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Ja(ni)),0;rn&=uo}}for(var ji=0,gs=Bs(qr);ji<gs.length;ji++){var ps=gs[ji];if(Ld(ps.keyType,ea)){var uo=Ua(ps,ct,Rt);if(!uo)return 0;rn&=uo}}return rn}function Ua(qr,ct,Rt){var rn=Hn(qr.type,ct.type,3,Rt);return!rn&&Rt&&(qr.keyType===ct.keyType?mn(e.Diagnostics._0_index_signatures_are_incompatible,pn(qr.keyType)):mn(e.Diagnostics._0_and_1_index_signatures_are_incompatible,pn(qr.keyType),pn(ct.keyType))),rn}function wi(qr,ct,Rt,rn,ea){if(a===Ei)return po(qr,ct);for(var Vn=Bs(ct),Sn=e.some(Vn,function(ji){return ji.keyType===pt}),qt=-1,ni=0,yi=Vn;ni<yi.length;ni++){var ai=yi[ni],uo=!Rt&&Sn&&ai.type.flags&1?-1:wl(qr)&&Sn?Hn(xu(qr),ai.type,3,rn):qo(qr,ai,rn,ea);if(!uo)return 0;qt&=uo}return qt}function qo(qr,ct,Rt,rn){var ea=K_(qr,ct.keyType);return ea?Ua(ea,ct,Rt):!(rn&1)&&Db(qr)?Fv(qr,ct,Rt):(Rt&&mn(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,pn(ct.keyType),pn(qr)),0)}function po(qr,ct){var Rt=Bs(qr),rn=Bs(ct);if(Rt.length!==rn.length)return 0;for(var ea=0,Vn=rn;ea<Vn.length;ea++){var Sn=Vn[ea],qt=cu(qr,Sn.keyType);if(!(qt&&Hn(qt.type,Sn.type,3)&&qt.isReadonly===Sn.isReadonly))return 0}return-1}function Ws(qr,ct,Rt){if(!qr.declaration||!ct.declaration)return!0;var rn=e.getSelectedEffectiveModifierFlags(qr.declaration,24),ea=e.getSelectedEffectiveModifierFlags(ct.declaration,24);return ea===8||ea===16&&rn!==8||ea!==16&&!rn?!0:(Rt&&mn(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,pc(rn),pc(ea)),!1)}}function m1(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!e.forEach(r.types,m1);if(r.flags&465829888){var t=Bp(r);if(t&&t!==r)return m1(t)}return Ou(r)||!!(r.flags&134217728)}function zA(r,t){return ki(r)&&ki(t)?e.emptyArray:ro(t).filter(function(a){return g1(na(r,a.escapedName),En(a))})}function g1(r,t){return!!r&&!!t&&Jo(r,32768)&&!!Sb(t)}function mw(r){return ro(r).filter(function(t){return Sb(En(t))})}function qA(r,t,a){return a===void 0&&(a=c1),JN(r,t,a,!0)||CF(r,t)||xF(r,t)||IF(r,t)||NF(r,t)}function v1(r,t,a,o,s){for(var f=r.types.map(function(jt){}),N=0,U=t;N<U.length;N++){var fe=U[N],Oe=fe[0],je=fe[1],ze=li(r,je);if(!(s&&ze&&e.getCheckFlags(ze)&16))for(var tr=0,_r=0,Vr=r.types;_r<Vr.length;_r++){var $r=Vr[_r],Tt=na($r,je);Tt&&a(Oe(),Tt)?f[tr]=f[tr]===void 0?!0:f[tr]:f[tr]=!1,tr++}}var St=f.indexOf(!0);if(St===-1)return o;for(var It=f.indexOf(!0,St+1);It!==-1;){if(!Qf(r.types[St],r.types[It]))return o;It=f.indexOf(!0,It+1)}return r.types[St]}function XA(r){if(r.flags&524288){var t=Wc(r);return t.callSignatures.length===0&&t.constructSignatures.length===0&&t.indexInfos.length===0&&t.properties.length>0&&e.every(t.properties,function(a){return!!(a.flags&16777216)})}return r.flags&2097152?e.every(r.types,XA):!1}function gw(r,t,a){for(var o=0,s=ro(r);o<s.length;o++){var f=s[o];if(fT(t,f.escapedName,a))return!0}return!1}function vw(r,t,a){var o=qf(r,e.map(r.typeParameters,function(s){return s===t?a:s}));return o.objectFlags|=4096,o}function YA(r){var t=Va(r);return QA(t.typeParameters,t,function(a,o,s){var f=cg(r,Cd(t.typeParameters,Y_(o,s)));return f.aliasTypeArgumentsContainsMarker=!0,f})}function QA(r,t,a){var o,s,f;r===void 0&&(r=e.emptyArray);var N=t.variances;if(!N){e.tracing===null||e.tracing===void 0||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:(f=(o=t.id)!==null&&o!==void 0?o:(s=t.declaredType)===null||s===void 0?void 0:s.id)!==null&&f!==void 0?f:-1}),t.variances=e.emptyArray,N=[];for(var U=function(ze){var tr=!1,_r=!1,Vr=dt;dt=function(It){return It?_r=!0:tr=!0};var $r=a(t,ze,eo),Tt=a(t,ze,Wo),St=($i(Tt,$r)?1:0)|($i($r,Tt)?2:0);St===3&&$i(a(t,ze,Yi),$r)&&(St=4),dt=Vr,(tr||_r)&&(tr&&(St|=8),_r&&(St|=16)),N.push(St)},fe=0,Oe=r;fe<Oe.length;fe++){var je=Oe[fe];U(je)}t.variances=N,e.tracing===null||e.tracing===void 0||e.tracing.pop()}return N}function h1(r){return r===ye||r===oe||r.objectFlags&8?Ue:QA(r.typeParameters,r,vw)}function hw(r,t){for(var a=0;a<t.length;a++)if((t[a]&7)===1&&r[a].flags&16384)return!0;return!1}function yw(r){return r.flags&262144&&!bl(r)}function bw(r){return!!(e.getObjectFlags(r)&4)&&!r.node}function vb(r){return bw(r)&&e.some(ho(r),function(t){return!!(t.flags&262144)||vb(t)})}function Ew(r,t,a,o){var s=[],f="",N=fe(r,0),U=fe(t,0);return"".concat(f).concat(N,",").concat(U).concat(a);function fe(Oe,je){je===void 0&&(je=0);for(var ze=""+Oe.target.id,tr=0,_r=ho(Oe);tr<_r.length;tr++){var Vr=_r[tr];if(Vr.flags&262144){if(o||yw(Vr)){var $r=s.indexOf(Vr);$r<0&&($r=s.length,s.push(Vr)),ze+="="+$r;continue}f="*"}else if(je<4&&vb(Vr)){ze+="<"+fe(Vr,je+1)+">";continue}ze+="-"+Vr.id}return ze}}function y1(r,t,a,o,s){if(o===Ei&&r.id>t.id){var f=r;r=t,t=f}var N=a?":"+a:"";return vb(r)&&vb(t)?Ew(r,t,N,s):"".concat(r.id,",").concat(t.id).concat(N)}function Ph(r,t){if(e.getCheckFlags(r)&6){for(var a=0,o=r.containingType.types;a<o.length;a++){var s=o[a],f=pi(s,r.escapedName),N=f&&Ph(f,t);if(N)return N}return}return t(r)}function Q_(r){return r.parent&&r.parent.flags&32?vo(Ls(r)):void 0}function hb(r){var t=Q_(r),a=t&&Gs(t)[0];return a&&na(a,r.escapedName)}function Tw(r,t){return Ph(r,function(a){var o=Q_(a);return o?Fp(o,t):!1})}function Sw(r,t){return!Ph(t,function(a){return e.getDeclarationModifierFlagsFromSymbol(a)&16?!Tw(r,Q_(a)):!1})}function Dw(r,t,a){return Ph(t,function(o){return e.getDeclarationModifierFlagsFromSymbol(o,a)&16?!Fp(r,Q_(o)):!1})?void 0:r}function Fh(r,t,a,o){if(o===void 0&&(o=3),a>=o)for(var s=Gh(r),f=0,N=0,U=0;U<a;U++){var fe=t[U];if(Gh(fe)===s){if(fe.id>=N&&(f++,f>=o))return!0;N=fe.id}}return!1}function Gh(r){if(r.flags&524288&&!B1(r)){if(e.getObjectFlags(r)&&4&&r.node)return r.node;if(r.symbol&&!(e.getObjectFlags(r)&16&&r.symbol.flags&32))return r.symbol;if(ki(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function ZA(r,t){return b1(r,t,cv)!==0}function b1(r,t,a){if(r===t)return-1;var o=e.getDeclarationModifierFlagsFromSymbol(r)&24,s=e.getDeclarationModifierFlagsFromSymbol(t)&24;if(o!==s)return 0;if(o){if(Um(r)!==Um(t))return 0}else if((r.flags&16777216)!==(t.flags&16777216))return 0;return Gu(r)!==Gu(t)?0:a(En(r),En(t))}function Lw(r,t,a){var o=Cl(r),s=Cl(t),f=Pu(r),N=Pu(t),U=Fu(r),fe=Fu(t);return!!(o===s&&f===N&&U===fe||a&&f<=N)}function Bh(r,t,a,o,s,f){if(r===t)return-1;if(!Lw(r,t,a)||e.length(r.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var N=Pl(r.typeParameters,t.typeParameters),U=0;U<t.typeParameters.length;U++){var fe=r.typeParameters[U],Oe=t.typeParameters[U];if(!(fe===Oe||f(ci(lg(fe),N)||Be,lg(Oe)||Be)&&f(ci(ee(fe),N)||Be,ee(Oe)||Be)))return 0}r=Cm(r,N,!0)}var je=-1;if(!o){var ze=E_(r);if(ze){var tr=E_(t);if(tr){var _r=f(ze,tr);if(!_r)return 0;je&=_r}}}for(var Vr=Cl(t),U=0;U<Vr;U++){var fe=Hc(r,U),Oe=Hc(t,U),_r=f(Oe,fe);if(!_r)return 0;je&=_r}if(!s){var $r=Cc(r),Tt=Cc(t);je&=$r||Tt?Aw($r,Tt,f):f(_o(r),_o(t))}return je}function Aw(r,t,a){return r&&t&&H0(r,t)?r.type===t.type?-1:r.type&&t.type?a(r.type,t.type):0:0}function Cw(r){for(var t,a=0,o=r;a<o.length;a++){var s=o[a],f=Ru(s);if(t||(t=f),f===s||f!==t)return!1}return!0}function $A(r){return r.length===1?r[0]:Cw(r)?ha(r):e.reduceLeft(r,function(t,a){return xd(t,a)?a:t})}function xw(r){if(!Er)return $A(r);var t=e.filter(r,function(a){return!(a.flags&98304)});return t.length?Eb($A(t),iC(r)&98304):ha(r,2)}function Iw(r){return e.reduceLeft(r,function(t,a){return xd(a,t)?a:t})}function $s(r){return!!(e.getObjectFlags(r)&4)&&(r.target===ye||r.target===oe)}function mg(r){return!!(e.getObjectFlags(r)&4)&&r.target===oe}function yb(r){return $s(r)&&!mg(r)||ki(r)&&!r.target.readonly}function E1(r){return $s(r)?ho(r)[0]:void 0}function _p(r){return $s(r)||!(r.flags&98304)&&$i(r,va)}function T1(r){if(!(!(e.getObjectFlags(r)&4)||!(e.getObjectFlags(r.target)&3))){if(e.getObjectFlags(r)&33554432)return e.getObjectFlags(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;var t=r.target;if(e.getObjectFlags(t)&1){var a=h_(t);if(a&&a.expression.kind!==79&&a.expression.kind!==205)return}var o=Gs(t);if(o.length===1&&!Tf(r.symbol).size){var s=e.length(t.typeParameters)?ci(o[0],Pl(t.typeParameters,ho(r).slice(0,t.typeParameters.length))):o[0];return e.length(ho(r))>e.length(t.typeParameters)&&(s=yl(s,e.last(ho(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=s}}}function eC(r){return Er?r===Kt:r===zr}function S1(r){var t=E1(r);return!!t&&eC(t)}function gg(r){return ki(r)||!!pi(r,"0")}function rC(r){return _p(r)||gg(r)}function Nw(r,t){var a=na(r,""+t);if(a)return a;if(ed(r,ki))return ms(r,function(o){return fv(o)||Rr})}function kw(r){return!(r.flags&240512)}function Ou(r){return!!(r.flags&109440)}function tC(r){return r.flags&2097152?e.some(r.types,Ou):!!(r.flags&109440)}function Ow(r){return r.flags&2097152&&e.find(r.types,Ou)||r}function Im(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:e.every(r.types,Ou):Ou(r)}function Ru(r){return r.flags&1024?Hs(r):r.flags&128?pt:r.flags&256?Nt:r.flags&2048?Xt:r.flags&512?ia:r.flags&1048576?ms(r,Ru):r}function zp(r){return r.flags&1024&&Kp(r)?Hs(r):r.flags&128&&Kp(r)?pt:r.flags&256&&Kp(r)?Nt:r.flags&2048&&Kp(r)?Xt:r.flags&512&&Kp(r)?ia:r.flags&1048576?ms(r,zp):r}function nC(r){return r.flags&8192?pa:r.flags&1048576?ms(r,nC):r}function D1(r,t){return lE(r,t)||(r=nC(zp(r))),r}function Rw(r,t,a){if(r&&Ou(r)){var o=t?a?xv(t):t:void 0;r=D1(r,o)}return r}function L1(r,t,a,o){if(r&&Ou(r)){var s=t?Bm(a,t,o):void 0;r=D1(r,s)}return r}function ki(r){return!!(e.getObjectFlags(r)&4&&r.target.objectFlags&8)}function vg(r){return ki(r)&&!!(r.target.combinedFlags&8)}function aC(r){return vg(r)&&r.target.elementFlags.length===1}function fv(r){return bb(r,r.target.fixedLength)}function ww(r){var t=fv(r);return t&&Js(t)}function bb(r,t,a,o){a===void 0&&(a=0),o===void 0&&(o=!1);var s=op(r)-a;if(t<s){for(var f=ho(r),N=[],U=t;U<s;U++){var fe=f[U];N.push(r.target.elementFlags[U]&8?Xl(fe,Nt):fe)}return o?To(N):ha(N)}}function Mw(r,t){return op(r)===op(t)&&e.every(r.target.elementFlags,function(a,o){return(a&12)===(t.target.elementFlags[o]&12)})}function A1(r){var t=r.value;return t.base10Value==="0"}function iC(r){for(var t=0,a=0,o=r;a<o.length;a++){var s=o[a];t|=mc(s)}return t}function mc(r){return r.flags&1048576?iC(r.types):r.flags&128?r.value===""?128:0:r.flags&256?r.value===0?256:0:r.flags&2048?A1(r)?2048:0:r.flags&512?r===st||r===$t?512:0:r.flags&117724}function oC(r){return mc(r)&117632?el(r,function(t){return!(mc(t)&117632)}):r}function Pw(r){return ms(r,Fw)}function Fw(r){return r.flags&4?bs:r.flags&8?xl:r.flags&64?ic:r===$t||r===st||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&A1(r)?r:nn}function Eb(r,t){var a=t&~r.flags&98304;return a===0?r:ha(a===32768?[r,Rr]:a===65536?[r,Lt]:[r,Rr,Lt])}function $f(r,t){return t===void 0&&(t=!1),e.Debug.assert(Er),r.flags&32768?r:ha([r,t?mt:Rr])}function Gw(r){var t=Us(r,2097152);return ti||(ti=tv("NonNullable",524288,void 0)||cr),ti!==cr?cg(ti,[t]):t}function Id(r){return Er?Gw(r):r}function sC(r){return Er?ha([r,ut]):r}function C1(r){return Er?Rb(r,ut):r}function Tb(r,t,a){return a?e.isOutermostOptionalChain(t)?$f(r):sC(r):r}function dv(r,t){return e.isExpressionOfOptionalChainRoot(t)?Id(r):e.isOptionalChain(t)?C1(r):r}function Nm(r,t){return de&&t?Rb(r,mt):r}function Sb(r){return de&&(r===mt||r.flags&1048576&&sp(r.types,mt))}function x1(r){return de?Rb(r,mt):Us(r,524288)}function Bw(r,t){return(r.flags&524)!==0&&(t.flags&28)!==0}function Db(r){return r.flags&2097152?e.every(r.types,Db):!!(r.symbol&&(r.symbol.flags&7040)!==0&&!lS(r))||!!(e.getObjectFlags(r)&1024&&Db(r.source))}function Z_(r,t){var a=co(r.flags,r.escapedName,e.getCheckFlags(r)&8);a.declarations=r.declarations,a.parent=r.parent,a.type=t,a.target=r,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration);var o=Va(r).nameType;return o&&(a.nameType=o),a}function Uw(r,t){for(var a=e.createSymbolTable(),o=0,s=zf(r);o<s.length;o++){var f=s[o],N=En(f),U=t(N);a.set(f.escapedName,U===N?f:Z_(f,U))}return a}function hg(r){if(!(Xp(r)&&e.getObjectFlags(r)&16384))return r;var t=r.regularType;if(t)return t;var a=r,o=Uw(r,hg),s=es(a.symbol,o,a.callSignatures,a.constructSignatures,a.indexInfos);return s.flags=a.flags,s.objectFlags|=a.objectFlags&-16385,r.regularType=s,s}function lC(r,t,a){return{parent:r,propertyName:t,siblings:a,resolvedProperties:void 0}}function cC(r){if(!r.siblings){for(var t=[],a=0,o=cC(r.parent);a<o.length;a++){var s=o[a];if(Xp(s)){var f=Sd(s,r.propertyName);f&&C_(En(f),function(N){t.push(N)})}}r.siblings=t}return r.siblings}function Vw(r){if(!r.resolvedProperties){for(var t=new e.Map,a=0,o=cC(r);a<o.length;a++){var s=o[a];if(Xp(s)&&!(e.getObjectFlags(s)&4194304))for(var f=0,N=ro(s);f<N.length;f++){var U=N[f];t.set(U.escapedName,U)}}r.resolvedProperties=e.arrayFrom(t.values())}return r.resolvedProperties}function Ww(r,t){if(!(r.flags&4))return r;var a=En(r),o=t&&lC(t,r.escapedName,void 0),s=I1(a,o);return s===a?r:Z_(r,s)}function jw(r){var t=Ce.get(r.escapedName);if(t)return t;var a=Z_(r,mt);return a.flags|=16777216,Ce.set(r.escapedName,a),a}function Hw(r,t){for(var a=e.createSymbolTable(),o=0,s=zf(r);o<s.length;o++){var f=s[o];a.set(f.escapedName,Ww(f,t))}if(t)for(var N=0,U=Vw(t);N<U.length;N++){var f=U[N];a.has(f.escapedName)||a.set(f.escapedName,jw(f))}var fe=es(r.symbol,a,e.emptyArray,e.emptyArray,e.sameMap(Bs(r),function(Oe){return Nu(Oe.keyType,Gl(Oe.type),Oe.isReadonly)}));return fe.objectFlags|=e.getObjectFlags(r)&532480,fe}function Gl(r){return I1(r,void 0)}function I1(r,t){if(e.getObjectFlags(r)&393216){if(t===void 0&&r.widened)return r.widened;var a=void 0;if(r.flags&98305)a=ke;else if(Xp(r))a=Hw(r,t);else if(r.flags&1048576){var o=t||lC(void 0,void 0,r.types),s=e.sameMap(r.types,function(f){return f.flags&98304?f:I1(f,o)});a=ha(s,e.some(s,Sf)?2:1)}else r.flags&2097152?a=To(e.sameMap(r.types,Gl)):($s(r)||ki(r))&&(a=qf(r.target,e.sameMap(ho(r),Gl)));return a&&t===void 0&&(r.widened=a),a||r}return r}function Lb(r){var t=!1;if(e.getObjectFlags(r)&131072){if(r.flags&1048576)if(e.some(r.types,Sf))t=!0;else for(var a=0,o=r.types;a<o.length;a++){var s=o[a];Lb(s)&&(t=!0)}if($s(r)||ki(r))for(var f=0,N=ho(r);f<N.length;f++){var s=N[f];Lb(s)&&(t=!0)}if(Xp(r))for(var U=0,fe=zf(r);U<fe.length;U++){var Oe=fe[U],s=En(Oe);e.getObjectFlags(s)&131072&&(Lb(s)||Br(Oe.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Ja(Oe),pn(Gl(s))),t=!0)}}return t}function qp(r,t,a){var o=pn(Gl(t));if(!(e.isInJSFile(r)&&!e.isCheckJsEnabledForFile(e.getSourceFileOfNode(r),We))){var s;switch(r.kind){case 220:case 166:case 165:s=sr?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 163:var f=r;if(e.isIdentifier(f.name)&&(e.isCallSignatureDeclaration(f.parent)||e.isMethodSignature(f.parent)||e.isFunctionTypeNode(f.parent))&&f.parent.parameters.indexOf(f)>-1&&(Ho(f,f.name.escapedText,788968,void 0,f.name.escapedText,!0)||f.name.originalKeywordKind&&e.isTypeNodeKind(f.name.originalKeywordKind))){var N="arg"+f.parent.parameters.indexOf(f),U=e.declarationNameToString(f.name)+(f.dotDotDotToken?"[]":"");Nl(sr,r,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,U);return}s=r.dotDotDotToken?sr?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:sr?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 202:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!sr)return;break;case 315:Br(r,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return;case 255:case 168:case 167:case 171:case 172:case 212:case 213:if(sr&&!r.name){a===3?Br(r,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,o):Br(r,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return}s=sr?a===3?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 194:sr&&Br(r,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=sr?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Nl(sr,r,s,e.declarationNameToString(e.getNameOfDeclaration(r)),o)}}function Ab(r,t,a){_e&&sr&&e.getObjectFlags(t)&131072&&(!a||!iT(r))&&(Lb(t)||qp(r,t,a))}function N1(r,t,a){var o=Cl(r),s=Cl(t),f=Tv(r),N=Tv(t),U=N?s-1:s,fe=f?U:Math.min(o,U),Oe=E_(r);if(Oe){var je=E_(t);je&&a(Oe,je)}for(var ze=0;ze<fe;ze++)a(Hc(r,ze),Hc(t,ze));N&&a(Cg(r,fe),N)}function k1(r,t,a){var o=Cc(r),s=Cc(t);o&&s&&H0(o,s)&&o.type&&s.type?a(o.type,s.type):a(_o(r),_o(t))}function pv(r,t,a,o){return O1(r.map(R1),t,a,o||c1)}function Jw(r,t){return t===void 0&&(t=0),r&&O1(e.map(r.inferences,fC),r.signature,r.flags|t,r.compareTypes)}function O1(r,t,a,o){var s={inferences:r,signature:t,flags:a,compareTypes:o,mapper:S_(function(f){return uC(s,f,!0)}),nonFixingMapper:S_(function(f){return uC(s,f,!1)})};return s}function uC(r,t,a){for(var o=r.inferences,s=0;s<o.length;s++){var f=o[s];if(t===f.typeParameter)return a&&!f.isFixed&&(Cb(o),f.isFixed=!0),yC(r,s)}return t}function Cb(r){for(var t=0,a=r;t<a.length;t++){var o=a[t];o.isFixed||(o.inferredType=void 0)}}function R1(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function fC(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function Kw(r){var t=e.filter(r.inferences,rm);return t.length?O1(e.map(t,fC),r.signature,r.flags,r.compareTypes):void 0}function w1(r){return r&&r.mapper}function _v(r){var t=e.getObjectFlags(r);if(t&1048576)return!!(t&2097152);var a=!!(r.flags&465829888||r.flags&524288&&!dC(r)&&(t&4&&(r.node||e.forEach(ho(r),_v))||t&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||t&8389664)||r.flags&3145728&&!(r.flags&1024)&&!dC(r)&&e.some(r.types,_v));return r.flags&3899393&&(r.objectFlags|=1048576|(a?2097152:0)),a}function dC(r){if(r.aliasSymbol&&!r.aliasTypeArguments){var t=e.getDeclarationOfKind(r.aliasSymbol,258);return!!(t&&e.findAncestor(t.parent,function(a){return a.kind===303?!0:a.kind===260?!1:"quit"}))}return!1}function M1(r,t){return!!(r===t||r.flags&3145728&&e.some(r.types,function(a){return M1(a,t)})||r.flags&16777216&&(up(r)===t||fp(r)===t))}function zw(r){var t=e.createSymbolTable();C_(r,function(o){if(!!(o.flags&128)){var s=e.escapeLeadingUnderscores(o.value),f=co(4,s);f.type=ke,o.symbol&&(f.declarations=o.symbol.declarations,f.valueDeclaration=o.symbol.valueDeclaration),t.set(s,f)}});var a=r.flags&4?[Nu(pt,Qn,!1)]:e.emptyArray;return es(void 0,t,e.emptyArray,e.emptyArray,a)}function pC(r,t,a){if(!Ds){var o=r.id+","+t.id+","+a.id;if(Ss.has(o))return Ss.get(o);Ds=!0;var s=qw(r,t,a);return Ds=!1,Ss.set(o,s),s}}function P1(r){return!(e.getObjectFlags(r)&524288)||Xp(r)&&e.some(ro(r),function(t){return P1(En(t))})||ki(r)&&e.some(ho(r),P1)}function qw(r,t,a){if(!!(cu(r,pt)||ro(r).length!==0&&P1(r))){if($s(r))return Js(xb(ho(r)[0],t,a),mg(r));if(ki(r)){var o=e.map(ho(r),function(N){return xb(N,t,a)}),s=Lc(t)&4?e.sameMap(r.target.elementFlags,function(N){return N&2?1:N}):r.target.elementFlags;return ku(o,s,r.target.readonly,r.target.labeledElementDeclarations)}var f=ml(1040,void 0);return f.source=r,f.mappedType=t,f.constraintType=a,f}}function Xw(r){var t=Va(r);return t.type||(t.type=xb(r.propertyType,r.mappedType,r.constraintType)),t.type}function xb(r,t,a){var o=Xl(a.type,lu(t)),s=xu(t),f=R1(o);return Df([f],r,s),_C(f)||Be}function F1(r,t,a,o){var s,f,N,U,fe,Oe,je;return jg(this,function(ze){switch(ze.label){case 0:s=ro(t),f=0,N=s,ze.label=1;case 1:return f<N.length?(U=N[f],Kg(U)?[3,5]:a||!(U.flags&16777216||e.getCheckFlags(U)&48)?(fe=pi(r,U.escapedName),fe?[3,3]:[4,U]):[3,5]):[3,6];case 2:return ze.sent(),[3,5];case 3:return o?(Oe=En(U),Oe.flags&109440?(je=En(fe),je.flags&1||Ml(je)===Ml(Oe)?[3,5]:[4,U]):[3,5]):[3,5];case 4:ze.sent(),ze.label=5;case 5:return f++,[3,1];case 6:return[2]}})}function G1(r,t,a,o){var s=F1(r,t,a,o).next();if(!s.done)return s.value}function Yw(r,t){return!(t.target.combinedFlags&8)&&t.target.minLength>r.target.minLength||!t.target.hasRestElement&&(r.target.hasRestElement||t.target.fixedLength<r.target.fixedLength)}function Qw(r,t){return ki(r)&&ki(t)?Yw(r,t):!!G1(r,t,!1,!0)&&!!G1(t,r,!1,!1)}function _C(r){return r.candidates?ha(r.candidates,2):r.contraCandidates?To(r.contraCandidates):void 0}function Zw(r){return!!Zn(r).skipDirectInference}function mC(r){return!!(r.symbol&&e.some(r.symbol.declarations,Zw))}function $w(r,t){var a=r.texts[0],o=t.texts[0],s=r.texts[r.texts.length-1],f=t.texts[t.texts.length-1],N=Math.min(a.length,o.length),U=Math.min(s.length,f.length);return a.slice(0,N)!==o.slice(0,N)||s.slice(s.length-U)!==f.slice(f.length-U)}function e6(r){var t=e.createScanner(99,!1),a=!0;t.setOnError(function(){return a=!1}),t.setText(r+"n");var o=t.scan();o===40&&(o=t.scan());var s=t.getTokenFlags();return a&&o===9&&t.getTextPos()===r.length+1&&!(s&512)}function r6(r,t){if(r===t||t.flags&5)return!0;if(r.flags&128){var a=r.value;return!!(t.flags&8&&a!==""&&isFinite(+a)||t.flags&64&&a!==""&&e6(a)||t.flags&98816&&a===t.intrinsicName)}if(r.flags&134217728){var o=r.texts;return o.length===2&&o[0]===""&&o[1]===""&&$i(r.types[0],t)}return $i(r,t)}function gC(r,t){return r.flags&128?hC([r.value],e.emptyArray,t):r.flags&134217728?e.arraysEqual(r.texts,t.texts)?e.map(r.types,t6):hC(r.texts,r.types,t):void 0}function vC(r,t){var a=gC(r,t);return!!a&&e.every(a,function(o,s){return r6(o,t.types[s])})}function t6(r){return r.flags&402653317?r:dg(["",""],[r])}function hC(r,t,a){var o=r.length-1,s=r[0],f=r[o],N=a.texts,U=N.length-1,fe=N[0],Oe=N[U];if(o===0&&s.length<fe.length+Oe.length||!s.startsWith(fe)||!f.endsWith(Oe))return;for(var je=f.slice(0,f.length-Oe.length),ze=[],tr=0,_r=fe.length,Vr=1;Vr<U;Vr++){var $r=N[Vr];if($r.length>0){for(var Tt=tr,St=_r;St=It(Tt).indexOf($r,St),!(St>=0);){if(Tt++,Tt===r.length)return;St=0}jt(Tt,St),_r+=$r.length}else if(_r<It(tr).length)jt(tr,_r+1);else if(tr<o)jt(tr+1,0);else return}return jt(o,It(o).length),ze;function It(In){return In<o?r[In]:je}function jt(In,sn){var ua=In===tr?xc(It(In).slice(_r,sn)):dg(Bt(Bt([r[tr].slice(_r)],r.slice(tr+1,In),!0),[It(In).slice(0,sn)],!1),t.slice(tr,In));ze.push(ua),tr=In,_r=sn}}function Df(r,t,a,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var f=!1,N,U=2048,fe=!0,Oe,je,ze,tr=0;_r(t,a);function _r(Ht,Gt){if(!!_v(Gt)){if(Ht===Xe){var mn=N;N=Ht,_r(Gt,Gt),N=mn;return}if(Ht.aliasSymbol&&Ht.aliasTypeArguments&&Ht.aliasSymbol===Gt.aliasSymbol){St(Ht.aliasTypeArguments,Gt.aliasTypeArguments,YA(Ht.aliasSymbol));return}if(Ht===Gt&&Ht.flags&3145728){for(var Oa=0,Yn=Ht.types;Oa<Yn.length;Oa++){var Ba=Yn[Oa];_r(Ba,Ba)}return}if(Gt.flags&1048576){var Di=Tt(Ht.flags&1048576?Ht.types:[Ht],Gt.types,n6),Pi=Di[0],Hn=Di[1],Gi=Tt(Pi,Hn,a6),Kr=Gi[0],Dr=Gi[1];if(Dr.length===0)return;if(Gt=ha(Dr),Kr.length===0){Vr(Ht,Gt,1);return}Ht=ha(Kr)}else if(Gt.flags&2097152&&e.some(Gt.types,function(za){return!!jt(za)||wl(za)&&!!jt(i1(za)||nn)})){if(!(Ht.flags&1048576)){var yn=Tt(Ht.flags&2097152?Ht.types:[Ht],Gt.types,Qf),Kr=yn[0],Dr=yn[1];if(Kr.length===0||Dr.length===0)return;Ht=To(Kr),Gt=To(Dr)}}else Gt.flags&41943040&&(Gt=T_(Gt));if(Gt.flags&8650752){if(e.getObjectFlags(Ht)&524288||Ht===Jr||Ht===bt||o&128&&(Ht===dr||Ht===Ln)||mC(Ht))return;var on=jt(Gt);if(on){if(!on.isFixed){if((on.priority===void 0||o<on.priority)&&(on.candidates=void 0,on.contraCandidates=void 0,on.topLevel=!0,on.priority=o),o===on.priority){var jn=N||Ht;s&&!f?e.contains(on.contraCandidates,jn)||(on.contraCandidates=e.append(on.contraCandidates,jn),Cb(r)):e.contains(on.candidates,jn)||(on.candidates=e.append(on.candidates,jn),Cb(r))}!(o&128)&&Gt.flags&262144&&on.topLevel&&!M1(a,Gt)&&(on.topLevel=!1,Cb(r))}U=Math.min(U,o);return}else{var Tn=Xf(Gt,!1);if(Tn!==Gt)$r(Ht,Tn,_r);else if(Gt.flags&8388608){var Fn=Xf(Gt.indexType,!1);if(Fn.flags&465829888){var Qr=hA(Xf(Gt.objectType,!1),Fn,!1);Qr&&Qr!==Gt&&$r(Ht,Qr,_r)}}}}if(e.getObjectFlags(Ht)&4&&e.getObjectFlags(Gt)&4&&(Ht.target===Gt.target||$s(Ht)&&$s(Gt))&&!(Ht.node&&Gt.node))St(ho(Ht),ho(Gt),h1(Ht.target));else if(Ht.flags&4194304&&Gt.flags&4194304)s=!s,_r(Ht.type,Gt.type),s=!s;else if((Im(Ht)||Ht.flags&4)&&Gt.flags&4194304){var at=zw(Ht);s=!s,Vr(at,Gt.type,256),s=!s}else if(Ht.flags&8388608&&Gt.flags&8388608)_r(Ht.objectType,Gt.objectType),_r(Ht.indexType,Gt.indexType);else if(Ht.flags&268435456&&Gt.flags&268435456)Ht.symbol===Gt.symbol&&_r(Ht.type,Gt.type);else if(Ht.flags&33554432){_r(Ht.baseType,Gt);var Ft=o;o|=4,_r(Ht.substitute,Gt),o=Ft}else if(Gt.flags&16777216)$r(Ht,Gt,la);else if(Gt.flags&3145728)sn(Ht,Gt.types,Gt.flags);else if(Ht.flags&1048576)for(var Vt=Ht.types,Qt=0,gn=Vt;Qt<gn.length;Qt++){var Sa=gn[Qt];_r(Sa,Gt)}else if(Gt.flags&134217728)_i(Ht,Gt);else{if(Ht=to(Ht),!(o&512&&Ht.flags&467927040)){var ga=Dn(Ht);if(ga!==Ht&&fe&&!(ga.flags&2621440))return fe=!1,_r(ga,Gt);Ht=ga}Ht.flags&2621440&&$r(Ht,Gt,ka)}}}function Vr(Ht,Gt,mn){var Oa=o;o|=mn,_r(Ht,Gt),o=Oa}function $r(Ht,Gt,mn){var Oa=Ht.id+","+Gt.id,Yn=Oe&&Oe.get(Oa);if(Yn!==void 0){U=Math.min(U,Yn);return}(Oe||(Oe=new e.Map)).set(Oa,-1);var Ba=U;U=2048;var Di=tr,Pi=Gh(Ht),Hn=Gh(Gt);e.contains(je,Pi)&&(tr|=1),e.contains(ze,Hn)&&(tr|=2),tr!==3?((je||(je=[])).push(Pi),(ze||(ze=[])).push(Hn),mn(Ht,Gt),ze.pop(),je.pop()):U=-1,tr=Di,Oe.set(Oa,U),U=Math.min(U,Ba)}function Tt(Ht,Gt,mn){for(var Oa,Yn,Ba=0,Di=Gt;Ba<Di.length;Ba++)for(var Pi=Di[Ba],Hn=0,Gi=Ht;Hn<Gi.length;Hn++){var Kr=Gi[Hn];mn(Kr,Pi)&&(_r(Kr,Pi),Oa=e.appendIfUnique(Oa,Kr),Yn=e.appendIfUnique(Yn,Pi))}return[Oa?e.filter(Ht,function(Dr){return!e.contains(Oa,Dr)}):Ht,Yn?e.filter(Gt,function(Dr){return!e.contains(Yn,Dr)}):Gt]}function St(Ht,Gt,mn){for(var Oa=Ht.length<Gt.length?Ht.length:Gt.length,Yn=0;Yn<Oa;Yn++)Yn<mn.length&&(mn[Yn]&7)===2?It(Ht[Yn],Gt[Yn]):_r(Ht[Yn],Gt[Yn])}function It(Ht,Gt){Nr||o&1024?(s=!s,_r(Ht,Gt),s=!s):_r(Ht,Gt)}function jt(Ht){if(Ht.flags&8650752)for(var Gt=0,mn=r;Gt<mn.length;Gt++){var Oa=mn[Gt];if(Ht===Oa.typeParameter)return Oa}}function In(Ht){for(var Gt,mn=0,Oa=Ht;mn<Oa.length;mn++){var Yn=Oa[mn],Ba=Yn.flags&2097152&&e.find(Yn.types,function(Di){return!!jt(Di)});if(!Ba||Gt&&Ba!==Gt)return;Gt=Ba}return Gt}function sn(Ht,Gt,mn){var Oa=0;if(mn&1048576){for(var Yn=void 0,Ba=Ht.flags&1048576?Ht.types:[Ht],Di=new Array(Ba.length),Pi=!1,Hn=0,Gi=Gt;Hn<Gi.length;Hn++){var Kr=Gi[Hn];if(jt(Kr))Yn=Kr,Oa++;else for(var Dr=0;Dr<Ba.length;Dr++){var yn=U;U=2048,_r(Ba[Dr],Kr),U===o&&(Di[Dr]=!0),Pi=Pi||U===-1,U=Math.min(U,yn)}}if(Oa===0){var on=In(Gt);on&&Vr(Ht,on,1);return}if(Oa===1&&!Pi){var jn=e.flatMap(Ba,function(Ft,Vt){return Di[Vt]?void 0:Ft});if(jn.length){_r(ha(jn),Yn);return}}}else for(var Tn=0,Fn=Gt;Tn<Fn.length;Tn++){var Kr=Fn[Tn];jt(Kr)?Oa++:_r(Ht,Kr)}if(mn&2097152?Oa===1:Oa>0)for(var Qr=0,at=Gt;Qr<at.length;Qr++){var Kr=at[Qr];jt(Kr)&&Vr(Ht,Kr,1)}}function ua(Ht,Gt,mn){if(mn.flags&1048576){for(var Oa=!1,Yn=0,Ba=mn.types;Yn<Ba.length;Yn++){var Di=Ba[Yn];Oa=ua(Ht,Gt,Di)||Oa}return Oa}if(mn.flags&4194304){var Pi=jt(mn.type);if(Pi&&!Pi.isFixed&&!mC(Ht)){var Hn=pC(Ht,Gt,mn);Hn&&Vr(Hn,Pi.typeParameter,e.getObjectFlags(Ht)&524288?16:8)}return!0}if(mn.flags&262144){Vr(Zu(Ht),mn,32);var Gi=Bp(mn);if(Gi&&ua(Ht,Gt,Gi))return!0;var Kr=e.map(ro(Ht),En),Dr=e.map(Bs(Ht),function(yn){return yn!==ja?yn.type:nn});return _r(ha(e.concatenate(Kr,Dr)),xu(Gt)),!0}return!1}function la(Ht,Gt){if(Ht.flags&16777216)_r(Ht.checkType,Gt.checkType),_r(Ht.extendsType,Gt.extendsType),_r(up(Ht),up(Gt)),_r(fp(Ht),fp(Gt));else{var mn=o;o|=s?64:0;var Oa=[up(Gt),fp(Gt)];sn(Ht,Oa,Gt.flags),o=mn}}function _i(Ht,Gt){var mn=gC(Ht,Gt),Oa=Gt.types;if(mn||e.every(Gt.texts,function(Ba){return Ba.length===0}))for(var Yn=0;Yn<Oa.length;Yn++)_r(mn?mn[Yn]:nn,Oa[Yn])}function ka(Ht,Gt){if(e.getObjectFlags(Ht)&4&&e.getObjectFlags(Gt)&4&&(Ht.target===Gt.target||$s(Ht)&&$s(Gt))){St(ho(Ht),ho(Gt),h1(Ht.target));return}if(wl(Ht)&&wl(Gt)){_r(Dc(Ht),Dc(Gt)),_r(xu(Ht),xu(Gt));var mn=Td(Ht),Oa=Td(Gt);mn&&Oa&&_r(mn,Oa)}if(e.getObjectFlags(Gt)&32&&!Gt.declaration.nameType){var Yn=Dc(Gt);if(ua(Ht,Gt,Yn))return}if(!Qw(Ht,Gt)){if($s(Ht)||ki(Ht)){if(ki(Gt)){var Ba=op(Ht),Di=op(Gt),Pi=ho(Gt),Hn=Gt.target.elementFlags;if(ki(Ht)&&Mw(Ht,Gt)){for(var Gi=0;Gi<Di;Gi++)_r(ho(Ht)[Gi],Pi[Gi]);return}for(var Kr=ki(Ht)?Math.min(Ht.target.fixedLength,Gt.target.fixedLength):0,Dr=Math.min(ki(Ht)?sb(Ht.target,3):0,Gt.target.hasRestElement?sb(Gt.target,3):0),Gi=0;Gi<Kr;Gi++)_r(ho(Ht)[Gi],Pi[Gi]);if(!ki(Ht)||Ba-Kr-Dr===1&&Ht.target.elementFlags[Kr]&4)for(var yn=ho(Ht)[Kr],Gi=Kr;Gi<Di-Dr;Gi++)_r(Hn[Gi]&8?Js(yn):yn,Pi[Gi]);else{var on=Di-Kr-Dr;if(on===2&&Hn[Kr]&Hn[Kr+1]&8&&ki(Ht)){var jn=jt(Pi[Kr]);jn&&jn.impliedArity!==void 0&&(_r(av(Ht,Kr,Dr+Ba-jn.impliedArity),Pi[Kr]),_r(av(Ht,Kr+jn.impliedArity,Dr),Pi[Kr+1]))}else if(on===1&&Hn[Kr]&8){var Tn=Gt.target.elementFlags[Di-1]&2,Fn=ki(Ht)?av(Ht,Kr,Dr):Js(ho(Ht)[0]);Vr(Fn,Pi[Kr],Tn?2:0)}else if(on===1&&Hn[Kr]&4){var yn=ki(Ht)?bb(Ht,Kr,Dr):ho(Ht)[0];yn&&_r(yn,Pi[Kr])}}for(var Gi=0;Gi<Dr;Gi++)_r(ho(Ht)[Ba-Gi-1],Pi[Di-Gi-1]);return}if($s(Gt)){Co(Ht,Gt);return}}xi(Ht,Gt),Bi(Ht,Gt,0),Bi(Ht,Gt,1),Co(Ht,Gt)}}function xi(Ht,Gt){for(var mn=zf(Gt),Oa=0,Yn=mn;Oa<Yn.length;Oa++){var Ba=Yn[Oa],Di=pi(Ht,Ba.escapedName);Di&&_r(En(Di),En(Ba))}}function Bi(Ht,Gt,mn){for(var Oa=Li(Ht,mn),Yn=Li(Gt,mn),Ba=Oa.length,Di=Yn.length,Pi=Ba<Di?Ba:Di,Hn=!!(e.getObjectFlags(Ht)&524288),Gi=0;Gi<Pi;Gi++)Ii(SR(Oa[Ba-Pi+Gi]),rv(Yn[Di-Pi+Gi]),Hn)}function Ii(Ht,Gt,mn){if(!mn){var Oa=f,Yn=Gt.declaration?Gt.declaration.kind:0;f=f||Yn===168||Yn===167||Yn===170,N1(Ht,Gt,It),f=Oa}k1(Ht,Gt,_r)}function Co(Ht,Gt){var mn=e.getObjectFlags(Ht)&e.getObjectFlags(Gt)&32?8:0,Oa=Bs(Gt);if(Db(Ht))for(var Yn=0,Ba=Oa;Yn<Ba.length;Yn++){for(var Di=Ba[Yn],Pi=[],Hn=0,Gi=ro(Ht);Hn<Gi.length;Hn++){var Kr=Gi[Hn];if(Ld(fg(Kr,8576),Di.keyType)){var Dr=En(Kr);Pi.push(Kr.flags&16777216?x1(Dr):Dr)}}for(var yn=0,on=Bs(Ht);yn<on.length;yn++){var jn=on[yn];Ld(jn.keyType,Di.keyType)&&Pi.push(jn.type)}Pi.length&&Vr(ha(Pi),Di.type,mn)}for(var Tn=0,Fn=Oa;Tn<Fn.length;Tn++){var Di=Fn[Tn],Qr=K_(Ht,Di.keyType);Qr&&Vr(Qr.type,Di.type,mn)}}}function n6(r,t){return de&&t===mt?r===t:Qf(r,t)||!!(t.flags&4&&r.flags&128||t.flags&8&&r.flags&256)}function a6(r,t){return!!(r.flags&524288&&t.flags&524288&&r.symbol&&r.symbol===t.symbol||r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===t.aliasSymbol)}function i6(r){var t=bl(r);return!!t&&Jo(t.flags&16777216?Th(t):t,406978556)}function Xp(r){return!!(e.getObjectFlags(r)&128)}function B1(r){return!!(e.getObjectFlags(r)&32896)}function o6(r){if(r.length>1){var t=e.filter(r,B1);if(t.length){var a=ha(t,2);return e.concatenate(e.filter(r,function(o){return!B1(o)}),[a])}}return r}function s6(r){return r.priority&416?To(r.contraCandidates):Iw(r.contraCandidates)}function l6(r,t){var a=o6(r.candidates),o=i6(r.typeParameter),s=!o&&r.topLevel&&(r.isFixed||!M1(_o(t),r.typeParameter)),f=o?e.sameMap(a,Ml):s?e.sameMap(a,zp):a,N=r.priority&416?ha(f,2):xw(f);return Gl(N)}function yC(r,t){var a=r.inferences[t];if(!a.inferredType){var o=void 0,s=r.signature;if(s){var f=a.candidates?l6(a,s):void 0;if(a.contraCandidates)o=f&&!(f.flags&131072)&&e.some(a.contraCandidates,function(Oe){return xd(f,Oe)})?f:s6(a);else if(f)o=f;else if(r.flags&1)o=bt;else{var N=ee(a.typeParameter);N&&(o=ci(N,W4(V4(r,t),r.nonFixingMapper)))}}else o=_C(a);a.inferredType=o||U1(!!(r.flags&2));var U=bl(a.typeParameter);if(U){var fe=ci(U,r.nonFixingMapper);(!o||!r.compareTypes(o,yl(fe,o)))&&(a.inferredType=o=fe)}}return a.inferredType}function U1(r){return r?ke:Be}function V1(r){for(var t=[],a=0;a<r.inferences.length;a++)t.push(yC(r,a));return t}function bC(r){switch(r.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return We.types?e.Diagnostics.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:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return We.types?e.Diagnostics.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:e.Diagnostics.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;case"process":case"require":case"Buffer":case"module":return We.types?e.Diagnostics.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:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;default:return r.parent.kind===295?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function wu(r){var t=Zn(r);return t.resolvedSymbol||(t.resolvedSymbol=!e.nodeIsMissing(r)&&Ho(r,r.escapedText,1160127,bC(r),r,!e.isWriteOnlyAccess(r),!1)||cr),t.resolvedSymbol}function yg(r){return!!e.findAncestor(r,function(t){return t.kind===180?!0:t.kind===79||t.kind===160?!1:"quit"})}function Ib(r,t,a,o){switch(r.kind){case 79:if(!e.isThisInTypeQuery(r)){var s=wu(r);return s!==cr?"".concat(o?w(o):"-1","|").concat(jc(t),"|").concat(jc(a),"|").concat(d(s)):void 0}case 108:return"0|".concat(o?w(o):"-1","|").concat(jc(t),"|").concat(jc(a));case 229:case 211:return Ib(r.expression,t,a,o);case 160:var f=Ib(r.left,t,a,o);return f&&f+"."+r.right.escapedText;case 205:case 206:var N=A_(r);if(N!==void 0){var U=Ib(r.expression,t,a,o);return U&&U+"."+N}}}function Ks(r,t){switch(t.kind){case 211:case 229:return Ks(r,t.expression);case 220:return e.isAssignmentExpression(t)&&Ks(r,t.left)||e.isBinaryExpression(t)&&t.operatorToken.kind===27&&Ks(r,t.right)}switch(r.kind){case 230:return t.kind===230&&r.keywordToken===t.keywordToken&&r.name.escapedText===t.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(r)?t.kind===108:t.kind===79&&wu(r)===wu(t)||(t.kind===253||t.kind===202)&&Rs(wu(r))===xn(t);case 108:return t.kind===108;case 106:return t.kind===106;case 229:case 211:return Ks(r.expression,t);case 205:case 206:return e.isAccessExpression(t)&&A_(r)===A_(t)&&Ks(r.expression,t.expression);case 160:return e.isAccessExpression(t)&&r.right.escapedText===A_(t)&&Ks(r.left,t.expression);case 220:return e.isBinaryExpression(r)&&r.operatorToken.kind===27&&Ks(r.right,t)}return!1}function c6(r){if(e.isAccessExpression(r))return r;if(e.isIdentifier(r)){var t=wu(r);if(Jh(t)){var a=t.valueDeclaration;if(e.isVariableDeclaration(a)&&!a.type&&a.initializer&&e.isAccessExpression(a.initializer))return a.initializer;if(e.isBindingElement(a)&&!a.initializer){var o=a.parent.parent;if(e.isVariableDeclaration(o)&&!o.type&&o.initializer&&(e.isIdentifier(o.initializer)||e.isAccessExpression(o.initializer)))return a}}}}function A_(r){var t;return r.kind===205?r.name.escapedText:r.kind===206&&e.isStringOrNumericLiteralLike(r.argumentExpression)?e.escapeLeadingUnderscores(r.argumentExpression.text):r.kind===202&&(t=ou(r))?e.escapeLeadingUnderscores(t):void 0}function EC(r,t){for(;e.isAccessExpression(r);)if(r=r.expression,Ks(r,t))return!0;return!1}function km(r,t){for(;e.isOptionalChain(r);)if(r=r.expression,Ks(r,t))return!0;return!1}function mv(r,t){if(r&&r.flags&1048576){var a=li(r,t);if(a&&e.getCheckFlags(a)&2)return a.isDiscriminantProperty===void 0&&(a.isDiscriminantProperty=(a.checkFlags&192)===192&&!ov(En(a))),!!a.isDiscriminantProperty}return!1}function TC(r,t){for(var a,o=0,s=r;o<s.length;o++){var f=s[o];if(mv(t,f.escapedName)){if(a){a.push(f);continue}a=[f]}}return a}function u6(r,t){for(var a=new e.Map,o=0,s=function(Oe){if(Oe.flags&61603840){var je=na(Oe,t);if(je){if(!Im(je))return{value:void 0};var ze=!1;C_(je,function(tr){var _r=jc(Ml(tr)),Vr=a.get(_r);Vr?Vr!==Be&&(a.set(_r,Be),ze=!0):a.set(_r,Oe)}),ze||o++}}},f=0,N=r;f<N.length;f++){var U=N[f],fe=s(U);if(typeof fe=="object")return fe.value}return o>=10&&o*2>=r.length?a:void 0}function Nb(r){var t=r.types;if(!(t.length<10||e.getObjectFlags(r)&65536||e.countWhere(t,function(s){return!!(s.flags&59506688)})<10)){if(r.keyPropertyName===void 0){var a=e.forEach(t,function(s){return s.flags&59506688?e.forEach(ro(s),function(f){return Ou(En(f))?f.escapedName:void 0}):void 0}),o=a&&u6(t,a);r.keyPropertyName=o?a:"",r.constituentMap=o}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function kb(r,t){var a,o=(a=r.constituentMap)===null||a===void 0?void 0:a.get(jc(Ml(t)));return o!==Be?o:void 0}function SC(r,t){var a=Nb(r),o=a&&na(t,a);return o&&kb(r,o)}function f6(r,t){var a=Nb(r),o=a&&e.find(t.properties,function(f){return f.symbol&&f.kind===294&&f.symbol.escapedName===a&&Kh(f.initializer)}),s=o&&iy(o.initializer);return s&&kb(r,s)}function DC(r,t){return Ks(r,t)||EC(r,t)}function LC(r,t){if(r.arguments)for(var a=0,o=r.arguments;a<o.length;a++){var s=o[a];if(DC(t,s))return!0}return!!(r.expression.kind===205&&DC(t,r.expression.expression))}function W1(r){return(!r.id||r.id<0)&&(r.id=I,I++),r.id}function d6(r,t){if(!(r.flags&1048576))return $i(r,t);for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if($i(s,t))return!0}return!1}function p6(r,t){if(r!==t){if(t.flags&131072)return t;var a=el(r,function(o){return d6(t,o)});if(t.flags&512&&Kp(t)&&(a=ms(a,Lm)),$i(t,a))return a}return r}function j1(r){var t=Wc(r);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&xd(r,Fe))}function mp(r,t){t===void 0&&(t=!1);var a=r.flags;if(a&4)return Er?16317953:16776705;if(a&128){var o=r.value==="";return Er?o?12123649:7929345:o?12582401:16776705}if(a&40)return Er?16317698:16776450;if(a&256){var s=r.value===0;return Er?s?12123394:7929090:s?12582146:16776450}if(a&64)return Er?16317188:16775940;if(a&2048){var s=A1(r);return Er?s?12122884:7928580:s?12581636:16775940}return a&16?Er?16316168:16774920:a&528?Er?r===st||r===$t?12121864:7927560:r===st||r===$t?12580616:16774920:a&524288&&!t?e.getObjectFlags(r)&16&&Sf(r)?Er?16318463:16777215:j1(r)?Er?7880640:16728e3:Er?7888800:16736160:a&49152?9830144:a&65536?9363232:a&12288?Er?7925520:16772880:a&67108864?Er?7888800:16736160:a&131072?0:a&465829888?pg(r)?Er?7929345:16776705:mp(pl(r)||Be,t):a&1048576?e.reduceLeft(r.types,function(f,N){return f|mp(N,t)},0):a&2097152?(t||(t=Jo(r,131068)),e.reduceLeft(r.types,function(f,N){return f&mp(N,t)},16777215)):16777215}function Us(r,t){return el(r,function(a){return(mp(a)&t)!==0})}function H1(r,t){return t?ha([Ms(r),rl(t)]):r}function AC(r,t){var a,o=lp(t);if(!Yu(o))return Qe;var s=Au(o);return na(r,s)||gv((a=Up(r,s))===null||a===void 0?void 0:a.type)||Qe}function CC(r,t){return ed(r,gg)&&Nw(r,t)||gv(Od(65,r,Rr,void 0))||Qe}function gv(r){return r&&(We.noUncheckedIndexedAccess?ha([r,Rr]):r)}function xC(r){return Js(Od(65,r,Rr,void 0)||Qe)}function _6(r){var t=r.parent.kind===203&&J1(r.parent)||r.parent.kind===294&&J1(r.parent.parent);return t?H1(Uh(r),r.right):rl(r.right)}function J1(r){return r.parent.kind===220&&r.parent.left===r||r.parent.kind===243&&r.parent.initializer===r}function m6(r,t){return CC(Uh(r),r.elements.indexOf(t))}function g6(r){return xC(Uh(r.parent))}function IC(r){return AC(Uh(r.parent),r.name)}function v6(r){return H1(IC(r),r.objectAssignmentInitializer)}function Uh(r){var t=r.parent;switch(t.kind){case 242:return pt;case 243:return uy(t)||Qe;case 220:return _6(t);case 214:return Rr;case 203:return m6(t,r);case 224:return g6(t);case 294:return IC(t);case 295:return v6(t)}return Qe}function h6(r){var t=r.parent,a=kC(t.parent),o=t.kind===200?AC(a,r.propertyName||r.name):r.dotDotDotToken?xC(a):CC(a,t.elements.indexOf(r));return H1(o,r.initializer)}function NC(r){var t=Zn(r);return t.resolvedType||rl(r)}function y6(r){return r.initializer?NC(r.initializer):r.parent.parent.kind===242?pt:r.parent.parent.kind===243&&uy(r.parent.parent)||Qe}function kC(r){return r.kind===253?y6(r):h6(r)}function b6(r){return r.kind===253&&r.initializer&&tp(r.initializer)||r.kind!==202&&r.parent.kind===220&&tp(r.parent.right)}function Yp(r){switch(r.kind){case 211:return Yp(r.expression);case 220:switch(r.operatorToken.kind){case 63:case 75:case 76:case 77:return Yp(r.left);case 27:return Yp(r.right)}}return r}function OC(r){var t=r.parent;return t.kind===211||t.kind===220&&t.operatorToken.kind===63&&t.left===r||t.kind===220&&t.operatorToken.kind===27&&t.right===r?OC(t):r}function E6(r){return r.kind===288?Ml(rl(r.expression)):nn}function Ob(r){var t=Zn(r);if(!t.switchTypes){t.switchTypes=[];for(var a=0,o=r.caseBlock.clauses;a<o.length;a++){var s=o[a];t.switchTypes.push(E6(s))}}return t.switchTypes}function RC(r,t){for(var a=[],o=0,s=r.caseBlock.clauses;o<s.length;o++){var f=s[o];if(f.kind===288){if(e.isStringLiteralLike(f.expression)){a.push(f.expression.text);continue}return e.emptyArray}t&&a.push(void 0)}return a}function T6(r,t){return r.flags&1048576?!e.forEach(r.types,function(a){return!e.contains(t,a)}):e.contains(t,r)}function Vh(r,t){return r===t||t.flags&1048576&&S6(r,t)}function S6(r,t){if(r.flags&1048576){for(var a=0,o=r.types;a<o.length;a++){var s=o[a];if(!sp(t.types,s))return!1}return!0}return r.flags&1024&&Hs(r)===t?!0:sp(t.types,r)}function C_(r,t){return r.flags&1048576?e.forEach(r.types,t):t(r)}function Om(r,t){return r.flags&1048576?e.some(r.types,t):t(r)}function ed(r,t){return r.flags&1048576?e.every(r.types,t):t(r)}function D6(r,t){return r.flags&3145728?e.every(r.types,t):t(r)}function el(r,t){if(r.flags&1048576){var a=r.types,o=e.filter(a,t);if(o===a)return r;var s=r.origin,f=void 0;if(s&&s.flags&1048576){var N=s.types,U=e.filter(N,function(fe){return!!(fe.flags&1048576)||t(fe)});if(N.length-U.length===a.length-o.length){if(U.length===1)return U[0];f=j0(1048576,U)}}return J0(o,r.objectFlags,void 0,void 0,f)}return r.flags&131072||t(r)?r:nn}function Rb(r,t){return el(r,function(a){return a!==t})}function L6(r){return r.flags&1048576?r.types.length:1}function ms(r,t,a){if(r.flags&131072)return r;if(!(r.flags&1048576))return t(r);for(var o=r.origin,s=o&&o.flags&1048576?o.types:r.types,f,N=!1,U=0,fe=s;U<fe.length;U++){var Oe=fe[U],je=Oe.flags&1048576?ms(Oe,t,a):t(Oe);N||(N=Oe!==je),je&&(f?f.push(je):f=[je])}return N?f&&ha(f,a?0:1):r}function wC(r,t,a,o){return r.flags&1048576&&a?ha(e.map(r.types,t),1,a,o):ms(r,t)}function MC(r){return r.flags&1048576?r.types.length:1}function $_(r,t){return el(r,function(a){return(a.flags&t)!==0})}function PC(r,t){return Jo(r,134217804)&&Jo(t,402655616)?ms(r,function(a){return a.flags&4?$_(t,402653316):pg(a)&&!Jo(t,402653188)?$_(t,128):a.flags&8?$_(t,264):a.flags&64?$_(t,2112):a}):r}function Rm(r){return r.flags===0}function x_(r){return r.flags===0?r.type:r}function wm(r,t){return t?{flags:0,type:r.flags&131072?bt:r}:r}function A6(r){var t=ml(256);return t.elementType=r,t}function K1(r){return Lr[r.id]||(Lr[r.id]=A6(r))}function FC(r,t){var a=hg(Ru(iy(t)));return Vh(a,r.elementType)?r:K1(ha([r.elementType,a]))}function C6(r){return r.flags&131072?Ln:Js(r.flags&1048576?ha(r.types,2):r)}function x6(r){return r.finalArrayType||(r.finalArrayType=C6(r.elementType))}function wb(r){return e.getObjectFlags(r)&256?x6(r):r}function I6(r){return e.getObjectFlags(r)&256?r.elementType:nn}function N6(r){for(var t=!1,a=0,o=r;a<o.length;a++){var s=o[a];if(!(s.flags&131072)){if(!(e.getObjectFlags(s)&256))return!1;t=!0}}return t}function GC(r){var t=OC(r),a=t.parent,o=e.isPropertyAccessExpression(a)&&(a.name.escapedText==="length"||a.parent.kind===207&&e.isIdentifier(a.name)&&e.isPushOrUnshiftIdentifier(a.name)),s=a.kind===206&&a.expression===t&&a.parent.kind===220&&a.parent.operatorToken.kind===63&&a.parent.left===a&&!e.isAssignmentTarget(a.parent)&&hs(rl(a.argumentExpression),296);return o||s}function k6(r){return(e.isVariableDeclaration(r)||e.isPropertyDeclaration(r)||e.isPropertySignature(r)||e.isParameter(r))&&!!(e.getEffectiveTypeAnnotationNode(r)||e.isInJSFile(r)&&e.hasInitializer(r)&&r.initializer&&e.isFunctionExpressionOrArrowFunction(r.initializer)&&e.getEffectiveReturnTypeNode(r.initializer))}function Mb(r,t){if(r.flags&8752)return En(r);if(r.flags&7){if(e.getCheckFlags(r)&262144){var a=r.syntheticOrigin;if(a&&Mb(a))return En(r)}var o=r.valueDeclaration;if(o){if(k6(o))return En(r);if(e.isVariableDeclaration(o)&&o.parent.parent.kind===243){var s=o.parent.parent,f=Wh(s.expression,void 0);if(f){var N=s.awaitModifier?15:13;return Od(N,f,Rr,void 0)}}t&&e.addRelatedInfo(t,e.createDiagnosticForNode(o,e.Diagnostics._0_needs_an_explicit_type_annotation,Ja(r)))}}}function Wh(r,t){if(!(r.flags&16777216))switch(r.kind){case 79:var a=Rs(wu(r));return Mb(a.flags&2097152?Go(a):a,t);case 108:return q6(r);case 106:return Q1(r);case 205:{var o=Wh(r.expression,t);if(o){var s=r.name,f=void 0;if(e.isPrivateIdentifier(s)){if(!o.symbol)return;f=pi(o,e.getSymbolNameForPrivateIdentifier(o.symbol,s.escapedText))}else f=pi(o,s.escapedText);return f&&Mb(f,t)}return}case 211:return Wh(r.expression,t)}}function Pb(r){var t=Zn(r),a=t.effectsSignature;if(a===void 0){var o=void 0;r.parent.kind===237?o=Wh(r.expression,void 0):r.expression.kind!==106&&(e.isOptionalChain(r)?o=pu(dv(fi(r.expression),r.expression),r.expression):o=Sg(r.expression));var s=Li(o&&Dn(o)||Be,0),f=s.length===1&&!s[0].typeParameters?s[0]:e.some(s,BC)?Lg(r):void 0;a=t.effectsSignature=f&&BC(f)?f:lo}return a===lo?void 0:a}function BC(r){return!!(Cc(r)||r.declaration&&(Tm(r.declaration)||Be).flags&131072)}function O6(r,t){if(r.kind===1||r.kind===3)return t.arguments[r.parameterIndex];var a=e.skipParentheses(t.expression);return e.isAccessExpression(a)?e.skipParentheses(a.expression):void 0}function R6(r){var t=e.findAncestor(r,e.isFunctionOrModuleBlock),a=e.getSourceFileOfNode(r),o=e.getSpanOfTokenAtPosition(a,t.statements.pos);fa.add(e.createFileDiagnostic(a,o.start,o.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function jh(r){var t=Fb(r,!1);return al=r,Sl=t,t}function Hh(r){var t=e.skipParentheses(r,!0);return t.kind===95||t.kind===220&&(t.operatorToken.kind===55&&(Hh(t.left)||Hh(t.right))||t.operatorToken.kind===56&&Hh(t.left)&&Hh(t.right))}function Fb(r,t){for(;;){if(r===al)return Sl;var a=r.flags;if(a&4096){if(!t){var o=W1(r),s=Dt[o];return s!==void 0?s:Dt[o]=Fb(r,!0)}t=!1}if(a&368)r=r.antecedent;else if(a&512){var f=Pb(r.node);if(f){var N=Cc(f);if(N&&N.kind===3&&!N.type){var U=r.node.arguments[N.parameterIndex];if(U&&Hh(U))return!1}if(_o(f).flags&131072)return!1}r=r.antecedent}else{if(a&4)return e.some(r.antecedents,function(tr){return Fb(tr,!1)});if(a&8){var fe=r.antecedents;if(fe===void 0||fe.length===0)return!1;r=fe[0]}else if(a&128){if(r.clauseStart===r.clauseEnd&&uI(r.switchStatement))return!1;r=r.antecedent}else if(a&1024){al=void 0;var Oe=r.target,je=Oe.antecedents;Oe.antecedents=r.antecedents;var ze=Fb(r.antecedent,!1);return Oe.antecedents=je,ze}else return!(a&1)}}}function Gb(r,t){for(;;){var a=r.flags;if(a&4096){if(!t){var o=W1(r),s=zt[o];return s!==void 0?s:zt[o]=Gb(r,!0)}t=!1}if(a&496)r=r.antecedent;else if(a&512){if(r.node.expression.kind===106)return!0;r=r.antecedent}else{if(a&4)return e.every(r.antecedents,function(fe){return Gb(fe,!1)});if(a&8)r=r.antecedents[0];else if(a&1024){var f=r.target,N=f.antecedents;f.antecedents=r.antecedents;var U=Gb(r.antecedent,!1);return f.antecedents=N,U}else return!!(a&1)}}}function UC(r){switch(r.kind){case 79:{var t=wu(r);return Jh(t)||e.isParameterOrCatchClauseVariable(t)&&!VC(t)}case 205:case 206:return UC(r.expression)&&Gu(Zn(r).resolvedSymbol||cr)}return!1}function I_(r,t,a,o){a===void 0&&(a=t);var s,f=!1,N=0;if(wr)return Qe;if(!r.flowNode)return t;ss++;var U=go,fe=x_(ze(r.flowNode));go=U;var Oe=e.getObjectFlags(fe)&256&&GC(r)?Ln:wb(fe);if(Oe===bn||r.parent&&r.parent.kind===229&&!(Oe.flags&131072)&&Us(Oe,2097152).flags&131072)return t;return Oe===yr?Be:Oe;function je(){return f?s:(f=!0,s=Ib(r,t,a,o))}function ze(Qr){if(N===2e3)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:Qr.id}),wr=!0,R6(r),Qe;N++;for(var at;;){var Ft=Qr.flags;if(Ft&4096){for(var Vt=U;Vt<go;Vt++)if(Fr[Vt]===Qr)return N--,rt[Vt];at=Qr}var Qt=void 0;if(Ft&16){if(Qt=_r(Qr),!Qt){Qr=Qr.antecedent;continue}}else if(Ft&512){if(Qt=$r(Qr),!Qt){Qr=Qr.antecedent;continue}}else if(Ft&96)Qt=St(Qr);else if(Ft&128)Qt=It(Qr);else if(Ft&12){if(Qr.antecedents.length===1){Qr=Qr.antecedents[0];continue}Qt=Ft&4?jt(Qr):In(Qr)}else if(Ft&256){if(Qt=Tt(Qr),!Qt){Qr=Qr.antecedent;continue}}else if(Ft&1024){var gn=Qr.target,Sa=gn.antecedents;gn.antecedents=Qr.antecedents,Qt=ze(Qr.antecedent),gn.antecedents=Sa}else if(Ft&2){var ga=Qr.node;if(ga&&ga!==o&&r.kind!==205&&r.kind!==206&&r.kind!==108){Qr=ga.flowNode;continue}Qt=a}else Qt=Ov(t);return at&&(Fr[go]=at,rt[go]=Qt,go++),N--,Qt}}function tr(Qr){var at=Qr.node;return z1(at.kind===253||at.kind===202?kC(at):Uh(at),r)}function _r(Qr){var at=Qr.node;if(Ks(r,at)){if(!jh(Qr))return bn;if(e.getAssignmentTargetKind(at)===2){var Ft=ze(Qr.antecedent);return wm(Ru(x_(Ft)),Rm(Ft))}if(t===dr||t===Ln){if(b6(at))return K1(nn);var Vt=zp(tr(Qr));return $i(Vt,t)?Vt:Wt}return t.flags&1048576?p6(t,tr(Qr)):t}if(EC(r,at)){if(!jh(Qr))return bn;if(e.isVariableDeclaration(at)&&(e.isInJSFile(at)||e.isVarConst(at))){var Qt=e.getDeclaredExpandoInitializer(at);if(Qt&&(Qt.kind===212||Qt.kind===213))return ze(Qr.antecedent)}return t}if(e.isVariableDeclaration(at)&&at.parent.parent.kind===242&&Ks(r,at.parent.parent.expression))return _T(x_(ze(Qr.antecedent)))}function Vr(Qr,at){var Ft=e.skipParentheses(at,!0);if(Ft.kind===95)return bn;if(Ft.kind===220){if(Ft.operatorToken.kind===55)return Vr(Vr(Qr,Ft.left),Ft.right);if(Ft.operatorToken.kind===56)return ha([Vr(Qr,Ft.left),Vr(Qr,Ft.right)])}return Tn(Qr,Ft,!0)}function $r(Qr){var at=Pb(Qr.node);if(at){var Ft=Cc(at);if(Ft&&(Ft.kind===2||Ft.kind===3)){var Vt=ze(Qr.antecedent),Qt=wb(x_(Vt)),gn=Ft.type?jn(Qt,Ft,Qr.node,!0):Ft.kind===3&&Ft.parameterIndex>=0&&Ft.parameterIndex<Qr.node.arguments.length?Vr(Qt,Qr.node.arguments[Ft.parameterIndex]):Qt;return gn===Qt?Vt:wm(gn,Rm(Vt))}if(_o(at).flags&131072)return bn}}function Tt(Qr){if(t===dr||t===Ln){var at=Qr.node,Ft=at.kind===207?at.expression.expression:at.left.expression;if(Ks(r,Yp(Ft))){var Vt=ze(Qr.antecedent),Qt=x_(Vt);if(e.getObjectFlags(Qt)&256){var gn=Qt;if(at.kind===207)for(var Sa=0,ga=at.arguments;Sa<ga.length;Sa++){var za=ga[Sa];gn=FC(gn,za)}else{var Hi=iy(at.left.argumentExpression);hs(Hi,296)&&(gn=FC(gn,at.right))}return gn===Qt?Vt:wm(gn,Rm(Vt))}return Vt}}}function St(Qr){var at=ze(Qr.antecedent),Ft=x_(at);if(Ft.flags&131072)return at;var Vt=(Qr.flags&32)!==0,Qt=wb(Ft),gn=Tn(Qt,Qr.node,Vt);return gn===Qt?at:wm(gn,Rm(at))}function It(Qr){var at=Qr.switchStatement.expression,Ft=ze(Qr.antecedent),Vt=x_(Ft);if(Ks(r,at))Vt=Ba(Vt,Qr.switchStatement,Qr.clauseStart,Qr.clauseEnd);else if(at.kind===215&&Ks(r,at.expression))Vt=Hn(Vt,Qr.switchStatement,Qr.clauseStart,Qr.clauseEnd);else{Er&&(km(at,r)?Vt=Yn(Vt,Qr.switchStatement,Qr.clauseStart,Qr.clauseEnd,function(gn){return!(gn.flags&163840)}):at.kind===215&&km(at.expression,r)&&(Vt=Yn(Vt,Qr.switchStatement,Qr.clauseStart,Qr.clauseEnd,function(gn){return!(gn.flags&131072||gn.flags&128&&gn.value==="undefined")})));var Qt=ua(at,Vt);Qt&&(Vt=ka(Vt,Qt,Qr.switchStatement,Qr.clauseStart,Qr.clauseEnd))}return wm(Vt,Rm(Ft))}function jt(Qr){for(var at=[],Ft=!1,Vt=!1,Qt,gn=0,Sa=Qr.antecedents;gn<Sa.length;gn++){var ga=Sa[gn];if(!Qt&&ga.flags&128&&ga.clauseStart===ga.clauseEnd){Qt=ga;continue}var za=ze(ga),Hi=x_(za);if(Hi===t&&t===a)return Hi;e.pushIfUnique(at,Hi),Vh(Hi,t)||(Ft=!0),Rm(za)&&(Vt=!0)}if(Qt){var za=ze(Qt),Hi=x_(za);if(!e.contains(at,Hi)&&!uI(Qt.switchStatement)){if(Hi===t&&t===a)return Hi;at.push(Hi),Vh(Hi,t)||(Ft=!0),Rm(za)&&(Vt=!0)}}return wm(sn(at,Ft?2:1),Vt)}function In(Qr){var at=W1(Qr),Ft=Ia[at]||(Ia[at]=new e.Map),Vt=je();if(!Vt)return t;var Qt=Ft.get(Vt);if(Qt)return Qt;for(var gn=bi;gn<Qa;gn++)if(tf[gn]===Qr&&Rc[gn]===Vt&&lc[gn].length)return wm(sn(lc[gn],1),!0);for(var Sa=[],ga=!1,za,Hi=0,Ya=Qr.antecedents;Hi<Ya.length;Hi++){var yo=Ya[Hi],Vo=void 0;if(!za)Vo=za=ze(yo);else{tf[Qa]=Qr,Rc[Qa]=Vt,lc[Qa]=Sa,Qa++;var so=zo;zo=void 0,Vo=ze(yo),zo=so,Qa--;var xs=Ft.get(Vt);if(xs)return xs}var ds=x_(Vo);if(e.pushIfUnique(Sa,ds),Vh(ds,t)||(ga=!0),ds===t)break}var zs=sn(Sa,ga?2:1);return Rm(za)?wm(zs,!0):(Ft.set(Vt,zs),zs)}function sn(Qr,at){if(N6(Qr))return K1(ha(e.map(Qr,I6)));var Ft=ha(e.sameMap(Qr,wb),at);return Ft!==t&&Ft.flags&t.flags&1048576&&e.arraysEqual(Ft.types,t.types)?t:Ft}function ua(Qr,at){var Ft,Vt,Qt=t.flags&1048576?t:at;return Qt.flags&1048576&&(Ft=c6(Qr))&&(Vt=A_(Ft))&&Ks(r,e.isAccessExpression(Ft)?Ft.expression:Ft.parent.parent.initializer)&&mv(Qt,Vt)?Ft:void 0}function la(Qr,at,Ft){var Vt=A_(at);if(Vt===void 0)return Qr;var Qt=Er&&e.isOptionalChain(at)&&Jo(Qr,98304),gn=na(Qt?Us(Qr,2097152):Qr,Vt);if(!gn)return Qr;gn=Qt?$f(gn):gn;var Sa=Ft(gn);return el(Qr,function(ga){var za=si(ga,Vt);return!(Sa.flags&131072)&&_g(Sa,za)})}function _i(Qr,at,Ft,Vt,Qt){if((Ft===36||Ft===37)&&Qr.flags&1048576){var gn=Nb(Qr);if(gn&&gn===A_(at)){var Sa=kb(Qr,rl(Vt));if(Sa)return Ft===(Qt?36:37)?Sa:Ou(na(Sa,gn)||Be)?Rb(Qr,Sa):Qr}}return la(Qr,at,function(ga){return mn(ga,Ft,Vt,Qt)})}function ka(Qr,at,Ft,Vt,Qt){if(Vt<Qt&&Qr.flags&1048576&&Nb(Qr)===A_(at)){var gn=Ob(Ft).slice(Vt,Qt),Sa=ha(e.map(gn,function(ga){return kb(Qr,ga)||Be}));if(Sa!==Be)return Sa}return la(Qr,at,function(ga){return Ba(ga,Ft,Vt,Qt)})}function xi(Qr,at,Ft){if(Ks(r,at))return Qr.flags&2&&Ft?yr:Us(Qr,Ft?4194304:8388608);Er&&Ft&&km(at,r)&&(Qr=Us(Qr,2097152));var Vt=ua(at,Qr);return Vt?la(Qr,Vt,function(Qt){return Us(Qt,Ft?4194304:8388608)}):Qr}function Bi(Qr,at,Ft){var Vt=pi(Qr,at);return Vt?Vt.flags&16777216?!0:Ft:Up(Qr,at)?!0:!Ft}function Ii(Qr,at,Ft){return Qr.flags&1048576||Qr.flags&524288&&t!==Qr||kh(Qr)||Qr.flags&2097152&&e.every(Qr.types,function(Vt){return Vt.symbol!==lr})?el(Qr,function(Vt){return Bi(Vt,at,Ft)}):Qr}function Co(Qr,at,Ft){switch(at.operatorToken.kind){case 63:case 75:case 76:case 77:return xi(Tn(Qr,at.right,Ft),at.left,Ft);case 34:case 35:case 36:case 37:var Vt=at.operatorToken.kind,Qt=Yp(at.left),gn=Yp(at.right);if(Qt.kind===215&&e.isStringLiteralLike(gn))return Oa(Qr,Qt,Vt,gn,Ft);if(gn.kind===215&&e.isStringLiteralLike(Qt))return Oa(Qr,gn,Vt,Qt,Ft);if(Ks(r,Qt))return mn(Qr,Vt,gn,Ft);if(Ks(r,gn))return mn(Qr,Vt,Qt,Ft);Er&&(km(Qt,r)?Qr=Gt(Qr,Vt,gn,Ft):km(gn,r)&&(Qr=Gt(Qr,Vt,Qt,Ft)));var Sa=ua(Qt,Qr);if(Sa)return _i(Qr,Sa,Vt,gn,Ft);var ga=ua(gn,Qr);if(ga)return _i(Qr,ga,Vt,Qt,Ft);if(Gi(Qt))return Kr(Qr,Vt,gn,Ft);if(Gi(gn))return Kr(Qr,Vt,Qt,Ft);break;case 102:return Dr(Qr,at,Ft);case 101:if(e.isPrivateIdentifier(at.left))return Ht(Qr,at,Ft);var za=Yp(at.right),Hi=e_(at.left);if(Hi.flags&128){var Ya=e.escapeLeadingUnderscores(Hi.value);if(Sb(Qr)&&e.isAccessExpression(r)&&Ks(r.expression,za)&&A_(r)===Ya)return Us(Qr,Ft?524288:65536);if(Ks(r,za))return Ii(Qr,Ya,Ft)}break;case 27:return Tn(Qr,at.right,Ft);case 55:return Ft?Tn(Tn(Qr,at.left,!0),at.right,!0):ha([Tn(Qr,at.left,!1),Tn(Qr,at.right,!1)]);case 56:return Ft?ha([Tn(Qr,at.left,!0),Tn(Qr,at.right,!0)]):Tn(Tn(Qr,at.left,!1),at.right,!1)}return Qr}function Ht(Qr,at,Ft){var Vt=Yp(at.right);if(!Ks(r,Vt))return Qr;e.Debug.assertNode(at.left,e.isPrivateIdentifier);var Qt=Xb(at.left);if(Qt===void 0)return Qr;var gn=Qt.parent,Sa=e.hasStaticModifier(e.Debug.checkDefined(Qt.valueDeclaration,"should always have a declaration"))?En(gn):vo(gn);return yn(Qr,Sa,Ft,xm)}function Gt(Qr,at,Ft,Vt){var Qt=at===34||at===36,gn=at===34||at===35?98304:32768,Sa=rl(Ft),ga=Qt!==Vt&&ed(Sa,function(za){return!!(za.flags&gn)})||Qt===Vt&&ed(Sa,function(za){return!(za.flags&(3|gn))});return ga?Us(Qr,2097152):Qr}function mn(Qr,at,Ft,Vt){if(Qr.flags&1)return Qr;(at===35||at===37)&&(Vt=!Vt);var Qt=rl(Ft);if(Vt&&Qr.flags&2&&(at===34||at===35)&&Qt.flags&65536)return ha([Lt,Rr]);if(Qr.flags&2&&Vt&&(at===36||at===37))return Qt.flags&67239932?Qt:Qt.flags&524288?wn:Qr;if(Qt.flags&98304){if(!Er)return Qr;var gn=at===34||at===35,Sa=gn?Vt?262144:2097152:Qt.flags&65536?Vt?131072:1048576:Vt?65536:524288;return Qr.flags&2&&Sa&3145728?yr:Us(Qr,Sa)}if(Vt){var ga=at===34?function(za){return gb(za,Qt)||Bw(za,Qt)}:function(za){return gb(za,Qt)};return PC(el(Qr,ga),Qt)}return Ou(Qt)?el(Qr,function(za){return!(tC(za)&&gb(za,Qt))}):Qr}function Oa(Qr,at,Ft,Vt,Qt){(Ft===35||Ft===37)&&(Qt=!Qt);var gn=Yp(at.expression);if(!Ks(r,gn))return Er&&km(gn,r)&&Qt===(Vt.text!=="undefined")?Us(Qr,2097152):Qr;if(Qr.flags&1&&Vt.text==="function")return Qr;if(Qt&&Qr.flags&2&&Vt.text==="object")return Qr===yr?wn:ha([wn,Lt]);var Sa=Qt?j.get(Vt.text)||128:te.get(Vt.text)||32768,ga=Di(Qr,Vt.text);return Us(Qt&&ga?ms(Qr,Pi(ga)):Qr,Sa)}function Yn(Qr,at,Ft,Vt,Qt){var gn=Ft!==Vt&&e.every(Ob(at).slice(Ft,Vt),Qt);return gn?Us(Qr,2097152):Qr}function Ba(Qr,at,Ft,Vt){var Qt=Ob(at);if(!Qt.length)return Qr;var gn=Qt.slice(Ft,Vt),Sa=Ft===Vt||e.contains(gn,nn);if(Qr.flags&2&&!Sa){for(var ga=void 0,za=0;za<gn.length;za+=1){var Hi=gn[za];if(Hi.flags&67239932)ga!==void 0&&ga.push(Hi);else if(Hi.flags&524288)ga===void 0&&(ga=gn.slice(0,za)),ga.push(wn);else return Qr}return ha(ga===void 0?gn:ga)}var Ya=ha(gn),yo=Ya.flags&131072?nn:PC(el(Qr,function(so){return gb(Ya,so)}),Ya);if(!Sa)return yo;var Vo=el(Qr,function(so){return!(tC(so)&&e.contains(Qt,Ml(Ow(so))))});return yo.flags&131072?Vo:ha([yo,Vo])}function Di(Qr,at){switch(at){case"function":return Qr.flags&1?Qr:Fe;case"object":return Qr.flags&2?ha([wn,Lt]):Qr;default:return Na.get(at)}}function Pi(Qr){return function(at){if(xd(at,Qr))return at;if(xd(Qr,at))return Qr;if(at.flags&465829888){var Ft=pl(at)||ke;if(xd(Qr,Ft))return To([at,Qr])}return at}}function Hn(Qr,at,Ft,Vt){var Qt=RC(at,!0);if(!Qt.length)return Qr;var gn=e.findIndex(Qt,function(so){return so===void 0}),Sa=Ft===Vt||gn>=Ft&&gn<Vt,ga,za;if(gn>-1){var Hi=Qt.filter(function(so){return so!==void 0}),Ya=gn<Ft?Ft-1:Ft,yo=gn<Vt?Vt-1:Vt;ga=Hi.slice(Ya,yo),za=OT(Ya,yo,Hi,Sa)}else ga=Qt.slice(Ft,Vt),za=OT(Ft,Vt,Qt,Sa);if(Sa)return el(Qr,function(so){return(mp(so)&za)===za});var Vo=Us(ha(ga.map(function(so){return Di(Qr,so)||Qr})),za);return Us(ms(Qr,Pi(Vo)),za)}function Gi(Qr){return(e.isPropertyAccessExpression(Qr)&&e.idText(Qr.name)==="constructor"||e.isElementAccessExpression(Qr)&&e.isStringLiteralLike(Qr.argumentExpression)&&Qr.argumentExpression.text==="constructor")&&Ks(r,Qr.expression)}function Kr(Qr,at,Ft,Vt){if(Vt?at!==34&&at!==36:at!==35&&at!==37)return Qr;var Qt=rl(Ft);if(!uS(Qt)&&!j_(Qt))return Qr;var gn=pi(Qt,"prototype");if(!gn)return Qr;var Sa=En(gn),ga=wa(Sa)?void 0:Sa;if(!ga||ga===Bn||ga===Fe)return Qr;if(wa(Qr))return ga;return el(Qr,function(Hi){return za(Hi,ga)});function za(Hi,Ya){return Hi.flags&524288&&e.getObjectFlags(Hi)&1||Ya.flags&524288&&e.getObjectFlags(Ya)&1?Hi.symbol===Ya.symbol:xd(Hi,Ya)}}function Dr(Qr,at,Ft){var Vt=Yp(at.left);if(!Ks(r,Vt))return Ft&&Er&&km(Vt,r)?Us(Qr,2097152):Qr;var Qt=rl(at.right);if(!xm(Qt,Fe))return Qr;var gn,Sa=pi(Qt,"prototype");if(Sa){var ga=En(Sa);wa(ga)||(gn=ga)}if(wa(Qr)&&(gn===Bn||gn===Fe))return Qr;if(!gn){var za=Li(Qt,1);gn=za.length?ha(e.map(za,function(Ya){return _o(rv(Ya))})):Qn}if(!Ft&&Qt.flags&1048576){var Hi=e.find(Qt.types,function(Ya){return!j_(Ya)});if(!Hi)return Qr}return yn(Qr,gn,Ft,xm)}function yn(Qr,at,Ft,Vt){if(!Ft)return el(Qr,function(gn){return!Vt(gn,at)});if(Qr.flags&1048576){var Qt=el(Qr,function(gn){return Vt(gn,at)});if(!(Qt.flags&131072))return Qt}return xd(at,Qr)?at:$i(Qr,at)?Qr:$i(at,Qr)?at:To([Qr,at])}function on(Qr,at,Ft){if(LC(at,r)){var Vt=Ft||!e.isCallChain(at)?Pb(at):void 0,Qt=Vt&&Cc(Vt);if(Qt&&(Qt.kind===0||Qt.kind===1))return jn(Qr,Qt,at,Ft)}if(Sb(Qr)&&e.isAccessExpression(r)&&e.isPropertyAccessExpression(at.expression)){var gn=at.expression;if(Ks(r.expression,Yp(gn.expression))&&e.isIdentifier(gn.name)&&gn.name.escapedText==="hasOwnProperty"&&at.arguments.length===1){var Sa=at.arguments[0];if(e.isStringLiteralLike(Sa)&&A_(r)===e.escapeLeadingUnderscores(Sa.text))return Us(Qr,Ft?524288:65536)}}return Qr}function jn(Qr,at,Ft,Vt){if(at.type&&!(wa(Qr)&&(at.type===Bn||at.type===Fe))){var Qt=O6(at,Ft);if(Qt){if(Ks(r,Qt))return yn(Qr,at.type,Vt,xd);Er&&Vt&&km(Qt,r)&&!(mp(at.type)&65536)&&(Qr=Us(Qr,2097152));var gn=ua(Qt,Qr);if(gn)return la(Qr,gn,function(Sa){return yn(Sa,at.type,Vt,xd)})}}return Qr}function Tn(Qr,at,Ft){if(e.isExpressionOfOptionalChainRoot(at)||e.isBinaryExpression(at.parent)&&at.parent.operatorToken.kind===60&&at.parent.left===at)return Fn(Qr,at,Ft);switch(at.kind){case 79:if(!Ks(r,at)&&xe<5){var Vt=wu(at);if(Jh(Vt)){var Qt=Vt.valueDeclaration;if(Qt&&e.isVariableDeclaration(Qt)&&!Qt.type&&Qt.initializer&&UC(r)){xe++;var gn=Tn(Qr,Qt.initializer,Ft);return xe--,gn}}}case 108:case 106:case 205:case 206:return xi(Qr,at,Ft);case 207:return on(Qr,at,Ft);case 211:case 229:return Tn(Qr,at.expression,Ft);case 220:return Co(Qr,at,Ft);case 218:if(at.operator===53)return Tn(Qr,at.operand,!Ft);break}return Qr}function Fn(Qr,at,Ft){if(Ks(r,at))return Us(Qr,Ft?2097152:262144);var Vt=ua(at,Qr);return Vt?la(Qr,Vt,function(Qt){return Us(Qt,Ft?2097152:262144)}):Qr}}function w6(r,t){if(r=r.exportSymbol||r,(t.kind===79||t.kind===80)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&(!e.isAssignmentTarget(t)||e.isWriteAccess(t)))){var a=rl(t);if(Rs(Zn(t).resolvedSymbol)===r)return a}return e.isDeclarationName(t)&&e.isSetAccessor(t.parent)&&zu(t.parent)?Jt(t.parent.symbol,!0):Jf(r)}function vv(r){return e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||t.kind===261||t.kind===303||t.kind===166})}function VC(r){if(!r.valueDeclaration)return!1;var t=e.getRootDeclaration(r.valueDeclaration).parent,a=Zn(t);return a.flags&8388608||(a.flags|=8388608,M6(t)||WC(t)),r.isAssigned||!1}function M6(r){return!!e.findAncestor(r.parent,function(t){return(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(Zn(t).flags&8388608)})}function WC(r){if(r.kind===79){if(e.isAssignmentTarget(r)){var t=wu(r);e.isParameterOrCatchClauseVariable(t)&&(t.isAssigned=!0)}}else e.forEachChild(r,WC)}function Jh(r){return r.flags&3&&(yv(r)&2)!==0}function P6(r,t){if(S(t.symbol,2)){var a=Er&&t.kind===163&&t.initializer&&mc(r)&32768&&!(mc(fi(t.initializer))&32768);return wt(),a?Us(r,524288):r}else return Pp(t.symbol),r}function F6(r,t){var a=t.parent;return a.kind===205||a.kind===207&&a.expression===t||a.kind===206&&a.expression===t&&!(Om(r,B6)&&q_(rl(a.argumentExpression)))}function G6(r){return!!(r.flags&465829888&&bm(r).flags&1146880)}function B6(r){return!!(r.flags&465829888&&!Jo(bm(r),98304))}function U6(r){var t=(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))&&!((e.isJsxOpeningElement(r.parent)||e.isJsxSelfClosingElement(r.parent))&&r.parent.tagName===r)&&Ic(r,8);return t&&!ov(t)}function z1(r,t,a){var o=!(a&&a&2)&&Om(r,G6)&&(F6(r,t)||U6(t));return o?ms(r,function(s){return s.flags&465829888?bm(s):s}):r}function jC(r){return!!e.findAncestor(r,function(t){var a=t.parent;return a===void 0?"quit":e.isExportAssignment(a)?a.expression===t&&e.isEntityNameExpression(t):e.isExportSpecifier(a)?a.name===t||a.propertyName===t:!1})}function Bb(r,t){if(cf(r,111551)&&!yg(t)&&!Cn(r)){var a=Go(r);a.flags&111551&&(We.isolatedModules||e.shouldPreserveConstEnums(We)&&jC(t)||!wv(a)?ui(r):yc(r))}}function V6(r,t){var a=wu(r);if(a===cr)return Qe;if(a===Hr){if(Sx(r))return Br(r,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Qe;var o=e.getContainingFunction(r);return Ne<2&&(o.kind===213?Br(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(o,256)&&Br(r,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Zn(o).flags|=8192,En(a)}r.parent&&e.isPropertyAccessExpression(r.parent)&&r.parent.expression===r||Bb(a,r);var s=Rs(a),f=s.flags&2097152?Go(s):s;f.declarations&&yv(f)&134217728&&z0(r,f)&&Mc(r,f.declarations,r.escapedText);var N=s.valueDeclaration;if(N&&s.flags&32){if(N.kind===256&&e.nodeIsDecorated(N))for(var o=e.getContainingClass(r);o!==void 0;){if(o===N&&o.name!==r){Zn(N).flags|=16777216,Zn(r).flags|=33554432;break}o=e.getContainingClass(o)}else if(N.kind===225)for(var o=e.getThisContainer(r,!1);o.kind!==303;){if(o.parent===N){(e.isPropertyDeclaration(o)&&e.isStatic(o)||e.isClassStaticBlockDeclaration(o))&&(Zn(N).flags|=16777216,Zn(r).flags|=33554432);break}o=e.getThisContainer(o,!1)}}H6(r,a);var U=En(s),fe=e.getAssignmentTargetKind(r);if(fe){if(!(s.flags&3)&&!(e.isInJSFile(r)&&s.flags&512)){var Oe=s.flags&384?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:s.flags&32?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:s.flags&1536?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:s.flags&16?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:s.flags&2097152?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;return Br(r,Oe,Ja(a)),Qe}if(Gu(s))return s.flags&3?Br(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Ja(a)):Br(r,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ja(a)),Qe}var je=s.flags&2097152;if(s.flags&3){if(fe===1)return U}else if(je)N=ec(a);else return U;if(!N)return U;U=z1(U,r,t);for(var ze=e.getRootDeclaration(N).kind===163,tr=vv(N),_r=vv(r),Vr=_r!==tr,$r=r.parent&&r.parent.parent&&e.isSpreadAssignment(r.parent)&&J1(r.parent.parent),Tt=a.flags&134217728;_r!==tr&&(_r.kind===212||_r.kind===213||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_r))&&(Jh(s)&&U!==Ln||ze&&!VC(s));)_r=vv(_r);var St=ze||je||Vr||$r||Tt||e.isBindingElement(N)||U!==dr&&U!==Ln&&(!Er||(U.flags&16387)!==0||yg(r)||r.parent.kind===274)||r.parent.kind===229||N.kind===253&&N.exclamationToken||N.flags&8388608,It=St?ze?P6(U,N):U:U===dr||U===Ln?Rr:$f(U),jt=I_(r,U,It,_r);if(!GC(r)&&(U===dr||U===Ln)){if(jt===dr||jt===Ln)return sr&&(Br(e.getNameOfDeclaration(N),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ja(a),pn(jt)),Br(r,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ja(a),pn(jt))),Ov(jt)}else if(!St&&!(mc(U)&32768)&&mc(jt)&32768)return Br(r,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ja(a)),U;return fe?Ru(jt):jt}function W6(r,t){return!!e.findAncestor(r,function(a){return a===t?"quit":e.isFunctionLike(a)||a.parent&&e.isPropertyDeclaration(a.parent)&&!e.hasStaticModifier(a.parent)&&a.parent.initializer===a})}function j6(r,t){return e.findAncestor(r,function(a){return a===t?"quit":a===t.initializer||a===t.condition||a===t.incrementor||a===t.statement})}function q1(r){return e.findAncestor(r,function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)})}function H6(r,t){if(!(Ne>=2||(t.flags&34)===0||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||t.valueDeclaration.parent.kind===291)){var a=e.getEnclosingBlockScopeContainer(t.valueDeclaration),o=W6(r,a),s=q1(a);if(s){if(o){var f=!0;if(e.isForStatement(a)){var N=e.getAncestor(t.valueDeclaration,254);if(N&&N.parent===a){var U=j6(r.parent,a);if(U){var fe=Zn(U);fe.flags|=131072;var Oe=fe.capturedBlockScopeBindings||(fe.capturedBlockScopeBindings=[]);e.pushIfUnique(Oe,t),U===a.initializer&&(f=!1)}}}f&&(Zn(s).flags|=65536)}if(e.isForStatement(a)){var N=e.getAncestor(t.valueDeclaration,254);N&&N.parent===a&&K6(r,a)&&(Zn(t.valueDeclaration).flags|=4194304)}Zn(t.valueDeclaration).flags|=524288}o&&(Zn(t.valueDeclaration).flags|=262144)}}function J6(r,t){var a=Zn(r);return!!a&&e.contains(a.capturedBlockScopeBindings,xn(t))}function K6(r,t){for(var a=r;a.parent.kind===211;)a=a.parent;var o=!1;if(e.isAssignmentTarget(a))o=!0;else if(a.parent.kind===218||a.parent.kind===219){var s=a.parent;o=s.operator===45||s.operator===46}return o?!!e.findAncestor(a,function(f){return f===t?"quit":f===t.statement}):!1}function X1(r,t){if(Zn(r).flags|=2,t.kind===166||t.kind===170){var a=t.parent;Zn(a).flags|=4}else Zn(t).flags|=4}function HC(r){return e.isSuperCall(r)?r:e.isFunctionLike(r)?void 0:e.forEachChild(r,HC)}function JC(r){var t=xn(r),a=vo(t),o=Lu(a);return o===vt}function KC(r,t,a){var o=t.parent,s=e.getClassExtendsHeritageElement(o);s&&!JC(o)&&r.flowNode&&!Gb(r.flowNode,!1)&&Br(r,a)}function z6(r,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,r.pos)&&e.length(t.parent.decorators)&&Br(r,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Ub(r){var t=yg(r),a=e.getThisContainer(r,!0),o=!1;switch(a.kind===170&&KC(r,a,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),a.kind===213&&(a=e.getThisContainer(a,!1),o=!0),z6(r,a),a.kind){case 260:Br(r,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 259:Br(r,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 170:zC(r,a)&&Br(r,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 161:Br(r,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!t&&o&&Ne<2&&X1(r,a);var s=Y1(r,!0,a);if(i){var f=En(lr);if(s===f&&o)Br(r,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!s){var N=Br(r,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(a)){var U=Y1(a);U&&U!==f&&e.addRelatedInfo(N,e.createDiagnosticForNode(a,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return s||ke}function Y1(r,t,a){t===void 0&&(t=!0),a===void 0&&(a=e.getThisContainer(r,!1));var o=e.isInJSFile(r);if(e.isFunctionLike(a)&&(!$1(r)||e.getThisParameter(a))){var s=W(a)||o&&Y6(a);if(!s){var f=X6(a);if(o&&f){var N=fi(f).symbol;N&&N.members&&N.flags&16&&(s=vo(N).thisType)}else _u(a)&&(s=vo(Ha(a.symbol)).thisType);s||(s=XC(a))}if(s)return I_(r,s)}if(e.isClassLike(a.parent)){var U=xn(a.parent),fe=e.isStatic(a)?En(U):vo(U).thisType;return I_(r,fe)}if(e.isSourceFile(a))if(a.commonJsModuleIndicator){var Oe=xn(a);return Oe&&En(Oe)}else{if(a.externalModuleIndicator)return Rr;if(t)return En(lr)}}function q6(r){var t=e.getThisContainer(r,!1);if(e.isFunctionLike(t)){var a=Iu(t);if(a.thisParameter)return Mb(a.thisParameter)}if(e.isClassLike(t.parent)){var o=xn(t.parent);return e.isStatic(t)?En(o):vo(o).thisType}}function X6(r){if(r.kind===212&&e.isBinaryExpression(r.parent)&&e.getAssignmentDeclarationKind(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===168&&r.parent.kind===204&&e.isBinaryExpression(r.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===212&&r.parent.kind===294&&r.parent.parent.kind===204&&e.isBinaryExpression(r.parent.parent.parent)&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===212&&e.isPropertyAssignment(r.parent)&&e.isIdentifier(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent.parent)&&e.isCallExpression(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&e.getAssignmentDeclarationKind(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(r)&&e.isIdentifier(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&e.isObjectLiteralExpression(r.parent)&&e.isCallExpression(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&e.getAssignmentDeclarationKind(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Y6(r){var t=e.getJSDocType(r);if(t&&t.kind===315){var a=t;if(a.parameters.length>0&&a.parameters[0].name&&a.parameters[0].name.escapedText==="this")return xa(a.parameters[0].type)}var o=e.getJSDocThisTag(r);if(o&&o.typeExpression)return xa(o.typeExpression)}function zC(r,t){return!!e.findAncestor(r,function(a){return e.isFunctionLikeDeclaration(a)?"quit":a.kind===163&&a.parent===t})}function Q1(r){var t=r.parent.kind===207&&r.parent.expression===r,a=e.getSuperContainer(r,!0),o=a,s=!1;if(!t)for(;o&&o.kind===213;)o=e.getSuperContainer(o,!0),s=Ne<2;var f=ze(o),N=0;if(!f){var U=e.findAncestor(r,function(tr){return tr===o?"quit":tr.kind===161});return U&&U.kind===161?Br(r,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Br(r,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!o||!o.parent||!(e.isClassLike(o.parent)||o.parent.kind===204)?Br(r,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Br(r,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Qe}if(!t&&a.kind===170&&KC(r,o,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(o)||t?(N=512,!t&&Ne>=2&&Ne<=8&&(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&e.forEachEnclosingBlockScopeContainer(r.parent,function(tr){(!e.isSourceFile(tr)||e.isExternalOrCommonJsModule(tr))&&(Zn(tr).flags|=134217728)})):N=256,Zn(r).flags|=N,o.kind===168&&e.hasSyntacticModifier(o,256)&&(e.isSuperProperty(r.parent)&&e.isAssignmentTarget(r.parent)?Zn(o).flags|=4096:Zn(o).flags|=2048),s&&X1(r.parent,o),o.parent.kind===204)return Ne<2?(Br(r,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Qe):ke;var fe=o.parent;if(!e.getClassExtendsHeritageElement(fe))return Br(r,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Qe;var Oe=vo(xn(fe)),je=Oe&&Gs(Oe)[0];if(!je)return Qe;if(o.kind===170&&zC(r,o))return Br(r,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Qe;return N===512?Lu(Oe):yl(je,Oe.thisType);function ze(tr){return tr?t?tr.kind===170:e.isClassLike(tr.parent)||tr.parent.kind===204?e.isStatic(tr)?tr.kind===168||tr.kind===167||tr.kind===171||tr.kind===172||tr.kind===166||tr.kind===169:tr.kind===168||tr.kind===167||tr.kind===171||tr.kind===172||tr.kind===166||tr.kind===165||tr.kind===170:!1:!1}}function Q6(r){return(r.kind===168||r.kind===171||r.kind===172)&&r.parent.kind===204?r.parent:r.kind===212&&r.parent.kind===294?r.parent.parent:void 0}function qC(r){return e.getObjectFlags(r)&4&&r.target===Mt?ho(r)[0]:void 0}function Z6(r){return ms(r,function(t){return t.flags&2097152?e.forEach(t.types,qC):qC(t)})}function XC(r){if(r.kind!==213){if(GA(r)){var t=zh(r);if(t){var a=t.thisParameter;if(a)return En(a)}}var o=e.isInJSFile(r);if(i||o){var s=Q6(r);if(s){for(var f=Qp(s),N=s,U=f;U;){var fe=Z6(U);if(fe)return ci(fe,w1(hv(s)));if(N.parent.kind!==294)break;N=N.parent.parent,U=Qp(N)}return Gl(f?Id(f):Cs(s))}var Oe=e.walkUpParenthesizedExpressions(r.parent);if(Oe.kind===220&&Oe.operatorToken.kind===63){var je=Oe.left;if(e.isAccessExpression(je)){var ze=je.expression;if(o&&e.isIdentifier(ze)){var tr=e.getSourceFileOfNode(Oe);if(tr.commonJsModuleIndicator&&wu(ze)===tr.symbol)return}return Gl(Cs(ze))}}}}}function YC(r){var t=r.parent;if(!!GA(t)){var a=e.getImmediatelyInvokedFunctionExpression(t);if(a&&a.arguments){var o=LT(a),s=t.parameters.indexOf(r);if(r.dotDotDotToken)return DT(o,s,o.length,ke,void 0,0);var f=Zn(a),N=f.resolvedSignature;f.resolvedSignature=Eo;var U=s<o.length?zp(fi(o[s])):r.initializer?void 0:zr;return f.resolvedSignature=N,U}var fe=zh(t);if(fe){var Oe=t.parameters.indexOf(r)-(e.getThisParameter(t)?1:0);return r.dotDotDotToken&&e.lastOrUndefined(t.parameters)===r?Cg(fe,Oe):k_(fe,Oe)}}}function Z1(r){var t=e.getEffectiveTypeAnnotationNode(r);if(t)return xa(t);switch(r.kind){case 163:return YC(r);case 202:return $6(r);case 166:if(e.isStatic(r))return eM(r)}}function $6(r){var t=r.parent.parent,a=r.propertyName||r.name,o=Z1(t)||t.kind!==202&&t.initializer&&ay(t);if(!(!o||e.isBindingPattern(a)||e.isComputedNonLiteralName(a))){if(t.name.kind===201){var s=e.indexOfNode(r.parent.elements,r);return s<0?void 0:nT(o,s)}var f=lp(a);if(Yu(f)){var N=Au(f);return na(o,N)}}}function eM(r){var t=e.isExpression(r.parent)&&Ic(r.parent);if(!!t)return N_(t,xn(r).escapedName)}function rM(r,t){var a=r.parent;if(e.hasInitializer(a)&&r===a.initializer){var o=Z1(a);if(o)return o;if(!(t&8)&&e.isBindingPattern(a.name))return Os(a.name,!0,!1)}}function tM(r){var t=e.getContainingFunction(r);if(t){var a=eT(t);if(a){var o=e.getFunctionFlags(t);if(o&1){var s=o&2?2:1,f=fy(a,s,void 0);if(!f)return;a=f.returnType}if(o&2){var N=ms(a,Nd);return N&&ha([N,sI(N)])}return a}}}function nM(r,t){var a=Ic(r,t);if(a){var o=Nd(a);return o&&ha([o,sI(o)])}}function aM(r){var t=e.getContainingFunction(r);if(t){var a=e.getFunctionFlags(t),o=eT(t);if(o)return r.asteriskToken?o:Bm(0,o,(a&2)!==0)}}function $1(r){for(var t=!1;r.parent&&!e.isFunctionLike(r.parent);){if(e.isParameter(r.parent)&&(t||r.parent.initializer===r))return!0;e.isBindingElement(r.parent)&&r.parent.initializer===r&&(t=!0),r=r.parent}return!1}function QC(r,t){var a=!!(e.getFunctionFlags(t)&2),o=eT(t);if(o)return Bm(r,o,a)||void 0}function eT(r){var t=Tm(r);if(t)return t;var a=iT(r);if(a&&!k0(a))return _o(a);var o=e.getImmediatelyInvokedFunctionExpression(r);if(o)return Ic(o)}function ZC(r,t){var a=LT(r),o=a.indexOf(t);return o===-1?void 0:rT(r,o)}function rT(r,t){if(e.isImportCall(r))return t===0?pt:t===1?zL(!1):ke;var a=Zn(r).resolvedSignature===So?So:Lg(r);if(e.isJsxOpeningLikeElement(r)&&t===0)return Hb(a,r);var o=a.parameters.length-1;return Y(a)&&t>=o?Xl(En(a.parameters[o]),Yf(t-o),256):Hc(a,t)}function iM(r,t){if(r.parent.kind===209)return ZC(r.parent,t)}function oM(r,t){var a=r.parent,o=a.left,s=a.operatorToken,f=a.right;switch(s.kind){case 63:case 76:case 75:case 77:return r===f?lM(a):void 0;case 56:case 60:var N=Ic(a,t);return r===f&&(N&&N.pattern||!N&&!e.isDefaultedExpandoInitializer(a))?rl(o):N;case 55:case 27:return r===f?Ic(a,t):void 0;default:return}}function sM(r){if(r.symbol)return r.symbol;if(e.isIdentifier(r))return wu(r);if(e.isPropertyAccessExpression(r)){var t=rl(r.expression);return e.isPrivateIdentifier(r.name)?a(t,r.name):pi(t,r.name.escapedText)}return;function a(o,s){var f=qb(s.escapedText,s);return f&&mT(o,f)}}function lM(r){var t,a,o=e.getAssignmentDeclarationKind(r);switch(o){case 0:case 4:var s=sM(r.left),f=s&&s.valueDeclaration;if(f&&(e.isPropertyDeclaration(f)||e.isPropertySignature(f))){var N=e.getEffectiveTypeAnnotationNode(f);return N&&ci(xa(N),Va(s).mapper)||f.initializer&&rl(r.left)}return o===0?rl(r.left):$C(r);case 5:if(Vb(r,o))return $C(r);if(r.left.symbol){var U=r.left.symbol.valueDeclaration;if(!U)return;var fe=e.cast(r.left,e.isAccessExpression),N=e.getEffectiveTypeAnnotationNode(U);if(N)return xa(N);if(e.isIdentifier(fe.expression)){var Oe=fe.expression,je=Ho(Oe,Oe.escapedText,111551,void 0,Oe.escapedText,!0);if(je){var ze=je.valueDeclaration&&e.getEffectiveTypeAnnotationNode(je.valueDeclaration);if(ze){var tr=e.getElementOrPropertyAccessName(fe);if(tr!==void 0)return N_(xa(ze),tr)}return}}return e.isInJSFile(U)?void 0:rl(r.left)}else return rl(r.left);case 1:case 6:case 3:var _r=(t=r.left.symbol)===null||t===void 0?void 0:t.valueDeclaration;case 2:_r||(_r=(a=r.symbol)===null||a===void 0?void 0:a.valueDeclaration);var Vr=_r&&e.getEffectiveTypeAnnotationNode(_r);return Vr?xa(Vr):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(o)}}function Vb(r,t){if(t===void 0&&(t=e.getAssignmentDeclarationKind(r)),t===4)return!0;if(!e.isInJSFile(r)||t!==5||!e.isIdentifier(r.left.expression))return!1;var a=r.left.expression.escapedText,o=Ho(r.left,a,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(o==null?void 0:o.valueDeclaration)}function $C(r){if(!r.symbol)return rl(r.left);if(r.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(r.symbol.valueDeclaration);if(t){var a=xa(t);if(a)return a}}var o=e.cast(r.left,e.isAccessExpression);if(!!e.isObjectLiteralMethod(e.getThisContainer(o.expression,!1))){var s=Ub(o.expression),f=e.getElementOrPropertyAccessName(o);return f!==void 0&&N_(s,f)||void 0}}function cM(r){return!!(e.getCheckFlags(r)&262144&&!r.type&&Ze(r,0)>=0)}function N_(r,t){return ms(r,function(a){var o;if(wl(a)){var s=Dc(a),f=pl(s)||s,N=xc(e.unescapeLeadingUnderscores(t));if($i(N,f))return bA(a,N)}else if(a.flags&3670016){var U=pi(a,t);if(U)return cM(U)?void 0:En(U);if(ki(a)){var fe=fv(a);if(fe&&rd(t)&&+t>=0)return fe}return(o=tg(ev(a),xc(e.unescapeLeadingUnderscores(t))))===null||o===void 0?void 0:o.type}},!0)}function uM(r,t){if(e.Debug.assert(e.isObjectLiteralMethod(r)),!(r.flags&16777216))return tT(r,t)}function tT(r,t){var a=r.parent,o=e.isPropertyAssignment(r)&&Z1(r);if(o)return o;var s=Qp(a,t);if(s){if(b_(r))return N_(s,xn(r).escapedName);if(r.name){var f=lp(r.name);return ms(s,function(N){var U;return(U=tg(ev(N),f))===null||U===void 0?void 0:U.type},!0)}}}function nT(r,t){return r&&(N_(r,""+t)||ms(r,function(a){return YT(1,a,Rr,void 0,!1)},!0))}function fM(r,t){var a=r.parent;return r===a.whenTrue||r===a.whenFalse?Ic(a,t):void 0}function dM(r,t){var a=Qp(r.openingElement.tagName),o=Kb(Mm(r));if(!!(a&&!wa(a)&&o&&o!=="")){var s=e.getSemanticJsxChildren(r.children),f=s.indexOf(t),N=N_(a,o);return N&&(s.length===1?N:ms(N,function(U){return _p(U)?Xl(U,Yf(f)):U},!0))}}function pM(r){var t=r.parent;return e.isJsxAttributeLike(t)?Ic(r):e.isJsxElement(t)?dM(t,r):void 0}function ex(r){if(e.isJsxAttribute(r)){var t=Qp(r.parent);return!t||wa(t)?void 0:N_(t,r.name.escapedText)}else return Ic(r.parent)}function Kh(r){switch(r.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 152:return!0;case 205:case 211:return Kh(r.expression);case 287:return!r.expression||Kh(r.expression)}return!1}function _M(r,t){return f6(t,r)||v1(t,e.concatenate(e.map(e.filter(r.properties,function(a){return!!a.symbol&&a.kind===294&&Kh(a.initializer)&&mv(t,a.symbol.escapedName)}),function(a){return[function(){return iy(a.initializer)},a.symbol.escapedName]}),e.map(e.filter(ro(t),function(a){var o;return!!(a.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(a.escapedName)&&mv(t,a.escapedName)}),function(a){return[function(){return Rr},a.escapedName]})),$i,t)}function mM(r,t){return v1(t,e.concatenate(e.map(e.filter(r.properties,function(a){return!!a.symbol&&a.kind===284&&mv(t,a.symbol.escapedName)&&(!a.initializer||Kh(a.initializer))}),function(a){return[a.initializer?function(){return iy(a.initializer)}:function(){return Pn},a.symbol.escapedName]}),e.map(e.filter(ro(t),function(a){var o;return!!(a.flags&16777216)&&!!(!((o=r==null?void 0:r.symbol)===null||o===void 0)&&o.members)&&!r.symbol.members.has(a.escapedName)&&mv(t,a.escapedName)}),function(a){return[function(){return Rr},a.escapedName]})),$i,t)}function Qp(r,t){var a=e.isObjectLiteralMethod(r)?uM(r,t):Ic(r,t),o=Wb(a,r,t);if(o&&!(t&&t&2&&o.flags&8650752)){var s=ms(o,Dn,!0);return s.flags&1048576&&e.isObjectLiteralExpression(r)?_M(r,s):s.flags&1048576&&e.isJsxAttributes(r)?mM(r,s):s}}function Wb(r,t,a){if(r&&Jo(r,465829888)){var o=hv(t);if(o&&e.some(o.inferences,rm)){if(a&&a&1)return jb(r,o.nonFixingMapper);if(o.returnMapper)return jb(r,o.returnMapper)}}return r}function jb(r,t){return r.flags&465829888?ci(r,t):r.flags&1048576?ha(e.map(r.types,function(a){return jb(a,t)}),0):r.flags&2097152?To(e.map(r.types,function(a){return jb(a,t)})):r}function Ic(r,t){if(r.flags&16777216)return;if(r.contextualType)return r.contextualType;var a=r.parent;switch(a.kind){case 253:case 163:case 166:case 165:case 202:return rM(r,t);case 213:case 246:return tM(r);case 223:return aM(a);case 217:return nM(a,t);case 207:case 208:return ZC(a,r);case 210:case 228:return e.isConstTypeReference(a.type)?N(a):xa(a.type);case 220:return oM(r,t);case 294:case 295:return tT(a,t);case 296:return Ic(a.parent,t);case 203:{var o=a,s=Qp(o,t);return nT(s,e.indexOfNode(o.elements,r))}case 221:return fM(r,t);case 232:return e.Debug.assert(a.parent.kind===222),iM(a.parent,r);case 211:{var f=e.isInJSFile(a)?e.getJSDocTypeTag(a):void 0;return f?e.isJSDocTypeTag(f)&&e.isConstTypeReference(f.typeExpression.type)?N(a):xa(f.typeExpression.type):Ic(a,t)}case 229:return Ic(a,t);case 287:return pM(a);case 284:case 286:return ex(a);case 279:case 278:return gM(a,t)}return;function N(U){return Ic(U)}}function hv(r){var t=e.findAncestor(r,function(a){return!!a.inferenceContext});return t&&t.inferenceContext}function gM(r,t){return e.isJsxOpeningElement(r)&&r.parent.contextualType&&t!==4?r.parent.contextualType:rT(r,0)}function Hb(r,t){return Bx(t)!==0?vM(r,t):bM(r,t)}function vM(r,t){var a=kT(r,Be);a=rx(t,Mm(t),a);var o=Zp(b.IntrinsicAttributes,t);return Za(o)||(a=J_(o,a)),a}function hM(r,t){if(r.compositeSignatures){for(var a=[],o=0,s=r.compositeSignatures;o<s.length;o++){var f=s[o],N=_o(f);if(wa(N))return N;var U=na(N,t);if(!U)return;a.push(U)}return To(a)}var fe=_o(r);return wa(fe)?fe:na(fe,t)}function yM(r){if(Tg(r.tagName)){var t=fx(r),a=tE(r,t);return sg(a)}var o=Cs(r.tagName);if(o.flags&128){var t=ux(o,r);if(!t)return Qe;var a=tE(r,t);return sg(a)}return o}function rx(r,t,a){var o=BM(t);if(o){var s=vo(o),f=yM(r);if(o.flags&524288){var N=Va(o).typeParameters;if(e.length(N)>=2){var U=Wp([f,a],N,2,e.isInJSFile(r));return cg(o,U)}}if(e.length(s.typeParameters)>=2){var U=Wp([f,a],s.typeParameters,2,e.isInJSFile(r));return qf(s,U)}}return a}function bM(r,t){var a=Mm(t),o=UM(a),s=o===void 0?kT(r,Be):o===""?_o(r):hM(r,o);if(!s)return!!o&&!!e.length(t.attributes.properties)&&Br(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),Be;if(s=rx(t,a,s),wa(s))return s;var f=s,N=Zp(b.IntrinsicClassAttributes,t);if(!Za(N)){var U=Ef(N.symbol),fe=_o(r);f=J_(U?qf(N,Wp([fe],U,uu(U),e.isInJSFile(t))):N,f)}var Oe=Zp(b.IntrinsicAttributes,t);return Za(Oe)||(f=J_(Oe,f)),f}function EM(r){return e.getStrictOptionValue(We,"noImplicitAny")?e.reduceLeft(r,function(t,a){return t===a||!t?t:jy(t.typeParameters,a.typeParameters)?DM(t,a):void 0}):void 0}function TM(r,t,a){if(!r||!t)return r||t;var o=ha([En(r),ci(En(t),a)]);return Z_(r,o)}function SM(r,t,a){for(var o=Cl(r),s=Cl(t),f=o>=s?r:t,N=f===r?t:r,U=f===r?o:s,fe=Fu(r)||Fu(t),Oe=fe&&!Fu(f),je=new Array(U+(Oe?1:0)),ze=0;ze<U;ze++){var tr=k_(f,ze);f===t&&(tr=ci(tr,a));var _r=k_(N,ze)||Be;N===t&&(_r=ci(_r,a));var Vr=ha([tr,_r]),$r=fe&&!Oe&&ze===U-1,Tt=ze>=Pu(f)&&ze>=Pu(N),St=ze>=o?void 0:Ag(r,ze),It=ze>=s?void 0:Ag(t,ze),jt=St===It?St:St?It?void 0:St:It,In=co(1|(Tt&&!$r?16777216:0),jt||"arg".concat(ze));In.type=$r?Js(Vr):Vr,je[ze]=In}if(Oe){var sn=co(1,"args");sn.type=Js(Hc(N,U)),N===t&&(sn.type=ci(sn.type,a)),je[U]=sn}return je}function DM(r,t){var a=r.typeParameters||t.typeParameters,o;r.typeParameters&&t.typeParameters&&(o=Pl(t.typeParameters,r.typeParameters));var s=r.declaration,f=SM(r,t,o),N=TM(r.thisParameter,t.thisParameter,o),U=Math.max(r.minArgumentCount,t.minArgumentCount),fe=Cu(s,a,N,f,void 0,void 0,U,(r.flags|t.flags)&39);return fe.compositeKind=2097152,fe.compositeSignatures=e.concatenate(r.compositeKind===2097152&&r.compositeSignatures||[r],[t]),o&&(fe.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?D_(r.mapper,o):o),fe}function aT(r,t){var a=Li(r,0),o=e.filter(a,function(s){return!LM(s,t)});return o.length===1?o[0]:EM(o)}function LM(r,t){for(var a=0;a<t.parameters.length;a++){var o=t.parameters[a];if(o.initializer||o.questionToken||o.dotDotDotToken||ig(o))break}return t.parameters.length&&e.parameterIsThisKeyword(t.parameters[0])&&a--,!Fu(r)&&Cl(r)<a}function iT(r){return e.isFunctionExpressionOrArrowFunction(r)||e.isObjectLiteralMethod(r)?zh(r):void 0}function zh(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var t=I0(r);if(t)return t;var a=Qp(r,1);if(!!a){if(!(a.flags&1048576))return aT(a,r);for(var o,s=a.types,f=0,N=s;f<N.length;f++){var U=N[f],fe=aT(U,r);if(fe)if(!o)o=[fe];else if(Bh(o[0],fe,!1,!0,!0,cv))o.push(fe);else return}if(o)return o.length===1?o[0]:By(o[0],o)}}function AM(r,t){Ne<2&&tl(r,We.downlevelIteration?1536:1024);var a=fi(r.expression,t);return Od(33,a,Rr,r.expression)}function CM(r){return r.isSpread?Xl(r.type,Nt):r.type}function bg(r){return r.kind===202&&!!r.initializer||r.kind===220&&r.operatorToken.kind===63}function tx(r,t,a){for(var o=r.elements,s=o.length,f=[],N=[],U=Qp(r),fe=e.isAssignmentTarget(r),Oe=xg(r),je=!1,ze=0;ze<s;ze++){var tr=o[ze];if(tr.kind===224){Ne<2&&tl(tr,We.downlevelIteration?1536:1024);var _r=fi(tr.expression,t,a);if(_p(_r))f.push(_r),N.push(8);else if(fe){var Vr=Qu(_r,Nt)||YT(65,_r,Rr,void 0,!1)||Be;f.push(Vr),N.push(4)}else f.push(Od(33,_r,Rr,tr.expression)),N.push(4)}else if(de&&tr.kind===226)je=!0,f.push(mt),N.push(2);else{var $r=nT(U,f.length),Tt=Ig(tr,t,$r,a);f.push(ac(Tt,!0,je)),N.push(je?2:1)}}return fe?ku(f,N):a||Oe||U&&Om(U,gg)?nx(ku(f,N,Oe)):nx(Js(f.length?ha(e.sameMap(f,function(St,It){return N[It]&8?cp(St,Nt)||ke:St}),2):Er?Kt:zr,Oe))}function nx(r){if(!(e.getObjectFlags(r)&4))return r;var t=r.literalType;return t||(t=r.literalType=RL(r),t.objectFlags|=294912),t}function xM(r){switch(r.kind){case 161:return IM(r);case 79:return rd(r.escapedText);case 8:case 10:return rd(r.text);default:return!1}}function IM(r){return hs(td(r),296)}function rd(r){return(+r).toString()===r}function td(r){var t=Zn(r.expression);if(!t.resolvedType){if((e.isTypeLiteralNode(r.parent.parent)||e.isClassLike(r.parent.parent)||e.isInterfaceDeclaration(r.parent.parent))&&e.isBinaryExpression(r.expression)&&r.expression.operatorToken.kind===101)return t.resolvedType=Qe;if(t.resolvedType=fi(r.expression),e.isPropertyDeclaration(r.parent)&&!e.hasStaticModifier(r.parent)&&e.isClassExpression(r.parent.parent)){var a=e.getEnclosingBlockScopeContainer(r.parent.parent),o=q1(a);o&&(Zn(o).flags|=65536,Zn(r).flags|=524288,Zn(r.parent.parent).flags|=524288)}(t.resolvedType.flags&98304||!hs(t.resolvedType,402665900)&&!$i(t.resolvedType,ft))&&Br(r,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function NM(r){var t,a=(t=r.declarations)===null||t===void 0?void 0:t[0];return rd(r.escapedName)||a&&e.isNamedDeclaration(a)&&xM(a.name)}function ax(r){var t,a=(t=r.declarations)===null||t===void 0?void 0:t[0];return e.isKnownSymbol(r)||a&&e.isNamedDeclaration(a)&&e.isComputedPropertyName(a.name)&&hs(td(a.name),4096)}function oT(r,t,a,o){for(var s=[],f=t;f<a.length;f++){var N=a[f];(o===pt&&!ax(N)||o===Nt&&NM(N)||o===pa&&ax(N))&&s.push(En(a[f]))}var U=s.length?ha(s,2):Rr;return Nu(o,U,xg(r))}function ix(r){e.Debug.assert((r.flags&2097152)!==0,"Should only get Alias here.");var t=Va(r);if(!t.immediateTarget){var a=ec(r);if(!a)return e.Debug.fail();t.immediateTarget=Zi(a,!0)}return t.immediateTarget}function kM(r,t){var a=e.isAssignmentTarget(r);eF(r,a);for(var o=Er?e.createSymbolTable():void 0,s=e.createSymbolTable(),f=[],N=Qn,U=Qp(r),fe=U&&U.pattern&&(U.pattern.kind===200||U.pattern.kind===204),Oe=xg(r),je=Oe?8:0,ze=e.isInJSFile(r)&&!e.isInJsonFile(r),tr=e.getJSDocEnumTag(r),_r=!U&&ze&&!tr,Vr=Ar,$r=!1,Tt=!1,St=!1,It=!1,jt=0,In=r.properties;jt<In.length;jt++){var sn=In[jt];sn.name&&e.isComputedPropertyName(sn.name)&&td(sn.name)}for(var ua=0,la=0,_i=r.properties;la<_i.length;la++){var ka=_i[la],xi=xn(ka),Bi=ka.name&&ka.name.kind===161?td(ka.name):void 0;if(ka.kind===294||ka.kind===295||e.isObjectLiteralMethod(ka)){var Ii=ka.kind===294?bI(ka,t):ka.kind===295?Ig(!a&&ka.objectAssignmentInitializer?ka.objectAssignmentInitializer:ka.name,t):EI(ka,t);if(ze){var Co=Vc(ka);Co?(Fl(Ii,Co,ka),Ii=Co):tr&&tr.typeExpression&&Fl(Ii,xa(tr.typeExpression),ka)}Vr|=e.getObjectFlags(Ii)&917504;var Ht=Bi&&Yu(Bi)?Bi:void 0,Gt=Ht?co(4|xi.flags,Au(Ht),je|4096):co(4|xi.flags,xi.escapedName,je);if(Ht&&(Gt.nameType=Ht),a){var mn=ka.kind===294&&bg(ka.initializer)||ka.kind===295&&ka.objectAssignmentInitializer;mn&&(Gt.flags|=16777216)}else if(fe&&!(e.getObjectFlags(U)&512)){var Oa=pi(U,xi.escapedName);Oa?Gt.flags|=Oa.flags&16777216:!We.suppressExcessPropertyErrors&&!cu(U,pt)&&Br(ka.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ja(xi),pn(U))}Gt.declarations=xi.declarations,Gt.parent=xi.parent,xi.valueDeclaration&&(Gt.valueDeclaration=xi.valueDeclaration),Gt.type=Ii,Gt.target=xi,xi=Gt,o==null||o.set(Gt.escapedName,Gt)}else if(ka.kind===296){Ne<2&&tl(ka,2),f.length>0&&(N=Jp(N,Pi(),r.symbol,Vr,Oe),f=[],s=e.createSymbolTable(),Tt=!1,St=!1,It=!1);var Ii=to(fi(ka.expression));if(Eg(Ii)){var Yn=e1(Ii,Oe);if(o&&sx(Yn,o,ka),ua=f.length,Za(N))continue;N=Jp(N,Yn,r.symbol,Vr,Oe)}else Br(ka,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),N=Qe;continue}else e.Debug.assert(ka.kind===171||ka.kind===172),Rv(ka);Bi&&!(Bi.flags&8576)?$i(Bi,ft)&&($i(Bi,Nt)?St=!0:$i(Bi,pa)?It=!0:Tt=!0,a&&($r=!0)):s.set(xi.escapedName,xi),f.push(xi)}if(fe&&r.parent.kind!==296)for(var Ba=0,Di=ro(U);Ba<Di.length;Ba++){var Gt=Di[Ba];!s.get(Gt.escapedName)&&!pi(N,Gt.escapedName)&&(Gt.flags&16777216||Br(Gt.valueDeclaration||Gt.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),s.set(Gt.escapedName,Gt),f.push(Gt))}if(Za(N))return Qe;if(N!==Qn)return f.length>0&&(N=Jp(N,Pi(),r.symbol,Vr,Oe),f=[],s=e.createSymbolTable(),Tt=!1,St=!1),ms(N,function(Hn){return Hn===Qn?Pi():Hn});return Pi();function Pi(){var Hn=[];Tt&&Hn.push(oT(r,ua,f,pt)),St&&Hn.push(oT(r,ua,f,Nt)),It&&Hn.push(oT(r,ua,f,pa));var Gi=es(r.symbol,s,e.emptyArray,e.emptyArray,Hn);return Gi.objectFlags|=Vr|128|262144,_r&&(Gi.objectFlags|=8192),$r&&(Gi.objectFlags|=512),a&&(Gi.pattern=r),Gi}}function Eg(r){if(r.flags&465829888){var t=pl(r);if(t!==void 0)return Eg(t)}return!!(r.flags&126615553||mc(r)&117632&&Eg(oC(r))||r.flags&3145728&&e.every(r.types,Eg))}function OM(r){uT(r)}function RM(r,t){return Rv(r),qh(r)||ke}function wM(r){uT(r.openingElement),Tg(r.closingElement.tagName)?lT(r.closingElement):fi(r.closingElement.tagName),Jb(r)}function MM(r,t){return Rv(r),qh(r)||ke}function PM(r){uT(r.openingFragment);var t=e.getSourceFileOfNode(r);return e.getJSXTransformEnabled(We)&&(We.jsxFactory||t.pragmas.has("jsx"))&&!We.jsxFragmentFactory&&!t.pragmas.has("jsxfrag")&&Br(r,We.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Jb(r),qh(r)||ke}function sT(r){return e.stringContains(r,"-")}function Tg(r){return r.kind===79&&e.isIntrinsicJsxName(r.escapedText)}function ox(r,t){return r.initializer?Ig(r.initializer,t):Pn}function FM(r,t){for(var a=r.attributes,o=Er?e.createSymbolTable():void 0,s=e.createSymbolTable(),f=Ra,N=!1,U,fe=!1,Oe=2048,je=Kb(Mm(r)),ze=0,tr=a.properties;ze<tr.length;ze++){var _r=tr[ze],Vr=_r.symbol;if(e.isJsxAttribute(_r)){var $r=ox(_r,t);Oe|=e.getObjectFlags($r)&917504;var Tt=co(4|Vr.flags,Vr.escapedName);Tt.declarations=Vr.declarations,Tt.parent=Vr.parent,Vr.valueDeclaration&&(Tt.valueDeclaration=Vr.valueDeclaration),Tt.type=$r,Tt.target=Vr,s.set(Tt.escapedName,Tt),o==null||o.set(Tt.escapedName,Tt),_r.name.escapedText===je&&(fe=!0)}else{e.Debug.assert(_r.kind===286),s.size>0&&(f=Jp(f,la(),a.symbol,Oe,!1),s=e.createSymbolTable());var $r=to(Cs(_r.expression,t));wa($r)&&(N=!0),Eg($r)?(f=Jp(f,$r,a.symbol,Oe,!1),o&&sx($r,o,_r)):U=U?To([U,$r]):$r}}N||s.size>0&&(f=Jp(f,la(),a.symbol,Oe,!1));var St=r.parent.kind===277?r.parent:void 0;if(St&&St.openingElement===r&&St.children.length>0){var It=Jb(St,t);if(!N&&je&&je!==""){fe&&Br(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(je));var jt=Qp(r.attributes),In=jt&&N_(jt,je),sn=co(4,je);sn.type=It.length===1?It[0]:In&&Om(In,gg)?ku(It):Js(ha(It)),sn.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(je),void 0,void 0),e.setParent(sn.valueDeclaration,a),sn.valueDeclaration.symbol=sn;var ua=e.createSymbolTable();ua.set(je,sn),f=Jp(f,es(a.symbol,ua,e.emptyArray,e.emptyArray,e.emptyArray),a.symbol,Oe,!1)}}if(N)return ke;if(U&&f!==Ra)return To([U,f]);return U||(f===Ra?la():f);function la(){Oe|=Ar;var _i=es(a.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return _i.objectFlags|=Oe|128|262144,_i}}function Jb(r,t){for(var a=[],o=0,s=r.children;o<s.length;o++){var f=s[o];if(f.kind===11)f.containsOnlyTriviaWhiteSpaces||a.push(pt);else{if(f.kind===287&&!f.expression)continue;a.push(Ig(f,t))}}return a}function sx(r,t,a){for(var o=0,s=ro(r);o<s.length;o++){var f=s[o];if(!(f.flags&16777216)){var N=t.get(f.escapedName);if(N){var U=Br(N.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(N.escapedName));e.addRelatedInfo(U,e.createDiagnosticForNode(a,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function GM(r,t){return FM(r.parent,t)}function Zp(r,t){var a=Mm(t),o=a&&il(a),s=o&&Al(o,r,788968);return s?vo(s):Qe}function lT(r){var t=Zn(r);if(!t.resolvedSymbol){var a=Zp(b.IntrinsicElements,r);if(Za(a))return sr&&Br(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(b.IntrinsicElements)),t.resolvedSymbol=cr;if(!e.isIdentifier(r.tagName))return e.Debug.fail();var o=pi(a,r.tagName.escapedText);if(o)return t.jsxFlags|=1,t.resolvedSymbol=o;var s=Qu(a,pt);return s?(t.jsxFlags|=2,t.resolvedSymbol=a.symbol):(Br(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(r.tagName),"JSX."+b.IntrinsicElements),t.resolvedSymbol=cr)}return t.resolvedSymbol}function cT(r){var t=r&&e.getSourceFileOfNode(r),a=t&&Zn(t);if(!(a&&a.jsxImplicitImportContainer===!1)){if(a&&a.jsxImplicitImportContainer)return a.jsxImplicitImportContainer;var o=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(We,t),We);if(!!o){var s=e.getEmitModuleResolutionKind(We)===e.ModuleResolutionKind.Classic,f=s?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,N=Pf(r,o,f,r),U=N&&N!==cr?Ha(wo(N)):void 0;return a&&(a.jsxImplicitImportContainer=U||!1),U}}}function Mm(r){var t=r&&Zn(r);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||t.jsxNamespace!==!1){var a=cT(r);if(!a||a===cr){var o=Ci(r);a=Ho(r,o,1920,void 0,o,!1)}if(a){var s=wo(Al(il(wo(a)),b.JSX,1920));if(s&&s!==cr)return t&&(t.jsxNamespace=s),s}t&&(t.jsxNamespace=!1)}var f=wo(tv(b.JSX,1920,void 0));if(f!==cr)return f}function lx(r,t){var a=t&&Al(t.exports,r,788968),o=a&&vo(a),s=o&&ro(o);if(s){if(s.length===0)return"";if(s.length===1)return s[0].escapedName;s.length>1&&a.declarations&&Br(a.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(r))}}function BM(r){return r&&Al(r.exports,b.LibraryManagedAttributes,788968)}function UM(r){return lx(b.ElementAttributesPropertyNameContainer,r)}function Kb(r){return lx(b.ElementChildrenAttributeNameContainer,r)}function cx(r,t){if(r.flags&4)return[Eo];if(r.flags&128){var a=ux(r,t);if(a){var o=tE(t,a);return[o]}else return Br(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,"JSX."+b.IntrinsicElements),e.emptyArray}var s=Dn(r),f=Li(s,1);return f.length===0&&(f=Li(s,0)),f.length===0&&s.flags&1048576&&(f=Zg(e.map(s.types,function(N){return cx(N,t)}))),f}function ux(r,t){var a=Zp(b.IntrinsicElements,t);if(!Za(a)){var o=r.value,s=pi(a,e.escapeLeadingUnderscores(o));if(s)return En(s);var f=Qu(a,pt);return f||void 0}return ke}function VM(r,t,a){if(r===1){var o=px(a);o&&du(t,o,Un,a.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,N)}else if(r===0){var s=dx(a);s&&du(t,s,Un,a.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,N)}else{var o=px(a),s=dx(a);if(!o||!s)return;var f=ha([o,s]);du(t,f,Un,a.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,N)}function N(){var U=e.getTextOfNode(a.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,U)}}function fx(r){e.Debug.assert(Tg(r.tagName));var t=Zn(r);if(!t.resolvedJsxElementAttributesType){var a=lT(r);return t.jsxFlags&1?t.resolvedJsxElementAttributesType=En(a)||Qe:t.jsxFlags&2?t.resolvedJsxElementAttributesType=Qu(Zp(b.IntrinsicElements,r),pt)||Qe:t.resolvedJsxElementAttributesType=Qe}return t.resolvedJsxElementAttributesType}function dx(r){var t=Zp(b.ElementClass,r);if(!Za(t))return t}function qh(r){return Zp(b.Element,r)}function px(r){var t=qh(r);if(t)return ha([t,Lt])}function WM(r){var t=Zp(b.IntrinsicElements,r);return t?ro(t):e.emptyArray}function jM(r){(We.jsx||0)===0&&Br(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),qh(r)===void 0&&sr&&Br(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function uT(r){var t=e.isJsxOpeningLikeElement(r);if(t&&rF(r),jM(r),!cT(r)){var a=fa&&We.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,o=Ci(r),s=t?r.tagName:r,f=void 0;if(e.isJsxOpeningFragment(r)&&o==="null"||(f=Ho(s,o,111551,a,o,!0)),f&&(f.isReferenced=67108863,f.flags&2097152&&!Cn(f)&&ui(f)),e.isJsxOpeningFragment(r)){var N=e.getSourceFileOfNode(r),U=Fo(N);U&&Ho(s,U,111551,a,U,!0)}}if(t){var fe=r,Oe=Lg(fe);aE(Oe,r),VM(Bx(fe),_o(Oe),fe)}}function fT(r,t,a){if(r.flags&524288){if(Sd(r,t)||Up(r,t)||y_(t)&&cu(r,pt)||a&&sT(t))return!0}else if(r.flags&3145728&&Xh(r))for(var o=0,s=r.types;o<s.length;o++){var f=s[o];if(fT(f,t,a))return!0}return!1}function Xh(r){return!!(r.flags&524288&&!(e.getObjectFlags(r)&512)||r.flags&67108864||r.flags&1048576&&e.some(r.types,Xh)||r.flags&2097152&&e.every(r.types,Xh))}function HM(r,t){if(nF(r),r.expression){var a=fi(r.expression,t);return r.dotDotDotToken&&a!==ke&&!$s(a)&&Br(r,e.Diagnostics.JSX_spread_child_must_be_an_array_type),a}else return Qe}function yv(r){return r.valueDeclaration?e.getCombinedNodeFlags(r.valueDeclaration):0}function dT(r){if(r.flags&8192||e.getCheckFlags(r)&4)return!0;if(e.isInJSFile(r.valueDeclaration)){var t=r.valueDeclaration.parent;return t&&e.isBinaryExpression(t)&&e.getAssignmentDeclarationKind(t)===3}}function pT(r,t,a,o,s,f){f===void 0&&(f=!0);var N=f?r.kind===160?r.right:r.kind===199?r:r.kind===202&&r.propertyName?r.propertyName:r.name:void 0;return _x(r,t,a,o,s,N)}function _x(r,t,a,o,s,f){var N=e.getDeclarationModifierFlagsFromSymbol(s,a);if(t){if(Ne<2&&mx(s))return f&&Br(f,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(N&128)return f&&Br(f,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ja(s),pn(Q_(s))),!1}if(N&128&&mx(s)&&(e.isThisProperty(r)||e.isThisInitializedObjectBindingExpression(r)||e.isObjectBindingPattern(r.parent)&&e.isThisInitializedDeclaration(r.parent.parent))){var U=e.getClassLikeDeclarationOfSymbol(Ls(s));if(U&&Z8(r))return f&&Br(f,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ja(s),e.getTextOfIdentifierOrLiteral(U.name)),!1}if(!(N&24))return!0;if(N&8){var U=e.getClassLikeDeclarationOfSymbol(Ls(s));return oS(r,U)?!0:(f&&Br(f,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ja(s),pn(Q_(s))),!1)}if(t)return!0;var fe=TN(r,function(ze){var tr=vo(xn(ze));return Dw(tr,s,a)?tr:void 0});if(!fe){var Oe=void 0;if(N&32||!(Oe=JM(r))||!Oe.type)return f&&Br(f,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ja(s),pn(Q_(s)||o)),!1;var je=xa(Oe.type);fe=(je.flags&262144?bl(je):je).target}return N&32?!0:(o.flags&262144&&(o=o.isThisType?bl(o):pl(o)),!o||!Fp(o,fe)?(f&&Br(f,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ja(s),pn(fe),pn(o)),!1):!0)}function JM(r){var t=e.getThisContainer(r,!1);return t&&e.isFunctionLike(t)?e.getThisParameter(t):void 0}function mx(r){return!!Ph(r,function(t){return!(t.flags&8192)})}function Sg(r){return pu(fi(r),r)}function zb(r){return!!((Er?mc(r):r.flags)&98304)}function _T(r){return zb(r)?Id(r):r}function KM(r,t){Br(r,t&32768?t&65536?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function zM(r,t){Br(r,t&32768?t&65536?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function gx(r,t,a){if(Er&&r.flags&2)return Br(t,e.Diagnostics.Object_is_of_type_unknown),Qe;var o=(Er?mc(r):r.flags)&98304;if(o){a(t,o);var s=Id(r);return s.flags&229376?Qe:s}return r}function pu(r,t){return gx(r,t,KM)}function vx(r,t){var a=pu(r,t);return a.flags&16384&&Br(t,e.Diagnostics.Object_is_possibly_undefined),a}function hx(r,t){return r.flags&32?qM(r,t):gT(r,r.expression,Sg(r.expression),r.name,t)}function qM(r,t){var a=fi(r.expression),o=dv(a,r.expression);return Tb(gT(r,r.expression,pu(o,r.expression),r.name,t),r,o!==a)}function yx(r,t){var a=e.isPartOfTypeQuery(r)&&e.isThisIdentifier(r.left)?pu(Ub(r.left),r.left):Sg(r.left);return gT(r,r.left,a,r.right,t)}function bx(r){for(;r.parent.kind===211;)r=r.parent;return e.isCallOrNewExpression(r.parent)&&r.parent.expression===r}function qb(r,t){for(var a=e.getContainingClass(t);a;a=e.getContainingClass(a)){var o=a.symbol,s=e.getSymbolNameForPrivateIdentifier(o,r),f=o.members&&o.members.get(s)||o.exports&&o.exports.get(s);if(f)return f}}function XM(r){return e.getContainingClass(r)?e.isExpressionNode(r)?Xb(r)?!1:cn(r,e.Diagnostics.Cannot_find_name_0,e.idText(r)):cn(r,e.Diagnostics.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):cn(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies)}function YM(r){XM(r);var t=Xb(r);return t&&Qh(t,void 0,!1),ke}function Xb(r){if(!!e.isExpressionNode(r)){var t=Zn(r);return t.resolvedSymbol===void 0&&(t.resolvedSymbol=qb(r.escapedText,r)),t.resolvedSymbol}}function mT(r,t){return pi(r,t.escapedName)}function QM(r,t,a){var o,s=ro(r);s&&e.forEach(s,function(ze){var tr=ze.valueDeclaration;if(tr&&e.isNamedDeclaration(tr)&&e.isPrivateIdentifier(tr.name)&&tr.name.escapedText===t.escapedText)return o=ze,!0});var f=$l(t);if(o){var N=e.Debug.checkDefined(o.valueDeclaration),U=e.Debug.checkDefined(e.getContainingClass(N));if(a!=null&&a.valueDeclaration){var fe=a.valueDeclaration,Oe=e.getContainingClass(fe);if(e.Debug.assert(!!Oe),e.findAncestor(Oe,function(ze){return U===ze})){var je=Br(t,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,f,pn(r));return e.addRelatedInfo(je,e.createDiagnosticForNode(fe,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,f),e.createDiagnosticForNode(N,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,f)),!0}}return Br(t,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,f,$l(U.name||c)),!0}return!1}function Ex(r,t){return(g_(t)||e.isThisProperty(r)&&Ie(t))&&e.getThisContainer(r,!0)===br(t)}function gT(r,t,a,o,s){var f=Zn(t).resolvedSymbol,N=e.getAssignmentTargetKind(r),U=Dn(N!==0||bx(r)?Gl(a):a),fe=wa(U)||U===bt,Oe;if(e.isPrivateIdentifier(o)){Ne<99&&(N!==0&&tl(r,1048576),N!==1&&tl(r,524288));var je=qb(o.escapedText,o);if(N&&je&&je.valueDeclaration&&e.isMethodDeclaration(je.valueDeclaration)&&cn(o,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(o)),(je==null?void 0:je.valueDeclaration)&&e.getEmitScriptTarget(We)===99&&!Ve){var ze=e.getContainingClass(je.valueDeclaration),tr=e.findAncestor(r,function(In){return In===ze?"quit":!!(e.isPropertyDeclaration(In.parent)&&e.hasStaticModifier(In.parent)&&In.parent.initializer===In&&In.parent.parent===ze)});if(tr){var _r=xn(tr.parent);e.Debug.assert(_r,"Initializer without declaration symbol");var Vr=Br(r,e.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false,e.symbolName(je));e.addRelatedInfo(Vr,e.createDiagnosticForNode(tr.parent,e.Diagnostics.Initializer_for_property_0,e.symbolName(_r)))}}if(fe){if(je)return Za(U)?Qe:U;if(!e.getContainingClass(o))return cn(o,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ke}if(Oe=je?mT(a,je):void 0,!Oe&&QM(a,o,je))return Qe;var $r=Oe&&Oe.flags&65536&&!(Oe.flags&32768);$r&&N!==1&&Br(r,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(fe)return e.isIdentifier(t)&&f&&Bb(f,r),Za(U)?Qe:U;Oe=pi(U,o.escapedText)}e.isIdentifier(t)&&f&&(We.isolatedModules||!(Oe&&wv(Oe))||e.shouldPreserveConstEnums(We)&&jC(r))&&Bb(f,r);var Tt;if(Oe){Oe.declarations&&yv(Oe)&134217728&&z0(r,Oe)&&Mc(o,Oe.declarations,o.escapedText),ZM(Oe,r,o),Qh(Oe,r,xx(t,f)),Zn(r).resolvedSymbol=Oe;var jt=e.isWriteAccess(r);if(pT(r,t.kind===106,jt,U,Oe),_I(r,Oe,N))return Br(o,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(o)),Qe;Tt=Ex(r,Oe)?dr:jt?oh(Oe):En(Oe)}else{var St=!e.isPrivateIdentifier(o)&&(N===0||!z_(a)||kh(a))?Up(U,o.escapedText):void 0;if(!(St&&St.type)){var It=vT(r,a.symbol,!0);return!It&&iv(a)?ke:a.symbol===lr?(lr.exports.has(o.escapedText)&&lr.exports.get(o.escapedText).flags&418?Br(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(o.escapedText),pn(a)):sr&&Br(o,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,pn(a)),ke):(o.escapedText&&!Jd(r)&&Dx(o,kh(a)?U:a,It),Qe)}St.isReadonly&&(e.isAssignmentTarget(r)||e.isDeleteTarget(r))&&Br(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,pn(U)),Tt=We.noUncheckedIndexedAccess&&!e.isAssignmentTarget(r)?ha([St.type,Rr]):St.type,We.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(r)&&Br(o,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(o.escapedText))}return Tx(r,Oe,Tt,o,s)}function vT(r,t,a){var o=e.getSourceFileOfNode(r);if(o&&We.checkJs===void 0&&o.checkJsDirective===void 0&&(o.scriptKind===1||o.scriptKind===2)){var s=e.forEach(t==null?void 0:t.declarations,e.getSourceFileOfNode);return!(o!==s&&!!s&&Pc(s))&&!(a&&t&&t.flags&32)&&!(!!r&&a&&e.isPropertyAccessExpression(r)&&r.expression.kind===108)}return!1}function Tx(r,t,a,o,s){var f=e.getAssignmentTargetKind(r);if(f===1)return Nm(a,!!(t&&t.flags&16777216));if(t&&!(t.flags&98311)&&!(t.flags&8192&&a.flags&1048576)&&!EE(t.declarations))return a;if(a===dr)return Zt(r,t);a=z1(a,r,s);var N=!1;if(Er&&xr&&e.isAccessExpression(r)&&r.expression.kind===108){var U=t&&t.valueDeclaration;if(U&&fN(U)&&!e.isStatic(U)){var fe=vv(r);fe.kind===170&&fe.parent===U.parent&&!(U.flags&8388608)&&(N=!0)}}else Er&&t&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(t.valueDeclaration)&&vv(r)===vv(t.valueDeclaration)&&(N=!0);var Oe=I_(r,a,N?$f(a):a);return N&&!(mc(a)&32768)&&mc(Oe)&32768?(Br(o,e.Diagnostics.Property_0_is_used_before_being_assigned,Ja(t)),a):f?Ru(Oe):Oe}function ZM(r,t,a){var o=r.valueDeclaration;if(!(!o||e.getSourceFileOfNode(t).isDeclarationFile)){var s,f=e.idText(a);Sx(t)&&!eb(o)&&!(e.isAccessExpression(t)&&e.isAccessExpression(t.expression))&&!af(o,a)&&(We.useDefineForClassFields||!$M(r))?s=Br(a,e.Diagnostics.Property_0_is_used_before_its_initialization,f):o.kind===256&&t.parent.kind!==177&&!(o.flags&8388608)&&!af(o,a)&&(s=Br(a,e.Diagnostics.Class_0_used_before_its_declaration,f)),s&&e.addRelatedInfo(s,e.createDiagnosticForNode(o,e.Diagnostics._0_is_declared_here,f))}}function Sx(r){return!!e.findAncestor(r,function(t){switch(t.kind){case 166:return!0;case 294:case 168:case 171:case 172:case 296:case 161:case 232:case 287:case 284:case 285:case 286:case 279:case 227:case 290:return!1;case 213:case 237:return e.isBlock(t.parent)&&e.isClassStaticBlockDeclaration(t.parent.parent)?!0:"quit";default:return e.isExpressionNode(t)?!1:"quit"}})}function $M(r){if(!(r.parent.flags&32))return!1;for(var t=En(r.parent);;){if(t=t.symbol&&eP(t),!t)return!1;var a=pi(t,r.escapedName);if(a&&a.valueDeclaration)return!0}}function eP(r){var t=Gs(r);if(t.length!==0)return To(t)}function Dx(r,t,a){var o,s;if(!e.isPrivateIdentifier(r)&&t.flags&1048576&&!(t.flags&131068))for(var f=0,N=t.types;f<N.length;f++){var U=N[f];if(!pi(U,r.escapedText)&&!Up(U,r.escapedText)){o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),pn(U));break}}if(Lx(r.escapedText,t)){var fe=e.declarationNameToString(r),Oe=pn(t);o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,fe,Oe,Oe+"."+fe)}else{var je=xv(t);if(je&&pi(je,r.escapedText))o=e.chainDiagnosticMessages(o,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(r),pn(t)),s=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_forget_to_use_await);else{var ze=e.declarationNameToString(r),tr=pn(t),_r=nP(ze,t);if(_r!==void 0)o=e.chainDiagnosticMessages(o,e.Diagnostics.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,ze,tr,_r);else{var Vr=hT(r,t);if(Vr!==void 0){var $r=e.symbolName(Vr),Tt=a?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;o=e.chainDiagnosticMessages(o,Tt,ze,tr,$r),s=Vr.valueDeclaration&&e.createDiagnosticForNode(Vr.valueDeclaration,e.Diagnostics._0_is_declared_here,$r)}else{var St=rP(t)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;o=e.chainDiagnosticMessages(as(o,t),St,ze,tr)}}}}var It=e.createDiagnosticForNodeFromMessageChain(r,o);s&&e.addRelatedInfo(It,s),Il(!a||o.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,It)}function rP(r){return We.lib&&!We.lib.includes("dom")&&D6(r,function(t){return t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName))})&&Sf(r)}function Lx(r,t){var a=t.symbol&&pi(En(t.symbol),r);return a!==void 0&&!!a.valueDeclaration&&e.isStatic(a.valueDeclaration)}function tP(r){for(var t=$l(r),a=e.getScriptTargetFeatures(),o=e.getOwnKeys(a),s=0,f=o;s<f.length;s++){var N=f[s],U=e.getOwnKeys(a[N]);if(U!==void 0&&e.contains(U,t))return N}}function nP(r,t){var a=Dn(t).symbol;if(!!a)for(var o=e.getScriptTargetFeatures(),s=e.getOwnKeys(o),f=0,N=s;f<N.length;f++){var U=N[f],fe=o[U],Oe=fe[e.symbolName(a)];if(Oe!==void 0&&e.contains(Oe,r))return U}}function Ax(r,t){return Yh(r,ro(t),106500)}function hT(r,t){var a=ro(t);if(typeof r!="string"){var o=r.parent;e.isPropertyAccessExpression(o)&&(a=e.filter(a,function(s){return Ix(o,t,s)})),r=e.idText(r)}return Yh(r,a,111551)}function Cx(r,t){var a=e.isString(r)?r:e.idText(r),o=ro(t),s=a==="for"?e.find(o,function(f){return e.symbolName(f)==="htmlFor"}):a==="class"?e.find(o,function(f){return e.symbolName(f)==="className"}):void 0;return s!=null?s:Yh(a,o,111551)}function yT(r,t){var a=hT(r,t);return a&&e.symbolName(a)}function bT(r,t,a){e.Debug.assert(t!==void 0,"outername should always be defined");var o=Vd(r,t,a,void 0,t,!1,!1,!0,function(s,f,N){e.Debug.assertEqual(t,f,"name should equal outerName");var U=Al(s,f,N);if(U)return U;var fe;if(s===kr){var Oe=e.mapDefined(["string","number","boolean","object","bigint","symbol"],function(je){return s.has(je.charAt(0).toUpperCase()+je.slice(1))?co(524288,je):void 0});fe=Oe.concat(e.arrayFrom(s.values()))}else fe=e.arrayFrom(s.values());return Yh(e.unescapeLeadingUnderscores(f),fe,N)});return o}function aP(r,t,a){var o=bT(r,t,a);return o&&e.symbolName(o)}function Yb(r,t){return t.exports&&Yh(e.idText(r),_d(t),2623475)}function iP(r,t){var a=Yb(r,t);return a&&e.symbolName(a)}function oP(r,t,a){function o(N){var U=Sd(r,N);if(U){var fe=em(En(U));return!!fe&&Pu(fe)>=1&&$i(a,Hc(fe,0))}return!1}var s=e.isAssignmentTarget(t)?"set":"get";if(!!o(s)){var f=e.tryGetPropertyAccessOrIdentifierToString(t.expression);return f===void 0?f=s:f+="."+s,f}}function sP(r,t){var a=t.types.filter(function(o){return!!(o.flags&128)});return e.getSpellingSuggestion(r.value,a,function(o){return o.value})}function Yh(r,t,a){return e.getSpellingSuggestion(r,t,o);function o(s){var f=e.symbolName(s);if(!e.startsWith(f,'"')){if(s.flags&a)return f;if(s.flags&2097152){var N=Lp(s);if(N&&N.flags&a)return f}}}}function Qh(r,t,a){var o=r&&r.flags&106500&&r.valueDeclaration;if(!!o){var s=e.hasEffectiveModifier(o,8),f=r.valueDeclaration&&e.isNamedDeclaration(r.valueDeclaration)&&e.isPrivateIdentifier(r.valueDeclaration.name);if(!(!s&&!f)&&!(t&&e.isWriteOnlyAccess(t)&&!(r.flags&65536))){if(a){var N=e.findAncestor(t,e.isFunctionLikeDeclaration);if(N&&N.symbol===r)return}(e.getCheckFlags(r)&1?Va(r).target:r).isReferenced=67108863}}}function xx(r,t){return r.kind===108||!!t&&e.isEntityNameExpression(r)&&t===wu(e.getFirstIdentifier(r))}function lP(r,t){switch(r.kind){case 205:return ET(r,r.expression.kind===106,t,Gl(fi(r.expression)));case 160:return ET(r,!1,t,Gl(fi(r.left)));case 199:return ET(r,!1,t,xa(r))}}function Ix(r,t,a){return TT(r,r.kind===205&&r.expression.kind===106,!1,t,a)}function ET(r,t,a,o){if(wa(o))return!0;var s=pi(o,a);return!!s&&TT(r,t,!1,o,s)}function TT(r,t,a,o,s){if(wa(o))return!0;if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var f=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(r)&&!!e.findAncestor(r,function(N){return N===f})}return _x(r,t,a,o,s)}function cP(r){var t=r.initializer;if(t.kind===254){var a=t.declarations[0];if(a&&!e.isBindingPattern(a.name))return xn(a)}else if(t.kind===79)return wu(t)}function uP(r){return Bs(r).length===1&&!!cu(r,Nt)}function fP(r){var t=e.skipParentheses(r);if(t.kind===79){var a=wu(t);if(a.flags&3)for(var o=r,s=r.parent;s;){if(s.kind===242&&o===s.statement&&cP(s)===a&&uP(rl(s.expression)))return!0;o=s,s=s.parent}}return!1}function dP(r,t){return r.flags&32?pP(r,t):Nx(r,Sg(r.expression),t)}function pP(r,t){var a=fi(r.expression),o=dv(a,r.expression);return Tb(Nx(r,pu(o,r.expression),t),r,o!==a)}function Nx(r,t,a){var o=e.getAssignmentTargetKind(r)!==0||bx(r)?Gl(t):t,s=r.argumentExpression,f=fi(s);if(Za(o)||o===bt)return o;if(MT(o)&&!e.isStringLiteralLike(s))return Br(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Qe;var N=fP(s)?Nt:f,U=e.isAssignmentTarget(r)?4|(z_(o)&&!kh(o)?2:0):32,fe=cp(o,N,U,r)||Qe;return RI(Tx(r,Zn(r).resolvedSymbol,fe,s,a),r)}function kx(r){return e.isCallOrNewExpression(r)||e.isTaggedTemplateExpression(r)||e.isJsxOpeningLikeElement(r)}function Pm(r){return kx(r)&&e.forEach(r.typeArguments,Ji),r.kind===209?fi(r.template):e.isJsxOpeningLikeElement(r)?fi(r.attributes):r.kind!==164&&e.forEach(r.arguments,function(t){fi(t)}),Eo}function Mu(r){return Pm(r),lo}function _P(r,t,a){var o,s,f=0,N,U=-1,fe;e.Debug.assert(!t.length);for(var Oe=0,je=r;Oe<je.length;Oe++){var ze=je[Oe],tr=ze.declaration&&xn(ze.declaration),_r=ze.declaration&&ze.declaration.parent;!s||tr===s?o&&_r===o?N=N+1:(o=_r,N=f):(N=f=t.length,o=_r),s=tr,pe(ze)?(U++,fe=U,f++):fe=N,t.splice(fe,0,a?Uy(ze,a):ze)}}function Qb(r){return!!r&&(r.kind===224||r.kind===231&&r.isSpread)}function Zb(r){return e.findIndex(r,Qb)}function Ox(r){return!!(r.flags&16384)}function mP(r){return!!(r.flags&49155)}function $b(r,t,a,o){o===void 0&&(o=!1);var s,f=!1,N=Cl(a),U=Pu(a);if(r.kind===209)if(s=t.length,r.template.kind===222){var fe=e.last(r.template.templateSpans);f=e.nodeIsMissing(fe.literal)||!!fe.literal.isUnterminated}else{var Oe=r.template;e.Debug.assert(Oe.kind===14),f=!!Oe.isUnterminated}else if(r.kind===164)s=Vx(r,a);else if(e.isJsxOpeningLikeElement(r)){if(f=r.attributes.end===r.end,f)return!0;s=U===0?t.length:1,N=t.length===0?N:1,U=Math.min(U,1)}else if(r.arguments){s=o?t.length+1:t.length,f=r.arguments.end===r.end;var je=Zb(t);if(je>=0)return je>=Pu(a)&&(Fu(a)||je<Cl(a))}else return e.Debug.assert(r.kind===208),Pu(a)===0;if(!Fu(a)&&s>N)return!1;if(f||s>=U)return!0;for(var ze=s;ze<U;ze++){var tr=Hc(a,ze);if(el(tr,e.isInJSFile(r)&&!Er?mP:Ox).flags&131072)return!1}return!0}function Rx(r,t){var a=e.length(r.typeParameters),o=uu(r.typeParameters);return!e.some(t)||t.length>=o&&t.length<=a}function em(r){return bv(r,0,!1)}function wx(r){return bv(r,0,!1)||bv(r,1,!1)}function bv(r,t,a){if(r.flags&524288){var o=Wc(r);if(a||o.properties.length===0&&o.indexInfos.length===0){if(t===0&&o.callSignatures.length===1&&o.constructSignatures.length===0)return o.callSignatures[0];if(t===1&&o.constructSignatures.length===1&&o.callSignatures.length===0)return o.constructSignatures[0]}}}function Mx(r,t,a,o){var s=pv(r.typeParameters,r,0,o),f=Tv(t),N=a&&(f&&f.flags&262144?a.nonFixingMapper:a.mapper),U=N?Cm(t,N):t;return N1(U,r,function(fe,Oe){Df(s.inferences,fe,Oe)}),a||k1(t,r,function(fe,Oe){Df(s.inferences,fe,Oe,128)}),Ch(r,V1(s),e.isInJSFile(t.declaration))}function gP(r,t,a,o){var s=Hb(t,r),f=Gm(r.attributes,s,o,a);return Df(o.inferences,f,s),V1(o)}function Px(r){if(!r)return Gn;var t=fi(r);return e.isOptionalChainRoot(r.parent)?Id(t):e.isOptionalChain(r.parent)?C1(t):t}function ST(r,t,a,o,s){if(e.isJsxOpeningLikeElement(r))return gP(r,t,o,s);if(r.kind!==164){var f=Ic(r,e.every(t.typeParameters,function(_i){return!!ee(_i)})?8:0);if(f){var N=hv(r),U=w1(Jw(N,1)),fe=ci(f,U),Oe=em(fe),je=Oe&&Oe.typeParameters?sg(O0(Oe,Oe.typeParameters)):fe,ze=_o(t);Df(s.inferences,je,ze,128);var tr=pv(t.typeParameters,t,s.flags),_r=ci(f,N&&N.returnMapper);Df(tr.inferences,_r,ze),s.returnMapper=e.some(tr.inferences,rm)?w1(Kw(tr)):void 0}}var Vr=Sv(t),$r=Vr?Math.min(Cl(t)-1,a.length):a.length;if(Vr&&Vr.flags&262144){var Tt=e.find(s.inferences,function(_i){return _i.typeParameter===Vr});Tt&&(Tt.impliedArity=e.findIndex(a,Qb,$r)<0?a.length-$r:void 0)}var St=E_(t);if(St){var It=Ux(r);Df(s.inferences,Px(It),St)}for(var jt=0;jt<$r;jt++){var In=a[jt];if(In.kind!==226){var sn=Hc(t,jt),ua=Gm(In,sn,s,o);Df(s.inferences,ua,sn)}}if(Vr){var la=DT(a,$r,a.length,Vr,s,o);Df(s.inferences,la,Vr)}return V1(s)}function Fx(r){return r.flags&1048576?ms(r,Fx):r.flags&1||yb(pl(r)||r)?r:ki(r)?ku(ho(r),r.target.elementFlags,!1,r.target.labeledElementDeclarations):ku([r],[8])}function DT(r,t,a,o,s,f){if(t>=a-1){var N=r[a-1];if(Qb(N))return Fx(N.kind===231?N.type:Gm(N.expression,o,s,f))}for(var U=[],fe=[],Oe=[],je=t;je<a;je++){var N=r[je];if(Qb(N)){var ze=N.kind===231?N.type:fi(N.expression);_p(ze)?(U.push(ze),fe.push(8)):(U.push(Od(33,ze,Rr,N.kind===224?N.expression:N)),fe.push(4))}else{var tr=Xl(o,Yf(je-t),256),_r=Gm(N,tr,s,f),Vr=Jo(tr,406978556);U.push(Vr?Ml(_r):zp(_r)),fe.push(1)}N.kind===231&&N.tupleNameSource&&Oe.push(N.tupleNameSource)}return ku(U,fe,!1,e.length(Oe)===e.length(U)?Oe:void 0)}function Gx(r,t,a,o){for(var s=e.isInJSFile(r.declaration),f=r.typeParameters,N=Wp(e.map(t,xa),f,uu(f),s),U,fe=0;fe<t.length;fe++){e.Debug.assert(f[fe]!==void 0,"Should not call checkTypeArguments with too many type arguments");var Oe=bl(f[fe]);if(Oe){var je=a&&o?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,ze=o||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;U||(U=Pl(f,N));var tr=N[fe];if(!Fl(tr,yl(ci(Oe,U),tr),a?t[fe]:void 0,ze,je))return}}return N}function Bx(r){if(Tg(r.tagName))return 2;var t=Dn(fi(r.tagName));return e.length(Li(t,1))?0:e.length(Li(t,0))?1:2}function vP(r,t,a,o,s,f,N){var U=Hb(t,r),fe=Gm(r.attributes,U,void 0,o);return Oe()&&u1(fe,U,a,s?r.tagName:void 0,r.attributes,void 0,f,N);function Oe(){var je;if(cT(r))return!0;var ze=e.isJsxOpeningElement(r)||e.isJsxSelfClosingElement(r)&&!Tg(r.tagName)?fi(r.tagName):void 0;if(!ze)return!0;var tr=Li(ze,0);if(!e.length(tr))return!0;var _r=kN(r);if(!_r)return!0;var Vr=fs(_r,111551,!0,!1,r);if(!Vr)return!0;var $r=En(Vr),Tt=Li($r,0);if(!e.length(Tt))return!0;for(var St=!1,It=0,jt=0,In=Tt;jt<In.length;jt++){var sn=In[jt],ua=Hc(sn,0),la=Li(ua,0);if(!!e.length(la))for(var _i=0,ka=la;_i<ka.length;_i++){var xi=ka[_i];if(St=!0,Fu(xi))return!0;var Bi=Cl(xi);Bi>It&&(It=Bi)}}if(!St)return!0;for(var Ii=1/0,Co=0,Ht=tr;Co<Ht.length;Co++){var Gt=Ht[Co],mn=Pu(Gt);mn<Ii&&(Ii=mn)}if(Ii<=It)return!0;if(s){var Oa=e.createDiagnosticForNode(r.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(r.tagName),Ii,e.entityNameToString(_r),It),Yn=(je=Jc(r.tagName))===null||je===void 0?void 0:je.valueDeclaration;Yn&&e.addRelatedInfo(Oa,e.createDiagnosticForNode(Yn,e.Diagnostics._0_is_declared_here,e.entityNameToString(r.tagName))),N&&N.skipLogging&&(N.errors||(N.errors=[])).push(Oa),N.skipLogging||fa.add(Oa)}return!1}}function Zh(r,t,a,o,s,f,N){var U={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(r))return vP(r,a,o,s,f,N,U)?void 0:(e.Debug.assert(!f||!!U.errors,"jsx should have errors when reporting errors"),U.errors||e.emptyArray);var fe=E_(a);if(fe&&fe!==Gn&&r.kind!==208){var Oe=Ux(r),je=Px(Oe),ze=f?Oe||r:void 0,tr=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!du(je,fe,o,ze,tr,N,U))return e.Debug.assert(!f||!!U.errors,"this parameter should have errors when reporting errors"),U.errors||e.emptyArray}for(var _r=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Vr=Sv(a),$r=Vr?Math.min(Cl(a)-1,t.length):t.length,Tt=0;Tt<$r;Tt++){var St=t[Tt];if(St.kind!==226){var It=Hc(a,Tt),jt=Gm(St,It,void 0,s),In=s&4?hg(jt):jt;if(!u1(In,It,o,f?St:void 0,St,_r,N,U))return e.Debug.assert(!f||!!U.errors,"parameter should have errors when reporting errors"),la(St,In,It),U.errors||e.emptyArray}}if(Vr){var sn=DT(t,$r,t.length,Vr,void 0,s),ua=t.length-$r,ze=f?ua===0?r:ua===1?t[$r]:e.setTextRangePosEnd($p(r,sn),t[$r].pos,t[t.length-1].end):void 0;if(!du(sn,Vr,o,ze,_r,void 0,U))return e.Debug.assert(!f||!!U.errors,"rest parameter should have errors when reporting errors"),la(ze,sn,Vr),U.errors||e.emptyArray}return;function la(_i,ka,xi){if(_i&&f&&U.errors&&U.errors.length){if(Cv(xi))return;var Bi=Cv(ka);Bi&&Zf(Bi,xi,o)&&e.addRelatedInfo(U.errors[0],e.createDiagnosticForNode(_i,e.Diagnostics.Did_you_forget_to_use_await))}}}function Ux(r){var t=r.kind===207?r.expression:r.kind===209?r.tag:void 0;if(t){var a=e.skipOuterExpressions(t);if(e.isAccessExpression(a))return a.expression}}function $p(r,t,a,o){var s=e.parseNodeFactory.createSyntheticExpression(t,a,o);return e.setTextRange(s,r),e.setParent(s,r),s}function LT(r){if(r.kind===209){var t=r.template,a=[$p(t,NR())];return t.kind===222&&e.forEach(t.templateSpans,function(fe){a.push(fe.expression)}),a}if(r.kind===164)return hP(r);if(e.isJsxOpeningLikeElement(r))return r.attributes.properties.length>0||e.isJsxOpeningElement(r)&&r.parent.children.length>0?[r.attributes]:e.emptyArray;var o=r.arguments||e.emptyArray,s=Zb(o);if(s>=0){for(var f=o.slice(0,s),N=function(fe){var Oe=o[fe],je=Oe.kind===224&&(Qa?fi(Oe.expression):Cs(Oe.expression));je&&ki(je)?e.forEach(ho(je),function(ze,tr){var _r,Vr=je.target.elementFlags[tr],$r=$p(Oe,Vr&4?Js(ze):ze,!!(Vr&12),(_r=je.target.labeledElementDeclarations)===null||_r===void 0?void 0:_r[tr]);f.push($r)}):f.push(Oe)},U=s;U<o.length;U++)N(U);return f}return o}function hP(r){var t=r.parent,a=r.expression;switch(t.kind){case 256:case 225:return[$p(a,En(xn(t)))];case 163:var o=t.parent;return[$p(a,t.parent.kind===170?En(xn(o)):Qe),$p(a,ke),$p(a,Nt)];case 166:case 168:case 171:case 172:var s=t.kind!==166&&Ne!==0;return[$p(a,o7(t)),$p(a,s7(t)),$p(a,s?$L(e_(t)):ke)]}return e.Debug.fail()}function Vx(r,t){switch(r.parent.kind){case 256:case 225:return 1;case 166:return 2;case 168:case 171:case 172:return Ne===0||t.parameters.length<=2?2:3;case 163:return 3;default:return e.Debug.fail()}}function Wx(r,t){var a,o,s=e.getSourceFileOfNode(r);if(e.isPropertyAccessExpression(r.expression)){var f=e.getErrorSpanForNode(s,r.expression.name);a=f.start,o=t?f.length:r.end-a}else{var N=e.getErrorSpanForNode(s,r.expression);a=N.start,o=t?N.length:r.end-a}return{start:a,length:o,sourceFile:s}}function eE(r,t,a,o,s,f){if(e.isCallExpression(r)){var N=Wx(r),U=N.sourceFile,fe=N.start,Oe=N.length;return e.createFileDiagnostic(U,fe,Oe,t,a,o,s,f)}else return e.createDiagnosticForNode(r,t,a,o,s,f)}function yP(r){if(!e.isCallExpression(r)||!e.isIdentifier(r.expression))return!1;var t=Ho(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),a=t==null?void 0:t.valueDeclaration;if(!a||!e.isParameter(a)||!e.isFunctionExpressionOrArrowFunction(a.parent)||!e.isNewExpression(a.parent.parent)||!e.isIdentifier(a.parent.parent.expression))return!1;var o=F0(!1);if(!o)return!1;var s=Jc(a.parent.parent.expression,!0);return s===o}function jx(r,t,a){var o,s=Zb(a);if(s>-1)return e.createDiagnosticForNode(a[s],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var f=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,U=Number.NEGATIVE_INFINITY,fe=Number.POSITIVE_INFINITY,Oe,je=0,ze=t;je<ze.length;je++){var tr=ze[je],_r=Pu(tr),Vr=Cl(tr);_r<f&&(f=_r,Oe=tr),N=Math.max(N,Vr),_r<a.length&&_r>U&&(U=_r),a.length<Vr&&Vr<fe&&(fe=Vr)}var $r=e.some(t,Fu),Tt=$r?f:f<N?f+"-"+N:f,St=$r?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:Tt===1&&a.length===0&&yP(r)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(f<a.length&&a.length<N)return eE(r,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,a.length,U,fe);if(a.length<f){var It=eE(r,St,Tt,a.length),jt=(o=Oe==null?void 0:Oe.declaration)===null||o===void 0?void 0:o.parameters[Oe.thisParameter?a.length+1:a.length];if(jt){var In=e.createDiagnosticForNode(jt,e.isBindingPattern(jt.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(jt)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,jt.name?e.isBindingPattern(jt.name)?void 0:e.idText(e.getFirstIdentifier(jt.name)):a.length);return e.addRelatedInfo(It,In)}return It}else{var sn=e.factory.createNodeArray(a.slice(N)),ua=e.first(sn).pos,la=e.last(sn).end;return la===ua&&la++,e.setTextRangePosEnd(sn,ua,la),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),sn,St,Tt,a.length)}}function bP(r,t,a){var o=a.length;if(t.length===1){var s=t[0],f=uu(s.typeParameters),N=e.length(s.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),a,e.Diagnostics.Expected_0_type_arguments_but_got_1,f<N?f+"-"+N:f,o)}for(var U=-1/0,fe=1/0,Oe=0,je=t;Oe<je.length;Oe++){var s=je[Oe],ze=uu(s.typeParameters),N=e.length(s.typeParameters);ze>o?fe=Math.min(fe,ze):N<o&&(U=Math.max(U,N))}return U!==-1/0&&fe!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),a,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,o,U,fe):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),a,e.Diagnostics.Expected_0_type_arguments_but_got_1,U===-1/0?fe:U,o)}function Dg(r,t,a,o,s,f){var N=r.kind===209,U=r.kind===164,fe=e.isJsxOpeningLikeElement(r),Oe=!a&&_e,je;U||(je=r.typeArguments,(N||fe||r.expression.kind!==106)&&e.forEach(je,Ji));var ze=a||[];if(_P(t,ze,s),!ze.length)return Oe&&fa.add(eE(r,e.Diagnostics.Call_target_does_not_contain_any_signatures)),Mu(r);var tr=LT(r),_r=ze.length===1&&!ze[0].typeParameters,Vr=!U&&!_r&&e.some(tr,fu)?4:0,$r,Tt,St,It,jt=!!(o&16)&&r.kind===207&&r.arguments.hasTrailingComma;if(ze.length>1&&(It=Tn(ze,en,_r,jt)),It||(It=Tn(ze,Un,_r,jt)),It)return It;if(Oe)if($r)if($r.length===1||$r.length>3){var In=$r[$r.length-1],sn;$r.length>3&&(sn=e.chainDiagnosticMessages(sn,e.Diagnostics.The_last_overload_gave_the_following_error),sn=e.chainDiagnosticMessages(sn,e.Diagnostics.No_overload_matches_this_call));var ua=Zh(r,tr,In,Un,0,!0,function(){return sn});if(ua)for(var la=0,_i=ua;la<_i.length;la++){var ka=_i[la];In.declaration&&$r.length>3&&e.addRelatedInfo(ka,e.createDiagnosticForNode(In.declaration,e.Diagnostics.The_last_overload_is_declared_here)),jn(In,ka),fa.add(ka)}else e.Debug.fail("No error for last overload signature")}else{for(var xi=[],Bi=0,Ii=Number.MAX_VALUE,Co=0,Ht=0,Gt=function(Fn){var Qr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,Ht+1,ze.length,Tc(Fn))},at=Zh(r,tr,Fn,Un,0,!0,Qr);at?(at.length<=Ii&&(Ii=at.length,Co=Ht),Bi=Math.max(Bi,at.length),xi.push(at)):e.Debug.fail("No error for 3 or fewer overload signatures"),Ht++},mn=0,Oa=$r;mn<Oa.length;mn++){var Yn=Oa[mn];Gt(Yn)}var Ba=Bi>1?xi[Co]:e.flatten(xi);e.Debug.assert(Ba.length>0,"No errors reported for 3 or fewer overload signatures");var Di=e.chainDiagnosticMessages(e.map(Ba,function(Fn){return typeof Fn.messageText=="string"?Fn:Fn.messageText}),e.Diagnostics.No_overload_matches_this_call),Pi=Bt([],e.flatMap(Ba,function(Fn){return Fn.relatedInformation}),!0),Hn=void 0;if(e.every(Ba,function(Fn){return Fn.start===Ba[0].start&&Fn.length===Ba[0].length&&Fn.file===Ba[0].file})){var Gi=Ba[0],Kr=Gi.file,Dr=Gi.start,yn=Gi.length;Hn={file:Kr,start:Dr,length:yn,code:Di.code,category:Di.category,messageText:Di,relatedInformation:Pi}}else Hn=e.createDiagnosticForNodeFromMessageChain(r,Di,Pi);jn($r[0],Hn),fa.add(Hn)}else if(Tt)fa.add(jx(r,[Tt],tr));else if(St)Gx(St,r.typeArguments,!0,f);else{var on=e.filter(t,function(Fn){return Rx(Fn,je)});on.length===0?fa.add(bP(r,t,je)):U?f&&fa.add(eE(r,f)):fa.add(jx(r,on,tr))}return EP(r,ze,tr,!!a);function jn(Fn,Qr){var at,Ft,Vt=$r,Qt=Tt,gn=St,Sa=((Ft=(at=Fn.declaration)===null||at===void 0?void 0:at.symbol)===null||Ft===void 0?void 0:Ft.declarations)||e.emptyArray,ga=Sa.length>1,za=ga?e.find(Sa,function(yo){return e.isFunctionLikeDeclaration(yo)&&e.nodeIsPresent(yo.body)}):void 0;if(za){var Hi=Iu(za),Ya=!Hi.typeParameters;Tn([Hi],Un,Ya)&&e.addRelatedInfo(Qr,e.createDiagnosticForNode(za,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}$r=Vt,Tt=Qt,St=gn}function Tn(Fn,Qr,at,Ft){if(Ft===void 0&&(Ft=!1),$r=void 0,Tt=void 0,St=void 0,at){var Vt=Fn[0];if(e.some(je)||!$b(r,tr,Vt,Ft))return;if(Zh(r,tr,Vt,Qr,0,!1,void 0)){$r=[Vt];return}return Vt}for(var Qt=0;Qt<Fn.length;Qt++){var Vt=Fn[Qt];if(!(!Rx(Vt,je)||!$b(r,tr,Vt,Ft))){var gn=void 0,Sa=void 0;if(Vt.typeParameters){var ga=void 0;if(e.some(je)){if(ga=Gx(Vt,je,!1),!ga){St=Vt;continue}}else Sa=pv(Vt.typeParameters,Vt,e.isInJSFile(r)?2:0),ga=ST(r,Vt,tr,Vr|8,Sa),Vr|=Sa.flags&4?8:0;if(gn=Ch(Vt,ga,e.isInJSFile(Vt.declaration),Sa&&Sa.inferredTypeParameters),Sv(Vt)&&!$b(r,tr,gn,Ft)){Tt=gn;continue}}else gn=Vt;if(Zh(r,tr,gn,Qr,Vr,!1,void 0)){($r||($r=[])).push(gn);continue}if(Vr){if(Vr=0,Sa){var ga=ST(r,Vt,tr,Vr,Sa);if(gn=Ch(Vt,ga,e.isInJSFile(Vt.declaration),Sa&&Sa.inferredTypeParameters),Sv(Vt)&&!$b(r,tr,gn,Ft)){Tt=gn;continue}}if(Zh(r,tr,gn,Qr,Vr,!1,void 0)){($r||($r=[])).push(gn);continue}}return Fn[Qt]=gn,gn}}}}function EP(r,t,a,o){return e.Debug.assert(t.length>0),Rv(r),o||t.length===1||t.some(function(s){return!!s.typeParameters})?DP(r,t,a):TP(t)}function TP(r){var t=e.mapDefined(r,function(tr){return tr.thisParameter}),a;t.length&&(a=Hx(t,t.map(Ev)));for(var o=e.minAndMax(r,SP),s=o.min,f=o.max,N=[],U=function(tr){var _r=e.mapDefined(r,function(Vr){return Y(Vr)?tr<Vr.parameters.length-1?Vr.parameters[tr]:e.last(Vr.parameters):tr<Vr.parameters.length?Vr.parameters[tr]:void 0});e.Debug.assert(_r.length!==0),N.push(Hx(_r,e.mapDefined(r,function(Vr){return k_(Vr,tr)})))},fe=0;fe<f;fe++)U(fe);var Oe=e.mapDefined(r,function(tr){return Y(tr)?e.last(tr.parameters):void 0}),je=0;if(Oe.length!==0){var ze=Js(ha(e.mapDefined(r,CL),2));N.push(Jx(Oe,ze)),je|=1}return r.some(pe)&&(je|=2),Cu(r[0].declaration,void 0,a,N,To(r.map(_o)),void 0,s,je)}function SP(r){var t=r.parameters.length;return Y(r)?t-1:t}function Hx(r,t){return Jx(r,ha(t,2))}function Jx(r,t){return Z_(e.first(r),t)}function DP(r,t,a){var o=CP(t,Sr===void 0?a.length:Sr),s=t[o],f=s.typeParameters;if(!f)return s;var N=kx(r)?r.typeArguments:void 0,U=N?rb(s,LP(N,f,e.isInJSFile(r))):AP(r,f,s,a);return t[o]=U,U}function LP(r,t,a){for(var o=r.map(e_);o.length>t.length;)o.pop();for(;o.length<t.length;)o.push(bl(t[o.length])||U1(a));return o}function AP(r,t,a,o){var s=pv(t,a,e.isInJSFile(r)?2:0),f=ST(r,a,o,12,s);return rb(a,f)}function CP(r,t){for(var a=-1,o=-1,s=0;s<r.length;s++){var f=r[s],N=Cl(f);if(Fu(f)||N>=t)return s;N>o&&(o=N,a=s)}return a}function xP(r,t,a){if(r.expression.kind===106){var o=Q1(r.expression);if(wa(o)){for(var s=0,f=r.arguments;s<f.length;s++){var N=f[s];fi(N)}return Eo}if(!Za(o)){var U=e.getEffectiveBaseTypeNode(e.getContainingClass(r));if(U){var fe=Ym(o,U.typeArguments,U);return Dg(r,fe,t,a,0)}}return Pm(r)}var Oe,je=fi(r.expression);if(e.isCallChain(r)){var ze=dv(je,r.expression);Oe=ze===je?0:e.isOutermostOptionalChain(r)?16:8,je=ze}else Oe=0;if(je=gx(je,r.expression,zM),je===bt)return ts;var tr=Dn(je);if(Za(tr))return Mu(r);var _r=Li(tr,0),Vr=Li(tr,1).length;if(rE(je,tr,_r.length,Vr))return!Za(je)&&r.typeArguments&&Br(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Pm(r);if(!_r.length){if(Vr)Br(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,pn(je));else{var $r=void 0;if(r.arguments.length===1){var Tt=e.getSourceFileOfNode(r).text;e.isLineBreak(Tt.charCodeAt(e.skipTrivia(Tt,r.expression.end,!0)-1))&&($r=e.createDiagnosticForNode(r.expression,e.Diagnostics.Are_you_missing_a_semicolon))}CT(r.expression,tr,0,$r)}return Mu(r)}return a&8&&!r.typeArguments&&_r.some(IP)?(SI(r,a),So):_r.some(function(St){return e.isInJSFile(St.declaration)&&!!e.getJSDocClassTag(St.declaration)})?(Br(r,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,pn(je)),Mu(r)):Dg(r,_r,t,a,Oe)}function IP(r){return!!(r.typeParameters&&uS(_o(r)))}function rE(r,t,a,o){return wa(r)||wa(t)&&!!(r.flags&262144)||!a&&!o&&!(t.flags&1048576)&&!(to(t).flags&131072)&&$i(r,Fe)}function NP(r,t,a){if(r.arguments&&Ne<1){var o=Zb(r.arguments);o>=0&&Br(r.arguments[o],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=Sg(r.expression);if(s===bt)return ts;if(s=Dn(s),Za(s))return Mu(r);if(wa(s))return r.typeArguments&&Br(r,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Pm(r);var f=Li(s,1);if(f.length){if(!kP(r,f[0]))return Mu(r);if(f.some(function(Oe){return Oe.flags&4}))return Br(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Mu(r);var N=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return N&&e.hasSyntacticModifier(N,128)?(Br(r,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Mu(r)):Dg(r,f,t,a,0)}var U=Li(s,0);if(U.length){var fe=Dg(r,U,t,a,0);return sr||(fe.declaration&&!_u(fe.declaration)&&_o(fe)!==Gn&&Br(r,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),E_(fe)===Gn&&Br(r,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),fe}return CT(r.expression,s,1),Mu(r)}function AT(r,t){var a=Gs(t);if(!e.length(a))return!1;var o=a[0];if(o.flags&2097152){for(var s=o.types,f=ym(s),N=0,U=0,fe=o.types;U<fe.length;U++){var Oe=fe[U];if(!f[N]&&e.getObjectFlags(Oe)&3&&(Oe.symbol===r||AT(r,Oe)))return!0;N++}return!1}return o.symbol===r?!0:AT(r,o)}function kP(r,t){if(!t||!t.declaration)return!0;var a=t.declaration,o=e.getSelectedEffectiveModifierFlags(a,24);if(!o||a.kind!==170)return!0;var s=e.getClassLikeDeclarationOfSymbol(a.parent.symbol),f=vo(a.parent.symbol);if(!oS(r,s)){var N=e.getContainingClass(r);if(N&&o&16){var U=e_(N);if(AT(a.parent.symbol,U))return!0}return o&8&&Br(r,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,pn(f)),o&16&&Br(r,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,pn(f)),!1}return!0}function Kx(r,t,a){var o,s=a===0,f=tm(t),N=f&&Li(f,a).length>0;if(t.flags&1048576){for(var U=t.types,fe=!1,Oe=0,je=U;Oe<je.length;Oe++){var ze=je[Oe],tr=Li(ze,a);if(tr.length!==0){if(fe=!0,o)break}else if(o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,pn(ze)),o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,pn(t))),fe)break}fe||(o=e.chainDiagnosticMessages(void 0,s?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,pn(t))),o||(o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,pn(t)))}else o=e.chainDiagnosticMessages(o,s?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,pn(t));var _r=s?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(r.parent)&&r.parent.arguments.length===0){var Vr=Zn(r).resolvedSymbol;Vr&&Vr.flags&32768&&(_r=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(o,_r),relatedMessage:N?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function CT(r,t,a,o){var s=Kx(r,t,a),f=s.messageChain,N=s.relatedMessage,U=e.createDiagnosticForNodeFromMessageChain(r,f);if(N&&e.addRelatedInfo(U,e.createDiagnosticForNode(r,N)),e.isCallExpression(r.parent)){var fe=Wx(r.parent,!0),Oe=fe.start,je=fe.length;U.start=Oe,U.length=je}fa.add(U),zx(t,a,o?e.addRelatedInfo(U,o):U)}function zx(r,t,a){if(!!r.symbol){var o=Va(r.symbol).originatingImport;if(o&&!e.isImportCall(o)){var s=Li(En(Va(r.symbol).target),t);if(!s||!s.length)return;e.addRelatedInfo(a,e.createDiagnosticForNode(o,e.Diagnostics.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 OP(r,t,a){var o=fi(r.tag),s=Dn(o);if(Za(s))return Mu(r);var f=Li(s,0),N=Li(s,1).length;if(rE(o,s,f.length,N))return Pm(r);if(!f.length){if(e.isArrayLiteralExpression(r.parent)){var U=e.createDiagnosticForNode(r.tag,e.Diagnostics.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 fa.add(U),Mu(r)}return CT(r.tag,s,0),Mu(r)}return Dg(r,f,t,a,0)}function qx(r){switch(r.parent.kind){case 256:case 225:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 163:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 166:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 168:case 171:case 172:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}function RP(r,t,a){var o=fi(r.expression),s=Dn(o);if(Za(s))return Mu(r);var f=Li(s,0),N=Li(s,1).length;if(rE(o,s,f.length,N))return Pm(r);if(MP(r,f)){var U=e.getTextOfNode(r.expression,!1);return Br(r,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,U),Mu(r)}var fe=qx(r);if(!f.length){var Oe=Kx(r.expression,s,0),je=e.chainDiagnosticMessages(Oe.messageChain,fe),ze=e.createDiagnosticForNodeFromMessageChain(r.expression,je);return Oe.relatedMessage&&e.addRelatedInfo(ze,e.createDiagnosticForNode(r.expression,Oe.relatedMessage)),fa.add(ze),zx(s,0,ze),Mu(r)}return Dg(r,f,t,a,0,fe)}function tE(r,t){var a=Mm(r),o=a&&il(a),s=o&&Al(o,b.Element,788968),f=s&&Cr.symbolToEntityName(s,788968,r),N=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,Cr.typeToTypeNode(t,r))],f?e.factory.createTypeReferenceNode(f,void 0):e.factory.createKeywordTypeNode(130)),U=co(1,"props");return U.type=t,Cu(N,void 0,void 0,[U],s?vo(s):Qe,void 0,1,0)}function wP(r,t,a){if(Tg(r.tagName)){var o=fx(r),s=tE(r,o);return pp(Gm(r.attributes,Hb(s,r),void 0,0),o,r.tagName,r.attributes),e.length(r.typeArguments)&&(e.forEach(r.typeArguments,Ji),fa.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(r),r.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(r.typeArguments)))),s}var f=fi(r.tagName),N=Dn(f);if(Za(N))return Mu(r);var U=cx(f,r);return rE(f,N,U.length,0)?Pm(r):U.length===0?(Br(r.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(r.tagName)),Mu(r)):Dg(r,U,t,a,0)}function MP(r,t){return t.length&&e.every(t,function(a){return a.minArgumentCount===0&&!Y(a)&&a.parameters.length<Vx(r,a)})}function PP(r,t,a){switch(r.kind){case 207:return xP(r,t,a);case 208:return NP(r,t,a);case 209:return OP(r,t,a);case 164:return RP(r,t,a);case 279:case 278:return wP(r,t,a)}throw e.Debug.assertNever(r,"Branch in 'resolveSignature' should be unreachable.")}function Lg(r,t,a){var o=Zn(r),s=o.resolvedSignature;if(s&&s!==So&&!t)return s;o.resolvedSignature=So;var f=PP(r,t,a||0);return f!==So&&(o.resolvedSignature=bi===Qa?f:s),f}function _u(r){var t;if(!r||!e.isInJSFile(r))return!1;var a=e.isFunctionDeclaration(r)||e.isFunctionExpression(r)?r:e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionExpression(r.initializer)?r.initializer:void 0;if(a){if(e.getJSDocClassTag(r))return!0;var o=xn(a);return!!(!((t=o==null?void 0:o.members)===null||t===void 0)&&t.size)}return!1}function xT(r,t){var a,o;if(t){var s=Va(t);if(!s.inferredClassSymbol||!s.inferredClassSymbol.has(d(r))){var f=e.isTransientSymbol(r)?r:ld(r);return f.exports=f.exports||e.createSymbolTable(),f.members=f.members||e.createSymbolTable(),f.flags|=t.flags&32,!((a=t.exports)===null||a===void 0)&&a.size&&Ll(f.exports,t.exports),!((o=t.members)===null||o===void 0)&&o.size&&Ll(f.members,t.members),(s.inferredClassSymbol||(s.inferredClassSymbol=new e.Map)).set(d(f),f),f}return s.inferredClassSymbol.get(d(r))}}function FP(r){var t,a=r&&nE(r,!0),o=(t=a==null?void 0:a.exports)===null||t===void 0?void 0:t.get("prototype"),s=(o==null?void 0:o.valueDeclaration)&&GP(o.valueDeclaration);return s?xn(s):void 0}function nE(r,t){if(!!r.parent){var a,o;if(e.isVariableDeclaration(r.parent)&&r.parent.initializer===r){if(!e.isInJSFile(r)&&!(e.isVarConst(r.parent)&&e.isFunctionLikeDeclaration(r)))return;a=r.parent.name,o=r.parent}else if(e.isBinaryExpression(r.parent)){var s=r.parent,f=r.parent.operatorToken.kind;if(f===63&&(t||s.right===r))a=s.left,o=a;else if((f===56||f===60)&&(e.isVariableDeclaration(s.parent)&&s.parent.initializer===s?(a=s.parent.name,o=s.parent):e.isBinaryExpression(s.parent)&&s.parent.operatorToken.kind===63&&(t||s.parent.right===s)&&(a=s.parent.left,o=a),!a||!e.isBindableStaticNameExpression(a)||!e.isSameEntityName(a,s.left)))return}else t&&e.isFunctionDeclaration(r)&&(a=r.name,o=r);if(!(!o||!a||!t&&!e.getExpandoInitializer(r,e.isPrototypeAccess(a))))return xn(o)}}function GP(r){if(!r.parent)return!1;for(var t=r.parent;t&&t.kind===205;)t=t.parent;if(t&&e.isBinaryExpression(t)&&e.isPrototypeAccess(t.left)&&t.operatorToken.kind===63){var a=e.getInitializerOfBinaryExpression(t);return e.isObjectLiteralExpression(a)&&a}}function BP(r,t){var a;my(r,r.typeArguments)||RN(r.arguments);var o=Lg(r,void 0,t);if(o===So)return Ut;if(aE(o,r),r.expression.kind===106)return Gn;if(r.kind===208){var s=o.declaration;if(s&&s.kind!==170&&s.kind!==174&&s.kind!==179&&!e.isJSDocConstructSignature(s)&&!_u(s))return sr&&Br(r,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),ke}if(e.isInJSFile(r)&&$x(r))return LL(r.arguments[0]);var f=_o(o);if(f.flags&12288&&Xx(r))return n1(e.walkUpParenthesizedExpressions(r.parent));if(r.kind===207&&!r.questionDotToken&&r.parent.kind===237&&f.flags&16384&&Cc(o)){if(!e.isDottedName(r.expression))Br(r.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!Pb(r)){var N=Br(r.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);Wh(r.expression,N)}}if(e.isInJSFile(r)){var U=nE(r,!1);if(!((a=U==null?void 0:U.exports)===null||a===void 0)&&a.size){var fe=es(U,U.exports,e.emptyArray,e.emptyArray,e.emptyArray);return fe.objectFlags|=8192,To([f,fe])}}return f}function aE(r,t){if(r.declaration&&r.declaration.flags&134217728){var a=$h(t),o=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(t));sd(a,r.declaration,o,Tc(r))}}function $h(r){switch(r=e.skipParentheses(r),r.kind){case 207:case 164:case 208:return $h(r.expression);case 209:return $h(r.tag);case 279:case 278:return $h(r.tagName);case 206:return r.argumentExpression;case 205:return r.name;case 177:var t=r;return e.isQualifiedName(t.typeName)?t.typeName.right:t;default:return r}}function Xx(r){if(!e.isCallExpression(r))return!1;var t=r.expression;if(e.isPropertyAccessExpression(t)&&t.name.escapedText==="for"&&(t=t.expression),!e.isIdentifier(t)||t.escapedText!=="Symbol")return!1;var a=qL(!1);return a?a===Ho(t,"Symbol",111551,void 0,void 0,!1):!1}function UP(r){if(RN(r.arguments)||AF(r),r.arguments.length===0)return ty(r,ke);for(var t=r.arguments[0],a=Cs(t),o=r.arguments.length>1?Cs(r.arguments[1]):void 0,s=2;s<r.arguments.length;++s)Cs(r.arguments[s]);if((a.flags&32768||a.flags&65536||!$i(a,pt))&&Br(t,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,pn(a)),o){var f=zL(!0);f!==Qn&&Fl(o,Eb(f,32768),r.arguments[1])}var N=Ys(r,t);if(N){var U=Eu(N,t,!0,!1);if(U)return ty(r,Qx(En(U),U,N,t)||Zx(En(U),U,N,t))}return ty(r,ke)}function Yx(r,t,a){var o=e.createSymbolTable(),s=co(2097152,"default");return s.parent=t,s.nameType=xc("default"),s.target=wo(r),o.set("default",s),es(a,o,e.emptyArray,e.emptyArray,e.emptyArray)}function Qx(r,t,a,o){var s=Of(o);if(s&&r&&!Za(r)){var f=r;if(!f.defaultOnlyType){var N=Yx(t,a);f.defaultOnlyType=N}return f.defaultOnlyType}}function Zx(r,t,a,o){var s;if(gr&&r&&!Za(r)){var f=r;if(!f.syntheticType){var N=(s=a.declarations)===null||s===void 0?void 0:s.find(e.isSourceFile),U=zd(N,a,!1,o);if(U){var fe=co(2048,"__type"),Oe=Yx(t,a,fe);fe.type=Oe,f.syntheticType=Eg(r)?Jp(r,Oe,fe,0,!1):Oe}else f.syntheticType=r}return f.syntheticType}return r}function $x(r){if(!e.isRequireCall(r,!0))return!1;if(!e.isIdentifier(r.expression))return e.Debug.fail();var t=Ho(r.expression,r.expression.escapedText,111551,void 0,void 0,!0);if(t===Je)return!0;if(t.flags&2097152)return!1;var a=t.flags&16?255:t.flags&3?253:0;if(a!==0){var o=e.getDeclarationOfKind(t,a);return!!o&&!!(o.flags&8388608)}return!1}function VP(r){X7(r)||my(r,r.typeArguments),Ne<2&&tl(r,262144);var t=Lg(r);return aE(t,r),_o(t)}function WP(r){if(r.kind===210){var t=e.getSourceFileOfNode(r);t&&e.fileExtensionIsOneOf(t.fileName,[".cts",".mts"])&&cn(r,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return rI(r,r.type,r.expression)}function eI(r){switch(r.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 203:case 204:case 222:return!0;case 211:return eI(r.expression);case 218:var t=r.operator,a=r.operand;return t===40&&(a.kind===8||a.kind===9)||t===39&&a.kind===8;case 205:case 206:var o=r.expression,s=e_(o).symbol;return s&&s.flags&2097152&&(s=Go(s)),!!(s&&s.flags&384&&Mo(s)===1)}return!1}function rI(r,t,a,o){var s=fi(a,o);if(e.isConstTypeReference(t))return eI(a)||Br(a,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),Ml(s);Ji(t),s=hg(Ru(s));var f=xa(t);if(_e&&!Za(f)){var N=Gl(s);_g(f,N)||jA(s,f,r,e.Diagnostics.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)}return f}function jP(r){var t=fi(r.expression),a=dv(t,r.expression);return Tb(Id(a),r,a!==t)}function HP(r){return r.flags&32?jP(r):Id(fi(r.expression))}function JP(r){return pF(r),r.keywordToken===103?IT(r):r.keywordToken===100?KP(r):e.Debug.assertNever(r.keywordToken)}function tI(r){switch(r.keywordToken){case 100:return kR();case 103:var t=IT(r);return Za(t)?Qe:QP(t);default:e.Debug.assertNever(r.keywordToken)}}function IT(r){var t=e.getNewTargetContainer(r);if(t)if(t.kind===170){var a=xn(t.parent);return En(a)}else{var a=xn(t);return En(a)}else return Br(r,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Qe}function KP(r){ve===e.ModuleKind.Node12||ve===e.ModuleKind.NodeNext?e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.ESNext&&Br(r,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ve<e.ModuleKind.ES2020&&ve!==e.ModuleKind.System&&Br(r,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node12_or_nodenext);var t=e.getSourceFileOfNode(r);return e.Debug.assert(!!(t.flags&2097152),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?KL():Qe}function Ev(r){var t=En(r);if(Er){var a=r.valueDeclaration;if(a&&e.hasInitializer(a))return $f(t)}return t}function iE(r){return e.Debug.assert(e.isIdentifier(r.name)),r.name.escapedText}function Ag(r,t,a){var o=r.parameters.length-(Y(r)?1:0);if(t<o)return r.parameters[t].escapedName;var s=r.parameters[o]||cr,f=a||En(s);if(ki(f)){var N=f.target.labeledElementDeclarations,U=t-o;return N&&iE(N[U])||s.escapedName+"_"+U}return s.escapedName}function zP(r,t){var a=r.parameters.length-(Y(r)?1:0);if(t<a){var o=r.parameters[t];return nI(o)?[o.escapedName,!1]:void 0}var s=r.parameters[a]||cr;if(!!nI(s)){var f=En(s);if(ki(f)){var N=f.target.labeledElementDeclarations,U=t-a,fe=N==null?void 0:N[U],Oe=!!(fe!=null&&fe.dotDotDotToken);return fe?[iE(fe),Oe]:void 0}if(t===a)return[s.escapedName,!0]}}function nI(r){return r.valueDeclaration&&e.isParameter(r.valueDeclaration)&&e.isIdentifier(r.valueDeclaration.name)}function aI(r){return r.kind===196||e.isParameter(r)&&r.name&&e.isIdentifier(r.name)}function qP(r,t){var a=r.parameters.length-(Y(r)?1:0);if(t<a){var o=r.parameters[t].valueDeclaration;return o&&aI(o)?o:void 0}var s=r.parameters[a]||cr,f=En(s);if(ki(f)){var N=f.target.labeledElementDeclarations,U=t-a;return N&&N[U]}return s.valueDeclaration&&aI(s.valueDeclaration)?s.valueDeclaration:void 0}function Hc(r,t){return k_(r,t)||ke}function k_(r,t){var a=r.parameters.length-(Y(r)?1:0);if(t<a)return Ev(r.parameters[t]);if(Y(r)){var o=En(r.parameters[a]),s=t-a;if(!ki(o)||o.target.hasRestElement||s<o.target.fixedLength)return Xl(o,Yf(s))}}function Cg(r,t){var a=Cl(r),o=Pu(r),s=Tv(r);if(s&&t>=a-1)return t===a-1?s:Js(Xl(s,Nt));for(var f=[],N=[],U=[],fe=t;fe<a;fe++){!s||fe<a-1?(f.push(Hc(r,fe)),N.push(fe<o?1:2)):(f.push(s),N.push(8));var Oe=qP(r,fe);Oe&&U.push(Oe)}return ku(f,N,!1,e.length(U)===e.length(f)?U:void 0)}function Cl(r){var t=r.parameters.length;if(Y(r)){var a=En(r.parameters[t-1]);if(ki(a))return t+a.target.fixedLength-(a.target.hasRestElement?0:1)}return t}function Pu(r,t){var a=t&1,o=t&2;if(o||r.resolvedMinArgumentCount===void 0){var s=void 0;if(Y(r)){var f=En(r.parameters[r.parameters.length-1]);if(ki(f)){var N=e.findIndex(f.target.elementFlags,function(je){return!(je&1)}),U=N<0?f.target.fixedLength:N;U>0&&(s=r.parameters.length-1+U)}}if(s===void 0){if(!a&&r.flags&32)return 0;s=r.minArgumentCount}if(o)return s;for(var fe=s-1;fe>=0;fe--){var Oe=Hc(r,fe);if(el(Oe,Ox).flags&131072)break;s=fe}r.resolvedMinArgumentCount=s}return r.resolvedMinArgumentCount}function Fu(r){if(Y(r)){var t=En(r.parameters[r.parameters.length-1]);return!ki(t)||t.target.hasRestElement}return!1}function Tv(r){if(Y(r)){var t=En(r.parameters[r.parameters.length-1]);if(!ki(t))return t;if(t.target.hasRestElement)return av(t,t.target.fixedLength)}}function Sv(r){var t=Tv(r);return t&&!$s(t)&&!wa(t)&&(to(t).flags&131072)===0?t:void 0}function NT(r){return kT(r,nn)}function kT(r,t){return r.parameters.length>0?Hc(r,0):t}function XP(r,t,a){for(var o=r.parameters.length-(Y(r)?1:0),s=0;s<o;s++){var f=r.parameters[s].valueDeclaration;if(f.type){var N=e.getEffectiveTypeAnnotationNode(f);N&&Df(a.inferences,xa(N),Hc(t,s))}}var U=Tv(t);if(U&&U.flags&262144){var fe=Cm(t,a.nonFixingMapper);iI(r,fe);var Oe=Cl(t)-1;Df(a.inferences,Cg(r,Oe),U)}}function iI(r,t){if(t.typeParameters)if(!r.typeParameters)r.typeParameters=t.typeParameters;else return;if(t.thisParameter){var a=r.thisParameter;(!a||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(r.thisParameter=Z_(t.thisParameter,void 0)),ey(r.thisParameter,En(t.thisParameter)))}for(var o=r.parameters.length-(Y(r)?1:0),s=0;s<o;s++){var a=r.parameters[s];if(!e.getEffectiveTypeAnnotationNode(a.valueDeclaration)){var f=k_(t,s);ey(a,f)}}if(Y(r)){var a=e.last(r.parameters);if(e.isTransientSymbol(a)||!e.getEffectiveTypeAnnotationNode(a.valueDeclaration)){var f=Cg(t,o);ey(a,f)}}}function YP(r){r.thisParameter&&ey(r.thisParameter);for(var t=0,a=r.parameters;t<a.length;t++){var o=a[t];ey(o)}}function ey(r,t){var a=Va(r);if(!a.type){var o=r.valueDeclaration;a.type=t||su(o,!0),o.name.kind!==79&&(a.type===Be&&(a.type=Os(o.name)),oI(o.name))}}function oI(r){for(var t=0,a=r.elements;t<a.length;t++){var o=a[t];e.isOmittedExpression(o)||(o.name.kind===79?Va(xn(o)).type=__(o):oI(o.name))}}function ry(r){var t=Ih(!0);return t!==ya?(r=Nd(Nv(r))||Be,qf(t,[r])):Be}function sI(r){var t=YL(!0);return t!==ya?(r=Nd(Nv(r))||Be,qf(t,[r])):Be}function ty(r,t){var a=ry(t);return a===Be?(Br(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Qe):(F0(!0)||Br(r,e.isImportCall(r)?e.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),a)}function QP(r){var t=co(0,"NewTargetExpression"),a=co(4,"target",8);a.parent=t,a.type=r;var o=e.createSymbolTable([a]);return t.members=o,es(t,o,e.emptyArray,e.emptyArray,e.emptyArray)}function oE(r,t){if(!r.body)return Qe;var a=e.getFunctionFlags(r),o=(a&2)!==0,s=(a&1)!==0,f,N,U,fe=Gn;if(r.body.kind!==234)f=Cs(r.body,t&&t&-9),o&&(f=Nv(Iv(f,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(s){var Oe=dI(r,t);Oe?Oe.length>0&&(f=ha(Oe,2)):fe=nn;var je=ZP(r,t),ze=je.yieldTypes,tr=je.nextTypes;N=e.some(ze)?ha(ze,2):void 0,U=e.some(tr)?To(tr):void 0}else{var _r=dI(r,t);if(!_r)return a&2?ty(r,nn):nn;if(_r.length===0)return a&2?ty(r,Gn):Gn;f=ha(_r,2)}if(f||N||U){if(N&&Ab(r,N,3),f&&Ab(r,f,1),U&&Ab(r,U,2),f&&Ou(f)||N&&Ou(N)||U&&Ou(U)){var Vr=iT(r),$r=Vr?Vr===Iu(r)?s?void 0:f:Wb(_o(Vr),r):void 0;s?(N=L1(N,$r,0,o),f=L1(f,$r,1,o),U=L1(U,$r,2,o)):f=Rw(f,$r,o)}N&&(N=Gl(N)),f&&(f=Gl(f)),U&&(U=Gl(U))}return s?lI(N||nn,f||fe,U||QC(2,r)||Be,o):o?ry(f||fe):f||fe}function lI(r,t,a,o){var s=o?ko:Oo,f=s.getGlobalGeneratorType(!1);if(r=s.resolveIterationType(r,void 0)||Be,t=s.resolveIterationType(t,void 0)||Be,a=s.resolveIterationType(a,void 0)||Be,f===ya){var N=s.getGlobalIterableIteratorType(!1),U=N!==ya?QI(N,s):void 0,fe=U?U.returnType:ke,Oe=U?U.nextType:Rr;return $i(t,fe)&&$i(Oe,a)?N!==ya?nv(N,[r]):(s.getGlobalIterableIteratorType(!0),Qn):(s.getGlobalGeneratorType(!0),Qn)}return nv(f,[r,t,a])}function ZP(r,t){var a=[],o=[],s=(e.getFunctionFlags(r)&2)!==0;return e.forEachYieldExpression(r.body,function(f){var N=f.expression?fi(f.expression,t):zr;e.pushIfUnique(a,cI(f,N,ke,s));var U;if(f.asteriskToken){var fe=fy(N,s?19:17,f.expression);U=fe&&fe.nextType}else U=Ic(f);U&&e.pushIfUnique(o,U)}),{yieldTypes:a,nextTypes:o}}function cI(r,t,a,o){var s=r.expression||r,f=r.asteriskToken?Od(o?19:17,t,a,s):t;return o?tm(f,s,r.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):f}function OT(r,t,a,o){var s=0;if(o){for(var f=t;f<a.length;f++)s|=te.get(a[f])||32768;for(var f=r;f<t;f++)s&=~(te.get(a[f])||0);for(var f=0;f<r;f++)s|=te.get(a[f])||32768}else{for(var f=r;f<t;f++)s|=j.get(a[f])||128;for(var f=0;f<r;f++)s&=~(j.get(a[f])||0)}return s}function uI(r){var t=Zn(r);return t.isExhaustive!==void 0?t.isExhaustive:t.isExhaustive=$P(r)}function $P(r){if(r.expression.kind===215){var t=rl(r.expression.expression),a=RC(r,!1),o=OT(0,0,a,!0),s=pl(t)||t;return s.flags&3?(556800&o)===556800:!!(el(s,function(U){return(mp(U)&o)===o}).flags&131072)}var f=rl(r.expression);if(!Im(f))return!1;var N=Ob(r);return!N.length||e.some(N,kw)?!1:T6(ms(f,Ml),N)}function fI(r){return r.endFlowNode&&jh(r.endFlowNode)}function dI(r,t){var a=e.getFunctionFlags(r),o=[],s=fI(r),f=!1;if(e.forEachReturnStatement(r.body,function(N){var U=N.expression;if(U){var fe=Cs(U,t&&t&-9);a&2&&(fe=Nv(Iv(fe,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),fe.flags&131072&&(f=!0),e.pushIfUnique(o,fe)}else s=!0}),!(o.length===0&&!s&&(f||e3(r))))return Er&&o.length&&s&&!(_u(r)&&o.some(function(N){return N.symbol===r.symbol}))&&e.pushIfUnique(o,Rr),o}function e3(r){switch(r.kind){case 212:case 213:return!0;case 168:return r.parent.kind===204;default:return!1}}function RT(r,t){if(!!_e){var a=e.getFunctionFlags(r),o=t&&vE(t,a);if(!(o&&Jo(o,16385))&&!(r.kind===167||e.nodeIsMissing(r.body)||r.body.kind!==234||!fI(r))){var s=r.flags&512,f=e.getEffectiveReturnTypeNode(r)||r;if(o&&o.flags&131072)Br(f,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(o&&!s)Br(f,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(o&&Er&&!$i(Rr,o))Br(f,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(We.noImplicitReturns){if(!o){if(!s)return;var N=_o(Iu(r));if(aN(r,N))return}Br(f,e.Diagnostics.Not_all_code_paths_return_a_value)}}}}function pI(r,t){if(e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r)),Rv(r),e.isFunctionExpression(r)&&kg(r,r.name),t&&t&4&&fu(r)){if(!e.getEffectiveReturnTypeNode(r)&&!e.hasContextSensitiveParameters(r)){var a=zh(r);if(a&&_v(_o(a))){var o=Zn(r);if(o.contextFreeType)return o.contextFreeType;var s=oE(r,t),f=Cu(void 0,void 0,void 0,e.emptyArray,s,void 0,0,0),N=es(r.symbol,ce,[f],e.emptyArray,e.emptyArray);return N.objectFlags|=524288,o.contextFreeType=N}}return $a}var U=xE(r);return!U&&r.kind===212&&_S(r),r3(r,t),En(xn(r))}function r3(r,t){var a=Zn(r);if(!(a.flags&1024)){var o=zh(r);if(!(a.flags&1024)){a.flags|=1024;var s=e.firstOrUndefined(Li(En(xn(r)),0));if(!s)return;if(fu(r))if(o){var f=hv(r);t&&t&2&&XP(s,o,f);var N=f?Cm(o,f.mapper):o;iI(s,N)}else YP(s);if(o&&!Tm(r)&&!s.resolvedReturnType){var U=oE(r,t);s.resolvedReturnType||(s.resolvedReturnType=U)}Lv(r)}}}function t3(r){e.Debug.assert(r.kind!==168||e.isObjectLiteralMethod(r));var t=e.getFunctionFlags(r),a=Tm(r);if(RT(r,a),r.body)if(e.getEffectiveReturnTypeNode(r)||_o(Iu(r)),r.body.kind===234)Ji(r.body);else{var o=fi(r.body),s=a&&vE(a,t);if(s)if((t&3)===2){var f=Iv(o,!1,r.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);pp(f,s,r.body,r.body)}else pp(o,s,r.body,r.body)}}function sE(r,t,a,o){if(o===void 0&&(o=!1),!$i(t,Pt)){var s=o&&Cv(t);return wc(r,!!s&&$i(s,Pt),a),!1}return!0}function n3(r){if(!e.isCallExpression(r)||!e.isBindableObjectDefinePropertyCall(r))return!1;var t=Cs(r.arguments[2]),a=na(t,"value");if(a){var o=pi(t,"writable"),s=o&&En(o);if(!s||s===st||s===$t)return!0;if(o&&o.valueDeclaration&&e.isPropertyAssignment(o.valueDeclaration)){var f=o.valueDeclaration.initializer,N=fi(f);if(N===st||N===$t)return!0}return!1}var U=pi(t,"set");return!U}function Gu(r){return!!(e.getCheckFlags(r)&8||r.flags&4&&e.getDeclarationModifierFlagsFromSymbol(r)&64||r.flags&3&&yv(r)&2||r.flags&98304&&!(r.flags&65536)||r.flags&8||e.some(r.declarations,n3))}function _I(r,t,a){var o,s;if(a===0)return!1;if(Gu(t)){if(t.flags&4&&e.isAccessExpression(r)&&r.expression.kind===108){var f=e.getContainingFunction(r);if(!(f&&(f.kind===170||_u(f))))return!0;if(t.valueDeclaration){var N=e.isBinaryExpression(t.valueDeclaration),U=f.parent===t.valueDeclaration.parent,fe=f===t.valueDeclaration.parent,Oe=N&&((o=t.parent)===null||o===void 0?void 0:o.valueDeclaration)===f.parent,je=N&&((s=t.parent)===null||s===void 0?void 0:s.valueDeclaration)===f,ze=U||fe||Oe||je;return!ze}}return!0}if(e.isAccessExpression(r)){var tr=e.skipParentheses(r.expression);if(tr.kind===79){var _r=Zn(tr).resolvedSymbol;if(_r.flags&2097152){var Vr=ec(_r);return!!Vr&&Vr.kind===267}}}return!1}function Dv(r,t,a){var o=e.skipOuterExpressions(r,7);return o.kind!==79&&!e.isAccessExpression(o)?(Br(r,t),!1):o.flags&32?(Br(r,a),!1):!0}function a3(r){fi(r.expression);var t=e.skipParentheses(r.expression);if(!e.isAccessExpression(t))return Br(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),ia;e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)&&Br(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var a=Zn(t),o=Rs(a.resolvedSymbol);return o&&(Gu(o)&&Br(t,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),i3(t,o)),ia}function i3(r,t){var a=En(t);Er&&!(a.flags&131075)&&!(de?t.flags&16777216:mc(a)&32768)&&Br(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}function o3(r){return fi(r.expression),he}function s3(r){return fi(r.expression),zr}function l3(r){if(_e){var t=e.getContainingFunctionOrClassStaticBlock(r);if(t&&e.isClassStaticBlockDeclaration(t))Br(r,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(r.flags&32768))if(e.isInTopLevelContext(r)){var a=e.getSourceFileOfNode(r);if(!R_(a)){var o=void 0;if(!e.isEffectiveExternalModule(a,We)){o||(o=e.getSpanOfTokenAtPosition(a,r.pos));var s=e.createFileDiagnostic(a,o.start,o.length,e.Diagnostics.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);fa.add(s)}if(ve!==e.ModuleKind.ES2022&&ve!==e.ModuleKind.ESNext&&ve!==e.ModuleKind.System&&!(ve===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||Ne<4){o=e.getSpanOfTokenAtPosition(a,r.pos);var s=e.createFileDiagnostic(a,o.start,o.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher);fa.add(s)}}}else{var a=e.getSourceFileOfNode(r);if(!R_(a)){var o=e.getSpanOfTokenAtPosition(a,r.pos),s=e.createFileDiagnostic(a,o.start,o.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);if(t&&t.kind!==170&&(e.getFunctionFlags(t)&2)===0){var f=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(s,f)}fa.add(s)}}$1(r)&&Br(r,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}var N=fi(r.expression),U=Iv(N,!0,r,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return U===N&&!Za(U)&&!(N.flags&3)&&Il(!1,e.createDiagnosticForNode(r,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),U}function c3(r){var t=fi(r.operand);if(t===bt)return bt;switch(r.operand.kind){case 8:switch(r.operator){case 40:return Lm(Yf(-r.operand.text));case 39:return Lm(Yf(+r.operand.text))}break;case 9:if(r.operator===40)return Lm(t1({negative:!0,base10Value:e.parsePseudoBigInt(r.operand.text)}))}switch(r.operator){case 39:case 40:case 54:return pu(t,r.operand),Jo(t,12288)&&Br(r.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r.operator)),r.operator===39?(Jo(t,2112)&&Br(r.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(r.operator),pn(Ru(t))),Nt):wT(t);case 53:Og(r.operand);var a=mp(t)&12582912;return a===4194304?st:a===8388608?Pn:ia;case 45:case 46:var o=sE(r.operand,pu(t,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return o&&Dv(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),wT(t)}return Qe}function u3(r){var t=fi(r.operand);if(t===bt)return bt;var a=sE(r.operand,pu(t,r.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);return a&&Dv(r.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),wT(t)}function wT(r){return Jo(r,2112)?hs(r,3)||Jo(r,296)?Pt:Xt:Nt}function Jo(r,t){if(r.flags&t)return!0;if(r.flags&3145728)for(var a=r.types,o=0,s=a;o<s.length;o++){var f=s[o];if(Jo(f,t))return!0}return!1}function hs(r,t,a){return r.flags&t?!0:a&&r.flags&114691?!1:!!(t&296)&&$i(r,Nt)||!!(t&2112)&&$i(r,Xt)||!!(t&402653316)&&$i(r,pt)||!!(t&528)&&$i(r,ia)||!!(t&16384)&&$i(r,Gn)||!!(t&131072)&&$i(r,nn)||!!(t&65536)&&$i(r,Lt)||!!(t&32768)&&$i(r,Rr)||!!(t&4096)&&$i(r,pa)||!!(t&67108864)&&$i(r,wn)}function Fm(r,t,a){return r.flags&1048576?e.every(r.types,function(o){return Fm(o,t,a)}):hs(r,t,a)}function MT(r){return!!(e.getObjectFlags(r)&16)&&!!r.symbol&&PT(r.symbol)}function PT(r){return(r.flags&128)!==0}function f3(r,t,a,o){return a===bt||o===bt?bt:(!wa(a)&&Fm(a,131068)&&Br(r,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),wa(o)||lS(o)||xd(o,Fe)||Br(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),ia)}function d3(r,t,a,o){if(a===bt||o===bt)return bt;if(e.isPrivateIdentifier(r)){if(Ne<99&&tl(r,2097152),!Zn(r).resolvedSymbol&&e.getContainingClass(r)){var s=vT(r,o.symbol,!0);Dx(r,o,s)}}else a=pu(a,r),Fm(a,402665900)||hs(a,407109632)||Br(r,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);o=pu(o,t);var f=Bp(o);return(!Fm(o,126091264)||f&&(hs(o,3145728)&&!Fm(f,126091264)||!Jo(f,126615552)))&&Br(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),ia}function p3(r,t,a){var o=r.properties;if(Er&&o.length===0)return pu(t,r);for(var s=0;s<o.length;s++)mI(r,t,s,o,a);return t}function mI(r,t,a,o,s){s===void 0&&(s=!1);var f=r.properties,N=f[a];if(N.kind===294||N.kind===295){var U=N.name,fe=lp(U);if(Yu(fe)){var Oe=Au(fe),je=pi(t,Oe);je&&(Qh(je,N,s),pT(N,!1,!0,t,je))}var ze=Xl(t,fe,32,U),tr=gl(N,ze);return O_(N.kind===295?N:N.initializer,tr)}else if(N.kind===296)if(a<f.length-1)Br(N,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{Ne<99&&tl(N,4);var _r=[];if(o)for(var Vr=0,$r=o;Vr<$r.length;Vr++){var Tt=$r[Vr];e.isSpreadAssignment(Tt)||_r.push(Tt.name)}var tr=ol(t,_r,t.symbol);return nm(o,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),O_(N.expression,tr)}else Br(N,e.Diagnostics.Property_assignment_expected)}function _3(r,t,a){var o=r.elements;Ne<2&&We.downlevelIteration&&tl(r,512);for(var s=Od(193,t,Rr,r)||Qe,f=We.noUncheckedIndexedAccess?void 0:s,N=0;N<o.length;N++){var U=s;r.elements[N].kind===224&&(U=f=f!=null?f:Od(65,t,Rr,r)||Qe),gI(r,t,N,U,a)}return t}function gI(r,t,a,o,s){var f=r.elements,N=f[a];if(N.kind!==226){if(N.kind!==224){var U=Yf(a);if(_p(t)){var fe=32|(bg(N)?16:0),Oe=cp(t,U,fe,$p(N,U))||Qe,je=bg(N)?Us(Oe,524288):Oe,ze=gl(N,je);return O_(N,ze,s)}return O_(N,o,s)}if(a<f.length-1)Br(N,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var tr=N.expression;if(tr.kind===220&&tr.operatorToken.kind===63)Br(tr.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer);else{nm(r.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);var ze=ed(t,ki)?ms(t,function(Vr){return av(Vr,a)}):Js(o);return O_(tr,ze,s)}}}}function O_(r,t,a,o){var s;if(r.kind===295){var f=r;f.objectAssignmentInitializer&&(Er&&!(mc(fi(f.objectAssignmentInitializer))&32768)&&(t=Us(t,524288)),h3(f.name,f.equalsToken,f.objectAssignmentInitializer,a)),s=r.name}else s=r;return s.kind===220&&s.operatorToken.kind===63&&(we(s,a),s=s.left),s.kind===204?p3(s,t,o):s.kind===203?_3(s,t,a):m3(s,t,a)}function m3(r,t,a){var o=fi(r,a),s=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f=r.parent.kind===296?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return Dv(r,s,f)&&pp(t,o,r,r),e.isPrivateIdentifierPropertyAccessExpression(r)&&tl(r.parent,1048576),t}function ny(r){switch(r=e.skipParentheses(r),r.kind){case 79:case 10:case 13:case 209:case 222:case 14:case 8:case 9:case 110:case 95:case 104:case 152:case 212:case 225:case 213:case 203:case 204:case 215:case 229:case 278:case 277:return!0;case 221:return ny(r.whenTrue)&&ny(r.whenFalse);case 220:return e.isAssignmentOperator(r.operatorToken.kind)?!1:ny(r.left)&&ny(r.right);case 218:case 219:switch(r.operator){case 53:case 39:case 40:case 54:return!0}return!1;case 216:case 210:case 228:default:return!1}}function FT(r,t){return(t.flags&98304)!==0||_g(r,t)}function g3(){var r=e.createBinaryExpressionTrampoline(t,a,o,s,f,N);return function(tr,_r){var Vr=r(tr,_r);return e.Debug.assertIsDefined(Vr),Vr};function t(tr,_r,Vr){if(_r?(_r.stackIndex++,_r.skip=!1,Oe(_r,void 0),ze(_r,void 0)):_r={checkMode:Vr,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(tr)&&e.getAssignedExpandoInitializer(tr))return _r.skip=!0,ze(_r,fi(tr.right,Vr)),_r;v3(tr);var $r=tr.operatorToken.kind;return $r===63&&(tr.left.kind===204||tr.left.kind===203)&&(_r.skip=!0,ze(_r,O_(tr.left,fi(tr.right,Vr),Vr,tr.right.kind===108))),_r}function a(tr,_r,Vr){if(!_r.skip)return U(_r,tr)}function o(tr,_r,Vr){if(!_r.skip){var $r=je(_r);e.Debug.assertIsDefined($r),Oe(_r,$r),ze(_r,void 0);var Tt=tr.kind;if(Tt===55||Tt===56||Tt===60){if(Tt===55){var St=e.walkUpParenthesizedExpressions(Vr.parent);XT(Vr.left,$r,e.isIfStatement(St)?St.thenStatement:void 0)}KI($r,Vr.left)}}}function s(tr,_r,Vr){if(!_r.skip)return U(_r,tr)}function f(tr,_r){var Vr;if(_r.skip)Vr=je(_r);else{var $r=fe(_r);e.Debug.assertIsDefined($r);var Tt=je(_r);e.Debug.assertIsDefined(Tt),Vr=vI(tr.left,tr.operatorToken,tr.right,$r,Tt,tr)}return _r.skip=!1,Oe(_r,void 0),ze(_r,void 0),_r.stackIndex--,Vr}function N(tr,_r,Vr){return ze(tr,_r),tr}function U(tr,_r){if(e.isBinaryExpression(_r))return _r;ze(tr,fi(_r,tr.checkMode))}function fe(tr){return tr.typeStack[tr.stackIndex]}function Oe(tr,_r){tr.typeStack[tr.stackIndex]=_r}function je(tr){return tr.typeStack[tr.stackIndex+1]}function ze(tr,_r){tr.typeStack[tr.stackIndex+1]=_r}}function v3(r){var t=r.left,a=r.operatorToken,o=r.right;a.kind===60&&(e.isBinaryExpression(t)&&(t.operatorToken.kind===56||t.operatorToken.kind===55)&&cn(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(a.kind)),e.isBinaryExpression(o)&&(o.operatorToken.kind===56||o.operatorToken.kind===55)&&cn(o,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(o.operatorToken.kind),e.tokenToString(a.kind)))}function h3(r,t,a,o,s){var f=t.kind;if(f===63&&(r.kind===204||r.kind===203))return O_(r,fi(a,o),o,a.kind===108);var N;f===55||f===56||f===60?N=Og(r,o):N=fi(r,o);var U=fi(a,o);return vI(r,t,a,N,U,s)}function vI(r,t,a,o,s,f){var N=t.kind;switch(N){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(o===bt||s===bt)return bt;o=pu(o,r),s=pu(s,a);var U=void 0;if(o.flags&528&&s.flags&528&&(U=ka(t.kind))!==void 0)return Br(f||t,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(t.kind),e.tokenToString(U)),Nt;var fe=sE(r,o,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Oe=sE(a,s,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),je;if(hs(o,3)&&hs(s,3)||!(Jo(o,2112)||Jo(s,2112)))je=Nt;else if(sn(o,s)){switch(N){case 49:case 72:Co();break;case 42:case 67:Ne<3&&Br(f,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}je=Xt}else Co(sn),je=Qe;return fe&&Oe&&xi(je),je;case 39:case 64:if(o===bt||s===bt)return bt;!hs(o,402653316)&&!hs(s,402653316)&&(o=pu(o,r),s=pu(s,a));var ze=void 0;if(hs(o,296,!0)&&hs(s,296,!0)?ze=Nt:hs(o,2112,!0)&&hs(s,2112,!0)?ze=Xt:hs(o,402653316,!0)||hs(s,402653316,!0)?ze=pt:(wa(o)||wa(s))&&(ze=Za(o)||Za(s)?Qe:ke),ze&&!_i(N))return ze;if(!ze){var tr=402655727;return Co(function(Gt,mn){return hs(Gt,tr)&&hs(mn,tr)}),ke}return N===64&&xi(ze),ze;case 29:case 31:case 32:case 33:return _i(N)&&(o=Ru(pu(o,r)),s=Ru(pu(s,a)),Ii(function(Gt,mn){return _g(Gt,mn)||_g(mn,Gt)||$i(Gt,Pt)&&$i(mn,Pt)})),ia;case 34:case 35:case 36:case 37:return Ii(function(Gt,mn){return FT(Gt,mn)||FT(mn,Gt)}),ia;case 102:return f3(r,a,o,s);case 101:return d3(r,a,o,s);case 55:case 76:{var _r=mp(o)&4194304?ha([Pw(Er?o:Ru(s)),s]):o;return N===76&&xi(s),_r}case 56:case 75:{var Vr=mp(o)&8388608?ha([oC(o),s],2):o;return N===75&&xi(s),Vr}case 60:case 77:{var $r=mp(o)&262144?ha([Id(o),s],2):o;return N===77&&xi(s),$r}case 63:var Tt=e.isBinaryExpression(r.parent)?e.getAssignmentDeclarationKind(r.parent):0;return ua(Tt,s),Bi(Tt)?((!(s.flags&524288)||Tt!==2&&Tt!==6&&!Sf(s)&&!j1(s)&&!(e.getObjectFlags(s)&1))&&xi(s),o):(xi(s),hg(s));case 27:if(!We.allowUnreachableCode&&ny(r)&&!la(a)){var St=e.getSourceFileOfNode(r),It=St.text,jt=e.skipTrivia(It,r.pos),In=St.parseDiagnostics.some(function(Gt){return Gt.code!==e.Diagnostics.JSX_expressions_must_have_one_parent_element.code?!1:e.textSpanContainsPosition(Gt,jt)});In||Br(r,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return s;default:return e.Debug.fail()}function sn(Gt,mn){return hs(Gt,2112)&&hs(mn,2112)}function ua(Gt,mn){if(Gt===2)for(var Oa=0,Yn=zf(mn);Oa<Yn.length;Oa++){var Ba=Yn[Oa],Di=En(Ba);if(Di.symbol&&Di.symbol.flags&32){var Pi=Ba.escapedName,Hn=Ho(Ba.valueDeclaration,Pi,788968,void 0,Pi,!1);(Hn==null?void 0:Hn.declarations)&&Hn.declarations.some(e.isJSDocTypedefTag)&&(nf(Hn,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Pi),Ba),nf(Ba,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(Pi),Hn))}}}function la(Gt){return Gt.kind===79&&Gt.escapedText==="eval"}function _i(Gt){var mn=Jo(o,12288)?r:Jo(s,12288)?a:void 0;return mn?(Br(mn,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(Gt)),!1):!0}function ka(Gt){switch(Gt){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}function xi(Gt){if(_e&&e.isAssignmentOperator(N)&&Dv(r,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(r)||e.unescapeLeadingUnderscores(r.escapedText)!=="exports")){var mn=void 0;if(de&&e.isPropertyAccessExpression(r)&&Jo(Gt,32768)){var Oa=na(rl(r.expression),r.name.escapedText);g1(Gt,Oa)&&(mn=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}pp(Gt,o,r,a,mn)}}function Bi(Gt){var mn;switch(Gt){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var Oa=xn(r),Yn=e.getAssignedExpandoInitializer(a);return!!Yn&&e.isObjectLiteralExpression(Yn)&&!!(!((mn=Oa==null?void 0:Oa.exports)===null||mn===void 0)&&mn.size);default:return!1}}function Ii(Gt){return Gt(o,s)?!1:(Co(Gt),!0)}function Co(Gt){var mn,Oa=!1,Yn=f||t;if(Gt){var Ba=Nd(o),Di=Nd(s);Oa=!(Ba===o&&Di===s)&&!!(Ba&&Di)&&Gt(Ba,Di)}var Pi=o,Hn=s;!Oa&&Gt&&(mn=y3(o,s,Gt),Pi=mn[0],Hn=mn[1]);var Gi=ep(Pi,Hn),Kr=Gi[0],Dr=Gi[1];Ht(Yn,Oa,Kr,Dr)||wc(Yn,Oa,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(t.kind),Kr,Dr)}function Ht(Gt,mn,Oa,Yn){var Ba;switch(t.kind){case 36:case 34:Ba="false";break;case 37:case 35:Ba="true"}if(Ba)return wc(Gt,mn,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,Ba,Oa,Yn)}}function y3(r,t,a){var o=r,s=t,f=Ru(r),N=Ru(t);return a(f,N)||(o=f,s=N),[o,s]}function b3(r){_e&&(r.flags&8192||Vs(r,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),$1(r)&&Br(r,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer));var t=e.getContainingFunction(r);if(!t)return ke;var a=e.getFunctionFlags(t);if(!(a&1))return ke;var o=(a&2)!==0;r.asteriskToken&&(o&&Ne<99&&tl(r,26624),!o&&Ne<2&&We.downlevelIteration&&tl(r,256));var s=Tm(t),f=s&&nN(s,o),N=f&&f.yieldType||ke,U=f&&f.nextType||ke,fe=o?tm(U)||ke:U,Oe=r.expression?fi(r.expression):zr,je=cI(r,Oe,fe,o);if(s&&je&&pp(je,N,r.expression||r,r.expression),r.asteriskToken){var ze=o?19:17;return qI(ze,1,Oe,r.expression)||ke}else if(s)return Bm(2,s,o)||ke;var tr=QC(2,t);if(!tr&&(tr=ke,_e&&sr&&!e.expressionResultIsUnused(r))){var _r=Ic(r);(!_r||wa(_r))&&Br(r,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}return tr}function E3(r,t){var a=Og(r.condition);XT(r.condition,a,r.whenTrue);var o=fi(r.whenTrue,t),s=fi(r.whenFalse,t);return ha([o,s],2)}function hI(r){var t=r.parent;return e.isParenthesizedExpression(t)&&hI(t)||e.isElementAccessExpression(t)&&t.argumentExpression===r}function T3(r){for(var t=[r.head.text],a=[],o=0,s=r.templateSpans;o<s.length;o++){var f=s[o],N=fi(f.expression);Jo(N,12288)&&Br(f.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),t.push(f.literal.text),a.push($i(N,Et)?N:pt)}return xg(r)||hI(r)||Om(Ic(r)||Be,S3)?dg(t,a):pt}function S3(r){return!!(r.flags&134217856||r.flags&58982400&&Jo(pl(r)||Be,402653316))}function D3(r){return r.kind===285&&!e.isJsxSelfClosingElement(r.parent)?r.parent.parent:r}function Gm(r,t,a,o){var s=D3(r),f=s.contextualType,N=s.inferenceContext;try{s.contextualType=t,s.inferenceContext=a;var U=fi(r,o|1|(a?2:0)),fe=Jo(U,2944)&&lE(U,Wb(t,r))?Ml(U):U;return fe}finally{s.contextualType=f,s.inferenceContext=N}}function Cs(r,t){var a=Zn(r);if(!a.resolvedType){if(t&&t!==0)return fi(r,t);var o=bi,s=zo;bi=Qa,zo=void 0,a.resolvedType=fi(r,t),zo=s,bi=o}return a.resolvedType}function yI(r){return r=e.skipParentheses(r,!0),r.kind===210||r.kind===228||e.isJSDocTypeAssertion(r)}function ay(r,t){var a=e.getEffectiveInitializer(r),o=LI(a)||(t?Gm(a,t,void 0,0):Cs(a));return e.isParameter(r)&&r.name.kind===201&&ki(o)&&!o.target.hasRestElement&&op(o)<r.name.elements.length?L3(o,r.name):o}function L3(r,t){for(var a=t.elements,o=ho(r).slice(),s=r.target.elementFlags.slice(),f=op(r);f<a.length;f++){var N=a[f];(f<a.length-1||!(N.kind===202&&N.dotDotDotToken))&&(o.push(!e.isOmittedExpression(N)&&bg(N)?Bo(N,!1,!1):ke),s.push(2),!e.isOmittedExpression(N)&&!bg(N)&&qp(N,ke))}return ku(o,s,r.target.readonly)}function GT(r,t){var a=e.getCombinedNodeFlags(r)&2||e.isDeclarationReadonly(r)?t:zp(t);if(e.isInJSFile(r)){if(eC(a))return qp(r,ke),ke;if(S1(a))return qp(r,Wt),Wt}return a}function lE(r,t){if(t){if(t.flags&3145728){var a=t.types;return e.some(a,function(s){return lE(r,s)})}if(t.flags&58982400){var o=pl(t)||Be;return Jo(o,4)&&Jo(r,128)||Jo(o,8)&&Jo(r,256)||Jo(o,64)&&Jo(r,2048)||Jo(o,4096)&&Jo(r,8192)||lE(r,o)}return!!(t.flags&406847616&&Jo(r,128)||t.flags&256&&Jo(r,256)||t.flags&2048&&Jo(r,2048)||t.flags&512&&Jo(r,512)||t.flags&8192&&Jo(r,8192))}return!1}function xg(r){var t=r.parent;return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeAssertion(t)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(t))||(e.isParenthesizedExpression(t)||e.isArrayLiteralExpression(t)||e.isSpreadElement(t))&&xg(t)||(e.isPropertyAssignment(t)||e.isShorthandPropertyAssignment(t)||e.isTemplateSpan(t))&&xg(t.parent)}function Ig(r,t,a,o){var s=fi(r,t,o);return xg(r)?Ml(s):yI(r)?s:D1(s,Wb(arguments.length===2?Ic(r):a,r))}function bI(r,t){return r.name.kind===161&&td(r.name),Ig(r.initializer,t)}function EI(r,t){GN(r),r.name.kind===161&&td(r.name);var a=pI(r,t);return TI(r,a,t)}function TI(r,t,a){if(a&&a&10){var o=bv(t,0,!0),s=bv(t,1,!0),f=o||s;if(f&&f.typeParameters){var N=Qp(r,2);if(N){var U=bv(Id(N),o?0:1,!1);if(U&&!U.typeParameters){if(a&8)return SI(r,a),$a;var fe=hv(r),Oe=fe.signature&&_o(fe.signature),je=Oe&&wx(Oe);if(je&&!je.typeParameters&&!e.every(fe.inferences,rm)){var ze=x3(fe,f.typeParameters),tr=O0(f,ze),_r=e.map(fe.inferences,function(Vr){return R1(Vr.typeParameter)});if(N1(tr,U,function(Vr,$r){Df(_r,Vr,$r,0,!0)}),e.some(_r,rm)&&(k1(tr,U,function(Vr,$r){Df(_r,Vr,$r)}),!A3(fe.inferences,_r)))return C3(fe.inferences,_r),fe.inferredTypeParameters=e.concatenate(fe.inferredTypeParameters,ze),sg(tr)}return sg(Mx(f,U,fe))}}}}return t}function SI(r,t){if(t&2){var a=hv(r);a.flags|=4}}function rm(r){return!!(r.candidates||r.contraCandidates)}function A3(r,t){for(var a=0;a<r.length;a++)if(rm(r[a])&&rm(t[a]))return!0;return!1}function C3(r,t){for(var a=0;a<r.length;a++)!rm(r[a])&&rm(t[a])&&(r[a]=t[a])}function x3(r,t){for(var a=[],o,s,f=0,N=t;f<N.length;f++){var U=N[f],fe=U.symbol.escapedName;if(BT(r.inferredTypeParameters,fe)||BT(a,fe)){var Oe=I3(e.concatenate(r.inferredTypeParameters,a),fe),je=co(262144,Oe),ze=tc(je);ze.target=U,o=e.append(o,U),s=e.append(s,ze),a.push(ze)}else a.push(U)}if(s)for(var tr=Pl(o,s),_r=0,Vr=s;_r<Vr.length;_r++){var U=Vr[_r];U.mapper=tr}return a}function BT(r,t){return e.some(r,function(a){return a.symbol.escapedName===t})}function I3(r,t){for(var a=t.length;a>1&&t.charCodeAt(a-1)>=48&&t.charCodeAt(a-1)<=57;)a--;for(var o=t.slice(0,a),s=1;;s++){var f=o+s;if(!BT(r,f))return f}}function DI(r){var t=em(r);if(t&&!t.typeParameters)return _o(t)}function N3(r){var t=fi(r.expression),a=dv(t,r.expression),o=DI(t);return o&&Tb(o,r,a!==t)}function rl(r){var t=LI(r);if(t)return t;if(r.flags&67108864&&zo){var a=zo[w(r)];if(a)return a}var o=ss,s=fi(r);if(ss!==o){var f=zo||(zo=[]);f[w(r)]=s,e.setNodeFlags(r,r.flags|67108864)}return s}function LI(r){var t=e.skipParentheses(r,!0);if(e.isJSDocTypeAssertion(t)){var a=e.getJSDocTypeAssertionType(t);if(!e.isConstTypeReference(a))return xa(a)}if(t=e.skipParentheses(r),e.isCallExpression(t)&&t.expression.kind!==106&&!e.isRequireCall(t,!0)&&!Xx(t)){var a=e.isCallChain(t)?N3(t):DI(Sg(t.expression));if(a)return a}else{if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return xa(t.type);if(r.kind===8||r.kind===10||r.kind===110||r.kind===95)return fi(r)}}function iy(r){var t=Zn(r);if(t.contextFreeType)return t.contextFreeType;var a=r.contextualType;r.contextualType=ke;try{var o=t.contextFreeType=fi(r,4);return o}finally{r.contextualType=a}}function fi(r,t,a){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:r.kind,pos:r.pos,end:r.end});var o=Re;Re=r,Ge=0;var s=R3(r,t,a),f=TI(r,s,t);return MT(f)&&k3(r,f),Re=o,e.tracing===null||e.tracing===void 0||e.tracing.pop(),f}function k3(r,t){var a=r.parent.kind===205&&r.parent.expression===r||r.parent.kind===206&&r.parent.expression===r||(r.kind===79||r.kind===160)&&TE(r)||r.parent.kind===180&&r.parent.exprName===r||r.parent.kind===274;if(a||Br(r,e.Diagnostics.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),We.isolatedModules){e.Debug.assert(!!(t.symbol.flags&128));var o=t.symbol.valueDeclaration;o.flags&8388608&&Br(r,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function O3(r,t){if(e.hasJSDocNodes(r)&&e.isJSDocTypeAssertion(r)){var a=e.getJSDocTypeAssertionType(r);return rI(a,a,r.expression,t)}return fi(r.expression,t)}function R3(r,t,a){var o=r.kind;if(ae)switch(o){case 225:case 212:case 213:ae.throwIfCancellationRequested()}switch(o){case 79:return V6(r,t);case 80:return YM(r);case 108:return Ub(r);case 106:return Q1(r);case 104:return vt;case 14:case 10:return Lm(xc(r.text));case 8:return vS(r),Lm(Yf(+r.text));case 9:return TF(r),Lm(t1({negative:!1,base10Value:e.parsePseudoBigInt(r.text)}));case 110:return Pn;case 95:return st;case 222:return T3(r);case 13:return tt;case 203:return tx(r,t,a);case 204:return kM(r,t);case 205:return hx(r,t);case 160:return yx(r,t);case 206:return dP(r,t);case 207:if(r.expression.kind===100)return UP(r);case 208:return BP(r,t);case 209:return VP(r);case 211:return O3(r,t);case 225:return s8(r);case 212:case 213:return pI(r,t);case 215:return o3(r);case 210:case 228:return WP(r);case 229:return HP(r);case 230:return JP(r);case 214:return a3(r);case 216:return s3(r);case 217:return l3(r);case 218:return c3(r);case 219:return u3(r);case 220:return we(r,t);case 221:return E3(r,t);case 224:return AM(r,t);case 226:return zr;case 223:return b3(r);case 231:return CM(r);case 287:return HM(r,t);case 277:return MM(r,t);case 278:return RM(r,t);case 281:return PM(r);case 285:return GM(r,t);case 279:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Qe}function AI(r){r.expression&&Vs(r.expression,e.Diagnostics.Type_expected),Ji(r.constraint),Ji(r.default);var t=hl(xn(r));pl(t),or(t)||Br(r.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,pn(t));var a=bl(t),o=ee(t);a&&o&&Fl(o,yl(ci(a,Y_(t,o)),o),r.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),_e&&Rg(r.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function CI(r){Lf(r),mE(r);var t=e.getContainingFunction(r);e.hasSyntacticModifier(r,16476)&&(t.kind===170&&e.nodeIsPresent(t.body)||Br(r,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),t.kind===170&&e.isIdentifier(r.name)&&r.name.escapedText==="constructor"&&Br(r.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),r.questionToken&&e.isBindingPattern(r.name)&&t.body&&Br(r,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&e.isIdentifier(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(t.parameters.indexOf(r)!==0&&Br(r,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(t.kind===170||t.kind===174||t.kind===179)&&Br(r,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),t.kind===213&&Br(r,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(t.kind===171||t.kind===172)&&Br(r,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!e.isBindingPattern(r.name)&&!$i(to(En(r.symbol)),va)&&Br(r,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function w3(r){var t=M3(r);if(!t){Br(r,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var a=Iu(t),o=Cc(a);if(!!o){Ji(r.type);var s=r.parameterName;if(o.kind===0||o.kind===2)ub(s);else if(o.parameterIndex>=0){if(Y(a)&&o.parameterIndex===a.parameters.length-1)Br(s,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(o.type){var f=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};Fl(o.type,En(a.parameters[o.parameterIndex]),r.type,void 0,f)}}else if(s){for(var N=!1,U=0,fe=t.parameters;U<fe.length;U++){var Oe=fe[U].name;if(e.isBindingPattern(Oe)&&xI(Oe,s,o.parameterName)){N=!0;break}}N||Br(r.parameterName,e.Diagnostics.Cannot_find_parameter_0,o.parameterName)}}}function M3(r){switch(r.parent.kind){case 213:case 173:case 255:case 212:case 178:case 168:case 167:var t=r.parent;if(r===t.type)return t}}function xI(r,t,a){for(var o=0,s=r.elements;o<s.length;o++){var f=s[o];if(!e.isOmittedExpression(f)){var N=f.name;if(N.kind===79&&N.escapedText===a)return Br(t,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,a),!0;if((N.kind===201||N.kind===200)&&xI(N,t,a))return!0}}}function Lv(r){r.kind===175?z7(r):(r.kind===178||r.kind===255||r.kind===179||r.kind===173||r.kind===170||r.kind===174)&&xE(r);var t=e.getFunctionFlags(r);if(t&4||((t&3)===3&&Ne<99&&tl(r,6144),(t&3)===2&&Ne<4&&tl(r,64),(t&3)!==0&&Ne<2&&tl(r,128)),dy(e.getEffectiveTypeParameterDeclarations(r)),e.forEach(r.parameters,CI),r.type&&Ji(r.type),_e){S5(r);var a=e.getEffectiveReturnTypeNode(r);if(sr&&!a)switch(r.kind){case 174:Br(r,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 173:Br(r,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(a){var o=e.getFunctionFlags(r);if((o&5)===1){var s=xa(a);if(s===Gn)Br(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var f=Bm(0,s,(o&2)!==0)||ke,N=Bm(1,s,(o&2)!==0)||f,U=Bm(2,s,(o&2)!==0)||Be,fe=lI(f,N,U,!!(o&2));Fl(fe,s,a)}}else(o&3)===2&&o5(r,a)}r.kind!==175&&r.kind!==315&&kd(r)}}function P3(r){for(var t=new e.Map,a=new e.Map,o=new e.Map,s=0,f=r.members;s<f.length;s++){var N=f[s];if(N.kind===170)for(var U=0,fe=N.parameters;U<fe.length;U++){var Oe=fe[U];e.isParameterPropertyDeclaration(Oe,N)&&!e.isBindingPattern(Oe.name)&&Tt(t,Oe.name,Oe.name.escapedText,3)}else{var je=e.isStatic(N),ze=N.name;if(!ze)continue;var tr=e.isPrivateIdentifier(ze),_r=tr&&je?16:0,Vr=tr?o:je?a:t,$r=ze&&e.getPropertyNameForPropertyNameNode(ze);if($r)switch(N.kind){case 171:Tt(Vr,ze,$r,1|_r);break;case 172:Tt(Vr,ze,$r,2|_r);break;case 166:Tt(Vr,ze,$r,3|_r);break;case 168:Tt(Vr,ze,$r,8|_r);break}}}function Tt(St,It,jt,In){var sn=St.get(jt);if(sn)if((sn&16)!==(In&16))Br(It,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(It));else{var ua=!!(sn&8),la=!!(In&8);ua||la?ua!==la&&Br(It,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(It)):sn&In&-17?Br(It,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(It)):St.set(jt,sn|In)}else St.set(jt,In)}}function F3(r){for(var t=0,a=r.members;t<a.length;t++){var o=a[t],s=o.name,f=e.isStatic(o);if(f&&s){var N=e.getPropertyNameForPropertyNameNode(s);switch(N){case"name":case"length":case"caller":case"arguments":case"prototype":var U=e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,fe=tu(xn(r));Br(s,U,N,fe);break}}}}function II(r){for(var t=new e.Map,a=0,o=r.members;a<o.length;a++){var s=o[a];if(s.kind===165){var f=void 0,N=s.name;switch(N.kind){case 10:case 8:f=N.text;break;case 79:f=e.idText(N);break;default:continue}t.get(f)?(Br(e.getNameOfDeclaration(s.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,f),Br(s.name,e.Diagnostics.Duplicate_identifier_0,f)):t.set(f,!0)}}}function UT(r){if(r.kind===257){var t=xn(r);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==r)return}var a=xL(xn(r));if(a!=null&&a.declarations){for(var o=new e.Map,s=function(fe){fe.parameters.length===1&&fe.parameters[0].type&&C_(xa(fe.parameters[0].type),function(Oe){var je=o.get(jc(Oe));je?je.declarations.push(fe):o.set(jc(Oe),{type:Oe,declarations:[fe]})})},f=0,N=a.declarations;f<N.length;f++){var U=N[f];s(U)}o.forEach(function(fe){if(fe.declarations.length>1)for(var Oe=0,je=fe.declarations;Oe<je.length;Oe++){var ze=je[Oe];Br(ze,e.Diagnostics.Duplicate_index_signature_for_type_0,pn(fe.type))}})}}function NI(r){!Lf(r)&&!vF(r)&&IE(r.name),mE(r),VT(r),e.isPrivateIdentifier(r.name)&&e.hasStaticModifier(r)&&r.initializer&&Ne===99&&!We.useDefineForClassFields&&Br(r.initializer,e.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag),e.hasSyntacticModifier(r,128)&&r.kind===166&&r.initializer&&Br(r,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(r.name))}function G3(r){return e.isPrivateIdentifier(r.name)&&Br(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),NI(r)}function B3(r){GN(r)||IE(r.name),GI(r),e.hasSyntacticModifier(r,128)&&r.kind===168&&r.body&&Br(r,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(r.name)),e.isPrivateIdentifier(r.name)&&!e.getContainingClass(r)&&Br(r,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),VT(r)}function VT(r){if(e.isPrivateIdentifier(r.name)&&Ne<99){for(var t=e.getEnclosingBlockScopeContainer(r);t;t=e.getEnclosingBlockScopeContainer(t))Zn(t).flags|=67108864;if(e.isClassExpression(r.parent)){var a=q1(r.parent);a&&(Zn(r.name).flags|=524288,Zn(a).flags|=65536)}}}function U3(r){Lf(r),e.forEachChild(r,Ji)}function V3(r){Lv(r),mF(r)||gF(r),Ji(r.body);var t=xn(r),a=e.getDeclarationOfKind(t,r.kind);if(r===a&&dE(t),e.nodeIsMissing(r.body)||!_e)return;function o(_r){return e.isPrivateIdentifierClassElementDeclaration(_r)?!0:_r.kind===166&&!e.isStatic(_r)&&!!_r.initializer}var s=r.parent;if(e.getClassExtendsHeritageElement(s)){X1(r.parent,s);var f=JC(s),N=HC(r.body);if(N){f&&Br(N,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var U=(e.getEmitScriptTarget(We)!==99||!Ve)&&(e.some(r.parent.members,o)||e.some(r.parameters,function(_r){return e.hasSyntacticModifier(_r,16476)}));if(U){for(var fe=r.body.statements,Oe=void 0,je=0,ze=fe;je<ze.length;je++){var tr=ze[je];if(tr.kind===237&&e.isSuperCall(tr.expression)){Oe=tr;break}if(!e.isPrologueDirective(tr))break}Oe||Br(r,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else f||Br(r,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}function kI(r){if(_e){if(!xE(r)&&!aF(r)&&IE(r.name),oy(r),Lv(r),r.kind===171&&!(r.flags&8388608)&&e.nodeIsPresent(r.body)&&r.flags&256&&(r.flags&512||Br(r.name,e.Diagnostics.A_get_accessor_must_return_a_value)),r.name.kind===161&&td(r.name),b_(r)){var t=xn(r),a=e.getDeclarationOfKind(t,171),o=e.getDeclarationOfKind(t,172);if(a&&o&&!(Vm(a)&1)){Zn(a).flags|=1;var s=e.getEffectiveModifierFlags(a),f=e.getEffectiveModifierFlags(o);(s&128)!==(f&128)&&(Br(a.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Br(o.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(s&16&&!(f&24)||s&8&&!(f&8))&&(Br(a.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Br(o.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var N=zl(a),U=zl(o);N&&U&&Fl(N,U,a,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var fe=Ee(xn(r));r.kind===171&&RT(r,fe)}Ji(r.body),VT(r)}function W3(r){oy(r)}function cE(r,t){return Wp(e.map(r.typeArguments,xa),t,uu(t),e.isInJSFile(r))}function OI(r,t){for(var a,o,s=!0,f=0;f<t.length;f++){var N=bl(t[f]);N&&(a||(a=cE(r,t),o=Pl(t,a)),s=s&&Fl(a[f],ci(N,o),r.typeArguments[f],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return s}function WT(r){var t=xh(r);if(!Za(t)){var a=Zn(r).resolvedSymbol;if(a)return a.flags&524288&&Va(a).typeParameters||(e.getObjectFlags(t)&4?t.target.localTypeParameters:void 0)}}function jT(r){my(r,r.typeArguments),r.kind===177&&r.typeName.jsdocDotPos!==void 0&&!e.isInJSFile(r)&&!e.isInJSDoc(r)&&gp(r,r.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(r.typeArguments,Ji);var t=xh(r);if(!Za(t)){if(r.typeArguments&&_e){var a=WT(r);a&&OI(r,a)}var o=Zn(r).resolvedSymbol;o&&(e.some(o.declarations,function(s){return _y(s)&&!!(s.flags&134217728)})&&Mc($h(r),o.declarations,o.escapedName),t.flags&32&&o.flags&8&&Br(r,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,pn(t)))}}function j3(r){var t=e.tryCast(r.parent,e.isTypeReferenceType);if(!!t){var a=WT(t);if(!!a){var o=bl(a[t.typeArguments.indexOf(r)]);return o&&ci(o,Pl(a,cE(t,a)))}}}function H3(r){WL(r)}function J3(r){if(e.forEach(r.members,Ji),_e){var t=xA(r);hE(t,t.symbol),UT(r),II(r)}}function K3(r){Ji(r.elementType)}function z3(r){for(var t=r.elements,a=!1,o=!1,s=e.some(t,e.isNamedTupleMember),f=0,N=t;f<N.length;f++){var U=N[f];if(U.kind!==196&&s){cn(U,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var fe=B0(U);if(fe&8){var Oe=xa(U.type);if(!_p(Oe)){Br(U,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}($s(Oe)||ki(Oe)&&Oe.target.combinedFlags&4)&&(o=!0)}else if(fe&4){if(o){cn(U,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}o=!0}else if(fe&2){if(o){cn(U,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(a){cn(U,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(r.elements,Ji),xa(r)}function q3(r){e.forEach(r.types,Ji),xa(r)}function RI(r,t){if(!(r.flags&8388608))return r;var a=r.objectType,o=r.indexType;if($i(o,Zu(a,!1)))return t.kind===206&&e.isAssignmentTarget(t)&&e.getObjectFlags(a)&32&&Lc(a)&1&&Br(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,pn(a)),r;var s=Dn(a);if(cu(s,Nt)&&hs(o,296))return r;if(z_(a)){var f=K0(o,t);if(f){var N=C_(s,function(U){return pi(U,f)});if(N&&e.getDeclarationModifierFlagsFromSymbol(N)&24)return Br(t,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(f)),Qe}}return Br(t,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,pn(o),pn(a)),Qe}function X3(r){Ji(r.objectType),Ji(r.indexType),RI(TA(r),r)}function Y3(r){Q3(r),Ji(r.typeParameter),Ji(r.nameType),Ji(r.type),r.type||qp(r,ke);var t=X0(r),a=Td(t);if(a)Fl(a,Ct,r.nameType);else{var o=Dc(t);Fl(o,Ct,e.getEffectiveConstraintOfTypeParameter(r.typeParameter))}}function Q3(r){var t;if(!((t=r.members)===null||t===void 0)&&t.length)return cn(r.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}function Z3(r){ub(r)}function $3(r){oF(r),Ji(r.type)}function e5(r){e.forEachChild(r,Ji)}function r5(r){e.findAncestor(r,function(t){return t.parent&&t.parent.kind===188&&t.parent.extendsType===t})||cn(r,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Ji(r.typeParameter),kd(r)}function t5(r){for(var t=0,a=r.templateSpans;t<a.length;t++){var o=a[t];Ji(o.type);var s=xa(o.type);Fl(s,Et,o.type)}xa(r)}function n5(r){Ji(r.argument),xa(r)}function a5(r){r.dotDotDotToken&&r.questionToken&&cn(r,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===184&&cn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===185&&cn(r.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Ji(r.type),xa(r)}function uE(r){return(e.hasEffectiveModifier(r,8)||e.isPrivateIdentifierClassElementDeclaration(r))&&!!(r.flags&8388608)}function fE(r,t){var a=e.getCombinedModifierFlags(r);return r.parent.kind!==257&&r.parent.kind!==256&&r.parent.kind!==225&&r.flags&8388608&&(!(a&2)&&!(e.isModuleBlock(r.parent)&&e.isModuleDeclaration(r.parent.parent)&&e.isGlobalScopeAugmentation(r.parent.parent))&&(a|=1),a|=2),a&t}function dE(r){if(!_e)return;function t(Yn,Ba){var Di=Ba!==void 0&&Ba.parent===Yn[0].parent;return Di?Ba:Yn[0]}function a(Yn,Ba,Di,Pi,Hn){var Gi=Pi^Hn;if(Gi!==0){var Kr=fE(t(Yn,Ba),Di);e.forEach(Yn,function(Dr){var yn=fE(Dr,Di)^Kr;yn&1?Br(e.getNameOfDeclaration(Dr),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):yn&2?Br(e.getNameOfDeclaration(Dr),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):yn&24?Br(e.getNameOfDeclaration(Dr)||Dr,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):yn&128&&Br(e.getNameOfDeclaration(Dr),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function o(Yn,Ba,Di,Pi){if(Di!==Pi){var Hn=e.hasQuestionToken(t(Yn,Ba));e.forEach(Yn,function(Gi){var Kr=e.hasQuestionToken(Gi)!==Hn;Kr&&Br(e.getNameOfDeclaration(Gi),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)})}}var s=155,f=0,N=s,U=!1,fe=!0,Oe=!1,je,ze,tr,_r=r.declarations,Vr=(r.flags&16384)!==0;function $r(Yn){if(!(Yn.name&&e.nodeIsMissing(Yn.name))){var Ba=!1,Di=e.forEachChild(Yn.parent,function(yn){if(Ba)return yn;Ba=yn===Yn});if(Di&&Di.pos===Yn.end&&Di.kind===Yn.kind){var Pi=Di.name||Di,Hn=Di.name;if(Yn.name&&Hn&&(e.isPrivateIdentifier(Yn.name)&&e.isPrivateIdentifier(Hn)&&Yn.name.escapedText===Hn.escapedText||e.isComputedPropertyName(Yn.name)&&e.isComputedPropertyName(Hn)||e.isPropertyNameLiteral(Yn.name)&&e.isPropertyNameLiteral(Hn)&&e.getEscapedTextOfIdentifierOrLiteral(Yn.name)===e.getEscapedTextOfIdentifierOrLiteral(Hn))){var Gi=(Yn.kind===168||Yn.kind===167)&&e.isStatic(Yn)!==e.isStatic(Di);if(Gi){var Kr=e.isStatic(Yn)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static;Br(Pi,Kr)}return}if(e.nodeIsPresent(Di.body)){Br(Pi,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(Yn.name));return}}var Dr=Yn.name||Yn;Vr?Br(Dr,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(Yn,128)?Br(Dr,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Br(Dr,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var Tt=!1,St=!1,It=!1,jt=[];if(_r)for(var In=0,sn=_r;In<sn.length;In++){var ua=sn[In],la=ua,_i=la.flags&8388608,ka=la.parent&&(la.parent.kind===257||la.parent.kind===181)||_i;if(ka&&(tr=void 0),(la.kind===256||la.kind===225)&&!_i&&(It=!0),la.kind===255||la.kind===168||la.kind===167||la.kind===170){jt.push(la);var xi=fE(la,s);f|=xi,N&=xi,U=U||e.hasQuestionToken(la),fe=fe&&e.hasQuestionToken(la);var Bi=e.nodeIsPresent(la.body);Bi&&je?Vr?St=!0:Tt=!0:(tr==null?void 0:tr.parent)===la.parent&&tr.end!==la.pos&&$r(tr),Bi?je||(je=la):Oe=!0,tr=la,ka||(ze=la)}}if(St&&e.forEach(jt,function(Yn){Br(Yn,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)}),Tt&&e.forEach(jt,function(Yn){Br(e.getNameOfDeclaration(Yn)||Yn,e.Diagnostics.Duplicate_function_implementation)}),It&&!Vr&&r.flags&16&&_r){var Ii=e.filter(_r,function(Yn){return Yn.kind===256}).map(function(Yn){return e.createDiagnosticForNode(Yn,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)});e.forEach(_r,function(Yn){var Ba=Yn.kind===256?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:Yn.kind===255?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Ba&&e.addRelatedInfo.apply(void 0,Bt([Br(e.getNameOfDeclaration(Yn)||Yn,Ba,e.symbolName(r))],Ii,!1))})}if(ze&&!ze.body&&!e.hasSyntacticModifier(ze,128)&&!ze.questionToken&&$r(ze),Oe&&(_r&&(a(_r,je,s,f,N),o(_r,je,U,fe)),je))for(var Co=jp(r),Ht=Iu(je),Gt=0,mn=Co;Gt<mn.length;Gt++){var Oa=mn[Gt];if(!_w(Ht,Oa)){e.addRelatedInfo(Br(Oa.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(je,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}function Av(r){if(!_e)return;var t=r.localSymbol;if(!t&&(t=xn(r),!t.exportSymbol)||e.getDeclarationOfKind(t,r.kind)!==r)return;for(var a=0,o=0,s=0,f=0,N=t.declarations;f<N.length;f++){var U=N[f],fe=Tt(U),Oe=fE(U,513);Oe&1?Oe&512?s|=fe:a|=fe:o|=fe}var je=a|o,ze=a&o,tr=s&je;if(ze||tr)for(var _r=0,Vr=t.declarations;_r<Vr.length;_r++){var U=Vr[_r],fe=Tt(U),$r=e.getNameOfDeclaration(U);fe&tr?Br($r,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString($r)):fe&ze&&Br($r,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString($r))}function Tt(St){var It=St;switch(It.kind){case 257:case 258:case 343:case 336:case 337:return 2;case 260:return e.isAmbientModule(It)||e.getModuleInstanceState(It)!==0?5:4;case 256:case 259:case 297:return 3;case 303:return 7;case 270:case 220:var jt=It,In=e.isExportAssignment(jt)?jt.expression:jt.right;if(!e.isEntityNameExpression(In))return 1;It=In;case 264:case 267:case 266:var sn=0,ua=Go(xn(It));return e.forEach(ua.declarations,function(la){sn|=Tt(la)}),sn;case 253:case 202:case 255:case 269:case 79:return 1;default:return e.Debug.failBadSyntaxKind(It)}}}function Cv(r,t,a,o){var s=xv(r,t);return s&&tm(s,t,a,o)}function xv(r,t){if(!wa(r)){var a=r;if(a.promisedTypeOfPromise)return a.promisedTypeOfPromise;if(Kf(r,Ih(!1)))return a.promisedTypeOfPromise=ho(r)[0];if(!Fm(r,262140)){var o=na(r,"then");if(!wa(o)){var s=o?Li(o,0):e.emptyArray;if(s.length===0){t&&Br(t,e.Diagnostics.A_promise_must_have_a_then_method);return}var f=Us(ha(e.map(s,NT)),2097152);if(!wa(f)){var N=Li(f,0);if(N.length===0){t&&Br(t,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return a.promisedTypeOfPromise=ha(e.map(N,NT),2)}}}}}function Iv(r,t,a,o,s){var f=t?tm(r,a,o,s):Nd(r,a,o,s);return f||Qe}function wI(r){if(Fm(r,262140))return!1;var t=na(r,"then");return!!t&&Li(Us(t,2097152),0).length>0}function HT(r){var t;if(r.flags&16777216){var a=G0(!1);return!!a&&r.aliasSymbol===a&&((t=r.aliasTypeArguments)===null||t===void 0?void 0:t.length)===1}return!1}function Nv(r){return r.flags&1048576?ms(r,Nv):HT(r)?r.aliasTypeArguments[0]:r}function i5(r){if(wa(r)||HT(r))return r;if(z_(r)){var t=pl(r);if(!t||t.flags&3||Sf(t)||wI(t)){var a=G0(!0);if(a)return cg(a,[Nv(r)])}}return e.Debug.assert(xv(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function tm(r,t,a,o){var s=Nd(r,t,a,o);return s&&i5(s)}function Nd(r,t,a,o){if(wa(r)||HT(r))return r;var s=r;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;if(r.flags&1048576){var f=t?function(fe){return Nd(fe,t,a,o)}:Nd;return s.awaitedTypeOfType=ms(r,f)}var N=xv(r);if(N){if(r.id===N.id||Fa.lastIndexOf(N.id)>=0){t&&Br(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Fa.push(r.id);var U=Nd(N,t,a,o);return Fa.pop(),U?s.awaitedTypeOfType=U:void 0}if(wI(r)){t&&(e.Debug.assertIsDefined(a),Br(t,a,o));return}return s.awaitedTypeOfType=r}function o5(r,t){var a=xa(t);if(Ne>=2){if(Za(a))return;var o=Ih(!0);if(o!==ya&&!Kf(a,o)){Br(t,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,pn(Nd(a)||Gn));return}}else{if(l5(t),Za(a))return;var s=e.getEntityNameFromTypeNode(t);if(s===void 0){Br(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,pn(a));return}var f=fs(s,111551,!0),N=f?En(f):Qe;if(Za(N)){s.kind===79&&s.escapedText==="Promise"&&v_(a)===Ih(!1)?Br(t,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Br(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}var U=RR(!0);if(U===Qn){Br(t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(s));return}if(!Fl(N,U,t,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var fe=s&&e.getFirstIdentifier(s),Oe=Al(r.locals,fe.escapedText,111551);if(Oe){Br(Oe.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(fe),e.entityNameToString(s));return}}Iv(a,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function s5(r){var t=Lg(r);aE(t,r);var a=_o(t);if(!(a.flags&1)){var o,s=qx(r),f;switch(r.parent.kind){case 256:var N=xn(r.parent),U=En(N);o=ha([U,Gn]);break;case 163:o=Gn,f=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 166:o=Gn,f=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 168:case 171:case 172:var fe=e_(r.parent),Oe=$L(fe);o=ha([Oe,Gn]);break;default:return e.Debug.fail()}Fl(a,o,r,s,function(){return f})}}function l5(r){MI(r&&e.getEntityNameFromTypeNode(r))}function MI(r){if(!!r){var t=e.getFirstIdentifier(r),a=(r.kind===79?788968:1920)|2097152,o=Ho(t,t.escapedText,a,void 0,void 0,!0);o&&o.flags&2097152&&Gf(o)&&!wv(Go(o))&&!Cn(o)&&ui(o)}}function Ng(r){var t=JT(r);t&&e.isEntityName(t)&&MI(t)}function JT(r){if(r)switch(r.kind){case 187:case 186:return PI(r.types);case 188:return PI([r.trueType,r.falseType]);case 190:case 196:return JT(r.type);case 177:return r.typeName}}function PI(r){for(var t,a=0,o=r;a<o.length;a++){for(var s=o[a];s.kind===190||s.kind===196;)s=s.type;if(s.kind!==143&&!(!Er&&(s.kind===195&&s.literal.kind===104||s.kind===152))){var f=JT(s);if(!f)return;if(t){if(!e.isIdentifier(t)||!e.isIdentifier(f)||t.escapedText!==f.escapedText)return}else t=f}}return t}function pE(r){var t=e.getEffectiveTypeAnnotationNode(r);return e.isRestParameter(r)?e.getRestParameterElementType(t):t}function oy(r){if(!!r.decorators&&!!e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){We.experimentalDecorators||Br(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var t=r.decorators[0];if(tl(t,8),r.kind===163&&tl(t,32),We.emitDecoratorMetadata)switch(tl(t,16),r.kind){case 256:var a=e.getFirstConstructorWithBody(r);if(a)for(var o=0,s=a.parameters;o<s.length;o++){var f=s[o];Ng(pE(f))}break;case 171:case 172:var N=r.kind===171?172:171,U=e.getDeclarationOfKind(xn(r),N);Ng(zu(r)||U&&zu(U));break;case 168:for(var fe=0,Oe=r.parameters;fe<Oe.length;fe++){var f=Oe[fe];Ng(pE(f))}Ng(e.getEffectiveReturnTypeNode(r));break;case 166:Ng(e.getEffectiveTypeAnnotationNode(r));break;case 163:Ng(pE(r));for(var je=r.parent,ze=0,tr=je.parameters;ze<tr.length;ze++){var f=tr[ze];Ng(pE(f))}break}e.forEach(r.decorators,s5)}}function c5(r){_e&&(GI(r),_S(r),kg(r,r.name))}function u5(r){r.typeExpression||Br(r.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&Rg(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),Ji(r.typeExpression),dy(e.getEffectiveTypeParameterDeclarations(r))}function f5(r){Ji(r.constraint);for(var t=0,a=r.typeParameters;t<a.length;t++){var o=a[t];Ji(o)}}function d5(r){Ji(r.typeExpression)}function p5(r){if(Ji(r.typeExpression),!e.getParameterSymbolFromJSDoc(r)){var t=e.getHostSignatureFromJSDoc(r);if(t){var a=e.getJSDocTags(t).filter(e.isJSDocParameterTag).indexOf(r);if(a>-1&&a<t.parameters.length&&e.isBindingPattern(t.parameters[a].name))return;N0(t)?e.findLast(e.getJSDocTags(t),e.isJSDocParameterTag)===r&&r.typeExpression&&r.typeExpression.type&&!$s(xa(r.typeExpression.type))&&Br(r.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(r.name.kind===160?r.name.right:r.name)):e.isQualifiedName(r.name)?Br(r.name,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(r.name),e.entityNameToString(r.name.left)):Br(r.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(r.name))}}}function _5(r){Ji(r.typeExpression)}function m5(r){_e&&!r.type&&!e.isJSDocConstructSignature(r)&&qp(r,ke),Lv(r)}function g5(r){var t=e.getEffectiveJSDocHost(r);(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t))&&Br(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName))}function v5(r){var t=e.getEffectiveJSDocHost(r);if(!t||!e.isClassDeclaration(t)&&!e.isClassExpression(t)){Br(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(r.tagName));return}var a=e.getJSDocTags(t).filter(e.isJSDocAugmentsTag);e.Debug.assert(a.length>0),a.length>1&&Br(a[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var o=FI(r.class.expression),s=e.getClassExtendsHeritageElement(t);if(s){var f=FI(s.expression);f&&o.escapedText!==f.escapedText&&Br(o,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(r.tagName),e.idText(o),e.idText(f))}}function h5(r){var t=e.getJSDocHost(r);t&&e.isPrivateIdentifierClassElementDeclaration(t)&&Br(r,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function FI(r){switch(r.kind){case 79:return r;case 205:return r.name;default:return}}function GI(r){var t;oy(r),Lv(r);var a=e.getFunctionFlags(r);if(r.name&&r.name.kind===161&&td(r.name),b_(r)){var o=xn(r),s=r.localSymbol||o,f=(t=s.declarations)===null||t===void 0?void 0:t.find(function(fe){return fe.kind===r.kind&&!(fe.flags&131072)});r===f&&dE(s),o.parent&&dE(o)}var N=r.kind===167?void 0:r.body;if(Ji(N),RT(r,Tm(r)),_e&&!e.getEffectiveReturnTypeNode(r)&&(e.nodeIsMissing(N)&&!uE(r)&&qp(r,ke),a&1&&e.nodeIsPresent(N)&&_o(Iu(r))),e.isInJSFile(r)){var U=e.getJSDocTypeTag(r);U&&U.typeExpression&&!aT(xa(U.typeExpression),r)&&Br(U.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function kd(r){if(_e){var t=e.getSourceFileOfNode(r),a=da.get(t.path);a||(a=[],da.set(t.path,a)),a.push(r)}}function BI(r,t){for(var a=0,o=r;a<o.length;a++){var s=o[a];switch(s.kind){case 256:case 225:y5(s,t),KT(s,t);break;case 303:case 260:case 234:case 262:case 241:case 242:case 243:WI(s,t);break;case 170:case 212:case 255:case 213:case 168:case 171:case 172:s.body&&WI(s,t),KT(s,t);break;case 167:case 173:case 174:case 178:case 179:case 258:case 257:KT(s,t);break;case 189:b5(s,t);break;default:e.Debug.assertNever(s,"Node should not have been registered for unused identifiers check")}}}function UI(r,t,a){var o=e.getNameOfDeclaration(r)||r,s=_y(r)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;a(r,0,e.createDiagnosticForNode(o,s,t))}function sy(r){return e.isIdentifier(r)&&e.idText(r).charCodeAt(0)===95}function y5(r,t){for(var a=0,o=r.members;a<o.length;a++){var s=o[a];switch(s.kind){case 168:case 166:case 171:case 172:if(s.kind===172&&s.symbol.flags&32768)break;var f=xn(s);!f.isReferenced&&(e.hasEffectiveModifier(s,8)||e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name))&&!(s.flags&8388608)&&t(s,0,e.createDiagnosticForNode(s.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ja(f)));break;case 170:for(var N=0,U=s.parameters;N<U.length;N++){var fe=U[N];!fe.symbol.isReferenced&&e.hasSyntacticModifier(fe,8)&&t(fe,0,e.createDiagnosticForNode(fe.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(fe.symbol)))}break;case 175:case 233:case 169:break;default:e.Debug.fail("Unexpected class member")}}}function b5(r,t){var a=r.typeParameter;zT(a)&&t(r,1,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(a.name)))}function KT(r,t){var a=xn(r).declarations;if(!(!a||e.last(a)!==r))for(var o=e.getEffectiveTypeParameterDeclarations(r),s=new e.Set,f=0,N=o;f<N.length;f++){var U=N[f];if(!!zT(U)){var fe=e.idText(U.name),Oe=U.parent;if(Oe.kind!==189&&Oe.typeParameters.every(zT)){if(e.tryAddToSet(s,Oe)){var je=e.getSourceFileOfNode(Oe),ze=e.isJSDocTemplateTag(Oe)?e.rangeOfNode(Oe):e.rangeOfTypeParameters(je,Oe.typeParameters),tr=Oe.typeParameters.length===1,_r=tr?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,Vr=tr?fe:void 0;t(U,1,e.createFileDiagnostic(je,ze.pos,ze.end-ze.pos,_r,Vr))}}else t(U,1,e.createDiagnosticForNode(U,e.Diagnostics._0_is_declared_but_its_value_is_never_read,fe))}}}function zT(r){return!(Ha(r.symbol).isReferenced&262144)&&!sy(r.name)}function ly(r,t,a,o){var s=String(o(t)),f=r.get(s);f?f[1].push(a):r.set(s,[t,[a]])}function VI(r){return e.tryCast(e.getRootDeclaration(r),e.isParameter)}function E5(r){return e.isBindingElement(r)?e.isObjectBindingPattern(r.parent)?!!(r.propertyName&&sy(r.name)):sy(r.name):e.isAmbientModule(r)||(e.isVariableDeclaration(r)&&e.isForInOrOfStatement(r.parent.parent)||jI(r))&&sy(r.name)}function WI(r,t){var a=new e.Map,o=new e.Map,s=new e.Map;r.locals.forEach(function(f){if(!(f.flags&262144?!(f.flags&3&&!(f.isReferenced&3)):f.isReferenced||f.exportSymbol)&&f.declarations)for(var N=0,U=f.declarations;N<U.length;N++){var fe=U[N];if(!E5(fe))if(jI(fe))ly(a,T5(fe),fe,w);else if(e.isBindingElement(fe)&&e.isObjectBindingPattern(fe.parent)){var Oe=e.last(fe.parent.elements);(fe===Oe||!e.last(fe.parent.elements).dotDotDotToken)&&ly(o,fe.parent,fe,w)}else if(e.isVariableDeclaration(fe))ly(s,fe.parent,fe,w);else{var je=f.valueDeclaration&&VI(f.valueDeclaration),ze=f.valueDeclaration&&e.getNameOfDeclaration(f.valueDeclaration);je&&ze?!e.isParameterPropertyDeclaration(je,je.parent)&&!e.parameterIsThisKeyword(je)&&!sy(ze)&&(e.isBindingElement(fe)&&e.isArrayBindingPattern(fe.parent)?ly(o,fe.parent,fe,w):t(je,1,e.createDiagnosticForNode(ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(f)))):UI(fe,e.symbolName(f),t)}}}),a.forEach(function(f){var N=f[0],U=f[1],fe=N.parent,Oe=(N.name?1:0)+(N.namedBindings?N.namedBindings.kind===267?1:N.namedBindings.elements.length:0);if(Oe===U.length)t(fe,0,U.length===1?e.createDiagnosticForNode(fe,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(U).name)):e.createDiagnosticForNode(fe,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var je=0,ze=U;je<ze.length;je++){var tr=ze[je];UI(tr,e.idText(tr.name),t)}}),o.forEach(function(f){var N=f[0],U=f[1],fe=VI(N.parent)?1:0;if(N.elements.length===U.length)U.length===1&&N.parent.kind===253&&N.parent.parent.kind===254?ly(s,N.parent.parent,N.parent,w):t(N,fe,U.length===1?e.createDiagnosticForNode(N,e.Diagnostics._0_is_declared_but_its_value_is_never_read,cy(e.first(U).name)):e.createDiagnosticForNode(N,e.Diagnostics.All_destructured_elements_are_unused));else for(var Oe=0,je=U;Oe<je.length;Oe++){var ze=je[Oe];t(ze,fe,e.createDiagnosticForNode(ze,e.Diagnostics._0_is_declared_but_its_value_is_never_read,cy(ze.name)))}}),s.forEach(function(f){var N=f[0],U=f[1];if(N.declarations.length===U.length)t(N,0,U.length===1?e.createDiagnosticForNode(e.first(U).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,cy(e.first(U).name)):e.createDiagnosticForNode(N.parent.kind===236?N.parent:N,e.Diagnostics.All_variables_are_unused));else for(var fe=0,Oe=U;fe<Oe.length;fe++){var je=Oe[fe];t(je,0,e.createDiagnosticForNode(je,e.Diagnostics._0_is_declared_but_its_value_is_never_read,cy(je.name)))}})}function cy(r){switch(r.kind){case 79:return e.idText(r);case 201:case 200:return cy(e.cast(e.first(r.elements),e.isBindingElement).name);default:return e.Debug.assertNever(r)}}function jI(r){return r.kind===266||r.kind===269||r.kind===267}function T5(r){return r.kind===266?r:r.kind===267?r.parent:r.parent.parent}function _E(r){if(r.kind===234&&Af(r),e.isFunctionOrModuleBlock(r)){var t=wr;e.forEach(r.statements,Ji),wr=t}else e.forEach(r.statements,Ji);r.locals&&kd(r)}function S5(r){Ne>=2||!e.hasRestParameter(r)||r.flags&8388608||e.nodeIsMissing(r.body)||e.forEach(r.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===Hr.escapedName&&cc("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function kv(r,t,a){if((t==null?void 0:t.escapedText)!==a||r.kind===166||r.kind===165||r.kind===168||r.kind===167||r.kind===171||r.kind===172||r.kind===294||r.flags&8388608||(e.isImportClause(r)||e.isImportEqualsDeclaration(r)||e.isImportSpecifier(r))&&e.isTypeOnlyImportOrExportDeclaration(r))return!1;var o=e.getRootDeclaration(r);return!(e.isParameter(o)&&e.nodeIsMissing(o.parent.body))}function D5(r){e.findAncestor(r,function(t){if(Vm(t)&4){var a=r.kind!==79;return a?Br(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Br(r,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function L5(r){e.findAncestor(r,function(t){if(Vm(t)&8){var a=r.kind!==79;return a?Br(e.getNameOfDeclaration(r),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Br(r,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function A5(r,t){if(!(ve>=e.ModuleKind.ES2015&&!(ve>=e.ModuleKind.Node12&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS))&&!(!t||!kv(r,t,"require")&&!kv(r,t,"exports"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var a=ca(r);a.kind===303&&e.isExternalOrCommonJsModule(a)&&cc("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function C5(r,t){if(!(!t||Ne>=4||!kv(r,t,"Promise"))&&!(e.isModuleDeclaration(r)&&e.getModuleInstanceState(r)!==1)){var a=ca(r);a.kind===303&&e.isExternalOrCommonJsModule(a)&&a.flags&2048&&cc("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}function x5(r,t){Ne<=8&&(kv(r,t,"WeakMap")||kv(r,t,"WeakSet"))&&On.push(r)}function I5(r){var t=e.getEnclosingBlockScopeContainer(r);Vm(t)&67108864&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),cc("noEmit",r,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function N5(r,t){t&&Ne>=2&&Ne<=8&&kv(r,t,"Reflect")&&Jn.push(r)}function k5(r){var t=!1;if(e.isClassExpression(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];if(Vm(s)&134217728){t=!0;break}}else if(e.isFunctionExpression(r))Vm(r)&134217728&&(t=!0);else{var f=e.getEnclosingBlockScopeContainer(r);f&&Vm(f)&134217728&&(t=!0)}t&&(e.Debug.assert(e.isNamedDeclaration(r)&&e.isIdentifier(r.name),"The target of a Reflect collision check should be an identifier"),cc("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(r.name),"Reflect"))}function kg(r,t){!t||(A5(r,t),C5(r,t),x5(r,t),N5(r,t),e.isClassLike(r)?(Rg(t,e.Diagnostics.Class_name_cannot_be_0),r.flags&8388608||a8(t)):e.isEnumDeclaration(r)&&Rg(t,e.Diagnostics.Enum_name_cannot_be_0))}function O5(r){if(!((e.getCombinedNodeFlags(r)&3)!==0||e.isParameterDeclaration(r))&&!(r.kind===253&&!r.initializer)){var t=xn(r);if(t.flags&1){if(!e.isIdentifier(r.name))return e.Debug.fail();var a=Ho(r,r.name.escapedText,3,void 0,void 0,!1);if(a&&a!==t&&a.flags&2&&yv(a)&3){var o=e.getAncestor(a.valueDeclaration,254),s=o.parent.kind===236&&o.parent.parent?o.parent.parent:void 0,f=s&&(s.kind===234&&e.isFunctionLike(s.parent)||s.kind===261||s.kind===260||s.kind===303);if(!f){var N=Ja(a);Br(r,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,N,N)}}}}}function Ov(r){return r===dr?ke:r===Ln?Wt:r}function mE(r){var t;if(oy(r),e.isBindingElement(r)||Ji(r.type),!!r.name){if(r.name.kind===161&&(td(r.name),r.initializer&&Cs(r.initializer)),e.isBindingElement(r)){e.isObjectBindingPattern(r.parent)&&r.dotDotDotToken&&Ne<5&&tl(r,4),r.propertyName&&r.propertyName.kind===161&&td(r.propertyName);var a=r.parent.parent,o=Lo(a),s=r.propertyName||r.name;if(o&&!e.isBindingPattern(s)){var f=lp(s);if(Yu(f)){var N=Au(f),U=pi(o,N);U&&(Qh(U,void 0,!1),pT(r,!!a.initializer&&a.initializer.kind===106,!1,o,U))}}}if(e.isBindingPattern(r.name)&&(r.name.kind===201&&Ne<2&&We.downlevelIteration&&tl(r,512),e.forEach(r.name.elements,Ji)),r.initializer&&e.isParameterDeclaration(r)&&e.nodeIsMissing(e.getContainingFunction(r).body)){Br(r,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(r.name)){var fe=r.initializer&&r.parent.parent.kind!==242,Oe=r.name.elements.length===0;if(fe||Oe){var je=su(r);if(fe){var ze=Cs(r.initializer);Er&&Oe?vx(ze,r):pp(ze,su(r),r,r.initializer)}Oe&&(e.isArrayBindingPattern(r.name)?Od(65,je,Rr,r):Er&&vx(je,r))}return}var tr=xn(r);if(tr.flags&2097152&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)){yE(r);return}var _r=Ov(En(tr));if(r===tr.valueDeclaration){var Vr=e.getEffectiveInitializer(r);if(Vr){var $r=e.isInJSFile(r)&&e.isObjectLiteralExpression(Vr)&&(Vr.properties.length===0||e.isPrototypeAccess(r.name))&&!!(!((t=tr.exports)===null||t===void 0)&&t.size);!$r&&r.parent.parent.kind!==242&&pp(Cs(Vr),_r,r,Vr,void 0)}tr.declarations&&tr.declarations.length>1&&e.some(tr.declarations,function(St){return St!==r&&e.isVariableLike(St)&&!JI(St,r)})&&Br(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}else{var Tt=Ov(su(r));!Za(_r)&&!Za(Tt)&&!Qf(_r,Tt)&&!(tr.flags&67108864)&&HI(tr.valueDeclaration,_r,r,Tt),r.initializer&&pp(Cs(r.initializer),Tt,r,r.initializer,void 0),tr.valueDeclaration&&!JI(r,tr.valueDeclaration)&&Br(r.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(r.name))}r.kind!==166&&r.kind!==165&&(Av(r),(r.kind===253||r.kind===202)&&O5(r),kg(r,r.name))}}function HI(r,t,a,o){var s=e.getNameOfDeclaration(a),f=a.kind===166||a.kind===165?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,N=e.declarationNameToString(s),U=Br(s,f,N,pn(t),pn(o));r&&e.addRelatedInfo(U,e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,N))}function JI(r,t){if(r.kind===163&&t.kind===253||r.kind===253&&t.kind===163)return!0;if(e.hasQuestionToken(r)!==e.hasQuestionToken(t))return!1;var a=504;return e.getSelectedEffectiveModifierFlags(r,a)===e.getSelectedEffectiveModifierFlags(t,a)}function qT(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end}),fF(r),mE(r),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function R5(r){return lF(r),mE(r)}function w5(r){!Lf(r)&&!gS(r.declarationList)&&dF(r),e.forEach(r.declarationList.declarations,Ji)}function M5(r){Af(r),fi(r.expression)}function P5(r){Af(r);var t=Og(r.expression);XT(r.expression,t,r.thenStatement),Ji(r.thenStatement),r.thenStatement.kind===235&&Br(r.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ji(r.elseStatement)}function XT(r,t,a){if(!!Er&&!mc(t)){var o=e.isBinaryExpression(r)?r.right:r;if(!(e.isPropertyAccessExpression(o)&&yI(o.expression))){var s=e.isIdentifier(o)?o:e.isPropertyAccessExpression(o)?o.name:e.isBinaryExpression(o)&&e.isIdentifier(o.right)?o.right:void 0,f=Li(t,0),N=!!Cv(t);if(!(f.length===0&&!N)){var U=s&&Jc(s);if(!(!U&&!N)){var fe=U&&e.isBinaryExpression(r.parent)&&G5(r.parent,U)||U&&a&&F5(r,a,s,U);fe||(N?wc(o,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,jf(t)):Br(o,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function F5(r,t,a,o){return!!e.forEachChild(t,function s(f){if(e.isIdentifier(f)){var N=Jc(f);if(N&&N===o){if(e.isIdentifier(r))return!0;for(var U=a.parent,fe=f.parent;U&&fe;){if(e.isIdentifier(U)&&e.isIdentifier(fe)||U.kind===108&&fe.kind===108)return Jc(U)===Jc(fe);if(e.isPropertyAccessExpression(U)&&e.isPropertyAccessExpression(fe)){if(Jc(U.name)!==Jc(fe.name))return!1;fe=fe.expression,U=U.expression}else if(e.isCallExpression(U)&&e.isCallExpression(fe))fe=fe.expression,U=U.expression;else return!1}}}return e.forEachChild(f,s)})}function G5(r,t){for(;e.isBinaryExpression(r)&&r.operatorToken.kind===55;){var a=e.forEachChild(r.right,function o(s){if(e.isIdentifier(s)){var f=Jc(s);if(f&&f===t)return!0}return e.forEachChild(s,o)});if(a)return!0;r=r.parent}return!1}function B5(r){Af(r),Ji(r.statement),Og(r.expression)}function U5(r){Af(r),Og(r.expression),Ji(r.statement)}function KI(r,t){return r.flags&16384&&Br(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function Og(r,t){return KI(fi(r,t),r)}function V5(r){Af(r)||r.initializer&&r.initializer.kind===254&&gS(r.initializer),r.initializer&&(r.initializer.kind===254?e.forEach(r.initializer.declarations,qT):fi(r.initializer)),r.condition&&Og(r.condition),r.incrementor&&fi(r.incrementor),Ji(r.statement),r.locals&&kd(r)}function W5(r){FN(r);var t=e.getContainingFunctionOrClassStaticBlock(r);if(r.awaitModifier)if(t&&e.isClassStaticBlockDeclaration(t))cn(r.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var a=e.getFunctionFlags(t);(a&6)===2&&Ne<99&&tl(r,16384)}else We.downlevelIteration&&Ne<2&&tl(r,256);if(r.initializer.kind===254)zI(r);else{var o=r.initializer,s=uy(r);if(o.kind===203||o.kind===204)O_(o,s||Qe);else{var f=fi(o);Dv(o,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),s&&pp(s,f,o,r.expression)}}Ji(r.statement),r.locals&&kd(r)}function j5(r){FN(r);var t=_T(fi(r.expression));if(r.initializer.kind===254){var a=r.initializer.declarations[0];a&&e.isBindingPattern(a.name)&&Br(a.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),zI(r)}else{var o=r.initializer,s=fi(o);o.kind===203||o.kind===204?Br(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):$i(v4(t),s)?Dv(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Br(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(t===nn||!hs(t,126091264))&&Br(r.expression,e.Diagnostics.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,pn(t)),Ji(r.statement),r.locals&&kd(r)}function zI(r){var t=r.initializer;if(t.declarations.length>=1){var a=t.declarations[0];qT(a)}}function uy(r){var t=r.awaitModifier?15:13;return Od(t,Sg(r.expression),Rr,r.expression)}function Od(r,t,a,o){return wa(t)?t:YT(r,t,a,o,!0)||ke}function YT(r,t,a,o,s){var f=(r&2)!==0;if(t===nn){eS(o,t,f);return}var N=Ne>=2,U=!N&&We.downlevelIteration,fe=We.noUncheckedIndexedAccess&&!!(r&128);if(N||U||f){var Oe=fy(t,r,N?o:void 0);if(s&&Oe){var je=r&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?e.Diagnostics.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;je&&Fl(a,Oe.nextType,o,je)}if(Oe||N)return fe?gv(Oe&&Oe.yieldType):Oe&&Oe.yieldType}var ze=t,tr=!1,_r=!1;if(r&4){if(ze.flags&1048576){var Vr=t.types,$r=e.filter(Vr,function(ua){return!(ua.flags&402653316)});$r!==Vr&&(ze=ha($r,2))}else ze.flags&402653316&&(ze=nn);if(_r=ze!==t,_r&&(Ne<1&&o&&(Br(o,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),tr=!0),ze.flags&131072))return fe?gv(pt):pt}if(!_p(ze)){if(o&&!tr){var Tt=!!(r&4)&&!_r,St=sn(Tt,U),It=St[0],jt=St[1];wc(o,jt&&!!Cv(ze),It,pn(ze))}return _r?fe?gv(pt):pt:void 0}var In=Qu(ze,Nt);if(_r&&In)return In.flags&402653316&&!We.noUncheckedIndexedAccess?pt:ha(fe?[In,pt,Rr]:[In,pt],2);return r&128?gv(In):In;function sn(ua,la){var _i;if(la)return ua?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];var ka=qI(r,0,t,void 0);return ka?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:H5((_i=t.symbol)===null||_i===void 0?void 0:_i.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ua?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}}function H5(r){switch(r){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 qI(r,t,a,o){if(!wa(a)){var s=fy(a,r,o);return s&&s[G(t)]}}function nd(r,t,a){if(r===void 0&&(r=nn),t===void 0&&(t=nn),a===void 0&&(a=Be),r.flags&67359327&&t.flags&180227&&a.flags&180227){var o=_c([r,t,a]),s=Do.get(o);return s||(s={yieldType:r,returnType:t,nextType:a},Do.set(o,s)),s}return{yieldType:r,returnType:t,nextType:a}}function XI(r){for(var t,a,o,s=0,f=r;s<f.length;s++){var N=f[s];if(!(N===void 0||N===Pa)){if(N===Ti)return Ti;t=e.append(t,N.yieldType),a=e.append(a,N.returnType),o=e.append(o,N.nextType)}}return t||a||o?nd(t&&ha(t),a&&ha(a),o&&To(o)):Pa}function gE(r,t){return r[t]}function $u(r,t,a){return r[t]=a}function fy(r,t,a){if(wa(r))return Ti;if(!(r.flags&1048576)){var o=YI(r,t,a);if(o===Pa){a&&eS(a,r,!!(t&2));return}return o}var s=t&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",f=gE(r,s);if(f)return f===Pa?void 0:f;for(var N,U=0,fe=r.types;U<fe.length;U++){var Oe=fe[U],je=YI(Oe,t,a);if(je===Pa){a&&eS(a,r,!!(t&2)),$u(r,s,Pa);return}else N=e.append(N,je)}var ze=N?XI(N):Pa;return $u(r,s,ze),ze===Pa?void 0:ze}function QT(r,t){if(r===Pa)return Pa;if(r===Ti)return Ti;var a=r.yieldType,o=r.returnType,s=r.nextType;return t&&G0(!0),nd(tm(a,t)||ke,tm(o,t)||ke,s)}function YI(r,t,a){if(wa(r))return Ti;if(t&2){var o=ZT(r,ko)||ZI(r,ko);if(o)return t&8?QT(o,a):o}if(t&1){var o=ZT(r,Oo)||ZI(r,Oo);if(o)if(t&2){if(o!==Pa)return $u(r,"iterationTypesOfAsyncIterable",QT(o,a))}else return o}if(t&2){var o=$T(r,ko,a);if(o!==Pa)return o}if(t&1){var o=$T(r,Oo,a);if(o!==Pa)return t&2?$u(r,"iterationTypesOfAsyncIterable",o?QT(o,a):Pa):o}return Pa}function ZT(r,t){return gE(r,t.iterableCacheKey)}function QI(r,t){var a=ZT(r,t)||$T(r,t,void 0);return a===Pa?No:a}function ZI(r,t){var a;if(Kf(r,a=t.getGlobalIterableType(!1))||Kf(r,a=t.getGlobalIterableIteratorType(!1))){var o=ho(r)[0],s=QI(a,t),f=s.returnType,N=s.nextType;return $u(r,t.iterableCacheKey,nd(t.resolveIterationType(o,void 0)||o,t.resolveIterationType(f,void 0)||f,N))}if(Kf(r,t.getGlobalGeneratorType(!1))){var U=ho(r),o=U[0],f=U[1],N=U[2];return $u(r,t.iterableCacheKey,nd(t.resolveIterationType(o,void 0)||o,t.resolveIterationType(f,void 0)||f,N))}}function J5(r){var t=qL(!1),a=t&&na(En(t),e.escapeLeadingUnderscores(r));return a&&Yu(a)?Au(a):"__@".concat(r)}function $T(r,t,a){var o,s=pi(r,J5(t.iteratorSymbolName)),f=s&&!(s.flags&16777216)?En(s):void 0;if(wa(f))return $u(r,t.iterableCacheKey,Ti);var N=f?Li(f,0):void 0;if(!e.some(N))return $u(r,t.iterableCacheKey,Pa);var U=To(e.map(N,_o)),fe=(o=$I(U,t,a))!==null&&o!==void 0?o:Pa;return $u(r,t.iterableCacheKey,fe)}function eS(r,t,a){var o=a?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;wc(r,!!Cv(t),o,pn(t))}function $I(r,t,a){if(wa(r))return Ti;var o=eN(r,t)||K5(r,t)||tN(r,t,a);return o===Pa?void 0:o}function eN(r,t){return gE(r,t.iteratorCacheKey)}function K5(r,t){var a=t.getGlobalIterableIteratorType(!1);if(Kf(r,a)){var o=ho(r)[0],s=eN(a,t)||tN(a,t,void 0),f=s===Pa?No:s,N=f.returnType,U=f.nextType;return $u(r,t.iteratorCacheKey,nd(o,N,U))}if(Kf(r,t.getGlobalIteratorType(!1))||Kf(r,t.getGlobalGeneratorType(!1))){var fe=ho(r),o=fe[0],N=fe[1],U=fe[2];return $u(r,t.iteratorCacheKey,nd(o,N,U))}}function rN(r,t){var a=na(r,"done")||st;return $i(t===0?st:Pn,a)}function z5(r){return rN(r,0)}function q5(r){return rN(r,1)}function X5(r){if(wa(r))return Ti;var t=gE(r,"iterationTypesOfIteratorResult");if(t)return t;if(Kf(r,VR(!1))){var a=ho(r)[0];return $u(r,"iterationTypesOfIteratorResult",nd(a,void 0,void 0))}if(Kf(r,WR(!1))){var o=ho(r)[0];return $u(r,"iterationTypesOfIteratorResult",nd(void 0,o,void 0))}var s=el(r,z5),f=s!==nn?na(s,"value"):void 0,N=el(r,q5),U=N!==nn?na(N,"value"):void 0;return!f&&!U?$u(r,"iterationTypesOfIteratorResult",Pa):$u(r,"iterationTypesOfIteratorResult",nd(f,U||Gn,void 0))}function rS(r,t,a,o){var s,f,N,U,fe=pi(r,a);if(!(!fe&&a!=="next")){var Oe=fe&&!(a==="next"&&fe.flags&16777216)?a==="next"?En(fe):Us(En(fe),2097152):void 0;if(wa(Oe))return a==="next"?Ti:mo;var je=Oe?Li(Oe,0):e.emptyArray;if(je.length===0){if(o){var ze=a==="next"?t.mustHaveANextMethodDiagnostic:t.mustBeAMethodDiagnostic;Br(o,ze,a)}return a==="next"?Ti:void 0}if((Oe==null?void 0:Oe.symbol)&&je.length===1){var tr=t.getGlobalGeneratorType(!1),_r=t.getGlobalIteratorType(!1),Vr=((f=(s=tr.symbol)===null||s===void 0?void 0:s.members)===null||f===void 0?void 0:f.get(a))===Oe.symbol,$r=!Vr&&((U=(N=_r.symbol)===null||N===void 0?void 0:N.members)===null||U===void 0?void 0:U.get(a))===Oe.symbol;if(Vr||$r){var Tt=Vr?tr:_r,St=Oe.mapper;return nd(dp(Tt.typeParameters[0],St),dp(Tt.typeParameters[1],St),a==="next"?dp(Tt.typeParameters[2],St):void 0)}}for(var It,jt,In=0,sn=je;In<sn.length;In++){var ua=sn[In];a!=="throw"&&e.some(ua.parameters)&&(It=e.append(It,Hc(ua,0))),jt=e.append(jt,_o(ua))}var la,_i;if(a!=="throw"){var ka=It?ha(It):Be;if(a==="next")_i=ka;else if(a==="return"){var xi=t.resolveIterationType(ka,o)||ke;la=e.append(la,xi)}}var Bi,Ii=jt?To(jt):nn,Co=t.resolveIterationType(Ii,o)||ke,Ht=X5(Co);return Ht===Pa?(o&&Br(o,t.mustHaveAValueDiagnostic,a),Bi=ke,la=e.append(la,ke)):(Bi=Ht.yieldType,la=e.append(la,Ht.returnType)),nd(Bi,ha(la),_i)}}function tN(r,t,a){var o=XI([rS(r,t,"next",a),rS(r,t,"return",a),rS(r,t,"throw",a)]);return $u(r,t.iteratorCacheKey,o)}function Bm(r,t,a){if(!wa(t)){var o=nN(t,a);return o&&o[G(r)]}}function nN(r,t){if(wa(r))return Ti;var a=t?2:1,o=t?ko:Oo;return fy(r,a,void 0)||$I(r,o,void 0)}function Y5(r){Af(r)||sF(r)}function vE(r,t){var a=!!(t&1),o=!!(t&2);return a?Bm(1,r,o)||Qe:o?Nd(r)||Qe:r}function aN(r,t){var a=vE(t,e.getFunctionFlags(r));return!!a&&Jo(a,16387)}function Q5(r){var t;if(!Af(r)){var a=e.getContainingFunctionOrClassStaticBlock(r);if(a&&e.isClassStaticBlockDeclaration(a)){Vs(r,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){Vs(r,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);return}var o=Iu(a),s=_o(o),f=e.getFunctionFlags(a);if(Er||r.expression||s.flags&131072){var N=r.expression?Cs(r.expression):Rr;if(a.kind===172)r.expression&&Br(r,e.Diagnostics.Setters_cannot_return_a_value);else if(a.kind===170)r.expression&&!pp(N,s,r,r.expression)&&Br(r,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(Tm(a)){var U=(t=vE(s,f))!==null&&t!==void 0?t:s,fe=f&2?Iv(N,!1,r,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):N;U&&pp(fe,U,r,r.expression)}}else a.kind!==170&&We.noImplicitReturns&&!aN(a,s)&&Br(r,e.Diagnostics.Not_all_code_paths_return_a_value)}}function Z5(r){Af(r)||r.flags&32768&&Vs(r,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),fi(r.expression);var t=e.getSourceFileOfNode(r);if(!R_(t)){var a=e.getSpanOfTokenAtPosition(t,r.pos).start,o=r.statement.pos;gp(t,a,o-a,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function $5(r){Af(r);var t,a=!1,o=fi(r.expression),s=Im(o);e.forEach(r.caseBlock.clauses,function(f){if(f.kind===289&&!a&&(t===void 0?t=f:(cn(f,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),a=!0)),_e&&f.kind===288){var N=fi(f.expression),U=Im(N),fe=o;(!U||!s)&&(N=U?Ru(N):N,fe=Ru(o)),FT(fe,N)||jA(N,fe,f.expression,void 0)}e.forEach(f.statements,Ji),We.noFallthroughCasesInSwitch&&f.fallthroughFlowNode&&jh(f.fallthroughFlowNode)&&Br(f,e.Diagnostics.Fallthrough_case_in_switch)}),r.caseBlock.locals&&kd(r.caseBlock)}function e8(r){Af(r)||e.findAncestor(r.parent,function(t){return e.isFunctionLike(t)?"quit":t.kind===249&&t.label.escapedText===r.label.escapedText?(cn(r.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(r.label)),!0):!1}),Ji(r.statement)}function r8(r){Af(r)||e.isIdentifier(r.expression)&&!r.expression.escapedText&&SF(r,e.Diagnostics.Line_break_not_permitted_here),r.expression&&fi(r.expression)}function t8(r){Af(r),_E(r.tryBlock);var t=r.catchClause;if(t){if(t.variableDeclaration){var a=t.variableDeclaration,o=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(a));if(o){var s=np(a,!1);s&&!(s.flags&3)&&Vs(o,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(a.initializer)Vs(a.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var f=t.block.locals;f&&e.forEachKey(t.locals,function(N){var U=f.get(N);(U==null?void 0:U.valueDeclaration)&&(U.flags&2)!==0&&cn(U.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,N)})}}_E(t.block)}r.finallyBlock&&_E(r.finallyBlock)}function hE(r,t,a){var o=Bs(r);if(o.length!==0){for(var s=0,f=zf(r);s<f.length;s++){var N=f[s];a&&N.flags&4194304||iN(r,N,fg(N,8576,!0),Jf(N))}var U=t.valueDeclaration;if(U&&e.isClassLike(U))for(var fe=0,Oe=U.members;fe<Oe.length;fe++){var je=Oe[fe];if(!e.isStatic(je)&&!b_(je)){var ze=xn(je);iN(r,ze,rl(je.name.expression),Jf(ze))}}if(o.length>1)for(var tr=0,_r=o;tr<_r.length;tr++){var Vr=_r[tr];n8(r,Vr)}}}function iN(r,t,a,o){var s=t.valueDeclaration,f=e.getNameOfDeclaration(s);if(!(f&&e.isPrivateIdentifier(f)))for(var N=$y(r,a),U=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,fe=s&&s.kind===220||f&&f.kind===161||Ls(t)===r.symbol?s:void 0,Oe=function(_r){var Vr=_r.declaration&&Ls(xn(_r.declaration))===r.symbol?_r.declaration:void 0,$r=fe||Vr||(U&&!e.some(Gs(r),function(Tt){return!!Sd(Tt,t.escapedName)&&!!Qu(Tt,_r.keyType)})?U:void 0);$r&&!$i(o,_r.type)&&Br($r,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ja(t),pn(o),pn(_r.keyType),pn(_r.type))},je=0,ze=N;je<ze.length;je++){var tr=ze[je];Oe(tr)}}function n8(r,t){for(var a=t.declaration,o=$y(r,t.keyType),s=e.getObjectFlags(r)&2?e.getDeclarationOfKind(r.symbol,257):void 0,f=a&&Ls(xn(a))===r.symbol?a:void 0,N=function(je){if(je===t)return"continue";var ze=je.declaration&&Ls(xn(je.declaration))===r.symbol?je.declaration:void 0,tr=f||ze||(s&&!e.some(Gs(r),function(_r){return!!cu(_r,t.keyType)&&!!Qu(_r,je.keyType)})?s:void 0);tr&&!$i(t.type,je.type)&&Br(tr,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,pn(t.keyType),pn(t.type),pn(je.keyType),pn(je.type))},U=0,fe=o;U<fe.length;U++){var Oe=fe[U];N(Oe)}}function Rg(r,t){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Br(r,t,r.escapedText)}}function a8(r){Ne>=1&&r.escapedText==="Object"&&(ve<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&Br(r,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[ve])}function dy(r){if(r)for(var t=!1,a=0;a<r.length;a++){var o=r[a];if(AI(o),_e){o.default?(t=!0,i8(o.default,r,a)):t&&Br(o,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var s=0;s<a;s++)r[s].symbol===o.symbol&&Br(o.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(o.name))}}}function i8(r,t,a){o(r);function o(s){if(s.kind===177){var f=xh(s);if(f.flags&262144)for(var N=a;N<t.length;N++)f.symbol===xn(t[N])&&Br(s,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(s,o)}}function oN(r){if(!(r.declarations&&r.declarations.length===1)){var t=Va(r);if(!t.typeParametersChecked){t.typeParametersChecked=!0;var a=p8(r);if(!a||a.length<=1)return;var o=vo(r);if(!o8(a,o.localTypeParameters))for(var s=Ja(r),f=0,N=a;f<N.length;f++){var U=N[f];Br(U.name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,s)}}}}function o8(r,t){for(var a=e.length(t),o=uu(t),s=0,f=r;s<f.length;s++){var N=f[s],U=e.getEffectiveTypeParameterDeclarations(N),fe=U.length;if(fe<o||fe>a)return!1;for(var Oe=0;Oe<fe;Oe++){var je=U[Oe],ze=t[Oe];if(je.name.escapedText!==ze.symbol.escapedName)return!1;var tr=e.getEffectiveConstraintOfTypeParameter(je),_r=tr&&xa(tr),Vr=bl(ze);if(_r&&Vr&&!Qf(_r,Vr))return!1;var $r=je.default&&xa(je.default),Tt=ee(ze);if($r&&Tt&&!Qf($r,Tt))return!1}}return!0}function s8(r){return sN(r),Rv(r),En(xn(r))}function l8(r){e.forEach(r.members,Ji),kd(r)}function c8(r){e.some(r.decorators)&&e.some(r.members,function(t){return e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)})&&cn(r.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!e.hasSyntacticModifier(r,512)&&Vs(r,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),sN(r),e.forEach(r.members,Ji),kd(r)}function sN(r){H7(r),oy(r),kg(r,r.name),dy(e.getEffectiveTypeParameterDeclarations(r)),Av(r);var t=xn(r),a=vo(t),o=yl(a),s=En(t);oN(t),dE(t),P3(r);var f=!!(r.flags&8388608);f||F3(r);var N=e.getEffectiveBaseTypeNode(r);if(N){e.forEach(N.typeArguments,Ji),Ne<2&&tl(N.parent,1);var U=e.getClassExtendsHeritageElement(r);U&&U!==N&&fi(U.expression);var fe=Gs(a);if(fe.length&&_e){var Oe=fe[0],je=Lu(a),ze=Dn(je);if(f8(ze,N),Ji(N.expression),e.some(N.typeArguments)){e.forEach(N.typeArguments,Ji);for(var tr=0,_r=_m(ze,N.typeArguments,N);tr<_r.length;tr++){var Vr=_r[tr];if(!OI(N,Vr.typeParameters))break}}var $r=yl(Oe,a.thisType);if(Fl(o,$r,void 0)?Fl(s,BA(ze),r.name||r,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):uN(r,o,$r,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),je.flags&8650752)if(!W_(s))Br(r.name||r,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var Tt=Li(je,1);Tt.some(function(_i){return _i.flags&4})&&!e.hasSyntacticModifier(r,128)&&Br(r.name||r,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(ze.symbol&&ze.symbol.flags&32)&&!(je.flags&8650752)){var St=Ym(ze,N.typeArguments,N);e.forEach(St,function(_i){return!_u(_i.declaration)&&!Qf(_o(_i),Oe)})&&Br(N.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}_8(a,Oe)}}u8(r,a,o,s);var It=e.getEffectiveImplementsTypeNodes(r);if(It)for(var jt=0,In=It;jt<In.length;jt++){var sn=In[jt];if((!e.isEntityNameExpression(sn.expression)||e.isOptionalChain(sn.expression))&&Br(sn.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),jT(sn),_e){var ua=to(xa(sn));if(!Za(ua))if(qu(ua)){var la=ua.symbol&&ua.symbol.flags&32?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,$r=yl(ua,a.thisType);Fl(o,$r,void 0)||uN(r,o,$r,la)}else Br(sn,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}_e&&(hE(a,t),hE(s,t,!0),UT(r),v8(r))}function u8(r,t,a,o){for(var s=e.getEffectiveBaseTypeNode(r),f=s&&Gs(t),N=f!=null&&f.length?yl(e.first(f),t.thisType):void 0,U=Lu(t),fe=function(tr){if(e.hasAmbientModifier(tr))return"continue";e.isConstructorDeclaration(tr)&&e.forEach(tr.parameters,function(_r){e.isParameterPropertyDeclaration(_r,tr)&&lN(r,o,U,N,t,a,_r,!0)}),lN(r,o,U,N,t,a,tr,!1)},Oe=0,je=r.members;Oe<je.length;Oe++){var ze=je[Oe];fe(ze)}}function lN(r,t,a,o,s,f,N,U,fe){fe===void 0&&(fe=!0);var Oe=N.name&&Jc(N.name)||Jc(N);return Oe?cN(r,t,a,o,s,f,e.hasOverrideModifier(N),e.hasAbstractModifier(N),e.isStatic(N),U,e.symbolName(Oe),fe?N:void 0):0}function cN(r,t,a,o,s,f,N,U,fe,Oe,je,ze){var tr=e.isInJSFile(r),_r=!!(r.flags&8388608);if(o&&(N||We.noImplicitOverride)){var Vr=e.escapeLeadingUnderscores(je),$r=fe?t:f,Tt=fe?a:o,St=pi($r,Vr),It=pi(Tt,Vr),jt=pn(o);if(St&&!It&&N){if(ze){var In=Ax(je,Tt);In?Br(ze,tr?e.Diagnostics.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:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,jt,Ja(In)):Br(ze,tr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,jt)}return 2}else if(St&&(It==null?void 0:It.declarations)&&We.noImplicitOverride&&!_r){var sn=e.some(It.declarations,e.hasAbstractModifier);if(N)return 0;if(sn){if(U&&sn)return ze&&Br(ze,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,jt),1}else{if(ze){var ua=Oe?tr?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:tr?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Br(ze,ua,jt)}return 1}}}else if(N){if(ze){var la=pn(s);Br(ze,tr?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,la)}return 2}return 0}function uN(r,t,a,o){for(var s=!1,f=function(Oe){if(e.isStatic(Oe))return"continue";var je=Oe.name&&Jc(Oe.name)||Jc(Oe);if(je){var ze=pi(t,je.escapedName),tr=pi(a,je.escapedName);if(ze&&tr){var _r=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ja(je),pn(t),pn(a))};Fl(En(ze),En(tr),Oe.name||Oe,void 0,_r)||(s=!0)}}},N=0,U=r.members;N<U.length;N++){var fe=U[N];f(fe)}s||Fl(t,a,r.name||r,o)}function f8(r,t){var a=Li(r,1);if(a.length){var o=a[0].declaration;if(o&&e.hasEffectiveModifier(o,8)){var s=e.getClassLikeDeclarationOfSymbol(r.symbol);oS(t,s)||Br(t,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Xs(r.symbol))}}}function d8(r,t){if(!t.name)return 0;var a=xn(r),o=vo(a),s=yl(o),f=En(a),N=e.getEffectiveBaseTypeNode(r),U=N&&Gs(o),fe=U!=null&&U.length?yl(e.first(U),o.thisType):void 0,Oe=Lu(o),je=t.parent?e.hasOverrideModifier(t):e.hasSyntacticModifier(t,16384),ze=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(t.name));return cN(r,f,Oe,fe,o,s,je,e.hasAbstractModifier(t),e.isStatic(t),!1,ze)}function Um(r){return e.getCheckFlags(r)&1?r.target:r}function p8(r){return e.filter(r.declarations,function(t){return t.kind===256||t.kind===257})}function _8(r,t){var a,o,s=ro(t);e:for(var f=0,N=s;f<N.length;f++){var U=N[f],fe=Um(U);if(!(fe.flags&4194304)){var Oe=Sd(r,fe.escapedName);if(!!Oe){var je=Um(Oe),ze=e.getDeclarationModifierFlagsFromSymbol(fe);if(e.Debug.assert(!!je,"derived should point to something, even if it is the base class' declaration."),je===fe){var tr=e.getClassLikeDeclarationOfSymbol(r.symbol);if(ze&128&&(!tr||!e.hasSyntacticModifier(tr,128))){for(var _r=0,Vr=Gs(r);_r<Vr.length;_r++){var $r=Vr[_r];if($r!==t){var Tt=Sd($r,fe.escapedName),St=Tt&&Um(Tt);if(St&&St!==fe)continue e}}tr.kind===225?Br(tr,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ja(U),pn(t)):Br(tr,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,pn(r),Ja(U),pn(t))}}else{var It=e.getDeclarationModifierFlagsFromSymbol(je);if(ze&8||It&8)continue;var jt=void 0,In=fe.flags&98308,sn=je.flags&98308;if(In&&sn){if(ze&128&&!(fe.valueDeclaration&&e.isPropertyDeclaration(fe.valueDeclaration)&&fe.valueDeclaration.initializer)||fe.valueDeclaration&&fe.valueDeclaration.parent.kind===257||je.valueDeclaration&&e.isBinaryExpression(je.valueDeclaration))continue;var ua=In!==4&&sn===4,la=In===4&&sn!==4;if(ua||la){var _i=ua?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Br(e.getNameOfDeclaration(je.valueDeclaration)||je.valueDeclaration,_i,Ja(fe),pn(t),pn(r))}else if(Ve){var ka=(a=je.declarations)===null||a===void 0?void 0:a.find(function(Co){return Co.kind===166&&!Co.initializer});if(ka&&!(je.flags&33554432)&&!(ze&128)&&!(It&128)&&!(!((o=je.declarations)===null||o===void 0)&&o.some(function(Co){return!!(Co.flags&8388608)}))){var xi=Vu(e.getClassLikeDeclarationOfSymbol(r.symbol)),Bi=ka.name;if(ka.exclamationToken||!xi||!e.isIdentifier(Bi)||!Er||!dN(Bi,r,xi)){var Ii=e.Diagnostics.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;Br(e.getNameOfDeclaration(je.valueDeclaration)||je.valueDeclaration,Ii,Ja(fe),pn(t))}}}continue}else if(dT(fe)){if(dT(je)||je.flags&4)continue;e.Debug.assert(!!(je.flags&98304)),jt=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else fe.flags&98304?jt=e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:jt=e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Br(e.getNameOfDeclaration(je.valueDeclaration)||je.valueDeclaration,jt,pn(t),Ja(fe),pn(r))}}}}}function m8(r,t,a){if(!e.length(t))return a;var o=new e.Map;e.forEach(a,function(tr){o.set(tr.escapedName,tr)});for(var s=0,f=t;s<f.length;s++)for(var N=f[s],U=ro(yl(N,r.thisType)),fe=0,Oe=U;fe<Oe.length;fe++){var je=Oe[fe],ze=o.get(je.escapedName);ze&&!ZA(ze,je)&&o.delete(je.escapedName)}return e.arrayFrom(o.values())}function g8(r,t){var a=Gs(r);if(a.length<2)return!0;var o=new e.Map;e.forEach(fh(r).declaredProperties,function(St){o.set(St.escapedName,{prop:St,containingType:r})});for(var s=!0,f=0,N=a;f<N.length;f++)for(var U=N[f],fe=ro(yl(U,r.thisType)),Oe=0,je=fe;Oe<je.length;Oe++){var ze=je[Oe],tr=o.get(ze.escapedName);if(!tr)o.set(ze.escapedName,{prop:ze,containingType:U});else{var _r=tr.containingType!==r;if(_r&&!ZA(tr.prop,ze)){s=!1;var Vr=pn(tr.containingType),$r=pn(U),Tt=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ja(ze),Vr,$r);Tt=e.chainDiagnosticMessages(Tt,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,pn(r),Vr,$r),fa.add(e.createDiagnosticForNodeFromMessageChain(t,Tt))}}}return s}function v8(r){if(!(!Er||!xr||r.flags&8388608))for(var t=Vu(r),a=0,o=r.members;a<o.length;a++){var s=o[a];if(!(e.getEffectiveModifierFlags(s)&2)&&!e.isStatic(s)&&fN(s)){var f=s.name;if(e.isIdentifier(f)||e.isPrivateIdentifier(f)){var N=En(xn(s));N.flags&3||mc(N)&32768||(!t||!dN(f,N,t))&&Br(s.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(f))}}}}function fN(r){return r.kind===166&&!e.hasAbstractModifier(r)&&!r.exclamationToken&&!r.initializer}function h8(r,t,a,o,s){for(var f=0,N=a;f<N.length;f++){var U=N[f];if(U.pos>=o&&U.pos<=s){var fe=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(fe.expression,fe),e.setParent(fe,U),fe.flowNode=U.returnFlowNode;var Oe=I_(fe,t,$f(t));if(!(mc(Oe)&32768))return!0}}return!1}function dN(r,t,a){var o=e.factory.createPropertyAccessExpression(e.factory.createThis(),r);e.setParent(o.expression,o),e.setParent(o,a),o.flowNode=a.returnFlowNode;var s=I_(o,t,$f(t));return!(mc(s)&32768)}function y8(r){if(Lf(r)||$7(r),dy(r.typeParameters),_e){Rg(r.name,e.Diagnostics.Interface_name_cannot_be_0),Av(r);var t=xn(r);oN(t);var a=e.getDeclarationOfKind(t,257);if(r===a){var o=vo(t),s=yl(o);if(g8(o,r.name)){for(var f=0,N=Gs(o);f<N.length;f++){var U=N[f];Fl(s,yl(U,o.thisType),r.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1)}hE(o,t)}}II(r)}e.forEach(e.getInterfaceBaseTypeNodes(r),function(fe){(!e.isEntityNameExpression(fe.expression)||e.isOptionalChain(fe.expression))&&Br(fe.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),jT(fe)}),e.forEach(r.members,Ji),_e&&(UT(r),kd(r))}function b8(r){Lf(r),Rg(r.name,e.Diagnostics.Type_alias_name_cannot_be_0),Av(r),dy(r.typeParameters),r.type.kind===138?(!M.has(r.name.escapedText)||e.length(r.typeParameters)!==1)&&Br(r.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Ji(r.type),kd(r))}function pN(r){var t=Zn(r);if(!(t.flags&16384)){t.flags|=16384;for(var a=0,o=0,s=r.members;o<s.length;o++){var f=s[o],N=E8(f,a);Zn(f).enumMemberValue=N,a=typeof N=="number"?N+1:void 0}}}function E8(r,t){if(e.isComputedNonLiteralName(r.name))Br(r.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var a=e.getTextOfPropertyName(r.name);rd(a)&&!e.isInfinityOrNaNString(a)&&Br(r.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return T8(r);if(!(r.parent.flags&8388608&&!e.isEnumConst(r.parent)&&Mo(xn(r.parent))===0)){if(t!==void 0)return t;Br(r.name,e.Diagnostics.Enum_member_must_have_initializer)}}function T8(r){var t=Mo(xn(r.parent)),a=e.isEnumConst(r.parent),o=r.initializer,s=t===1&&!qi(r)?void 0:N(o);if(s!==void 0)a&&typeof s=="number"&&!isFinite(s)&&Br(o,isNaN(s)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(t===1)return Br(o,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(a)Br(o,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(r.parent.flags&8388608)Br(o,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var f=fi(o);hs(f,296)?Fl(f,vo(xn(r.parent)),o,void 0):Br(o,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,pn(f))}}return s;function N(fe){switch(fe.kind){case 218:var Oe=N(fe.operand);if(typeof Oe=="number")switch(fe.operator){case 39:return Oe;case 40:return-Oe;case 54:return~Oe}break;case 220:var je=N(fe.left),ze=N(fe.right);if(typeof je=="number"&&typeof ze=="number")switch(fe.operatorToken.kind){case 51:return je|ze;case 50:return je&ze;case 48:return je>>ze;case 49:return je>>>ze;case 47:return je<<ze;case 52:return je^ze;case 41:return je*ze;case 43:return je/ze;case 39:return je+ze;case 40:return je-ze;case 44:return je%ze;case 42:return Math.pow(je,ze)}else if(typeof je=="string"&&typeof ze=="string"&&fe.operatorToken.kind===39)return je+ze;break;case 10:case 14:return fe.text;case 8:return vS(fe),+fe.text;case 211:return N(fe.expression);case 79:var tr=fe;return e.isInfinityOrNaNString(tr.escapedText)?+tr.escapedText:e.nodeIsMissing(fe)?0:U(fe,xn(r.parent),tr.escapedText);case 206:case 205:var _r=fe;if(tS(_r)){var Vr=rl(_r.expression);if(Vr.symbol&&Vr.symbol.flags&384){var $r=void 0;return _r.kind===205?$r=_r.name.escapedText:$r=e.escapeLeadingUnderscores(e.cast(_r.argumentExpression,e.isLiteralExpression).text),U(fe,Vr.symbol,$r)}}break}}function U(fe,Oe,je){var ze=Oe.exports.get(je);if(ze){var tr=ze.valueDeclaration;if(tr!==r)return tr&&af(tr,r)?CE(tr):(Br(fe,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Br(fe,e.Diagnostics.Property_0_is_used_before_being_assigned,Ja(ze))}}}function tS(r){return r.kind===79||r.kind===205&&tS(r.expression)||r.kind===206&&tS(r.expression)&&e.isStringLiteralLike(r.argumentExpression)}function S8(r){if(!!_e){Lf(r),kg(r,r.name),Av(r),r.members.forEach(D8),pN(r);var t=xn(r),a=e.getDeclarationOfKind(t,r.kind);if(r===a){if(t.declarations&&t.declarations.length>1){var o=e.isEnumConst(r);e.forEach(t.declarations,function(f){e.isEnumDeclaration(f)&&e.isEnumConst(f)!==o&&Br(e.getNameOfDeclaration(f),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(t.declarations,function(f){if(f.kind!==259)return!1;var N=f;if(!N.members.length)return!1;var U=N.members[0];U.initializer||(s?Br(U.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function D8(r){e.isPrivateIdentifier(r.name)&&Br(r,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function L8(r){var t=r.declarations;if(t)for(var a=0,o=t;a<o.length;a++){var s=o[a];if((s.kind===256||s.kind===255&&e.nodeIsPresent(s.body))&&!(s.flags&8388608))return s}}function A8(r,t){var a=e.getEnclosingBlockScopeContainer(r),o=e.getEnclosingBlockScopeContainer(t);return Pc(a)?Pc(o):Pc(o)?!1:a===o}function C8(r){if(_e){var t=e.isGlobalScopeAugmentation(r),a=r.flags&8388608;t&&!a&&Br(r.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var o=e.isAmbientModule(r),s=o?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;if(py(r,s))return;Lf(r)||!a&&r.name.kind===10&&cn(r.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(r.name)&&kg(r,r.name),Av(r);var f=xn(r);if(f.flags&512&&!a&&f.declarations&&f.declarations.length>1&&B(r,e.shouldPreserveConstEnums(We))){var N=L8(f);N&&(e.getSourceFileOfNode(r)!==e.getSourceFileOfNode(N)?Br(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos<N.pos&&Br(r.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var U=e.getDeclarationOfKind(f,256);U&&A8(r,U)&&(Zn(r).flags|=32768)}if(o)if(e.isExternalModuleAugmentation(r)){var fe=t||xn(r).flags&33554432;if(fe&&r.body)for(var Oe=0,je=r.body.statements;Oe<je.length;Oe++){var ze=je[Oe];nS(ze,t)}}else Pc(r.parent)?t?Br(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(r.name))&&Br(r.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):t?Br(r.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Br(r.name,e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}r.body&&(Ji(r.body),e.isGlobalScopeAugmentation(r)||kd(r))}function nS(r,t){var a;switch(r.kind){case 236:for(var o=0,s=r.declarationList.declarations;o<s.length;o++){var f=s[o];nS(f,t)}break;case 270:case 271:Vs(r,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 264:case 265:Vs(r,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 202:case 253:var N=r.name;if(e.isBindingPattern(N)){for(var U=0,fe=N.elements;U<fe.length;U++){var Oe=fe[U];nS(Oe,t)}break}case 256:case 259:case 255:case 257:case 260:case 258:if(t)return;var je=xn(r);if(je){var ze=!(je.flags&33554432);ze||(ze=!!(!((a=je.parent)===null||a===void 0)&&a.declarations)&&e.isExternalModuleAugmentation(je.parent.declarations[0]))}break}}function x8(r){switch(r.kind){case 79:return r;case 160:do r=r.left;while(r.kind!==79);return r;case 205:do{if(e.isModuleExportsAccessExpression(r.expression)&&!e.isPrivateIdentifier(r.name))return r.name;r=r.expression}while(r.kind!==79);return r}}function aS(r){var t=e.getExternalModuleName(r);if(!t||e.nodeIsMissing(t))return!1;if(!e.isStringLiteral(t))return Br(t,e.Diagnostics.String_literal_expected),!1;var a=r.parent.kind===261&&e.isAmbientModule(r.parent.parent);return r.parent.kind!==303&&!a?(Br(t,r.kind===271?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1):a&&e.isExternalModuleNameRelative(t.text)&&!nc(r)?(Br(r,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1):!0}function yE(r){var t,a=xn(r),o=Go(a);if(o!==cr){a=Ha(a.exportSymbol||a);var s=(a.flags&1160127?111551:0)|(a.flags&788968?788968:0)|(a.flags&1920?1920:0);if(o.flags&s){var f=r.kind===274?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;Br(r,f,Ja(a))}if(We.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(r)&&!(r.flags&8388608)){var N=Cn(a),U=!(o.flags&111551);if(U||N)switch(r.kind){case 266:case 269:case 264:{if(We.preserveValueImports){e.Debug.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");var f=U?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,fe=e.idText(r.kind===269&&r.propertyName||r.name);of(Br(r,f,fe),U?void 0:N,fe)}break}case 274:if(e.getSourceFileOfNode(N)!==e.getSourceFileOfNode(r)){var f=U?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,fe=e.idText(r.propertyName||r.name);of(Br(r,f,fe),U?void 0:N,fe);return}}}e.isImportSpecifier(r)&&((t=o.declarations)===null||t===void 0?void 0:t.every(function(Oe){return!!(e.getCombinedNodeFlags(Oe)&134217728)}))&&Mc(r.name,o.declarations,a.escapedName)}}function bE(r){kg(r,r.name),yE(r),r.kind===269&&e.idText(r.propertyName||r.name)==="default"&&e.getESModuleInterop(We)&&ve!==e.ModuleKind.System&&(ve<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&tl(r,131072)}function _N(r){var t;if(r.assertClause){if(ve!==e.ModuleKind.ESNext)return cn(r.assertClause,e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext);if(e.isImportDeclaration(r)?(t=r.importClause)===null||t===void 0?void 0:t.isTypeOnly:r.isTypeOnly)return cn(r.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports)}}function I8(r){if(!py(r,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)){if(!Lf(r)&&e.hasEffectiveModifiers(r)&&Vs(r,e.Diagnostics.An_import_declaration_cannot_have_modifiers),aS(r)){var t=r.importClause;if(t&&!LF(t)&&(t.name&&bE(t),t.namedBindings))if(t.namedBindings.kind===267)bE(t.namedBindings),ve!==e.ModuleKind.System&&(ve<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(We)&&tl(r,65536);else{var a=Ys(r,r.moduleSpecifier);a&&e.forEach(t.namedBindings.elements,bE)}}_N(r)}}function N8(r){if(!py(r,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(Lf(r),e.isInternalModuleImportEqualsDeclaration(r)||aS(r)))if(bE(r),e.hasSyntacticModifier(r,1)&&us(r),r.moduleReference.kind!==276){var t=Go(xn(r));if(t!==cr){if(t.flags&111551){var a=e.getFirstIdentifier(r.moduleReference);fs(a,112575).flags&1920||Br(a,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(a))}t.flags&788968&&Rg(r.name,e.Diagnostics.Import_name_cannot_be_0)}r.isTypeOnly&&cn(r,e.Diagnostics.An_import_alias_cannot_use_import_type)}else ve>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&8388608)&&cn(r,e.Diagnostics.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 k8(r){if(!py(r,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)){if(!Lf(r)&&e.hasEffectiveModifiers(r)&&Vs(r,e.Diagnostics.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&e.isNamedExports(r.exportClause)&&e.length(r.exportClause.elements)&&Ne===0&&tl(r,4194304),O8(r),!r.moduleSpecifier||aS(r))if(r.exportClause&&!e.isNamespaceExport(r.exportClause)){e.forEach(r.exportClause.elements,G8);var t=r.parent.kind===261&&e.isAmbientModule(r.parent.parent),a=!t&&r.parent.kind===261&&!r.moduleSpecifier&&r.flags&8388608;r.parent.kind!==303&&!t&&!a&&Br(r,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var o=Ys(r,r.moduleSpecifier);o&&Ff(o)?Br(r.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ja(o)):r.exportClause&&yE(r.exportClause),ve!==e.ModuleKind.System&&(ve<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&(r.exportClause?e.getESModuleInterop(We)&&tl(r,65536):tl(r,32768))}_N(r)}}function O8(r){var t;return r.isTypeOnly?((t=r.exportClause)===null||t===void 0?void 0:t.kind)===272?HN(r.exportClause):cn(r,e.Diagnostics.Only_named_exports_may_use_export_type):!1}function py(r,t){var a=r.parent.kind===303||r.parent.kind===261||r.parent.kind===260;return a||Vs(r,t),!a}function R8(r){return e.forEachImportClauseDeclaration(r,function(t){return!!xn(t).isReferenced})}function w8(r){return e.forEachImportClauseDeclaration(r,function(t){return!!Va(xn(t)).constEnumReferenced})}function M8(r){return e.isImportDeclaration(r)&&r.importClause&&!r.importClause.isTypeOnly&&R8(r.importClause)&&!AE(r.importClause,!0)&&!w8(r.importClause)}function P8(r){return e.isImportEqualsDeclaration(r)&&e.isExternalModuleReference(r.moduleReference)&&!r.isTypeOnly&&xn(r).isReferenced&&!AE(r,!1)&&!Va(xn(r)).constEnumReferenced}function F8(r){for(var t=0,a=r.statements;t<a.length;t++){var o=a[t];(M8(o)||P8(o))&&Br(o,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}function G8(r){if(yE(r),e.getEmitDeclarations(We)&&yd(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)e.getESModuleInterop(We)&&ve!==e.ModuleKind.System&&(ve<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.idText(r.propertyName||r.name)==="default"&&tl(r,131072);else{var t=r.propertyName||r.name,a=Ho(t,t.escapedText,2998271,void 0,void 0,!0);if(a&&(a===He||a===lr||a.declarations&&Pc(ca(a.declarations[0]))))Br(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(t));else{us(r);var o=a&&(a.flags&2097152?Go(a):a);(!o||o===cr||o.flags&111551)&&Cs(r.propertyName||r.name)}}}function B8(r){var t=r.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(!py(r,t)){var a=r.parent.kind===303?r.parent:r.parent.parent;if(a.kind===260&&!e.isAmbientModule(a)){r.isExportEquals?Br(r,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Br(r,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Lf(r)&&e.hasEffectiveModifiers(r)&&Vs(r,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var o=e.getEffectiveTypeAnnotationNode(r);if(o&&Fl(Cs(r.expression),xa(o),r.expression),r.expression.kind===79){var s=r.expression,f=fs(s,67108863,!0,!0,r);if(f){Bb(f,s);var N=f.flags&2097152?Go(f):f;(N===cr||N.flags&111551)&&Cs(r.expression)}else Cs(r.expression);e.getEmitDeclarations(We)&&yd(r.expression,!0)}else Cs(r.expression);mN(a),r.flags&8388608&&!e.isEntityNameExpression(r.expression)&&cn(r.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&!(r.flags&8388608)&&(ve>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(r).impliedNodeFormat!==e.ModuleKind.CommonJS?cn(r,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ve===e.ModuleKind.System&&cn(r,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function U8(r){return e.forEachEntry(r.exports,function(t,a){return a!=="export="})}function mN(r){var t=xn(r),a=Va(t);if(!a.exportsChecked){var o=t.exports.get("export=");if(o&&U8(t)){var s=ec(o)||o.valueDeclaration;s&&!nc(s)&&!e.isInJSFile(s)&&Br(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var f=Ol(t);f&&f.forEach(function(N,U){var fe=N.declarations,Oe=N.flags;if(U!=="__export"&&!(Oe&1984)){var je=e.countWhere(fe,ie);if(!(Oe&524288&&je<=2)&&je>1&&!EE(fe))for(var ze=0,tr=fe;ze<tr.length;ze++){var _r=tr[ze];h(_r)&&fa.add(e.createDiagnosticForNode(_r,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(U)))}}}),a.exportsChecked=!0}}function EE(r){return r&&r.length>1&&r.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))})}function Ji(r){if(r){var t=Re;Re=r,Ge=0,V8(r),Re=t}}function V8(r){e.isInJSFile(r)&&e.forEach(r.jsDoc,function(a){var o=a.tags;return e.forEach(o,Ji)});var t=r.kind;if(ae)switch(t){case 260:case 256:case 257:case 255:ae.throwIfCancellationRequested()}switch(t>=236&&t<=252&&r.flowNode&&!jh(r.flowNode)&&Nl(We.allowUnreachableCode===!1,r,e.Diagnostics.Unreachable_code_detected),t){case 162:return AI(r);case 163:return CI(r);case 166:return NI(r);case 165:return G3(r);case 179:case 178:case 173:case 174:case 175:return Lv(r);case 168:case 167:return B3(r);case 169:return U3(r);case 170:return V3(r);case 171:case 172:return kI(r);case 177:return jT(r);case 176:return w3(r);case 180:return H3(r);case 181:return J3(r);case 182:return K3(r);case 183:return z3(r);case 186:case 187:return q3(r);case 190:case 184:case 185:return Ji(r.type);case 191:return Z3(r);case 192:return $3(r);case 188:return e5(r);case 189:return r5(r);case 197:return t5(r);case 199:return n5(r);case 196:return a5(r);case 326:return v5(r);case 327:return g5(r);case 343:case 336:case 337:return u5(r);case 342:return f5(r);case 341:return d5(r);case 338:return p5(r);case 345:return _5(r);case 315:m5(r);case 313:case 312:case 310:case 311:case 320:gN(r),e.forEachChild(r,Ji);return;case 316:W8(r);return;case 307:return Ji(r.type);case 331:case 333:case 332:return h5(r);case 193:return X3(r);case 194:return Y3(r);case 255:return c5(r);case 234:case 261:return _E(r);case 236:return w5(r);case 237:return M5(r);case 238:return P5(r);case 239:return B5(r);case 240:return U5(r);case 241:return V5(r);case 242:return j5(r);case 243:return W5(r);case 244:case 245:return Y5(r);case 246:return Q5(r);case 247:return Z5(r);case 248:return $5(r);case 249:return e8(r);case 250:return r8(r);case 251:return t8(r);case 253:return qT(r);case 202:return R5(r);case 256:return c8(r);case 257:return y8(r);case 258:return b8(r);case 259:return S8(r);case 260:return C8(r);case 265:return I8(r);case 264:return N8(r);case 271:return k8(r);case 270:return B8(r);case 235:case 252:Af(r);return;case 275:return W3(r)}}function gN(r){e.isInJSFile(r)||cn(r,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function W8(r){gN(r),Ji(r.type);var t=r.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent)){e.last(t.parent.parameters)!==t&&Br(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(t)||Br(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var a=r.parent.parent;if(!e.isJSDocParameterTag(a)){Br(r,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var o=e.getParameterSymbolFromJSDoc(a);if(!!o){var s=e.getHostSignatureFromJSDoc(a);(!s||e.last(s.parameters).symbol!==o)&&Br(r,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function j8(r){var t=xa(r.type),a=r.parent,o=r.parent.parent;if(e.isJSDocTypeExpression(r.parent)&&e.isJSDocParameterTag(o)){var s=e.getHostSignatureFromJSDoc(o),f=e.isJSDocCallbackTag(o.parent.parent);if(s||f){var N=f?e.lastOrUndefined(o.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),U=e.getParameterSymbolFromJSDoc(o);if(!N||U&&N.symbol===U&&e.isRestParameter(N))return Js(t)}}return e.isParameter(a)&&e.isJSDocFunctionType(a.parent)?Js(t):ac(t)}function Rv(r){var t=e.getSourceFileOfNode(r),a=Zn(t);if(!(a.flags&1)){a.deferredNodes=a.deferredNodes||new e.Map;var o=w(r);a.deferredNodes.set(o,r)}}function H8(r){var t=Zn(r);t.deferredNodes&&t.deferredNodes.forEach(J8)}function J8(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end});var t=Re;switch(Re=r,Ge=0,r.kind){case 207:case 208:case 209:case 164:case 279:Pm(r);break;case 212:case 213:case 168:case 167:t3(r);break;case 171:case 172:kI(r);break;case 225:l8(r);break;case 278:OM(r);break;case 277:wM(r);break}Re=t,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function iS(r){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:r.path},!0),e.performance.mark("beforeCheck"),K8(r),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function vN(r,t){if(t)return!1;switch(r){case 0:return!!We.noUnusedLocals;case 1:return!!We.noUnusedParameters;default:return e.Debug.assertNever(r)}}function hN(r){return da.get(r.path)||e.emptyArray}function K8(r){var t=Zn(r);if(!(t.flags&1)){if(e.skipTypeChecking(r,We,A))return;bF(r),e.clear(_n),e.clear(dn),e.clear(On),e.clear(Jn),e.forEach(r.statements,Ji),Ji(r.endOfFileToken),H8(r),e.isExternalOrCommonJsModule(r)&&kd(r),!r.isDeclarationFile&&(We.noUnusedLocals||We.noUnusedParameters)&&BI(hN(r),function(a,o,s){!e.containsParseError(a)&&vN(o,!!(a.flags&8388608))&&fa.add(s)}),We.importsNotUsedAsValues===2&&!r.isDeclarationFile&&e.isExternalModule(r)&&F8(r),e.isExternalOrCommonJsModule(r)&&mN(r),_n.length&&(e.forEach(_n,D5),e.clear(_n)),dn.length&&(e.forEach(dn,L5),e.clear(dn)),On.length&&(e.forEach(On,I5),e.clear(On)),Jn.length&&(e.forEach(Jn,k5),e.clear(Jn)),t.flags|=1}}function yN(r,t){try{return ae=t,z8(r)}finally{ae=void 0}}function z8(r){if(bN(),r){var t=fa.getGlobalDiagnostics(),a=t.length;iS(r);var o=fa.getDiagnostics(r.fileName),s=fa.getGlobalDiagnostics();if(s!==t){var f=e.relativeComplement(t,s,e.compareDiagnostics);return e.concatenate(f,o)}else if(a===0&&s.length>0)return e.concatenate(s,o);return o}return e.forEach(A.getSourceFiles(),iS),fa.getDiagnostics()}function q8(){return bN(),fa.getGlobalDiagnostics()}function bN(){if(!_e)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function X8(r,t){if(r.flags&16777216)return[];var a=e.createSymbolTable(),o=!1;return s(),a.delete("this"),ag(a);function s(){for(;r;){switch(r.locals&&!Pc(r)&&N(r.locals,t),r.kind){case 303:if(!e.isExternalModule(r))break;case 260:U(xn(r).exports,t&2623475);break;case 259:N(xn(r).exports,t&8);break;case 225:var fe=r.name;fe&&f(r.symbol,t);case 256:case 257:o||N(Tf(xn(r)),t&788968);break;case 212:var Oe=r.name;Oe&&f(r.symbol,t);break}e.introducesArgumentsExoticObject(r)&&f(Hr,t),o=e.isStatic(r),r=r.parent}N(kr,t)}function f(fe,Oe){if(e.getCombinedLocalAndExportSymbolFlags(fe)&Oe){var je=fe.escapedName;a.has(je)||a.set(je,fe)}}function N(fe,Oe){Oe&&fe.forEach(function(je){f(je,Oe)})}function U(fe,Oe){Oe&&fe.forEach(function(je){!e.getDeclarationOfKind(je,274)&&!e.getDeclarationOfKind(je,273)&&f(je,Oe)})}}function Y8(r){return r.kind===79&&_y(r.parent)&&e.getNameOfDeclaration(r.parent)===r}function _y(r){switch(r.kind){case 162:case 256:case 257:case 258:case 259:case 343:case 336:case 337:return!0;case 266:return r.isTypeOnly;case 269:case 274:return r.parent.parent.isTypeOnly;default:return!1}}function EN(r){for(;r.parent.kind===160;)r=r.parent;return r.parent.kind===177}function Q8(r){for(;r.parent.kind===205;)r=r.parent;return r.parent.kind===227}function TN(r,t){for(var a;r=e.getContainingClass(r),!(!r||(a=t(r))););return a}function Z8(r){return!!e.findAncestor(r,function(t){return e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t)?!0:e.isClassLike(t)||e.isFunctionLikeDeclaration(t)?"quit":!1})}function oS(r,t){return!!TN(r,function(a){return a===t})}function $8(r){for(;r.parent.kind===160;)r=r.parent;if(r.parent.kind===264)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===270)return r.parent.expression===r?r.parent:void 0}function TE(r){return $8(r)!==void 0}function e7(r){var t=e.getAssignmentDeclarationKind(r.parent.parent);switch(t){case 1:case 3:return xn(r.parent);case 4:case 2:case 5:return xn(r.parent.parent)}}function r7(r){for(var t=r.parent;e.isQualifiedName(t);)r=t,t=t.parent;if(t&&t.kind===199&&t.qualifier===r)return t}function SN(r){if(e.isDeclarationName(r))return xn(r.parent);if(e.isInJSFile(r)&&r.parent.kind===205&&r.parent===r.parent.parent.left&&!e.isPrivateIdentifier(r)&&!e.isJSDocMemberName(r)){var t=e7(r);if(t)return t}if(r.parent.kind===270&&e.isEntityNameExpression(r)){var a=fs(r,2998271,!0);if(a&&a!==cr)return a}else if(e.isEntityName(r)&&TE(r)){var o=e.getAncestor(r,264);return e.Debug.assert(o!==void 0),Ap(r,!0)}if(e.isEntityName(r)){var s=r7(r);if(s){xa(s);var f=Zn(r).resolvedSymbol;return f===cr?void 0:f}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(r);)r=r.parent;if(Q8(r)){var N=0;r.parent.kind===227?(N=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent)&&(N|=111551)):N=1920,N|=2097152;var U=e.isEntityNameExpression(r)?fs(r,N):void 0;if(U)return U}if(r.parent.kind===338)return e.getParameterSymbolFromJSDoc(r.parent);if(r.parent.kind===162&&r.parent.parent.kind===342){e.Debug.assert(!e.isInJSFile(r));var fe=e.getTypeParameterFromJsDoc(r.parent);return fe&&fe.symbol}if(e.isExpressionNode(r)){if(e.nodeIsMissing(r))return;var Oe=e.findAncestor(r,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName)),N=Oe?901119:111551;if(r.kind===79){if(e.isJSXTagName(r)&&Tg(r)){var je=lT(r.parent);return je===cr?void 0:je}var ze=fs(r,N,!1,!Oe,e.getHostSignatureFromJSDoc(r));if(!ze&&Oe){var tr=e.findAncestor(r,e.or(e.isClassLike,e.isInterfaceDeclaration));if(tr)return SE(r,xn(tr))}return ze}else{if(e.isPrivateIdentifier(r))return Xb(r);if(r.kind===205||r.kind===160){var _r=Zn(r);return _r.resolvedSymbol?_r.resolvedSymbol:(r.kind===205?hx(r,0):yx(r,0),!_r.resolvedSymbol&&Oe&&e.isQualifiedName(r)?SE(r):_r.resolvedSymbol)}else if(e.isJSDocMemberName(r))return SE(r)}}else if(EN(r)){var N=r.parent.kind===177?788968:1920,je=fs(r,N,!1,!0);return je&&je!==cr?je:nb(r)}if(r.parent.kind===176)return fs(r,1)}function SE(r,t){if(e.isEntityName(r)){var a=901119,o=fs(r,a,!1,!0,e.getHostSignatureFromJSDoc(r));if(!o&&e.isIdentifier(r)&&t&&(o=Ha(Al(il(t),r.escapedText,a))),o)return o}var s=e.isIdentifier(r)?t:SE(r.left),f=e.isIdentifier(r)?r.escapedText:r.right.escapedText;if(s){var N=s.flags&111551&&pi(En(s),"prototype"),U=N?En(N):vo(s);return pi(U,f)}}function Jc(r,t){if(r.kind===303)return e.isExternalModule(r)?Ha(r.symbol):void 0;var a=r.parent,o=a.parent;if(!(r.flags&16777216)){if(R(r)){var s=xn(a);return e.isImportOrExportSpecifier(r.parent)&&r.parent.propertyName===r?ix(s):s}else if(e.isLiteralComputedPropertyDeclarationName(r))return xn(a.parent);if(r.kind===79){if(TE(r))return SN(r);if(a.kind===202&&o.kind===200&&r===a.propertyName){var f=e_(o),N=pi(f,r.escapedText);if(N)return N}else if(e.isMetaProperty(a)){var U=e_(a),N=pi(U,r.escapedText);if(N)return N;if(a.keywordToken===103)return IT(a).symbol}}switch(r.kind){case 79:case 80:case 205:case 160:return SN(r);case 108:var fe=e.getThisContainer(r,!1);if(e.isFunctionLike(fe)){var Oe=Iu(fe);if(Oe.thisParameter)return Oe.thisParameter}if(e.isInExpressionContext(r))return fi(r).symbol;case 191:return ub(r).symbol;case 106:return fi(r).symbol;case 134:var je=r.parent;return je&&je.kind===170?je.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(r.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(r.parent.parent)===r||(r.parent.kind===265||r.parent.kind===271)&&r.parent.moduleSpecifier===r||e.isInJSFile(r)&&e.isRequireCall(r.parent,!1)||e.isImportCall(r.parent)||e.isLiteralTypeNode(r.parent)&&e.isLiteralImportTypeNode(r.parent.parent)&&r.parent.parent.argument===r.parent)return Ys(r,r,t);if(e.isCallExpression(a)&&e.isBindableObjectDefinePropertyCall(a)&&a.arguments[1]===r)return xn(a);case 8:var ze=e.isElementAccessExpression(a)?a.argumentExpression===r?rl(a.expression):void 0:e.isLiteralTypeNode(a)&&e.isIndexedAccessTypeNode(o)?xa(o.objectType):void 0;return ze&&pi(ze,e.escapeLeadingUnderscores(r.text));case 88:case 98:case 38:case 84:return xn(r.parent);case 199:return e.isLiteralImportTypeNode(r)?Jc(r.argument.literal,t):void 0;case 93:return e.isExportAssignment(r.parent)?e.Debug.checkDefined(r.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(r.parent)?tI(r.parent).symbol:void 0;case 230:return fi(r).symbol;default:return}}}function t7(r){if(e.isIdentifier(r)&&e.isPropertyAccessExpression(r.parent)&&r.parent.name===r){var t=lp(r),a=rl(r.parent.expression),o=a.flags&1048576?a.types:[a];return e.flatMap(o,function(s){return e.filter(Bs(s),function(f){return Ld(t,f.keyType)})})}}function n7(r){if(r&&r.kind===295)return fs(r.name,2208703)}function a7(r){return e.isExportSpecifier(r)?r.parent.parent.moduleSpecifier?Uu(r.parent.parent,r):fs(r.propertyName||r.name,2998271):fs(r,2998271)}function e_(r){if(e.isSourceFile(r)&&!e.isExternalModule(r)||r.flags&16777216)return Qe;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(r),a=t&&Kn(xn(t.class));if(e.isPartOfTypeNode(r)){var o=xa(r);return a?yl(o,a.thisType):o}if(e.isExpressionNode(r))return DN(r);if(a&&!t.isImplements){var s=e.firstOrUndefined(Gs(a));return s?yl(s,a.thisType):Qe}if(_y(r)){var f=xn(r);return vo(f)}if(Y8(r)){var f=Jc(r);return f?vo(f):Qe}if(e.isDeclaration(r)){var f=xn(r);return En(f)}if(R(r)){var f=Jc(r);return f?En(f):Qe}if(e.isBindingPattern(r))return np(r.parent,!0)||Qe;if(TE(r)){var f=Jc(r);if(f){var N=vo(f);return Za(N)?En(f):N}}return e.isMetaProperty(r.parent)&&r.parent.keywordToken===r.kind?tI(r.parent):Qe}function DE(r){if(e.Debug.assert(r.kind===204||r.kind===203),r.parent.kind===243){var t=uy(r.parent);return O_(r,t||Qe)}if(r.parent.kind===220){var t=rl(r.parent.right);return O_(r,t||Qe)}if(r.parent.kind===294){var a=e.cast(r.parent.parent,e.isObjectLiteralExpression),o=DE(a)||Qe,s=e.indexOfNode(a.properties,r.parent);return mI(a,o,s)}var f=e.cast(r.parent,e.isArrayLiteralExpression),N=DE(f)||Qe,U=Od(65,N,Rr,r.parent)||Qe;return gI(f,N,f.elements.indexOf(r),U)}function i7(r){var t=DE(e.cast(r.parent.parent,e.isAssignmentPattern));return t&&pi(t,r.escapedText)}function DN(r){return e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),Ml(rl(r))}function o7(r){var t=xn(r.parent);return e.isStatic(r)?En(t):vo(t)}function s7(r){var t=r.name;switch(t.kind){case 79:return xc(e.idText(t));case 8:case 10:return xc(t.text);case 161:var a=td(t);return hs(a,12288)?a:pt;default:return e.Debug.fail("Unsupported property name.")}}function sS(r){r=Dn(r);var t=e.createSymbolTable(ro(r)),a=Li(r,0).length?Gr:Li(r,1).length?ht:void 0;return a&&e.forEach(ro(a),function(o){t.has(o.escapedName)||t.set(o.escapedName,o)}),Su(t)}function lS(r){return e.typeHasCallOrConstructSignatures(r,Yr)}function LN(r){var t=l7(r);return t?e.flatMap(t,LN):[r]}function l7(r){if(e.getCheckFlags(r)&6)return e.mapDefined(Va(r).containingType.types,function(f){return pi(f,r.escapedName)});if(r.flags&33554432){var t=r,a=t.leftSpread,o=t.rightSpread,s=t.syntheticOrigin;return a?[a,o]:s?[s]:e.singleElementArray(c7(r))}}function c7(r){for(var t,a=r;a=Va(a).target;)t=a;return t}function u7(r){if(e.isGeneratedIdentifier(r))return!1;var t=e.getParseTreeNode(r,e.isIdentifier);if(!t)return!1;var a=t.parent;if(!a)return!1;var o=(e.isPropertyAccessExpression(a)||e.isPropertyAssignment(a))&&a.name===t;return!o&&Mv(t)===Hr}function f7(r){var t=Ys(r.parent,r);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var a=Ff(t);t=_l(t);var o=Va(t);return o.exportsSomeValue===void 0&&(o.exportsSomeValue=a?!!(t.flags&111551):e.forEachEntry(Ol(t),s)),o.exportsSomeValue;function s(f){return f=wo(f),f&&!!(f.flags&111551)}}function d7(r){return e.isModuleOrEnumDeclaration(r.parent)&&r===r.parent.name}function p7(r,t){var a,o=e.getParseTreeNode(r,e.isIdentifier);if(o){var s=Mv(o,d7(o));if(s){if(s.flags&1048576){var f=Ha(s.exportSymbol);if(!t&&f.flags&944&&!(f.flags&3))return;s=f}var N=Ls(s);if(N){if(N.flags&512&&((a=N.valueDeclaration)===null||a===void 0?void 0:a.kind)===303){var U=N.valueDeclaration,fe=e.getSourceFileOfNode(o),Oe=U!==fe;return Oe?void 0:U}return e.findAncestor(o.parent,function(je){return e.isModuleOrEnumDeclaration(je)&&xn(je)===N})}}}}function _7(r){if(r.generatedImportReference)return r.generatedImportReference;var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var a=Mv(t);if(cf(a,111551)&&!Cn(a))return ec(a)}}function m7(r){return r.valueDeclaration&&e.isBindingElement(r.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(r.valueDeclaration).parent.kind===291}function AN(r){if(r.flags&418&&r.valueDeclaration&&!e.isSourceFile(r.valueDeclaration)){var t=Va(r);if(t.isDeclarationWithCollidingName===void 0){var a=e.getEnclosingBlockScopeContainer(r.valueDeclaration);if(e.isStatementWithLocals(a)||m7(r)){var o=Zn(r.valueDeclaration);if(Ho(a.parent,r.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(o.flags&262144){var s=o.flags&524288,f=e.isIterationStatement(a,!1),N=a.kind===234&&e.isIterationStatement(a.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(a)&&(!s||!f&&!N)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function g7(r){if(!e.isGeneratedIdentifier(r)){var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var a=Mv(t);if(a&&AN(a))return a.valueDeclaration}}}function v7(r){var t=e.getParseTreeNode(r,e.isDeclaration);if(t){var a=xn(t);if(a)return AN(a)}return!1}function CN(r){switch(r.kind){case 264:return LE(xn(r));case 266:case 267:case 269:case 274:var t=xn(r);return!!t&&LE(t)&&!Cn(t);case 271:var a=r.exportClause;return!!a&&(e.isNamespaceExport(a)||e.some(a.elements,CN));case 270:return r.expression&&r.expression.kind===79?LE(xn(r)):!0}return!1}function h7(r){var t=e.getParseTreeNode(r,e.isImportEqualsDeclaration);if(t===void 0||t.parent.kind!==303||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var a=LE(xn(t));return a&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function LE(r){if(!r)return!1;var t=Go(r);return t===cr?!0:!!(t.flags&111551)&&(e.shouldPreserveConstEnums(We)||!wv(t))}function wv(r){return PT(r)||!!r.constEnumOnlyModule}function AE(r,t){if(ud(r)){var a=xn(r),o=a&&Va(a);if(o!=null&&o.referenced)return!0;var s=Va(a).target;if(s&&e.getEffectiveModifierFlags(r)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(We)||!wv(s)))return!0}return t?!!e.forEachChild(r,function(f){return AE(f,t)}):!1}function xN(r){if(e.nodeIsPresent(r.body)){if(e.isGetAccessor(r)||e.isSetAccessor(r))return!1;var t=xn(r),a=jp(t);return a.length>1||a.length===1&&a[0].declaration!==r}return!1}function IN(r){return!!Er&&!Vp(r)&&!e.isJSDocParameterTag(r)&&!!r.initializer&&!e.hasSyntacticModifier(r,16476)}function y7(r){return Er&&Vp(r)&&!r.initializer&&e.hasSyntacticModifier(r,16476)}function b7(r){return!!Er&&Vp(r)&&!r.initializer}function E7(r){var t=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!t)return!1;var a=xn(t);return!a||!(a.flags&16)?!1:!!e.forEachEntry(il(a),function(o){return o.flags&111551&&o.valueDeclaration&&e.isPropertyAccessExpression(o.valueDeclaration)})}function T7(r){var t=e.getParseTreeNode(r,e.isFunctionDeclaration);if(!t)return e.emptyArray;var a=xn(t);return a&&ro(En(a))||e.emptyArray}function Vm(r){var t,a=r.id||0;return a<0||a>=sc.length?0:((t=sc[a])===null||t===void 0?void 0:t.flags)||0}function CE(r){return pN(r.parent),Zn(r).enumMemberValue}function NN(r){switch(r.kind){case 297:case 205:case 206:return!0}return!1}function cS(r){if(r.kind===297)return CE(r);var t=Zn(r).resolvedSymbol;if(t&&t.flags&8){var a=t.valueDeclaration;if(e.isEnumConst(a.parent))return CE(a)}}function uS(r){return!!(r.flags&524288)&&Li(r,0).length>0}function S7(r,t){var a,o,s=e.getParseTreeNode(r,e.isEntityName);if(!s||t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var f=!1;if(e.isQualifiedName(s)){var N=fs(e.getFirstIdentifier(s),111551,!0,!0,t);f=!!(!((a=N==null?void 0:N.declarations)===null||a===void 0)&&a.every(e.isTypeOnlyImportOrExportDeclaration))}var U=fs(s,111551,!0,!0,t),fe=U&&U.flags&2097152?Go(U):U;f||(f=!!(!((o=U==null?void 0:U.declarations)===null||o===void 0)&&o.every(e.isTypeOnlyImportOrExportDeclaration)));var Oe=fs(s,788968,!0,!1,t);if(fe&&fe===Oe){var je=F0(!1);if(je&&fe===je)return e.TypeReferenceSerializationKind.Promise;var ze=En(fe);if(ze&&j_(ze))return f?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!Oe)return f?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var tr=vo(Oe);return Za(tr)?f?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:tr.flags&3?e.TypeReferenceSerializationKind.ObjectType:hs(tr,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:hs(tr,528)?e.TypeReferenceSerializationKind.BooleanType:hs(tr,296)?e.TypeReferenceSerializationKind.NumberLikeType:hs(tr,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:hs(tr,402653316)?e.TypeReferenceSerializationKind.StringLikeType:ki(tr)?e.TypeReferenceSerializationKind.ArrayLikeType:hs(tr,12288)?e.TypeReferenceSerializationKind.ESSymbolType:uS(tr)?e.TypeReferenceSerializationKind.TypeWithCallSignature:$s(tr)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function D7(r,t,a,o,s){var f=e.getParseTreeNode(r,e.isVariableLikeOrAccessor);if(!f)return e.factory.createToken(130);var N=xn(f),U=N&&!(N.flags&133120)?zp(En(N)):Qe;return U.flags&8192&&U.symbol===N&&(a|=1048576),s&&(U=$f(U)),Cr.typeToTypeNode(U,t,a|1024,o)}function L7(r,t,a,o){var s=e.getParseTreeNode(r,e.isFunctionLike);if(!s)return e.factory.createToken(130);var f=Iu(s);return Cr.typeToTypeNode(_o(f),t,a|1024,o)}function A7(r,t,a,o){var s=e.getParseTreeNode(r,e.isExpression);if(!s)return e.factory.createToken(130);var f=Gl(DN(s));return Cr.typeToTypeNode(f,t,a|1024,o)}function C7(r){return kr.has(e.escapeLeadingUnderscores(r))}function Mv(r,t){var a=Zn(r).resolvedSymbol;if(a)return a;var o=r;if(t){var s=r.parent;e.isDeclaration(s)&&r===s.name&&(o=ca(s))}return Ho(o,r.escapedText,3257279,void 0,void 0,!0)}function x7(r){if(!e.isGeneratedIdentifier(r)){var t=e.getParseTreeNode(r,e.isIdentifier);if(t){var a=Mv(t);if(a)return Rs(a).valueDeclaration}}}function I7(r){return e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r)?Kp(En(xn(r))):!1}function N7(r,t,a){var o=r.flags&1024?Cr.symbolToExpression(r.symbol,111551,t,void 0,a):r===Pn?e.factory.createTrue():r===st&&e.factory.createFalse();if(o)return o;var s=r.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function k7(r,t){var a=En(xn(r));return N7(a,r,t)}function kN(r){return r?(Ci(r),e.getSourceFileOfNode(r).localJsxFactory||hr):hr}function fS(r){if(r){var t=e.getSourceFileOfNode(r);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var a=t.pragmas.get("jsxfrag"),o=e.isArray(a)?a[0]:a;if(o)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,Ne),t.localJsxFragmentFactory}}if(We.jsxFragmentFactory)return e.parseIsolatedEntityName(We.jsxFragmentFactory,Ne)}function O7(){var r=A.getResolvedTypeReferenceDirectives(),t;return r&&(t=new e.Map,r.forEach(function(fe,Oe){if(!(!fe||!fe.resolvedFileName)){var je=A.getSourceFile(fe.resolvedFileName);je&&U(je,Oe)}})),{getReferencedExportContainer:p7,getReferencedImportDeclaration:_7,getReferencedDeclarationWithCollidingName:g7,isDeclarationWithCollidingName:v7,isValueAliasDeclaration:function(fe){var Oe=e.getParseTreeNode(fe);return Oe?CN(Oe):!0},hasGlobalName:C7,isReferencedAliasDeclaration:function(fe,Oe){var je=e.getParseTreeNode(fe);return je?AE(je,Oe):!0},getNodeCheckFlags:function(fe){var Oe=e.getParseTreeNode(fe);return Oe?Vm(Oe):0},isTopLevelValueImportEqualsWithEntityName:h7,isDeclarationVisible:nu,isImplementationOfOverload:xN,isRequiredInitializedParameter:IN,isOptionalUninitializedParameterProperty:y7,isExpandoFunctionDeclaration:E7,getPropertiesOfContainerFunction:T7,createTypeOfDeclaration:D7,createReturnTypeOfSignatureDeclaration:L7,createTypeOfExpression:A7,createLiteralConstValue:k7,isSymbolAccessible:Du,isEntityNameVisible:$d,getConstantValue:function(fe){var Oe=e.getParseTreeNode(fe,NN);return Oe?cS(Oe):void 0},collectLinkedAliases:yd,getReferencedValueDeclaration:x7,getTypeReferenceSerializationKind:S7,isOptionalParameter:Vp,moduleExportsSomeValue:f7,isArgumentsLocalBinding:u7,getExternalModuleFileFromDeclaration:function(fe){var Oe=e.getParseTreeNode(fe,e.hasPossibleExternalModuleReference);return Oe&&dS(Oe)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:f,isLiteralConstDeclaration:I7,isLateBound:function(fe){var Oe=e.getParseTreeNode(fe,e.isDeclaration),je=Oe&&xn(Oe);return!!(je&&e.getCheckFlags(je)&4096)},getJsxFactoryEntity:kN,getJsxFragmentFactoryEntity:fS,getAllAccessorDeclarations:function(fe){fe=e.getParseTreeNode(fe,e.isGetOrSetAccessorDeclaration);var Oe=fe.kind===172?171:172,je=e.getDeclarationOfKind(xn(fe),Oe),ze=je&&je.pos<fe.pos?je:fe,tr=je&&je.pos<fe.pos?fe:je,_r=fe.kind===172?fe:je,Vr=fe.kind===171?fe:je;return{firstAccessor:ze,secondAccessor:tr,setAccessor:_r,getAccessor:Vr}},getSymbolOfExternalModuleSpecifier:function(fe){return bc(fe,fe,void 0)},isBindingCapturedByNode:function(fe,Oe){var je=e.getParseTreeNode(fe),ze=e.getParseTreeNode(Oe);return!!je&&!!ze&&(e.isVariableDeclaration(ze)||e.isBindingElement(ze))&&J6(je,ze)},getDeclarationStatementsForSourceFile:function(fe,Oe,je,ze){var tr=e.getParseTreeNode(fe);e.Debug.assert(tr&&tr.kind===303,"Non-sourcefile node passed into getDeclarationsForSourceFile");var _r=xn(fe);return _r?_r.exports?Cr.symbolTableToDeclarationStatements(_r.exports,fe,Oe,je,ze):[]:fe.locals?Cr.symbolTableToDeclarationStatements(fe.locals,fe,Oe,je,ze):[]},isImportRequiredByAugmentation:a};function a(fe){var Oe=e.getSourceFileOfNode(fe);if(!Oe.symbol)return!1;var je=dS(fe);if(!je||je===Oe)return!1;for(var ze=Ol(Oe.symbol),tr=0,_r=e.arrayFrom(ze.values());tr<_r.length;tr++){var Vr=_r[tr];if(Vr.mergeId){var $r=Ha(Vr);if($r.declarations)for(var Tt=0,St=$r.declarations;Tt<St.length;Tt++){var It=St[Tt],jt=e.getSourceFileOfNode(It);if(jt===je)return!0}}}return!1}function o(fe){return fe.parent&&fe.parent.kind===227&&fe.parent.parent&&fe.parent.parent.kind===290}function s(fe){if(!!t){var Oe=790504;(fe.kind===79&&yg(fe)||fe.kind===205&&!o(fe))&&(Oe=1160127);var je=fs(fe,Oe,!0);return je&&je!==cr?f(je,Oe):void 0}}function f(fe,Oe){if(!(!t||!N(fe))){for(var je,ze=0,tr=fe.declarations;ze<tr.length;ze++){var _r=tr[ze];if(_r.symbol&&_r.symbol.flags&Oe){var Vr=e.getSourceFileOfNode(_r),$r=t.get(Vr.path);if($r)(je||(je=[])).push($r);else return}}return je}}function N(fe){if(!fe.declarations)return!1;for(var Oe=fe;;){var je=Ls(Oe);if(je)Oe=je;else break}if(Oe.valueDeclaration&&Oe.valueDeclaration.kind===303&&Oe.flags&512)return!1;for(var ze=0,tr=fe.declarations;ze<tr.length;ze++){var _r=tr[ze],Vr=e.getSourceFileOfNode(_r);if(t.has(Vr.path))return!0}return!1}function U(fe,Oe){if(!t.has(fe.path)){t.set(fe.path,Oe);for(var je=0,ze=fe.referencedFiles;je<ze.length;je++){var tr=ze[je].fileName,_r=e.resolveTripleslashReference(tr,fe.fileName),Vr=A.getSourceFile(_r);Vr&&U(Vr,Oe)}}}}function dS(r){var t=r.kind===260?e.tryCast(r.name,e.isStringLiteral):e.getExternalModuleName(r),a=bc(t,t,void 0);if(!!a)return e.getDeclarationOfKind(a,303)}function R7(){for(var r=0,t=A.getSourceFiles();r<t.length;r++){var a=t[r];e.bindSourceFile(a,We)}Po=new e.Map;for(var o,s=0,f=A.getSourceFiles();s<f.length;s++){var a=f[s];if(!a.redirectInfo){if(!e.isExternalOrCommonJsModule(a)){var N=a.locals.get("globalThis");if(N!=null&&N.declarations)for(var U=0,fe=N.declarations;U<fe.length;U++){var Oe=fe[U];fa.add(e.createDiagnosticForNode(Oe,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}Ll(kr,a.locals)}if(a.jsGlobalAugmentations&&Ll(kr,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(gt=e.concatenate(gt,a.patternAmbientModules)),a.moduleAugmentations.length&&(o||(o=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports){var je=a.symbol.globalExports;je.forEach(function(ua,la){kr.has(la)||kr.set(la,ua)})}}}if(o)for(var ze=0,tr=o;ze<tr.length;ze++)for(var _r=tr[ze],Vr=0,$r=_r;Vr<$r.length;Vr++){var Tt=$r[Vr];!e.isGlobalScopeAugmentation(Tt.parent)||Bd(Tt)}if(qs(kr,Wi,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0),Va(He).type=zr,Va(Hr).type=Zs("IArguments",0,!0),Va(cr).type=Qe,Va(lr).type=ml(16,lr),ye=Zs("Array",1,!0),Bn=Zs("Object",0,!0),Fe=Zs("Function",0,!0),Gr=ur&&Zs("CallableFunction",0,!0)||Fe,ht=ur&&Zs("NewableFunction",0,!0)||Fe,Pe=Zs("String",0,!0),Ye=Zs("Number",0,!0),Tr=Zs("Boolean",0,!0),tt=Zs("RegExp",0,!0),Wt=Js(ke),Ln=Js(dr),Ln===Qn&&(Ln=es(void 0,ce,e.emptyArray,e.emptyArray,e.emptyArray)),oe=ZL("ReadonlyArray",1)||ye,va=oe?nv(oe,[ke]):Wt,Mt=ZL("ThisType",1),o)for(var St=0,It=o;St<It.length;St++)for(var _r=It[St],jt=0,In=_r;jt<In.length;jt++){var Tt=In[jt];e.isGlobalScopeAugmentation(Tt.parent)||Bd(Tt)}Po.forEach(function(sn){var ua=sn.firstFile,la=sn.secondFile,_i=sn.conflictingSymbols;if(_i.size<8)_i.forEach(function(xi,Bi){for(var Ii=xi.isBlockScoped,Co=xi.firstFileLocations,Ht=xi.secondFileLocations,Gt=Ii?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,mn=0,Oa=Co;mn<Oa.length;mn++){var Yn=Oa[mn];hc(Yn,Gt,Bi,Ht)}for(var Ba=0,Di=Ht;Ba<Di.length;Ba++){var Yn=Di[Ba];hc(Yn,Gt,Bi,Co)}});else{var ka=e.arrayFrom(_i.keys()).join(", ");fa.add(e.addRelatedInfo(e.createDiagnosticForNode(ua,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,ka),e.createDiagnosticForNode(la,e.Diagnostics.Conflicts_are_in_this_file))),fa.add(e.addRelatedInfo(e.createDiagnosticForNode(la,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,ka),e.createDiagnosticForNode(ua,e.Diagnostics.Conflicts_are_in_this_file)))}}),Po=void 0}function tl(r,t){if((D&t)!==t&&We.importHelpers){var a=e.getSourceFileOfNode(r);if(e.isEffectiveExternalModule(a,We)&&!(r.flags&8388608)){var o=M7(a,r);if(o!==cr){for(var s=t&~D,f=1;f<=4194304;f<<=1)if(s&f){var N=w7(f),U=Al(o.exports,e.escapeLeadingUnderscores(N),111551);U?f&524288?e.some(jp(U),function(fe){return Cl(fe)>3})||Br(r,e.Diagnostics.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,e.externalHelpersModuleNameText,N,4):f&1048576?e.some(jp(U),function(fe){return Cl(fe)>4})||Br(r,e.Diagnostics.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,e.externalHelpersModuleNameText,N,5):f&1024&&(e.some(jp(U),function(fe){return Cl(fe)>2})||Br(r,e.Diagnostics.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,e.externalHelpersModuleNameText,N,3)):Br(r,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,N)}}D|=t}}}function w7(r){switch(r){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function M7(r,t){return be||(be=Pf(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||cr),be}function Lf(r){return P7(r)||F7(r)}function P7(r){if(!r.decorators)return!1;if(e.nodeCanBeDecorated(r,r.parent,r.parent.parent)){if(r.kind===171||r.kind===172){var t=e.getAllAccessorDeclarations(r.parent.members,r);if(t.firstAccessor.decorators&&r===t.secondAccessor)return Vs(r,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===168&&!e.nodeIsPresent(r.body)?Vs(r,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Vs(r,e.Diagnostics.Decorators_are_not_valid_here);return!1}function F7(r){var t=G7(r);if(t!==void 0)return t;for(var a,o,s,f,N,U=0,fe=0,Oe=r.modifiers;fe<Oe.length;fe++){var je=Oe[fe];if(je.kind!==144){if(r.kind===165||r.kind===167)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(je.kind));if(r.kind===175&&(je.kind!==124||!e.isClassLike(r.parent)))return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(je.kind))}switch(je.kind){case 85:if(r.kind!==259)return cn(r,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 158:if(U&16384)return cn(je,e.Diagnostics._0_modifier_already_seen,"override");if(U&2)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(U&64)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(U&256)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");U|=16384,N=je;break;case 123:case 122:case 121:var ze=pc(e.modifierToFlag(je.kind));if(U&28)return cn(je,e.Diagnostics.Accessibility_modifier_already_seen);if(U&16384)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"override");if(U&32)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"static");if(U&64)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"readonly");if(U&256)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"async");if(r.parent.kind===261||r.parent.kind===303)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,ze);if(U&128)return je.kind===121?cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,ze,"abstract"):cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,ze,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(r))return cn(je,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);U|=e.modifierToFlag(je.kind);break;case 124:if(U&32)return cn(je,e.Diagnostics._0_modifier_already_seen,"static");if(U&64)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(U&256)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(r.parent.kind===261||r.parent.kind===303)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===163)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(U&128)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(U&16384)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");U|=32,a=je;break;case 144:if(U&64)return cn(je,e.Diagnostics._0_modifier_already_seen,"readonly");if(r.kind!==166&&r.kind!==165&&r.kind!==175&&r.kind!==163)return cn(je,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);U|=64,f=je;break;case 93:if(U&1)return cn(je,e.Diagnostics._0_modifier_already_seen,"export");if(U&2)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(U&128)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(U&256)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(r.parent))return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===163)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");U|=1;break;case 88:var tr=r.parent.kind===303?r.parent:r.parent.parent;if(tr.kind===260&&!e.isAmbientModule(tr))return cn(je,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(U&1))return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");U|=512;break;case 135:if(U&2)return cn(je,e.Diagnostics._0_modifier_already_seen,"declare");if(U&256)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(U&16384)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(r.parent)&&!e.isPropertyDeclaration(r))return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===163)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(r.parent.flags&8388608&&r.parent.kind===261)return cn(je,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(r))return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");U|=2,o=je;break;case 126:if(U&128)return cn(je,e.Diagnostics._0_modifier_already_seen,"abstract");if(r.kind!==256&&r.kind!==179){if(r.kind!==168&&r.kind!==166&&r.kind!==171&&r.kind!==172)return cn(je,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===256&&e.hasSyntacticModifier(r.parent,128)))return cn(je,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(U&32)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(U&8)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(U&256&&s)return cn(s,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(U&16384)return cn(je,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(r)&&r.name.kind===80)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");U|=128;break;case 131:if(U&256)return cn(je,e.Diagnostics._0_modifier_already_seen,"async");if(U&2||r.parent.flags&8388608)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===163)return cn(je,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(U&128)return cn(je,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");U|=256,s=je;break}}return r.kind===170?U&32?cn(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):U&128?cn(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"abstract"):U&16384?cn(N,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):U&256?cn(s,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):U&64?cn(f,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"readonly"):!1:(r.kind===265||r.kind===264)&&U&2?cn(o,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===163&&U&16476&&e.isBindingPattern(r.name)?cn(r,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===163&&U&16476&&r.dotDotDotToken?cn(r,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):U&256?U7(r,s):!1}function G7(r){return r.modifiers?B7(r)?Vs(r,e.Diagnostics.Modifiers_cannot_appear_here):void 0:!1}function B7(r){switch(r.kind){case 171:case 172:case 170:case 166:case 165:case 168:case 167:case 175:case 260:case 265:case 264:case 271:case 270:case 212:case 213:case 163:return!1;default:if(r.parent.kind===261||r.parent.kind===303)return!1;switch(r.kind){case 255:return pS(r,131);case 256:case 179:return pS(r,126);case 257:case 236:case 258:case 169:return!0;case 259:return pS(r,85);default:e.Debug.fail()}}}function pS(r,t){return r.modifiers.length>1||r.modifiers[0].kind!==t}function U7(r,t){switch(r.kind){case 168:case 255:case 212:case 213:return!1}return cn(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function nm(r,t){return t===void 0&&(t=e.Diagnostics.Trailing_comma_not_allowed),r&&r.hasTrailingComma?gp(r[0],r.end-1,1,t):!1}function ON(r,t){if(r&&r.length===0){var a=r.pos-1,o=e.skipTrivia(t.text,r.end)+1;return gp(t,a,o-a,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function V7(r){for(var t=!1,a=r.length,o=0;o<a;o++){var s=r[o];if(s.dotDotDotToken){if(o!==a-1)return cn(s.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(s.flags&8388608||nm(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),s.questionToken)return cn(s.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(s.initializer)return cn(s.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(Vp(s)){if(t=!0,s.questionToken&&s.initializer)return cn(s.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!s.initializer)return cn(s.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}function W7(r){return e.filter(r,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})}function j7(r){if(Ne>=3){var t=r.body&&e.isBlock(r.body)&&e.findUseStrictPrologue(r.body.statements);if(t){var a=W7(r.parameters);if(e.length(a)){e.forEach(a,function(s){e.addRelatedInfo(Br(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))});var o=a.map(function(s,f){return f===0?e.createDiagnosticForNode(s,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(s,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,Bt([Br(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],o,!1)),!0}}}return!1}function xE(r){var t=e.getSourceFileOfNode(r);return Lf(r)||ON(r.typeParameters,t)||V7(r.parameters)||J7(r,t)||e.isFunctionLikeDeclaration(r)&&j7(r)}function H7(r){var t=e.getSourceFileOfNode(r);return Z7(r)||ON(r.typeParameters,t)}function J7(r,t){if(!e.isArrowFunction(r))return!1;r.typeParameters&&!(e.length(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&t&&e.fileExtensionIsOneOf(t.fileName,[".mts",".cts"])&&cn(r.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var a=r.equalsGreaterThanToken,o=e.getLineAndCharacterOfPosition(t,a.pos).line,s=e.getLineAndCharacterOfPosition(t,a.end).line;return o!==s&&cn(a,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function K7(r){var t=r.parameters[0];if(r.parameters.length!==1)return cn(t?t.name:r,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(nm(r.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return cn(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return cn(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return cn(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return cn(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return cn(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var a=xa(t.type);return Om(a,function(o){return!!(o.flags&8576)})||ov(a)?cn(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):ed(a,tb)?r.type?!1:cn(r,e.Diagnostics.An_index_signature_must_have_a_type_annotation):cn(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function z7(r){return Lf(r)||K7(r)}function q7(r,t){if(t&&t.length===0){var a=e.getSourceFileOfNode(r),o=t.pos-1,s=e.skipTrivia(a.text,t.end)+1;return gp(a,o,s-o,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function my(r,t){return nm(t)||q7(r,t)}function X7(r){return r.questionDotToken||r.flags&32?cn(r.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function Y7(r){if(r)for(var t=0,a=r;t<a.length;t++){var o=a[t];if(o.kind===226)return gp(o,o.pos,0,e.Diagnostics.Argument_expression_expected)}return!1}function RN(r){return Y7(r)}function wN(r){var t=r.types;if(nm(t))return!0;if(t&&t.length===0){var a=e.tokenToString(r.token);return gp(r,t.pos,0,e.Diagnostics._0_list_cannot_be_empty,a)}return e.some(t,Q7)}function Q7(r){return my(r,r.typeArguments)}function Z7(r){var t=!1,a=!1;if(!Lf(r)&&r.heritageClauses)for(var o=0,s=r.heritageClauses;o<s.length;o++){var f=s[o];if(f.token===94){if(t)return Vs(f,e.Diagnostics.extends_clause_already_seen);if(a)return Vs(f,e.Diagnostics.extends_clause_must_precede_implements_clause);if(f.types.length>1)return Vs(f.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(f.token===117),a)return Vs(f,e.Diagnostics.implements_clause_already_seen);a=!0}wN(f)}}function $7(r){var t=!1;if(r.heritageClauses)for(var a=0,o=r.heritageClauses;a<o.length;a++){var s=o[a];if(s.token===94){if(t)return Vs(s,e.Diagnostics.extends_clause_already_seen);t=!0}else return e.Debug.assert(s.token===117),Vs(s,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);wN(s)}return!1}function IE(r){if(r.kind!==161)return!1;var t=r;return t.expression.kind===220&&t.expression.operatorToken.kind===27?cn(t.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function _S(r){if(r.asteriskToken){if(e.Debug.assert(r.kind===255||r.kind===212||r.kind===168),r.flags&8388608)return cn(r.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return cn(r.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function MN(r,t){return!!r&&cn(r,t)}function PN(r,t){return!!r&&cn(r,t)}function eF(r,t){for(var a=new e.Map,o=0,s=r.properties;o<s.length;o++){var f=s[o];if(f.kind===296){if(t){var N=e.skipParentheses(f.expression);if(e.isArrayLiteralExpression(N)||e.isObjectLiteralExpression(N))return cn(f.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}continue}var U=f.name;if(U.kind===161&&IE(U),f.kind===295&&!t&&f.objectAssignmentInitializer)return cn(f.equalsToken,e.Diagnostics.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);if(U.kind===80&&cn(U,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),f.modifiers)for(var fe=0,Oe=f.modifiers;fe<Oe.length;fe++){var je=Oe[fe];(je.kind!==131||f.kind!==168)&&cn(je,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(je))}var ze=void 0;switch(f.kind){case 295:PN(f.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 294:MN(f.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),U.kind===8&&vS(U),ze=4;break;case 168:ze=8;break;case 171:ze=1;break;case 172:ze=2;break;default:throw e.Debug.assertNever(f,"Unexpected syntax kind:"+f.kind)}if(!t){var tr=e.getPropertyNameForPropertyNameNode(U);if(tr===void 0)continue;var _r=a.get(tr);if(!_r)a.set(tr,ze);else if(ze&12&&_r&12)cn(U,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(U));else if(ze&3&&_r&3)if(_r!==3&&ze!==_r)a.set(tr,ze|_r);else return cn(U,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return cn(U,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function rF(r){tF(r.tagName),my(r,r.typeArguments);for(var t=new e.Map,a=0,o=r.attributes.properties;a<o.length;a++){var s=o[a];if(s.kind!==286){var f=s.name,N=s.initializer;if(!t.get(f.escapedText))t.set(f.escapedText,!0);else return cn(f,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(N&&N.kind===287&&!N.expression)return cn(N,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}function tF(r){if(e.isPropertyAccessExpression(r)){var t=r;do{var a=s(t.name);if(a)return a;t=t.expression}while(e.isPropertyAccessExpression(t));var o=s(t);if(o)return o}function s(f){if(e.isIdentifier(f)&&e.idText(f).indexOf(":")!==-1)return cn(f,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}}function nF(r){if(r.expression&&e.isCommaSequence(r.expression))return cn(r.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function FN(r){if(Af(r))return!0;if(r.kind===243&&r.awaitModifier&&!(r.flags&32768)){var t=e.getSourceFileOfNode(r);if(e.isInTopLevelContext(r))R_(t)||(e.isEffectiveExternalModule(t,We)||fa.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.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)),(ve!==e.ModuleKind.ES2022&&ve!==e.ModuleKind.ESNext&&ve!==e.ModuleKind.System&&!(ve===e.ModuleKind.NodeNext&&e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.ESNext)||Ne<4)&&fa.add(e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher)));else if(!R_(t)){var a=e.createDiagnosticForNode(r.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),o=e.getContainingFunction(r);if(o&&o.kind!==170){e.Debug.assert((e.getFunctionFlags(o)&2)===0,"Enclosing function should never be an async function.");var s=e.createDiagnosticForNode(o,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,s)}return fa.add(a),!0}return!1}if(e.isForOfStatement(r)&&!(r.flags&32768)&&e.isIdentifier(r.initializer)&&r.initializer.escapedText==="async")return cn(r.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===254){var f=r.initializer;if(!gS(f)){var N=f.declarations;if(!N.length)return!1;if(N.length>1){var a=r.kind===242?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Vs(f.declarations[1],a)}var U=N[0];if(U.initializer){var a=r.kind===242?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return cn(U.name,a)}if(U.type){var a=r.kind===242?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return cn(U,a)}}}return!1}function aF(r){if(!(r.flags&8388608)&&r.parent.kind!==181&&r.parent.kind!==257){if(Ne<1)return cn(r.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Ne<2&&e.isPrivateIdentifier(r.name))return cn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!e.hasSyntacticModifier(r,128))return gp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(r.body){if(e.hasSyntacticModifier(r,128))return cn(r,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===181||r.parent.kind===257)return cn(r.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return cn(r.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!iF(r))return cn(r.name,r.kind===171?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===172){if(r.type)return cn(r.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(r),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return cn(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return cn(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return cn(r.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function iF(r){return mS(r)||r.parameters.length===(r.kind===171?0:1)}function mS(r){if(r.parameters.length===(r.kind===171?1:2))return e.getThisParameter(r)}function oF(r){if(r.operator===153){if(r.type.kind!==150)return cn(r.type,e.Diagnostics._0_expected,e.tokenToString(150));var t=e.walkUpParenthesizedTypes(r.parent);switch(e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 253:var a=t;if(a.name.kind!==79)return cn(r,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(a))return cn(r,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(a.parent.flags&2))return cn(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 166:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return cn(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 165:if(!e.hasSyntacticModifier(t,64))return cn(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return cn(r,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===144&&r.type.kind!==182&&r.type.kind!==183)return Vs(r,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(150))}function wg(r,t){if(Gy(r))return cn(r,t)}function GN(r){if(xE(r))return!0;if(r.kind===168){if(r.parent.kind===204){if(r.modifiers&&!(r.modifiers.length===1&&e.first(r.modifiers).kind===131))return Vs(r,e.Diagnostics.Modifiers_cannot_appear_here);if(MN(r.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(PN(r.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return gp(r,r.end-1,1,e.Diagnostics._0_expected,"{")}if(_S(r))return!0}if(e.isClassLike(r.parent)){if(Ne<2&&e.isPrivateIdentifier(r.name))return cn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&8388608)return wg(r.name,e.Diagnostics.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(r.kind===168&&!r.body)return wg(r.name,e.Diagnostics.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(r.parent.kind===257)return wg(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===181)return wg(r.name,e.Diagnostics.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 sF(r){for(var t=r;t;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return cn(r,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 249:if(r.label&&t.label.escapedText===r.label.escapedText){var a=r.kind===244&&!e.isIterationStatement(t.statement,!0);return a?cn(r,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 248:if(r.kind===245&&!r.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!r.label)return!1;break}t=t.parent}if(r.label){var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return cn(r,o)}else{var o=r.kind===245?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return cn(r,o)}}function lF(r){if(r.dotDotDotToken){var t=r.parent.elements;if(r!==e.last(t))return cn(r,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(nm(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return cn(r.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return gp(r,r.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function BN(r){return e.isStringOrNumericLiteralLike(r)||r.kind===218&&r.operator===40&&r.operand.kind===8}function cF(r){return r.kind===9||r.kind===218&&r.operator===40&&r.operand.kind===9}function uF(r){if((e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)&&BN(r.argumentExpression))&&e.isEntityNameExpression(r.expression))return!!(Cs(r).flags&1024)}function UN(r){var t=r.initializer;if(t){var a=!(BN(t)||uF(t)||t.kind===110||t.kind===95||cF(t)),o=e.isDeclarationReadonly(r)||e.isVariableDeclaration(r)&&e.isVarConst(r);if(o&&!r.type){if(a)return cn(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return cn(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!o||a)return cn(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function fF(r){if(r.parent.parent.kind!==242&&r.parent.parent.kind!==243){if(r.flags&8388608)UN(r);else if(!r.initializer){if(e.isBindingPattern(r.name)&&!e.isBindingPattern(r.parent))return cn(r,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(r))return cn(r,e.Diagnostics.const_declarations_must_be_initialized)}}if(r.exclamationToken&&(r.parent.parent.kind!==236||!r.type||r.initializer||r.flags&8388608)){var t=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return cn(r.exclamationToken,t)}(ve<e.ModuleKind.ES2015||e.getSourceFileOfNode(r).impliedNodeFormat===e.ModuleKind.CommonJS)&&ve!==e.ModuleKind.System&&!(r.parent.parent.flags&8388608)&&e.hasSyntacticModifier(r.parent.parent,1)&&VN(r.name);var a=e.isLet(r)||e.isVarConst(r);return a&&WN(r.name)}function VN(r){if(r.kind===79){if(e.idText(r)==="__esModule")return _F("noEmit",r,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=r.elements,a=0,o=t;a<o.length;a++){var s=o[a];if(!e.isOmittedExpression(s))return VN(s.name)}return!1}function WN(r){if(r.kind===79){if(r.originalKeywordKind===119)return cn(r,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var t=r.elements,a=0,o=t;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||WN(s.name)}return!1}function gS(r){var t=r.declarations;return nm(r.declarations)?!0:r.declarations.length?!1:gp(r,t.pos,t.end-t.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function jN(r){switch(r.kind){case 238:case 239:case 240:case 247:case 241:case 242:case 243:return!1;case 249:return jN(r.parent)}return!0}function dF(r){if(!jN(r.parent)){if(e.isLet(r.declarationList))return cn(r,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);if(e.isVarConst(r.declarationList))return cn(r,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}function pF(r){var t=r.name.escapedText;switch(r.keywordToken){case 103:if(t!=="target")return cn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"target");break;case 100:if(t!=="meta")return cn(r.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,r.name.escapedText,e.tokenToString(r.keywordToken),"meta");break}}function R_(r){return r.parseDiagnostics.length>0}function Vs(r,t,a,o,s){var f=e.getSourceFileOfNode(r);if(!R_(f)){var N=e.getSpanOfTokenAtPosition(f,r.pos);return fa.add(e.createFileDiagnostic(f,N.start,N.length,t,a,o,s)),!0}return!1}function gp(r,t,a,o,s,f,N){var U=e.getSourceFileOfNode(r);return R_(U)?!1:(fa.add(e.createFileDiagnostic(U,t,a,o,s,f,N)),!0)}function _F(r,t,a,o,s,f){var N=e.getSourceFileOfNode(t);return R_(N)?!1:(cc(r,t,a,o,s,f),!0)}function cn(r,t,a,o,s){var f=e.getSourceFileOfNode(r);return R_(f)?!1:(fa.add(e.createDiagnosticForNode(r,t,a,o,s)),!0)}function mF(r){var t=e.isInJSFile(r)?e.getJSDocTypeParameterDeclarations(r):void 0,a=r.typeParameters||t&&e.firstOrUndefined(t);if(a){var o=a.pos===a.end?a.pos:e.skipTrivia(e.getSourceFileOfNode(r).text,a.pos);return gp(r,o,a.end-o,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function gF(r){var t=e.getEffectiveReturnTypeNode(r);if(t)return cn(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function vF(r){if(e.isComputedPropertyName(r.name)&&e.isBinaryExpression(r.name.expression)&&r.name.expression.operatorToken.kind===101)return cn(r.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(r.parent)){if(e.isStringLiteral(r.name)&&r.name.text==="constructor")return cn(r.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(wg(r.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Ne<2&&e.isPrivateIdentifier(r.name))return cn(r.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(r.parent.kind===257){if(wg(r.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(r.initializer)return cn(r.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(r.parent)){if(wg(r.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(r.initializer)return cn(r.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&8388608&&UN(r),e.isPropertyDeclaration(r)&&r.exclamationToken&&(!e.isClassLike(r.parent)||!r.type||r.initializer||r.flags&8388608||e.isStatic(r)||e.hasAbstractModifier(r))){var t=r.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return cn(r.exclamationToken,t)}}function hF(r){return r.kind===257||r.kind===258||r.kind===265||r.kind===264||r.kind===271||r.kind===270||r.kind===263||e.hasSyntacticModifier(r,515)?!1:Vs(r,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function yF(r){for(var t=0,a=r.statements;t<a.length;t++){var o=a[t];if((e.isDeclaration(o)||o.kind===236)&&hF(o))return!0}return!1}function bF(r){return!!(r.flags&8388608)&&yF(r)}function Af(r){if(r.flags&8388608){var t=Zn(r);if(!t.hasReportedStatementInAmbientContext&&(e.isFunctionLike(r.parent)||e.isAccessor(r.parent)))return Zn(r).hasReportedStatementInAmbientContext=Vs(r,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===234||r.parent.kind===261||r.parent.kind===303){var a=Zn(r.parent);if(!a.hasReportedStatementInAmbientContext)return a.hasReportedStatementInAmbientContext=Vs(r,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function vS(r){if(r.numericLiteralFlags&32){var t=void 0;if(Ne>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(r,195)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(r,297)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var a=e.isPrefixUnaryExpression(r.parent)&&r.parent.operator===40,o=(a?"-":"")+"0o"+r.text;return cn(a?r.parent:r,t,o)}}return EF(r),!1}function EF(r){if(!(r.numericLiteralFlags&16||r.text.length<=15||r.text.indexOf(".")!==-1)){var t=+e.getTextOfNode(r);t<=Math.pow(2,53)-1&&t+1>t||Il(!1,e.createDiagnosticForNode(r,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function TF(r){var t=e.isLiteralTypeNode(r.parent)||e.isPrefixUnaryExpression(r.parent)&&e.isLiteralTypeNode(r.parent.parent);return!!(!t&&Ne<7&&cn(r,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function SF(r,t,a,o,s){var f=e.getSourceFileOfNode(r);if(!R_(f)){var N=e.getSpanOfTokenAtPosition(f,r.pos);return fa.add(e.createFileDiagnostic(f,e.textSpanEnd(N),0,t,a,o,s)),!0}return!1}function DF(){return vr||(vr=[],kr.forEach(function(r,t){n.test(t)&&vr.push(r)})),vr}function LF(r){var t;return r.isTypeOnly&&r.name&&r.namedBindings?cn(r,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((t=r.namedBindings)===null||t===void 0?void 0:t.kind)===268?HN(r.namedBindings):!1}function HN(r){return!!e.forEach(r.elements,function(t){if(t.isTypeOnly)return Vs(t,t.kind===269?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function AF(r){if(ve===e.ModuleKind.ES2015)return cn(r,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node12_or_nodenext);if(r.typeArguments)return cn(r,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=r.arguments;if(ve!==e.ModuleKind.ESNext&&(nm(t),t.length>1)){var a=t[1];return cn(a,e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext)}if(t.length===0||t.length>2)return cn(r,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var o=e.find(t,e.isSpreadElement);return o?cn(o,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element):!1}function CF(r,t){var a=e.getObjectFlags(r);if(a&20&&t.flags&1048576)return e.find(t.types,function(o){if(o.flags&524288){var s=a&e.getObjectFlags(o);if(s&4)return r.target===o.target;if(s&16)return!!r.aliasSymbol&&r.aliasSymbol===o.aliasSymbol}return!1})}function xF(r,t){if(e.getObjectFlags(r)&128&&Om(t,_p))return e.find(t.types,function(a){return!_p(a)})}function IF(r,t){var a=0,o=Li(r,a).length>0||(a=1,Li(r,a).length>0);if(o)return e.find(t.types,function(s){return Li(s,a).length>0})}function NF(r,t){for(var a,o=0,s=0,f=t.types;s<f.length;s++){var N=f[s],U=To([Zu(r),Zu(N)]);if(U.flags&4194304)a=N,o=1/0;else if(U.flags&1048576){var fe=e.length(e.filter(U.types,Ou));fe>=o&&(a=N,o=fe)}else Ou(U)&&1>=o&&(a=N,o=1)}return a}function kF(r){if(Jo(r,67108864)){var t=el(r,function(a){return!(a.flags&131068)});if(!(t.flags&131072))return t}return r}function JN(r,t,a,o){if(t.flags&1048576&&r.flags&2621440){var s=SC(t,r);if(s)return s;var f=ro(r);if(f){var N=TC(f,t);if(N)return v1(t,e.map(N,function(U){return[function(){return En(U)},U.escapedName]}),a,void 0,o)}}}}e.createTypeChecker=T;function _(A){return!e.isAccessor(A)}function h(A){return A.kind!==255&&A.kind!==168||!!A.body}function R(A){switch(A.parent.kind){case 269:case 274:return e.isIdentifier(A);default:return e.isDeclarationName(A)}}var b;(function(A){A.JSX="JSX",A.IntrinsicElements="IntrinsicElements",A.ElementClass="ElementClass",A.ElementAttributesPropertyNameContainer="ElementAttributesProperty",A.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",A.Element="Element",A.IntrinsicAttributes="IntrinsicAttributes",A.IntrinsicClassAttributes="IntrinsicClassAttributes",A.LibraryManagedAttributes="LibraryManagedAttributes"})(b||(b={}));function G(A){switch(A){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Y(A){return!!(A.flags&1)}e.signatureHasRestParameter=Y;function pe(A){return!!(A.flags&2)}e.signatureHasLiteralTypes=pe})(mr||(mr={}));var mr;(function(e){function n(E,F,$,C){if(E===void 0||F===void 0)return E;var K=F(E);if(K===E)return E;var k;if(K!==void 0)return e.isArray(K)?k=(C||te)(K):k=K,e.Debug.assertNode(k,$),k}e.visitNode=n;function c(E,F,$,C,K){if(E===void 0||F===void 0)return E;var k,X=E.length;(C===void 0||C<0)&&(C=0),(K===void 0||K>X-C)&&(K=X-C);var O,x=-1,ie=-1;(C>0||K<X)&&(k=[],O=E.hasTrailingComma&&C+K===X);for(var Z=0;Z<K;Z++){var re=E[Z+C],q=re!==void 0?F(re):void 0;if((k!==void 0||q===void 0||q!==re)&&(k===void 0&&(k=E.slice(0,Z),O=E.hasTrailingComma,x=E.pos,ie=E.end),q))if(e.isArray(q))for(var P=0,M=q;P<M.length;P++){var Q=M[P];e.Debug.assertNode(Q,$),k.push(Q)}else e.Debug.assertNode(q,$),k.push(q)}if(k){var H=e.factory.createNodeArray(k,O);return e.setTextRangePosEnd(H,x,ie),H}return E}e.visitNodes=c;function u(E,F,$,C,K,k){return k===void 0&&(k=c),$.startLexicalEnvironment(),E=k(E,F,e.isStatement,C),K&&(E=$.factory.ensureUseStrict(E)),e.factory.mergeLexicalEnvironment(E,$.endLexicalEnvironment())}e.visitLexicalEnvironment=u;function g(E,F,$,C){C===void 0&&(C=c);var K;return $.startLexicalEnvironment(),E&&($.setLexicalEnvironmentFlags(1,!0),K=C(E,F,e.isParameterDeclaration),$.getLexicalEnvironmentFlags()&2&&e.getEmitScriptTarget($.getCompilerOptions())>=2&&(K=p(K,$)),$.setLexicalEnvironmentFlags(1,!1)),$.suspendLexicalEnvironment(),K}e.visitParameterList=g;function p(E,F){for(var $,C=0;C<E.length;C++){var K=E[C],k=I(K,F);($||k!==K)&&($||($=E.slice(0,C)),$[C]=k)}return $?e.setTextRange(F.factory.createNodeArray($,E.hasTrailingComma),E):E}function I(E,F){return E.dotDotDotToken?E:e.isBindingPattern(E.name)?V(E,F):E.initializer?L(E,E.name,E.initializer,F):E}function V(E,F){var $=F.factory;return F.addInitializationStatement($.createVariableStatement(void 0,$.createVariableDeclarationList([$.createVariableDeclaration(E.name,void 0,E.type,E.initializer?$.createConditionalExpression($.createStrictEquality($.getGeneratedNameForNode(E),$.createVoidZero()),void 0,E.initializer,void 0,$.getGeneratedNameForNode(E)):$.getGeneratedNameForNode(E))]))),$.updateParameterDeclaration(E,E.decorators,E.modifiers,E.dotDotDotToken,$.getGeneratedNameForNode(E),E.questionToken,E.type,void 0)}function L(E,F,$,C){var K=C.factory;return C.addInitializationStatement(K.createIfStatement(K.createTypeCheck(K.cloneNode(F),"undefined"),e.setEmitFlags(e.setTextRange(K.createBlock([K.createExpressionStatement(e.setEmitFlags(e.setTextRange(K.createAssignment(e.setEmitFlags(K.cloneNode(F),48),e.setEmitFlags($,48|e.getEmitFlags($)|1536)),E),1536))]),E),1953))),K.updateParameterDeclaration(E,E.decorators,E.modifiers,E.dotDotDotToken,E.name,E.questionToken,E.type,void 0)}function m(E,F,$,C){C===void 0&&(C=n),$.resumeLexicalEnvironment();var K=C(E,F,e.isConciseBody),k=$.endLexicalEnvironment();if(e.some(k)){if(!K)return $.factory.createBlock(k);var X=$.factory.converters.convertToFunctionBlock(K),O=e.factory.mergeLexicalEnvironment(X.statements,k);return $.factory.updateBlock(X,O)}return K}e.visitFunctionBody=m;function y(E,F,$){$.startBlockScope();var C=n(E,F,e.isStatement,$.factory.liftToBlock),K=$.endBlockScope();return e.some(K)?e.isBlock(C)?(K.push.apply(K,C.statements),$.factory.updateBlock(C,K)):(K.push(C),$.factory.createBlock(K)):C}e.visitIterationBody=y;function j(E,F,$,C,K,k){if(C===void 0&&(C=c),k===void 0&&(k=n),E!==void 0){var X=E.kind;if(X>0&&X<=159||X===191)return E;var O=$.factory;switch(X){case 79:return e.Debug.type(E),O.updateIdentifier(E,C(E.typeArguments,F,e.isTypeNodeOrTypeParameterDeclaration));case 160:return e.Debug.type(E),O.updateQualifiedName(E,k(E.left,F,e.isEntityName),k(E.right,F,e.isIdentifier));case 161:return e.Debug.type(E),O.updateComputedPropertyName(E,k(E.expression,F,e.isExpression));case 162:return e.Debug.type(E),O.updateTypeParameterDeclaration(E,k(E.name,F,e.isIdentifier),k(E.constraint,F,e.isTypeNode),k(E.default,F,e.isTypeNode));case 163:return e.Debug.type(E),O.updateParameterDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.dotDotDotToken,K,e.isDotDotDotToken),k(E.name,F,e.isBindingName),k(E.questionToken,K,e.isQuestionToken),k(E.type,F,e.isTypeNode),k(E.initializer,F,e.isExpression));case 164:return e.Debug.type(E),O.updateDecorator(E,k(E.expression,F,e.isExpression));case 165:return e.Debug.type(E),O.updatePropertySignature(E,C(E.modifiers,F,e.isModifier),k(E.name,F,e.isPropertyName),k(E.questionToken,K,e.isToken),k(E.type,F,e.isTypeNode));case 166:return e.Debug.type(E),O.updatePropertyDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isPropertyName),k(E.questionToken||E.exclamationToken,K,e.isQuestionOrExclamationToken),k(E.type,F,e.isTypeNode),k(E.initializer,F,e.isExpression));case 167:return e.Debug.type(E),O.updateMethodSignature(E,C(E.modifiers,F,e.isModifier),k(E.name,F,e.isPropertyName),k(E.questionToken,K,e.isQuestionToken),C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.parameters,F,e.isParameterDeclaration),k(E.type,F,e.isTypeNode));case 168:return e.Debug.type(E),O.updateMethodDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.asteriskToken,K,e.isAsteriskToken),k(E.name,F,e.isPropertyName),k(E.questionToken,K,e.isQuestionToken),C(E.typeParameters,F,e.isTypeParameterDeclaration),g(E.parameters,F,$,C),k(E.type,F,e.isTypeNode),m(E.body,F,$,k));case 170:return e.Debug.type(E),O.updateConstructorDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),g(E.parameters,F,$,C),m(E.body,F,$,k));case 171:return e.Debug.type(E),O.updateGetAccessorDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isPropertyName),g(E.parameters,F,$,C),k(E.type,F,e.isTypeNode),m(E.body,F,$,k));case 172:return e.Debug.type(E),O.updateSetAccessorDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isPropertyName),g(E.parameters,F,$,C),m(E.body,F,$,k));case 169:return e.Debug.type(E),$.startLexicalEnvironment(),$.suspendLexicalEnvironment(),O.updateClassStaticBlockDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),m(E.body,F,$,k));case 173:return e.Debug.type(E),O.updateCallSignature(E,C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.parameters,F,e.isParameterDeclaration),k(E.type,F,e.isTypeNode));case 174:return e.Debug.type(E),O.updateConstructSignature(E,C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.parameters,F,e.isParameterDeclaration),k(E.type,F,e.isTypeNode));case 175:return e.Debug.type(E),O.updateIndexSignature(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),C(E.parameters,F,e.isParameterDeclaration),k(E.type,F,e.isTypeNode));case 176:return e.Debug.type(E),O.updateTypePredicateNode(E,k(E.assertsModifier,F,e.isAssertsKeyword),k(E.parameterName,F,e.isIdentifierOrThisTypeNode),k(E.type,F,e.isTypeNode));case 177:return e.Debug.type(E),O.updateTypeReferenceNode(E,k(E.typeName,F,e.isEntityName),C(E.typeArguments,F,e.isTypeNode));case 178:return e.Debug.type(E),O.updateFunctionTypeNode(E,C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.parameters,F,e.isParameterDeclaration),k(E.type,F,e.isTypeNode));case 179:return e.Debug.type(E),O.updateConstructorTypeNode(E,C(E.modifiers,F,e.isModifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.parameters,F,e.isParameterDeclaration),k(E.type,F,e.isTypeNode));case 180:return e.Debug.type(E),O.updateTypeQueryNode(E,k(E.exprName,F,e.isEntityName));case 181:return e.Debug.type(E),O.updateTypeLiteralNode(E,C(E.members,F,e.isTypeElement));case 182:return e.Debug.type(E),O.updateArrayTypeNode(E,k(E.elementType,F,e.isTypeNode));case 183:return e.Debug.type(E),O.updateTupleTypeNode(E,C(E.elements,F,e.isTypeNode));case 184:return e.Debug.type(E),O.updateOptionalTypeNode(E,k(E.type,F,e.isTypeNode));case 185:return e.Debug.type(E),O.updateRestTypeNode(E,k(E.type,F,e.isTypeNode));case 186:return e.Debug.type(E),O.updateUnionTypeNode(E,C(E.types,F,e.isTypeNode));case 187:return e.Debug.type(E),O.updateIntersectionTypeNode(E,C(E.types,F,e.isTypeNode));case 188:return e.Debug.type(E),O.updateConditionalTypeNode(E,k(E.checkType,F,e.isTypeNode),k(E.extendsType,F,e.isTypeNode),k(E.trueType,F,e.isTypeNode),k(E.falseType,F,e.isTypeNode));case 189:return e.Debug.type(E),O.updateInferTypeNode(E,k(E.typeParameter,F,e.isTypeParameterDeclaration));case 199:return e.Debug.type(E),O.updateImportTypeNode(E,k(E.argument,F,e.isTypeNode),k(E.qualifier,F,e.isEntityName),c(E.typeArguments,F,e.isTypeNode),E.isTypeOf);case 196:return e.Debug.type(E),O.updateNamedTupleMember(E,n(E.dotDotDotToken,F,e.isDotDotDotToken),n(E.name,F,e.isIdentifier),n(E.questionToken,F,e.isQuestionToken),n(E.type,F,e.isTypeNode));case 190:return e.Debug.type(E),O.updateParenthesizedType(E,k(E.type,F,e.isTypeNode));case 192:return e.Debug.type(E),O.updateTypeOperatorNode(E,k(E.type,F,e.isTypeNode));case 193:return e.Debug.type(E),O.updateIndexedAccessTypeNode(E,k(E.objectType,F,e.isTypeNode),k(E.indexType,F,e.isTypeNode));case 194:return e.Debug.type(E),O.updateMappedTypeNode(E,k(E.readonlyToken,K,e.isReadonlyKeywordOrPlusOrMinusToken),k(E.typeParameter,F,e.isTypeParameterDeclaration),k(E.nameType,F,e.isTypeNode),k(E.questionToken,K,e.isQuestionOrPlusOrMinusToken),k(E.type,F,e.isTypeNode),C(E.members,F,e.isTypeElement));case 195:return e.Debug.type(E),O.updateLiteralTypeNode(E,k(E.literal,F,e.isExpression));case 197:return e.Debug.type(E),O.updateTemplateLiteralType(E,k(E.head,F,e.isTemplateHead),C(E.templateSpans,F,e.isTemplateLiteralTypeSpan));case 198:return e.Debug.type(E),O.updateTemplateLiteralTypeSpan(E,k(E.type,F,e.isTypeNode),k(E.literal,F,e.isTemplateMiddleOrTemplateTail));case 200:return e.Debug.type(E),O.updateObjectBindingPattern(E,C(E.elements,F,e.isBindingElement));case 201:return e.Debug.type(E),O.updateArrayBindingPattern(E,C(E.elements,F,e.isArrayBindingElement));case 202:return e.Debug.type(E),O.updateBindingElement(E,k(E.dotDotDotToken,K,e.isDotDotDotToken),k(E.propertyName,F,e.isPropertyName),k(E.name,F,e.isBindingName),k(E.initializer,F,e.isExpression));case 203:return e.Debug.type(E),O.updateArrayLiteralExpression(E,C(E.elements,F,e.isExpression));case 204:return e.Debug.type(E),O.updateObjectLiteralExpression(E,C(E.properties,F,e.isObjectLiteralElementLike));case 205:return E.flags&32?(e.Debug.type(E),O.updatePropertyAccessChain(E,k(E.expression,F,e.isExpression),k(E.questionDotToken,K,e.isQuestionDotToken),k(E.name,F,e.isMemberName))):(e.Debug.type(E),O.updatePropertyAccessExpression(E,k(E.expression,F,e.isExpression),k(E.name,F,e.isMemberName)));case 206:return E.flags&32?(e.Debug.type(E),O.updateElementAccessChain(E,k(E.expression,F,e.isExpression),k(E.questionDotToken,K,e.isQuestionDotToken),k(E.argumentExpression,F,e.isExpression))):(e.Debug.type(E),O.updateElementAccessExpression(E,k(E.expression,F,e.isExpression),k(E.argumentExpression,F,e.isExpression)));case 207:return E.flags&32?(e.Debug.type(E),O.updateCallChain(E,k(E.expression,F,e.isExpression),k(E.questionDotToken,K,e.isQuestionDotToken),C(E.typeArguments,F,e.isTypeNode),C(E.arguments,F,e.isExpression))):(e.Debug.type(E),O.updateCallExpression(E,k(E.expression,F,e.isExpression),C(E.typeArguments,F,e.isTypeNode),C(E.arguments,F,e.isExpression)));case 208:return e.Debug.type(E),O.updateNewExpression(E,k(E.expression,F,e.isExpression),C(E.typeArguments,F,e.isTypeNode),C(E.arguments,F,e.isExpression));case 209:return e.Debug.type(E),O.updateTaggedTemplateExpression(E,k(E.tag,F,e.isExpression),c(E.typeArguments,F,e.isTypeNode),k(E.template,F,e.isTemplateLiteral));case 210:return e.Debug.type(E),O.updateTypeAssertion(E,k(E.type,F,e.isTypeNode),k(E.expression,F,e.isExpression));case 211:return e.Debug.type(E),O.updateParenthesizedExpression(E,k(E.expression,F,e.isExpression));case 212:return e.Debug.type(E),O.updateFunctionExpression(E,C(E.modifiers,F,e.isModifier),k(E.asteriskToken,K,e.isAsteriskToken),k(E.name,F,e.isIdentifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),g(E.parameters,F,$,C),k(E.type,F,e.isTypeNode),m(E.body,F,$,k));case 213:return e.Debug.type(E),O.updateArrowFunction(E,C(E.modifiers,F,e.isModifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),g(E.parameters,F,$,C),k(E.type,F,e.isTypeNode),k(E.equalsGreaterThanToken,K,e.isEqualsGreaterThanToken),m(E.body,F,$,k));case 214:return e.Debug.type(E),O.updateDeleteExpression(E,k(E.expression,F,e.isExpression));case 215:return e.Debug.type(E),O.updateTypeOfExpression(E,k(E.expression,F,e.isExpression));case 216:return e.Debug.type(E),O.updateVoidExpression(E,k(E.expression,F,e.isExpression));case 217:return e.Debug.type(E),O.updateAwaitExpression(E,k(E.expression,F,e.isExpression));case 218:return e.Debug.type(E),O.updatePrefixUnaryExpression(E,k(E.operand,F,e.isExpression));case 219:return e.Debug.type(E),O.updatePostfixUnaryExpression(E,k(E.operand,F,e.isExpression));case 220:return e.Debug.type(E),O.updateBinaryExpression(E,k(E.left,F,e.isExpression),k(E.operatorToken,K,e.isBinaryOperatorToken),k(E.right,F,e.isExpression));case 221:return e.Debug.type(E),O.updateConditionalExpression(E,k(E.condition,F,e.isExpression),k(E.questionToken,K,e.isQuestionToken),k(E.whenTrue,F,e.isExpression),k(E.colonToken,K,e.isColonToken),k(E.whenFalse,F,e.isExpression));case 222:return e.Debug.type(E),O.updateTemplateExpression(E,k(E.head,F,e.isTemplateHead),C(E.templateSpans,F,e.isTemplateSpan));case 223:return e.Debug.type(E),O.updateYieldExpression(E,k(E.asteriskToken,K,e.isAsteriskToken),k(E.expression,F,e.isExpression));case 224:return e.Debug.type(E),O.updateSpreadElement(E,k(E.expression,F,e.isExpression));case 225:return e.Debug.type(E),O.updateClassExpression(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isIdentifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.heritageClauses,F,e.isHeritageClause),C(E.members,F,e.isClassElement));case 227:return e.Debug.type(E),O.updateExpressionWithTypeArguments(E,k(E.expression,F,e.isExpression),C(E.typeArguments,F,e.isTypeNode));case 228:return e.Debug.type(E),O.updateAsExpression(E,k(E.expression,F,e.isExpression),k(E.type,F,e.isTypeNode));case 229:return E.flags&32?(e.Debug.type(E),O.updateNonNullChain(E,k(E.expression,F,e.isExpression))):(e.Debug.type(E),O.updateNonNullExpression(E,k(E.expression,F,e.isExpression)));case 230:return e.Debug.type(E),O.updateMetaProperty(E,k(E.name,F,e.isIdentifier));case 232:return e.Debug.type(E),O.updateTemplateSpan(E,k(E.expression,F,e.isExpression),k(E.literal,F,e.isTemplateMiddleOrTemplateTail));case 234:return e.Debug.type(E),O.updateBlock(E,C(E.statements,F,e.isStatement));case 236:return e.Debug.type(E),O.updateVariableStatement(E,C(E.modifiers,F,e.isModifier),k(E.declarationList,F,e.isVariableDeclarationList));case 237:return e.Debug.type(E),O.updateExpressionStatement(E,k(E.expression,F,e.isExpression));case 238:return e.Debug.type(E),O.updateIfStatement(E,k(E.expression,F,e.isExpression),k(E.thenStatement,F,e.isStatement,O.liftToBlock),k(E.elseStatement,F,e.isStatement,O.liftToBlock));case 239:return e.Debug.type(E),O.updateDoStatement(E,y(E.statement,F,$),k(E.expression,F,e.isExpression));case 240:return e.Debug.type(E),O.updateWhileStatement(E,k(E.expression,F,e.isExpression),y(E.statement,F,$));case 241:return e.Debug.type(E),O.updateForStatement(E,k(E.initializer,F,e.isForInitializer),k(E.condition,F,e.isExpression),k(E.incrementor,F,e.isExpression),y(E.statement,F,$));case 242:return e.Debug.type(E),O.updateForInStatement(E,k(E.initializer,F,e.isForInitializer),k(E.expression,F,e.isExpression),y(E.statement,F,$));case 243:return e.Debug.type(E),O.updateForOfStatement(E,k(E.awaitModifier,K,e.isAwaitKeyword),k(E.initializer,F,e.isForInitializer),k(E.expression,F,e.isExpression),y(E.statement,F,$));case 244:return e.Debug.type(E),O.updateContinueStatement(E,k(E.label,F,e.isIdentifier));case 245:return e.Debug.type(E),O.updateBreakStatement(E,k(E.label,F,e.isIdentifier));case 246:return e.Debug.type(E),O.updateReturnStatement(E,k(E.expression,F,e.isExpression));case 247:return e.Debug.type(E),O.updateWithStatement(E,k(E.expression,F,e.isExpression),k(E.statement,F,e.isStatement,O.liftToBlock));case 248:return e.Debug.type(E),O.updateSwitchStatement(E,k(E.expression,F,e.isExpression),k(E.caseBlock,F,e.isCaseBlock));case 249:return e.Debug.type(E),O.updateLabeledStatement(E,k(E.label,F,e.isIdentifier),k(E.statement,F,e.isStatement,O.liftToBlock));case 250:return e.Debug.type(E),O.updateThrowStatement(E,k(E.expression,F,e.isExpression));case 251:return e.Debug.type(E),O.updateTryStatement(E,k(E.tryBlock,F,e.isBlock),k(E.catchClause,F,e.isCatchClause),k(E.finallyBlock,F,e.isBlock));case 253:return e.Debug.type(E),O.updateVariableDeclaration(E,k(E.name,F,e.isBindingName),k(E.exclamationToken,K,e.isExclamationToken),k(E.type,F,e.isTypeNode),k(E.initializer,F,e.isExpression));case 254:return e.Debug.type(E),O.updateVariableDeclarationList(E,C(E.declarations,F,e.isVariableDeclaration));case 255:return e.Debug.type(E),O.updateFunctionDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.asteriskToken,K,e.isAsteriskToken),k(E.name,F,e.isIdentifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),g(E.parameters,F,$,C),k(E.type,F,e.isTypeNode),m(E.body,F,$,k));case 256:return e.Debug.type(E),O.updateClassDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isIdentifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.heritageClauses,F,e.isHeritageClause),C(E.members,F,e.isClassElement));case 257:return e.Debug.type(E),O.updateInterfaceDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isIdentifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),C(E.heritageClauses,F,e.isHeritageClause),C(E.members,F,e.isTypeElement));case 258:return e.Debug.type(E),O.updateTypeAliasDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isIdentifier),C(E.typeParameters,F,e.isTypeParameterDeclaration),k(E.type,F,e.isTypeNode));case 259:return e.Debug.type(E),O.updateEnumDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isIdentifier),C(E.members,F,e.isEnumMember));case 260:return e.Debug.type(E),O.updateModuleDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.name,F,e.isModuleName),k(E.body,F,e.isModuleBody));case 261:return e.Debug.type(E),O.updateModuleBlock(E,C(E.statements,F,e.isStatement));case 262:return e.Debug.type(E),O.updateCaseBlock(E,C(E.clauses,F,e.isCaseOrDefaultClause));case 263:return e.Debug.type(E),O.updateNamespaceExportDeclaration(E,k(E.name,F,e.isIdentifier));case 264:return e.Debug.type(E),O.updateImportEqualsDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),E.isTypeOnly,k(E.name,F,e.isIdentifier),k(E.moduleReference,F,e.isModuleReference));case 265:return e.Debug.type(E),O.updateImportDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.importClause,F,e.isImportClause),k(E.moduleSpecifier,F,e.isExpression),k(E.assertClause,F,e.isAssertClause));case 292:return e.Debug.type(E),O.updateAssertClause(E,C(E.elements,F,e.isAssertEntry),E.multiLine);case 293:return e.Debug.type(E),O.updateAssertEntry(E,k(E.name,F,e.isAssertionKey),k(E.value,F,e.isStringLiteral));case 266:return e.Debug.type(E),O.updateImportClause(E,E.isTypeOnly,k(E.name,F,e.isIdentifier),k(E.namedBindings,F,e.isNamedImportBindings));case 267:return e.Debug.type(E),O.updateNamespaceImport(E,k(E.name,F,e.isIdentifier));case 273:return e.Debug.type(E),O.updateNamespaceExport(E,k(E.name,F,e.isIdentifier));case 268:return e.Debug.type(E),O.updateNamedImports(E,C(E.elements,F,e.isImportSpecifier));case 269:return e.Debug.type(E),O.updateImportSpecifier(E,E.isTypeOnly,k(E.propertyName,F,e.isIdentifier),k(E.name,F,e.isIdentifier));case 270:return e.Debug.type(E),O.updateExportAssignment(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),k(E.expression,F,e.isExpression));case 271:return e.Debug.type(E),O.updateExportDeclaration(E,C(E.decorators,F,e.isDecorator),C(E.modifiers,F,e.isModifier),E.isTypeOnly,k(E.exportClause,F,e.isNamedExportBindings),k(E.moduleSpecifier,F,e.isExpression),k(E.assertClause,F,e.isAssertClause));case 272:return e.Debug.type(E),O.updateNamedExports(E,C(E.elements,F,e.isExportSpecifier));case 274:return e.Debug.type(E),O.updateExportSpecifier(E,E.isTypeOnly,k(E.propertyName,F,e.isIdentifier),k(E.name,F,e.isIdentifier));case 276:return e.Debug.type(E),O.updateExternalModuleReference(E,k(E.expression,F,e.isExpression));case 277:return e.Debug.type(E),O.updateJsxElement(E,k(E.openingElement,F,e.isJsxOpeningElement),C(E.children,F,e.isJsxChild),k(E.closingElement,F,e.isJsxClosingElement));case 278:return e.Debug.type(E),O.updateJsxSelfClosingElement(E,k(E.tagName,F,e.isJsxTagNameExpression),C(E.typeArguments,F,e.isTypeNode),k(E.attributes,F,e.isJsxAttributes));case 279:return e.Debug.type(E),O.updateJsxOpeningElement(E,k(E.tagName,F,e.isJsxTagNameExpression),C(E.typeArguments,F,e.isTypeNode),k(E.attributes,F,e.isJsxAttributes));case 280:return e.Debug.type(E),O.updateJsxClosingElement(E,k(E.tagName,F,e.isJsxTagNameExpression));case 281:return e.Debug.type(E),O.updateJsxFragment(E,k(E.openingFragment,F,e.isJsxOpeningFragment),C(E.children,F,e.isJsxChild),k(E.closingFragment,F,e.isJsxClosingFragment));case 284:return e.Debug.type(E),O.updateJsxAttribute(E,k(E.name,F,e.isIdentifier),k(E.initializer,F,e.isStringLiteralOrJsxExpression));case 285:return e.Debug.type(E),O.updateJsxAttributes(E,C(E.properties,F,e.isJsxAttributeLike));case 286:return e.Debug.type(E),O.updateJsxSpreadAttribute(E,k(E.expression,F,e.isExpression));case 287:return e.Debug.type(E),O.updateJsxExpression(E,k(E.expression,F,e.isExpression));case 288:return e.Debug.type(E),O.updateCaseClause(E,k(E.expression,F,e.isExpression),C(E.statements,F,e.isStatement));case 289:return e.Debug.type(E),O.updateDefaultClause(E,C(E.statements,F,e.isStatement));case 290:return e.Debug.type(E),O.updateHeritageClause(E,C(E.types,F,e.isExpressionWithTypeArguments));case 291:return e.Debug.type(E),O.updateCatchClause(E,k(E.variableDeclaration,F,e.isVariableDeclaration),k(E.block,F,e.isBlock));case 294:return e.Debug.type(E),O.updatePropertyAssignment(E,k(E.name,F,e.isPropertyName),k(E.initializer,F,e.isExpression));case 295:return e.Debug.type(E),O.updateShorthandPropertyAssignment(E,k(E.name,F,e.isIdentifier),k(E.objectAssignmentInitializer,F,e.isExpression));case 296:return e.Debug.type(E),O.updateSpreadAssignment(E,k(E.expression,F,e.isExpression));case 297:return e.Debug.type(E),O.updateEnumMember(E,k(E.name,F,e.isPropertyName),k(E.initializer,F,e.isExpression));case 303:return e.Debug.type(E),O.updateSourceFile(E,u(E.statements,F,$));case 348:return e.Debug.type(E),O.updatePartiallyEmittedExpression(E,k(E.expression,F,e.isExpression));case 349:return e.Debug.type(E),O.updateCommaListExpression(E,C(E.elements,F,e.isExpression));default:return E}}}e.visitEachChild=j;function te(E){return e.Debug.assert(E.length<=1,"Too many nodes written to output."),e.singleOrUndefined(E)}})(mr||(mr={}));var mr;(function(e){function n(x,ie,Z,re,q){var P=q.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,M=P.enter,Q=P.exit,H=[],w=[],d=new e.Map,B,T=[],_,h=[],R="",b=0,G=0,Y=0,pe=0,A=0,_e=0,Se=!1,ae=0,D=0,be=0,ne=0,J=0,le=0,Te=!1,Me=!1,Ke=!1;return{getSources:function(){return H},addSource:Ae,setSourceContent:Ge,addName:se,addMapping:ce,appendSourceMap:Ue,toJSON:gr,toString:function(){return JSON.stringify(gr())}};function Ae(Nr){M();var ur=e.getRelativePathToDirectoryOrUrl(re,Nr,x.getCurrentDirectory(),x.getCanonicalFileName,!0),xr=d.get(ur);return xr===void 0&&(xr=w.length,w.push(ur),H.push(Nr),d.set(ur,xr)),Q(),xr}function Ge(Nr,ur){if(M(),ur!==null){for(B||(B=[]);B.length<Nr;)B.push(null);B[Nr]=ur}Q()}function se(Nr){M(),_||(_=new e.Map);var ur=_.get(Nr);return ur===void 0&&(ur=T.length,T.push(Nr),_.set(Nr,ur)),Q(),ur}function xe(Nr,ur){return!Te||ae!==Nr||D!==ur}function Re(Nr,ur,xr){return Nr!==void 0&&ur!==void 0&&xr!==void 0&&be===Nr&&(ne>ur||ne===ur&&J>xr)}function ce(Nr,ur,xr,sr,i,Mr){e.Debug.assert(Nr>=ae,"generatedLine cannot backtrack"),e.Debug.assert(ur>=0,"generatedCharacter cannot be negative"),e.Debug.assert(xr===void 0||xr>=0,"sourceIndex cannot be negative"),e.Debug.assert(sr===void 0||sr>=0,"sourceLine cannot be negative"),e.Debug.assert(i===void 0||i>=0,"sourceCharacter cannot be negative"),M(),(xe(Nr,ur)||Re(xr,sr,i))&&(ve(),ae=Nr,D=ur,Me=!1,Ke=!1,Te=!0),xr!==void 0&&sr!==void 0&&i!==void 0&&(be=xr,ne=sr,J=i,Me=!0,Mr!==void 0&&(le=Mr,Ke=!0)),Q()}function Ue(Nr,ur,xr,sr,i,Mr){e.Debug.assert(Nr>=ae,"generatedLine cannot backtrack"),e.Debug.assert(ur>=0,"generatedCharacter cannot be negative"),M();for(var fr=[],Ar,de=m(xr.mappings),we=de.next();!we.done;we=de.next()){var qe=we.value;if(Mr&&(qe.generatedLine>Mr.line||qe.generatedLine===Mr.line&&qe.generatedCharacter>Mr.character))break;if(!(i&&(qe.generatedLine<i.line||i.line===qe.generatedLine&&qe.generatedCharacter<i.character))){var Cr=void 0,kr=void 0,He=void 0,lr=void 0;if(qe.sourceIndex!==void 0){if(Cr=fr[qe.sourceIndex],Cr===void 0){var Hr=xr.sources[qe.sourceIndex],Je=xr.sourceRoot?e.combinePaths(xr.sourceRoot,Hr):Hr,Sr=e.combinePaths(e.getDirectoryPath(sr),Je);fr[qe.sourceIndex]=Cr=Ae(Sr),xr.sourcesContent&&typeof xr.sourcesContent[qe.sourceIndex]=="string"&&Ge(Cr,xr.sourcesContent[qe.sourceIndex])}kr=qe.sourceLine,He=qe.sourceCharacter,xr.names&&qe.nameIndex!==void 0&&(Ar||(Ar=[]),lr=Ar[qe.nameIndex],lr===void 0&&(Ar[qe.nameIndex]=lr=se(xr.names[qe.nameIndex])))}var Yr=qe.generatedLine-(i?i.line:0),ot=Yr+Nr,_t=i&&i.line===qe.generatedLine?qe.generatedCharacter-i.character:qe.generatedCharacter,kt=Yr===0?_t+ur:_t;ce(ot,kt,Cr,kr,He,lr)}}Q()}function We(){return!Se||b!==ae||G!==D||Y!==be||pe!==ne||A!==J||_e!==le}function Ne(Nr){h.push(Nr),h.length>=1024&&Ve()}function ve(){if(!(!Te||!We())){if(M(),b<ae){do Ne(59),b++;while(b<ae);G=0}else e.Debug.assertEqual(b,ae,"generatedLine cannot backtrack"),Se&&Ne(44);Er(D-G),G=D,Me&&(Er(be-Y),Y=be,Er(ne-pe),pe=ne,Er(J-A),A=J,Ke&&(Er(le-_e),_e=le)),Se=!0,Q()}}function Ve(){h.length>0&&(R+=String.fromCharCode.apply(void 0,h),h.length=0)}function gr(){return ve(),Ve(),{version:3,file:ie,sourceRoot:Z,sources:w,names:T,mappings:R,sourcesContent:B}}function Er(Nr){Nr<0?Nr=(-Nr<<1)+1:Nr=Nr<<1;do{var ur=Nr&31;Nr=Nr>>5,Nr>0&&(ur=ur|32),Ne(te(ur))}while(Nr>0)}}e.createSourceMapGenerator=n;var c=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,u=/^\s*(\/\/[@#] .*)?$/;function g(x,ie){return{getLineCount:function(){return ie.length},getLineText:function(Z){return x.substring(ie[Z],ie[Z+1])}}}e.getLineInfo=g;function p(x){for(var ie=x.getLineCount()-1;ie>=0;ie--){var Z=x.getLineText(ie),re=c.exec(Z);if(re)return e.trimStringEnd(re[1]);if(!Z.match(u))break}}e.tryGetSourceMappingURL=p;function I(x){return typeof x=="string"||x===null}function V(x){return x!==null&&typeof x=="object"&&x.version===3&&typeof x.file=="string"&&typeof x.mappings=="string"&&e.isArray(x.sources)&&e.every(x.sources,e.isString)&&(x.sourceRoot===void 0||x.sourceRoot===null||typeof x.sourceRoot=="string")&&(x.sourcesContent===void 0||x.sourcesContent===null||e.isArray(x.sourcesContent)&&e.every(x.sourcesContent,I))&&(x.names===void 0||x.names===null||e.isArray(x.names)&&e.every(x.names,e.isString))}e.isRawSourceMap=V;function L(x){try{var ie=JSON.parse(x);if(V(ie))return ie}catch(Z){}}e.tryParseRawSourceMap=L;function m(x){var ie=!1,Z=0,re=0,q=0,P=0,M=0,Q=0,H=0,w;return{get pos(){return Z},get error(){return w},get state(){return d(!0,!0)},next:function(){for(;!ie&&Z<x.length;){var G=x.charCodeAt(Z);if(G===59){re++,q=0,Z++;continue}if(G===44){Z++;continue}var Y=!1,pe=!1;if(q+=b(),h())return B();if(q<0)return _("Invalid generatedCharacter found");if(!R()){if(Y=!0,P+=b(),h())return B();if(P<0)return _("Invalid sourceIndex found");if(R())return _("Unsupported Format: No entries after sourceIndex");if(M+=b(),h())return B();if(M<0)return _("Invalid sourceLine found");if(R())return _("Unsupported Format: No entries after sourceLine");if(Q+=b(),h())return B();if(Q<0)return _("Invalid sourceCharacter found");if(!R()){if(pe=!0,H+=b(),h())return B();if(H<0)return _("Invalid nameIndex found");if(!R())return _("Unsupported Error Format: Entries after nameIndex")}}return{value:d(Y,pe),done:ie}}return B()}};function d(G,Y){return{generatedLine:re,generatedCharacter:q,sourceIndex:G?P:void 0,sourceLine:G?M:void 0,sourceCharacter:G?Q:void 0,nameIndex:Y?H:void 0}}function B(){return ie=!0,{value:void 0,done:!0}}function T(G){w===void 0&&(w=G)}function _(G){return T(G),B()}function h(){return w!==void 0}function R(){return Z===x.length||x.charCodeAt(Z)===44||x.charCodeAt(Z)===59}function b(){for(var G=!0,Y=0,pe=0;G;Z++){if(Z>=x.length)return T("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var A=E(x.charCodeAt(Z));if(A===-1)return T("Invalid character in VLQ"),-1;G=(A&32)!==0,pe=pe|(A&31)<<Y,Y+=5}return(pe&1)===0?pe=pe>>1:(pe=pe>>1,pe=-pe),pe}}e.decodeMappings=m;function y(x,ie){return x===ie||x.generatedLine===ie.generatedLine&&x.generatedCharacter===ie.generatedCharacter&&x.sourceIndex===ie.sourceIndex&&x.sourceLine===ie.sourceLine&&x.sourceCharacter===ie.sourceCharacter&&x.nameIndex===ie.nameIndex}e.sameMapping=y;function j(x){return x.sourceIndex!==void 0&&x.sourceLine!==void 0&&x.sourceCharacter!==void 0}e.isSourceMapping=j;function te(x){return x>=0&&x<26?65+x:x>=26&&x<52?97+x-26:x>=52&&x<62?48+x-52:x===62?43:x===63?47:e.Debug.fail("".concat(x,": not a base64 value"))}function E(x){return x>=65&&x<=90?x-65:x>=97&&x<=122?x-97+26:x>=48&&x<=57?x-48+52:x===43?62:x===47?63:-1}function F(x){return x.sourceIndex!==void 0&&x.sourcePosition!==void 0}function $(x,ie){return x.generatedPosition===ie.generatedPosition&&x.sourceIndex===ie.sourceIndex&&x.sourcePosition===ie.sourcePosition}function C(x,ie){return e.Debug.assert(x.sourceIndex===ie.sourceIndex),e.compareValues(x.sourcePosition,ie.sourcePosition)}function K(x,ie){return e.compareValues(x.generatedPosition,ie.generatedPosition)}function k(x){return x.sourcePosition}function X(x){return x.generatedPosition}function O(x,ie,Z){var re=e.getDirectoryPath(Z),q=ie.sourceRoot?e.getNormalizedAbsolutePath(ie.sourceRoot,re):re,P=e.getNormalizedAbsolutePath(ie.file,re),M=x.getSourceFileLike(P),Q=ie.sources.map(function(Y){return e.getNormalizedAbsolutePath(Y,q)}),H=new e.Map(Q.map(function(Y,pe){return[x.getCanonicalFileName(Y),pe]})),w,d,B;return{getSourcePosition:G,getGeneratedPosition:b};function T(Y){var pe=M!==void 0?e.getPositionOfLineAndCharacter(M,Y.generatedLine,Y.generatedCharacter,!0):-1,A,_e;if(j(Y)){var Se=x.getSourceFileLike(Q[Y.sourceIndex]);A=ie.sources[Y.sourceIndex],_e=Se!==void 0?e.getPositionOfLineAndCharacter(Se,Y.sourceLine,Y.sourceCharacter,!0):-1}return{generatedPosition:pe,source:A,sourceIndex:Y.sourceIndex,sourcePosition:_e,nameIndex:Y.nameIndex}}function _(){if(w===void 0){var Y=m(ie.mappings),pe=e.arrayFrom(Y,T);Y.error!==void 0?(x.log&&x.log("Encountered error while decoding sourcemap: ".concat(Y.error)),w=e.emptyArray):w=pe}return w}function h(Y){if(B===void 0){for(var pe=[],A=0,_e=_();A<_e.length;A++){var Se=_e[A];if(!!F(Se)){var ae=pe[Se.sourceIndex];ae||(pe[Se.sourceIndex]=ae=[]),ae.push(Se)}}B=pe.map(function(D){return e.sortAndDeduplicate(D,C,$)})}return B[Y]}function R(){if(d===void 0){for(var Y=[],pe=0,A=_();pe<A.length;pe++){var _e=A[pe];Y.push(_e)}d=e.sortAndDeduplicate(Y,K,$)}return d}function b(Y){var pe=H.get(x.getCanonicalFileName(Y.fileName));if(pe===void 0)return Y;var A=h(pe);if(!e.some(A))return Y;var _e=e.binarySearchKey(A,Y.pos,k,e.compareValues);_e<0&&(_e=~_e);var Se=A[_e];return Se===void 0||Se.sourceIndex!==pe?Y:{fileName:P,pos:Se.generatedPosition}}function G(Y){var pe=R();if(!e.some(pe))return Y;var A=e.binarySearchKey(pe,Y.pos,X,e.compareValues);A<0&&(A=~A);var _e=pe[A];return _e===void 0||!F(_e)?Y:{fileName:Q[_e.sourceIndex],pos:_e.sourcePosition}}}e.createDocumentPositionMapper=O,e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}})(mr||(mr={}));var mr;(function(e){function n(Z){return Z=e.getOriginalNode(Z),Z?e.getNodeId(Z):0}e.getOriginalNodeId=n;function c(Z){return!Z||!e.isNamedImports(Z)?!1:e.some(Z.elements,u)}function u(Z){return Z.propertyName!==void 0&&Z.propertyName.escapedText==="default"}function g(Z,re){return q;function q(M){return M.kind===303?re(M):P(M)}function P(M){return Z.factory.createBundle(e.map(M.sourceFiles,re),M.prepends)}}e.chainBundle=g;function p(Z){return!!e.getNamespaceDeclarationNode(Z)}e.getExportNeedsImportStarHelper=p;function I(Z){if(e.getNamespaceDeclarationNode(Z))return!0;var re=Z.importClause&&Z.importClause.namedBindings;if(!re||!e.isNamedImports(re))return!1;for(var q=0,P=0,M=re.elements;P<M.length;P++){var Q=M[P];u(Q)&&q++}return q>0&&q!==re.elements.length||!!(re.elements.length-q)&&e.isDefaultImport(Z)}e.getImportNeedsImportStarHelper=I;function V(Z){return!I(Z)&&(e.isDefaultImport(Z)||!!Z.importClause&&e.isNamedImports(Z.importClause.namedBindings)&&c(Z.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=V;function L(Z,re,q,P){for(var M=[],Q=e.createMultiMap(),H=[],w=new e.Map,d,B=!1,T,_=!1,h=!1,R=!1,b=0,G=re.statements;b<G.length;b++){var Y=G[b];switch(Y.kind){case 265:M.push(Y),!h&&I(Y)&&(h=!0),!R&&V(Y)&&(R=!0);break;case 264:Y.moduleReference.kind===276&&M.push(Y);break;case 271:if(Y.moduleSpecifier)if(!Y.exportClause)M.push(Y),_=!0;else if(M.push(Y),e.isNamedExports(Y.exportClause))D(Y);else{var pe=Y.exportClause.name;w.get(e.idText(pe))||(y(H,n(Y),pe),w.set(e.idText(pe),!0),d=e.append(d,pe)),h=!0}else D(Y);break;case 270:Y.isExportEquals&&!T&&(T=Y);break;case 236:if(e.hasSyntacticModifier(Y,1))for(var A=0,_e=Y.declarationList.declarations;A<_e.length;A++){var Se=_e[A];d=m(Se,w,d)}break;case 255:if(e.hasSyntacticModifier(Y,1))if(e.hasSyntacticModifier(Y,512))B||(y(H,n(Y),Z.factory.getDeclarationName(Y)),B=!0);else{var pe=Y.name;w.get(e.idText(pe))||(y(H,n(Y),pe),w.set(e.idText(pe),!0),d=e.append(d,pe))}break;case 256:if(e.hasSyntacticModifier(Y,1))if(e.hasSyntacticModifier(Y,512))B||(y(H,n(Y),Z.factory.getDeclarationName(Y)),B=!0);else{var pe=Y.name;pe&&!w.get(e.idText(pe))&&(y(H,n(Y),pe),w.set(e.idText(pe),!0),d=e.append(d,pe))}break}}var ae=e.createExternalHelpersImportDeclarationIfNeeded(Z.factory,Z.getEmitHelperFactory(),re,P,_,h,R);return ae&&M.unshift(ae),{externalImports:M,exportSpecifiers:Q,exportEquals:T,hasExportStarsToExportValues:_,exportedBindings:H,exportedNames:d,externalHelpersImportDeclaration:ae};function D(be){for(var ne=0,J=e.cast(be.exportClause,e.isNamedExports).elements;ne<J.length;ne++){var le=J[ne];if(!w.get(e.idText(le.name))){var Te=le.propertyName||le.name;be.moduleSpecifier||Q.add(e.idText(Te),le);var Me=q.getReferencedImportDeclaration(Te)||q.getReferencedValueDeclaration(Te);Me&&y(H,n(Me),le.name),w.set(e.idText(le.name),!0),d=e.append(d,le.name)}}}}e.collectExternalModuleInfo=L;function m(Z,re,q){if(e.isBindingPattern(Z.name))for(var P=0,M=Z.name.elements;P<M.length;P++){var Q=M[P];e.isOmittedExpression(Q)||(q=m(Q,re,q))}else if(!e.isGeneratedIdentifier(Z.name)){var H=e.idText(Z.name);re.get(H)||(re.set(H,!0),q=e.append(q,Z.name))}return q}function y(Z,re,q){var P=Z[re];return P?P.push(q):Z[re]=P=[q],P}function j(Z){return e.isStringLiteralLike(Z)||Z.kind===8||e.isKeyword(Z.kind)||e.isIdentifier(Z)}e.isSimpleCopiableExpression=j;function te(Z){return!e.isIdentifier(Z)&&j(Z)}e.isSimpleInlineableExpression=te;function E(Z){return Z>=64&&Z<=78}e.isCompoundAssignment=E;function F(Z){switch(Z){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=F;function $(Z,re,q,P){if(re.body){var M=re.body.statements,Q=Z.copyPrologue(M,q,!1,P);if(Q===M.length)return Q;var H=e.findIndex(M,function(d){return e.isExpressionStatement(d)&&e.isSuperCall(d.expression)},Q);if(H>-1){for(var w=Q;w<=H;w++)q.push(e.visitNode(M[w],P,e.isStatement));return H+1}return Q}return 0}e.addPrologueDirectivesAndInitialSuperCall=$;function C(Z,re,q){return e.filter(Z.members,function(P){return X(P,re,q)})}e.getProperties=C;function K(Z){return O(Z)||e.isClassStaticBlockDeclaration(Z)}function k(Z){return e.filter(Z.members,K)}e.getStaticPropertiesAndClassStaticBlock=k;function X(Z,re,q){return e.isPropertyDeclaration(Z)&&(!!Z.initializer||!re)&&e.hasStaticModifier(Z)===q}function O(Z){return e.isPropertyDeclaration(Z)&&e.hasStaticModifier(Z)}function x(Z){return Z.kind===166&&Z.initializer!==void 0}e.isInitializedProperty=x;function ie(Z){return!e.isStatic(Z)&&e.isMethodOrAccessor(Z)&&e.isPrivateIdentifier(Z.name)}e.isNonStaticMethodOrAccessorWithPrivateName=ie})(mr||(mr={}));var mr;(function(e){var n;(function(x){x[x.All=0]="All",x[x.ObjectRest=1]="ObjectRest"})(n=e.FlattenLevel||(e.FlattenLevel={}));function c(x,ie,Z,re,q,P){var M=x,Q;if(e.isDestructuringAssignment(x))for(Q=x.right;e.isEmptyArrayLiteral(x.left)||e.isEmptyObjectLiteral(x.left);)if(e.isDestructuringAssignment(Q))M=x=Q,Q=x.right;else return e.visitNode(Q,ie,e.isExpression);var H,w={context:Z,level:re,downlevelIteration:!!Z.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:d,emitBindingOrAssignment:B,createArrayBindingOrAssignmentPattern:function(T){return C(Z.factory,T)},createObjectBindingOrAssignmentPattern:function(T){return k(Z.factory,T)},createArrayBindingOrAssignmentElement:O,visitor:ie};if(Q&&(Q=e.visitNode(Q,ie,e.isExpression),e.isIdentifier(Q)&&u(x,Q.escapedText)||p(x)?Q=F(w,Q,!1,M):q?Q=F(w,Q,!0,M):e.nodeIsSynthesized(x)&&(M=Q)),L(w,x,Q,M,e.isDestructuringAssignment(x)),Q&&q){if(!e.some(H))return Q;H.push(Q)}return Z.factory.inlineExpressions(H)||Z.factory.createOmittedExpression();function d(T){H=e.append(H,T)}function B(T,_,h,R){e.Debug.assertNode(T,P?e.isIdentifier:e.isExpression);var b=P?P(T,_,h):e.setTextRange(Z.factory.createAssignment(e.visitNode(T,ie,e.isExpression),_),h);b.original=R,d(b)}}e.flattenDestructuringAssignment=c;function u(x,ie){var Z=e.getTargetOfBindingOrAssignmentElement(x);return e.isBindingOrAssignmentPattern(Z)?g(Z,ie):e.isIdentifier(Z)?Z.escapedText===ie:!1}function g(x,ie){for(var Z=e.getElementsOfBindingOrAssignmentPattern(x),re=0,q=Z;re<q.length;re++){var P=q[re];if(u(P,ie))return!0}return!1}function p(x){var ie=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(ie&&e.isComputedPropertyName(ie)&&!e.isLiteralExpression(ie.expression))return!0;var Z=e.getTargetOfBindingOrAssignmentElement(x);return!!Z&&e.isBindingOrAssignmentPattern(Z)&&I(Z)}function I(x){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(x),p)}function V(x,ie,Z,re,q,P,M){P===void 0&&(P=!1);var Q,H=[],w=[],d={context:Z,level:re,downlevelIteration:!!Z.getCompilerOptions().downlevelIteration,hoistTempVariables:P,emitExpression:ae,emitBindingOrAssignment:D,createArrayBindingOrAssignmentPattern:function(be){return $(Z.factory,be)},createObjectBindingOrAssignmentPattern:function(be){return K(Z.factory,be)},createArrayBindingOrAssignmentElement:function(be){return X(Z.factory,be)},visitor:ie};if(e.isVariableDeclaration(x)){var B=e.getInitializerOfBindingOrAssignmentElement(x);B&&(e.isIdentifier(B)&&u(x,B.escapedText)||p(x))&&(B=F(d,e.visitNode(B,d.visitor),!1,B),x=Z.factory.updateVariableDeclaration(x,x.name,void 0,void 0,B))}if(L(d,x,q,x,M),Q){var T=Z.factory.createTempVariable(void 0);if(P){var _=Z.factory.inlineExpressions(Q);Q=void 0,D(T,_,void 0,void 0)}else{Z.hoistVariableDeclaration(T);var h=e.last(H);h.pendingExpressions=e.append(h.pendingExpressions,Z.factory.createAssignment(T,h.value)),e.addRange(h.pendingExpressions,Q),h.value=T}}for(var R=0,b=H;R<b.length;R++){var G=b[R],Y=G.pendingExpressions,pe=G.name,_=G.value,A=G.location,_e=G.original,Se=Z.factory.createVariableDeclaration(pe,void 0,void 0,Y?Z.factory.inlineExpressions(e.append(Y,_)):_);Se.original=_e,e.setTextRange(Se,A),w.push(Se)}return w;function ae(be){Q=e.append(Q,be)}function D(be,ne,J,le){e.Debug.assertNode(be,e.isBindingName),Q&&(ne=Z.factory.inlineExpressions(e.append(Q,ne)),Q=void 0),H.push({pendingExpressions:Q,name:be,value:ne,location:J,original:le})}}e.flattenDestructuringBinding=V;function L(x,ie,Z,re,q){var P=e.getTargetOfBindingOrAssignmentElement(ie);if(!q){var M=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(ie),x.visitor,e.isExpression);M?Z?(Z=te(x,Z,M,re),!e.isSimpleInlineableExpression(M)&&e.isBindingOrAssignmentPattern(P)&&(Z=F(x,Z,!0,re))):Z=M:Z||(Z=x.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(P)?m(x,ie,P,Z,re):e.isArrayBindingOrAssignmentPattern(P)?y(x,ie,P,Z,re):x.emitBindingOrAssignment(P,Z,re,ie)}function m(x,ie,Z,re,q){var P=e.getElementsOfBindingOrAssignmentPattern(Z),M=P.length;if(M!==1){var Q=!e.isDeclarationBindingElement(ie)||M!==0;re=F(x,re,Q,q)}for(var H,w,d=0;d<M;d++){var B=P[d];if(e.getRestIndicatorOfBindingOrAssignmentElement(B)){if(d===M-1){H&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(H),re,q,Z),H=void 0);var _=x.context.getEmitHelperFactory().createRestHelper(re,P,w,Z);L(x,B,_,B)}}else{var T=e.getPropertyNameOfBindingOrAssignmentElement(B);if(x.level>=1&&!(B.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(B).transformFlags&49152)&&!e.isComputedPropertyName(T))H=e.append(H,e.visitNode(B,x.visitor));else{H&&(x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(H),re,q,Z),H=void 0);var _=E(x,re,T);e.isComputedPropertyName(T)&&(w=e.append(w,_.argumentExpression)),L(x,B,_,B)}}}H&&x.emitBindingOrAssignment(x.createObjectBindingOrAssignmentPattern(H),re,q,Z)}function y(x,ie,Z,re,q){var P=e.getElementsOfBindingOrAssignmentPattern(Z),M=P.length;if(x.level<1&&x.downlevelIteration)re=F(x,e.setTextRange(x.context.getEmitHelperFactory().createReadHelper(re,M>0&&e.getRestIndicatorOfBindingOrAssignmentElement(P[M-1])?void 0:M),q),!1,q);else if(M!==1&&(x.level<1||M===0)||e.every(P,e.isOmittedExpression)){var Q=!e.isDeclarationBindingElement(ie)||M!==0;re=F(x,re,Q,q)}for(var H,w,d=0;d<M;d++){var B=P[d];if(x.level>=1)if(B.transformFlags&32768||x.hasTransformedPriorElement&&!j(B)){x.hasTransformedPriorElement=!0;var T=x.context.factory.createTempVariable(void 0);x.hoistTempVariables&&x.context.hoistVariableDeclaration(T),w=e.append(w,[T,B]),H=e.append(H,x.createArrayBindingOrAssignmentElement(T))}else H=e.append(H,B);else{if(e.isOmittedExpression(B))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(B)){if(d===M-1){var _=x.context.factory.createArraySliceCall(re,d);L(x,B,_,B)}}else{var _=x.context.factory.createElementAccessExpression(re,d);L(x,B,_,B)}}}if(H&&x.emitBindingOrAssignment(x.createArrayBindingOrAssignmentPattern(H),re,q,Z),w)for(var h=0,R=w;h<R.length;h++){var b=R[h],G=b[0],B=b[1];L(x,B,G,B)}}function j(x){var ie=e.getTargetOfBindingOrAssignmentElement(x);if(!ie||e.isOmittedExpression(ie))return!0;var Z=e.tryGetPropertyNameOfBindingOrAssignmentElement(x);if(Z&&!e.isPropertyNameLiteral(Z))return!1;var re=e.getInitializerOfBindingOrAssignmentElement(x);return re&&!e.isSimpleInlineableExpression(re)?!1:e.isBindingOrAssignmentPattern(ie)?e.every(e.getElementsOfBindingOrAssignmentPattern(ie),j):e.isIdentifier(ie)}function te(x,ie,Z,re){return ie=F(x,ie,!0,re),x.context.factory.createConditionalExpression(x.context.factory.createTypeCheck(ie,"undefined"),void 0,Z,void 0,ie)}function E(x,ie,Z){if(e.isComputedPropertyName(Z)){var re=F(x,e.visitNode(Z.expression,x.visitor),!1,Z);return x.context.factory.createElementAccessExpression(ie,re)}else if(e.isStringOrNumericLiteralLike(Z)){var re=e.factory.cloneNode(Z);return x.context.factory.createElementAccessExpression(ie,re)}else{var q=x.context.factory.createIdentifier(e.idText(Z));return x.context.factory.createPropertyAccessExpression(ie,q)}}function F(x,ie,Z,re){if(e.isIdentifier(ie)&&Z)return ie;var q=x.context.factory.createTempVariable(void 0);return x.hoistTempVariables?(x.context.hoistVariableDeclaration(q),x.emitExpression(e.setTextRange(x.context.factory.createAssignment(q,ie),re))):x.emitBindingOrAssignment(q,ie,re,void 0),q}function $(x,ie){return e.Debug.assertEachNode(ie,e.isArrayBindingElement),x.createArrayBindingPattern(ie)}function C(x,ie){return x.createArrayLiteralExpression(e.map(ie,x.converters.convertToArrayAssignmentElement))}function K(x,ie){return e.Debug.assertEachNode(ie,e.isBindingElement),x.createObjectBindingPattern(ie)}function k(x,ie){return x.createObjectLiteralExpression(e.map(ie,x.converters.convertToObjectAssignmentElement))}function X(x,ie){return x.createBindingElement(void 0,void 0,ie)}function O(x){return x}})(mr||(mr={}));var mr;(function(e){var n;(function(p){p[p.LiftRestriction=0]="LiftRestriction",p[p.All=1]="All"})(n=e.ProcessLevel||(e.ProcessLevel={}));function c(p,I,V,L,m,y){var j=e.visitNode(I.tag,V,e.isExpression),te=[void 0],E=[],F=[],$=I.template;if(y===n.LiftRestriction&&!e.hasInvalidEscape($))return e.visitEachChild(I,V,p);if(e.isNoSubstitutionTemplateLiteral($))E.push(u($)),F.push(g($,L));else{E.push(u($.head)),F.push(g($.head,L));for(var C=0,K=$.templateSpans;C<K.length;C++){var k=K[C];E.push(u(k.literal)),F.push(g(k.literal,L)),te.push(e.visitNode(k.expression,V,e.isExpression))}}var X=p.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(E),e.factory.createArrayLiteralExpression(F));if(e.isExternalModule(L)){var O=e.factory.createUniqueName("templateObject");m(O),te[0]=e.factory.createLogicalOr(O,e.factory.createAssignment(O,X))}else te[0]=X;return e.factory.createCallExpression(j,void 0,te)}e.processTaggedTemplateExpression=c;function u(p){return p.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(p.text)}function g(p,I){var V=p.rawText;if(V===void 0){e.Debug.assertIsDefined(I,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),V=e.getSourceTextOfNodeFromSourceFile(I,p);var L=p.kind===14||p.kind===17;V=V.substring(1,V.length-(L?1:2))}return V=V.replace(/\r\n?/g,`
`),e.setTextRange(e.factory.createStringLiteral(V),p)}})(mr||(mr={}));var mr;(function(e){var n=!1,c;(function(p){p[p.ClassAliases=1]="ClassAliases",p[p.NamespaceExports=2]="NamespaceExports",p[p.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"})(c||(c={}));var u;(function(p){p[p.None=0]="None",p[p.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",p[p.HasConstructorDecorators=2]="HasConstructorDecorators",p[p.HasMemberDecorators=4]="HasMemberDecorators",p[p.IsExportOfNamespace=8]="IsExportOfNamespace",p[p.IsNamedExternalExport=16]="IsNamedExternalExport",p[p.IsDefaultExternalExport=32]="IsDefaultExternalExport",p[p.IsDerivedClass=64]="IsDerivedClass",p[p.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",p[p.HasAnyDecorators=6]="HasAnyDecorators",p[p.NeedsName=5]="NeedsName",p[p.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",p[p.IsExported=56]="IsExported"})(u||(u={}));function g(p){var I=p.factory,V=p.getEmitHelperFactory,L=p.startLexicalEnvironment,m=p.resumeLexicalEnvironment,y=p.endLexicalEnvironment,j=p.hoistVariableDeclaration,te=p.getEmitResolver(),E=p.getCompilerOptions(),F=e.getStrictOptionValue(E,"strictNullChecks"),$=e.getEmitScriptTarget(E),C=e.getEmitModuleKind(E),K=p.onEmitNode,k=p.onSubstituteNode;p.onEmitNode=ko,p.onSubstituteNode=Oo,p.enableSubstitution(205),p.enableSubstitution(206);var X,O,x,ie,Z,re,q,P,M,Q;return H;function H(ye){return ye.kind===304?w(ye):d(ye)}function w(ye){return I.createBundle(ye.sourceFiles.map(d),e.mapDefined(ye.prepends,function(oe){return oe.kind===306?e.createUnparsedSourceFile(oe,"js"):oe}))}function d(ye){if(ye.isDeclarationFile)return ye;X=ye;var oe=B(ye,D);return e.addEmitHelpers(oe,p.readEmitHelpers()),X=void 0,oe}function B(ye,oe){var Pe=ie,Ye=Z,Tr=re,tt=q;T(ye);var Mt=oe(ye);return ie!==Pe&&(re=Tr),ie=Pe,Z=Ye,q=tt,Mt}function T(ye){switch(ye.kind){case 303:case 262:case 261:case 234:ie=ye,Z=void 0,re=void 0;break;case 256:case 255:if(e.hasSyntacticModifier(ye,2))break;ye.name?pa(ye):e.Debug.assert(ye.kind===256||e.hasSyntacticModifier(ye,512)),e.isClassDeclaration(ye)&&(Z=ye);break}}function _(ye){return B(ye,h)}function h(ye){return ye.transformFlags&1?ae(ye):ye}function R(ye){return B(ye,b)}function b(ye){switch(ye.kind){case 265:case 264:case 270:case 271:return G(ye);default:return h(ye)}}function G(ye){var oe=e.getParseTreeNode(ye);if(oe!==ye)return ye.transformFlags&1?e.visitEachChild(ye,_,p):ye;switch(ye.kind){case 265:return wn(ye);case 264:return di(ye);case 270:return Pt(ye);case 271:return Et(ye);default:e.Debug.fail("Unhandled ellided statement")}}function Y(ye){return B(ye,pe)}function pe(ye){if(!(ye.kind===271||ye.kind===265||ye.kind===266||ye.kind===264&&ye.moduleReference.kind===276))return ye.transformFlags&1||e.hasSyntacticModifier(ye,1)?ae(ye):ye}function A(ye){return B(ye,_e)}function _e(ye){switch(ye.kind){case 170:return Lr(ye);case 166:return pr(ye);case 175:case 171:case 172:case 168:case 169:return h(ye);case 233:return ye;default:return e.Debug.failBadSyntaxKind(ye)}}function Se(ye){if(!(e.modifierToFlag(ye.kind)&18654)&&!(O&&ye.kind===93))return ye}function ae(ye){if(e.isStatement(ye)&&e.hasSyntacticModifier(ye,2))return I.createNotEmittedStatement(ye);switch(ye.kind){case 93:case 88:return O?void 0:ye;case 123:case 121:case 122:case 126:case 158:case 85:case 135:case 144:case 182:case 183:case 184:case 185:case 181:case 176:case 162:case 130:case 154:case 133:case 149:case 146:case 143:case 114:case 150:case 179:case 178:case 180:case 177:case 186:case 187:case 188:case 190:case 191:case 192:case 193:case 194:case 195:case 175:case 164:return;case 258:return I.createNotEmittedStatement(ye);case 166:return pr(ye);case 263:return;case 170:return Lr(ye);case 257:return I.createNotEmittedStatement(ye);case 256:return le(ye);case 225:return Ke(ye);case 290:return ir(ye);case 227:return ge(ye);case 168:return $e(ye);case 171:return z(ye);case 172:return ke(ye);case 255:return dr(ye);case 212:return Xe(ye);case 213:return Qe(ye);case 163:return Ir(ye);case 211:return yr(ye);case 210:case 228:return Rr(ye);case 207:return ut(ye);case 208:return mt(ye);case 209:return Lt(ye);case 229:return zr(ye);case 259:return Xt(ye);case 236:return Jr(ye);case 253:return Be(ye);case 260:return Ut(ye);case 264:return di(ye);case 278:return vt(ye);case 279:return pt(ye);default:return e.visitEachChild(ye,_,p)}}function D(ye){var oe=e.getStrictOptionValue(E,"alwaysStrict")&&!(e.isExternalModule(ye)&&C>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(ye);return I.updateSourceFile(ye,e.visitLexicalEnvironment(ye.statements,R,p,0,oe))}function be(ye,oe){var Pe=0;e.some(oe)&&(Pe|=1);var Ye=e.getEffectiveBaseTypeNode(ye);return Ye&&e.skipOuterExpressions(Ye.expression).kind!==104&&(Pe|=64),e.classOrConstructorParameterIsDecorated(ye)&&(Pe|=2),e.childIsDecorated(ye)&&(Pe|=4),ya(ye)?Pe|=8:ei(ye)?Pe|=32:ao(ye)&&(Pe|=16),$<=1&&Pe&7&&(Pe|=128),Pe}function ne(ye){return!!(ye.transformFlags&4096)}function J(ye){return e.some(ye.decorators)||e.some(ye.typeParameters)||e.some(ye.heritageClauses,ne)||e.some(ye.members,ne)}function le(ye){if(!J(ye)&&!(O&&e.hasSyntacticModifier(ye,1)))return e.visitEachChild(ye,_,p);var oe=e.getProperties(ye,!0,!0),Pe=be(ye,oe);Pe&128&&p.startLexicalEnvironment();var Ye=ye.name||(Pe&5?I.getGeneratedNameForNode(ye):void 0),Tr=Pe&2?Me(ye,Ye):Te(ye,Ye,Pe),tt=[Tr];if(Er(tt,ye,!1),Er(tt,ye,!0),xr(tt,ye),Pe&128){var Mt=e.createTokenRange(e.skipTrivia(X.text,ye.members.end),19),Wt=I.getInternalName(ye),Ln=I.createPartiallyEmittedExpression(Wt);e.setTextRangeEnd(Ln,Mt.end),e.setEmitFlags(Ln,1536);var va=I.createReturnStatement(Ln);e.setTextRangePos(va,Mt.pos),e.setEmitFlags(va,1920),tt.push(va),e.insertStatementsAfterStandardPrologue(tt,p.endLexicalEnvironment());var ti=I.createImmediatelyInvokedArrowFunction(tt);e.setEmitFlags(ti,33554432);var ii=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(I.getLocalName(ye,!1,!1),void 0,void 0,ti)]));e.setOriginalNode(ii,ye),e.setCommentRange(ii,ye),e.setSourceMapRange(ii,e.moveRangePastDecorators(ye)),e.startOnNewLine(ii),tt=[ii]}return Pe&8?eo(tt,ye):(Pe&128||Pe&2)&&(Pe&32?tt.push(I.createExportDefault(I.getLocalName(ye,!1,!0))):Pe&16&&tt.push(I.createExternalModuleExport(I.getLocalName(ye,!1,!0)))),tt.length>1&&(tt.push(I.createEndOfDeclarationMarker(ye)),e.setEmitFlags(Tr,e.getEmitFlags(Tr)|4194304)),e.singleOrMany(tt)}function Te(ye,oe,Pe){var Ye=Pe&128?void 0:e.visitNodes(ye.modifiers,Se,e.isModifier),Tr=I.createClassDeclaration(void 0,Ye,oe,void 0,e.visitNodes(ye.heritageClauses,_,e.isHeritageClause),Ae(ye)),tt=e.getEmitFlags(ye);return Pe&1&&(tt|=32),e.setTextRange(Tr,ye),e.setOriginalNode(Tr,ye),e.setEmitFlags(Tr,tt),Tr}function Me(ye,oe){var Pe=e.moveRangePastDecorators(ye),Ye=So(ye),Tr=$<=2?I.getInternalName(ye,!1,!0):I.getLocalName(ye,!1,!0),tt=e.visitNodes(ye.heritageClauses,_,e.isHeritageClause),Mt=Ae(ye),Wt=I.createClassExpression(void 0,void 0,oe,void 0,tt,Mt);e.setOriginalNode(Wt,ye),e.setTextRange(Wt,Pe);var Ln=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Tr,void 0,void 0,Ye?I.createAssignment(Ye,Wt):Wt)],1));return e.setOriginalNode(Ln,ye),e.setTextRange(Ln,Pe),e.setCommentRange(Ln,ye),Ln}function Ke(ye){if(!J(ye))return e.visitEachChild(ye,_,p);var oe=I.createClassExpression(void 0,void 0,ye.name,void 0,e.visitNodes(ye.heritageClauses,_,e.isHeritageClause),Ae(ye));return e.setOriginalNode(oe,ye),e.setTextRange(oe,ye),oe}function Ae(ye){var oe=[],Pe=e.getFirstConstructorWithBody(ye),Ye=Pe&&e.filter(Pe.parameters,function(Wt){return e.isParameterPropertyDeclaration(Wt,Pe)});if(Ye)for(var Tr=0,tt=Ye;Tr<tt.length;Tr++){var Mt=tt[Tr];e.isIdentifier(Mt.name)&&oe.push(e.setOriginalNode(I.createPropertyDeclaration(void 0,void 0,Mt.name,void 0,void 0,void 0),Mt))}return e.addRange(oe,e.visitNodes(ye.members,A,e.isClassElement)),e.setTextRange(I.createNodeArray(oe),ye.members)}function Ge(ye,oe){return e.filter(ye.members,oe?function(Pe){return se(Pe,ye)}:function(Pe){return xe(Pe,ye)})}function se(ye,oe){return Re(ye,!0,oe)}function xe(ye,oe){return Re(ye,!1,oe)}function Re(ye,oe,Pe){return e.nodeOrChildIsDecorated(ye,Pe)&&oe===e.isStatic(ye)}function ce(ye){var oe;if(ye)for(var Pe=ye.parameters,Ye=Pe.length>0&&e.parameterIsThisKeyword(Pe[0]),Tr=Ye?1:0,tt=Ye?Pe.length-1:Pe.length,Mt=0;Mt<tt;Mt++){var Wt=Pe[Mt+Tr];(oe||Wt.decorators)&&(oe||(oe=new Array(tt)),oe[Mt]=Wt.decorators)}return oe}function Ue(ye){var oe=ye.decorators,Pe=ce(e.getFirstConstructorWithBody(ye));if(!(!oe&&!Pe))return{decorators:oe,parameters:Pe}}function We(ye,oe){switch(oe.kind){case 171:case 172:return Ne(ye,oe);case 168:return ve(oe);case 166:return Ve(oe);default:return}}function Ne(ye,oe){if(!!oe.body){var Pe=e.getAllAccessorDeclarations(ye.members,oe),Ye=Pe.firstAccessor,Tr=Pe.secondAccessor,tt=Pe.setAccessor,Mt=Ye.decorators?Ye:Tr&&Tr.decorators?Tr:void 0;if(!(!Mt||oe!==Mt)){var Wt=Mt.decorators,Ln=ce(tt);if(!(!Wt&&!Ln))return{decorators:Wt,parameters:Ln}}}}function ve(ye){if(!!ye.body){var oe=ye.decorators,Pe=ce(ye);if(!(!oe&&!Pe))return{decorators:oe,parameters:Pe}}}function Ve(ye){var oe=ye.decorators;if(!!oe)return{decorators:oe}}function gr(ye,oe,Pe){if(!!Pe){var Ye=[];return e.addRange(Ye,e.map(Pe.decorators,i)),e.addRange(Ye,e.flatMap(Pe.parameters,Mr)),fr(ye,oe,Ye),Ye}}function Er(ye,oe,Pe){e.addRange(ye,e.map(Nr(oe,Pe),Fi))}function Nr(ye,oe){for(var Pe=Ge(ye,oe),Ye,Tr=0,tt=Pe;Tr<tt.length;Tr++){var Mt=tt[Tr],Wt=ur(ye,Mt);Wt&&(Ye?Ye.push(Wt):Ye=[Wt])}return Ye}function ur(ye,oe){var Pe=We(ye,oe),Ye=gr(oe,ye,Pe);if(!!Ye){var Tr=ja(ye,oe),tt=nr(oe,!0),Mt=$>0?oe.kind===166?I.createVoidZero():I.createNull():void 0,Wt=V().createDecorateHelper(Ye,Tr,tt,Mt);return e.setTextRange(Wt,e.moveRangePastDecorators(oe)),e.setEmitFlags(Wt,1536),Wt}}function xr(ye,oe){var Pe=sr(oe);Pe&&ye.push(e.setOriginalNode(I.createExpressionStatement(Pe),oe))}function sr(ye){var oe=Ue(ye),Pe=gr(ye,ye,oe);if(!!Pe){var Ye=M&&M[e.getOriginalNodeId(ye)],Tr=$<=2?I.getInternalName(ye,!1,!0):I.getLocalName(ye,!1,!0),tt=V().createDecorateHelper(Pe,Tr),Mt=I.createAssignment(Tr,Ye?I.createAssignment(Ye,tt):tt);return e.setEmitFlags(Mt,1536),e.setSourceMapRange(Mt,e.moveRangePastDecorators(ye)),Mt}}function i(ye){return e.visitNode(ye.expression,_,e.isExpression)}function Mr(ye,oe){var Pe;if(ye){Pe=[];for(var Ye=0,Tr=ye;Ye<Tr.length;Ye++){var tt=Tr[Ye],Mt=V().createParamHelper(i(tt),oe);e.setTextRange(Mt,tt.expression),e.setEmitFlags(Mt,1536),Pe.push(Mt)}}return Pe}function fr(ye,oe,Pe){n?de(ye,oe,Pe):Ar(ye,oe,Pe)}function Ar(ye,oe,Pe){E.emitDecoratorMetadata&&(we(ye)&&Pe.push(V().createMetadataHelper("design:type",He(ye))),Cr(ye)&&Pe.push(V().createMetadataHelper("design:paramtypes",lr(ye,oe))),qe(ye)&&Pe.push(V().createMetadataHelper("design:returntype",Je(ye))))}function de(ye,oe,Pe){if(E.emitDecoratorMetadata){var Ye=void 0;we(ye)&&(Ye||(Ye=[])).push(I.createPropertyAssignment("type",I.createArrowFunction(void 0,void 0,[],void 0,I.createToken(38),He(ye)))),Cr(ye)&&(Ye||(Ye=[])).push(I.createPropertyAssignment("paramTypes",I.createArrowFunction(void 0,void 0,[],void 0,I.createToken(38),lr(ye,oe)))),qe(ye)&&(Ye||(Ye=[])).push(I.createPropertyAssignment("returnType",I.createArrowFunction(void 0,void 0,[],void 0,I.createToken(38),Je(ye)))),Ye&&Pe.push(V().createMetadataHelper("design:typeinfo",I.createObjectLiteralExpression(Ye,!0)))}}function we(ye){var oe=ye.kind;return oe===168||oe===171||oe===172||oe===166}function qe(ye){return ye.kind===168}function Cr(ye){switch(ye.kind){case 256:case 225:return e.getFirstConstructorWithBody(ye)!==void 0;case 168:case 171:case 172:return!0}return!1}function kr(ye){var oe=te.getAllAccessorDeclarations(ye);return oe.setAccessor&&e.getSetAccessorTypeAnnotationNode(oe.setAccessor)||oe.getAccessor&&e.getEffectiveReturnTypeNode(oe.getAccessor)}function He(ye){switch(ye.kind){case 166:case 163:return Sr(ye.type);case 172:case 171:return Sr(kr(ye));case 256:case 225:case 168:return I.createIdentifier("Function");default:return I.createVoidZero()}}function lr(ye,oe){var Pe=e.isClassLike(ye)?e.getFirstConstructorWithBody(ye):e.isFunctionLike(ye)&&e.nodeIsPresent(ye.body)?ye:void 0,Ye=[];if(Pe)for(var Tr=Hr(Pe,oe),tt=Tr.length,Mt=0;Mt<tt;Mt++){var Wt=Tr[Mt];Mt===0&&e.isIdentifier(Wt.name)&&Wt.name.escapedText==="this"||(Wt.dotDotDotToken?Ye.push(Sr(e.getRestParameterElementType(Wt.type))):Ye.push(He(Wt)))}return I.createArrayLiteralExpression(Ye)}function Hr(ye,oe){if(oe&&ye.kind===171){var Pe=e.getAllAccessorDeclarations(oe.members,ye).setAccessor;if(Pe)return Pe.parameters}return ye.parameters}function Je(ye){return e.isFunctionLike(ye)&&ye.type?Sr(ye.type):e.isAsyncFunction(ye)?I.createIdentifier("Promise"):I.createVoidZero()}function Sr(ye){if(ye===void 0)return I.createIdentifier("Object");switch(ye.kind){case 114:case 152:case 143:return I.createVoidZero();case 190:return Sr(ye.type);case 178:case 179:return I.createIdentifier("Function");case 182:case 183:return I.createIdentifier("Array");case 176:case 133:return I.createIdentifier("Boolean");case 149:return I.createIdentifier("String");case 147:return I.createIdentifier("Object");case 195:switch(ye.literal.kind){case 10:case 14:return I.createIdentifier("String");case 218:case 8:return I.createIdentifier("Number");case 9:return qn();case 110:case 95:return I.createIdentifier("Boolean");case 104:return I.createVoidZero();default:return e.Debug.failBadSyntaxKind(ye.literal)}case 146:return I.createIdentifier("Number");case 157:return qn();case 150:return $<2?Mn():I.createIdentifier("Symbol");case 177:return ot(ye);case 187:case 186:return Yr(ye.types);case 188:return Yr([ye.trueType,ye.falseType]);case 192:if(ye.operator===144)return Sr(ye.type);break;case 180:case 193:case 194:case 181:case 130:case 154:case 191:case 199:break;case 310:case 311:case 315:case 316:case 317:break;case 312:case 313:case 314:return Sr(ye.type);default:return e.Debug.failBadSyntaxKind(ye)}return I.createIdentifier("Object")}function Yr(ye){for(var oe,Pe=0,Ye=ye;Pe<Ye.length;Pe++){for(var Tr=Ye[Pe];Tr.kind===190;)Tr=Tr.type;if(Tr.kind!==143&&!(!F&&(Tr.kind===195&&Tr.literal.kind===104||Tr.kind===152))){var tt=Sr(Tr);if(e.isIdentifier(tt)&&tt.escapedText==="Object")return tt;if(oe){if(!e.isIdentifier(oe)||!e.isIdentifier(tt)||oe.escapedText!==tt.escapedText)return I.createIdentifier("Object")}else oe=tt}}return oe||I.createVoidZero()}function ot(ye){var oe=te.getTypeReferenceSerializationKind(ye.typeName,Z||ie);switch(oe){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(ye,function(Tr){return Tr.parent&&e.isConditionalTypeNode(Tr.parent)&&(Tr.parent.trueType===Tr||Tr.parent.falseType===Tr)}))return I.createIdentifier("Object");var Pe=kt(ye.typeName),Ye=I.createTempVariable(j);return I.createConditionalExpression(I.createTypeCheck(I.createAssignment(Ye,Pe),"function"),void 0,Ye,void 0,I.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return Yt(ye.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return I.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return qn();case e.TypeReferenceSerializationKind.BooleanType:return I.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return I.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return I.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return I.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return $<2?Mn():I.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return I.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return I.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return I.createIdentifier("Object");default:return e.Debug.assertNever(oe)}}function _t(ye,oe){return I.createLogicalAnd(I.createStrictInequality(I.createTypeOfExpression(ye),I.createStringLiteral("undefined")),oe)}function kt(ye){if(ye.kind===79){var oe=Yt(ye);return _t(oe,oe)}if(ye.left.kind===79)return _t(Yt(ye.left),Yt(ye));var Pe=kt(ye.left),Ye=I.createTempVariable(j);return I.createLogicalAnd(I.createLogicalAnd(Pe.left,I.createStrictInequality(I.createAssignment(Ye,Pe.right),I.createVoidZero())),I.createPropertyAccessExpression(Ye,ye.right))}function Yt(ye){switch(ye.kind){case 79:var oe=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(ye),ye),ye.parent);return oe.original=void 0,e.setParent(oe,e.getParseTreeNode(ie)),oe;case 160:return vn(ye)}}function vn(ye){return I.createPropertyAccessExpression(Yt(ye.left),ye.right)}function Mn(){return I.createConditionalExpression(I.createTypeCheck(I.createIdentifier("Symbol"),"function"),void 0,I.createIdentifier("Symbol"),void 0,I.createIdentifier("Object"))}function qn(){return $<99?I.createConditionalExpression(I.createTypeCheck(I.createIdentifier("BigInt"),"function"),void 0,I.createIdentifier("BigInt"),void 0,I.createIdentifier("Object")):I.createIdentifier("BigInt")}function nr(ye,oe){var Pe=ye.name;return e.isPrivateIdentifier(Pe)?I.createIdentifier(""):e.isComputedPropertyName(Pe)?oe&&!e.isSimpleInlineableExpression(Pe.expression)?I.getGeneratedNameForNode(Pe):Pe.expression:e.isIdentifier(Pe)?I.createStringLiteral(e.idText(Pe)):I.cloneNode(Pe)}function Zr(ye){var oe=ye.name;if(e.isComputedPropertyName(oe)&&(!e.hasStaticModifier(ye)&&q||e.some(ye.decorators))){var Pe=e.visitNode(oe.expression,_,e.isExpression),Ye=e.skipPartiallyEmittedExpressions(Pe);if(!e.isSimpleInlineableExpression(Ye)){var Tr=I.getGeneratedNameForNode(oe);return j(Tr),I.updateComputedPropertyName(oe,I.createAssignment(Tr,Pe))}}return e.visitNode(oe,_,e.isPropertyName)}function ir(ye){if(ye.token!==117)return e.visitEachChild(ye,_,p)}function ge(ye){return I.updateExpressionWithTypeArguments(ye,e.visitNode(ye.expression,_,e.isLeftHandSideExpression),void 0)}function rr(ye){return!e.nodeIsMissing(ye.body)}function pr(ye){if(!(ye.flags&8388608||e.hasSyntacticModifier(ye,128))){var oe=I.updatePropertyDeclaration(ye,void 0,e.visitNodes(ye.modifiers,_,e.isModifier),Zr(ye),void 0,void 0,e.visitNode(ye.initializer,_));return oe!==ye&&(e.setCommentRange(oe,ye),e.setSourceMapRange(oe,e.moveRangePastDecorators(ye))),oe}}function Lr(ye){if(!!rr(ye))return I.updateConstructorDeclaration(ye,void 0,void 0,e.visitParameterList(ye.parameters,_,p),Ce(ye.body,ye))}function Ce(ye,oe){var Pe=oe&&e.filter(oe.parameters,function(Mt){return e.isParameterPropertyDeclaration(Mt,oe)});if(!e.some(Pe))return e.visitFunctionBody(ye,_,p);var Ye=[],Tr=0;m(),Tr=e.addPrologueDirectivesAndInitialSuperCall(I,oe,Ye,_),e.addRange(Ye,e.map(Pe,cr)),e.addRange(Ye,e.visitNodes(ye.statements,_,e.isStatement,Tr)),Ye=I.mergeLexicalEnvironment(Ye,y());var tt=I.createBlock(e.setTextRange(I.createNodeArray(Ye),ye.statements),!0);return e.setTextRange(tt,ye),e.setOriginalNode(tt,ye),tt}function cr(ye){var oe=ye.name;if(!!e.isIdentifier(oe)){var Pe=e.setParent(e.setTextRange(I.cloneNode(oe),oe),oe.parent);e.setEmitFlags(Pe,1584);var Ye=e.setParent(e.setTextRange(I.cloneNode(oe),oe),oe.parent);return e.setEmitFlags(Ye,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(I.createExpressionStatement(I.createAssignment(e.setTextRange(I.createPropertyAccessExpression(I.createThis(),Pe),ye.name),Ye)),ye),e.moveRangePos(ye,-1))))}}function $e(ye){if(!!rr(ye)){var oe=I.updateMethodDeclaration(ye,void 0,e.visitNodes(ye.modifiers,Se,e.isModifier),ye.asteriskToken,Zr(ye),void 0,void 0,e.visitParameterList(ye.parameters,_,p),void 0,e.visitFunctionBody(ye.body,_,p));return oe!==ye&&(e.setCommentRange(oe,ye),e.setSourceMapRange(oe,e.moveRangePastDecorators(ye))),oe}}function De(ye){return!(e.nodeIsMissing(ye.body)&&e.hasSyntacticModifier(ye,128))}function z(ye){if(!!De(ye)){var oe=I.updateGetAccessorDeclaration(ye,void 0,e.visitNodes(ye.modifiers,Se,e.isModifier),Zr(ye),e.visitParameterList(ye.parameters,_,p),void 0,e.visitFunctionBody(ye.body,_,p)||I.createBlock([]));return oe!==ye&&(e.setCommentRange(oe,ye),e.setSourceMapRange(oe,e.moveRangePastDecorators(ye))),oe}}function ke(ye){if(!!De(ye)){var oe=I.updateSetAccessorDeclaration(ye,void 0,e.visitNodes(ye.modifiers,Se,e.isModifier),Zr(ye),e.visitParameterList(ye.parameters,_,p),e.visitFunctionBody(ye.body,_,p)||I.createBlock([]));return oe!==ye&&(e.setCommentRange(oe,ye),e.setSourceMapRange(oe,e.moveRangePastDecorators(ye))),oe}}function dr(ye){if(!rr(ye))return I.createNotEmittedStatement(ye);var oe=I.updateFunctionDeclaration(ye,void 0,e.visitNodes(ye.modifiers,Se,e.isModifier),ye.asteriskToken,ye.name,void 0,e.visitParameterList(ye.parameters,_,p),void 0,e.visitFunctionBody(ye.body,_,p)||I.createBlock([]));if(ya(ye)){var Pe=[oe];return eo(Pe,ye),Pe}return oe}function Xe(ye){if(!rr(ye))return I.createOmittedExpression();var oe=I.updateFunctionExpression(ye,e.visitNodes(ye.modifiers,Se,e.isModifier),ye.asteriskToken,ye.name,void 0,e.visitParameterList(ye.parameters,_,p),void 0,e.visitFunctionBody(ye.body,_,p)||I.createBlock([]));return oe}function Qe(ye){var oe=I.updateArrowFunction(ye,e.visitNodes(ye.modifiers,Se,e.isModifier),void 0,e.visitParameterList(ye.parameters,_,p),void 0,ye.equalsGreaterThanToken,e.visitFunctionBody(ye.body,_,p));return oe}function Ir(ye){if(!e.parameterIsThisKeyword(ye)){var oe=I.updateParameterDeclaration(ye,void 0,void 0,ye.dotDotDotToken,e.visitNode(ye.name,_,e.isBindingName),void 0,void 0,e.visitNode(ye.initializer,_,e.isExpression));return oe!==ye&&(e.setCommentRange(oe,ye),e.setTextRange(oe,e.moveRangePastModifiers(ye)),e.setSourceMapRange(oe,e.moveRangePastModifiers(ye)),e.setEmitFlags(oe.name,32)),oe}}function Jr(ye){if(ya(ye)){var oe=e.getInitializedVariables(ye.declarationList);return oe.length===0?void 0:e.setTextRange(I.createExpressionStatement(I.inlineExpressions(e.map(oe,Or))),ye)}else return e.visitEachChild(ye,_,p)}function Or(ye){var oe=ye.name;return e.isBindingPattern(oe)?e.flattenDestructuringAssignment(ye,_,p,0,!1,Yi):e.setTextRange(I.createAssignment(Ni(oe),e.visitNode(ye.initializer,_,e.isExpression)),ye)}function Be(ye){return I.updateVariableDeclaration(ye,e.visitNode(ye.name,_,e.isBindingName),void 0,void 0,e.visitNode(ye.initializer,_,e.isExpression))}function yr(ye){var oe=e.skipOuterExpressions(ye.expression,-7);if(e.isAssertionExpression(oe)){var Pe=e.visitNode(ye.expression,_,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(Pe,X))?I.updateParenthesizedExpression(ye,Pe):I.createPartiallyEmittedExpression(Pe,ye)}return e.visitEachChild(ye,_,p)}function Rr(ye){var oe=e.visitNode(ye.expression,_,e.isExpression);return I.createPartiallyEmittedExpression(oe,ye)}function zr(ye){var oe=e.visitNode(ye.expression,_,e.isLeftHandSideExpression);return I.createPartiallyEmittedExpression(oe,ye)}function ut(ye){return I.updateCallExpression(ye,e.visitNode(ye.expression,_,e.isExpression),void 0,e.visitNodes(ye.arguments,_,e.isExpression))}function mt(ye){return I.updateNewExpression(ye,e.visitNode(ye.expression,_,e.isExpression),void 0,e.visitNodes(ye.arguments,_,e.isExpression))}function Lt(ye){return I.updateTaggedTemplateExpression(ye,e.visitNode(ye.tag,_,e.isExpression),void 0,e.visitNode(ye.template,_,e.isExpression))}function vt(ye){return I.updateJsxSelfClosingElement(ye,e.visitNode(ye.tagName,_,e.isJsxTagNameExpression),void 0,e.visitNode(ye.attributes,_,e.isJsxAttributes))}function pt(ye){return I.updateJsxOpeningElement(ye,e.visitNode(ye.tagName,_,e.isJsxTagNameExpression),void 0,e.visitNode(ye.attributes,_,e.isJsxAttributes))}function Nt(ye){return!e.isEnumConst(ye)||e.shouldPreserveConstEnums(E)}function Xt(ye){if(!Nt(ye))return I.createNotEmittedStatement(ye);var oe=[],Pe=2,Ye=bt(oe,ye);Ye&&(C!==e.ModuleKind.System||ie!==X)&&(Pe|=512);var Tr=Eo(ye),tt=lo(ye),Mt=e.hasSyntacticModifier(ye,1)?I.getExternalModuleOrNamespaceExportName(x,ye,!1,!0):I.getLocalName(ye,!1,!0),Wt=I.createLogicalOr(Mt,I.createAssignment(Mt,I.createObjectLiteralExpression()));if(ia(ye)){var Ln=I.getLocalName(ye,!1,!0);Wt=I.createAssignment(Ln,Wt)}var va=I.createExpressionStatement(I.createCallExpression(I.createFunctionExpression(void 0,void 0,void 0,void 0,[I.createParameterDeclaration(void 0,void 0,void 0,Tr)],void 0,st(ye,tt)),void 0,[Wt]));return e.setOriginalNode(va,ye),Ye&&(e.setSyntheticLeadingComments(va,void 0),e.setSyntheticTrailingComments(va,void 0)),e.setTextRange(va,ye),e.addEmitFlags(va,Pe),oe.push(va),oe.push(I.createEndOfDeclarationMarker(ye)),oe}function st(ye,oe){var Pe=x;x=oe;var Ye=[];L();var Tr=e.map(ye.members,$t);return e.insertStatementsAfterStandardPrologue(Ye,y()),e.addRange(Ye,Tr),x=Pe,I.createBlock(e.setTextRange(I.createNodeArray(Ye),ye.members),!0)}function $t(ye){var oe=nr(ye,!1),Pe=Pn(ye),Ye=I.createAssignment(I.createElementAccessExpression(x,oe),Pe),Tr=Pe.kind===10?Ye:I.createAssignment(I.createElementAccessExpression(x,Ye),oe);return e.setTextRange(I.createExpressionStatement(e.setTextRange(Tr,ye)),ye)}function Pn(ye){var oe=te.getConstantValue(ye);return oe!==void 0?typeof oe=="string"?I.createStringLiteral(oe):I.createNumericLiteral(oe):(Do(),ye.initializer?e.visitNode(ye.initializer,_,e.isExpression):I.createVoidZero())}function Ea(ye){var oe=e.getParseTreeNode(ye,e.isModuleDeclaration);return oe?e.isInstantiatedModule(oe,e.shouldPreserveConstEnums(E)):!0}function ia(ye){return ya(ye)||$a(ye)&&C!==e.ModuleKind.ES2015&&C!==e.ModuleKind.ES2020&&C!==e.ModuleKind.ES2022&&C!==e.ModuleKind.ESNext&&C!==e.ModuleKind.System}function pa(ye){re||(re=new e.Map);var oe=nn(ye);re.has(oe)||re.set(oe,ye)}function Gn(ye){if(re){var oe=nn(ye);return re.get(oe)===ye}return!0}function nn(ye){return e.Debug.assertNode(ye.name,e.isIdentifier),ye.name.escapedText}function bt(ye,oe){var Pe=I.createVariableStatement(e.visitNodes(oe.modifiers,Se,e.isModifier),I.createVariableDeclarationList([I.createVariableDeclaration(I.getLocalName(oe,!1,!0))],ie.kind===303?0:1));if(e.setOriginalNode(Pe,oe),pa(oe),Gn(oe))return oe.kind===259?e.setSourceMapRange(Pe.declarationList,oe):e.setSourceMapRange(Pe,oe),e.setCommentRange(Pe,oe),e.addEmitFlags(Pe,4195328),ye.push(Pe),!0;var Ye=I.createMergeDeclarationMarker(Pe);return e.setEmitFlags(Ye,4195840),ye.push(Ye),!1}function Ut(ye){if(!Ea(ye))return I.createNotEmittedStatement(ye);e.Debug.assertNode(ye.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),Ti();var oe=[],Pe=2,Ye=bt(oe,ye);Ye&&(C!==e.ModuleKind.System||ie!==X)&&(Pe|=512);var Tr=Eo(ye),tt=lo(ye),Mt=e.hasSyntacticModifier(ye,1)?I.getExternalModuleOrNamespaceExportName(x,ye,!1,!0):I.getLocalName(ye,!1,!0),Wt=I.createLogicalOr(Mt,I.createAssignment(Mt,I.createObjectLiteralExpression()));if(ia(ye)){var Ln=I.getLocalName(ye,!1,!0);Wt=I.createAssignment(Ln,Wt)}var va=I.createExpressionStatement(I.createCallExpression(I.createFunctionExpression(void 0,void 0,void 0,void 0,[I.createParameterDeclaration(void 0,void 0,void 0,Tr)],void 0,Kt(ye,tt)),void 0,[Wt]));return e.setOriginalNode(va,ye),Ye&&(e.setSyntheticLeadingComments(va,void 0),e.setSyntheticTrailingComments(va,void 0)),e.setTextRange(va,ye),e.addEmitFlags(va,Pe),oe.push(va),oe.push(I.createEndOfDeclarationMarker(ye)),oe}function Kt(ye,oe){var Pe=x,Ye=O,Tr=re;x=oe,O=ye,re=void 0;var tt=[];L();var Mt,Wt;if(ye.body)if(ye.body.kind===261)B(ye.body,function(ii){return e.addRange(tt,e.visitNodes(ii.statements,Y,e.isStatement))}),Mt=ye.body.statements,Wt=ye.body;else{var Ln=Ut(ye.body);Ln&&(e.isArray(Ln)?e.addRange(tt,Ln):tt.push(Ln));var va=bn(ye).body;Mt=e.moveRangePos(va.statements,-1)}e.insertStatementsAfterStandardPrologue(tt,y()),x=Pe,O=Ye,re=Tr;var ti=I.createBlock(e.setTextRange(I.createNodeArray(tt),Mt),!0);return e.setTextRange(ti,Wt),(!ye.body||ye.body.kind!==261)&&e.setEmitFlags(ti,e.getEmitFlags(ti)|1536),ti}function bn(ye){if(ye.body.kind===260){var oe=bn(ye.body);return oe||ye.body}}function wn(ye){if(!ye.importClause)return ye;if(!ye.importClause.isTypeOnly){var oe=e.visitNode(ye.importClause,ra,e.isImportClause);return oe||E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2?I.updateImportDeclaration(ye,void 0,void 0,oe,ye.moduleSpecifier,ye.assertClause):void 0}}function ra(ye){e.Debug.assert(!ye.isTypeOnly);var oe=ht(ye)?ye.name:void 0,Pe=e.visitNode(ye.namedBindings,ft,e.isNamedImportBindings);return oe||Pe?I.updateImportClause(ye,!1,oe,Pe):void 0}function ft(ye){if(ye.kind===267)return ht(ye)?ye:void 0;var oe=E.preserveValueImports&&(E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2),Pe=e.visitNodes(ye.elements,Ct,e.isImportSpecifier);return oe||e.some(Pe)?I.updateNamedImports(ye,Pe):void 0}function Ct(ye){return!ye.isTypeOnly&&ht(ye)?ye:void 0}function Pt(ye){return te.isValueAliasDeclaration(ye)?e.visitEachChild(ye,_,p):void 0}function Et(ye){if(!ye.isTypeOnly){if(!ye.exportClause||e.isNamespaceExport(ye.exportClause))return ye;var oe=!!ye.moduleSpecifier&&(E.importsNotUsedAsValues===1||E.importsNotUsedAsValues===2),Pe=e.visitNode(ye.exportClause,function(Ye){return Qn(Ye,oe)},e.isNamedExportBindings);return Pe?I.updateExportDeclaration(ye,void 0,void 0,ye.isTypeOnly,Pe,ye.moduleSpecifier,ye.assertClause):void 0}}function et(ye,oe){var Pe=e.visitNodes(ye.elements,Ra,e.isExportSpecifier);return oe||e.some(Pe)?I.updateNamedExports(ye,Pe):void 0}function hn(ye){return I.updateNamespaceExport(ye,e.visitNode(ye.name,_,e.isIdentifier))}function Qn(ye,oe){return e.isNamespaceExport(ye)?hn(ye):et(ye,oe)}function Ra(ye){return!ye.isTypeOnly&&te.isValueAliasDeclaration(ye)?ye:void 0}function Ki(ye){return ht(ye)||!e.isExternalModule(X)&&te.isTopLevelValueImportEqualsWithEntityName(ye)}function di(ye){if(!ye.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(ye)){var oe=ht(ye);return!oe&&E.importsNotUsedAsValues===1?e.setOriginalNode(e.setTextRange(I.createImportDeclaration(void 0,void 0,void 0,ye.moduleReference.expression,void 0),ye),ye):oe?e.visitEachChild(ye,_,p):void 0}if(!!Ki(ye)){var Pe=e.createExpressionFromEntityName(I,ye.moduleReference);return e.setEmitFlags(Pe,3584),ao(ye)||!ya(ye)?e.setOriginalNode(e.setTextRange(I.createVariableStatement(e.visitNodes(ye.modifiers,Se,e.isModifier),I.createVariableDeclarationList([e.setOriginalNode(I.createVariableDeclaration(ye.name,void 0,void 0,Pe),ye)])),ye),ye):e.setOriginalNode(Wo(ye.name,Pe,ye),ye)}}}function ya(ye){return O!==void 0&&e.hasSyntacticModifier(ye,1)}function $a(ye){return O===void 0&&e.hasSyntacticModifier(ye,1)}function ao(ye){return $a(ye)&&!e.hasSyntacticModifier(ye,512)}function ei(ye){return $a(ye)&&e.hasSyntacticModifier(ye,512)}function Fi(ye){return I.createExpressionStatement(ye)}function eo(ye,oe){var Pe=I.createAssignment(I.getExternalModuleOrNamespaceExportName(x,oe,!1,!0),I.getLocalName(oe));e.setSourceMapRange(Pe,e.createRange(oe.name?oe.name.pos:oe.pos,oe.end));var Ye=I.createExpressionStatement(Pe);e.setSourceMapRange(Ye,e.createRange(-1,oe.end)),ye.push(Ye)}function Wo(ye,oe,Pe){return e.setTextRange(I.createExpressionStatement(I.createAssignment(I.getNamespaceMemberName(x,ye,!1,!0),oe)),Pe)}function Yi(ye,oe,Pe){return e.setTextRange(I.createAssignment(Ni(ye),oe),Pe)}function Ni(ye){return I.getNamespaceMemberName(x,ye,!1,!0)}function Eo(ye){var oe=I.getGeneratedNameForNode(ye);return e.setSourceMapRange(oe,ye.name),oe}function lo(ye){return I.getGeneratedNameForNode(ye)}function So(ye){if(te.getNodeCheckFlags(ye)&16777216){Pa();var oe=I.createUniqueName(ye.name&&!e.isGeneratedIdentifier(ye.name)?e.idText(ye.name):"default");return M[e.getOriginalNodeId(ye)]=oe,j(oe),oe}}function ts(ye){return I.createPropertyAccessExpression(I.getDeclarationName(ye),"prototype")}function ja(ye,oe){return e.isStatic(oe)?I.getDeclarationName(ye):ts(ye)}function Do(){(P&8)===0&&(P|=8,p.enableSubstitution(79))}function Pa(){(P&1)===0&&(P|=1,p.enableSubstitution(79),M=[])}function Ti(){(P&2)===0&&(P|=2,p.enableSubstitution(79),p.enableSubstitution(295),p.enableEmitNotification(260))}function mo(ye){return e.getOriginalNode(ye).kind===260}function No(ye){return e.getOriginalNode(ye).kind===259}function ko(ye,oe,Pe){var Ye=Q,Tr=X;e.isSourceFile(oe)&&(X=oe),P&2&&mo(oe)&&(Q|=2),P&8&&No(oe)&&(Q|=8),K(ye,oe,Pe),Q=Ye,X=Tr}function Oo(ye,oe){return oe=k(ye,oe),ye===1?Ss(oe):e.isShorthandPropertyAssignment(oe)?Po(oe):oe}function Po(ye){if(P&2){var oe=ye.name,Pe=gt(oe);if(Pe){if(ye.objectAssignmentInitializer){var Ye=I.createAssignment(Pe,ye.objectAssignmentInitializer);return e.setTextRange(I.createPropertyAssignment(oe,Ye),ye)}return e.setTextRange(I.createPropertyAssignment(oe,Pe),ye)}}return ye}function Ss(ye){switch(ye.kind){case 79:return Ds(ye);case 205:return tn(ye);case 206:return Bn(ye)}return ye}function Ds(ye){return vr(ye)||gt(ye)||ye}function vr(ye){if(P&1&&te.getNodeCheckFlags(ye)&33554432){var oe=te.getReferencedValueDeclaration(ye);if(oe){var Pe=M[oe.id];if(Pe){var Ye=I.cloneNode(Pe);return e.setSourceMapRange(Ye,ye),e.setCommentRange(Ye,ye),Ye}}}}function gt(ye){if(P&Q&&!e.isGeneratedIdentifier(ye)&&!e.isLocalName(ye)){var oe=te.getReferencedExportContainer(ye,!1);if(oe&&oe.kind!==303){var Pe=Q&2&&oe.kind===260||Q&8&&oe.kind===259;if(Pe)return e.setTextRange(I.createPropertyAccessExpression(I.getGeneratedNameForNode(oe),ye),ye)}}}function tn(ye){return Fe(ye)}function Bn(ye){return Fe(ye)}function Fe(ye){var oe=Gr(ye);if(oe!==void 0){e.setConstantValue(ye,oe);var Pe=typeof oe=="string"?I.createStringLiteral(oe):I.createNumericLiteral(oe);if(!E.removeComments){var Ye=e.getOriginalNode(ye,e.isAccessExpression),Tr=e.isPropertyAccessExpression(Ye)?e.declarationNameToString(Ye.name):e.getTextOfNode(Ye.argumentExpression);e.addSyntheticTrailingComment(Pe,3," ".concat(Tr," "))}return Pe}return ye}function Gr(ye){if(!E.isolatedModules)return e.isPropertyAccessExpression(ye)||e.isElementAccessExpression(ye)?te.getConstantValue(ye):void 0}function ht(ye){return E.preserveValueImports?te.isValueAliasDeclaration(ye):te.isReferencedAliasDeclaration(ye)}}e.transformTypeScript=g})(mr||(mr={}));var mr;(function(e){var n;(function(m){m[m.ClassAliases=1]="ClassAliases",m[m.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"})(n||(n={}));var c;(function(m){m.Field="f",m.Method="m",m.Accessor="a"})(c=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={}));var u;(function(m){m[m.None=0]="None",m[m.ClassWasDecorated=1]="ClassWasDecorated",m[m.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",m[m.NeedsClassSuperReference=4]="NeedsClassSuperReference",m[m.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"})(u||(u={}));function g(m){var y=m.factory,j=m.hoistVariableDeclaration,te=m.endLexicalEnvironment,E=m.startLexicalEnvironment,F=m.resumeLexicalEnvironment,$=m.addBlockScopedVariable,C=m.getEmitResolver(),K=m.getCompilerOptions(),k=e.getEmitScriptTarget(K),X=e.getUseDefineForClassFields(K),O=k<99,x=(k<=8||!X)&&k>=2,ie=k<=8||!X,Z=m.onSubstituteNode;m.onSubstituteNode=Sr;var re=m.onEmitNode;m.onEmitNode=Je;var q,P,M,Q,H=[],w=new e.Map,d,B,T;return e.chainBundle(m,_);function _(De){var z=m.getCompilerOptions();if(De.isDeclarationFile||X&&e.getEmitScriptTarget(z)===99)return De;var ke=e.visitEachChild(De,b,m);return e.addEmitHelpers(ke,m.readEmitHelpers()),ke}function h(De,z){if(De.transformFlags&8388608)switch(De.kind){case 225:case 256:return Ne(De);case 166:return ne(De);case 236:return Se(De);case 80:return pe(De);case 169:return xr(De)}if(De.transformFlags&8388608||De.transformFlags&33554432&&x&&T&&d)switch(De.kind){case 218:case 219:return Ke(De,z);case 220:return Ue(De,z);case 207:return xe(De);case 209:return Re(De);case 205:return Te(De);case 206:return Me(De);case 237:return Ge(De);case 241:return Ae(De);case 255:case 212:case 170:case 168:case 171:case 172:{var ke=T;T=void 0;var dr=e.visitEachChild(De,b,m);return T=ke,dr}}return e.visitEachChild(De,b,m)}function R(De){return h(De,!0)}function b(De){return h(De,!1)}function G(De){switch(De.kind){case 290:return e.visitEachChild(De,G,m);case 227:return Er(De)}return b(De)}function Y(De){switch(De.kind){case 204:case 203:return $e(De);default:return b(De)}}function pe(De){return!O||e.isStatement(De.parent)?De:e.setOriginalNode(y.createIdentifier(""),De)}function A(De){if(!O)return De;var z=De.left;e.Debug.assertNode(z,e.isPrivateIdentifier),e.Debug.assert(De.operatorToken.kind===101);var ke=pr(z);if(ke){var dr=e.visitNode(De.right,b,e.isExpression);return e.setOriginalNode(m.getEmitHelperFactory().createClassPrivateFieldInHelper(ke.brandCheckIdentifier,dr),De)}return e.visitEachChild(De,b,m)}function _e(De){switch(De.kind){case 170:return;case 171:case 172:case 168:return D(De);case 166:return ne(De);case 161:return ae(De);case 233:return De;default:return b(De)}}function Se(De){var z=Q;Q=[];var ke=e.visitEachChild(De,b,m),dr=e.some(Q)?Bt([ke],Q,!0):ke;return Q=z,dr}function ae(De){var z=e.visitEachChild(De,b,m);if(e.some(M)){var ke=M;ke.push(z.expression),M=[],z=y.updateComputedPropertyName(z,y.inlineExpressions(ke))}return z}function D(De){if(e.Debug.assert(!e.some(De.decorators)),!O||!e.isPrivateIdentifier(De.name))return e.visitEachChild(De,_e,m);var z=pr(De.name);if(e.Debug.assert(z,"Undeclared private name for property declaration."),!z.isValid)return De;var ke=be(De);ke&&Zr().push(y.createAssignment(ke,y.createFunctionExpression(e.filter(De.modifiers,function(dr){return!e.isStaticModifier(dr)}),De.asteriskToken,ke,void 0,e.visitParameterList(De.parameters,_e,m),void 0,e.visitFunctionBody(De.body,_e,m))))}function be(De){e.Debug.assert(e.isPrivateIdentifier(De.name));var z=pr(De.name);if(e.Debug.assert(z,"Undeclared private name for property declaration."),z.kind==="m")return z.methodName;if(z.kind==="a"){if(e.isGetAccessor(De))return z.getterName;if(e.isSetAccessor(De))return z.setterName}}function ne(De){if(e.Debug.assert(!e.some(De.decorators)),e.isPrivateIdentifier(De.name)){if(!O)return y.updatePropertyDeclaration(De,void 0,e.visitNodes(De.modifiers,b,e.isModifier),De.name,void 0,void 0,void 0);var z=pr(De.name);if(e.Debug.assert(z,"Undeclared private name for property declaration."),!z.isValid)return De}var ke=Yt(De.name,!!De.initializer||X);ke&&!e.isSimpleInlineableExpression(ke)&&Zr().push(ke)}function J(De,z){return le(De,e.visitNode(z,b,e.isExpression))}function le(De,z){switch(e.setCommentRange(z,e.moveRangePos(z,-1)),De.kind){case"a":return m.getEmitHelperFactory().createClassPrivateFieldGetHelper(z,De.brandCheckIdentifier,De.kind,De.getterName);case"m":return m.getEmitHelperFactory().createClassPrivateFieldGetHelper(z,De.brandCheckIdentifier,De.kind,De.methodName);case"f":return m.getEmitHelperFactory().createClassPrivateFieldGetHelper(z,De.brandCheckIdentifier,De.kind,De.variableName);default:e.Debug.assertNever(De,"Unknown private element type")}}function Te(De){if(O&&e.isPrivateIdentifier(De.name)){var z=pr(De.name);if(z)return e.setTextRange(e.setOriginalNode(J(z,De.expression),De),De)}if(x&&e.isSuperProperty(De)&&e.isIdentifier(De.name)&&T&&d){var ke=d.classConstructor,dr=d.superClassReference,Xe=d.facts;if(Xe&1)return Hr(De);if(ke&&dr){var Qe=y.createReflectGetCall(dr,y.createStringLiteralFromNode(De.name),ke);return e.setOriginalNode(Qe,De.expression),e.setTextRange(Qe,De.expression),Qe}}return e.visitEachChild(De,b,m)}function Me(De){if(x&&e.isSuperProperty(De)&&T&&d){var z=d.classConstructor,ke=d.superClassReference,dr=d.facts;if(dr&1)return Hr(De);if(z&&ke){var Xe=y.createReflectGetCall(ke,e.visitNode(De.argumentExpression,b,e.isExpression),z);return e.setOriginalNode(Xe,De.expression),e.setTextRange(Xe,De.expression),Xe}}return e.visitEachChild(De,b,m)}function Ke(De,z){if(De.operator===45||De.operator===46){if(O&&e.isPrivateIdentifierPropertyAccessExpression(De.operand)){var ke=void 0;if(ke=pr(De.operand.name)){var dr=e.visitNode(De.operand.expression,b,e.isExpression),Xe=se(dr),Qe=Xe.readExpression,Ir=Xe.initializeExpression,Jr=J(ke,Qe),Or=e.isPrefixUnaryExpression(De)||z?void 0:y.createTempVariable(j);return Jr=e.expandPreOrPostfixIncrementOrDecrementExpression(y,De,Jr,j,Or),Jr=We(ke,Ir||Qe,Jr,63),e.setOriginalNode(Jr,De),e.setTextRange(Jr,De),Or&&(Jr=y.createComma(Jr,Or),e.setTextRange(Jr,De)),Jr}}else if(x&&e.isSuperProperty(De.operand)&&T&&d){var Be=d.classConstructor,yr=d.superClassReference,Rr=d.facts;if(Rr&1){var zr=Hr(De.operand);return e.isPrefixUnaryExpression(De)?y.updatePrefixUnaryExpression(De,zr):y.updatePostfixUnaryExpression(De,zr)}if(Be&&yr){var ut=void 0,mt=void 0;if(e.isPropertyAccessExpression(De.operand)?e.isIdentifier(De.operand.name)&&(mt=ut=y.createStringLiteralFromNode(De.operand.name)):e.isSimpleInlineableExpression(De.operand.argumentExpression)?mt=ut=De.operand.argumentExpression:(mt=y.createTempVariable(j),ut=y.createAssignment(mt,e.visitNode(De.operand.argumentExpression,b,e.isExpression))),ut&&mt){var Jr=y.createReflectGetCall(yr,mt,Be);e.setTextRange(Jr,De.operand);var Or=z?void 0:y.createTempVariable(j);return Jr=e.expandPreOrPostfixIncrementOrDecrementExpression(y,De,Jr,j,Or),Jr=y.createReflectSetCall(yr,ut,Jr,Be),e.setOriginalNode(Jr,De),e.setTextRange(Jr,De),Or&&(Jr=y.createComma(Jr,Or),e.setTextRange(Jr,De)),Jr}}}}return e.visitEachChild(De,b,m)}function Ae(De){return y.updateForStatement(De,e.visitNode(De.initializer,R,e.isForInitializer),e.visitNode(De.condition,b,e.isExpression),e.visitNode(De.incrementor,R,e.isExpression),e.visitIterationBody(De.statement,b,m))}function Ge(De){return y.updateExpressionStatement(De,e.visitNode(De.expression,R,e.isExpression))}function se(De){var z=e.nodeIsSynthesized(De)?De:y.cloneNode(De);if(e.isSimpleInlineableExpression(De))return{readExpression:z,initializeExpression:void 0};var ke=y.createTempVariable(j),dr=y.createAssignment(ke,z);return{readExpression:ke,initializeExpression:dr}}function xe(De){if(O&&e.isPrivateIdentifierPropertyAccessExpression(De.expression)){var z=y.createCallBinding(De.expression,j,k),ke=z.thisArg,dr=z.target;return e.isCallChain(De)?y.updateCallChain(De,y.createPropertyAccessChain(e.visitNode(dr,b),De.questionDotToken,"call"),void 0,void 0,Bt([e.visitNode(ke,b,e.isExpression)],e.visitNodes(De.arguments,b,e.isExpression),!0)):y.updateCallExpression(De,y.createPropertyAccessExpression(e.visitNode(dr,b),"call"),void 0,Bt([e.visitNode(ke,b,e.isExpression)],e.visitNodes(De.arguments,b,e.isExpression),!0))}if(x&&e.isSuperProperty(De.expression)&&T&&(d==null?void 0:d.classConstructor)){var Xe=y.createFunctionCallCall(e.visitNode(De.expression,b,e.isExpression),d.classConstructor,e.visitNodes(De.arguments,b,e.isExpression));return e.setOriginalNode(Xe,De),e.setTextRange(Xe,De),Xe}return e.visitEachChild(De,b,m)}function Re(De){if(O&&e.isPrivateIdentifierPropertyAccessExpression(De.tag)){var z=y.createCallBinding(De.tag,j,k),ke=z.thisArg,dr=z.target;return y.updateTaggedTemplateExpression(De,y.createCallExpression(y.createPropertyAccessExpression(e.visitNode(dr,b),"bind"),void 0,[e.visitNode(ke,b,e.isExpression)]),void 0,e.visitNode(De.template,b,e.isTemplateLiteral))}if(x&&e.isSuperProperty(De.tag)&&T&&(d==null?void 0:d.classConstructor)){var Xe=y.createFunctionBindCall(e.visitNode(De.tag,b,e.isExpression),d.classConstructor,[]);return e.setOriginalNode(Xe,De),e.setTextRange(Xe,De),y.updateTaggedTemplateExpression(De,Xe,void 0,e.visitNode(De.template,b,e.isTemplateLiteral))}return e.visitEachChild(De,b,m)}function ce(De){if(O){d&&w.set(e.getOriginalNodeId(De),d),E();var z=T;T=De;var ke=e.visitNodes(De.body.statements,b,e.isStatement);ke=y.mergeLexicalEnvironment(ke,te()),T=z;var dr=y.createImmediatelyInvokedArrowFunction(ke);return e.setOriginalNode(dr,De),e.setTextRange(dr,De),e.addEmitFlags(dr,2),dr}}function Ue(De,z){if(e.isDestructuringAssignment(De)){var ke=M;M=void 0,De=y.updateBinaryExpression(De,e.visitNode(De.left,Y),De.operatorToken,e.visitNode(De.right,b));var dr=e.some(M)?y.inlineExpressions(e.compact(Bt(Bt([],M,!0),[De],!1))):De;return M=ke,dr}if(e.isAssignmentExpression(De)){if(O&&e.isPrivateIdentifierPropertyAccessExpression(De.left)){var Xe=pr(De.left.name);if(Xe)return e.setTextRange(e.setOriginalNode(We(Xe,De.left.expression,De.right,De.operatorToken.kind),De),De)}else if(x&&e.isSuperProperty(De.left)&&T&&d){var Qe=d.classConstructor,Ir=d.superClassReference,Jr=d.facts;if(Jr&1)return y.updateBinaryExpression(De,Hr(De.left),De.operatorToken,e.visitNode(De.right,b,e.isExpression));if(Qe&&Ir){var Or=e.isElementAccessExpression(De.left)?e.visitNode(De.left.argumentExpression,b,e.isExpression):e.isIdentifier(De.left.name)?y.createStringLiteralFromNode(De.left.name):void 0;if(Or){var Be=e.visitNode(De.right,b,e.isExpression);if(e.isCompoundAssignment(De.operatorToken.kind)){var yr=Or;e.isSimpleInlineableExpression(Or)||(yr=y.createTempVariable(j),Or=y.createAssignment(yr,Or));var Rr=y.createReflectGetCall(Ir,yr,Qe);e.setOriginalNode(Rr,De.left),e.setTextRange(Rr,De.left),Be=y.createBinaryExpression(Rr,e.getNonAssignmentOperatorForCompoundAssignment(De.operatorToken.kind),Be),e.setTextRange(Be,De)}var zr=z?void 0:y.createTempVariable(j);return zr&&(Be=y.createAssignment(zr,Be),e.setTextRange(zr,De)),Be=y.createReflectSetCall(Ir,Or,Be,Qe),e.setOriginalNode(Be,De),e.setTextRange(Be,De),zr&&(Be=y.createComma(Be,zr),e.setTextRange(Be,De)),Be}}}}return De.operatorToken.kind===101&&e.isPrivateIdentifier(De.left)?A(De):e.visitEachChild(De,b,m)}function We(De,z,ke,dr){if(z=e.visitNode(z,b,e.isExpression),ke=e.visitNode(ke,b,e.isExpression),e.isCompoundAssignment(dr)){var Xe=se(z),Qe=Xe.readExpression,Ir=Xe.initializeExpression;z=Ir||Qe,ke=y.createBinaryExpression(le(De,Qe),e.getNonAssignmentOperatorForCompoundAssignment(dr),ke)}switch(e.setCommentRange(z,e.moveRangePos(z,-1)),De.kind){case"a":return m.getEmitHelperFactory().createClassPrivateFieldSetHelper(z,De.brandCheckIdentifier,ke,De.kind,De.setterName);case"m":return m.getEmitHelperFactory().createClassPrivateFieldSetHelper(z,De.brandCheckIdentifier,ke,De.kind,void 0);case"f":return m.getEmitHelperFactory().createClassPrivateFieldSetHelper(z,De.brandCheckIdentifier,ke,De.kind,De.variableName);default:e.Debug.assertNever(De,"Unknown private element type")}}function Ne(De){if(!e.forEach(De.members,ve))return e.visitEachChild(De,b,m);var z=M;if(M=void 0,vn(),O){var ke=e.getNameOfDeclaration(De);ke&&e.isIdentifier(ke)&&(nr().className=e.idText(ke));var dr=Ve(De);e.some(dr)&&(nr().weakSetName=ge("instances",dr[0].name))}var Xe=e.isClassDeclaration(De)?Nr(De):ur(De);return Mn(),M=z,Xe}function ve(De){return e.isPropertyDeclaration(De)||e.isClassStaticBlockDeclaration(De)||O&&De.name&&e.isPrivateIdentifier(De.name)}function Ve(De){return e.filter(De.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function gr(De){var z=0,ke=e.getOriginalNode(De);e.isClassDeclaration(ke)&&e.classOrConstructorParameterIsDecorated(ke)&&(z|=1);for(var dr=0,Xe=De.members;dr<Xe.length;dr++){var Qe=Xe[dr];!e.isStatic(Qe)||(Qe.name&&e.isPrivateIdentifier(Qe.name)&&O&&(z|=2),(e.isPropertyDeclaration(Qe)||e.isClassStaticBlockDeclaration(Qe))&&(ie&&Qe.transformFlags&8192&&(z|=8,z&1||(z|=2)),x&&Qe.transformFlags&33554432&&(z&1||(z|=6))))}return z}function Er(De){var z=(d==null?void 0:d.facts)||0;if(z&4){var ke=y.createTempVariable(j,!0);return qn().superClassReference=ke,y.updateExpressionWithTypeArguments(De,y.createAssignment(ke,e.visitNode(De.expression,b,e.isExpression)),void 0)}return e.visitEachChild(De,b,m)}function Nr(De){var z=gr(De);z&&(qn().facts=z),z&8&&He();var ke=e.getStaticPropertiesAndClassStaticBlock(De),dr;if(z&2){var Xe=y.createTempVariable(j,!0);qn().classConstructor=y.cloneNode(Xe),dr=y.createAssignment(Xe,y.getInternalName(De))}var Qe=e.getEffectiveBaseTypeNode(De),Ir=!!(Qe&&e.skipOuterExpressions(Qe.expression).kind!==104),Jr=[y.updateClassDeclaration(De,void 0,De.modifiers,De.name,void 0,e.visitNodes(De.heritageClauses,G,e.isHeritageClause),sr(De,Ir))];return dr&&Zr().unshift(dr),e.some(M)&&Jr.push(y.createExpressionStatement(y.inlineExpressions(M))),e.some(ke)&&de(Jr,ke,y.getInternalName(De)),Jr}function ur(De){var z=gr(De);z&&(qn().facts=z),z&8&&He();var ke=!!(z&1),dr=e.getStaticPropertiesAndClassStaticBlock(De),Xe=e.getEffectiveBaseTypeNode(De),Qe=!!(Xe&&e.skipOuterExpressions(Xe.expression).kind!==104),Ir=C.getNodeCheckFlags(De)&16777216,Jr;function Or(){var ut=C.getNodeCheckFlags(De),mt=ut&16777216,Lt=ut&524288;return y.createTempVariable(Lt?$:j,!!mt)}z&2&&(Jr=Or(),qn().classConstructor=y.cloneNode(Jr));var Be=y.updateClassExpression(De,e.visitNodes(De.decorators,b,e.isDecorator),De.modifiers,De.name,void 0,e.visitNodes(De.heritageClauses,G,e.isHeritageClause),sr(De,Qe)),yr=e.some(dr,function(ut){return e.isClassStaticBlockDeclaration(ut)||!!ut.initializer||O&&e.isPrivateIdentifier(ut.name)});if(yr||e.some(M)){if(ke)return e.Debug.assertIsDefined(Q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Q&&M&&e.some(M)&&Q.push(y.createExpressionStatement(y.inlineExpressions(M))),Q&&e.some(dr)&&de(Q,dr,y.getInternalName(De)),Jr?y.inlineExpressions([y.createAssignment(Jr,Be),Jr]):Be;var Rr=[];if(Jr||(Jr=Or()),Ir){kr();var zr=y.cloneNode(Jr);zr.autoGenerateFlags&=-9,P[e.getOriginalNodeId(De)]=zr}return e.setEmitFlags(Be,65536|e.getEmitFlags(Be)),Rr.push(e.startOnNewLine(y.createAssignment(Jr,Be))),e.addRange(Rr,e.map(M,e.startOnNewLine)),e.addRange(Rr,we(dr,Jr)),Rr.push(e.startOnNewLine(Jr)),y.inlineExpressions(Rr)}return Be}function xr(De){if(!O)return e.visitEachChild(De,_e,m)}function sr(De,z){if(O){for(var ke=0,dr=De.members;ke<dr.length;ke++){var Xe=dr[ke];e.isPrivateIdentifierClassElementDeclaration(Xe)&&ir(Xe)}e.some(Ve(De))&&i()}var Qe=[],Ir=fr(De,z);return Ir&&Qe.push(Ir),e.addRange(Qe,e.visitNodes(De.members,_e,e.isClassElement)),e.setTextRange(y.createNodeArray(Qe),De.members)}function i(){var De=nr().weakSetName;e.Debug.assert(De,"weakSetName should be set in private identifier environment"),Zr().push(y.createAssignment(De,y.createNewExpression(y.createIdentifier("WeakSet"),void 0,[])))}function Mr(De){return e.isStatic(De)||e.hasSyntacticModifier(e.getOriginalNode(De),128)?!1:X?k<99:e.isInitializedProperty(De)||O&&e.isPrivateIdentifierClassElementDeclaration(De)}function fr(De,z){var ke=e.visitNode(e.getFirstConstructorWithBody(De),b,e.isConstructorDeclaration),dr=De.members.filter(Mr);if(!e.some(dr))return ke;var Xe=e.visitParameterList(ke?ke.parameters:void 0,b,m),Qe=Ar(De,ke,z);if(!!Qe)return e.startOnNewLine(e.setOriginalNode(e.setTextRange(y.createConstructorDeclaration(void 0,void 0,Xe!=null?Xe:[],Qe),ke||De),ke))}function Ar(De,z,ke){var dr=e.getProperties(De,!1,!1);X||(dr=e.filter(dr,function(yr){return!!yr.initializer||e.isPrivateIdentifier(yr.name)}));var Xe=Ve(De),Qe=e.some(dr)||e.some(Xe);if(!z&&!Qe)return e.visitFunctionBody(void 0,b,m);F();var Ir=0,Jr=[];if(!z&&ke&&Jr.push(y.createExpressionStatement(y.createCallExpression(y.createSuper(),void 0,[y.createSpreadElement(y.createIdentifier("arguments"))]))),z&&(Ir=e.addPrologueDirectivesAndInitialSuperCall(y,z,Jr,b)),z!=null&&z.body){var Or=e.findIndex(z.body.statements,function(yr){return!e.isParameterPropertyDeclaration(e.getOriginalNode(yr),z)},Ir);Or===-1&&(Or=z.body.statements.length),Or>Ir&&(X||e.addRange(Jr,e.visitNodes(z.body.statements,b,e.isStatement,Ir,Or-Ir)),Ir=Or)}var Be=y.createThis();return lr(Jr,Xe,Be),de(Jr,dr,Be),z&&e.addRange(Jr,e.visitNodes(z.body.statements,b,e.isStatement,Ir)),Jr=y.mergeLexicalEnvironment(Jr,te()),e.setTextRange(y.createBlock(e.setTextRange(y.createNodeArray(Jr),z?z.body.statements:De.members),!0),z?z.body:void 0)}function de(De,z,ke){for(var dr=0,Xe=z;dr<Xe.length;dr++){var Qe=Xe[dr],Ir=e.isClassStaticBlockDeclaration(Qe)?ce(Qe):qe(Qe,ke);if(!!Ir){var Jr=y.createExpressionStatement(Ir);e.setSourceMapRange(Jr,e.moveRangePastModifiers(Qe)),e.setCommentRange(Jr,Qe),e.setOriginalNode(Jr,Qe),De.push(Jr)}}}function we(De,z){for(var ke=[],dr=0,Xe=De;dr<Xe.length;dr++){var Qe=Xe[dr],Ir=e.isClassStaticBlockDeclaration(Qe)?ce(Qe):qe(Qe,z);!Ir||(e.startOnNewLine(Ir),e.setSourceMapRange(Ir,e.moveRangePastModifiers(Qe)),e.setCommentRange(Ir,Qe),e.setOriginalNode(Ir,Qe),ke.push(Ir))}return ke}function qe(De,z){var ke=T,dr=Cr(De,z);return dr&&e.hasStaticModifier(De)&&(d==null?void 0:d.facts)&&(e.setOriginalNode(dr,De),e.addEmitFlags(dr,2),w.set(e.getOriginalNodeId(dr),d)),T=ke,dr}function Cr(De,z){var ke,dr=!X,Xe=e.isComputedPropertyName(De.name)&&!e.isSimpleInlineableExpression(De.name.expression)?y.updateComputedPropertyName(De.name,y.getGeneratedNameForNode(De.name)):De.name;if(e.hasStaticModifier(De)&&(T=De),O&&e.isPrivateIdentifier(Xe)){var Qe=pr(Xe);if(Qe)return Qe.kind==="f"?Qe.isStatic?p(Qe.variableName,e.visitNode(De.initializer,b,e.isExpression)):I(z,e.visitNode(De.initializer,b,e.isExpression),Qe.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!((e.isPrivateIdentifier(Xe)||e.hasStaticModifier(De))&&!De.initializer)){var Ir=e.getOriginalNode(De);if(!e.hasSyntacticModifier(Ir,128)){var Jr=De.initializer||dr?(ke=e.visitNode(De.initializer,b,e.isExpression))!==null&&ke!==void 0?ke:y.createVoidZero():e.isParameterPropertyDeclaration(Ir,Ir.parent)&&e.isIdentifier(Xe)?Xe:y.createVoidZero();if(dr||e.isPrivateIdentifier(Xe)){var Or=e.createMemberAccessForPropertyName(y,z,Xe,Xe);return y.createAssignment(Or,Jr)}else{var Be=e.isComputedPropertyName(Xe)?Xe.expression:e.isIdentifier(Xe)?y.createStringLiteral(e.unescapeLeadingUnderscores(Xe.escapedText)):Xe,yr=y.createPropertyDescriptor({value:Jr,configurable:!0,writable:!0,enumerable:!0});return y.createObjectDefinePropertyCall(z,Be,yr)}}}}function kr(){(q&1)===0&&(q|=1,m.enableSubstitution(79),P=[])}function He(){(q&2)===0&&(q|=2,m.enableSubstitution(108),m.enableEmitNotification(255),m.enableEmitNotification(212),m.enableEmitNotification(170),m.enableEmitNotification(171),m.enableEmitNotification(172),m.enableEmitNotification(168),m.enableEmitNotification(166),m.enableEmitNotification(161))}function lr(De,z,ke){if(!(!O||!e.some(z))){var dr=nr().weakSetName;e.Debug.assert(dr,"weakSetName should be set in private identifier environment"),De.push(y.createExpressionStatement(V(ke,dr)))}}function Hr(De){return e.isPropertyAccessExpression(De)?y.updatePropertyAccessExpression(De,y.createVoidZero(),De.name):y.updateElementAccessExpression(De,y.createVoidZero(),e.visitNode(De.argumentExpression,b,e.isExpression))}function Je(De,z,ke){var dr=e.getOriginalNode(z);if(dr.id){var Xe=w.get(dr.id);if(Xe){var Qe=d,Ir=B;d=Xe,B=Xe,re(De,z,ke),d=Qe,B=Ir;return}}switch(z.kind){case 212:if(e.isArrowFunction(dr)||e.getEmitFlags(z)&262144)break;case 255:case 170:{var Qe=d,Ir=B;d=void 0,B=void 0,re(De,z,ke),d=Qe,B=Ir;return}case 171:case 172:case 168:case 166:{var Qe=d,Ir=B;B=d,d=void 0,re(De,z,ke),d=Qe,B=Ir;return}case 161:{var Qe=d,Ir=B;d=B,B=void 0,re(De,z,ke),d=Qe,B=Ir;return}}re(De,z,ke)}function Sr(De,z){return z=Z(De,z),De===1?Yr(z):z}function Yr(De){switch(De.kind){case 79:return _t(De);case 108:return ot(De)}return De}function ot(De){if(q&2&&d){var z=d.facts,ke=d.classConstructor;if(z&1)return y.createParenthesizedExpression(y.createVoidZero());if(ke)return e.setTextRange(e.setOriginalNode(y.cloneNode(ke),De),De)}return De}function _t(De){return kt(De)||De}function kt(De){if(q&1&&C.getNodeCheckFlags(De)&33554432){var z=C.getReferencedValueDeclaration(De);if(z){var ke=P[z.id];if(ke){var dr=y.cloneNode(ke);return e.setSourceMapRange(dr,De),e.setCommentRange(dr,De),dr}}}}function Yt(De,z){if(e.isComputedPropertyName(De)){var ke=e.visitNode(De.expression,b,e.isExpression),dr=e.skipPartiallyEmittedExpressions(ke),Xe=e.isSimpleInlineableExpression(dr),Qe=e.isAssignmentExpression(dr)&&e.isGeneratedIdentifier(dr.left);if(!Qe&&!Xe&&z){var Ir=y.getGeneratedNameForNode(De);return C.getNodeCheckFlags(De)&524288?$(Ir):j(Ir),y.createAssignment(Ir,ke)}return Xe||e.isIdentifier(dr)?void 0:ke}}function vn(){H.push(d),d=void 0}function Mn(){d=H.pop()}function qn(){return d||(d={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function nr(){var De=qn();return De.privateIdentifierEnvironment||(De.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),De.privateIdentifierEnvironment}function Zr(){return M||(M=[])}function ir(De){var z,ke=e.getTextOfPropertyName(De.name),dr=qn(),Xe=dr.classConstructor,Qe=nr(),Ir=Qe.weakSetName,Jr=[],Or=De.name.escapedText,Be=Qe.identifiers.get(Or),yr=!L(De.name)&&Be===void 0;if(e.hasStaticModifier(De))if(e.Debug.assert(Xe,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(De)){var Rr=rr(ke,De);Qe.identifiers.set(Or,{kind:"f",variableName:Rr,brandCheckIdentifier:Xe,isStatic:!0,isValid:yr})}else if(e.isMethodDeclaration(De)){var zr=rr(ke,De);Qe.identifiers.set(Or,{kind:"m",methodName:zr,brandCheckIdentifier:Xe,isStatic:!0,isValid:yr})}else if(e.isGetAccessorDeclaration(De)){var ut=rr(ke+"_get",De);(Be==null?void 0:Be.kind)==="a"&&Be.isStatic&&!Be.getterName?Be.getterName=ut:Qe.identifiers.set(Or,{kind:"a",getterName:ut,setterName:void 0,brandCheckIdentifier:Xe,isStatic:!0,isValid:yr})}else if(e.isSetAccessorDeclaration(De)){var mt=rr(ke+"_set",De);(Be==null?void 0:Be.kind)==="a"&&Be.isStatic&&!Be.setterName?Be.setterName=mt:Qe.identifiers.set(Or,{kind:"a",getterName:void 0,setterName:mt,brandCheckIdentifier:Xe,isStatic:!0,isValid:yr})}else e.Debug.assertNever(De,"Unknown class element type.");else if(e.isPropertyDeclaration(De)){var Lt=rr(ke,De);Qe.identifiers.set(Or,{kind:"f",brandCheckIdentifier:Lt,isStatic:!1,variableName:void 0,isValid:yr}),Jr.push(y.createAssignment(Lt,y.createNewExpression(y.createIdentifier("WeakMap"),void 0,[])))}else if(e.isMethodDeclaration(De))e.Debug.assert(Ir,"weakSetName should be set in private identifier environment"),Qe.identifiers.set(Or,{kind:"m",methodName:rr(ke,De),brandCheckIdentifier:Ir,isStatic:!1,isValid:yr});else if(e.isAccessor(De))if(e.Debug.assert(Ir,"weakSetName should be set in private identifier environment"),e.isGetAccessor(De)){var ut=rr(ke+"_get",De);(Be==null?void 0:Be.kind)==="a"&&!Be.isStatic&&!Be.getterName?Be.getterName=ut:Qe.identifiers.set(Or,{kind:"a",getterName:ut,setterName:void 0,brandCheckIdentifier:Ir,isStatic:!1,isValid:yr})}else{var mt=rr(ke+"_set",De);(Be==null?void 0:Be.kind)==="a"&&!Be.isStatic&&!Be.setterName?Be.setterName=mt:Qe.identifiers.set(Or,{kind:"a",getterName:void 0,setterName:mt,brandCheckIdentifier:Ir,isStatic:!1,isValid:yr})}else e.Debug.assertNever(De,"Unknown class element type.");(z=Zr()).push.apply(z,Jr)}function ge(De,z){var ke=nr().className,dr=ke?"_".concat(ke):"",Xe=y.createUniqueName("".concat(dr,"_").concat(De),16);return C.getNodeCheckFlags(z)&524288?$(Xe):j(Xe),Xe}function rr(De,z){return ge(De.substring(1),z.name)}function pr(De){var z;if(d!=null&&d.privateIdentifierEnvironment){var ke=d.privateIdentifierEnvironment.identifiers.get(De.escapedText);if(ke)return ke}for(var dr=H.length-1;dr>=0;--dr){var Xe=H[dr];if(!!Xe){var ke=(z=Xe.privateIdentifierEnvironment)===null||z===void 0?void 0:z.identifiers.get(De.escapedText);if(ke)return ke}}}function Lr(De){var z=y.getGeneratedNameForNode(De),ke=pr(De.name);if(!ke)return e.visitEachChild(De,b,m);var dr=De.expression;return(e.isThisProperty(De)||e.isSuperProperty(De)||!e.isSimpleCopiableExpression(De.expression))&&(dr=y.createTempVariable(j,!0),Zr().push(y.createBinaryExpression(dr,63,e.visitNode(De.expression,b,e.isExpression)))),y.createAssignmentTargetWrapper(z,We(ke,dr,z,63))}function Ce(De){var z=e.getTargetOfBindingOrAssignmentElement(De);if(z){var ke=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(z))ke=Lr(z);else if(x&&e.isSuperProperty(z)&&T&&d){var dr=d.classConstructor,Xe=d.superClassReference,Qe=d.facts;if(Qe&1)ke=Hr(z);else if(dr&&Xe){var Ir=e.isElementAccessExpression(z)?e.visitNode(z.argumentExpression,b,e.isExpression):e.isIdentifier(z.name)?y.createStringLiteralFromNode(z.name):void 0;if(Ir){var Jr=y.createTempVariable(void 0);ke=y.createAssignmentTargetWrapper(Jr,y.createReflectSetCall(Xe,Ir,Jr,dr))}}}if(ke)return e.isAssignmentExpression(De)?y.updateBinaryExpression(De,ke,De.operatorToken,e.visitNode(De.right,b,e.isExpression)):e.isSpreadElement(De)?y.updateSpreadElement(De,ke):ke}return e.visitNode(De,Y)}function cr(De){if(e.isObjectBindingOrAssignmentElement(De)&&!e.isShorthandPropertyAssignment(De)){var z=e.getTargetOfBindingOrAssignmentElement(De),ke=void 0;if(z){if(e.isPrivateIdentifierPropertyAccessExpression(z))ke=Lr(z);else if(x&&e.isSuperProperty(z)&&T&&d){var dr=d.classConstructor,Xe=d.superClassReference,Qe=d.facts;if(Qe&1)ke=Hr(z);else if(dr&&Xe){var Ir=e.isElementAccessExpression(z)?e.visitNode(z.argumentExpression,b,e.isExpression):e.isIdentifier(z.name)?y.createStringLiteralFromNode(z.name):void 0;if(Ir){var Jr=y.createTempVariable(void 0);ke=y.createAssignmentTargetWrapper(Jr,y.createReflectSetCall(Xe,Ir,Jr,dr))}}}}if(e.isPropertyAssignment(De)){var Or=e.getInitializerOfBindingOrAssignmentElement(De);return y.updatePropertyAssignment(De,e.visitNode(De.name,b,e.isPropertyName),ke?Or?y.createAssignment(ke,e.visitNode(Or,b)):ke:e.visitNode(De.initializer,Y,e.isExpression))}if(e.isSpreadAssignment(De))return y.updateSpreadAssignment(De,ke||e.visitNode(De.expression,Y,e.isExpression));e.Debug.assert(ke===void 0,"Should not have generated a wrapped target")}return e.visitNode(De,b)}function $e(De){return e.isArrayLiteralExpression(De)?y.updateArrayLiteralExpression(De,e.visitNodes(De.elements,Ce,e.isExpression)):y.updateObjectLiteralExpression(De,e.visitNodes(De.properties,cr,e.isObjectLiteralElementLike))}}e.transformClassFields=g;function p(m,y){return e.factory.createAssignment(m,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",y||e.factory.createVoidZero())]))}function I(m,y,j){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(j,"set"),void 0,[m,y||e.factory.createVoidZero()])}function V(m,y){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(y,"add"),void 0,[m])}function L(m){return m.escapedText==="#constructor"}})(mr||(mr={}));var mr;(function(e){var n;(function(p){p[p.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(n||(n={}));var c;(function(p){p[p.NonTopLevel=1]="NonTopLevel",p[p.HasLexicalThis=2]="HasLexicalThis"})(c||(c={}));function u(p){var I=p.factory,V=p.getEmitHelperFactory,L=p.resumeLexicalEnvironment,m=p.endLexicalEnvironment,y=p.hoistVariableDeclaration,j=p.getEmitResolver(),te=p.getCompilerOptions(),E=e.getEmitScriptTarget(te),F,$=0,C,K,k,X=[],O=0,x=p.onEmitNode,ie=p.onSubstituteNode;return p.onEmitNode=Ae,p.onSubstituteNode=Ge,e.chainBundle(p,Z);function Z(Ne){if(Ne.isDeclarationFile)return Ne;re(1,!1),re(2,!e.isEffectiveStrictModeSourceFile(Ne,te));var ve=e.visitEachChild(Ne,w,p);return e.addEmitHelpers(ve,p.readEmitHelpers()),ve}function re(Ne,ve){O=ve?O|Ne:O&~Ne}function q(Ne){return(O&Ne)!==0}function P(){return!q(1)}function M(){return q(2)}function Q(Ne,ve,Ve){var gr=Ne&~O;if(gr){re(gr,!0);var Er=ve(Ve);return re(gr,!1),Er}return ve(Ve)}function H(Ne){return e.visitEachChild(Ne,w,p)}function w(Ne){if((Ne.transformFlags&128)===0)return Ne;switch(Ne.kind){case 131:return;case 217:return b(Ne);case 168:return Q(3,G,Ne);case 255:return Q(3,Y,Ne);case 212:return Q(3,pe,Ne);case 213:return Q(1,A,Ne);case 205:return K&&e.isPropertyAccessExpression(Ne)&&Ne.expression.kind===106&&K.add(Ne.name.escapedText),e.visitEachChild(Ne,w,p);case 206:return K&&Ne.expression.kind===106&&(k=!0),e.visitEachChild(Ne,w,p);case 171:case 172:case 170:case 256:case 225:return Q(3,H,Ne);default:return e.visitEachChild(Ne,w,p)}}function d(Ne){if(e.isNodeWithPossibleHoistedDeclaration(Ne))switch(Ne.kind){case 236:return T(Ne);case 241:return R(Ne);case 242:return _(Ne);case 243:return h(Ne);case 291:return B(Ne);case 234:case 248:case 262:case 288:case 289:case 251:case 239:case 240:case 238:case 247:case 249:return e.visitEachChild(Ne,d,p);default:return e.Debug.assertNever(Ne,"Unhandled node.")}return w(Ne)}function B(Ne){var ve=new e.Set;_e(Ne.variableDeclaration,ve);var Ve;if(ve.forEach(function(Nr,ur){C.has(ur)&&(Ve||(Ve=new e.Set(C)),Ve.delete(ur))}),Ve){var gr=C;C=Ve;var Er=e.visitEachChild(Ne,d,p);return C=gr,Er}else return e.visitEachChild(Ne,d,p)}function T(Ne){if(Se(Ne.declarationList)){var ve=ae(Ne.declarationList,!1);return ve?I.createExpressionStatement(ve):void 0}return e.visitEachChild(Ne,w,p)}function _(Ne){return I.updateForInStatement(Ne,Se(Ne.initializer)?ae(Ne.initializer,!0):e.visitNode(Ne.initializer,w,e.isForInitializer),e.visitNode(Ne.expression,w,e.isExpression),e.visitIterationBody(Ne.statement,d,p))}function h(Ne){return I.updateForOfStatement(Ne,e.visitNode(Ne.awaitModifier,w,e.isToken),Se(Ne.initializer)?ae(Ne.initializer,!0):e.visitNode(Ne.initializer,w,e.isForInitializer),e.visitNode(Ne.expression,w,e.isExpression),e.visitIterationBody(Ne.statement,d,p))}function R(Ne){var ve=Ne.initializer;return I.updateForStatement(Ne,Se(ve)?ae(ve,!1):e.visitNode(Ne.initializer,w,e.isForInitializer),e.visitNode(Ne.condition,w,e.isExpression),e.visitNode(Ne.incrementor,w,e.isExpression),e.visitIterationBody(Ne.statement,d,p))}function b(Ne){return P()?e.visitEachChild(Ne,w,p):e.setOriginalNode(e.setTextRange(I.createYieldExpression(void 0,e.visitNode(Ne.expression,w,e.isExpression)),Ne),Ne)}function G(Ne){return I.updateMethodDeclaration(Ne,void 0,e.visitNodes(Ne.modifiers,w,e.isModifier),Ne.asteriskToken,Ne.name,void 0,void 0,e.visitParameterList(Ne.parameters,w,p),void 0,e.getFunctionFlags(Ne)&2?le(Ne):e.visitFunctionBody(Ne.body,w,p))}function Y(Ne){return I.updateFunctionDeclaration(Ne,void 0,e.visitNodes(Ne.modifiers,w,e.isModifier),Ne.asteriskToken,Ne.name,void 0,e.visitParameterList(Ne.parameters,w,p),void 0,e.getFunctionFlags(Ne)&2?le(Ne):e.visitFunctionBody(Ne.body,w,p))}function pe(Ne){return I.updateFunctionExpression(Ne,e.visitNodes(Ne.modifiers,w,e.isModifier),Ne.asteriskToken,Ne.name,void 0,e.visitParameterList(Ne.parameters,w,p),void 0,e.getFunctionFlags(Ne)&2?le(Ne):e.visitFunctionBody(Ne.body,w,p))}function A(Ne){return I.updateArrowFunction(Ne,e.visitNodes(Ne.modifiers,w,e.isModifier),void 0,e.visitParameterList(Ne.parameters,w,p),void 0,Ne.equalsGreaterThanToken,e.getFunctionFlags(Ne)&2?le(Ne):e.visitFunctionBody(Ne.body,w,p))}function _e(Ne,ve){var Ve=Ne.name;if(e.isIdentifier(Ve))ve.add(Ve.escapedText);else for(var gr=0,Er=Ve.elements;gr<Er.length;gr++){var Nr=Er[gr];e.isOmittedExpression(Nr)||_e(Nr,ve)}}function Se(Ne){return!!Ne&&e.isVariableDeclarationList(Ne)&&!(Ne.flags&3)&&Ne.declarations.some(J)}function ae(Ne,ve){D(Ne);var Ve=e.getInitializedVariables(Ne);return Ve.length===0?ve?e.visitNode(I.converters.convertToAssignmentElementTarget(Ne.declarations[0].name),w,e.isExpression):void 0:I.inlineExpressions(e.map(Ve,ne))}function D(Ne){e.forEach(Ne.declarations,be)}function be(Ne){var ve=Ne.name;if(e.isIdentifier(ve))y(ve);else for(var Ve=0,gr=ve.elements;Ve<gr.length;Ve++){var Er=gr[Ve];e.isOmittedExpression(Er)||be(Er)}}function ne(Ne){var ve=e.setSourceMapRange(I.createAssignment(I.converters.convertToAssignmentElementTarget(Ne.name),Ne.initializer),Ne);return e.visitNode(ve,w,e.isExpression)}function J(Ne){var ve=Ne.name;if(e.isIdentifier(ve))return C.has(ve.escapedText);for(var Ve=0,gr=ve.elements;Ve<gr.length;Ve++){var Er=gr[Ve];if(!e.isOmittedExpression(Er)&&J(Er))return!0}return!1}function le(Ne){L();var ve=e.getOriginalNode(Ne,e.isFunctionLike),Ve=ve.type,gr=E<2?Me(Ve):void 0,Er=Ne.kind===213,Nr=(j.getNodeCheckFlags(Ne)&8192)!==0,ur=C;C=new e.Set;for(var xr=0,sr=Ne.parameters;xr<sr.length;xr++){var i=sr[xr];_e(i,C)}var Mr=K,fr=k;Er||(K=new e.Set,k=!1);var Ar;if(Er){var He=V().createAwaiterHelper(M(),Nr,gr,Te(Ne.body)),lr=m();if(e.some(lr)){var kr=I.converters.convertToFunctionBlock(He);Ar=I.updateBlock(kr,e.setTextRange(I.createNodeArray(e.concatenate(lr,kr.statements)),kr.statements))}else Ar=He}else{var de=[],we=I.copyPrologue(Ne.body.statements,de,!1,w);de.push(I.createReturnStatement(V().createAwaiterHelper(M(),Nr,gr,Te(Ne.body,we)))),e.insertStatementsAfterStandardPrologue(de,m());var qe=E>=2&&j.getNodeCheckFlags(Ne)&6144;if(qe&&(Ke(),K.size)){var Cr=g(I,j,Ne,K);X[e.getNodeId(Cr)]=!0,e.insertStatementsAfterStandardPrologue(de,[Cr])}var kr=I.createBlock(de,!0);e.setTextRange(kr,Ne.body),qe&&k&&(j.getNodeCheckFlags(Ne)&4096?e.addEmitHelper(kr,e.advancedAsyncSuperHelper):j.getNodeCheckFlags(Ne)&2048&&e.addEmitHelper(kr,e.asyncSuperHelper)),Ar=kr}return C=ur,Er||(K=Mr,k=fr),Ar}function Te(Ne,ve){return e.isBlock(Ne)?I.updateBlock(Ne,e.visitNodes(Ne.statements,d,e.isStatement,ve)):I.converters.convertToFunctionBlock(e.visitNode(Ne,d,e.isConciseBody))}function Me(Ne){var ve=Ne&&e.getEntityNameFromTypeNode(Ne);if(ve&&e.isEntityName(ve)){var Ve=j.getTypeReferenceSerializationKind(ve);if(Ve===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||Ve===e.TypeReferenceSerializationKind.Unknown)return ve}}function Ke(){(F&1)===0&&(F|=1,p.enableSubstitution(207),p.enableSubstitution(205),p.enableSubstitution(206),p.enableEmitNotification(256),p.enableEmitNotification(168),p.enableEmitNotification(171),p.enableEmitNotification(172),p.enableEmitNotification(170),p.enableEmitNotification(236))}function Ae(Ne,ve,Ve){if(F&1&&Ue(ve)){var gr=j.getNodeCheckFlags(ve)&6144;if(gr!==$){var Er=$;$=gr,x(Ne,ve,Ve),$=Er;return}}else if(F&&X[e.getNodeId(ve)]){var Er=$;$=0,x(Ne,ve,Ve),$=Er;return}x(Ne,ve,Ve)}function Ge(Ne,ve){return ve=ie(Ne,ve),Ne===1&&$?se(ve):ve}function se(Ne){switch(Ne.kind){case 205:return xe(Ne);case 206:return Re(Ne);case 207:return ce(Ne)}return Ne}function xe(Ne){return Ne.expression.kind===106?e.setTextRange(I.createPropertyAccessExpression(I.createUniqueName("_super",48),Ne.name),Ne):Ne}function Re(Ne){return Ne.expression.kind===106?We(Ne.argumentExpression,Ne):Ne}function ce(Ne){var ve=Ne.expression;if(e.isSuperProperty(ve)){var Ve=e.isPropertyAccessExpression(ve)?xe(ve):Re(ve);return I.createCallExpression(I.createPropertyAccessExpression(Ve,"call"),void 0,Bt([I.createThis()],Ne.arguments,!0))}return Ne}function Ue(Ne){var ve=Ne.kind;return ve===256||ve===170||ve===168||ve===171||ve===172}function We(Ne,ve){return $&4096?e.setTextRange(I.createPropertyAccessExpression(I.createCallExpression(I.createUniqueName("_superIndex",48),void 0,[Ne]),"value"),ve):e.setTextRange(I.createCallExpression(I.createUniqueName("_superIndex",48),void 0,[Ne]),ve)}}e.transformES2017=u;function g(p,I,V,L){var m=(I.getNodeCheckFlags(V)&4096)!==0,y=[];return L.forEach(function(j,te){var E=e.unescapeLeadingUnderscores(te),F=[];F.push(p.createPropertyAssignment("get",p.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(p.createPropertyAccessExpression(e.setEmitFlags(p.createSuper(),4),E),4)))),m&&F.push(p.createPropertyAssignment("set",p.createArrowFunction(void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,p.createAssignment(e.setEmitFlags(p.createPropertyAccessExpression(e.setEmitFlags(p.createSuper(),4),E),4),p.createIdentifier("v"))))),y.push(p.createPropertyAssignment(E,p.createObjectLiteralExpression(F)))}),p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.createUniqueName("_super",48),void 0,void 0,p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"create"),void 0,[p.createNull(),p.createObjectLiteralExpression(y,!0)]))],2))}e.createSuperAccessVariableStatement=g})(mr||(mr={}));var mr;(function(e){var n;(function(g){g[g.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(n||(n={}));var c;(function(g){g[g.None=0]="None",g[g.HasLexicalThis=1]="HasLexicalThis",g[g.IterationContainer=2]="IterationContainer",g[g.AncestorFactsMask=3]="AncestorFactsMask",g[g.SourceFileIncludes=1]="SourceFileIncludes",g[g.SourceFileExcludes=2]="SourceFileExcludes",g[g.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",g[g.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",g[g.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",g[g.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",g[g.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",g[g.IterationStatementIncludes=2]="IterationStatementIncludes",g[g.IterationStatementExcludes=0]="IterationStatementExcludes"})(c||(c={}));function u(g){var p=g.factory,I=g.getEmitHelperFactory,V=g.resumeLexicalEnvironment,L=g.endLexicalEnvironment,m=g.hoistVariableDeclaration,y=g.getEmitResolver(),j=g.getCompilerOptions(),te=e.getEmitScriptTarget(j),E=g.onEmitNode;g.onEmitNode=Mr;var F=g.onSubstituteNode;g.onSubstituteNode=fr;var $=!1,C,K,k=0,X=0,O,x,ie,Z,re=[];return e.chainBundle(g,H);function q(He,lr){return X!==(X&~He|lr)}function P(He,lr){var Hr=X;return X=(X&~He|lr)&3,Hr}function M(He){X=He}function Q(He){x=e.append(x,p.createVariableDeclaration(He))}function H(He){if(He.isDeclarationFile)return He;O=He;var lr=ae(He);return e.addEmitHelpers(lr,g.readEmitHelpers()),O=void 0,x=void 0,lr}function w(He){return h(He,!1)}function d(He){return h(He,!0)}function B(He){if(He.kind!==131)return He}function T(He,lr,Hr,Je){if(q(Hr,Je)){var Sr=P(Hr,Je),Yr=He(lr);return M(Sr),Yr}return He(lr)}function _(He){return e.visitEachChild(He,w,g)}function h(He,lr){if((He.transformFlags&64)===0)return He;switch(He.kind){case 217:return R(He);case 223:return b(He);case 246:return G(He);case 249:return Y(He);case 204:return A(He);case 220:return be(He,lr);case 349:return ne(He,lr);case 291:return J(He);case 236:return le(He);case 253:return Te(He);case 239:case 240:case 242:return T(_,He,0,2);case 243:return Ge(He,void 0);case 241:return T(Ke,He,0,2);case 216:return Ae(He);case 170:return T(We,He,2,1);case 168:return T(Ve,He,2,1);case 171:return T(Ne,He,2,1);case 172:return T(ve,He,2,1);case 255:return T(gr,He,2,1);case 212:return T(Nr,He,2,1);case 213:return T(Er,He,2,0);case 163:return Ue(He);case 237:return _e(He);case 211:return Se(He,lr);case 209:return D(He);case 205:return ie&&e.isPropertyAccessExpression(He)&&He.expression.kind===106&&ie.add(He.name.escapedText),e.visitEachChild(He,w,g);case 206:return ie&&He.expression.kind===106&&(Z=!0),e.visitEachChild(He,w,g);case 256:case 225:return T(_,He,2,1);default:return e.visitEachChild(He,w,g)}}function R(He){return K&2&&K&1?e.setOriginalNode(e.setTextRange(p.createYieldExpression(void 0,I().createAwaitHelper(e.visitNode(He.expression,w,e.isExpression))),He),He):e.visitEachChild(He,w,g)}function b(He){if(K&2&&K&1){if(He.asteriskToken){var lr=e.visitNode(e.Debug.assertDefined(He.expression),w,e.isExpression);return e.setOriginalNode(e.setTextRange(p.createYieldExpression(void 0,I().createAwaitHelper(p.updateYieldExpression(He,He.asteriskToken,e.setTextRange(I().createAsyncDelegatorHelper(e.setTextRange(I().createAsyncValuesHelper(lr),lr)),lr)))),He),He)}return e.setOriginalNode(e.setTextRange(p.createYieldExpression(void 0,Re(He.expression?e.visitNode(He.expression,w,e.isExpression):p.createVoidZero())),He),He)}return e.visitEachChild(He,w,g)}function G(He){return K&2&&K&1?p.updateReturnStatement(He,Re(He.expression?e.visitNode(He.expression,w,e.isExpression):p.createVoidZero())):e.visitEachChild(He,w,g)}function Y(He){if(K&2){var lr=e.unwrapInnermostStatementOfLabel(He);return lr.kind===243&&lr.awaitModifier?Ge(lr,He):p.restoreEnclosingLabel(e.visitNode(lr,w,e.isStatement,p.liftToBlock),He)}return e.visitEachChild(He,w,g)}function pe(He){for(var lr,Hr=[],Je=0,Sr=He;Je<Sr.length;Je++){var Yr=Sr[Je];if(Yr.kind===296){lr&&(Hr.push(p.createObjectLiteralExpression(lr)),lr=void 0);var ot=Yr.expression;Hr.push(e.visitNode(ot,w,e.isExpression))}else lr=e.append(lr,Yr.kind===294?p.createPropertyAssignment(Yr.name,e.visitNode(Yr.initializer,w,e.isExpression)):e.visitNode(Yr,w,e.isObjectLiteralElementLike))}return lr&&Hr.push(p.createObjectLiteralExpression(lr)),Hr}function A(He){if(He.transformFlags&32768){var lr=pe(He.properties);lr.length&&lr[0].kind!==204&&lr.unshift(p.createObjectLiteralExpression());var Hr=lr[0];if(lr.length>1){for(var Je=1;Je<lr.length;Je++)Hr=I().createAssignHelper([Hr,lr[Je]]);return Hr}else return I().createAssignHelper(lr)}return e.visitEachChild(He,w,g)}function _e(He){return e.visitEachChild(He,d,g)}function Se(He,lr){return e.visitEachChild(He,lr?d:w,g)}function ae(He){var lr=P(2,e.isEffectiveStrictModeSourceFile(He,j)?0:1);$=!1;var Hr=e.visitEachChild(He,w,g),Je=e.concatenate(Hr.statements,x&&[p.createVariableStatement(void 0,p.createVariableDeclarationList(x))]),Sr=p.updateSourceFile(Hr,e.setTextRange(p.createNodeArray(Je),He.statements));return M(lr),Sr}function D(He){return e.processTaggedTemplateExpression(g,He,w,O,Q,e.ProcessLevel.LiftRestriction)}function be(He,lr){return e.isDestructuringAssignment(He)&&He.left.transformFlags&32768?e.flattenDestructuringAssignment(He,w,g,1,!lr):He.operatorToken.kind===27?p.updateBinaryExpression(He,e.visitNode(He.left,d,e.isExpression),He.operatorToken,e.visitNode(He.right,lr?d:w,e.isExpression)):e.visitEachChild(He,w,g)}function ne(He,lr){if(lr)return e.visitEachChild(He,d,g);for(var Hr,Je=0;Je<He.elements.length;Je++){var Sr=He.elements[Je],Yr=e.visitNode(Sr,Je<He.elements.length-1?d:w,e.isExpression);(Hr||Yr!==Sr)&&(Hr||(Hr=He.elements.slice(0,Je)),Hr.push(Yr))}var ot=Hr?e.setTextRange(p.createNodeArray(Hr),He.elements):He.elements;return p.updateCommaListExpression(He,ot)}function J(He){if(He.variableDeclaration&&e.isBindingPattern(He.variableDeclaration.name)&&He.variableDeclaration.name.transformFlags&32768){var lr=p.getGeneratedNameForNode(He.variableDeclaration.name),Hr=p.updateVariableDeclaration(He.variableDeclaration,He.variableDeclaration.name,void 0,void 0,lr),Je=e.flattenDestructuringBinding(Hr,w,g,1),Sr=e.visitNode(He.block,w,e.isBlock);return e.some(Je)&&(Sr=p.updateBlock(Sr,Bt([p.createVariableStatement(void 0,Je)],Sr.statements,!0))),p.updateCatchClause(He,p.updateVariableDeclaration(He.variableDeclaration,lr,void 0,void 0,void 0),Sr)}return e.visitEachChild(He,w,g)}function le(He){if(e.hasSyntacticModifier(He,1)){var lr=$;$=!0;var Hr=e.visitEachChild(He,w,g);return $=lr,Hr}return e.visitEachChild(He,w,g)}function Te(He){if($){var lr=$;$=!1;var Hr=Me(He,!0);return $=lr,Hr}return Me(He,!1)}function Me(He,lr){return e.isBindingPattern(He.name)&&He.name.transformFlags&32768?e.flattenDestructuringBinding(He,w,g,1,void 0,lr):e.visitEachChild(He,w,g)}function Ke(He){return p.updateForStatement(He,e.visitNode(He.initializer,d,e.isForInitializer),e.visitNode(He.condition,w,e.isExpression),e.visitNode(He.incrementor,d,e.isExpression),e.visitIterationBody(He.statement,w,g))}function Ae(He){return e.visitEachChild(He,d,g)}function Ge(He,lr){var Hr=P(0,2);He.initializer.transformFlags&32768&&(He=se(He));var Je=He.awaitModifier?ce(He,lr,Hr):p.restoreEnclosingLabel(e.visitEachChild(He,w,g),lr);return M(Hr),Je}function se(He){var lr=e.skipParentheses(He.initializer);if(e.isVariableDeclarationList(lr)||e.isAssignmentPattern(lr)){var Hr=void 0,Je=void 0,Sr=p.createTempVariable(void 0),Yr=[e.createForOfBindingStatement(p,lr,Sr)];return e.isBlock(He.statement)?(e.addRange(Yr,He.statement.statements),Hr=He.statement,Je=He.statement.statements):He.statement&&(e.append(Yr,He.statement),Hr=He.statement,Je=He.statement),p.updateForOfStatement(He,He.awaitModifier,e.setTextRange(p.createVariableDeclarationList([e.setTextRange(p.createVariableDeclaration(Sr),He.initializer)],1),He.initializer),He.expression,e.setTextRange(p.createBlock(e.setTextRange(p.createNodeArray(Yr),Je),!0),Hr))}return He}function xe(He,lr){var Hr=e.createForOfBindingStatement(p,He.initializer,lr),Je,Sr,Yr=[e.visitNode(Hr,w,e.isStatement)],ot=e.visitIterationBody(He.statement,w,g);return e.isBlock(ot)?(e.addRange(Yr,ot.statements),Je=ot,Sr=ot.statements):Yr.push(ot),e.setEmitFlags(e.setTextRange(p.createBlock(e.setTextRange(p.createNodeArray(Yr),Sr),!0),Je),432)}function Re(He){return K&1?p.createYieldExpression(void 0,I().createAwaitHelper(He)):p.createAwaitExpression(He)}function ce(He,lr,Hr){var Je=e.visitNode(He.expression,w,e.isExpression),Sr=e.isIdentifier(Je)?p.getGeneratedNameForNode(Je):p.createTempVariable(void 0),Yr=e.isIdentifier(Je)?p.getGeneratedNameForNode(Sr):p.createTempVariable(void 0),ot=p.createUniqueName("e"),_t=p.getGeneratedNameForNode(ot),kt=p.createTempVariable(void 0),Yt=e.setTextRange(I().createAsyncValuesHelper(Je),He.expression),vn=p.createCallExpression(p.createPropertyAccessExpression(Sr,"next"),void 0,[]),Mn=p.createPropertyAccessExpression(Yr,"done"),qn=p.createPropertyAccessExpression(Yr,"value"),nr=p.createFunctionCallCall(kt,Sr,[]);m(ot),m(kt);var Zr=Hr&2?p.inlineExpressions([p.createAssignment(ot,p.createVoidZero()),Yt]):Yt,ir=e.setEmitFlags(e.setTextRange(p.createForStatement(e.setEmitFlags(e.setTextRange(p.createVariableDeclarationList([e.setTextRange(p.createVariableDeclaration(Sr,void 0,void 0,Zr),He.expression),p.createVariableDeclaration(Yr)]),He.expression),2097152),p.createComma(p.createAssignment(Yr,Re(vn)),p.createLogicalNot(Mn)),void 0,xe(He,qn)),He),256);return p.createTryStatement(p.createBlock([p.restoreEnclosingLabel(ir,lr)]),p.createCatchClause(p.createVariableDeclaration(_t),e.setEmitFlags(p.createBlock([p.createExpressionStatement(p.createAssignment(ot,p.createObjectLiteralExpression([p.createPropertyAssignment("error",_t)])))]),1)),p.createBlock([p.createTryStatement(p.createBlock([e.setEmitFlags(p.createIfStatement(p.createLogicalAnd(p.createLogicalAnd(Yr,p.createLogicalNot(Mn)),p.createAssignment(kt,p.createPropertyAccessExpression(Sr,"return"))),p.createExpressionStatement(Re(nr))),1)]),void 0,e.setEmitFlags(p.createBlock([e.setEmitFlags(p.createIfStatement(ot,p.createThrowStatement(p.createPropertyAccessExpression(ot,"error"))),1)]),1))]))}function Ue(He){return He.transformFlags&32768?p.updateParameterDeclaration(He,void 0,void 0,He.dotDotDotToken,p.getGeneratedNameForNode(He),void 0,void 0,e.visitNode(He.initializer,w,e.isExpression)):e.visitEachChild(He,w,g)}function We(He){var lr=K;K=0;var Hr=p.updateConstructorDeclaration(He,void 0,He.modifiers,e.visitParameterList(He.parameters,w,g),xr(He));return K=lr,Hr}function Ne(He){var lr=K;K=0;var Hr=p.updateGetAccessorDeclaration(He,void 0,He.modifiers,e.visitNode(He.name,w,e.isPropertyName),e.visitParameterList(He.parameters,w,g),void 0,xr(He));return K=lr,Hr}function ve(He){var lr=K;K=0;var Hr=p.updateSetAccessorDeclaration(He,void 0,He.modifiers,e.visitNode(He.name,w,e.isPropertyName),e.visitParameterList(He.parameters,w,g),xr(He));return K=lr,Hr}function Ve(He){var lr=K;K=e.getFunctionFlags(He);var Hr=p.updateMethodDeclaration(He,void 0,K&1?e.visitNodes(He.modifiers,B,e.isModifier):He.modifiers,K&2?void 0:He.asteriskToken,e.visitNode(He.name,w,e.isPropertyName),e.visitNode(void 0,w,e.isToken),void 0,e.visitParameterList(He.parameters,w,g),void 0,K&2&&K&1?ur(He):xr(He));return K=lr,Hr}function gr(He){var lr=K;K=e.getFunctionFlags(He);var Hr=p.updateFunctionDeclaration(He,void 0,K&1?e.visitNodes(He.modifiers,B,e.isModifier):He.modifiers,K&2?void 0:He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,w,g),void 0,K&2&&K&1?ur(He):xr(He));return K=lr,Hr}function Er(He){var lr=K;K=e.getFunctionFlags(He);var Hr=p.updateArrowFunction(He,He.modifiers,void 0,e.visitParameterList(He.parameters,w,g),void 0,He.equalsGreaterThanToken,xr(He));return K=lr,Hr}function Nr(He){var lr=K;K=e.getFunctionFlags(He);var Hr=p.updateFunctionExpression(He,K&1?e.visitNodes(He.modifiers,B,e.isModifier):He.modifiers,K&2?void 0:He.asteriskToken,He.name,void 0,e.visitParameterList(He.parameters,w,g),void 0,K&2&&K&1?ur(He):xr(He));return K=lr,Hr}function ur(He){V();var lr=[],Hr=p.copyPrologue(He.body.statements,lr,!1,w);sr(lr,He);var Je=ie,Sr=Z;ie=new e.Set,Z=!1;var Yr=p.createReturnStatement(I().createAsyncGeneratorHelper(p.createFunctionExpression(void 0,p.createToken(41),He.name&&p.getGeneratedNameForNode(He.name),void 0,[],void 0,p.updateBlock(He.body,e.visitLexicalEnvironment(He.body.statements,w,g,Hr))),!!(X&1))),ot=te>=2&&y.getNodeCheckFlags(He)&6144;if(ot){i();var _t=e.createSuperAccessVariableStatement(p,y,He,ie);re[e.getNodeId(_t)]=!0,e.insertStatementsAfterStandardPrologue(lr,[_t])}lr.push(Yr),e.insertStatementsAfterStandardPrologue(lr,L());var kt=p.updateBlock(He.body,lr);return ot&&Z&&(y.getNodeCheckFlags(He)&4096?e.addEmitHelper(kt,e.advancedAsyncSuperHelper):y.getNodeCheckFlags(He)&2048&&e.addEmitHelper(kt,e.asyncSuperHelper)),ie=Je,Z=Sr,kt}function xr(He){var lr;V();var Hr=0,Je=[],Sr=(lr=e.visitNode(He.body,w,e.isConciseBody))!==null&&lr!==void 0?lr:p.createBlock([]);e.isBlock(Sr)&&(Hr=p.copyPrologue(Sr.statements,Je,!1,w)),e.addRange(Je,sr(void 0,He));var Yr=L();if(Hr>0||e.some(Je)||e.some(Yr)){var ot=p.converters.convertToFunctionBlock(Sr,!0);return e.insertStatementsAfterStandardPrologue(Je,Yr),e.addRange(Je,ot.statements.slice(Hr)),p.updateBlock(ot,e.setTextRange(p.createNodeArray(Je),ot.statements))}return Sr}function sr(He,lr){for(var Hr=0,Je=lr.parameters;Hr<Je.length;Hr++){var Sr=Je[Hr];if(Sr.transformFlags&32768){var Yr=p.getGeneratedNameForNode(Sr),ot=e.flattenDestructuringBinding(Sr,w,g,1,Yr,!1,!0);if(e.some(ot)){var _t=p.createVariableStatement(void 0,p.createVariableDeclarationList(ot));e.setEmitFlags(_t,1048576),He=e.append(He,_t)}}}return He}function i(){(C&1)===0&&(C|=1,g.enableSubstitution(207),g.enableSubstitution(205),g.enableSubstitution(206),g.enableEmitNotification(256),g.enableEmitNotification(168),g.enableEmitNotification(171),g.enableEmitNotification(172),g.enableEmitNotification(170),g.enableEmitNotification(236))}function Mr(He,lr,Hr){if(C&1&&Cr(lr)){var Je=y.getNodeCheckFlags(lr)&6144;if(Je!==k){var Sr=k;k=Je,E(He,lr,Hr),k=Sr;return}}else if(C&&re[e.getNodeId(lr)]){var Sr=k;k=0,E(He,lr,Hr),k=Sr;return}E(He,lr,Hr)}function fr(He,lr){return lr=F(He,lr),He===1&&k?Ar(lr):lr}function Ar(He){switch(He.kind){case 205:return de(He);case 206:return we(He);case 207:return qe(He)}return He}function de(He){return He.expression.kind===106?e.setTextRange(p.createPropertyAccessExpression(p.createUniqueName("_super",48),He.name),He):He}function we(He){return He.expression.kind===106?kr(He.argumentExpression,He):He}function qe(He){var lr=He.expression;if(e.isSuperProperty(lr)){var Hr=e.isPropertyAccessExpression(lr)?de(lr):we(lr);return p.createCallExpression(p.createPropertyAccessExpression(Hr,"call"),void 0,Bt([p.createThis()],He.arguments,!0))}return He}function Cr(He){var lr=He.kind;return lr===256||lr===170||lr===168||lr===171||lr===172}function kr(He,lr){return k&4096?e.setTextRange(p.createPropertyAccessExpression(p.createCallExpression(p.createIdentifier("_superIndex"),void 0,[He]),"value"),lr):e.setTextRange(p.createCallExpression(p.createIdentifier("_superIndex"),void 0,[He]),lr)}}e.transformES2018=u})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.factory;return e.chainBundle(c,g);function g(V){return V.isDeclarationFile?V:e.visitEachChild(V,p,c)}function p(V){if((V.transformFlags&32)===0)return V;switch(V.kind){case 291:return I(V);default:return e.visitEachChild(V,p,c)}}function I(V){return V.variableDeclaration?e.visitEachChild(V,p,c):u.updateCatchClause(V,u.createVariableDeclaration(u.createTempVariable(void 0)),e.visitNode(V.block,p,e.isBlock))}}e.transformES2019=n})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.factory,g=c.hoistVariableDeclaration;return e.chainBundle(c,p);function p(C){return C.isDeclarationFile?C:e.visitEachChild(C,I,c)}function I(C){if((C.transformFlags&16)===0)return C;switch(C.kind){case 207:{var K=y(C,!1);return e.Debug.assertNotNode(K,e.isSyntheticReference),K}case 205:case 206:if(e.isOptionalChain(C)){var K=te(C,!1,!1);return e.Debug.assertNotNode(K,e.isSyntheticReference),K}return e.visitEachChild(C,I,c);case 220:return C.operatorToken.kind===60?F(C):e.visitEachChild(C,I,c);case 214:return $(C);default:return e.visitEachChild(C,I,c)}}function V(C){e.Debug.assertNotNode(C,e.isNonNullChain);for(var K=[C];!C.questionDotToken&&!e.isTaggedTemplateExpression(C);)C=e.cast(e.skipPartiallyEmittedExpressions(C.expression),e.isOptionalChain),e.Debug.assertNotNode(C,e.isNonNullChain),K.unshift(C);return{expression:C.expression,chain:K}}function L(C,K,k){var X=j(C.expression,K,k);return e.isSyntheticReference(X)?u.createSyntheticReferenceExpression(u.updateParenthesizedExpression(C,X.expression),X.thisArg):u.updateParenthesizedExpression(C,X)}function m(C,K,k){if(e.isOptionalChain(C))return te(C,K,k);var X=e.visitNode(C.expression,I,e.isExpression);e.Debug.assertNotNode(X,e.isSyntheticReference);var O;return K&&(e.isSimpleCopiableExpression(X)?O=X:(O=u.createTempVariable(g),X=u.createAssignment(O,X))),X=C.kind===205?u.updatePropertyAccessExpression(C,X,e.visitNode(C.name,I,e.isIdentifier)):u.updateElementAccessExpression(C,X,e.visitNode(C.argumentExpression,I,e.isExpression)),O?u.createSyntheticReferenceExpression(X,O):X}function y(C,K){if(e.isOptionalChain(C))return te(C,K,!1);if(e.isParenthesizedExpression(C.expression)&&e.isOptionalChain(e.skipParentheses(C.expression))){var k=L(C.expression,!0,!1),X=e.visitNodes(C.arguments,I,e.isExpression);return e.isSyntheticReference(k)?e.setTextRange(u.createFunctionCallCall(k.expression,k.thisArg,X),C):u.updateCallExpression(C,k,void 0,X)}return e.visitEachChild(C,I,c)}function j(C,K,k){switch(C.kind){case 211:return L(C,K,k);case 205:case 206:return m(C,K,k);case 207:return y(C,K);default:return e.visitNode(C,I,e.isExpression)}}function te(C,K,k){var X=V(C),O=X.expression,x=X.chain,ie=j(O,e.isCallChain(x[0]),!1),Z=e.isSyntheticReference(ie)?ie.thisArg:void 0,re=e.isSyntheticReference(ie)?ie.expression:ie,q=re;e.isSimpleCopiableExpression(re)||(q=u.createTempVariable(g),re=u.createAssignment(q,re));for(var P=q,M,Q=0;Q<x.length;Q++){var H=x[Q];switch(H.kind){case 205:case 206:Q===x.length-1&&K&&(e.isSimpleCopiableExpression(P)?M=P:(M=u.createTempVariable(g),P=u.createAssignment(M,P))),P=H.kind===205?u.createPropertyAccessExpression(P,e.visitNode(H.name,I,e.isIdentifier)):u.createElementAccessExpression(P,e.visitNode(H.argumentExpression,I,e.isExpression));break;case 207:Q===0&&Z?P=u.createFunctionCallCall(P,Z.kind===106?u.createThis():Z,e.visitNodes(H.arguments,I,e.isExpression)):P=u.createCallExpression(P,void 0,e.visitNodes(H.arguments,I,e.isExpression));break}e.setOriginalNode(P,H)}var w=k?u.createConditionalExpression(E(re,q,!0),void 0,u.createTrue(),void 0,u.createDeleteExpression(P)):u.createConditionalExpression(E(re,q,!0),void 0,u.createVoidZero(),void 0,P);return e.setTextRange(w,C),M?u.createSyntheticReferenceExpression(w,M):w}function E(C,K,k){return u.createBinaryExpression(u.createBinaryExpression(C,u.createToken(k?36:37),u.createNull()),u.createToken(k?56:55),u.createBinaryExpression(K,u.createToken(k?36:37),u.createVoidZero()))}function F(C){var K=e.visitNode(C.left,I,e.isExpression),k=K;return e.isSimpleCopiableExpression(K)||(k=u.createTempVariable(g),K=u.createAssignment(k,K)),e.setTextRange(u.createConditionalExpression(E(K,k),void 0,k,void 0,e.visitNode(C.right,I,e.isExpression)),C)}function $(C){return e.isOptionalChain(e.skipParentheses(C.expression))?e.setOriginalNode(j(C.expression,!1,!0),C):u.updateDeleteExpression(C,e.visitNode(C.expression,I,e.isExpression))}}e.transformES2020=n})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.hoistVariableDeclaration,g=c.factory;return e.chainBundle(c,p);function p(L){return L.isDeclarationFile?L:e.visitEachChild(L,I,c)}function I(L){if((L.transformFlags&8)===0)return L;switch(L.kind){case 220:var m=L;if(e.isLogicalOrCoalescingAssignmentExpression(m))return V(m);default:return e.visitEachChild(L,I,c)}}function V(L){var m=L.operatorToken,y=e.getNonAssignmentOperatorForCompoundAssignment(m.kind),j=e.skipParentheses(e.visitNode(L.left,I,e.isLeftHandSideExpression)),te=j,E=e.skipParentheses(e.visitNode(L.right,I,e.isExpression));if(e.isAccessExpression(j)){var F=e.isSimpleCopiableExpression(j.expression),$=F?j.expression:g.createTempVariable(u),C=F?j.expression:g.createAssignment($,j.expression);if(e.isPropertyAccessExpression(j))te=g.createPropertyAccessExpression($,j.name),j=g.createPropertyAccessExpression(C,j.name);else{var K=e.isSimpleCopiableExpression(j.argumentExpression),k=K?j.argumentExpression:g.createTempVariable(u);te=g.createElementAccessExpression($,k),j=g.createElementAccessExpression(C,K?j.argumentExpression:g.createAssignment(k,j.argumentExpression))}}return g.createBinaryExpression(j,y,g.createParenthesizedExpression(g.createAssignment(te,E)))}}e.transformES2021=n})(mr||(mr={}));var mr;(function(e){function n(c){return e.chainBundle(c,u);function u(p){return p.isDeclarationFile?p:e.visitEachChild(p,g,c)}function g(p){if((p.transformFlags&4)===0)return p;switch(p.kind){default:return e.visitEachChild(p,g,c)}}}e.transformESNext=n})(mr||(mr={}));var mr;(function(e){function n(u){var g=u.factory,p=u.getEmitHelperFactory,I=u.getCompilerOptions(),V,L;return e.chainBundle(u,F);function m(){if(L.filenameDeclaration)return L.filenameDeclaration.name;var D=g.createVariableDeclaration(g.createUniqueName("_jsxFileName",48),void 0,void 0,g.createStringLiteral(V.fileName));return L.filenameDeclaration=D,L.filenameDeclaration.name}function y(D){return I.jsx===5?"jsxDEV":D?"jsxs":"jsx"}function j(D){var be=y(D);return E(be)}function te(){return E("Fragment")}function E(D){var be,ne,J=D==="createElement"?L.importSpecifier:e.getJSXRuntimeImport(L.importSpecifier,I),le=(ne=(be=L.utilizedImplicitRuntimeImports)===null||be===void 0?void 0:be.get(J))===null||ne===void 0?void 0:ne.get(D);if(le)return le.name;L.utilizedImplicitRuntimeImports||(L.utilizedImplicitRuntimeImports=e.createMap());var Te=L.utilizedImplicitRuntimeImports.get(J);Te||(Te=e.createMap(),L.utilizedImplicitRuntimeImports.set(J,Te));var Me=g.createUniqueName("_".concat(D),112),Ke=g.createImportSpecifier(!1,g.createIdentifier(D),Me);return Me.generatedImportReference=Ke,Te.set(D,Ke),Me}function F(D){if(D.isDeclarationFile)return D;V=D,L={},L.importSpecifier=e.getJSXImplicitImportBase(I,D);var be=e.visitEachChild(D,$,u);e.addEmitHelpers(be,u.readEmitHelpers());var ne=be.statements;if(L.filenameDeclaration&&(ne=e.insertStatementAfterCustomPrologue(ne.slice(),g.createVariableStatement(void 0,g.createVariableDeclarationList([L.filenameDeclaration],2)))),L.utilizedImplicitRuntimeImports)for(var J=0,le=e.arrayFrom(L.utilizedImplicitRuntimeImports.entries());J<le.length;J++){var Te=le[J],Me=Te[0],Ke=Te[1];if(e.isExternalModule(D)){var Ae=g.createImportDeclaration(void 0,void 0,g.createImportClause(!1,void 0,g.createNamedImports(e.arrayFrom(Ke.values()))),g.createStringLiteral(Me),void 0);e.setParentRecursive(Ae,!1),ne=e.insertStatementAfterCustomPrologue(ne.slice(),Ae)}else if(e.isExternalOrCommonJsModule(D)){var Ge=g.createVariableStatement(void 0,g.createVariableDeclarationList([g.createVariableDeclaration(g.createObjectBindingPattern(e.map(e.arrayFrom(Ke.values()),function(se){return g.createBindingElement(void 0,se.propertyName,se.name)})),void 0,void 0,g.createCallExpression(g.createIdentifier("require"),void 0,[g.createStringLiteral(Me)]))],2));e.setParentRecursive(Ge,!1),ne=e.insertStatementAfterCustomPrologue(ne.slice(),Ge)}}return ne!==be.statements&&(be=g.updateSourceFile(be,ne)),L=void 0,be}function $(D){return D.transformFlags&2?C(D):D}function C(D){switch(D.kind){case 277:return O(D,!1);case 278:return x(D,!1);case 281:return ie(D,!1);case 287:return ae(D);default:return e.visitEachChild(D,$,u)}}function K(D){switch(D.kind){case 11:return b(D);case 287:return ae(D);case 277:return O(D,!0);case 278:return x(D,!0);case 281:return ie(D,!0);default:return e.Debug.failBadSyntaxKind(D)}}function k(D){for(var be=!1,ne=0,J=D.attributes.properties;ne<J.length;ne++){var le=J[ne];if(e.isJsxSpreadAttribute(le))be=!0;else if(be&&e.isJsxAttribute(le)&&le.name.escapedText==="key")return!0}return!1}function X(D){return L.importSpecifier===void 0||k(D)}function O(D,be){var ne=X(D.openingElement)?M:q;return ne(D.openingElement,D.children,be,D)}function x(D,be){var ne=X(D)?M:q;return ne(D,void 0,be,D)}function ie(D,be){var ne=L.importSpecifier===void 0?H:Q;return ne(D.openingFragment,D.children,be,D)}function Z(D){var be=re(D);return be&&g.createObjectLiteralExpression([be])}function re(D){var be=e.getSemanticJsxChildren(D);if(e.length(be)===1&&!be[0].dotDotDotToken){var ne=K(be[0]);return ne&&g.createPropertyAssignment("children",ne)}var J=e.mapDefined(D,K);return e.length(J)?g.createPropertyAssignment("children",g.createArrayLiteralExpression(J)):void 0}function q(D,be,ne,J){var le=_e(D),Te=be&&be.length?re(be):void 0,Me=e.find(D.attributes.properties,function(Ge){return!!Ge.name&&e.isIdentifier(Ge.name)&&Ge.name.escapedText==="key"}),Ke=Me?e.filter(D.attributes.properties,function(Ge){return Ge!==Me}):D.attributes.properties,Ae=e.length(Ke)?d(Ke,Te):g.createObjectLiteralExpression(Te?[Te]:e.emptyArray);return P(le,Ae,Me,be||e.emptyArray,ne,J)}function P(D,be,ne,J,le,Te){var Me,Ke=e.getSemanticJsxChildren(J),Ae=e.length(Ke)>1||!!(!((Me=Ke[0])===null||Me===void 0)&&Me.dotDotDotToken),Ge=[D,be,ne?R(ne.initializer):g.createVoidZero()];if(I.jsx===5){var se=e.getOriginalNode(V);if(se&&e.isSourceFile(se)){Ge.push(Ae?g.createTrue():g.createFalse());var xe=e.getLineAndCharacterOfPosition(se,Te.pos);Ge.push(g.createObjectLiteralExpression([g.createPropertyAssignment("fileName",m()),g.createPropertyAssignment("lineNumber",g.createNumericLiteral(xe.line+1)),g.createPropertyAssignment("columnNumber",g.createNumericLiteral(xe.character+1))])),Ge.push(g.createThis())}}var Re=e.setTextRange(g.createCallExpression(j(Ae),void 0,Ge),Te);return le&&e.startOnNewLine(Re),Re}function M(D,be,ne,J){var le=_e(D),Te=D.attributes.properties,Me=e.length(Te)?d(Te):g.createNull(),Ke=L.importSpecifier===void 0?e.createJsxFactoryExpression(g,u.getEmitResolver().getJsxFactoryEntity(V),I.reactNamespace,D):E("createElement"),Ae=e.createExpressionForJsxElement(g,Ke,le,Me,e.mapDefined(be,K),J);return ne&&e.startOnNewLine(Ae),Ae}function Q(D,be,ne,J){var le;if(be&&be.length){var Te=Z(be);Te&&(le=Te)}return P(te(),le||g.createObjectLiteralExpression([]),void 0,be,ne,J)}function H(D,be,ne,J){var le=e.createExpressionForJsxFragment(g,u.getEmitResolver().getJsxFactoryEntity(V),u.getEmitResolver().getJsxFragmentFactoryEntity(V),I.reactNamespace,e.mapDefined(be,K),D,J);return ne&&e.startOnNewLine(le),le}function w(D){return g.createSpreadAssignment(e.visitNode(D.expression,$,e.isExpression))}function d(D,be){var ne=e.getEmitScriptTarget(I);return ne&&ne>=5?g.createObjectLiteralExpression(B(D,be)):T(D,be)}function B(D,be){var ne=e.flatten(e.spanMap(D,e.isJsxSpreadAttribute,function(J,le){return e.map(J,function(Te){return le?w(Te):h(Te)})}));return be&&ne.push(be),ne}function T(D,be){var ne=e.flatten(e.spanMap(D,e.isJsxSpreadAttribute,function(J,le){return le?e.map(J,_):g.createObjectLiteralExpression(e.map(J,h))}));return e.isJsxSpreadAttribute(D[0])&&ne.unshift(g.createObjectLiteralExpression()),be&&ne.push(g.createObjectLiteralExpression([be])),e.singleOrUndefined(ne)||p().createAssignHelper(ne)}function _(D){return e.visitNode(D.expression,$,e.isExpression)}function h(D){var be=Se(D),ne=R(D.initializer);return g.createPropertyAssignment(be,ne)}function R(D){if(D===void 0)return g.createTrue();if(D.kind===10){var be=D.singleQuote!==void 0?D.singleQuote:!e.isStringDoubleQuoted(D,V),ne=g.createStringLiteral(A(D.text)||D.text,be);return e.setTextRange(ne,D)}else return D.kind===287?D.expression===void 0?g.createTrue():e.visitNode(D.expression,$,e.isExpression):e.Debug.failBadSyntaxKind(D)}function b(D){var be=G(D.text);return be===void 0?void 0:g.createStringLiteral(be)}function G(D){for(var be,ne=0,J=-1,le=0;le<D.length;le++){var Te=D.charCodeAt(le);e.isLineBreak(Te)?(ne!==-1&&J!==-1&&(be=Y(be,D.substr(ne,J-ne+1))),ne=-1):e.isWhiteSpaceSingleLine(Te)||(J=le,ne===-1&&(ne=le))}return ne!==-1?Y(be,D.substr(ne)):be}function Y(D,be){var ne=pe(be);return D===void 0?ne:D+" "+ne}function pe(D){return D.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(be,ne,J,le,Te,Me,Ke){if(Te)return e.utf16EncodeAsString(parseInt(Te,10));if(Me)return e.utf16EncodeAsString(parseInt(Me,16));var Ae=c.get(Ke);return Ae?e.utf16EncodeAsString(Ae):be})}function A(D){var be=pe(D);return be===D?void 0:be}function _e(D){if(D.kind===277)return _e(D.openingElement);var be=D.tagName;return e.isIdentifier(be)&&e.isIntrinsicJsxName(be.escapedText)?g.createStringLiteral(e.idText(be)):e.createExpressionFromEntityName(g,be)}function Se(D){var be=D.name,ne=e.idText(be);return/^[A-Za-z_]\w*$/.test(ne)?be:g.createStringLiteral(ne)}function ae(D){var be=e.visitNode(D.expression,$,e.isExpression);return D.dotDotDotToken?g.createSpreadElement(be):be}}e.transformJsx=n;var c=new e.Map(e.getEntries({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}))})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.factory,g=c.hoistVariableDeclaration;return e.chainBundle(c,p);function p(y){return y.isDeclarationFile?y:e.visitEachChild(y,I,c)}function I(y){if((y.transformFlags&256)===0)return y;switch(y.kind){case 220:return V(y);default:return e.visitEachChild(y,I,c)}}function V(y){switch(y.operatorToken.kind){case 67:return L(y);case 42:return m(y);default:return e.visitEachChild(y,I,c)}}function L(y){var j,te,E=e.visitNode(y.left,I,e.isExpression),F=e.visitNode(y.right,I,e.isExpression);if(e.isElementAccessExpression(E)){var $=u.createTempVariable(g),C=u.createTempVariable(g);j=e.setTextRange(u.createElementAccessExpression(e.setTextRange(u.createAssignment($,E.expression),E.expression),e.setTextRange(u.createAssignment(C,E.argumentExpression),E.argumentExpression)),E),te=e.setTextRange(u.createElementAccessExpression($,C),E)}else if(e.isPropertyAccessExpression(E)){var $=u.createTempVariable(g);j=e.setTextRange(u.createPropertyAccessExpression(e.setTextRange(u.createAssignment($,E.expression),E.expression),E.name),E),te=e.setTextRange(u.createPropertyAccessExpression($,E.name),E)}else j=E,te=E;return e.setTextRange(u.createAssignment(j,e.setTextRange(u.createGlobalMethodCall("Math","pow",[te,F]),y)),y)}function m(y){var j=e.visitNode(y.left,I,e.isExpression),te=e.visitNode(y.right,I,e.isExpression);return e.setTextRange(u.createGlobalMethodCall("Math","pow",[j,te]),y)}}e.transformES2016=n})(mr||(mr={}));var mr;(function(e){var n;(function(m){m[m.CapturedThis=1]="CapturedThis",m[m.BlockScopedBindings=2]="BlockScopedBindings"})(n||(n={}));var c;(function(m){m[m.Body=1]="Body",m[m.Initializer=2]="Initializer"})(c||(c={}));var u;(function(m){m[m.ToOriginal=0]="ToOriginal",m[m.ToOutParameter=1]="ToOutParameter"})(u||(u={}));var g;(function(m){m[m.Break=2]="Break",m[m.Continue=4]="Continue",m[m.Return=8]="Return"})(g||(g={}));var p;(function(m){m[m.None=0]="None",m[m.Function=1]="Function",m[m.ArrowFunction=2]="ArrowFunction",m[m.AsyncFunctionBody=4]="AsyncFunctionBody",m[m.NonStaticClassElement=8]="NonStaticClassElement",m[m.CapturesThis=16]="CapturesThis",m[m.ExportedVariableStatement=32]="ExportedVariableStatement",m[m.TopLevel=64]="TopLevel",m[m.Block=128]="Block",m[m.IterationStatement=256]="IterationStatement",m[m.IterationStatementBlock=512]="IterationStatementBlock",m[m.IterationContainer=1024]="IterationContainer",m[m.ForStatement=2048]="ForStatement",m[m.ForInOrForOfStatement=4096]="ForInOrForOfStatement",m[m.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",m[m.StaticInitializer=16384]="StaticInitializer",m[m.AncestorFactsMask=32767]="AncestorFactsMask",m[m.BlockScopeIncludes=0]="BlockScopeIncludes",m[m.BlockScopeExcludes=7104]="BlockScopeExcludes",m[m.SourceFileIncludes=64]="SourceFileIncludes",m[m.SourceFileExcludes=8064]="SourceFileExcludes",m[m.FunctionIncludes=65]="FunctionIncludes",m[m.FunctionExcludes=32670]="FunctionExcludes",m[m.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",m[m.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",m[m.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",m[m.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",m[m.ConstructorIncludes=73]="ConstructorIncludes",m[m.ConstructorExcludes=32662]="ConstructorExcludes",m[m.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",m[m.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",m[m.ForStatementIncludes=3328]="ForStatementIncludes",m[m.ForStatementExcludes=5056]="ForStatementExcludes",m[m.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",m[m.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",m[m.BlockIncludes=128]="BlockIncludes",m[m.BlockExcludes=6976]="BlockExcludes",m[m.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",m[m.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",m[m.StaticInitializerIncludes=16449]="StaticInitializerIncludes",m[m.StaticInitializerExcludes=32670]="StaticInitializerExcludes",m[m.NewTarget=32768]="NewTarget",m[m.CapturedLexicalThis=65536]="CapturedLexicalThis",m[m.SubtreeFactsMask=-32768]="SubtreeFactsMask",m[m.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",m[m.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"})(p||(p={}));var I;(function(m){m[m.None=0]="None",m[m.UnpackedSpread=1]="UnpackedSpread",m[m.PackedSpread=2]="PackedSpread"})(I||(I={}));function V(m,y){return{kind:m,expression:y}}function L(m){var y=m.factory,j=m.getEmitHelperFactory,te=m.startLexicalEnvironment,E=m.resumeLexicalEnvironment,F=m.endLexicalEnvironment,$=m.hoistVariableDeclaration,C=m.getCompilerOptions(),K=m.getEmitResolver(),k=m.onSubstituteNode,X=m.onEmitNode;m.onEmitNode=Ti,m.onSubstituteNode=ko;var O,x,ie,Z;function re(Fe){Z=e.append(Z,y.createVariableDeclaration(Fe))}var q,P;return e.chainBundle(m,M);function M(Fe){if(Fe.isDeclarationFile)return Fe;O=Fe,x=Fe.text;var Gr=G(Fe);return e.addEmitHelpers(Gr,m.readEmitHelpers()),O=void 0,x=void 0,Z=void 0,ie=0,Gr}function Q(Fe,Gr){var ht=ie;return ie=(ie&~Fe|Gr)&32767,ht}function H(Fe,Gr,ht){ie=(ie&~Gr|ht)&-32768|Fe}function w(Fe){return(ie&8192)!==0&&Fe.kind===246&&!Fe.expression}function d(Fe){return Fe.transformFlags&2097152&&(e.isReturnStatement(Fe)||e.isIfStatement(Fe)||e.isWithStatement(Fe)||e.isSwitchStatement(Fe)||e.isCaseBlock(Fe)||e.isCaseClause(Fe)||e.isDefaultClause(Fe)||e.isTryStatement(Fe)||e.isCatchClause(Fe)||e.isLabeledStatement(Fe)||e.isIterationStatement(Fe,!1)||e.isBlock(Fe))}function B(Fe){return(Fe.transformFlags&512)!==0||q!==void 0||ie&8192&&d(Fe)||e.isIterationStatement(Fe,!1)&&Or(Fe)||(e.getEmitFlags(Fe)&33554432)!==0}function T(Fe){return B(Fe)?b(Fe,!1):Fe}function _(Fe){return B(Fe)?b(Fe,!0):Fe}function h(Fe){if(B(Fe)){var Gr=e.getOriginalNode(Fe);if(e.isPropertyDeclaration(Gr)&&e.hasStaticModifier(Gr)){var ht=Q(32670,16449),ye=b(Fe,!1);return H(ht,98304,0),ye}return b(Fe,!1)}return Fe}function R(Fe){return Fe.kind===106?Do(!0):T(Fe)}function b(Fe,Gr){switch(Fe.kind){case 124:return;case 256:return ne(Fe);case 225:return J(Fe);case 163:return Ue(Fe);case 255:return qe(Fe);case 213:return de(Fe);case 212:return we(Fe);case 253:return Mn(Fe);case 79:return D(Fe);case 254:return _t(Fe);case 248:return Y(Fe);case 262:return pe(Fe);case 234:return He(Fe,!1);case 245:case 244:return be(Fe);case 249:return Zr(Fe);case 239:case 240:return rr(Fe,void 0);case 241:return pr(Fe,void 0);case 242:return Ce(Fe,void 0);case 243:return cr(Fe,void 0);case 237:return lr(Fe);case 204:return dr(Fe);case 291:return ft(Fe);case 295:return et(Fe);case 161:return hn(Fe);case 203:return Ra(Fe);case 207:return Ki(Fe);case 208:return ao(Fe);case 211:return Hr(Fe,Gr);case 220:return Je(Fe,Gr);case 349:return Sr(Fe,Gr);case 14:case 15:case 16:case 17:return Eo(Fe);case 10:return lo(Fe);case 8:return So(Fe);case 209:return ts(Fe);case 222:return ja(Fe);case 223:return Qn(Fe);case 224:return Ni(Fe);case 106:return Do(!1);case 108:return Se(Fe);case 230:return Pa(Fe);case 168:return Pt(Fe);case 171:case 172:return Et(Fe);case 236:return ot(Fe);case 246:return _e(Fe);case 216:return ae(Fe);default:return e.visitEachChild(Fe,T,m)}}function G(Fe){var Gr=Q(8064,64),ht=[],ye=[];te();var oe=y.copyPrologue(Fe.statements,ht,!1,T);return e.addRange(ye,e.visitNodes(Fe.statements,T,e.isStatement,oe)),Z&&ye.push(y.createVariableStatement(void 0,y.createVariableDeclarationList(Z))),y.mergeLexicalEnvironment(ht,F()),Nr(ht,Fe),H(Gr,0,0),y.updateSourceFile(Fe,e.setTextRange(y.createNodeArray(e.concatenate(ht,ye)),Fe.statements))}function Y(Fe){if(q!==void 0){var Gr=q.allowedNonLabeledJumps;q.allowedNonLabeledJumps|=2;var ht=e.visitEachChild(Fe,T,m);return q.allowedNonLabeledJumps=Gr,ht}return e.visitEachChild(Fe,T,m)}function pe(Fe){var Gr=Q(7104,0),ht=e.visitEachChild(Fe,T,m);return H(Gr,0,0),ht}function A(Fe){return e.setOriginalNode(y.createReturnStatement(y.createUniqueName("_this",48)),Fe)}function _e(Fe){return q?(q.nonLocalJumps|=8,w(Fe)&&(Fe=A(Fe)),y.createReturnStatement(y.createObjectLiteralExpression([y.createPropertyAssignment(y.createIdentifier("value"),Fe.expression?e.visitNode(Fe.expression,T,e.isExpression):y.createVoidZero())]))):w(Fe)?A(Fe):e.visitEachChild(Fe,T,m)}function Se(Fe){return ie&2&&!(ie&16384)&&(ie|=65536),q?ie&2?(q.containsLexicalThis=!0,Fe):q.thisName||(q.thisName=y.createUniqueName("this")):Fe}function ae(Fe){return e.visitEachChild(Fe,_,m)}function D(Fe){return q&&K.isArgumentsLocalBinding(Fe)?q.argumentsName||(q.argumentsName=y.createUniqueName("arguments")):Fe}function be(Fe){if(q){var Gr=Fe.kind===245?2:4,ht=Fe.label&&q.labels&&q.labels.get(e.idText(Fe.label))||!Fe.label&&q.allowedNonLabeledJumps&Gr;if(!ht){var ye=void 0,oe=Fe.label;oe?Fe.kind===245?(ye="break-".concat(oe.escapedText),nn(q,!0,e.idText(oe),ye)):(ye="continue-".concat(oe.escapedText),nn(q,!1,e.idText(oe),ye)):Fe.kind===245?(q.nonLocalJumps|=2,ye="break"):(q.nonLocalJumps|=4,ye="continue");var Pe=y.createStringLiteral(ye);if(q.loopOutParameters.length){for(var Ye=q.loopOutParameters,Tr=void 0,tt=0;tt<Ye.length;tt++){var Mt=Ea(Ye[tt],1);tt===0?Tr=Mt:Tr=y.createBinaryExpression(Tr,27,Mt)}Pe=y.createBinaryExpression(Tr,27,Pe)}return y.createReturnStatement(Pe)}}return e.visitEachChild(Fe,T,m)}function ne(Fe){var Gr=y.createVariableDeclaration(y.getLocalName(Fe,!0),void 0,void 0,le(Fe));e.setOriginalNode(Gr,Fe);var ht=[],ye=y.createVariableStatement(void 0,y.createVariableDeclarationList([Gr]));if(e.setOriginalNode(ye,Fe),e.setTextRange(ye,Fe),e.startOnNewLine(ye),ht.push(ye),e.hasSyntacticModifier(Fe,1)){var oe=e.hasSyntacticModifier(Fe,512)?y.createExportDefault(y.getLocalName(Fe)):y.createExternalModuleExport(y.getLocalName(Fe));e.setOriginalNode(oe,ye),ht.push(oe)}var Pe=e.getEmitFlags(Fe);return(Pe&4194304)===0&&(ht.push(y.createEndOfDeclarationMarker(Fe)),e.setEmitFlags(ye,Pe|4194304)),e.singleOrMany(ht)}function J(Fe){return le(Fe)}function le(Fe){Fe.name&&mo();var Gr=e.getClassExtendsHeritageElement(Fe),ht=y.createFunctionExpression(void 0,void 0,void 0,void 0,Gr?[y.createParameterDeclaration(void 0,void 0,void 0,y.createUniqueName("_super",48))]:[],void 0,Te(Fe,Gr));e.setEmitFlags(ht,e.getEmitFlags(Fe)&65536|524288);var ye=y.createPartiallyEmittedExpression(ht);e.setTextRangeEnd(ye,Fe.end),e.setEmitFlags(ye,1536);var oe=y.createPartiallyEmittedExpression(ye);e.setTextRangeEnd(oe,e.skipTrivia(x,Fe.pos)),e.setEmitFlags(oe,1536);var Pe=y.createParenthesizedExpression(y.createCallExpression(oe,void 0,Gr?[e.visitNode(Gr.expression,T,e.isExpression)]:[]));return e.addSyntheticLeadingComment(Pe,3,"* @class "),Pe}function Te(Fe,Gr){var ht=[],ye=y.getInternalName(Fe),oe=e.isIdentifierANonContextualKeyword(ye)?y.getGeneratedNameForNode(ye):ye;te(),Me(ht,Fe,Gr),Ke(ht,Fe,oe,Gr),sr(ht,Fe);var Pe=e.createTokenRange(e.skipTrivia(x,Fe.members.end),19),Ye=y.createPartiallyEmittedExpression(oe);e.setTextRangeEnd(Ye,Pe.end),e.setEmitFlags(Ye,1536);var Tr=y.createReturnStatement(Ye);e.setTextRangePos(Tr,Pe.pos),e.setEmitFlags(Tr,1920),ht.push(Tr),e.insertStatementsAfterStandardPrologue(ht,F());var tt=y.createBlock(e.setTextRange(y.createNodeArray(ht),Fe.members),!0);return e.setEmitFlags(tt,1536),tt}function Me(Fe,Gr,ht){ht&&Fe.push(e.setTextRange(y.createExpressionStatement(j().createExtendsHelper(y.getInternalName(Gr))),ht))}function Ke(Fe,Gr,ht,ye){var oe=q;q=void 0;var Pe=Q(32662,73),Ye=e.getFirstConstructorWithBody(Gr),Tr=Bn(Ye,ye!==void 0),tt=y.createFunctionDeclaration(void 0,void 0,void 0,ht,void 0,Ae(Ye,Tr),void 0,se(Ye,Gr,ye,Tr));e.setTextRange(tt,Ye||Gr),ye&&e.setEmitFlags(tt,8),Fe.push(tt),H(Pe,98304,0),q=oe}function Ae(Fe,Gr){return e.visitParameterList(Fe&&!Gr?Fe.parameters:void 0,T,m)||[]}function Ge(Fe,Gr){var ht=[];E(),y.mergeLexicalEnvironment(ht,F()),Gr&&ht.push(y.createReturnStatement(ce()));var ye=y.createNodeArray(ht);e.setTextRange(ye,Fe.members);var oe=y.createBlock(ye,!0);return e.setTextRange(oe,Fe),e.setEmitFlags(oe,1536),oe}function se(Fe,Gr,ht,ye){var oe=!!ht&&e.skipOuterExpressions(ht.expression).kind!==104;if(!Fe)return Ge(Gr,oe);var Pe=[],Ye=[];E();var Tr=0;ye||(Tr=y.copyStandardPrologue(Fe.body.statements,Pe,!1)),Ne(Ye,Fe),Er(Ye,Fe,ye),ye||(Tr=y.copyCustomPrologue(Fe.body.statements,Ye,Tr,T));var tt;if(ye)tt=ce();else if(oe&&Tr<Fe.body.statements.length){var Mt=Fe.body.statements[Tr];e.isExpressionStatement(Mt)&&e.isSuperCall(Mt.expression)&&(tt=ya(Mt.expression))}if(tt&&(ie|=8192,Tr++),e.addRange(Ye,e.visitNodes(Fe.body.statements,T,e.isStatement,Tr)),y.mergeLexicalEnvironment(Pe,F()),xr(Pe,Fe,!1),oe)if(tt&&Tr===Fe.body.statements.length&&!(Fe.body.transformFlags&8192)){var Wt=e.cast(e.cast(tt,e.isBinaryExpression).left,e.isCallExpression),Ln=y.createReturnStatement(tt);e.setCommentRange(Ln,e.getCommentRange(Wt)),e.setEmitFlags(Wt,1536),Ye.push(Ln)}else ur(Ye,Fe,tt||Re()),xe(Fe.body)||Ye.push(y.createReturnStatement(y.createUniqueName("_this",48)));else Nr(Pe,Fe);var va=y.createBlock(e.setTextRange(y.createNodeArray(e.concatenate(Pe,Ye)),Fe.body.statements),!0);return e.setTextRange(va,Fe.body),va}function xe(Fe){if(Fe.kind===246)return!0;if(Fe.kind===238){var Gr=Fe;if(Gr.elseStatement)return xe(Gr.thenStatement)&&xe(Gr.elseStatement)}else if(Fe.kind===234){var ht=e.lastOrUndefined(Fe.statements);if(ht&&xe(ht))return!0}return!1}function Re(){return e.setEmitFlags(y.createThis(),4)}function ce(){return y.createLogicalOr(y.createLogicalAnd(y.createStrictInequality(y.createUniqueName("_super",48),y.createNull()),y.createFunctionApplyCall(y.createUniqueName("_super",48),Re(),y.createIdentifier("arguments"))),Re())}function Ue(Fe){if(!Fe.dotDotDotToken)return e.isBindingPattern(Fe.name)?e.setOriginalNode(e.setTextRange(y.createParameterDeclaration(void 0,void 0,void 0,y.getGeneratedNameForNode(Fe),void 0,void 0,void 0),Fe),Fe):Fe.initializer?e.setOriginalNode(e.setTextRange(y.createParameterDeclaration(void 0,void 0,void 0,Fe.name,void 0,void 0,void 0),Fe),Fe):Fe}function We(Fe){return Fe.initializer!==void 0||e.isBindingPattern(Fe.name)}function Ne(Fe,Gr){if(!e.some(Gr.parameters,We))return!1;for(var ht=!1,ye=0,oe=Gr.parameters;ye<oe.length;ye++){var Pe=oe[ye],Ye=Pe.name,Tr=Pe.initializer,tt=Pe.dotDotDotToken;tt||(e.isBindingPattern(Ye)?ht=ve(Fe,Pe,Ye,Tr)||ht:Tr&&(Ve(Fe,Pe,Ye,Tr),ht=!0))}return ht}function ve(Fe,Gr,ht,ye){return ht.elements.length>0?(e.insertStatementAfterCustomPrologue(Fe,e.setEmitFlags(y.createVariableStatement(void 0,y.createVariableDeclarationList(e.flattenDestructuringBinding(Gr,T,m,0,y.getGeneratedNameForNode(Gr)))),1048576)),!0):ye?(e.insertStatementAfterCustomPrologue(Fe,e.setEmitFlags(y.createExpressionStatement(y.createAssignment(y.getGeneratedNameForNode(Gr),e.visitNode(ye,T,e.isExpression))),1048576)),!0):!1}function Ve(Fe,Gr,ht,ye){ye=e.visitNode(ye,T,e.isExpression);var oe=y.createIfStatement(y.createTypeCheck(y.cloneNode(ht),"undefined"),e.setEmitFlags(e.setTextRange(y.createBlock([y.createExpressionStatement(e.setEmitFlags(e.setTextRange(y.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(y.cloneNode(ht),ht),ht.parent),48),e.setEmitFlags(ye,48|e.getEmitFlags(ye)|1536)),Gr),1536))]),Gr),1953));e.startOnNewLine(oe),e.setTextRange(oe,Gr),e.setEmitFlags(oe,1050528),e.insertStatementAfterCustomPrologue(Fe,oe)}function gr(Fe,Gr){return!!(Fe&&Fe.dotDotDotToken&&!Gr)}function Er(Fe,Gr,ht){var ye=[],oe=e.lastOrUndefined(Gr.parameters);if(!gr(oe,ht))return!1;var Pe=oe.name.kind===79?e.setParent(e.setTextRange(y.cloneNode(oe.name),oe.name),oe.name.parent):y.createTempVariable(void 0);e.setEmitFlags(Pe,48);var Ye=oe.name.kind===79?y.cloneNode(oe.name):Pe,Tr=Gr.parameters.length-1,tt=y.createLoopVariable();ye.push(e.setEmitFlags(e.setTextRange(y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration(Pe,void 0,void 0,y.createArrayLiteralExpression([]))])),oe),1048576));var Mt=y.createForStatement(e.setTextRange(y.createVariableDeclarationList([y.createVariableDeclaration(tt,void 0,void 0,y.createNumericLiteral(Tr))]),oe),e.setTextRange(y.createLessThan(tt,y.createPropertyAccessExpression(y.createIdentifier("arguments"),"length")),oe),e.setTextRange(y.createPostfixIncrement(tt),oe),y.createBlock([e.startOnNewLine(e.setTextRange(y.createExpressionStatement(y.createAssignment(y.createElementAccessExpression(Ye,Tr===0?tt:y.createSubtract(tt,y.createNumericLiteral(Tr))),y.createElementAccessExpression(y.createIdentifier("arguments"),tt))),oe))]));return e.setEmitFlags(Mt,1048576),e.startOnNewLine(Mt),ye.push(Mt),oe.name.kind!==79&&ye.push(e.setEmitFlags(e.setTextRange(y.createVariableStatement(void 0,y.createVariableDeclarationList(e.flattenDestructuringBinding(oe,T,m,0,Ye))),oe),1048576)),e.insertStatementsAfterCustomPrologue(Fe,ye),!0}function Nr(Fe,Gr){return ie&65536&&Gr.kind!==213?(ur(Fe,Gr,y.createThis()),!0):!1}function ur(Fe,Gr,ht){No();var ye=y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration(y.createUniqueName("_this",48),void 0,void 0,ht)]));e.setEmitFlags(ye,1050112),e.setSourceMapRange(ye,Gr),e.insertStatementAfterCustomPrologue(Fe,ye)}function xr(Fe,Gr,ht){if(ie&32768){var ye=void 0;switch(Gr.kind){case 213:return Fe;case 168:case 171:case 172:ye=y.createVoidZero();break;case 170:ye=y.createPropertyAccessExpression(e.setEmitFlags(y.createThis(),4),"constructor");break;case 255:case 212:ye=y.createConditionalExpression(y.createLogicalAnd(e.setEmitFlags(y.createThis(),4),y.createBinaryExpression(e.setEmitFlags(y.createThis(),4),102,y.getLocalName(Gr))),void 0,y.createPropertyAccessExpression(e.setEmitFlags(y.createThis(),4),"constructor"),void 0,y.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(Gr)}var oe=y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration(y.createUniqueName("_newTarget",48),void 0,void 0,ye)]));e.setEmitFlags(oe,1050112),ht&&(Fe=Fe.slice()),e.insertStatementAfterCustomPrologue(Fe,oe)}return Fe}function sr(Fe,Gr){for(var ht=0,ye=Gr.members;ht<ye.length;ht++){var oe=ye[ht];switch(oe.kind){case 233:Fe.push(i(oe));break;case 168:Fe.push(Mr(tn(Gr,oe),oe,Gr));break;case 171:case 172:var Pe=e.getAllAccessorDeclarations(Gr.members,oe);oe===Pe.firstAccessor&&Fe.push(fr(tn(Gr,oe),Pe,Gr));break;case 170:case 169:break;default:e.Debug.failBadSyntaxKind(oe,O&&O.fileName);break}}}function i(Fe){return e.setTextRange(y.createEmptyStatement(),Fe)}function Mr(Fe,Gr,ht){var ye=e.getCommentRange(Gr),oe=e.getSourceMapRange(Gr),Pe=Cr(Gr,Gr,void 0,ht),Ye=e.visitNode(Gr.name,T,e.isPropertyName),Tr;if(!e.isPrivateIdentifier(Ye)&&e.getUseDefineForClassFields(m.getCompilerOptions())){var tt=e.isComputedPropertyName(Ye)?Ye.expression:e.isIdentifier(Ye)?y.createStringLiteral(e.unescapeLeadingUnderscores(Ye.escapedText)):Ye;Tr=y.createObjectDefinePropertyCall(Fe,tt,y.createPropertyDescriptor({value:Pe,enumerable:!1,writable:!0,configurable:!0}))}else{var Mt=e.createMemberAccessForPropertyName(y,Fe,Ye,Gr.name);Tr=y.createAssignment(Mt,Pe)}e.setEmitFlags(Pe,1536),e.setSourceMapRange(Pe,oe);var Wt=e.setTextRange(y.createExpressionStatement(Tr),Gr);return e.setOriginalNode(Wt,Gr),e.setCommentRange(Wt,ye),e.setEmitFlags(Wt,48),Wt}function fr(Fe,Gr,ht){var ye=y.createExpressionStatement(Ar(Fe,Gr,ht,!1));return e.setEmitFlags(ye,1536),e.setSourceMapRange(ye,e.getSourceMapRange(Gr.firstAccessor)),ye}function Ar(Fe,Gr,ht,ye){var oe=Gr.firstAccessor,Pe=Gr.getAccessor,Ye=Gr.setAccessor,Tr=e.setParent(e.setTextRange(y.cloneNode(Fe),Fe),Fe.parent);e.setEmitFlags(Tr,1568),e.setSourceMapRange(Tr,oe.name);var tt=e.visitNode(oe.name,T,e.isPropertyName);if(e.isPrivateIdentifier(tt))return e.Debug.failBadSyntaxKind(tt,"Encountered unhandled private identifier while transforming ES2015.");var Mt=e.createExpressionForPropertyName(y,tt);e.setEmitFlags(Mt,1552),e.setSourceMapRange(Mt,oe.name);var Wt=[];if(Pe){var Ln=Cr(Pe,void 0,void 0,ht);e.setSourceMapRange(Ln,e.getSourceMapRange(Pe)),e.setEmitFlags(Ln,512);var va=y.createPropertyAssignment("get",Ln);e.setCommentRange(va,e.getCommentRange(Pe)),Wt.push(va)}if(Ye){var ti=Cr(Ye,void 0,void 0,ht);e.setSourceMapRange(ti,e.getSourceMapRange(Ye)),e.setEmitFlags(ti,512);var ii=y.createPropertyAssignment("set",ti);e.setCommentRange(ii,e.getCommentRange(Ye)),Wt.push(ii)}Wt.push(y.createPropertyAssignment("enumerable",Pe||Ye?y.createFalse():y.createTrue()),y.createPropertyAssignment("configurable",y.createTrue()));var Si=y.createCallExpression(y.createPropertyAccessExpression(y.createIdentifier("Object"),"defineProperty"),void 0,[Tr,Mt,y.createObjectLiteralExpression(Wt,!0)]);return ye&&e.startOnNewLine(Si),Si}function de(Fe){Fe.transformFlags&8192&&!(ie&16384)&&(ie|=65536);var Gr=q;q=void 0;var ht=Q(15232,66),ye=y.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(Fe.parameters,T,m),void 0,kr(Fe));return e.setTextRange(ye,Fe),e.setOriginalNode(ye,Fe),e.setEmitFlags(ye,8),H(ht,0,0),q=Gr,ye}function we(Fe){var Gr=e.getEmitFlags(Fe)&262144?Q(32662,69):Q(32670,65),ht=q;q=void 0;var ye=e.visitParameterList(Fe.parameters,T,m),oe=kr(Fe),Pe=ie&32768?y.getLocalName(Fe):Fe.name;return H(Gr,98304,0),q=ht,y.updateFunctionExpression(Fe,void 0,Fe.asteriskToken,Pe,void 0,ye,void 0,oe)}function qe(Fe){var Gr=q;q=void 0;var ht=Q(32670,65),ye=e.visitParameterList(Fe.parameters,T,m),oe=kr(Fe),Pe=ie&32768?y.getLocalName(Fe):Fe.name;return H(ht,98304,0),q=Gr,y.updateFunctionDeclaration(Fe,void 0,e.visitNodes(Fe.modifiers,T,e.isModifier),Fe.asteriskToken,Pe,void 0,ye,void 0,oe)}function Cr(Fe,Gr,ht,ye){var oe=q;q=void 0;var Pe=ye&&e.isClassLike(ye)&&!e.isStatic(Fe)?Q(32670,73):Q(32670,65),Ye=e.visitParameterList(Fe.parameters,T,m),Tr=kr(Fe);return ie&32768&&!ht&&(Fe.kind===255||Fe.kind===212)&&(ht=y.getGeneratedNameForNode(Fe)),H(Pe,98304,0),q=oe,e.setOriginalNode(e.setTextRange(y.createFunctionExpression(void 0,Fe.asteriskToken,ht,void 0,Ye,void 0,Tr),Gr),Fe)}function kr(Fe){var Gr=!1,ht=!1,ye,oe,Pe=[],Ye=[],Tr=Fe.body,tt;if(E(),e.isBlock(Tr)&&(tt=y.copyStandardPrologue(Tr.statements,Pe,!1),tt=y.copyCustomPrologue(Tr.statements,Ye,tt,T,e.isHoistedFunction),tt=y.copyCustomPrologue(Tr.statements,Ye,tt,T,e.isHoistedVariableStatement)),Gr=Ne(Ye,Fe)||Gr,Gr=Er(Ye,Fe,!1)||Gr,e.isBlock(Tr))tt=y.copyCustomPrologue(Tr.statements,Ye,tt,T),ye=Tr.statements,e.addRange(Ye,e.visitNodes(Tr.statements,T,e.isStatement,tt)),!Gr&&Tr.multiLine&&(Gr=!0);else{e.Debug.assert(Fe.kind===213),ye=e.moveRangeEnd(Tr,-1);var Mt=Fe.equalsGreaterThanToken;!e.nodeIsSynthesized(Mt)&&!e.nodeIsSynthesized(Tr)&&(e.rangeEndIsOnSameLineAsRangeStart(Mt,Tr,O)?ht=!0:Gr=!0);var Wt=e.visitNode(Tr,T,e.isExpression),Ln=y.createReturnStatement(Wt);e.setTextRange(Ln,Tr),e.moveSyntheticComments(Ln,Tr),e.setEmitFlags(Ln,1440),Ye.push(Ln),oe=Tr}if(y.mergeLexicalEnvironment(Pe,F()),xr(Pe,Fe,!1),Nr(Pe,Fe),e.some(Pe)&&(Gr=!0),Ye.unshift.apply(Ye,Pe),e.isBlock(Tr)&&e.arrayIsEqualTo(Ye,Tr.statements))return Tr;var va=y.createBlock(e.setTextRange(y.createNodeArray(Ye),ye),Gr);return e.setTextRange(va,Fe.body),!Gr&&ht&&e.setEmitFlags(va,1),oe&&e.setTokenSourceMapRange(va,19,oe),e.setOriginalNode(va,Fe.body),va}function He(Fe,Gr){if(Gr)return e.visitEachChild(Fe,T,m);var ht=ie&256?Q(7104,512):Q(6976,128),ye=e.visitEachChild(Fe,T,m);return H(ht,0,0),ye}function lr(Fe){return e.visitEachChild(Fe,_,m)}function Hr(Fe,Gr){return e.visitEachChild(Fe,Gr?_:T,m)}function Je(Fe,Gr){return e.isDestructuringAssignment(Fe)?e.flattenDestructuringAssignment(Fe,T,m,0,!Gr):Fe.operatorToken.kind===27?y.updateBinaryExpression(Fe,e.visitNode(Fe.left,_,e.isExpression),Fe.operatorToken,e.visitNode(Fe.right,Gr?_:T,e.isExpression)):e.visitEachChild(Fe,T,m)}function Sr(Fe,Gr){if(Gr)return e.visitEachChild(Fe,_,m);for(var ht,ye=0;ye<Fe.elements.length;ye++){var oe=Fe.elements[ye],Pe=e.visitNode(oe,ye<Fe.elements.length-1?_:T,e.isExpression);(ht||Pe!==oe)&&(ht||(ht=Fe.elements.slice(0,ye)),ht.push(Pe))}var Ye=ht?e.setTextRange(y.createNodeArray(ht),Fe.elements):Fe.elements;return y.updateCommaListExpression(Fe,Ye)}function Yr(Fe){return Fe.declarationList.declarations.length===1&&!!Fe.declarationList.declarations[0].initializer&&!!(e.getEmitFlags(Fe.declarationList.declarations[0].initializer)&33554432)}function ot(Fe){var Gr=Q(0,e.hasSyntacticModifier(Fe,1)?32:0),ht;if(q&&(Fe.declarationList.flags&3)===0&&!Yr(Fe)){for(var ye=void 0,oe=0,Pe=Fe.declarationList.declarations;oe<Pe.length;oe++){var Ye=Pe[oe];if(yr(q,Ye),Ye.initializer){var Tr=void 0;e.isBindingPattern(Ye.name)?Tr=e.flattenDestructuringAssignment(Ye,T,m,0):(Tr=y.createBinaryExpression(Ye.name,63,e.visitNode(Ye.initializer,T,e.isExpression)),e.setTextRange(Tr,Ye)),ye=e.append(ye,Tr)}}ye?ht=e.setTextRange(y.createExpressionStatement(y.inlineExpressions(ye)),Fe):ht=void 0}else ht=e.visitEachChild(Fe,T,m);return H(Gr,0,0),ht}function _t(Fe){if(Fe.flags&3||Fe.transformFlags&262144){Fe.flags&3&&mo();var Gr=e.flatMap(Fe.declarations,Fe.flags&1?vn:Mn),ht=y.createVariableDeclarationList(Gr);return e.setOriginalNode(ht,Fe),e.setTextRange(ht,Fe),e.setCommentRange(ht,Fe),Fe.transformFlags&262144&&(e.isBindingPattern(Fe.declarations[0].name)||e.isBindingPattern(e.last(Fe.declarations).name))&&e.setSourceMapRange(ht,kt(Gr)),ht}return e.visitEachChild(Fe,T,m)}function kt(Fe){for(var Gr=-1,ht=-1,ye=0,oe=Fe;ye<oe.length;ye++){var Pe=oe[ye];Gr=Gr===-1?Pe.pos:Pe.pos===-1?Gr:Math.min(Gr,Pe.pos),ht=Math.max(ht,Pe.end)}return e.createRange(Gr,ht)}function Yt(Fe){var Gr=K.getNodeCheckFlags(Fe),ht=Gr&262144,ye=Gr&524288,oe=(ie&64)!==0||ht&&ye&&(ie&512)!==0,Pe=!oe&&(ie&4096)===0&&(!K.isDeclarationWithCollidingName(Fe)||ye&&!ht&&(ie&6144)===0);return Pe}function vn(Fe){var Gr=Fe.name;return e.isBindingPattern(Gr)?Mn(Fe):!Fe.initializer&&Yt(Fe)?y.updateVariableDeclaration(Fe,Fe.name,void 0,void 0,y.createVoidZero()):e.visitEachChild(Fe,T,m)}function Mn(Fe){var Gr=Q(32,0),ht;return e.isBindingPattern(Fe.name)?ht=e.flattenDestructuringBinding(Fe,T,m,0,void 0,(Gr&32)!==0):ht=e.visitEachChild(Fe,T,m),H(Gr,0,0),ht}function qn(Fe){q.labels.set(e.idText(Fe.label),!0)}function nr(Fe){q.labels.set(e.idText(Fe.label),!1)}function Zr(Fe){q&&!q.labels&&(q.labels=new e.Map);var Gr=e.unwrapInnermostStatementOfLabel(Fe,q&&qn);return e.isIterationStatement(Gr,!1)?ir(Gr,Fe):y.restoreEnclosingLabel(e.visitNode(Gr,T,e.isStatement,y.liftToBlock),Fe,q&&nr)}function ir(Fe,Gr){switch(Fe.kind){case 239:case 240:return rr(Fe,Gr);case 241:return pr(Fe,Gr);case 242:return Ce(Fe,Gr);case 243:return cr(Fe,Gr)}}function ge(Fe,Gr,ht,ye,oe){var Pe=Q(Fe,Gr),Ye=Rr(ht,ye,Pe,oe);return H(Pe,0,0),Ye}function rr(Fe,Gr){return ge(0,1280,Fe,Gr)}function pr(Fe,Gr){return ge(5056,3328,Fe,Gr)}function Lr(Fe){return y.updateForStatement(Fe,e.visitNode(Fe.initializer,_,e.isForInitializer),e.visitNode(Fe.condition,T,e.isExpression),e.visitNode(Fe.incrementor,_,e.isExpression),e.visitNode(Fe.statement,T,e.isStatement,y.liftToBlock))}function Ce(Fe,Gr){return ge(3008,5376,Fe,Gr)}function cr(Fe,Gr){return ge(3008,5376,Fe,Gr,C.downlevelIteration?ke:z)}function $e(Fe,Gr,ht){var ye=[],oe=Fe.initializer;if(e.isVariableDeclarationList(oe)){Fe.initializer.flags&3&&mo();var Pe=e.firstOrUndefined(oe.declarations);if(Pe&&e.isBindingPattern(Pe.name)){var Ye=e.flattenDestructuringBinding(Pe,T,m,0,Gr),Tr=e.setTextRange(y.createVariableDeclarationList(Ye),Fe.initializer);e.setOriginalNode(Tr,Fe.initializer),e.setSourceMapRange(Tr,e.createRange(Ye[0].pos,e.last(Ye).end)),ye.push(y.createVariableStatement(void 0,Tr))}else ye.push(e.setTextRange(y.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(y.createVariableDeclarationList([y.createVariableDeclaration(Pe?Pe.name:y.createTempVariable(void 0),void 0,void 0,Gr)]),e.moveRangePos(oe,-1)),oe)),e.moveRangeEnd(oe,-1)))}else{var tt=y.createAssignment(oe,Gr);e.isDestructuringAssignment(tt)?ye.push(y.createExpressionStatement(Je(tt,!0))):(e.setTextRangeEnd(tt,oe.end),ye.push(e.setTextRange(y.createExpressionStatement(e.visitNode(tt,T,e.isExpression)),e.moveRangeEnd(oe,-1))))}if(ht)return De(e.addRange(ye,ht));var Mt=e.visitNode(Fe.statement,T,e.isStatement,y.liftToBlock);return e.isBlock(Mt)?y.updateBlock(Mt,e.setTextRange(y.createNodeArray(e.concatenate(ye,Mt.statements)),Mt.statements)):(ye.push(Mt),De(ye))}function De(Fe){return e.setEmitFlags(y.createBlock(y.createNodeArray(Fe),!0),432)}function z(Fe,Gr,ht){var ye=e.visitNode(Fe.expression,T,e.isExpression),oe=y.createLoopVariable(),Pe=e.isIdentifier(ye)?y.getGeneratedNameForNode(ye):y.createTempVariable(void 0);e.setEmitFlags(ye,48|e.getEmitFlags(ye));var Ye=e.setTextRange(y.createForStatement(e.setEmitFlags(e.setTextRange(y.createVariableDeclarationList([e.setTextRange(y.createVariableDeclaration(oe,void 0,void 0,y.createNumericLiteral(0)),e.moveRangePos(Fe.expression,-1)),e.setTextRange(y.createVariableDeclaration(Pe,void 0,void 0,ye),Fe.expression)]),Fe.expression),2097152),e.setTextRange(y.createLessThan(oe,y.createPropertyAccessExpression(Pe,"length")),Fe.expression),e.setTextRange(y.createPostfixIncrement(oe),Fe.expression),$e(Fe,y.createElementAccessExpression(Pe,oe),ht)),Fe);return e.setEmitFlags(Ye,256),e.setTextRange(Ye,Fe),y.restoreEnclosingLabel(Ye,Gr,q&&nr)}function ke(Fe,Gr,ht,ye){var oe=e.visitNode(Fe.expression,T,e.isExpression),Pe=e.isIdentifier(oe)?y.getGeneratedNameForNode(oe):y.createTempVariable(void 0),Ye=e.isIdentifier(oe)?y.getGeneratedNameForNode(Pe):y.createTempVariable(void 0),Tr=y.createUniqueName("e"),tt=y.getGeneratedNameForNode(Tr),Mt=y.createTempVariable(void 0),Wt=e.setTextRange(j().createValuesHelper(oe),Fe.expression),Ln=y.createCallExpression(y.createPropertyAccessExpression(Pe,"next"),void 0,[]);$(Tr),$(Mt);var va=ye&1024?y.inlineExpressions([y.createAssignment(Tr,y.createVoidZero()),Wt]):Wt,ti=e.setEmitFlags(e.setTextRange(y.createForStatement(e.setEmitFlags(e.setTextRange(y.createVariableDeclarationList([e.setTextRange(y.createVariableDeclaration(Pe,void 0,void 0,va),Fe.expression),y.createVariableDeclaration(Ye,void 0,void 0,Ln)]),Fe.expression),2097152),y.createLogicalNot(y.createPropertyAccessExpression(Ye,"done")),y.createAssignment(Ye,Ln),$e(Fe,y.createPropertyAccessExpression(Ye,"value"),ht)),Fe),256);return y.createTryStatement(y.createBlock([y.restoreEnclosingLabel(ti,Gr,q&&nr)]),y.createCatchClause(y.createVariableDeclaration(tt),e.setEmitFlags(y.createBlock([y.createExpressionStatement(y.createAssignment(Tr,y.createObjectLiteralExpression([y.createPropertyAssignment("error",tt)])))]),1)),y.createBlock([y.createTryStatement(y.createBlock([e.setEmitFlags(y.createIfStatement(y.createLogicalAnd(y.createLogicalAnd(Ye,y.createLogicalNot(y.createPropertyAccessExpression(Ye,"done"))),y.createAssignment(Mt,y.createPropertyAccessExpression(Pe,"return"))),y.createExpressionStatement(y.createFunctionCallCall(Mt,Pe,[]))),1)]),void 0,e.setEmitFlags(y.createBlock([e.setEmitFlags(y.createIfStatement(Tr,y.createThrowStatement(y.createPropertyAccessExpression(Tr,"error"))),1)]),1))]))}function dr(Fe){for(var Gr=Fe.properties,ht=-1,ye=!1,oe=0;oe<Gr.length;oe++){var Pe=Gr[oe];if(Pe.transformFlags&524288&&ie&4||(ye=e.Debug.checkDefined(Pe.name).kind===161)){ht=oe;break}}if(ht<0)return e.visitEachChild(Fe,T,m);var Ye=y.createTempVariable($),Tr=[],tt=y.createAssignment(Ye,e.setEmitFlags(y.createObjectLiteralExpression(e.visitNodes(Gr,T,e.isObjectLiteralElementLike,0,ht),Fe.multiLine),ye?65536:0));return Fe.multiLine&&e.startOnNewLine(tt),Tr.push(tt),Kt(Tr,Fe,Ye,ht),Tr.push(Fe.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(y.cloneNode(Ye),Ye),Ye.parent)):Ye),y.inlineExpressions(Tr)}function Xe(Fe){return(K.getNodeCheckFlags(Fe)&131072)!==0}function Qe(Fe){return e.isForStatement(Fe)&&!!Fe.initializer&&Xe(Fe.initializer)}function Ir(Fe){return e.isForStatement(Fe)&&!!Fe.condition&&Xe(Fe.condition)}function Jr(Fe){return e.isForStatement(Fe)&&!!Fe.incrementor&&Xe(Fe.incrementor)}function Or(Fe){return Be(Fe)||Qe(Fe)}function Be(Fe){return(K.getNodeCheckFlags(Fe)&65536)!==0}function yr(Fe,Gr){Fe.hoistedLocalVariables||(Fe.hoistedLocalVariables=[]),ht(Gr.name);function ht(ye){if(ye.kind===79)Fe.hoistedLocalVariables.push(ye);else for(var oe=0,Pe=ye.elements;oe<Pe.length;oe++){var Ye=Pe[oe];e.isOmittedExpression(Ye)||ht(Ye.name)}}}function Rr(Fe,Gr,ht,ye){if(!Or(Fe)){var oe=void 0;q&&(oe=q.allowedNonLabeledJumps,q.allowedNonLabeledJumps=6);var Pe=ye?ye(Fe,Gr,void 0,ht):y.restoreEnclosingLabel(e.isForStatement(Fe)?Lr(Fe):e.visitEachChild(Fe,T,m),Gr,q&&nr);return q&&(q.allowedNonLabeledJumps=oe),Pe}var Ye=Nt(Fe),Tr=[],tt=q;q=Ye;var Mt=Qe(Fe)?$t(Fe,Ye):void 0,Wt=Be(Fe)?Pn(Fe,Ye,tt):void 0;q=tt,Mt&&Tr.push(Mt.functionDeclaration),Wt&&Tr.push(Wt.functionDeclaration),Xt(Tr,Ye,tt),Mt&&Tr.push(pa(Mt.functionName,Mt.containsYield));var Ln;if(Wt)if(ye)Ln=ye(Fe,Gr,Wt.part,ht);else{var va=zr(Fe,Mt,y.createBlock(Wt.part,!0));Ln=y.restoreEnclosingLabel(va,Gr,q&&nr)}else{var ti=zr(Fe,Mt,e.visitNode(Fe.statement,T,e.isStatement,y.liftToBlock));Ln=y.restoreEnclosingLabel(ti,Gr,q&&nr)}return Tr.push(Ln),Tr}function zr(Fe,Gr,ht){switch(Fe.kind){case 241:return ut(Fe,Gr,ht);case 242:return Lt(Fe,ht);case 243:return mt(Fe,ht);case 239:return vt(Fe,ht);case 240:return pt(Fe,ht);default:return e.Debug.failBadSyntaxKind(Fe,"IterationStatement expected")}}function ut(Fe,Gr,ht){var ye=Fe.condition&&Xe(Fe.condition),oe=ye||Fe.incrementor&&Xe(Fe.incrementor);return y.updateForStatement(Fe,e.visitNode(Gr?Gr.part:Fe.initializer,_,e.isForInitializer),e.visitNode(ye?void 0:Fe.condition,T,e.isExpression),e.visitNode(oe?void 0:Fe.incrementor,_,e.isExpression),ht)}function mt(Fe,Gr){return y.updateForOfStatement(Fe,void 0,e.visitNode(Fe.initializer,T,e.isForInitializer),e.visitNode(Fe.expression,T,e.isExpression),Gr)}function Lt(Fe,Gr){return y.updateForInStatement(Fe,e.visitNode(Fe.initializer,T,e.isForInitializer),e.visitNode(Fe.expression,T,e.isExpression),Gr)}function vt(Fe,Gr){return y.updateDoStatement(Fe,Gr,e.visitNode(Fe.expression,T,e.isExpression))}function pt(Fe,Gr){return y.updateWhileStatement(Fe,e.visitNode(Fe.expression,T,e.isExpression),Gr)}function Nt(Fe){var Gr;switch(Fe.kind){case 241:case 242:case 243:var ht=Fe.initializer;ht&&ht.kind===254&&(Gr=ht);break}var ye=[],oe=[];if(Gr&&e.getCombinedNodeFlags(Gr)&3)for(var Pe=Qe(Fe),Ye=0,Tr=Gr.declarations;Ye<Tr.length;Ye++){var tt=Tr[Ye];Ut(Fe,tt,ye,oe,Pe)}var Mt={loopParameters:ye,loopOutParameters:oe};return q&&(q.argumentsName&&(Mt.argumentsName=q.argumentsName),q.thisName&&(Mt.thisName=q.thisName),q.hoistedLocalVariables&&(Mt.hoistedLocalVariables=q.hoistedLocalVariables)),Mt}function Xt(Fe,Gr,ht){var ye;if(Gr.argumentsName&&(ht?ht.argumentsName=Gr.argumentsName:(ye||(ye=[])).push(y.createVariableDeclaration(Gr.argumentsName,void 0,void 0,y.createIdentifier("arguments")))),Gr.thisName&&(ht?ht.thisName=Gr.thisName:(ye||(ye=[])).push(y.createVariableDeclaration(Gr.thisName,void 0,void 0,y.createIdentifier("this")))),Gr.hoistedLocalVariables)if(ht)ht.hoistedLocalVariables=Gr.hoistedLocalVariables;else{ye||(ye=[]);for(var oe=0,Pe=Gr.hoistedLocalVariables;oe<Pe.length;oe++){var Ye=Pe[oe];ye.push(y.createVariableDeclaration(Ye))}}if(Gr.loopOutParameters.length){ye||(ye=[]);for(var Tr=0,tt=Gr.loopOutParameters;Tr<tt.length;Tr++){var Mt=tt[Tr];ye.push(y.createVariableDeclaration(Mt.outParamName))}}Gr.conditionVariable&&(ye||(ye=[]),ye.push(y.createVariableDeclaration(Gr.conditionVariable,void 0,void 0,y.createFalse()))),ye&&Fe.push(y.createVariableStatement(void 0,y.createVariableDeclarationList(ye)))}function st(Fe){return y.createVariableDeclaration(Fe.originalName,void 0,void 0,Fe.outParamName)}function $t(Fe,Gr){var ht=y.createUniqueName("_loop_init"),ye=(Fe.initializer.transformFlags&524288)!==0,oe=0;Gr.containsLexicalThis&&(oe|=8),ye&&ie&4&&(oe|=262144);var Pe=[];Pe.push(y.createVariableStatement(void 0,Fe.initializer)),ia(Gr.loopOutParameters,2,1,Pe);var Ye=y.createVariableStatement(void 0,e.setEmitFlags(y.createVariableDeclarationList([y.createVariableDeclaration(ht,void 0,void 0,e.setEmitFlags(y.createFunctionExpression(void 0,ye?y.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(y.createBlock(Pe,!0),T,e.isBlock)),oe))]),2097152)),Tr=y.createVariableDeclarationList(e.map(Gr.loopOutParameters,st));return{functionName:ht,containsYield:ye,functionDeclaration:Ye,part:Tr}}function Pn(Fe,Gr,ht){var ye=y.createUniqueName("_loop");te();var oe=e.visitNode(Fe.statement,T,e.isStatement,y.liftToBlock),Pe=F(),Ye=[];(Ir(Fe)||Jr(Fe))&&(Gr.conditionVariable=y.createUniqueName("inc"),Fe.incrementor?Ye.push(y.createIfStatement(Gr.conditionVariable,y.createExpressionStatement(e.visitNode(Fe.incrementor,T,e.isExpression)),y.createExpressionStatement(y.createAssignment(Gr.conditionVariable,y.createTrue())))):Ye.push(y.createIfStatement(y.createLogicalNot(Gr.conditionVariable),y.createExpressionStatement(y.createAssignment(Gr.conditionVariable,y.createTrue())))),Ir(Fe)&&Ye.push(y.createIfStatement(y.createPrefixUnaryExpression(53,e.visitNode(Fe.condition,T,e.isExpression)),e.visitNode(y.createBreakStatement(),T,e.isStatement)))),e.isBlock(oe)?e.addRange(Ye,oe.statements):Ye.push(oe),ia(Gr.loopOutParameters,1,1,Ye),e.insertStatementsAfterStandardPrologue(Ye,Pe);var Tr=y.createBlock(Ye,!0);e.isBlock(oe)&&e.setOriginalNode(Tr,oe);var tt=(Fe.statement.transformFlags&524288)!==0,Mt=524288;Gr.containsLexicalThis&&(Mt|=8),tt&&(ie&4)!==0&&(Mt|=262144);var Wt=y.createVariableStatement(void 0,e.setEmitFlags(y.createVariableDeclarationList([y.createVariableDeclaration(ye,void 0,void 0,e.setEmitFlags(y.createFunctionExpression(void 0,tt?y.createToken(41):void 0,void 0,void 0,Gr.loopParameters,void 0,Tr),Mt))]),2097152)),Ln=Gn(ye,Gr,ht,tt);return{functionName:ye,containsYield:tt,functionDeclaration:Wt,part:Ln}}function Ea(Fe,Gr){var ht=Gr===0?Fe.outParamName:Fe.originalName,ye=Gr===0?Fe.originalName:Fe.outParamName;return y.createBinaryExpression(ye,63,ht)}function ia(Fe,Gr,ht,ye){for(var oe=0,Pe=Fe;oe<Pe.length;oe++){var Ye=Pe[oe];Ye.flags&Gr&&ye.push(y.createExpressionStatement(Ea(Ye,ht)))}}function pa(Fe,Gr){var ht=y.createCallExpression(Fe,void 0,[]),ye=Gr?y.createYieldExpression(y.createToken(41),e.setEmitFlags(ht,8388608)):ht;return y.createExpressionStatement(ye)}function Gn(Fe,Gr,ht,ye){var oe=[],Pe=!(Gr.nonLocalJumps&-5)&&!Gr.labeledNonLocalBreaks&&!Gr.labeledNonLocalContinues,Ye=y.createCallExpression(Fe,void 0,e.map(Gr.loopParameters,function(va){return va.name})),Tr=ye?y.createYieldExpression(y.createToken(41),e.setEmitFlags(Ye,8388608)):Ye;if(Pe)oe.push(y.createExpressionStatement(Tr)),ia(Gr.loopOutParameters,1,0,oe);else{var tt=y.createUniqueName("state"),Mt=y.createVariableStatement(void 0,y.createVariableDeclarationList([y.createVariableDeclaration(tt,void 0,void 0,Tr)]));if(oe.push(Mt),ia(Gr.loopOutParameters,1,0,oe),Gr.nonLocalJumps&8){var Wt=void 0;ht?(ht.nonLocalJumps|=8,Wt=y.createReturnStatement(tt)):Wt=y.createReturnStatement(y.createPropertyAccessExpression(tt,"value")),oe.push(y.createIfStatement(y.createTypeCheck(tt,"object"),Wt))}if(Gr.nonLocalJumps&2&&oe.push(y.createIfStatement(y.createStrictEquality(tt,y.createStringLiteral("break")),y.createBreakStatement())),Gr.labeledNonLocalBreaks||Gr.labeledNonLocalContinues){var Ln=[];bt(Gr.labeledNonLocalBreaks,!0,tt,ht,Ln),bt(Gr.labeledNonLocalContinues,!1,tt,ht,Ln),oe.push(y.createSwitchStatement(tt,y.createCaseBlock(Ln)))}}return oe}function nn(Fe,Gr,ht,ye){Gr?(Fe.labeledNonLocalBreaks||(Fe.labeledNonLocalBreaks=new e.Map),Fe.labeledNonLocalBreaks.set(ht,ye)):(Fe.labeledNonLocalContinues||(Fe.labeledNonLocalContinues=new e.Map),Fe.labeledNonLocalContinues.set(ht,ye))}function bt(Fe,Gr,ht,ye,oe){!Fe||Fe.forEach(function(Pe,Ye){var Tr=[];if(!ye||ye.labels&&ye.labels.get(Ye)){var tt=y.createIdentifier(Ye);Tr.push(Gr?y.createBreakStatement(tt):y.createContinueStatement(tt))}else nn(ye,Gr,Ye,Pe),Tr.push(y.createReturnStatement(ht));oe.push(y.createCaseClause(y.createStringLiteral(Pe),Tr))})}function Ut(Fe,Gr,ht,ye,oe){var Pe=Gr.name;if(e.isBindingPattern(Pe))for(var Ye=0,Tr=Pe.elements;Ye<Tr.length;Ye++){var tt=Tr[Ye];e.isOmittedExpression(tt)||Ut(Fe,tt,ht,ye,oe)}else{ht.push(y.createParameterDeclaration(void 0,void 0,void 0,Pe));var Mt=K.getNodeCheckFlags(Gr);if(Mt&4194304||oe){var Wt=y.createUniqueName("out_"+e.idText(Pe)),Ln=0;Mt&4194304&&(Ln|=1),e.isForStatement(Fe)&&Fe.initializer&&K.isBindingCapturedByNode(Fe.initializer,Gr)&&(Ln|=2),ye.push({flags:Ln,originalName:Pe,outParamName:Wt})}}}function Kt(Fe,Gr,ht,ye){for(var oe=Gr.properties,Pe=oe.length,Ye=ye;Ye<Pe;Ye++){var Tr=oe[Ye];switch(Tr.kind){case 171:case 172:var tt=e.getAllAccessorDeclarations(Gr.properties,Tr);Tr===tt.firstAccessor&&Fe.push(Ar(ht,tt,Gr,!!Gr.multiLine));break;case 168:Fe.push(ra(Tr,ht,Gr,Gr.multiLine));break;case 294:Fe.push(bn(Tr,ht,Gr.multiLine));break;case 295:Fe.push(wn(Tr,ht,Gr.multiLine));break;default:e.Debug.failBadSyntaxKind(Gr);break}}}function bn(Fe,Gr,ht){var ye=y.createAssignment(e.createMemberAccessForPropertyName(y,Gr,e.visitNode(Fe.name,T,e.isPropertyName)),e.visitNode(Fe.initializer,T,e.isExpression));return e.setTextRange(ye,Fe),ht&&e.startOnNewLine(ye),ye}function wn(Fe,Gr,ht){var ye=y.createAssignment(e.createMemberAccessForPropertyName(y,Gr,e.visitNode(Fe.name,T,e.isPropertyName)),y.cloneNode(Fe.name));return e.setTextRange(ye,Fe),ht&&e.startOnNewLine(ye),ye}function ra(Fe,Gr,ht,ye){var oe=y.createAssignment(e.createMemberAccessForPropertyName(y,Gr,e.visitNode(Fe.name,T,e.isPropertyName)),Cr(Fe,Fe,void 0,ht));return e.setTextRange(oe,Fe),ye&&e.startOnNewLine(oe),oe}function ft(Fe){var Gr=Q(7104,0),ht;if(e.Debug.assert(!!Fe.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(Fe.variableDeclaration.name)){var ye=y.createTempVariable(void 0),oe=y.createVariableDeclaration(ye);e.setTextRange(oe,Fe.variableDeclaration);var Pe=e.flattenDestructuringBinding(Fe.variableDeclaration,T,m,0,ye),Ye=y.createVariableDeclarationList(Pe);e.setTextRange(Ye,Fe.variableDeclaration);var Tr=y.createVariableStatement(void 0,Ye);ht=y.updateCatchClause(Fe,oe,Ct(Fe.block,Tr))}else ht=e.visitEachChild(Fe,T,m);return H(Gr,0,0),ht}function Ct(Fe,Gr){var ht=e.visitNodes(Fe.statements,T,e.isStatement);return y.updateBlock(Fe,Bt([Gr],ht,!0))}function Pt(Fe){e.Debug.assert(!e.isComputedPropertyName(Fe.name));var Gr=Cr(Fe,e.moveRangePos(Fe,-1),void 0,void 0);return e.setEmitFlags(Gr,512|e.getEmitFlags(Gr)),e.setTextRange(y.createPropertyAssignment(Fe.name,Gr),Fe)}function Et(Fe){e.Debug.assert(!e.isComputedPropertyName(Fe.name));var Gr=q;q=void 0;var ht=Q(32670,65),ye,oe=e.visitParameterList(Fe.parameters,T,m),Pe=kr(Fe);return Fe.kind===171?ye=y.updateGetAccessorDeclaration(Fe,Fe.decorators,Fe.modifiers,Fe.name,oe,Fe.type,Pe):ye=y.updateSetAccessorDeclaration(Fe,Fe.decorators,Fe.modifiers,Fe.name,oe,Pe),H(ht,98304,0),q=Gr,ye}function et(Fe){return e.setTextRange(y.createPropertyAssignment(Fe.name,D(y.cloneNode(Fe.name))),Fe)}function hn(Fe){return e.visitEachChild(Fe,T,m)}function Qn(Fe){return e.visitEachChild(Fe,T,m)}function Ra(Fe){return e.some(Fe.elements,e.isSpreadElement)?ei(Fe.elements,!1,!!Fe.multiLine,!!Fe.elements.hasTrailingComma):e.visitEachChild(Fe,T,m)}function Ki(Fe){if(e.getEmitFlags(Fe)&33554432)return di(Fe);var Gr=e.skipOuterExpressions(Fe.expression);return Gr.kind===106||e.isSuperProperty(Gr)||e.some(Fe.arguments,e.isSpreadElement)?$a(Fe,!0):y.updateCallExpression(Fe,e.visitNode(Fe.expression,R,e.isExpression),void 0,e.visitNodes(Fe.arguments,T,e.isExpression))}function di(Fe){var Gr=e.cast(e.cast(e.skipOuterExpressions(Fe.expression),e.isArrowFunction).body,e.isBlock),ht=function(os){return e.isVariableStatement(os)&&!!e.first(os.declarationList.declarations).initializer},ye=q;q=void 0;var oe=e.visitNodes(Gr.statements,h,e.isStatement);q=ye;var Pe=e.filter(oe,ht),Ye=e.filter(oe,function(os){return!ht(os)}),Tr=e.cast(e.first(Pe),e.isVariableStatement),tt=Tr.declarationList.declarations[0],Mt=e.skipOuterExpressions(tt.initializer),Wt=e.tryCast(Mt,e.isAssignmentExpression);!Wt&&e.isBinaryExpression(Mt)&&Mt.operatorToken.kind===27&&(Wt=e.tryCast(Mt.left,e.isAssignmentExpression));var Ln=e.cast(Wt?e.skipOuterExpressions(Wt.right):Mt,e.isCallExpression),va=e.cast(e.skipOuterExpressions(Ln.expression),e.isFunctionExpression),ti=va.body.statements,ii=0,Si=-1,Oi=[];if(Wt){var _s=e.tryCast(ti[ii],e.isExpressionStatement);_s&&(Oi.push(_s),ii++),Oi.push(ti[ii]),ii++,Oi.push(y.createExpressionStatement(y.createAssignment(Wt.left,e.cast(tt.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(ti,Si));)Si--;return e.addRange(Oi,ti,ii,Si),Si<-1&&e.addRange(Oi,ti,Si+1),e.addRange(Oi,Ye),e.addRange(Oi,Pe,1),y.restoreOuterExpressions(Fe.expression,y.restoreOuterExpressions(tt.initializer,y.restoreOuterExpressions(Wt&&Wt.right,y.updateCallExpression(Ln,y.restoreOuterExpressions(Ln.expression,y.updateFunctionExpression(va,void 0,void 0,void 0,void 0,va.parameters,void 0,y.updateBlock(va.body,Oi))),void 0,Ln.arguments))))}function ya(Fe){return $a(Fe,!1)}function $a(Fe,Gr){if(Fe.transformFlags&16384||Fe.expression.kind===106||e.isSuperProperty(e.skipOuterExpressions(Fe.expression))){var ht=y.createCallBinding(Fe.expression,$),ye=ht.target,oe=ht.thisArg;Fe.expression.kind===106&&e.setEmitFlags(oe,4);var Pe=void 0;if(Fe.transformFlags&16384?Pe=y.createFunctionApplyCall(e.visitNode(ye,R,e.isExpression),Fe.expression.kind===106?oe:e.visitNode(oe,T,e.isExpression),ei(Fe.arguments,!0,!1,!1)):Pe=e.setTextRange(y.createFunctionCallCall(e.visitNode(ye,R,e.isExpression),Fe.expression.kind===106?oe:e.visitNode(oe,T,e.isExpression),e.visitNodes(Fe.arguments,T,e.isExpression)),Fe),Fe.expression.kind===106){var Ye=y.createLogicalOr(Pe,Re());Pe=Gr?y.createAssignment(y.createUniqueName("_this",48),Ye):Ye}return e.setOriginalNode(Pe,Fe)}return e.visitEachChild(Fe,T,m)}function ao(Fe){if(e.some(Fe.arguments,e.isSpreadElement)){var Gr=y.createCallBinding(y.createPropertyAccessExpression(Fe.expression,"bind"),$),ht=Gr.target,ye=Gr.thisArg;return y.createNewExpression(y.createFunctionApplyCall(e.visitNode(ht,T,e.isExpression),ye,ei(y.createNodeArray(Bt([y.createVoidZero()],Fe.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(Fe,T,m)}function ei(Fe,Gr,ht,ye){var oe=Fe.length,Pe=e.flatten(e.spanMap(Fe,Fi,function(va,ti,ii,Si){return ti(va,ht,ye&&Si===oe)}));if(Pe.length===1){var Ye=Pe[0];if(Gr&&!C.downlevelIteration||e.isPackedArrayLiteral(Ye.expression)||e.isCallToHelper(Ye.expression,"___spreadArray"))return Ye.expression}for(var Tr=j(),tt=Pe[0].kind!==0,Mt=tt?y.createArrayLiteralExpression():Pe[0].expression,Wt=tt?0:1;Wt<Pe.length;Wt++){var Ln=Pe[Wt];Mt=Tr.createSpreadArrayHelper(Mt,Ln.expression,Ln.kind===1&&!Gr)}return Mt}function Fi(Fe){return e.isSpreadElement(Fe)?eo:Yi}function eo(Fe){return e.map(Fe,Wo)}function Wo(Fe){var Gr=e.visitNode(Fe.expression,T,e.isExpression),ht=e.isCallToHelper(Gr,"___read"),ye=ht||e.isPackedArrayLiteral(Gr)?2:1;return C.downlevelIteration&&ye===1&&!e.isArrayLiteralExpression(Gr)&&!ht&&(Gr=j().createReadHelper(Gr,void 0),ye=2),V(ye,Gr)}function Yi(Fe,Gr,ht){var ye=y.createArrayLiteralExpression(e.visitNodes(y.createNodeArray(Fe,ht),T,e.isExpression),Gr);return V(0,ye)}function Ni(Fe){return e.visitNode(Fe.expression,T,e.isExpression)}function Eo(Fe){return e.setTextRange(y.createStringLiteral(Fe.text),Fe)}function lo(Fe){return Fe.hasExtendedUnicodeEscape?e.setTextRange(y.createStringLiteral(Fe.text),Fe):Fe}function So(Fe){return Fe.numericLiteralFlags&384?e.setTextRange(y.createNumericLiteral(Fe.text),Fe):Fe}function ts(Fe){return e.processTaggedTemplateExpression(m,Fe,T,O,re,e.ProcessLevel.All)}function ja(Fe){for(var Gr=y.createStringLiteral(Fe.head.text),ht=0,ye=Fe.templateSpans;ht<ye.length;ht++){var oe=ye[ht],Pe=[e.visitNode(oe.expression,T,e.isExpression)];oe.literal.text.length>0&&Pe.push(y.createStringLiteral(oe.literal.text)),Gr=y.createCallExpression(y.createPropertyAccessExpression(Gr,"concat"),void 0,Pe)}return e.setTextRange(Gr,Fe)}function Do(Fe){return ie&8&&!Fe?y.createPropertyAccessExpression(y.createUniqueName("_super",48),"prototype"):y.createUniqueName("_super",48)}function Pa(Fe){return Fe.keywordToken===103&&Fe.name.escapedText==="target"?(ie|=32768,y.createUniqueName("_newTarget",48)):Fe}function Ti(Fe,Gr,ht){if(P&1&&e.isFunctionLike(Gr)){var ye=Q(32670,e.getEmitFlags(Gr)&8?81:65);X(Fe,Gr,ht),H(ye,0,0);return}X(Fe,Gr,ht)}function mo(){(P&2)===0&&(P|=2,m.enableSubstitution(79))}function No(){(P&1)===0&&(P|=1,m.enableSubstitution(108),m.enableEmitNotification(170),m.enableEmitNotification(168),m.enableEmitNotification(171),m.enableEmitNotification(172),m.enableEmitNotification(213),m.enableEmitNotification(212),m.enableEmitNotification(255))}function ko(Fe,Gr){return Gr=k(Fe,Gr),Fe===1?Ss(Gr):e.isIdentifier(Gr)?Oo(Gr):Gr}function Oo(Fe){if(P&2&&!e.isInternalName(Fe)){var Gr=e.getParseTreeNode(Fe,e.isIdentifier);if(Gr&&Po(Gr))return e.setTextRange(y.getGeneratedNameForNode(Gr),Fe)}return Fe}function Po(Fe){switch(Fe.parent.kind){case 202:case 256:case 259:case 253:return Fe.parent.name===Fe&&K.isDeclarationWithCollidingName(Fe.parent)}return!1}function Ss(Fe){switch(Fe.kind){case 79:return Ds(Fe);case 108:return gt(Fe)}return Fe}function Ds(Fe){if(P&2&&!e.isInternalName(Fe)){var Gr=K.getReferencedDeclarationWithCollidingName(Fe);if(Gr&&!(e.isClassLike(Gr)&&vr(Gr,Fe)))return e.setTextRange(y.getGeneratedNameForNode(e.getNameOfDeclaration(Gr)),Fe)}return Fe}function vr(Fe,Gr){var ht=e.getParseTreeNode(Gr);if(!ht||ht===Fe||ht.end<=Fe.pos||ht.pos>=Fe.end)return!1;for(var ye=e.getEnclosingBlockScopeContainer(Fe);ht;){if(ht===ye||ht===Fe)return!1;if(e.isClassElement(ht)&&ht.parent===Fe)return!0;ht=ht.parent}return!1}function gt(Fe){return P&1&&ie&16?e.setTextRange(y.createUniqueName("_this",48),Fe):Fe}function tn(Fe,Gr){return e.isStatic(Gr)?y.getInternalName(Fe):y.createPropertyAccessExpression(y.getInternalName(Fe),"prototype")}function Bn(Fe,Gr){if(!Fe||!Gr||e.some(Fe.parameters))return!1;var ht=e.firstOrUndefined(Fe.body.statements);if(!ht||!e.nodeIsSynthesized(ht)||ht.kind!==237)return!1;var ye=ht.expression;if(!e.nodeIsSynthesized(ye)||ye.kind!==207)return!1;var oe=ye.expression;if(!e.nodeIsSynthesized(oe)||oe.kind!==106)return!1;var Pe=e.singleOrUndefined(ye.arguments);if(!Pe||!e.nodeIsSynthesized(Pe)||Pe.kind!==224)return!1;var Ye=Pe.expression;return e.isIdentifier(Ye)&&Ye.escapedText==="arguments"}}e.transformES2015=L})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.factory,g=c.getCompilerOptions(),p,I;(g.jsx===1||g.jsx===3)&&(p=c.onEmitNode,c.onEmitNode=m,c.enableEmitNotification(279),c.enableEmitNotification(280),c.enableEmitNotification(278),I=[]);var V=c.onSubstituteNode;return c.onSubstituteNode=y,c.enableSubstitution(205),c.enableSubstitution(294),e.chainBundle(c,L);function L(F){return F}function m(F,$,C){switch($.kind){case 279:case 280:case 278:var K=$.tagName;I[e.getOriginalNodeId(K)]=!0;break}p(F,$,C)}function y(F,$){return $.id&&I&&I[$.id]?V(F,$):($=V(F,$),e.isPropertyAccessExpression($)?j($):e.isPropertyAssignment($)?te($):$)}function j(F){if(e.isPrivateIdentifier(F.name))return F;var $=E(F.name);return $?e.setTextRange(u.createElementAccessExpression(F.expression,$),F):F}function te(F){var $=e.isIdentifier(F.name)&&E(F.name);return $?u.updatePropertyAssignment(F,$,F.initializer):F}function E(F){var $=F.originalKeywordKind||(e.nodeIsSynthesized(F)?e.stringToToken(e.idText(F)):void 0);if($!==void 0&&$>=81&&$<=116)return e.setTextRange(u.createStringLiteralFromNode(F),F)}}e.transformES5=n})(mr||(mr={}));var mr;(function(e){var n;(function(L){L[L.Nop=0]="Nop",L[L.Statement=1]="Statement",L[L.Assign=2]="Assign",L[L.Break=3]="Break",L[L.BreakWhenTrue=4]="BreakWhenTrue",L[L.BreakWhenFalse=5]="BreakWhenFalse",L[L.Yield=6]="Yield",L[L.YieldStar=7]="YieldStar",L[L.Return=8]="Return",L[L.Throw=9]="Throw",L[L.Endfinally=10]="Endfinally"})(n||(n={}));var c;(function(L){L[L.Open=0]="Open",L[L.Close=1]="Close"})(c||(c={}));var u;(function(L){L[L.Exception=0]="Exception",L[L.With=1]="With",L[L.Switch=2]="Switch",L[L.Loop=3]="Loop",L[L.Labeled=4]="Labeled"})(u||(u={}));var g;(function(L){L[L.Try=0]="Try",L[L.Catch=1]="Catch",L[L.Finally=2]="Finally",L[L.Done=3]="Done"})(g||(g={}));var p;(function(L){L[L.Next=0]="Next",L[L.Throw=1]="Throw",L[L.Return=2]="Return",L[L.Break=3]="Break",L[L.Yield=4]="Yield",L[L.YieldStar=5]="YieldStar",L[L.Catch=6]="Catch",L[L.Endfinally=7]="Endfinally"})(p||(p={}));function I(L){switch(L){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function V(L){var m=L.factory,y=L.getEmitHelperFactory,j=L.resumeLexicalEnvironment,te=L.endLexicalEnvironment,E=L.hoistFunctionDeclaration,F=L.hoistVariableDeclaration,$=L.getCompilerOptions(),C=e.getEmitScriptTarget($),K=L.getEmitResolver(),k=L.onSubstituteNode;L.onSubstituteNode=$e;var X,O,x,ie,Z,re,q,P,M,Q,H=1,w,d,B,T,_=0,h=0,R,b,G,Y,pe,A,_e,Se;return e.chainBundle(L,ae);function ae(vr){if(vr.isDeclarationFile||(vr.transformFlags&1024)===0)return vr;var gt=e.visitEachChild(vr,D,L);return e.addEmitHelpers(gt,L.readEmitHelpers()),gt}function D(vr){var gt=vr.transformFlags;return ie?be(vr):x?ne(vr):e.isFunctionLikeDeclaration(vr)&&vr.asteriskToken?le(vr):gt&1024?e.visitEachChild(vr,D,L):vr}function be(vr){switch(vr.kind){case 239:return He(vr);case 240:return Hr(vr);case 248:return ir(vr);case 249:return rr(vr);default:return ne(vr)}}function ne(vr){switch(vr.kind){case 255:return Te(vr);case 212:return Me(vr);case 171:case 172:return Ke(vr);case 236:return Ge(vr);case 241:return Sr(vr);case 242:return ot(vr);case 245:return vn(vr);case 244:return kt(vr);case 246:return qn(vr);default:return vr.transformFlags&524288?J(vr):vr.transformFlags&2098176?e.visitEachChild(vr,D,L):vr}}function J(vr){switch(vr.kind){case 220:return se(vr);case 349:return Ue(vr);case 221:return Ne(vr);case 223:return ve(vr);case 203:return Ve(vr);case 204:return Er(vr);case 206:return Nr(vr);case 207:return ur(vr);case 208:return xr(vr);default:return e.visitEachChild(vr,D,L)}}function le(vr){switch(vr.kind){case 255:return Te(vr);case 212:return Me(vr);default:return e.Debug.failBadSyntaxKind(vr)}}function Te(vr){if(vr.asteriskToken)vr=e.setOriginalNode(e.setTextRange(m.createFunctionDeclaration(void 0,vr.modifiers,void 0,vr.name,void 0,e.visitParameterList(vr.parameters,D,L),void 0,Ae(vr.body)),vr),vr);else{var gt=x,tn=ie;x=!1,ie=!1,vr=e.visitEachChild(vr,D,L),x=gt,ie=tn}if(x){E(vr);return}else return vr}function Me(vr){if(vr.asteriskToken)vr=e.setOriginalNode(e.setTextRange(m.createFunctionExpression(void 0,void 0,vr.name,void 0,e.visitParameterList(vr.parameters,D,L),void 0,Ae(vr.body)),vr),vr);else{var gt=x,tn=ie;x=!1,ie=!1,vr=e.visitEachChild(vr,D,L),x=gt,ie=tn}return vr}function Ke(vr){var gt=x,tn=ie;return x=!1,ie=!1,vr=e.visitEachChild(vr,D,L),x=gt,ie=tn,vr}function Ae(vr){var gt=[],tn=x,Bn=ie,Fe=Z,Gr=re,ht=q,ye=P,oe=M,Pe=Q,Ye=H,Tr=w,tt=d,Mt=B,Wt=T;x=!0,ie=!1,Z=void 0,re=void 0,q=void 0,P=void 0,M=void 0,Q=void 0,H=1,w=void 0,d=void 0,B=void 0,T=m.createTempVariable(void 0),j();var Ln=m.copyPrologue(vr.statements,gt,!1,D);sr(vr.statements,Ln);var va=Fi();return e.insertStatementsAfterStandardPrologue(gt,te()),gt.push(m.createReturnStatement(va)),x=tn,ie=Bn,Z=Fe,re=Gr,q=ht,P=ye,M=oe,Q=Pe,H=Ye,w=Tr,d=tt,B=Mt,T=Wt,e.setTextRange(m.createBlock(gt,vr.multiLine),vr)}function Ge(vr){if(vr.transformFlags&524288){we(vr.declarationList);return}else{if(e.getEmitFlags(vr)&1048576)return vr;for(var gt=0,tn=vr.declarationList.declarations;gt<tn.length;gt++){var Bn=tn[gt];F(Bn.name)}var Fe=e.getInitializedVariables(vr.declarationList);return Fe.length===0?void 0:e.setSourceMapRange(m.createExpressionStatement(m.inlineExpressions(e.map(Fe,qe))),vr)}}function se(vr){var gt=e.getExpressionAssociativity(vr);switch(gt){case 0:return Re(vr);case 1:return xe(vr);default:return e.Debug.assertNever(gt)}}function xe(vr){var gt=vr.left,tn=vr.right;if(Ce(tn)){var Bn=void 0;switch(gt.kind){case 205:Bn=m.updatePropertyAccessExpression(gt,ke(e.visitNode(gt.expression,D,e.isLeftHandSideExpression)),gt.name);break;case 206:Bn=m.updateElementAccessExpression(gt,ke(e.visitNode(gt.expression,D,e.isLeftHandSideExpression)),ke(e.visitNode(gt.argumentExpression,D,e.isExpression)));break;default:Bn=e.visitNode(gt,D,e.isExpression);break}var Fe=vr.operatorToken.kind;return e.isCompoundAssignment(Fe)?e.setTextRange(m.createAssignment(Bn,e.setTextRange(m.createBinaryExpression(ke(Bn),e.getNonAssignmentOperatorForCompoundAssignment(Fe),e.visitNode(tn,D,e.isExpression)),vr)),vr):m.updateBinaryExpression(vr,Bn,vr.operatorToken,e.visitNode(tn,D,e.isExpression))}return e.visitEachChild(vr,D,L)}function Re(vr){return Ce(vr.right)?e.isLogicalOperator(vr.operatorToken.kind)?We(vr):vr.operatorToken.kind===27?ce(vr):m.updateBinaryExpression(vr,ke(e.visitNode(vr.left,D,e.isExpression)),vr.operatorToken,e.visitNode(vr.right,D,e.isExpression)):e.visitEachChild(vr,D,L)}function ce(vr){var gt=[];return tn(vr.left),tn(vr.right),m.inlineExpressions(gt);function tn(Bn){e.isBinaryExpression(Bn)&&Bn.operatorToken.kind===27?(tn(Bn.left),tn(Bn.right)):(Ce(Bn)&&gt.length>0&&(ei(1,[m.createExpressionStatement(m.inlineExpressions(gt))]),gt=[]),gt.push(e.visitNode(Bn,D,e.isExpression)))}}function Ue(vr){for(var gt=[],tn=0,Bn=vr.elements;tn<Bn.length;tn++){var Fe=Bn[tn];e.isBinaryExpression(Fe)&&Fe.operatorToken.kind===27?gt.push(ce(Fe)):(Ce(Fe)&&gt.length>0&&(ei(1,[m.createExpressionStatement(m.inlineExpressions(gt))]),gt=[]),gt.push(e.visitNode(Fe,D,e.isExpression)))}return m.inlineExpressions(gt)}function We(vr){var gt=Xe(),tn=dr();return et(tn,e.visitNode(vr.left,D,e.isExpression),vr.left),vr.operatorToken.kind===55?Ra(gt,tn,vr.left):Qn(gt,tn,vr.left),et(tn,e.visitNode(vr.right,D,e.isExpression),vr.right),Qe(gt),tn}function Ne(vr){if(Ce(vr.whenTrue)||Ce(vr.whenFalse)){var gt=Xe(),tn=Xe(),Bn=dr();return Ra(gt,e.visitNode(vr.condition,D,e.isExpression),vr.condition),et(Bn,e.visitNode(vr.whenTrue,D,e.isExpression),vr.whenTrue),hn(tn),Qe(gt),et(Bn,e.visitNode(vr.whenFalse,D,e.isExpression),vr.whenFalse),Qe(tn),Bn}return e.visitEachChild(vr,D,L)}function ve(vr){var gt=Xe(),tn=e.visitNode(vr.expression,D,e.isExpression);if(vr.asteriskToken){var Bn=(e.getEmitFlags(vr.expression)&8388608)===0?e.setTextRange(y().createValuesHelper(tn),vr):tn;Ki(Bn,vr)}else di(tn,vr);return Qe(gt),Ct(vr)}function Ve(vr){return gr(vr.elements,void 0,void 0,vr.multiLine)}function gr(vr,gt,tn,Bn){var Fe=cr(vr),Gr;if(Fe>0){Gr=dr();var ht=e.visitNodes(vr,D,e.isExpression,0,Fe);et(Gr,m.createArrayLiteralExpression(gt?Bt([gt],ht,!0):ht)),gt=void 0}var ye=e.reduceLeft(vr,oe,[],Fe);return Gr?m.createArrayConcatCall(Gr,[m.createArrayLiteralExpression(ye,Bn)]):e.setTextRange(m.createArrayLiteralExpression(gt?Bt([gt],ye,!0):ye,Bn),tn);function oe(Pe,Ye){if(Ce(Ye)&&Pe.length>0){var Tr=Gr!==void 0;Gr||(Gr=dr()),et(Gr,Tr?m.createArrayConcatCall(Gr,[m.createArrayLiteralExpression(Pe,Bn)]):m.createArrayLiteralExpression(gt?Bt([gt],Pe,!0):Pe,Bn)),gt=void 0,Pe=[]}return Pe.push(e.visitNode(Ye,D,e.isExpression)),Pe}}function Er(vr){var gt=vr.properties,tn=vr.multiLine,Bn=cr(gt),Fe=dr();et(Fe,m.createObjectLiteralExpression(e.visitNodes(gt,D,e.isObjectLiteralElementLike,0,Bn),tn));var Gr=e.reduceLeft(gt,ht,[],Bn);return Gr.push(tn?e.startOnNewLine(e.setParent(e.setTextRange(m.cloneNode(Fe),Fe),Fe.parent)):Fe),m.inlineExpressions(Gr);function ht(ye,oe){Ce(oe)&&ye.length>0&&(Et(m.createExpressionStatement(m.inlineExpressions(ye))),ye=[]);var Pe=e.createExpressionForObjectLiteralElementLike(m,vr,oe,Fe),Ye=e.visitNode(Pe,D,e.isExpression);return Ye&&(tn&&e.startOnNewLine(Ye),ye.push(Ye)),ye}}function Nr(vr){return Ce(vr.argumentExpression)?m.updateElementAccessExpression(vr,ke(e.visitNode(vr.expression,D,e.isLeftHandSideExpression)),e.visitNode(vr.argumentExpression,D,e.isExpression)):e.visitEachChild(vr,D,L)}function ur(vr){if(!e.isImportCall(vr)&&e.forEach(vr.arguments,Ce)){var gt=m.createCallBinding(vr.expression,F,C,!0),tn=gt.target,Bn=gt.thisArg;return e.setOriginalNode(e.setTextRange(m.createFunctionApplyCall(ke(e.visitNode(tn,D,e.isLeftHandSideExpression)),Bn,gr(vr.arguments)),vr),vr)}return e.visitEachChild(vr,D,L)}function xr(vr){if(e.forEach(vr.arguments,Ce)){var gt=m.createCallBinding(m.createPropertyAccessExpression(vr.expression,"bind"),F),tn=gt.target,Bn=gt.thisArg;return e.setOriginalNode(e.setTextRange(m.createNewExpression(m.createFunctionApplyCall(ke(e.visitNode(tn,D,e.isExpression)),Bn,gr(vr.arguments,m.createVoidZero())),void 0,[]),vr),vr)}return e.visitEachChild(vr,D,L)}function sr(vr,gt){gt===void 0&&(gt=0);for(var tn=vr.length,Bn=gt;Bn<tn;Bn++)Mr(vr[Bn])}function i(vr){e.isBlock(vr)?sr(vr.statements):Mr(vr)}function Mr(vr){var gt=ie;ie||(ie=Ce(vr)),fr(vr),ie=gt}function fr(vr){switch(vr.kind){case 234:return Ar(vr);case 237:return de(vr);case 238:return Cr(vr);case 239:return kr(vr);case 240:return lr(vr);case 241:return Je(vr);case 242:return Yr(vr);case 244:return _t(vr);case 245:return Yt(vr);case 246:return Mn(vr);case 247:return nr(vr);case 248:return Zr(vr);case 249:return ge(vr);case 250:return pr(vr);case 251:return Lr(vr);default:return Et(e.visitNode(vr,D,e.isStatement))}}function Ar(vr){Ce(vr)?sr(vr.statements):Et(e.visitNode(vr,D,e.isStatement))}function de(vr){Et(e.visitNode(vr,D,e.isStatement))}function we(vr){for(var gt=0,tn=vr.declarations;gt<tn.length;gt++){var Bn=tn[gt],Fe=m.cloneNode(Bn.name);e.setCommentRange(Fe,Bn.name),F(Fe)}for(var Gr=e.getInitializedVariables(vr),ht=Gr.length,ye=0,oe=[];ye<ht;){for(var Pe=ye;Pe<ht;Pe++){var Bn=Gr[Pe];if(Ce(Bn.initializer)&&oe.length>0)break;oe.push(qe(Bn))}oe.length&&(Et(m.createExpressionStatement(m.inlineExpressions(oe))),ye+=oe.length,oe=[])}}function qe(vr){return e.setSourceMapRange(m.createAssignment(e.setSourceMapRange(m.cloneNode(vr.name),vr.name),e.visitNode(vr.initializer,D,e.isExpression)),vr)}function Cr(vr){if(Ce(vr))if(Ce(vr.thenStatement)||Ce(vr.elseStatement)){var gt=Xe(),tn=vr.elseStatement?Xe():void 0;Ra(vr.elseStatement?tn:gt,e.visitNode(vr.expression,D,e.isExpression),vr.expression),i(vr.thenStatement),vr.elseStatement&&(hn(gt),Qe(tn),i(vr.elseStatement)),Qe(gt)}else Et(e.visitNode(vr,D,e.isStatement));else Et(e.visitNode(vr,D,e.isStatement))}function kr(vr){if(Ce(vr)){var gt=Xe(),tn=Xe();pt(gt),Qe(tn),i(vr.statement),Qe(gt),Qn(tn,e.visitNode(vr.expression,D,e.isExpression)),Nt()}else Et(e.visitNode(vr,D,e.isStatement))}function He(vr){return ie?(vt(),vr=e.visitEachChild(vr,D,L),Nt(),vr):e.visitEachChild(vr,D,L)}function lr(vr){if(Ce(vr)){var gt=Xe(),tn=pt(gt);Qe(gt),Ra(tn,e.visitNode(vr.expression,D,e.isExpression)),i(vr.statement),hn(gt),Nt()}else Et(e.visitNode(vr,D,e.isStatement))}function Hr(vr){return ie?(vt(),vr=e.visitEachChild(vr,D,L),Nt(),vr):e.visitEachChild(vr,D,L)}function Je(vr){if(Ce(vr)){var gt=Xe(),tn=Xe(),Bn=pt(tn);if(vr.initializer){var Fe=vr.initializer;e.isVariableDeclarationList(Fe)?we(Fe):Et(e.setTextRange(m.createExpressionStatement(e.visitNode(Fe,D,e.isExpression)),Fe))}Qe(gt),vr.condition&&Ra(Bn,e.visitNode(vr.condition,D,e.isExpression)),i(vr.statement),Qe(tn),vr.incrementor&&Et(e.setTextRange(m.createExpressionStatement(e.visitNode(vr.incrementor,D,e.isExpression)),vr.incrementor)),hn(gt),Nt()}else Et(e.visitNode(vr,D,e.isStatement))}function Sr(vr){ie&&vt();var gt=vr.initializer;if(gt&&e.isVariableDeclarationList(gt)){for(var tn=0,Bn=gt.declarations;tn<Bn.length;tn++){var Fe=Bn[tn];F(Fe.name)}var Gr=e.getInitializedVariables(gt);vr=m.updateForStatement(vr,Gr.length>0?m.inlineExpressions(e.map(Gr,qe)):void 0,e.visitNode(vr.condition,D,e.isExpression),e.visitNode(vr.incrementor,D,e.isExpression),e.visitIterationBody(vr.statement,D,L))}else vr=e.visitEachChild(vr,D,L);return ie&&Nt(),vr}function Yr(vr){if(Ce(vr)){var gt=dr(),tn=dr(),Bn=m.createLoopVariable(),Fe=vr.initializer;F(Bn),et(gt,m.createArrayLiteralExpression()),Et(m.createForInStatement(tn,e.visitNode(vr.expression,D,e.isExpression),m.createExpressionStatement(m.createCallExpression(m.createPropertyAccessExpression(gt,"push"),void 0,[tn])))),et(Bn,m.createNumericLiteral(0));var Gr=Xe(),ht=Xe(),ye=pt(ht);Qe(Gr),Ra(ye,m.createLessThan(Bn,m.createPropertyAccessExpression(gt,"length")));var oe=void 0;if(e.isVariableDeclarationList(Fe)){for(var Pe=0,Ye=Fe.declarations;Pe<Ye.length;Pe++){var Tr=Ye[Pe];F(Tr.name)}oe=m.cloneNode(Fe.declarations[0].name)}else oe=e.visitNode(Fe,D,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(oe));et(oe,m.createElementAccessExpression(gt,Bn)),i(vr.statement),Qe(ht),Et(m.createExpressionStatement(m.createPostfixIncrement(Bn))),hn(Gr),Nt()}else Et(e.visitNode(vr,D,e.isStatement))}function ot(vr){ie&&vt();var gt=vr.initializer;if(e.isVariableDeclarationList(gt)){for(var tn=0,Bn=gt.declarations;tn<Bn.length;tn++){var Fe=Bn[tn];F(Fe.name)}vr=m.updateForInStatement(vr,gt.declarations[0].name,e.visitNode(vr.expression,D,e.isExpression),e.visitNode(vr.statement,D,e.isStatement,m.liftToBlock))}else vr=e.visitEachChild(vr,D,L);return ie&&Nt(),vr}function _t(vr){var gt=Kt(vr.label?e.idText(vr.label):void 0);gt>0?hn(gt,vr):Et(vr)}function kt(vr){if(ie){var gt=Kt(vr.label&&e.idText(vr.label));if(gt>0)return ra(gt,vr)}return e.visitEachChild(vr,D,L)}function Yt(vr){var gt=Ut(vr.label?e.idText(vr.label):void 0);gt>0?hn(gt,vr):Et(vr)}function vn(vr){if(ie){var gt=Ut(vr.label&&e.idText(vr.label));if(gt>0)return ra(gt,vr)}return e.visitEachChild(vr,D,L)}function Mn(vr){ya(e.visitNode(vr.expression,D,e.isExpression),vr)}function qn(vr){return ft(e.visitNode(vr.expression,D,e.isExpression),vr)}function nr(vr){Ce(vr)?(yr(ke(e.visitNode(vr.expression,D,e.isExpression))),i(vr.statement),Rr()):Et(e.visitNode(vr,D,e.isStatement))}function Zr(vr){if(Ce(vr.caseBlock)){for(var gt=vr.caseBlock,tn=gt.clauses.length,Bn=st(),Fe=ke(e.visitNode(vr.expression,D,e.isExpression)),Gr=[],ht=-1,ye=0;ye<tn;ye++){var oe=gt.clauses[ye];Gr.push(Xe()),oe.kind===289&&ht===-1&&(ht=ye)}for(var Pe=0,Ye=[];Pe<tn;){for(var Tr=0,ye=Pe;ye<tn;ye++){var oe=gt.clauses[ye];if(oe.kind===288){if(Ce(oe.expression)&&Ye.length>0)break;Ye.push(m.createCaseClause(e.visitNode(oe.expression,D,e.isExpression),[ra(Gr[ye],oe.expression)]))}else Tr++}Ye.length&&(Et(m.createSwitchStatement(Fe,m.createCaseBlock(Ye))),Pe+=Ye.length,Ye=[]),Tr>0&&(Pe+=Tr,Tr=0)}ht>=0?hn(Gr[ht]):hn(Bn);for(var ye=0;ye<tn;ye++)Qe(Gr[ye]),sr(gt.clauses[ye].statements);$t()}else Et(e.visitNode(vr,D,e.isStatement))}function ir(vr){return ie&&Xt(),vr=e.visitEachChild(vr,D,L),ie&&$t(),vr}function ge(vr){Ce(vr)?(Ea(e.idText(vr.label)),i(vr.statement),ia()):Et(e.visitNode(vr,D,e.isStatement))}function rr(vr){return ie&&Pn(e.idText(vr.label)),vr=e.visitEachChild(vr,D,L),ie&&ia(),vr}function pr(vr){var gt;$a(e.visitNode((gt=vr.expression)!==null&&gt!==void 0?gt:m.createVoidZero(),D,e.isExpression),vr)}function Lr(vr){Ce(vr)?(zr(),i(vr.tryBlock),vr.catchClause&&(ut(vr.catchClause.variableDeclaration),i(vr.catchClause.block)),vr.finallyBlock&&(mt(),i(vr.finallyBlock)),Lt()):Et(e.visitEachChild(vr,D,L))}function Ce(vr){return!!vr&&(vr.transformFlags&524288)!==0}function cr(vr){for(var gt=vr.length,tn=0;tn<gt;tn++)if(Ce(vr[tn]))return tn;return-1}function $e(vr,gt){return gt=k(vr,gt),vr===1?De(gt):gt}function De(vr){return e.isIdentifier(vr)?z(vr):vr}function z(vr){if(!e.isGeneratedIdentifier(vr)&&X&&X.has(e.idText(vr))){var gt=e.getOriginalNode(vr);if(e.isIdentifier(gt)&&gt.parent){var tn=K.getReferencedValueDeclaration(gt);if(tn){var Bn=O[e.getOriginalNodeId(tn)];if(Bn){var Fe=e.setParent(e.setTextRange(m.cloneNode(Bn),Bn),Bn.parent);return e.setSourceMapRange(Fe,vr),e.setCommentRange(Fe,vr),Fe}}}}return vr}function ke(vr){if(e.isGeneratedIdentifier(vr)||e.getEmitFlags(vr)&4096)return vr;var gt=m.createTempVariable(F);return et(gt,vr,vr),gt}function dr(vr){var gt=vr?m.createUniqueName(vr):m.createTempVariable(void 0);return F(gt),gt}function Xe(){M||(M=[]);var vr=H;return H++,M[vr]=-1,vr}function Qe(vr){e.Debug.assert(M!==void 0,"No labels were defined."),M[vr]=w?w.length:0}function Ir(vr){Z||(Z=[],q=[],re=[],P=[]);var gt=q.length;return q[gt]=0,re[gt]=w?w.length:0,Z[gt]=vr,P.push(vr),gt}function Jr(){var vr=Or();if(vr===void 0)return e.Debug.fail("beginBlock was never called.");var gt=q.length;return q[gt]=1,re[gt]=w?w.length:0,Z[gt]=vr,P.pop(),vr}function Or(){return e.lastOrUndefined(P)}function Be(){var vr=Or();return vr&&vr.kind}function yr(vr){var gt=Xe(),tn=Xe();Qe(gt),Ir({kind:1,expression:vr,startLabel:gt,endLabel:tn})}function Rr(){e.Debug.assert(Be()===1);var vr=Jr();Qe(vr.endLabel)}function zr(){var vr=Xe(),gt=Xe();return Qe(vr),Ir({kind:0,state:0,startLabel:vr,endLabel:gt}),Pt(),gt}function ut(vr){e.Debug.assert(Be()===0);var gt;if(e.isGeneratedIdentifier(vr.name))gt=vr.name,F(vr.name);else{var tn=e.idText(vr.name);gt=dr(tn),X||(X=new e.Map,O=[],L.enableSubstitution(79)),X.set(tn,!0),O[e.getOriginalNodeId(vr)]=gt}var Bn=Or();e.Debug.assert(Bn.state<1);var Fe=Bn.endLabel;hn(Fe);var Gr=Xe();Qe(Gr),Bn.state=1,Bn.catchVariable=gt,Bn.catchLabel=Gr,et(gt,m.createCallExpression(m.createPropertyAccessExpression(T,"sent"),void 0,[])),Pt()}function mt(){e.Debug.assert(Be()===0);var vr=Or();e.Debug.assert(vr.state<2);var gt=vr.endLabel;hn(gt);var tn=Xe();Qe(tn),vr.state=2,vr.finallyLabel=tn}function Lt(){e.Debug.assert(Be()===0);var vr=Jr(),gt=vr.state;gt<2?hn(vr.endLabel):ao(),Qe(vr.endLabel),Pt(),vr.state=3}function vt(){Ir({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function pt(vr){var gt=Xe();return Ir({kind:3,isScript:!1,breakLabel:gt,continueLabel:vr}),gt}function Nt(){e.Debug.assert(Be()===3);var vr=Jr(),gt=vr.breakLabel;vr.isScript||Qe(gt)}function Xt(){Ir({kind:2,isScript:!0,breakLabel:-1})}function st(){var vr=Xe();return Ir({kind:2,isScript:!1,breakLabel:vr}),vr}function $t(){e.Debug.assert(Be()===2);var vr=Jr(),gt=vr.breakLabel;vr.isScript||Qe(gt)}function Pn(vr){Ir({kind:4,isScript:!0,labelText:vr,breakLabel:-1})}function Ea(vr){var gt=Xe();Ir({kind:4,isScript:!1,labelText:vr,breakLabel:gt})}function ia(){e.Debug.assert(Be()===4);var vr=Jr();vr.isScript||Qe(vr.breakLabel)}function pa(vr){return vr.kind===2||vr.kind===3}function Gn(vr){return vr.kind===4}function nn(vr){return vr.kind===3}function bt(vr,gt){for(var tn=gt;tn>=0;tn--){var Bn=P[tn];if(Gn(Bn)){if(Bn.labelText===vr)return!0}else break}return!1}function Ut(vr){if(P)if(vr)for(var gt=P.length-1;gt>=0;gt--){var tn=P[gt];if(Gn(tn)&&tn.labelText===vr)return tn.breakLabel;if(pa(tn)&&bt(vr,gt-1))return tn.breakLabel}else for(var gt=P.length-1;gt>=0;gt--){var tn=P[gt];if(pa(tn))return tn.breakLabel}return 0}function Kt(vr){if(P)if(vr)for(var gt=P.length-1;gt>=0;gt--){var tn=P[gt];if(nn(tn)&&bt(vr,gt-1))return tn.continueLabel}else for(var gt=P.length-1;gt>=0;gt--){var tn=P[gt];if(nn(tn))return tn.continueLabel}return 0}function bn(vr){if(vr!==void 0&&vr>0){Q===void 0&&(Q=[]);var gt=m.createNumericLiteral(-1);return Q[vr]===void 0?Q[vr]=[gt]:Q[vr].push(gt),gt}return m.createOmittedExpression()}function wn(vr){var gt=m.createNumericLiteral(vr);return e.addSyntheticTrailingComment(gt,3,I(vr)),gt}function ra(vr,gt){return e.Debug.assertLessThan(0,vr,"Invalid label"),e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([wn(3),bn(vr)])),gt)}function ft(vr,gt){return e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression(vr?[wn(2),vr]:[wn(2)])),gt)}function Ct(vr){return e.setTextRange(m.createCallExpression(m.createPropertyAccessExpression(T,"sent"),void 0,[]),vr)}function Pt(){ei(0)}function Et(vr){vr?ei(1,[vr]):Pt()}function et(vr,gt,tn){ei(2,[vr,gt],tn)}function hn(vr,gt){ei(3,[vr],gt)}function Qn(vr,gt,tn){ei(4,[vr,gt],tn)}function Ra(vr,gt,tn){ei(5,[vr,gt],tn)}function Ki(vr,gt){ei(7,[vr],gt)}function di(vr,gt){ei(6,[vr],gt)}function ya(vr,gt){ei(8,[vr],gt)}function $a(vr,gt){ei(9,[vr],gt)}function ao(){ei(10)}function ei(vr,gt,tn){w===void 0&&(w=[],d=[],B=[]),M===void 0&&Qe(Xe());var Bn=w.length;w[Bn]=vr,d[Bn]=gt,B[Bn]=tn}function Fi(){_=0,h=0,R=void 0,b=!1,G=!1,Y=void 0,pe=void 0,A=void 0,_e=void 0,Se=void 0;var vr=eo();return y().createGeneratorHelper(e.setEmitFlags(m.createFunctionExpression(void 0,void 0,void 0,void 0,[m.createParameterDeclaration(void 0,void 0,void 0,T)],void 0,m.createBlock(vr,vr.length>0)),524288))}function eo(){if(w){for(var vr=0;vr<w.length;vr++)ja(vr);Yi(w.length)}else Yi(0);if(Y){var gt=m.createPropertyAccessExpression(T,"label"),tn=m.createSwitchStatement(gt,m.createCaseBlock(Y));return[e.startOnNewLine(tn)]}return pe||[]}function Wo(){!pe||(Eo(!b),b=!1,G=!1,h++)}function Yi(vr){Ni(vr)&&(lo(vr),Se=void 0,mo(void 0,void 0)),pe&&Y&&Eo(!1),So()}function Ni(vr){if(!G)return!0;if(!M||!Q)return!1;for(var gt=0;gt<M.length;gt++)if(M[gt]===vr&&Q[gt])return!0;return!1}function Eo(vr){if(Y||(Y=[]),pe){if(Se)for(var gt=Se.length-1;gt>=0;gt--){var tn=Se[gt];pe=[m.createWithStatement(tn.expression,m.createBlock(pe))]}if(_e){var Bn=_e.startLabel,Fe=_e.catchLabel,Gr=_e.finallyLabel,ht=_e.endLabel;pe.unshift(m.createExpressionStatement(m.createCallExpression(m.createPropertyAccessExpression(m.createPropertyAccessExpression(T,"trys"),"push"),void 0,[m.createArrayLiteralExpression([bn(Bn),bn(Fe),bn(Gr),bn(ht)])]))),_e=void 0}vr&&pe.push(m.createExpressionStatement(m.createAssignment(m.createPropertyAccessExpression(T,"label"),m.createNumericLiteral(h+1))))}Y.push(m.createCaseClause(m.createNumericLiteral(h),pe||[])),pe=void 0}function lo(vr){if(!!M)for(var gt=0;gt<M.length;gt++)M[gt]===vr&&(Wo(),R===void 0&&(R=[]),R[h]===void 0?R[h]=[gt]:R[h].push(gt))}function So(){if(Q!==void 0&&R!==void 0)for(var vr=0;vr<R.length;vr++){var gt=R[vr];if(gt!==void 0)for(var tn=0,Bn=gt;tn<Bn.length;tn++){var Fe=Bn[tn],Gr=Q[Fe];if(Gr!==void 0)for(var ht=0,ye=Gr;ht<ye.length;ht++){var oe=ye[ht];oe.text=String(vr)}}}}function ts(vr){if(Z)for(;_<q.length&&re[_]<=vr;_++){var gt=Z[_],tn=q[_];switch(gt.kind){case 0:tn===0?(A||(A=[]),pe||(pe=[]),A.push(_e),_e=gt):tn===1&&(_e=A.pop());break;case 1:tn===0?(Se||(Se=[]),Se.push(gt)):tn===1&&Se.pop();break}}}function ja(vr){if(lo(vr),ts(vr),!b){b=!1,G=!1;var gt=w[vr];if(gt!==0){if(gt===10)return Ds();var tn=d[vr];if(gt===1)return Do(tn[0]);var Bn=B[vr];switch(gt){case 2:return Pa(tn[0],tn[1],Bn);case 3:return No(tn[0],Bn);case 4:return ko(tn[0],tn[1],Bn);case 5:return Oo(tn[0],tn[1],Bn);case 6:return Po(tn[0],Bn);case 7:return Ss(tn[0],Bn);case 8:return mo(tn[0],Bn);case 9:return Ti(tn[0],Bn)}}}}function Do(vr){vr&&(pe?pe.push(vr):pe=[vr])}function Pa(vr,gt,tn){Do(e.setTextRange(m.createExpressionStatement(m.createAssignment(vr,gt)),tn))}function Ti(vr,gt){b=!0,G=!0,Do(e.setTextRange(m.createThrowStatement(vr),gt))}function mo(vr,gt){b=!0,G=!0,Do(e.setEmitFlags(e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression(vr?[wn(2),vr]:[wn(2)])),gt),384))}function No(vr,gt){b=!0,Do(e.setEmitFlags(e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([wn(3),bn(vr)])),gt),384))}function ko(vr,gt,tn){Do(e.setEmitFlags(m.createIfStatement(gt,e.setEmitFlags(e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([wn(3),bn(vr)])),tn),384)),1))}function Oo(vr,gt,tn){Do(e.setEmitFlags(m.createIfStatement(m.createLogicalNot(gt),e.setEmitFlags(e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([wn(3),bn(vr)])),tn),384)),1))}function Po(vr,gt){b=!0,Do(e.setEmitFlags(e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression(vr?[wn(4),vr]:[wn(4)])),gt),384))}function Ss(vr,gt){b=!0,Do(e.setEmitFlags(e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([wn(5),vr])),gt),384))}function Ds(){b=!0,Do(m.createReturnStatement(m.createArrayLiteralExpression([wn(7)])))}}e.transformGenerators=V})(mr||(mr={}));var mr;(function(e){function n(u){function g(Je){switch(Je){case e.ModuleKind.AMD:return P;case e.ModuleKind.UMD:return M;default:return q}}var p=u.factory,I=u.getEmitHelperFactory,V=u.startLexicalEnvironment,L=u.endLexicalEnvironment,m=u.hoistVariableDeclaration,y=u.getCompilerOptions(),j=u.getEmitResolver(),te=u.getEmitHost(),E=e.getEmitScriptTarget(y),F=e.getEmitModuleKind(y),$=u.onSubstituteNode,C=u.onEmitNode;u.onSubstituteNode=de,u.onEmitNode=Ar,u.enableSubstitution(207),u.enableSubstitution(209),u.enableSubstitution(79),u.enableSubstitution(220),u.enableSubstitution(295),u.enableEmitNotification(303);var K=[],k=[],X,O,x=[],ie;return e.chainBundle(u,Z);function Z(Je){if(Je.isDeclarationFile||!(e.isEffectiveExternalModule(Je,y)||Je.transformFlags&4194304||e.isJsonSourceFile(Je)&&e.hasJsonModuleEmitEnabled(y)&&e.outFile(y)))return Je;X=Je,O=e.collectExternalModuleInfo(u,Je,j,y),K[e.getOriginalNodeId(Je)]=O;var Sr=g(F),Yr=Sr(Je);return X=void 0,O=void 0,ie=!1,Yr}function re(){return!!(!O.exportEquals&&e.isExternalModule(X))}function q(Je){V();var Sr=[],Yr=e.getStrictOptionValue(y,"alwaysStrict")||!y.noImplicitUseStrict&&e.isExternalModule(X),ot=p.copyPrologue(Je.statements,Sr,Yr&&!e.isJsonSourceFile(Je),B);if(re()&&e.append(Sr,sr()),e.length(O.exportedNames))for(var _t=50,kt=0;kt<O.exportedNames.length;kt+=_t)e.append(Sr,p.createExpressionStatement(e.reduceLeft(O.exportedNames.slice(kt,kt+_t),function(vn,Mn){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(e.idText(Mn))),vn)},p.createVoidZero())));e.append(Sr,e.visitNode(O.externalHelpersImportDeclaration,B,e.isStatement)),e.addRange(Sr,e.visitNodes(Je.statements,B,e.isStatement,ot)),d(Sr,!1),e.insertStatementsAfterStandardPrologue(Sr,L());var Yt=p.updateSourceFile(Je,e.setTextRange(p.createNodeArray(Sr),Je.statements));return e.addEmitHelpers(Yt,u.readEmitHelpers()),Yt}function P(Je){var Sr=p.createIdentifier("define"),Yr=e.tryGetModuleNameFromFile(p,Je,te,y),ot=e.isJsonSourceFile(Je)&&Je,_t=Q(Je,!0),kt=_t.aliasedModuleNames,Yt=_t.unaliasedModuleNames,vn=_t.importAliasNames,Mn=p.updateSourceFile(Je,e.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(Sr,void 0,Bt(Bt([],Yr?[Yr]:[],!0),[p.createArrayLiteralExpression(ot?e.emptyArray:Bt(Bt([p.createStringLiteral("require"),p.createStringLiteral("exports")],kt,!0),Yt,!0)),ot?ot.statements.length?ot.statements[0].expression:p.createObjectLiteralExpression():p.createFunctionExpression(void 0,void 0,void 0,void 0,Bt([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],vn,!0),void 0,w(Je))],!1)))]),Je.statements));return e.addEmitHelpers(Mn,u.readEmitHelpers()),Mn}function M(Je){var Sr=Q(Je,!1),Yr=Sr.aliasedModuleNames,ot=Sr.unaliasedModuleNames,_t=Sr.importAliasNames,kt=e.tryGetModuleNameFromFile(p,Je,te,y),Yt=p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(p.createBlock([p.createIfStatement(p.createLogicalAnd(p.createTypeCheck(p.createIdentifier("module"),"object"),p.createTypeCheck(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),"object")),p.createBlock([p.createVariableStatement(void 0,[p.createVariableDeclaration("v",void 0,void 0,p.createCallExpression(p.createIdentifier("factory"),void 0,[p.createIdentifier("require"),p.createIdentifier("exports")]))]),e.setEmitFlags(p.createIfStatement(p.createStrictInequality(p.createIdentifier("v"),p.createIdentifier("undefined")),p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),p.createIdentifier("v")))),1)]),p.createIfStatement(p.createLogicalAnd(p.createTypeCheck(p.createIdentifier("define"),"function"),p.createPropertyAccessExpression(p.createIdentifier("define"),"amd")),p.createBlock([p.createExpressionStatement(p.createCallExpression(p.createIdentifier("define"),void 0,Bt(Bt([],kt?[kt]:[],!0),[p.createArrayLiteralExpression(Bt(Bt([p.createStringLiteral("require"),p.createStringLiteral("exports")],Yr,!0),ot,!0)),p.createIdentifier("factory")],!1)))])))],!0),void 0)),vn=p.updateSourceFile(Je,e.setTextRange(p.createNodeArray([p.createExpressionStatement(p.createCallExpression(Yt,void 0,[p.createFunctionExpression(void 0,void 0,void 0,void 0,Bt([p.createParameterDeclaration(void 0,void 0,void 0,"require"),p.createParameterDeclaration(void 0,void 0,void 0,"exports")],_t,!0),void 0,w(Je))]))]),Je.statements));return e.addEmitHelpers(vn,u.readEmitHelpers()),vn}function Q(Je,Sr){for(var Yr=[],ot=[],_t=[],kt=0,Yt=Je.amdDependencies;kt<Yt.length;kt++){var vn=Yt[kt];vn.name?(Yr.push(p.createStringLiteral(vn.path)),_t.push(p.createParameterDeclaration(void 0,void 0,void 0,vn.name))):ot.push(p.createStringLiteral(vn.path))}for(var Mn=0,qn=O.externalImports;Mn<qn.length;Mn++){var nr=qn[Mn],Zr=e.getExternalModuleNameLiteral(p,nr,X,te,j,y),ir=e.getLocalNameForExternalImport(p,nr,X);Zr&&(Sr&&ir?(e.setEmitFlags(ir,4),Yr.push(Zr),_t.push(p.createParameterDeclaration(void 0,void 0,void 0,ir))):ot.push(Zr))}return{aliasedModuleNames:Yr,unaliasedModuleNames:ot,importAliasNames:_t}}function H(Je){if(!(e.isImportEqualsDeclaration(Je)||e.isExportDeclaration(Je)||!e.getExternalModuleNameLiteral(p,Je,X,te,j,y))){var Sr=e.getLocalNameForExternalImport(p,Je,X),Yr=J(Je,Sr);if(Yr!==Sr)return p.createExpressionStatement(p.createAssignment(Sr,Yr))}}function w(Je){V();var Sr=[],Yr=p.copyPrologue(Je.statements,Sr,!y.noImplicitUseStrict,B);re()&&e.append(Sr,sr()),e.length(O.exportedNames)&&e.append(Sr,p.createExpressionStatement(e.reduceLeft(O.exportedNames,function(_t,kt){return p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.createIdentifier(e.idText(kt))),_t)},p.createVoidZero()))),e.append(Sr,e.visitNode(O.externalHelpersImportDeclaration,B,e.isStatement)),F===e.ModuleKind.AMD&&e.addRange(Sr,e.mapDefined(O.externalImports,H)),e.addRange(Sr,e.visitNodes(Je.statements,B,e.isStatement,Yr)),d(Sr,!0),e.insertStatementsAfterStandardPrologue(Sr,L());var ot=p.createBlock(Sr,!0);return ie&&e.addEmitHelper(ot,c),ot}function d(Je,Sr){if(O.exportEquals){var Yr=e.visitNode(O.exportEquals.expression,_);if(Yr)if(Sr){var ot=p.createReturnStatement(Yr);e.setTextRange(ot,O.exportEquals),e.setEmitFlags(ot,1920),Je.push(ot)}else{var ot=p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("module"),"exports"),Yr));e.setTextRange(ot,O.exportEquals),e.setEmitFlags(ot,1536),Je.push(ot)}}}function B(Je){switch(Je.kind){case 265:return le(Je);case 264:return Me(Je);case 271:return Ke(Je);case 270:return Ae(Je);case 236:return xe(Je);case 255:return Ge(Je);case 256:return se(Je);case 350:return Ue(Je);case 351:return Ne(Je);default:return _(Je)}}function T(Je,Sr){if(!(Je.transformFlags&71305216))return Je;switch(Je.kind){case 241:return G(Je);case 237:return Y(Je);case 211:return pe(Je,Sr);case 348:return A(Je,Sr);case 207:if(e.isImportCall(Je)&&X.impliedNodeFormat===void 0)return Se(Je);break;case 220:if(e.isDestructuringAssignment(Je))return b(Je,Sr);break;case 218:case 219:return _e(Je,Sr)}return e.visitEachChild(Je,_,u)}function _(Je){return T(Je,!1)}function h(Je){return T(Je,!0)}function R(Je){if(e.isObjectLiteralExpression(Je))for(var Sr=0,Yr=Je.properties;Sr<Yr.length;Sr++){var ot=Yr[Sr];switch(ot.kind){case 294:if(R(ot.initializer))return!0;break;case 295:if(R(ot.name))return!0;break;case 296:if(R(ot.expression))return!0;break;case 168:case 171:case 172:return!1;default:e.Debug.assertNever(ot,"Unhandled object member kind")}}else if(e.isArrayLiteralExpression(Je))for(var _t=0,kt=Je.elements;_t<kt.length;_t++){var ot=kt[_t];if(e.isSpreadElement(ot)){if(R(ot.expression))return!0}else if(R(ot))return!0}else if(e.isIdentifier(Je))return e.length(Hr(Je))>(e.isExportName(Je)?1:0);return!1}function b(Je,Sr){return R(Je.left)?e.flattenDestructuringAssignment(Je,_,u,0,!Sr,Re):e.visitEachChild(Je,_,u)}function G(Je){return p.updateForStatement(Je,e.visitNode(Je.initializer,h,e.isForInitializer),e.visitNode(Je.condition,_,e.isExpression),e.visitNode(Je.incrementor,h,e.isExpression),e.visitIterationBody(Je.statement,_,u))}function Y(Je){return p.updateExpressionStatement(Je,e.visitNode(Je.expression,h,e.isExpression))}function pe(Je,Sr){return p.updateParenthesizedExpression(Je,e.visitNode(Je.expression,Sr?h:_,e.isExpression))}function A(Je,Sr){return p.updatePartiallyEmittedExpression(Je,e.visitNode(Je.expression,Sr?h:_,e.isExpression))}function _e(Je,Sr){if((Je.operator===45||Je.operator===46)&&e.isIdentifier(Je.operand)&&!e.isGeneratedIdentifier(Je.operand)&&!e.isLocalName(Je.operand)&&!e.isDeclarationNameOfEnumOrNamespace(Je.operand)){var Yr=Hr(Je.operand);if(Yr){var ot=void 0,_t=e.visitNode(Je.operand,_,e.isExpression);e.isPrefixUnaryExpression(Je)?_t=p.updatePrefixUnaryExpression(Je,_t):(_t=p.updatePostfixUnaryExpression(Je,_t),Sr||(ot=p.createTempVariable(m),_t=p.createAssignment(ot,_t),e.setTextRange(_t,Je)),_t=p.createComma(_t,p.cloneNode(Je.operand)),e.setTextRange(_t,Je));for(var kt=0,Yt=Yr;kt<Yt.length;kt++){var vn=Yt[kt];x[e.getNodeId(_t)]=!0,_t=Mr(vn,_t),e.setTextRange(_t,Je)}return ot&&(x[e.getNodeId(_t)]=!0,_t=p.createComma(_t,ot),e.setTextRange(_t,Je)),_t}}return e.visitEachChild(Je,_,u)}function Se(Je){var Sr=e.getExternalModuleNameLiteral(p,Je,X,te,j,y),Yr=e.visitNode(e.firstOrUndefined(Je.arguments),_),ot=Sr&&(!Yr||!e.isStringLiteral(Yr)||Yr.text!==Sr.text)?Sr:Yr,_t=!!(Je.transformFlags&8192);switch(y.module){case e.ModuleKind.AMD:return D(ot,_t);case e.ModuleKind.UMD:return ae(ot!=null?ot:p.createVoidZero(),_t);case e.ModuleKind.CommonJS:default:return be(ot,_t)}}function ae(Je,Sr){if(ie=!0,e.isSimpleCopiableExpression(Je)){var Yr=e.isGeneratedIdentifier(Je)?Je:e.isStringLiteral(Je)?p.createStringLiteralFromNode(Je):e.setEmitFlags(e.setTextRange(p.cloneNode(Je),Je),1536);return p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,be(Je,Sr),void 0,D(Yr,Sr))}else{var ot=p.createTempVariable(m);return p.createComma(p.createAssignment(ot,Je),p.createConditionalExpression(p.createIdentifier("__syncRequire"),void 0,be(ot,Sr),void 0,D(ot,Sr)))}}function D(Je,Sr){var Yr=p.createUniqueName("resolve"),ot=p.createUniqueName("reject"),_t=[p.createParameterDeclaration(void 0,void 0,void 0,Yr),p.createParameterDeclaration(void 0,void 0,void 0,ot)],kt=p.createBlock([p.createExpressionStatement(p.createCallExpression(p.createIdentifier("require"),void 0,[p.createArrayLiteralExpression([Je||p.createOmittedExpression()]),Yr,ot]))]),Yt;E>=2?Yt=p.createArrowFunction(void 0,void 0,_t,void 0,void 0,kt):(Yt=p.createFunctionExpression(void 0,void 0,void 0,void 0,_t,void 0,kt),Sr&&e.setEmitFlags(Yt,8));var vn=p.createNewExpression(p.createIdentifier("Promise"),void 0,[Yt]);return e.getESModuleInterop(y)?p.createCallExpression(p.createPropertyAccessExpression(vn,p.createIdentifier("then")),void 0,[I().createImportStarCallbackHelper()]):vn}function be(Je,Sr){var Yr=p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Promise"),"resolve"),void 0,[]),ot=p.createCallExpression(p.createIdentifier("require"),void 0,Je?[Je]:[]);e.getESModuleInterop(y)&&(ot=I().createImportStarHelper(ot));var _t;return E>=2?_t=p.createArrowFunction(void 0,void 0,[],void 0,void 0,ot):(_t=p.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,p.createBlock([p.createReturnStatement(ot)])),Sr&&e.setEmitFlags(_t,8)),p.createCallExpression(p.createPropertyAccessExpression(Yr,"then"),void 0,[_t])}function ne(Je,Sr){return!e.getESModuleInterop(y)||e.getEmitFlags(Je)&67108864?Sr:e.getExportNeedsImportStarHelper(Je)?I().createImportStarHelper(Sr):Sr}function J(Je,Sr){return!e.getESModuleInterop(y)||e.getEmitFlags(Je)&67108864?Sr:e.getImportNeedsImportStarHelper(Je)?I().createImportStarHelper(Sr):e.getImportNeedsImportDefaultHelper(Je)?I().createImportDefaultHelper(Sr):Sr}function le(Je){var Sr,Yr=e.getNamespaceDeclarationNode(Je);if(F!==e.ModuleKind.AMD)if(Je.importClause){var ot=[];Yr&&!e.isDefaultImport(Je)?ot.push(p.createVariableDeclaration(p.cloneNode(Yr.name),void 0,void 0,J(Je,Te(Je)))):(ot.push(p.createVariableDeclaration(p.getGeneratedNameForNode(Je),void 0,void 0,J(Je,Te(Je)))),Yr&&e.isDefaultImport(Je)&&ot.push(p.createVariableDeclaration(p.cloneNode(Yr.name),void 0,void 0,p.getGeneratedNameForNode(Je)))),Sr=e.append(Sr,e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList(ot,E>=2?2:0)),Je),Je))}else return e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Te(Je)),Je),Je);else Yr&&e.isDefaultImport(Je)&&(Sr=e.append(Sr,p.createVariableStatement(void 0,p.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(p.createVariableDeclaration(p.cloneNode(Yr.name),void 0,void 0,p.getGeneratedNameForNode(Je)),Je),Je)],E>=2?2:0))));if(We(Je)){var _t=e.getOriginalNodeId(Je);k[_t]=ve(k[_t],Je)}else Sr=ve(Sr,Je);return e.singleOrMany(Sr)}function Te(Je){var Sr=e.getExternalModuleNameLiteral(p,Je,X,te,j,y),Yr=[];return Sr&&Yr.push(Sr),p.createCallExpression(p.createIdentifier("require"),void 0,Yr)}function Me(Je){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(Je),"import= for internal module references should be handled in an earlier transformer.");var Sr;if(F!==e.ModuleKind.AMD?e.hasSyntacticModifier(Je,1)?Sr=e.append(Sr,e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Mr(Je.name,Te(Je))),Je),Je)):Sr=e.append(Sr,e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.cloneNode(Je.name),void 0,void 0,Te(Je))],E>=2?2:0)),Je),Je)):e.hasSyntacticModifier(Je,1)&&(Sr=e.append(Sr,e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Mr(p.getExportName(Je),p.getLocalName(Je))),Je),Je))),We(Je)){var Yr=e.getOriginalNodeId(Je);k[Yr]=Ve(k[Yr],Je)}else Sr=Ve(Sr,Je);return e.singleOrMany(Sr)}function Ke(Je){if(!!Je.moduleSpecifier){var Sr=p.getGeneratedNameForNode(Je);if(Je.exportClause&&e.isNamedExports(Je.exportClause)){var Yr=[];F!==e.ModuleKind.AMD&&Yr.push(e.setOriginalNode(e.setTextRange(p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(Sr,void 0,void 0,Te(Je))])),Je),Je));for(var ot=0,_t=Je.exportClause.elements;ot<_t.length;ot++){var kt=_t[ot];if(E===0)Yr.push(e.setOriginalNode(e.setTextRange(p.createExpressionStatement(I().createCreateBindingHelper(Sr,p.createStringLiteralFromNode(kt.propertyName||kt.name),kt.propertyName?p.createStringLiteralFromNode(kt.name):void 0)),kt),kt));else{var Yt=!!e.getESModuleInterop(y)&&!(e.getEmitFlags(Je)&67108864)&&e.idText(kt.propertyName||kt.name)==="default",vn=p.createPropertyAccessExpression(Yt?I().createImportDefaultHelper(Sr):Sr,kt.propertyName||kt.name);Yr.push(e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Mr(p.getExportName(kt),vn,void 0,!0)),kt),kt))}}return e.singleOrMany(Yr)}else if(Je.exportClause){var Yr=[];return Yr.push(e.setOriginalNode(e.setTextRange(p.createExpressionStatement(Mr(p.cloneNode(Je.exportClause.name),ne(Je,F!==e.ModuleKind.AMD?Te(Je):e.isExportNamespaceAsDefaultDeclaration(Je)?Sr:p.createIdentifier(e.idText(Je.exportClause.name))))),Je),Je)),e.singleOrMany(Yr)}else return e.setOriginalNode(e.setTextRange(p.createExpressionStatement(I().createExportStarHelper(F!==e.ModuleKind.AMD?Te(Je):Sr)),Je),Je)}}function Ae(Je){if(!Je.isExportEquals){var Sr,Yr=Je.original;if(Yr&&We(Yr)){var ot=e.getOriginalNodeId(Je);k[ot]=xr(k[ot],p.createIdentifier("default"),e.visitNode(Je.expression,_),Je,!0)}else Sr=xr(Sr,p.createIdentifier("default"),e.visitNode(Je.expression,_),Je,!0);return e.singleOrMany(Sr)}}function Ge(Je){var Sr;if(e.hasSyntacticModifier(Je,1)?Sr=e.append(Sr,e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,e.visitNodes(Je.modifiers,fr,e.isModifier),Je.asteriskToken,p.getDeclarationName(Je,!0,!0),void 0,e.visitNodes(Je.parameters,_),void 0,e.visitEachChild(Je.body,_,u)),Je),Je)):Sr=e.append(Sr,e.visitEachChild(Je,_,u)),We(Je)){var Yr=e.getOriginalNodeId(Je);k[Yr]=Nr(k[Yr],Je)}else Sr=Nr(Sr,Je);return e.singleOrMany(Sr)}function se(Je){var Sr;if(e.hasSyntacticModifier(Je,1)?Sr=e.append(Sr,e.setOriginalNode(e.setTextRange(p.createClassDeclaration(void 0,e.visitNodes(Je.modifiers,fr,e.isModifier),p.getDeclarationName(Je,!0,!0),void 0,e.visitNodes(Je.heritageClauses,_),e.visitNodes(Je.members,_)),Je),Je)):Sr=e.append(Sr,e.visitEachChild(Je,_,u)),We(Je)){var Yr=e.getOriginalNodeId(Je);k[Yr]=Nr(k[Yr],Je)}else Sr=Nr(Sr,Je);return e.singleOrMany(Sr)}function xe(Je){var Sr,Yr,ot;if(e.hasSyntacticModifier(Je,1)){for(var _t=void 0,kt=!1,Yt=0,vn=Je.declarationList.declarations;Yt<vn.length;Yt++){var Mn=vn[Yt];if(e.isIdentifier(Mn.name)&&e.isLocalName(Mn.name))_t||(_t=e.visitNodes(Je.modifiers,fr,e.isModifier)),Yr=e.append(Yr,Mn);else if(Mn.initializer)if(!e.isBindingPattern(Mn.name)&&(e.isArrowFunction(Mn.initializer)||e.isFunctionExpression(Mn.initializer)||e.isClassExpression(Mn.initializer))){var qn=p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),Mn.name),Mn.name),p.createIdentifier(e.getTextOfIdentifierOrLiteral(Mn.name))),nr=p.createVariableDeclaration(Mn.name,Mn.exclamationToken,Mn.type,e.visitNode(Mn.initializer,_));Yr=e.append(Yr,nr),ot=e.append(ot,qn),kt=!0}else ot=e.append(ot,ce(Mn))}if(Yr&&(Sr=e.append(Sr,p.updateVariableStatement(Je,_t,p.updateVariableDeclarationList(Je.declarationList,Yr)))),ot){var Zr=e.setOriginalNode(e.setTextRange(p.createExpressionStatement(p.inlineExpressions(ot)),Je),Je);kt&&e.removeAllComments(Zr),Sr=e.append(Sr,Zr)}}else Sr=e.append(Sr,e.visitEachChild(Je,_,u));if(We(Je)){var ir=e.getOriginalNodeId(Je);k[ir]=gr(k[ir],Je)}else Sr=gr(Sr,Je);return e.singleOrMany(Sr)}function Re(Je,Sr,Yr){var ot=Hr(Je);if(ot){for(var _t=e.isExportName(Je)?Sr:p.createAssignment(Je,Sr),kt=0,Yt=ot;kt<Yt.length;kt++){var vn=Yt[kt];e.setEmitFlags(_t,4),_t=Mr(vn,_t,Yr)}return _t}return p.createAssignment(Je,Sr)}function ce(Je){return e.isBindingPattern(Je.name)?e.flattenDestructuringAssignment(e.visitNode(Je,_),void 0,u,0,!1,Re):p.createAssignment(e.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),Je.name),Je.name),Je.initializer?e.visitNode(Je.initializer,_):p.createVoidZero())}function Ue(Je){if(We(Je)&&Je.original.kind===236){var Sr=e.getOriginalNodeId(Je);k[Sr]=gr(k[Sr],Je.original)}return Je}function We(Je){return(e.getEmitFlags(Je)&4194304)!==0}function Ne(Je){var Sr=e.getOriginalNodeId(Je),Yr=k[Sr];return Yr?(delete k[Sr],e.append(Yr,Je)):Je}function ve(Je,Sr){if(O.exportEquals)return Je;var Yr=Sr.importClause;if(!Yr)return Je;Yr.name&&(Je=ur(Je,Yr));var ot=Yr.namedBindings;if(ot)switch(ot.kind){case 267:Je=ur(Je,ot);break;case 268:for(var _t=0,kt=ot.elements;_t<kt.length;_t++){var Yt=kt[_t];Je=ur(Je,Yt,!0)}break}return Je}function Ve(Je,Sr){return O.exportEquals?Je:ur(Je,Sr)}function gr(Je,Sr){if(O.exportEquals)return Je;for(var Yr=0,ot=Sr.declarationList.declarations;Yr<ot.length;Yr++){var _t=ot[Yr];Je=Er(Je,_t)}return Je}function Er(Je,Sr){if(O.exportEquals)return Je;if(e.isBindingPattern(Sr.name))for(var Yr=0,ot=Sr.name.elements;Yr<ot.length;Yr++){var _t=ot[Yr];e.isOmittedExpression(_t)||(Je=Er(Je,_t))}else e.isGeneratedIdentifier(Sr.name)||(Je=ur(Je,Sr));return Je}function Nr(Je,Sr){if(O.exportEquals)return Je;if(e.hasSyntacticModifier(Sr,1)){var Yr=e.hasSyntacticModifier(Sr,512)?p.createIdentifier("default"):p.getDeclarationName(Sr);Je=xr(Je,Yr,p.getLocalName(Sr),Sr)}return Sr.name&&(Je=ur(Je,Sr)),Je}function ur(Je,Sr,Yr){var ot=p.getDeclarationName(Sr),_t=O.exportSpecifiers.get(e.idText(ot));if(_t)for(var kt=0,Yt=_t;kt<Yt.length;kt++){var vn=Yt[kt];Je=xr(Je,vn.name,ot,vn.name,void 0,Yr)}return Je}function xr(Je,Sr,Yr,ot,_t,kt){return Je=e.append(Je,i(Sr,Yr,ot,_t,kt)),Je}function sr(){var Je;return E===0?Je=p.createExpressionStatement(Mr(p.createIdentifier("__esModule"),p.createTrue())):Je=p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"defineProperty"),void 0,[p.createIdentifier("exports"),p.createStringLiteral("__esModule"),p.createObjectLiteralExpression([p.createPropertyAssignment("value",p.createTrue())])])),e.setEmitFlags(Je,1048576),Je}function i(Je,Sr,Yr,ot,_t){var kt=e.setTextRange(p.createExpressionStatement(Mr(Je,Sr,void 0,_t)),Yr);return e.startOnNewLine(kt),ot||e.setEmitFlags(kt,1536),kt}function Mr(Je,Sr,Yr,ot){return e.setTextRange(ot&&E!==0?p.createCallExpression(p.createPropertyAccessExpression(p.createIdentifier("Object"),"defineProperty"),void 0,[p.createIdentifier("exports"),p.createStringLiteralFromNode(Je),p.createObjectLiteralExpression([p.createPropertyAssignment("enumerable",p.createTrue()),p.createPropertyAssignment("get",p.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,p.createBlock([p.createReturnStatement(Sr)])))])]):p.createAssignment(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(Je)),Sr),Yr)}function fr(Je){switch(Je.kind){case 93:case 88:return}return Je}function Ar(Je,Sr,Yr){Sr.kind===303?(X=Sr,O=K[e.getOriginalNodeId(X)],C(Je,Sr,Yr),X=void 0,O=void 0):C(Je,Sr,Yr)}function de(Je,Sr){return Sr=$(Je,Sr),Sr.id&&x[Sr.id]?Sr:Je===1?qe(Sr):e.isShorthandPropertyAssignment(Sr)?we(Sr):Sr}function we(Je){var Sr=Je.name,Yr=He(Sr);if(Yr!==Sr){if(Je.objectAssignmentInitializer){var ot=p.createAssignment(Yr,Je.objectAssignmentInitializer);return e.setTextRange(p.createPropertyAssignment(Sr,ot),Je)}return e.setTextRange(p.createPropertyAssignment(Sr,Yr),Je)}return Je}function qe(Je){switch(Je.kind){case 79:return He(Je);case 207:return Cr(Je);case 209:return kr(Je);case 220:return lr(Je)}return Je}function Cr(Je){if(e.isIdentifier(Je.expression)){var Sr=He(Je.expression);if(x[e.getNodeId(Sr)]=!0,!e.isIdentifier(Sr))return e.addEmitFlags(p.updateCallExpression(Je,Sr,void 0,Je.arguments),536870912)}return Je}function kr(Je){if(e.isIdentifier(Je.tag)){var Sr=He(Je.tag);if(x[e.getNodeId(Sr)]=!0,!e.isIdentifier(Sr))return e.addEmitFlags(p.updateTaggedTemplateExpression(Je,Sr,void 0,Je.template),536870912)}return Je}function He(Je){var Sr,Yr;if(e.getEmitFlags(Je)&4096){var ot=e.getExternalHelpersModuleName(X);return ot?p.createPropertyAccessExpression(ot,Je):Je}else if(!(e.isGeneratedIdentifier(Je)&&!(Je.autoGenerateFlags&64))&&!e.isLocalName(Je)){var _t=j.getReferencedExportContainer(Je,e.isExportName(Je));if(_t&&_t.kind===303)return e.setTextRange(p.createPropertyAccessExpression(p.createIdentifier("exports"),p.cloneNode(Je)),Je);var kt=j.getReferencedImportDeclaration(Je);if(kt){if(e.isImportClause(kt))return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(kt.parent),p.createIdentifier("default")),Je);if(e.isImportSpecifier(kt)){var Yt=kt.propertyName||kt.name;return e.setTextRange(p.createPropertyAccessExpression(p.getGeneratedNameForNode(((Yr=(Sr=kt.parent)===null||Sr===void 0?void 0:Sr.parent)===null||Yr===void 0?void 0:Yr.parent)||kt),p.cloneNode(Yt)),Je)}}}return Je}function lr(Je){if(e.isAssignmentOperator(Je.operatorToken.kind)&&e.isIdentifier(Je.left)&&!e.isGeneratedIdentifier(Je.left)&&!e.isLocalName(Je.left)&&!e.isDeclarationNameOfEnumOrNamespace(Je.left)){var Sr=Hr(Je.left);if(Sr){for(var Yr=Je,ot=0,_t=Sr;ot<_t.length;ot++){var kt=_t[ot];x[e.getNodeId(Yr)]=!0,Yr=Mr(kt,Yr,Je)}return Yr}}return Je}function Hr(Je){if(!e.isGeneratedIdentifier(Je)){var Sr=j.getReferencedImportDeclaration(Je)||j.getReferencedValueDeclaration(Je);if(Sr)return O&&O.exportedBindings[e.getOriginalNodeId(Sr)]}}}e.transformModule=n;var c={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.factory,g=c.startLexicalEnvironment,p=c.endLexicalEnvironment,I=c.hoistVariableDeclaration,V=c.getCompilerOptions(),L=c.getEmitResolver(),m=c.getEmitHost(),y=c.onSubstituteNode,j=c.onEmitNode;c.onSubstituteNode=ot,c.onEmitNode=Yr,c.enableSubstitution(79),c.enableSubstitution(295),c.enableSubstitution(220),c.enableSubstitution(230),c.enableEmitNotification(303);var te=[],E=[],F=[],$=[],C=[],K,k,X,O,x,ie,Z;return e.chainBundle(c,re);function re(ge){if(ge.isDeclarationFile||!(e.isEffectiveExternalModule(ge,V)||ge.transformFlags&4194304))return ge;var rr=e.getOriginalNodeId(ge);K=ge,ie=ge,k=te[rr]=e.collectExternalModuleInfo(c,ge,L,V),X=u.createUniqueName("exports"),F[rr]=X,O=C[rr]=u.createUniqueName("context");var pr=q(k.externalImports),Lr=P(ge,pr),Ce=u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,void 0,X),u.createParameterDeclaration(void 0,void 0,void 0,O)],void 0,Lr),cr=e.tryGetModuleNameFromFile(u,ge,m,V),$e=u.createArrayLiteralExpression(e.map(pr,function(z){return z.name})),De=e.setEmitFlags(u.updateSourceFile(ge,e.setTextRange(u.createNodeArray([u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("System"),"register"),void 0,cr?[cr,$e,Ce]:[$e,Ce]))]),ge.statements)),1024);return e.outFile(V)||e.moveEmitHelpers(De,Lr,function(z){return!z.scoped}),Z&&($[rr]=Z,Z=void 0),K=void 0,k=void 0,X=void 0,O=void 0,x=void 0,ie=void 0,De}function q(ge){for(var rr=new e.Map,pr=[],Lr=0,Ce=ge;Lr<Ce.length;Lr++){var cr=Ce[Lr],$e=e.getExternalModuleNameLiteral(u,cr,K,m,L,V);if($e){var De=$e.text,z=rr.get(De);z!==void 0?pr[z].externalImports.push(cr):(rr.set(De,pr.length),pr.push({name:$e,externalImports:[cr]}))}}return pr}function P(ge,rr){var pr=[];g();var Lr=e.getStrictOptionValue(V,"alwaysStrict")||!V.noImplicitUseStrict&&e.isExternalModule(K),Ce=u.copyPrologue(ge.statements,pr,Lr,w);pr.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration("__moduleName",void 0,void 0,u.createLogicalAnd(O,u.createPropertyAccessExpression(O,"id")))]))),e.visitNode(k.externalHelpersImportDeclaration,w,e.isStatement);var cr=e.visitNodes(ge.statements,w,e.isStatement,Ce);e.addRange(pr,x),e.insertStatementsAfterStandardPrologue(pr,p());var $e=M(pr),De=ge.transformFlags&1048576?u.createModifiersFromModifierFlags(256):void 0,z=u.createObjectLiteralExpression([u.createPropertyAssignment("setters",H($e,rr)),u.createPropertyAssignment("execute",u.createFunctionExpression(De,void 0,void 0,void 0,[],void 0,u.createBlock(cr,!0)))],!0);return pr.push(u.createReturnStatement(z)),u.createBlock(pr,!0)}function M(ge){if(!!k.hasExportStarsToExportValues){if(!k.exportedNames&&k.exportSpecifiers.size===0){for(var rr=!1,pr=0,Lr=k.externalImports;pr<Lr.length;pr++){var Ce=Lr[pr];if(Ce.kind===271&&Ce.exportClause){rr=!0;break}}if(!rr){var cr=Q(void 0);return ge.push(cr),cr.name}}var $e=[];if(k.exportedNames)for(var De=0,z=k.exportedNames;De<z.length;De++){var ke=z[De];ke.escapedText!=="default"&&$e.push(u.createPropertyAssignment(u.createStringLiteralFromNode(ke),u.createTrue()))}var dr=u.createUniqueName("exportedNames");ge.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(dr,void 0,void 0,u.createObjectLiteralExpression($e,!0))])));var Xe=Q(dr);return ge.push(Xe),Xe.name}}function Q(ge){var rr=u.createUniqueName("exportStar"),pr=u.createIdentifier("m"),Lr=u.createIdentifier("n"),Ce=u.createIdentifier("exports"),cr=u.createStrictInequality(Lr,u.createStringLiteral("default"));return ge&&(cr=u.createLogicalAnd(cr,u.createLogicalNot(u.createCallExpression(u.createPropertyAccessExpression(ge,"hasOwnProperty"),void 0,[Lr])))),u.createFunctionDeclaration(void 0,void 0,void 0,rr,void 0,[u.createParameterDeclaration(void 0,void 0,void 0,pr)],void 0,u.createBlock([u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Ce,void 0,void 0,u.createObjectLiteralExpression([]))])),u.createForInStatement(u.createVariableDeclarationList([u.createVariableDeclaration(Lr)]),pr,u.createBlock([e.setEmitFlags(u.createIfStatement(cr,u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(Ce,Lr),u.createElementAccessExpression(pr,Lr)))),1)])),u.createExpressionStatement(u.createCallExpression(X,void 0,[Ce]))],!0))}function H(ge,rr){for(var pr=[],Lr=0,Ce=rr;Lr<Ce.length;Lr++){for(var cr=Ce[Lr],$e=e.forEach(cr.externalImports,function(yr){return e.getLocalNameForExternalImport(u,yr,K)}),De=$e?u.getGeneratedNameForNode($e):u.createUniqueName(""),z=[],ke=0,dr=cr.externalImports;ke<dr.length;ke++){var Xe=dr[ke],Qe=e.getLocalNameForExternalImport(u,Xe,K);switch(Xe.kind){case 265:if(!Xe.importClause)break;case 264:e.Debug.assert(Qe!==void 0),z.push(u.createExpressionStatement(u.createAssignment(Qe,De)));break;case 271:if(e.Debug.assert(Qe!==void 0),Xe.exportClause)if(e.isNamedExports(Xe.exportClause)){for(var Ir=[],Jr=0,Or=Xe.exportClause.elements;Jr<Or.length;Jr++){var Be=Or[Jr];Ir.push(u.createPropertyAssignment(u.createStringLiteral(e.idText(Be.name)),u.createElementAccessExpression(De,u.createStringLiteral(e.idText(Be.propertyName||Be.name)))))}z.push(u.createExpressionStatement(u.createCallExpression(X,void 0,[u.createObjectLiteralExpression(Ir,!0)])))}else z.push(u.createExpressionStatement(u.createCallExpression(X,void 0,[u.createStringLiteral(e.idText(Xe.exportClause.name)),De])));else z.push(u.createExpressionStatement(u.createCallExpression(ge,void 0,[De])));break}}pr.push(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,void 0,De)],void 0,u.createBlock(z,!0)))}return u.createArrayLiteralExpression(pr,!0)}function w(ge){switch(ge.kind){case 265:return d(ge);case 264:return T(ge);case 271:return B(ge);case 270:return _(ge);default:return xe(ge)}}function d(ge){var rr;if(ge.importClause&&I(e.getLocalNameForExternalImport(u,ge,K)),D(ge)){var pr=e.getOriginalNodeId(ge);E[pr]=ne(E[pr],ge)}else rr=ne(rr,ge);return e.singleOrMany(rr)}function B(ge){e.Debug.assertIsDefined(ge)}function T(ge){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(ge),"import= for internal module references should be handled in an earlier transformer.");var rr;if(I(e.getLocalNameForExternalImport(u,ge,K)),D(ge)){var pr=e.getOriginalNodeId(ge);E[pr]=J(E[pr],ge)}else rr=J(rr,ge);return e.singleOrMany(rr)}function _(ge){if(!ge.isExportEquals){var rr=e.visitNode(ge.expression,de,e.isExpression),pr=ge.original;if(pr&&D(pr)){var Lr=e.getOriginalNodeId(ge);E[Lr]=Ae(E[Lr],u.createIdentifier("default"),rr,!0)}else return Ge(u.createIdentifier("default"),rr,!0)}}function h(ge){if(e.hasSyntacticModifier(ge,1)?x=e.append(x,u.updateFunctionDeclaration(ge,ge.decorators,e.visitNodes(ge.modifiers,Sr,e.isModifier),ge.asteriskToken,u.getDeclarationName(ge,!0,!0),void 0,e.visitNodes(ge.parameters,de,e.isParameterDeclaration),void 0,e.visitNode(ge.body,de,e.isBlock))):x=e.append(x,e.visitEachChild(ge,de,c)),D(ge)){var rr=e.getOriginalNodeId(ge);E[rr]=Me(E[rr],ge)}else x=Me(x,ge)}function R(ge){var rr,pr=u.getLocalName(ge);if(I(pr),rr=e.append(rr,e.setTextRange(u.createExpressionStatement(u.createAssignment(pr,e.setTextRange(u.createClassExpression(e.visitNodes(ge.decorators,de,e.isDecorator),void 0,ge.name,void 0,e.visitNodes(ge.heritageClauses,de,e.isHeritageClause),e.visitNodes(ge.members,de,e.isClassElement)),ge))),ge)),D(ge)){var Lr=e.getOriginalNodeId(ge);E[Lr]=Me(E[Lr],ge)}else rr=Me(rr,ge);return e.singleOrMany(rr)}function b(ge){if(!Y(ge.declarationList))return e.visitNode(ge,de,e.isStatement);for(var rr,pr=e.hasSyntacticModifier(ge,1),Lr=D(ge),Ce=0,cr=ge.declarationList.declarations;Ce<cr.length;Ce++){var $e=cr[Ce];$e.initializer?rr=e.append(rr,pe($e,pr&&!Lr)):G($e)}var De;if(rr&&(De=e.append(De,e.setTextRange(u.createExpressionStatement(u.inlineExpressions(rr)),ge))),Lr){var z=e.getOriginalNodeId(ge);E[z]=le(E[z],ge,pr)}else De=le(De,ge,!1);return e.singleOrMany(De)}function G(ge){if(e.isBindingPattern(ge.name))for(var rr=0,pr=ge.name.elements;rr<pr.length;rr++){var Lr=pr[rr];e.isOmittedExpression(Lr)||G(Lr)}else I(u.cloneNode(ge.name))}function Y(ge){return(e.getEmitFlags(ge)&2097152)===0&&(ie.kind===303||(e.getOriginalNode(ge).flags&3)===0)}function pe(ge,rr){var pr=rr?A:_e;return e.isBindingPattern(ge.name)?e.flattenDestructuringAssignment(ge,de,c,0,!1,pr):ge.initializer?pr(ge.name,e.visitNode(ge.initializer,de,e.isExpression)):ge.name}function A(ge,rr,pr){return Se(ge,rr,pr,!0)}function _e(ge,rr,pr){return Se(ge,rr,pr,!1)}function Se(ge,rr,pr,Lr){return I(u.cloneNode(ge)),Lr?se(ge,Zr(e.setTextRange(u.createAssignment(ge,rr),pr))):Zr(e.setTextRange(u.createAssignment(ge,rr),pr))}function ae(ge){if(D(ge)&&ge.original.kind===236){var rr=e.getOriginalNodeId(ge),pr=e.hasSyntacticModifier(ge.original,1);E[rr]=le(E[rr],ge.original,pr)}return ge}function D(ge){return(e.getEmitFlags(ge)&4194304)!==0}function be(ge){var rr=e.getOriginalNodeId(ge),pr=E[rr];if(pr)return delete E[rr],e.append(pr,ge);var Lr=e.getOriginalNode(ge);return e.isModuleOrEnumDeclaration(Lr)?e.append(Ke(pr,Lr),ge):ge}function ne(ge,rr){if(k.exportEquals)return ge;var pr=rr.importClause;if(!pr)return ge;pr.name&&(ge=Ke(ge,pr));var Lr=pr.namedBindings;if(Lr)switch(Lr.kind){case 267:ge=Ke(ge,Lr);break;case 268:for(var Ce=0,cr=Lr.elements;Ce<cr.length;Ce++){var $e=cr[Ce];ge=Ke(ge,$e)}break}return ge}function J(ge,rr){return k.exportEquals?ge:Ke(ge,rr)}function le(ge,rr,pr){if(k.exportEquals)return ge;for(var Lr=0,Ce=rr.declarationList.declarations;Lr<Ce.length;Lr++){var cr=Ce[Lr];(cr.initializer||pr)&&(ge=Te(ge,cr,pr))}return ge}function Te(ge,rr,pr){if(k.exportEquals)return ge;if(e.isBindingPattern(rr.name))for(var Lr=0,Ce=rr.name.elements;Lr<Ce.length;Lr++){var cr=Ce[Lr];e.isOmittedExpression(cr)||(ge=Te(ge,cr,pr))}else if(!e.isGeneratedIdentifier(rr.name)){var $e=void 0;pr&&(ge=Ae(ge,rr.name,u.getLocalName(rr)),$e=e.idText(rr.name)),ge=Ke(ge,rr,$e)}return ge}function Me(ge,rr){if(k.exportEquals)return ge;var pr;if(e.hasSyntacticModifier(rr,1)){var Lr=e.hasSyntacticModifier(rr,512)?u.createStringLiteral("default"):rr.name;ge=Ae(ge,Lr,u.getLocalName(rr)),pr=e.getTextOfIdentifierOrLiteral(Lr)}return rr.name&&(ge=Ke(ge,rr,pr)),ge}function Ke(ge,rr,pr){if(k.exportEquals)return ge;var Lr=u.getDeclarationName(rr),Ce=k.exportSpecifiers.get(e.idText(Lr));if(Ce)for(var cr=0,$e=Ce;cr<$e.length;cr++){var De=$e[cr];De.name.escapedText!==pr&&(ge=Ae(ge,De.name,Lr))}return ge}function Ae(ge,rr,pr,Lr){return ge=e.append(ge,Ge(rr,pr,Lr)),ge}function Ge(ge,rr,pr){var Lr=u.createExpressionStatement(se(ge,rr));return e.startOnNewLine(Lr),pr||e.setEmitFlags(Lr,1536),Lr}function se(ge,rr){var pr=e.isIdentifier(ge)?u.createStringLiteralFromNode(ge):ge;return e.setEmitFlags(rr,e.getEmitFlags(rr)|1536),e.setCommentRange(u.createCallExpression(X,void 0,[pr,rr]),rr)}function xe(ge){switch(ge.kind){case 236:return b(ge);case 255:return h(ge);case 256:return R(ge);case 241:return Re(ge,!0);case 242:return ce(ge);case 243:return Ue(ge);case 239:return ve(ge);case 240:return Ve(ge);case 249:return gr(ge);case 247:return Er(ge);case 248:return Nr(ge);case 262:return ur(ge);case 288:return xr(ge);case 289:return sr(ge);case 251:return i(ge);case 291:return Mr(ge);case 234:return fr(ge);case 350:return ae(ge);case 351:return be(ge);default:return de(ge)}}function Re(ge,rr){var pr=ie;return ie=ge,ge=u.updateForStatement(ge,e.visitNode(ge.initializer,rr?Ne:we,e.isForInitializer),e.visitNode(ge.condition,de,e.isExpression),e.visitNode(ge.incrementor,we,e.isExpression),e.visitIterationBody(ge.statement,rr?xe:de,c)),ie=pr,ge}function ce(ge){var rr=ie;return ie=ge,ge=u.updateForInStatement(ge,Ne(ge.initializer),e.visitNode(ge.expression,de,e.isExpression),e.visitIterationBody(ge.statement,xe,c)),ie=rr,ge}function Ue(ge){var rr=ie;return ie=ge,ge=u.updateForOfStatement(ge,ge.awaitModifier,Ne(ge.initializer),e.visitNode(ge.expression,de,e.isExpression),e.visitIterationBody(ge.statement,xe,c)),ie=rr,ge}function We(ge){return e.isVariableDeclarationList(ge)&&Y(ge)}function Ne(ge){if(We(ge)){for(var rr=void 0,pr=0,Lr=ge.declarations;pr<Lr.length;pr++){var Ce=Lr[pr];rr=e.append(rr,pe(Ce,!1)),Ce.initializer||G(Ce)}return rr?u.inlineExpressions(rr):u.createOmittedExpression()}else return e.visitNode(ge,we,e.isExpression)}function ve(ge){return u.updateDoStatement(ge,e.visitIterationBody(ge.statement,xe,c),e.visitNode(ge.expression,de,e.isExpression))}function Ve(ge){return u.updateWhileStatement(ge,e.visitNode(ge.expression,de,e.isExpression),e.visitIterationBody(ge.statement,xe,c))}function gr(ge){return u.updateLabeledStatement(ge,ge.label,e.visitNode(ge.statement,xe,e.isStatement,u.liftToBlock))}function Er(ge){return u.updateWithStatement(ge,e.visitNode(ge.expression,de,e.isExpression),e.visitNode(ge.statement,xe,e.isStatement,u.liftToBlock))}function Nr(ge){return u.updateSwitchStatement(ge,e.visitNode(ge.expression,de,e.isExpression),e.visitNode(ge.caseBlock,xe,e.isCaseBlock))}function ur(ge){var rr=ie;return ie=ge,ge=u.updateCaseBlock(ge,e.visitNodes(ge.clauses,xe,e.isCaseOrDefaultClause)),ie=rr,ge}function xr(ge){return u.updateCaseClause(ge,e.visitNode(ge.expression,de,e.isExpression),e.visitNodes(ge.statements,xe,e.isStatement))}function sr(ge){return e.visitEachChild(ge,xe,c)}function i(ge){return e.visitEachChild(ge,xe,c)}function Mr(ge){var rr=ie;return ie=ge,ge=u.updateCatchClause(ge,ge.variableDeclaration,e.visitNode(ge.block,xe,e.isBlock)),ie=rr,ge}function fr(ge){var rr=ie;return ie=ge,ge=e.visitEachChild(ge,xe,c),ie=rr,ge}function Ar(ge,rr){if(!(ge.transformFlags&71305216))return ge;switch(ge.kind){case 241:return Re(ge,!1);case 237:return qe(ge);case 211:return Cr(ge,rr);case 348:return kr(ge,rr);case 220:if(e.isDestructuringAssignment(ge))return lr(ge,rr);break;case 207:if(e.isImportCall(ge))return He(ge);break;case 218:case 219:return Je(ge,rr)}return e.visitEachChild(ge,de,c)}function de(ge){return Ar(ge,!1)}function we(ge){return Ar(ge,!0)}function qe(ge){return u.updateExpressionStatement(ge,e.visitNode(ge.expression,we,e.isExpression))}function Cr(ge,rr){return u.updateParenthesizedExpression(ge,e.visitNode(ge.expression,rr?we:de,e.isExpression))}function kr(ge,rr){return u.updatePartiallyEmittedExpression(ge,e.visitNode(ge.expression,rr?we:de,e.isExpression))}function He(ge){var rr=e.getExternalModuleNameLiteral(u,ge,K,m,L,V),pr=e.visitNode(e.firstOrUndefined(ge.arguments),de),Lr=rr&&(!pr||!e.isStringLiteral(pr)||pr.text!==rr.text)?rr:pr;return u.createCallExpression(u.createPropertyAccessExpression(O,u.createIdentifier("import")),void 0,Lr?[Lr]:[])}function lr(ge,rr){return Hr(ge.left)?e.flattenDestructuringAssignment(ge,de,c,0,!rr):e.visitEachChild(ge,de,c)}function Hr(ge){if(e.isAssignmentExpression(ge,!0))return Hr(ge.left);if(e.isSpreadElement(ge))return Hr(ge.expression);if(e.isObjectLiteralExpression(ge))return e.some(ge.properties,Hr);if(e.isArrayLiteralExpression(ge))return e.some(ge.elements,Hr);if(e.isShorthandPropertyAssignment(ge))return Hr(ge.name);if(e.isPropertyAssignment(ge))return Hr(ge.initializer);if(e.isIdentifier(ge)){var rr=L.getReferencedExportContainer(ge);return rr!==void 0&&rr.kind===303}else return!1}function Je(ge,rr){if((ge.operator===45||ge.operator===46)&&e.isIdentifier(ge.operand)&&!e.isGeneratedIdentifier(ge.operand)&&!e.isLocalName(ge.operand)&&!e.isDeclarationNameOfEnumOrNamespace(ge.operand)){var pr=nr(ge.operand);if(pr){var Lr=void 0,Ce=e.visitNode(ge.operand,de,e.isExpression);e.isPrefixUnaryExpression(ge)?Ce=u.updatePrefixUnaryExpression(ge,Ce):(Ce=u.updatePostfixUnaryExpression(ge,Ce),rr||(Lr=u.createTempVariable(I),Ce=u.createAssignment(Lr,Ce),e.setTextRange(Ce,ge)),Ce=u.createComma(Ce,u.cloneNode(ge.operand)),e.setTextRange(Ce,ge));for(var cr=0,$e=pr;cr<$e.length;cr++){var De=$e[cr];Ce=se(De,Zr(Ce))}return Lr&&(Ce=u.createComma(Ce,Lr),e.setTextRange(Ce,ge)),Ce}}return e.visitEachChild(ge,de,c)}function Sr(ge){switch(ge.kind){case 93:case 88:return}return ge}function Yr(ge,rr,pr){if(rr.kind===303){var Lr=e.getOriginalNodeId(rr);K=rr,k=te[Lr],X=F[Lr],Z=$[Lr],O=C[Lr],Z&&delete $[Lr],j(ge,rr,pr),K=void 0,k=void 0,X=void 0,O=void 0,Z=void 0}else j(ge,rr,pr)}function ot(ge,rr){return rr=y(ge,rr),ir(rr)?rr:ge===1?Yt(rr):ge===4?_t(rr):rr}function _t(ge){switch(ge.kind){case 295:return kt(ge)}return ge}function kt(ge){var rr,pr,Lr=ge.name;if(!e.isGeneratedIdentifier(Lr)&&!e.isLocalName(Lr)){var Ce=L.getReferencedImportDeclaration(Lr);if(Ce){if(e.isImportClause(Ce))return e.setTextRange(u.createPropertyAssignment(u.cloneNode(Lr),u.createPropertyAccessExpression(u.getGeneratedNameForNode(Ce.parent),u.createIdentifier("default"))),ge);if(e.isImportSpecifier(Ce))return e.setTextRange(u.createPropertyAssignment(u.cloneNode(Lr),u.createPropertyAccessExpression(u.getGeneratedNameForNode(((pr=(rr=Ce.parent)===null||rr===void 0?void 0:rr.parent)===null||pr===void 0?void 0:pr.parent)||Ce),u.cloneNode(Ce.propertyName||Ce.name))),ge)}}return ge}function Yt(ge){switch(ge.kind){case 79:return vn(ge);case 220:return Mn(ge);case 230:return qn(ge)}return ge}function vn(ge){var rr,pr;if(e.getEmitFlags(ge)&4096){var Lr=e.getExternalHelpersModuleName(K);return Lr?u.createPropertyAccessExpression(Lr,ge):ge}if(!e.isGeneratedIdentifier(ge)&&!e.isLocalName(ge)){var Ce=L.getReferencedImportDeclaration(ge);if(Ce){if(e.isImportClause(Ce))return e.setTextRange(u.createPropertyAccessExpression(u.getGeneratedNameForNode(Ce.parent),u.createIdentifier("default")),ge);if(e.isImportSpecifier(Ce))return e.setTextRange(u.createPropertyAccessExpression(u.getGeneratedNameForNode(((pr=(rr=Ce.parent)===null||rr===void 0?void 0:rr.parent)===null||pr===void 0?void 0:pr.parent)||Ce),u.cloneNode(Ce.propertyName||Ce.name)),ge)}}return ge}function Mn(ge){if(e.isAssignmentOperator(ge.operatorToken.kind)&&e.isIdentifier(ge.left)&&!e.isGeneratedIdentifier(ge.left)&&!e.isLocalName(ge.left)&&!e.isDeclarationNameOfEnumOrNamespace(ge.left)){var rr=nr(ge.left);if(rr){for(var pr=ge,Lr=0,Ce=rr;Lr<Ce.length;Lr++){var cr=Ce[Lr];pr=se(cr,Zr(pr))}return pr}}return ge}function qn(ge){return e.isImportMeta(ge)?u.createPropertyAccessExpression(O,u.createIdentifier("meta")):ge}function nr(ge){var rr;if(!e.isGeneratedIdentifier(ge)){var pr=L.getReferencedImportDeclaration(ge)||L.getReferencedValueDeclaration(ge);if(pr){var Lr=L.getReferencedExportContainer(ge,!1);Lr&&Lr.kind===303&&(rr=e.append(rr,u.getDeclarationName(pr))),rr=e.addRange(rr,k&&k.exportedBindings[e.getOriginalNodeId(pr)])}}return rr}function Zr(ge){return Z===void 0&&(Z=[]),Z[e.getNodeId(ge)]=!0,ge}function ir(ge){return Z&&ge.id&&Z[ge.id]}}e.transformSystemModule=n})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.factory,g=c.getEmitHelperFactory,p=c.getEmitHost(),I=c.getEmitResolver(),V=c.getCompilerOptions(),L=e.getEmitScriptTarget(V),m=c.onEmitNode,y=c.onSubstituteNode;c.onEmitNode=ie,c.onSubstituteNode=Z,c.enableEmitNotification(303),c.enableSubstitution(79);var j,te,E;return e.chainBundle(c,F);function F(q){if(q.isDeclarationFile)return q;if(e.isExternalModule(q)||V.isolatedModules){te=q,E=void 0;var P=$(q);return te=void 0,E&&(P=u.updateSourceFile(P,e.setTextRange(u.createNodeArray(e.insertStatementsAfterCustomPrologue(P.statements.slice(),E)),P.statements))),!e.isExternalModule(q)||e.some(P.statements,e.isExternalModuleIndicator)?P:u.updateSourceFile(P,e.setTextRange(u.createNodeArray(Bt(Bt([],P.statements,!0),[e.createEmptyExports(u)],!1)),P.statements))}return q}function $(q){var P=e.createExternalHelpersImportDeclarationIfNeeded(u,g(),q,V);if(P){var M=[],Q=u.copyPrologue(q.statements,M);return e.append(M,P),e.addRange(M,e.visitNodes(q.statements,C,e.isStatement,Q)),u.updateSourceFile(q,e.setTextRange(u.createNodeArray(M),q.statements))}else return e.visitEachChild(q,C,c)}function C(q){switch(q.kind){case 264:return e.getEmitScriptTarget(V)>=e.ModuleKind.ES2020?k(q):void 0;case 270:return O(q);case 271:var P=q;return x(P)}return q}function K(q){var P=e.getExternalModuleNameLiteral(u,q,e.Debug.checkDefined(te),p,I,V),M=[];if(P&&M.push(P),!E){var Q=u.createUniqueName("_createRequire",48),H=u.createImportDeclaration(void 0,void 0,u.createImportClause(!1,void 0,u.createNamedImports([u.createImportSpecifier(!1,u.createIdentifier("createRequire"),Q)])),u.createStringLiteral("module")),w=u.createUniqueName("__require",48),d=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(w,void 0,void 0,u.createCallExpression(u.cloneNode(Q),void 0,[u.createPropertyAccessExpression(u.createMetaProperty(100,u.createIdentifier("meta")),u.createIdentifier("url"))]))],L>=2?2:0));E=[H,d]}var B=E[1].declarationList.declarations[0].name;return e.Debug.assertNode(B,e.isIdentifier),u.createCallExpression(u.cloneNode(B),void 0,M)}function k(q){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(q),"import= for internal module references should be handled in an earlier transformer.");var P;return P=e.append(P,e.setOriginalNode(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.cloneNode(q.name),void 0,void 0,K(q))],L>=2?2:0)),q),q)),P=X(P,q),e.singleOrMany(P)}function X(q,P){return e.hasSyntacticModifier(P,1)&&(q=e.append(q,u.createExportDeclaration(void 0,void 0,P.isTypeOnly,u.createNamedExports([u.createExportSpecifier(!1,void 0,e.idText(P.name))])))),q}function O(q){return q.isExportEquals?void 0:q}function x(q){if(V.module!==void 0&&V.module>e.ModuleKind.ES2015||!q.exportClause||!e.isNamespaceExport(q.exportClause)||!q.moduleSpecifier)return q;var P=q.exportClause.name,M=u.getGeneratedNameForNode(P),Q=u.createImportDeclaration(void 0,void 0,u.createImportClause(!1,void 0,u.createNamespaceImport(M)),q.moduleSpecifier,q.assertClause);e.setOriginalNode(Q,q.exportClause);var H=e.isExportNamespaceAsDefaultDeclaration(q)?u.createExportDefault(M):u.createExportDeclaration(void 0,void 0,!1,u.createNamedExports([u.createExportSpecifier(!1,M,P)]));return e.setOriginalNode(H,q),[Q,H]}function ie(q,P,M){e.isSourceFile(P)?((e.isExternalModule(P)||V.isolatedModules)&&V.importHelpers&&(j=new e.Map),m(q,P,M),j=void 0):m(q,P,M)}function Z(q,P){return P=y(q,P),j&&e.isIdentifier(P)&&e.getEmitFlags(P)&4096?re(P):P}function re(q){var P=e.idText(q),M=j.get(P);return M||j.set(P,M=u.createUniqueName(P,48)),M}}e.transformECMAScriptModule=n})(mr||(mr={}));var mr;(function(e){function n(c){var u=c.onSubstituteNode,g=c.onEmitNode,p=e.transformECMAScriptModule(c),I=c.onSubstituteNode,V=c.onEmitNode;c.onSubstituteNode=u,c.onEmitNode=g;var L=e.transformModule(c),m=c.onSubstituteNode,y=c.onEmitNode;c.onSubstituteNode=te,c.onEmitNode=E,c.enableSubstitution(303),c.enableEmitNotification(303);var j;return C;function te(k,X){return e.isSourceFile(X)?(j=X,u(k,X)):j?j.impliedNodeFormat===e.ModuleKind.ESNext?I(k,X):m(k,X):u(k,X)}function E(k,X,O){return e.isSourceFile(X)&&(j=X),j?j.impliedNodeFormat===e.ModuleKind.ESNext?V(k,X,O):y(k,X,O):g(k,X,O)}function F(k){return k.impliedNodeFormat===e.ModuleKind.ESNext?p:L}function $(k){if(k.isDeclarationFile)return k;j=k;var X=F(k)(k);return j=void 0,e.Debug.assert(e.isSourceFile(X)),X}function C(k){return k.kind===303?$(k):K(k)}function K(k){return c.factory.createBundle(e.map(k.sourceFiles,$),k.prepends)}}e.transformNodeModule=n})(mr||(mr={}));var mr;(function(e){function n(g){return e.isVariableDeclaration(g)||e.isPropertyDeclaration(g)||e.isPropertySignature(g)||e.isBindingElement(g)||e.isSetAccessor(g)||e.isGetAccessor(g)||e.isConstructSignatureDeclaration(g)||e.isCallSignatureDeclaration(g)||e.isMethodDeclaration(g)||e.isMethodSignature(g)||e.isFunctionDeclaration(g)||e.isParameter(g)||e.isTypeParameterDeclaration(g)||e.isExpressionWithTypeArguments(g)||e.isImportEqualsDeclaration(g)||e.isTypeAliasDeclaration(g)||e.isConstructorDeclaration(g)||e.isIndexSignatureDeclaration(g)||e.isPropertyAccessExpression(g)||e.isJSDocTypeAlias(g)}e.canProduceDiagnostics=n;function c(g){if(e.isSetAccessor(g)||e.isGetAccessor(g))return p;return e.isMethodSignature(g)||e.isMethodDeclaration(g)?V:u(g);function p(m){var y=I(m);return y!==void 0?{diagnosticMessage:y,errorNode:g,typeName:g.name}:void 0}function I(m){return e.isStatic(g)?m.errorModuleName?m.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:g.parent.kind===256?m.errorModuleName?m.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:m.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function V(m){var y=L(m);return y!==void 0?{diagnosticMessage:y,errorNode:g,typeName:g.name}:void 0}function L(m){return e.isStatic(g)?m.errorModuleName?m.accessibility===2?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:g.parent.kind===256?m.errorModuleName?m.accessibility===2?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:m.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}}e.createGetSymbolAccessibilityDiagnosticForNodeName=c;function u(g){if(e.isVariableDeclaration(g)||e.isPropertyDeclaration(g)||e.isPropertySignature(g)||e.isPropertyAccessExpression(g)||e.isBindingElement(g)||e.isConstructorDeclaration(g))return I;return e.isSetAccessor(g)||e.isGetAccessor(g)?V:e.isConstructSignatureDeclaration(g)||e.isCallSignatureDeclaration(g)||e.isMethodDeclaration(g)||e.isMethodSignature(g)||e.isFunctionDeclaration(g)||e.isIndexSignatureDeclaration(g)?L:e.isParameter(g)?e.isParameterPropertyDeclaration(g,g.parent)&&e.hasSyntacticModifier(g.parent,8)?I:m:e.isTypeParameterDeclaration(g)?j:e.isExpressionWithTypeArguments(g)?te:e.isImportEqualsDeclaration(g)?E:e.isTypeAliasDeclaration(g)||e.isJSDocTypeAlias(g)?F:e.Debug.assertNever(g,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[g.kind]));function p($){if(g.kind===253||g.kind===202)return $.errorModuleName?$.accessibility===2?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;if(g.kind===166||g.kind===205||g.kind===165||g.kind===163&&e.hasSyntacticModifier(g.parent,8))return e.isStatic(g)?$.errorModuleName?$.accessibility===2?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:g.parent.kind===256||g.kind===163?$.errorModuleName?$.accessibility===2?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:$.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}function I($){var C=p($);return C!==void 0?{diagnosticMessage:C,errorNode:g,typeName:g.name}:void 0}function V($){var C;return g.kind===172?e.isStatic(g)?C=$.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:C=$.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(g)?C=$.errorModuleName?$.accessibility===2?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:C=$.errorModuleName?$.accessibility===2?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:C,errorNode:g.name,typeName:g.name}}function L($){var C;switch(g.kind){case 174:C=$.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 173:C=$.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 175:C=$.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 168:case 167:e.isStatic(g)?C=$.errorModuleName?$.accessibility===2?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:g.parent.kind===256?C=$.errorModuleName?$.accessibility===2?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:C=$.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 255:C=$.errorModuleName?$.accessibility===2?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+g.kind)}return{diagnosticMessage:C,errorNode:g.name||g}}function m($){var C=y($);return C!==void 0?{diagnosticMessage:C,errorNode:g,typeName:g.name}:void 0}function y($){switch(g.parent.kind){case 170:return $.errorModuleName?$.accessibility===2?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 174:case 179:return $.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 173:return $.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 175:return $.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 168:case 167:return e.isStatic(g.parent)?$.errorModuleName?$.accessibility===2?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:g.parent.parent.kind===256?$.errorModuleName?$.accessibility===2?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:$.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 255:case 178:return $.errorModuleName?$.accessibility===2?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 172:case 171:return $.errorModuleName?$.accessibility===2?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[g.parent.kind]))}}function j(){var $;switch(g.parent.kind){case 256:$=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 257:$=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 194:$=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 179:case 174:$=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 173:$=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 168:case 167:e.isStatic(g.parent)?$=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:g.parent.parent.kind===256?$=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:$=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 178:case 255:$=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 258:$=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+g.parent.kind)}return{diagnosticMessage:$,errorNode:g,typeName:g.name}}function te(){var $;return e.isClassDeclaration(g.parent.parent)?$=e.isHeritageClause(g.parent)&&g.parent.token===117?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:g.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:$=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:$,errorNode:g,typeName:e.getNameOfDeclaration(g.parent.parent)}}function E(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:g,typeName:g.name}}function F($){return{diagnosticMessage:$.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(g)?e.Debug.checkDefined(g.typeExpression):g.type,typeName:e.isJSDocTypeAlias(g)?e.getNameOfDeclaration(g):g.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=u})(mr||(mr={}));var mr;(function(e){function n(E,F,$){var C=E.getCompilerOptions(),K=e.transformNodes(F,E,e.factory,C,$?[$]:e.filter(E.getSourceFiles(),e.isSourceFileNotJson),[p],!1);return K.diagnostics}e.getDeclarationDiagnostics=n;function c(E,F){var $=F.text.substring(E.pos,E.end);return e.stringContains($,"@internal")}function u(E,F){var $=e.getParseTreeNode(E);if($&&$.kind===163){var C=$.parent.parameters.indexOf($),K=C>0?$.parent.parameters[C-1]:void 0,k=F.text,X=K?e.concatenate(e.getTrailingCommentRanges(k,e.skipTrivia(k,K.end+1,!1,!0)),e.getLeadingCommentRanges(k,E.pos)):e.getTrailingCommentRanges(k,e.skipTrivia(k,E.pos,!1,!0));return X&&X.length&&c(e.last(X),F)}var O=$&&e.getLeadingCommentRangesOfNode($,F);return!!e.forEach(O,function(x){return c(x,F)})}e.isInternalDeclaration=u;var g=531469;function p(E){var F=function(){return e.Debug.fail("Diagnostic emitted without context")},$=F,C=!0,K=!1,k=!1,X=!1,O=!1,x,ie,Z,re,q,P,M=E.factory,Q=E.getEmitHost(),H={trackSymbol:ae,reportInaccessibleThisError:le,reportInaccessibleUniqueSymbolError:ne,reportCyclicStructureError:J,reportPrivateInBaseOfClassExpression:D,reportLikelyUnsafeImportRequiredError:Te,reportTruncationError:Me,moduleResolverHost:Q,trackReferencedAmbientModule:A,trackExternalModuleSymbolOfImportTypeNode:Se,reportNonlocalAugmentation:Ke,reportNonSerializableProperty:Ae},w,d,B,T,_,h,R=E.getEmitResolver(),b=E.getCompilerOptions(),G=b.noResolve,Y=b.stripInternal;return se;function pe(nr){if(!!nr){ie=ie||new e.Set;for(var Zr=0,ir=nr;Zr<ir.length;Zr++){var ge=ir[Zr];ie.add(ge)}}}function A(nr,Zr){var ir=R.getTypeReferenceDirectivesForSymbol(Zr,67108863);if(e.length(ir))return pe(ir);var ge=e.getSourceFileOfNode(nr);T.set(e.getOriginalNodeId(ge),ge)}function _e(nr){if(nr.accessibility===0){if(nr&&nr.aliasesToMakeVisible)if(!Z)Z=nr.aliasesToMakeVisible;else for(var Zr=0,ir=nr.aliasesToMakeVisible;Zr<ir.length;Zr++){var ge=ir[Zr];e.pushIfUnique(Z,ge)}}else{var rr=$(nr);if(rr)return rr.typeName?E.addDiagnostic(e.createDiagnosticForNode(nr.errorNode||rr.errorNode,rr.diagnosticMessage,e.getTextOfNode(rr.typeName),nr.errorSymbolName,nr.errorModuleName)):E.addDiagnostic(e.createDiagnosticForNode(nr.errorNode||rr.errorNode,rr.diagnosticMessage,nr.errorSymbolName,nr.errorModuleName)),!0}return!1}function Se(nr){K||(P||(P=[])).push(nr)}function ae(nr,Zr,ir){if(nr.flags&262144)return!1;var ge=_e(R.isSymbolAccessible(nr,Zr,ir,!0));return pe(R.getTypeReferenceDirectivesForSymbol(nr,ir)),ge}function D(nr){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,nr))}function be(){return w?e.declarationNameToString(w):d&&e.getNameOfDeclaration(d)?e.declarationNameToString(e.getNameOfDeclaration(d)):d&&e.isExportAssignment(d)?d.isExportEquals?"export=":"default":"(Missing)"}function ne(){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,be(),"unique symbol"))}function J(){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,be()))}function le(){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,be(),"this"))}function Te(nr){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,be(),nr))}function Me(){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Ke(nr,Zr,ir){var ge,rr=(ge=Zr.declarations)===null||ge===void 0?void 0:ge.find(function($e){return e.getSourceFileOfNode($e)===nr}),pr=e.filter(ir.declarations,function($e){return e.getSourceFileOfNode($e)!==nr});if(pr)for(var Lr=0,Ce=pr;Lr<Ce.length;Lr++){var cr=Ce[Lr];E.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(cr,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(rr,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}}function Ae(nr){(w||d)&&E.addDiagnostic(e.createDiagnosticForNode(w||d,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,nr))}function Ge(nr,Zr){var ir=$;$=function(rr){return rr.errorNode&&e.canProduceDiagnostics(rr.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(rr.errorNode)(rr):{diagnosticMessage:rr.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:rr.errorNode||nr}};var ge=R.getDeclarationStatementsForSourceFile(nr,g,H,Zr);return $=ir,ge}function se(nr){if(nr.kind===303&&nr.isDeclarationFile)return nr;if(nr.kind===304){K=!0,T=new e.Map,_=new e.Map;var Zr=!1,ir=M.createBundle(e.map(nr.sourceFiles,function(Qe){if(!Qe.isDeclarationFile){if(Zr=Zr||Qe.hasNoDefaultLib,B=Qe,x=Qe,Z=void 0,q=!1,re=new e.Map,$=F,X=!1,O=!1,xe(Qe,T),Re(Qe,_),e.isExternalOrCommonJsModule(Qe)||e.isJsonSourceFile(Qe)){k=!1,C=!1;var Ir=e.isSourceFileJS(Qe)?M.createNodeArray(Ge(Qe,!0)):e.visitNodes(Qe.statements,kr),Jr=M.updateSourceFile(Qe,[M.createModuleDeclaration([],[M.createModifier(135)],M.createStringLiteral(e.getResolvedExternalModuleName(E.getEmitHost(),Qe)),M.createModuleBlock(e.setTextRange(M.createNodeArray(we(Ir)),Qe.statements)))],!0,[],[],!1,[]);return Jr}C=!0;var Or=e.isSourceFileJS(Qe)?M.createNodeArray(Ge(Qe)):e.visitNodes(Qe.statements,kr);return M.updateSourceFile(Qe,we(Or),!0,[],[],!1,[])}}),e.mapDefined(nr.prepends,function(Qe){if(Qe.kind===306){var Ir=e.createUnparsedSourceFile(Qe,"dts",Y);return Zr=Zr||!!Ir.hasNoDefaultLib,xe(Ir,T),pe(Ir.typeReferenceDirectives),Re(Ir,_),Ir}return Qe}));ir.syntheticFileReferences=[],ir.syntheticTypeReferences=ke(),ir.syntheticLibReferences=z(),ir.hasNoDefaultLib=Zr;var ge=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(nr,Q,!0).declarationFilePath)),rr=Xe(ir.syntheticFileReferences,ge);return T.forEach(rr),ir}C=!0,X=!1,O=!1,x=nr,B=nr,$=F,K=!1,k=!1,q=!1,Z=void 0,re=new e.Map,ie=void 0,T=xe(B,new e.Map),_=Re(B,new e.Map);var pr=[],Lr=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(nr,Q,!0).declarationFilePath)),Ce=Xe(pr,Lr),cr;if(e.isSourceFileJS(B))cr=M.createNodeArray(Ge(nr)),T.forEach(Ce),h=e.filter(cr,e.isAnyImportSyntax);else{var $e=e.visitNodes(nr.statements,kr);cr=e.setTextRange(M.createNodeArray(we($e)),nr.statements),T.forEach(Ce),h=e.filter(cr,e.isAnyImportSyntax),e.isExternalModule(nr)&&(!k||X&&!O)&&(cr=e.setTextRange(M.createNodeArray(Bt(Bt([],cr,!0),[e.createEmptyExports(M)],!1)),cr))}var De=M.updateSourceFile(nr,cr,!0,pr,ke(),nr.hasNoDefaultLib,z());return De.exportedModulesFromDeclarationEmit=P,De;function z(){return e.map(e.arrayFrom(_.keys()),function(Qe){return{fileName:Qe,pos:-1,end:-1}})}function ke(){return ie?e.mapDefined(e.arrayFrom(ie.keys()),dr):[]}function dr(Qe){if(h)for(var Ir=0,Jr=h;Ir<Jr.length;Ir++){var Or=Jr[Ir];if(e.isImportEqualsDeclaration(Or)&&e.isExternalModuleReference(Or.moduleReference)){var Be=Or.moduleReference.expression;if(e.isStringLiteralLike(Be)&&Be.text===Qe)return}else if(e.isImportDeclaration(Or)&&e.isStringLiteral(Or.moduleSpecifier)&&Or.moduleSpecifier.text===Qe)return}return{fileName:Qe,pos:-1,end:-1}}function Xe(Qe,Ir){return function(Jr){var Or;if(Jr.isDeclarationFile)Or=Jr.fileName;else{if(K&&e.contains(nr.sourceFiles,Jr))return;var Be=e.getOutputPathsFor(Jr,Q,!0);Or=Be.declarationFilePath||Be.jsFilePath||Jr.fileName}if(Or){var yr=e.moduleSpecifiers.getModuleSpecifier(b,B,e.toPath(Ir,Q.getCurrentDirectory(),Q.getCanonicalFileName),e.toPath(Or,Q.getCurrentDirectory(),Q.getCanonicalFileName),Q);if(!e.pathIsRelative(yr)){pe([yr]);return}var Rr=e.getRelativePathToDirectoryOrUrl(Ir,Or,Q.getCurrentDirectory(),Q.getCanonicalFileName,!1);if(e.startsWith(Rr,"./")&&e.hasExtension(Rr)&&(Rr=Rr.substring(2)),e.startsWith(Rr,"node_modules/")||e.pathContainsNodeModules(Rr))return;Qe.push({pos:-1,end:-1,fileName:Rr})}}}}function xe(nr,Zr){return G||!e.isUnparsedSource(nr)&&e.isSourceFileJS(nr)||e.forEach(nr.referencedFiles,function(ir){var ge=Q.getSourceFileFromReference(nr,ir);ge&&Zr.set(e.getOriginalNodeId(ge),ge)}),Zr}function Re(nr,Zr){return e.forEach(nr.libReferenceDirectives,function(ir){var ge=Q.getLibFileFromReference(ir);ge&&Zr.set(e.toFileNameLowerCase(ir.fileName),!0)}),Zr}function ce(nr){if(nr.kind===79)return nr;return nr.kind===201?M.updateArrayBindingPattern(nr,e.visitNodes(nr.elements,Zr)):M.updateObjectBindingPattern(nr,e.visitNodes(nr.elements,Zr));function Zr(ir){return ir.kind===226?ir:M.updateBindingElement(ir,ir.dotDotDotToken,ir.propertyName,ce(ir.name),We(ir)?ir.initializer:void 0)}}function Ue(nr,Zr,ir){var ge;q||(ge=$,$=e.createGetSymbolAccessibilityDiagnosticForNode(nr));var rr=M.updateParameterDeclaration(nr,void 0,V(nr,Zr),nr.dotDotDotToken,ce(nr.name),R.isOptionalParameter(nr)?nr.questionToken||M.createToken(57):void 0,ve(nr,ir||nr.type,!0),Ne(nr));return q||($=ge),rr}function We(nr){return y(nr)&&R.isLiteralConstDeclaration(e.getParseTreeNode(nr))}function Ne(nr){if(We(nr))return R.createLiteralConstValue(e.getParseTreeNode(nr),H)}function ve(nr,Zr,ir){if(!ir&&e.hasEffectiveModifier(nr,8)||We(nr))return;var ge=nr.kind===163&&(R.isRequiredInitializedParameter(nr)||R.isOptionalUninitializedParameterProperty(nr));if(Zr&&!ge)return e.visitNode(Zr,qe);if(!e.getParseTreeNode(nr))return Zr?e.visitNode(Zr,qe):M.createKeywordTypeNode(130);if(nr.kind===172)return M.createKeywordTypeNode(130);w=nr.name;var rr;if(q||(rr=$,$=e.createGetSymbolAccessibilityDiagnosticForNode(nr)),nr.kind===253||nr.kind===202)return pr(R.createTypeOfDeclaration(nr,x,g,H));if(nr.kind===163||nr.kind===166||nr.kind===165)return nr.initializer?pr(R.createTypeOfDeclaration(nr,x,g,H,ge)||R.createTypeOfExpression(nr.initializer,x,g,H)):pr(R.createTypeOfDeclaration(nr,x,g,H,ge));return pr(R.createReturnTypeOfSignatureDeclaration(nr,x,g,H));function pr(Lr){return w=void 0,q||($=rr),Lr||M.createKeywordTypeNode(130)}}function Ve(nr){switch(nr=e.getParseTreeNode(nr),nr.kind){case 255:case 260:case 257:case 256:case 258:case 259:return!R.isDeclarationVisible(nr);case 253:return!Er(nr);case 264:case 265:case 271:case 270:return!1;case 169:return!0}return!1}function gr(nr){var Zr;if(nr.body)return!0;var ir=(Zr=nr.symbol.declarations)===null||Zr===void 0?void 0:Zr.filter(function(ge){return e.isFunctionDeclaration(ge)&&!ge.body});return!ir||ir.indexOf(nr)===ir.length-1}function Er(nr){return e.isOmittedExpression(nr)?!1:e.isBindingPattern(nr.name)?e.some(nr.name.elements,Er):R.isDeclarationVisible(nr)}function Nr(nr,Zr,ir){if(!e.hasEffectiveModifier(nr,8)){var ge=e.map(Zr,function(rr){return Ue(rr,ir)});if(!!ge)return M.createNodeArray(ge,Zr.hasTrailingComma)}}function ur(nr,Zr){var ir;if(!Zr){var ge=e.getThisParameter(nr);ge&&(ir=[Ue(ge)])}if(e.isSetAccessorDeclaration(nr)){var rr=void 0;if(!Zr){var pr=e.getSetAccessorValueParameter(nr);if(pr){var Lr=Mn(nr,R.getAllAccessorDeclarations(nr));rr=Ue(pr,void 0,Lr)}}rr||(rr=M.createParameterDeclaration(void 0,void 0,void 0,"value")),ir=e.append(ir,rr)}return M.createNodeArray(ir||e.emptyArray)}function xr(nr,Zr){return e.hasEffectiveModifier(nr,8)?void 0:e.visitNodes(Zr,qe)}function sr(nr){return e.isSourceFile(nr)||e.isTypeAliasDeclaration(nr)||e.isModuleDeclaration(nr)||e.isClassDeclaration(nr)||e.isInterfaceDeclaration(nr)||e.isFunctionLike(nr)||e.isIndexSignatureDeclaration(nr)||e.isMappedTypeNode(nr)}function i(nr,Zr){var ir=R.isEntityNameVisible(nr,Zr);_e(ir),pe(R.getTypeReferenceDirectivesForEntityName(nr))}function Mr(nr,Zr){return e.hasJSDocNodes(nr)&&e.hasJSDocNodes(Zr)&&(nr.jsDoc=Zr.jsDoc),e.setCommentRange(nr,e.getCommentRange(Zr))}function fr(nr,Zr){if(!!Zr){if(k=k||nr.kind!==260&&nr.kind!==199,e.isStringLiteralLike(Zr))if(K){var ir=e.getExternalModuleNameFromDeclaration(E.getEmitHost(),R,nr);if(ir)return M.createStringLiteral(ir)}else{var ge=R.getSymbolOfExternalModuleSpecifier(Zr);ge&&(P||(P=[])).push(ge)}return Zr}}function Ar(nr){if(!!R.isDeclarationVisible(nr))if(nr.moduleReference.kind===276){var Zr=e.getExternalModuleImportEqualsDeclarationExpression(nr);return M.updateImportEqualsDeclaration(nr,void 0,nr.modifiers,nr.isTypeOnly,nr.name,M.updateExternalModuleReference(nr.moduleReference,fr(nr,Zr)))}else{var ir=$;return $=e.createGetSymbolAccessibilityDiagnosticForNode(nr),i(nr.moduleReference,x),$=ir,nr}}function de(nr){if(!nr.importClause)return M.updateImportDeclaration(nr,void 0,nr.modifiers,nr.importClause,fr(nr,nr.moduleSpecifier),void 0);var Zr=nr.importClause&&nr.importClause.name&&R.isDeclarationVisible(nr.importClause)?nr.importClause.name:void 0;if(!nr.importClause.namedBindings)return Zr&&M.updateImportDeclaration(nr,void 0,nr.modifiers,M.updateImportClause(nr.importClause,nr.importClause.isTypeOnly,Zr,void 0),fr(nr,nr.moduleSpecifier),void 0);if(nr.importClause.namedBindings.kind===267){var ir=R.isDeclarationVisible(nr.importClause.namedBindings)?nr.importClause.namedBindings:void 0;return Zr||ir?M.updateImportDeclaration(nr,void 0,nr.modifiers,M.updateImportClause(nr.importClause,nr.importClause.isTypeOnly,Zr,ir),fr(nr,nr.moduleSpecifier),void 0):void 0}var ge=e.mapDefined(nr.importClause.namedBindings.elements,function(rr){return R.isDeclarationVisible(rr)?rr:void 0});if(ge&&ge.length||Zr)return M.updateImportDeclaration(nr,void 0,nr.modifiers,M.updateImportClause(nr.importClause,nr.importClause.isTypeOnly,Zr,ge&&ge.length?M.updateNamedImports(nr.importClause.namedBindings,ge):void 0),fr(nr,nr.moduleSpecifier),void 0);if(R.isImportRequiredByAugmentation(nr))return M.updateImportDeclaration(nr,void 0,nr.modifiers,void 0,fr(nr,nr.moduleSpecifier),void 0)}function we(nr){for(;e.length(Z);){var Zr=Z.shift();if(!e.isLateVisibilityPaintedStatement(Zr))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[Zr.kind]:Zr.kind));var ir=C;C=Zr.parent&&e.isSourceFile(Zr.parent)&&!(e.isExternalModule(Zr.parent)&&K);var ge=lr(Zr);C=ir,re.set(e.getOriginalNodeId(Zr),ge)}return e.visitNodes(nr,rr);function rr(pr){if(e.isLateVisibilityPaintedStatement(pr)){var Lr=e.getOriginalNodeId(pr);if(re.has(Lr)){var Ce=re.get(Lr);return re.delete(Lr),Ce&&((e.isArray(Ce)?e.some(Ce,e.needsScopeMarker):e.needsScopeMarker(Ce))&&(X=!0),e.isSourceFile(pr.parent)&&(e.isArray(Ce)?e.some(Ce,e.isExternalModuleIndicator):e.isExternalModuleIndicator(Ce))&&(k=!0)),Ce}}return pr}}function qe(nr){if(ot(nr)||e.isDeclaration(nr)&&(Ve(nr)||e.hasDynamicName(nr)&&!R.isLateBound(e.getParseTreeNode(nr)))||e.isFunctionLike(nr)&&R.isImplementationOfOverload(nr)||e.isSemicolonClassElement(nr))return;var Zr;sr(nr)&&(Zr=x,x=nr);var ir=$,ge=e.canProduceDiagnostics(nr),rr=q,pr=(nr.kind===181||nr.kind===194)&&nr.parent.kind!==258;if((e.isMethodDeclaration(nr)||e.isMethodSignature(nr))&&e.hasEffectiveModifier(nr,8))return nr.symbol&&nr.symbol.declarations&&nr.symbol.declarations[0]!==nr?void 0:Qe(M.createPropertyDeclaration(void 0,Yt(nr),nr.name,void 0,void 0,void 0));if(ge&&!q&&($=e.createGetSymbolAccessibilityDiagnosticForNode(nr)),e.isTypeQueryNode(nr)&&i(nr.exprName,x),pr&&(q=!0),te(nr))switch(nr.kind){case 227:{(e.isEntityName(nr.expression)||e.isEntityNameExpression(nr.expression))&&i(nr.expression,x);var Lr=e.visitEachChild(nr,qe,E);return Qe(M.updateExpressionWithTypeArguments(Lr,Lr.expression,Lr.typeArguments))}case 177:{i(nr.typeName,x);var Lr=e.visitEachChild(nr,qe,E);return Qe(M.updateTypeReferenceNode(Lr,Lr.typeName,Lr.typeArguments))}case 174:return Qe(M.updateConstructSignature(nr,xr(nr,nr.typeParameters),Nr(nr,nr.parameters),ve(nr,nr.type)));case 170:{var Ce=M.createConstructorDeclaration(void 0,Yt(nr),Nr(nr,nr.parameters,0),void 0);return Qe(Ce)}case 168:{if(e.isPrivateIdentifier(nr.name))return Qe(void 0);var cr=M.createMethodDeclaration(void 0,Yt(nr),void 0,nr.name,nr.questionToken,xr(nr,nr.typeParameters),Nr(nr,nr.parameters),ve(nr,nr.type),void 0);return Qe(cr)}case 171:{if(e.isPrivateIdentifier(nr.name))return Qe(void 0);var $e=Mn(nr,R.getAllAccessorDeclarations(nr));return Qe(M.updateGetAccessorDeclaration(nr,void 0,Yt(nr),nr.name,ur(nr,e.hasEffectiveModifier(nr,8)),ve(nr,$e),void 0))}case 172:return e.isPrivateIdentifier(nr.name)?Qe(void 0):Qe(M.updateSetAccessorDeclaration(nr,void 0,Yt(nr),nr.name,ur(nr,e.hasEffectiveModifier(nr,8)),void 0));case 166:return e.isPrivateIdentifier(nr.name)?Qe(void 0):Qe(M.updatePropertyDeclaration(nr,void 0,Yt(nr),nr.name,nr.questionToken,ve(nr,nr.type),Ne(nr)));case 165:return e.isPrivateIdentifier(nr.name)?Qe(void 0):Qe(M.updatePropertySignature(nr,Yt(nr),nr.name,nr.questionToken,ve(nr,nr.type)));case 167:return e.isPrivateIdentifier(nr.name)?Qe(void 0):Qe(M.updateMethodSignature(nr,Yt(nr),nr.name,nr.questionToken,xr(nr,nr.typeParameters),Nr(nr,nr.parameters),ve(nr,nr.type)));case 173:return Qe(M.updateCallSignature(nr,xr(nr,nr.typeParameters),Nr(nr,nr.parameters),ve(nr,nr.type)));case 175:return Qe(M.updateIndexSignature(nr,void 0,Yt(nr),Nr(nr,nr.parameters),e.visitNode(nr.type,qe)||M.createKeywordTypeNode(130)));case 253:return e.isBindingPattern(nr.name)?Je(nr.name):(pr=!0,q=!0,Qe(M.updateVariableDeclaration(nr,nr.name,void 0,ve(nr,nr.type),Ne(nr))));case 162:return Cr(nr)&&(nr.default||nr.constraint)?Qe(M.updateTypeParameterDeclaration(nr,nr.name,void 0,void 0)):Qe(e.visitEachChild(nr,qe,E));case 188:{var De=e.visitNode(nr.checkType,qe),z=e.visitNode(nr.extendsType,qe),ke=x;x=nr.trueType;var dr=e.visitNode(nr.trueType,qe);x=ke;var Xe=e.visitNode(nr.falseType,qe);return Qe(M.updateConditionalTypeNode(nr,De,z,dr,Xe))}case 178:return Qe(M.updateFunctionTypeNode(nr,e.visitNodes(nr.typeParameters,qe),Nr(nr,nr.parameters),e.visitNode(nr.type,qe)));case 179:return Qe(M.updateConstructorTypeNode(nr,Yt(nr),e.visitNodes(nr.typeParameters,qe),Nr(nr,nr.parameters),e.visitNode(nr.type,qe)));case 199:return e.isLiteralImportTypeNode(nr)?Qe(M.updateImportTypeNode(nr,M.updateLiteralTypeNode(nr.argument,fr(nr,nr.argument.literal)),nr.qualifier,e.visitNodes(nr.typeArguments,qe,e.isTypeNode),nr.isTypeOf)):Qe(nr);default:e.Debug.assertNever(nr,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[nr.kind]))}return e.isTupleTypeNode(nr)&&e.getLineAndCharacterOfPosition(B,nr.pos).line===e.getLineAndCharacterOfPosition(B,nr.end).line&&e.setEmitFlags(nr,1),Qe(e.visitEachChild(nr,qe,E));function Qe(Ir){return Ir&&ge&&e.hasDynamicName(nr)&&Yr(nr),sr(nr)&&(x=Zr),ge&&!q&&($=ir),pr&&(q=rr),Ir===nr?Ir:Ir&&e.setOriginalNode(Mr(Ir,nr),nr)}}function Cr(nr){return nr.parent.kind===168&&e.hasEffectiveModifier(nr.parent,8)}function kr(nr){if(!!j(nr)&&!ot(nr)){switch(nr.kind){case 271:return e.isSourceFile(nr.parent)&&(k=!0),O=!0,M.updateExportDeclaration(nr,void 0,nr.modifiers,nr.isTypeOnly,nr.exportClause,fr(nr,nr.moduleSpecifier),void 0);case 270:{if(e.isSourceFile(nr.parent)&&(k=!0),O=!0,nr.expression.kind===79)return nr;var Zr=M.createUniqueName("_default",16);$=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:nr}},d=nr;var ir=M.createVariableDeclaration(Zr,void 0,R.createTypeOfExpression(nr.expression,nr,g,H),void 0);d=void 0;var ge=M.createVariableStatement(C?[M.createModifier(135)]:[],M.createVariableDeclarationList([ir],2));return[ge,M.updateExportAssignment(nr,nr.decorators,nr.modifiers,Zr)]}}var rr=lr(nr);return re.set(e.getOriginalNodeId(nr),rr),nr}}function He(nr){if(e.isImportEqualsDeclaration(nr)||e.hasEffectiveModifier(nr,512)||!e.canHaveModifiers(nr))return nr;var Zr=M.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(nr)&27646);return M.updateModifiers(nr,Zr)}function lr(nr){if(ot(nr))return;switch(nr.kind){case 264:return Ar(nr);case 265:return de(nr)}if(e.isDeclaration(nr)&&Ve(nr)||e.isFunctionLike(nr)&&R.isImplementationOfOverload(nr))return;var Zr;sr(nr)&&(Zr=x,x=nr);var ir=e.canProduceDiagnostics(nr),ge=$;ir&&($=e.createGetSymbolAccessibilityDiagnosticForNode(nr));var rr=C;switch(nr.kind){case 258:return nn(M.updateTypeAliasDeclaration(nr,void 0,Yt(nr),nr.name,e.visitNodes(nr.typeParameters,qe,e.isTypeParameterDeclaration),e.visitNode(nr.type,qe,e.isTypeNode)));case 257:return nn(M.updateInterfaceDeclaration(nr,void 0,Yt(nr),nr.name,xr(nr,nr.typeParameters),qn(nr.heritageClauses),e.visitNodes(nr.members,qe)));case 255:{var pr=nn(M.updateFunctionDeclaration(nr,void 0,Yt(nr),void 0,nr.name,xr(nr,nr.typeParameters),Nr(nr,nr.parameters),ve(nr,nr.type),void 0));if(pr&&R.isExpandoFunctionDeclaration(nr)&&gr(nr)){var Lr=R.getPropertiesOfContainerFunction(nr),Ce=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,pr.name||M.createIdentifier("_default"),M.createModuleBlock([]),16);e.setParent(Ce,x),Ce.locals=e.createSymbolTable(Lr),Ce.symbol=Lr[0].parent;var cr=[],$e=e.mapDefined(Lr,function(bt){if(!(!bt.valueDeclaration||!e.isPropertyAccessExpression(bt.valueDeclaration))){$=e.createGetSymbolAccessibilityDiagnosticForNode(bt.valueDeclaration);var Ut=R.createTypeOfDeclaration(bt.valueDeclaration,Ce,g,H);$=ge;var Kt=e.unescapeLeadingUnderscores(bt.escapedName),bn=e.isStringANonContextualKeyword(Kt),wn=bn?M.getGeneratedNameForNode(bt.valueDeclaration):M.createIdentifier(Kt);bn&&cr.push([wn,Kt]);var ra=M.createVariableDeclaration(wn,void 0,Ut,void 0);return M.createVariableStatement(bn?void 0:[M.createToken(93)],M.createVariableDeclarationList([ra]))}});cr.length?$e.push(M.createExportDeclaration(void 0,void 0,!1,M.createNamedExports(e.map(cr,function(bt){var Ut=bt[0],Kt=bt[1];return M.createExportSpecifier(!1,Ut,Kt)})))):$e=e.mapDefined($e,function(bt){return M.updateModifiers(bt,0)});var De=M.createModuleDeclaration(void 0,Yt(nr),nr.name,M.createModuleBlock($e),16);if(!e.hasEffectiveModifier(pr,512))return[pr,De];var z=M.createModifiersFromModifierFlags(e.getEffectiveModifierFlags(pr)&-514|2),ke=M.updateFunctionDeclaration(pr,void 0,z,void 0,pr.name,pr.typeParameters,pr.parameters,pr.type,void 0),dr=M.updateModuleDeclaration(De,void 0,z,De.name,De.body),Xe=M.createExportAssignment(void 0,void 0,!1,De.name);return e.isSourceFile(nr.parent)&&(k=!0),O=!0,[ke,dr,Xe]}else return pr}case 260:{C=!1;var Qe=nr.body;if(Qe&&Qe.kind===261){var Ir=X,Jr=O;O=!1,X=!1;var Or=e.visitNodes(Qe.statements,kr),Be=we(Or);nr.flags&8388608&&(X=!1),!e.isGlobalScopeAugmentation(nr)&&!kt(Be)&&!O&&(X?Be=M.createNodeArray(Bt(Bt([],Be,!0),[e.createEmptyExports(M)],!1)):Be=e.visitNodes(Be,He));var yr=M.updateModuleBlock(Qe,Be);C=rr,X=Ir,O=Jr;var Rr=Yt(nr);return nn(M.updateModuleDeclaration(nr,void 0,Rr,e.isExternalModuleAugmentation(nr)?fr(nr,nr.name):nr.name,yr))}else{C=rr;var Rr=Yt(nr);C=!1,e.visitNode(Qe,kr);var zr=e.getOriginalNodeId(Qe),yr=re.get(zr);return re.delete(zr),nn(M.updateModuleDeclaration(nr,void 0,Rr,nr.name,yr))}}case 256:{w=nr.name,d=nr;var z=M.createNodeArray(Yt(nr)),ut=xr(nr,nr.typeParameters),mt=e.getFirstConstructorWithBody(nr),Lt=void 0;if(mt){var vt=$;Lt=e.compact(e.flatMap(mt.parameters,function(Ut){if(!e.hasSyntacticModifier(Ut,16476)||ot(Ut))return;if($=e.createGetSymbolAccessibilityDiagnosticForNode(Ut),Ut.name.kind===79)return Mr(M.createPropertyDeclaration(void 0,Yt(Ut),Ut.name,Ut.questionToken,ve(Ut,Ut.type),Ne(Ut)),Ut);return Kt(Ut.name);function Kt(bn){for(var wn,ra=0,ft=bn.elements;ra<ft.length;ra++){var Ct=ft[ra];e.isOmittedExpression(Ct)||(e.isBindingPattern(Ct.name)&&(wn=e.concatenate(wn,Kt(Ct.name))),wn=wn||[],wn.push(M.createPropertyDeclaration(void 0,Yt(Ut),Ct.name,void 0,ve(Ct,void 0),void 0)))}return wn}})),$=vt}var pt=e.some(nr.members,function(Ut){return!!Ut.name&&e.isPrivateIdentifier(Ut.name)}),Nt=pt?[M.createPropertyDeclaration(void 0,void 0,M.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Xt=e.concatenate(e.concatenate(Nt,Lt),e.visitNodes(nr.members,qe)),st=M.createNodeArray(Xt),$t=e.getEffectiveBaseTypeNode(nr);if($t&&!e.isEntityNameExpression($t.expression)&&$t.expression.kind!==104){var Pn=nr.name?e.unescapeLeadingUnderscores(nr.name.escapedText):"default",Ea=M.createUniqueName("".concat(Pn,"_base"),16);$=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:$t,typeName:nr.name}};var ia=M.createVariableDeclaration(Ea,void 0,R.createTypeOfExpression($t.expression,nr,g,H),void 0),pa=M.createVariableStatement(C?[M.createModifier(135)]:[],M.createVariableDeclarationList([ia],2)),Gn=M.createNodeArray(e.map(nr.heritageClauses,function(Ut){if(Ut.token===94){var Kt=$;$=e.createGetSymbolAccessibilityDiagnosticForNode(Ut.types[0]);var bn=M.updateHeritageClause(Ut,e.map(Ut.types,function(wn){return M.updateExpressionWithTypeArguments(wn,Ea,e.visitNodes(wn.typeArguments,qe))}));return $=Kt,bn}return M.updateHeritageClause(Ut,e.visitNodes(M.createNodeArray(e.filter(Ut.types,function(wn){return e.isEntityNameExpression(wn.expression)||wn.expression.kind===104})),qe))}));return[pa,nn(M.updateClassDeclaration(nr,void 0,z,nr.name,ut,Gn,st))]}else{var Gn=qn(nr.heritageClauses);return nn(M.updateClassDeclaration(nr,void 0,z,nr.name,ut,Gn,st))}}case 236:return nn(Hr(nr));case 259:return nn(M.updateEnumDeclaration(nr,void 0,M.createNodeArray(Yt(nr)),nr.name,M.createNodeArray(e.mapDefined(nr.members,function(bt){if(!ot(bt)){var Ut=R.getConstantValue(bt);return Mr(M.updateEnumMember(bt,bt.name,Ut!==void 0?typeof Ut=="string"?M.createStringLiteral(Ut):M.createNumericLiteral(Ut):void 0),bt)}}))))}return e.Debug.assertNever(nr,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[nr.kind]));function nn(bt){return sr(nr)&&(x=Zr),ir&&($=ge),nr.kind===260&&(C=rr),bt===nr?bt:(d=void 0,w=void 0,bt&&e.setOriginalNode(Mr(bt,nr),nr))}}function Hr(nr){if(!!e.forEach(nr.declarationList.declarations,Er)){var Zr=e.visitNodes(nr.declarationList.declarations,qe);if(!!e.length(Zr))return M.updateVariableStatement(nr,M.createNodeArray(Yt(nr)),M.updateVariableDeclarationList(nr.declarationList,Zr))}}function Je(nr){return e.flatten(e.mapDefined(nr.elements,function(Zr){return Sr(Zr)}))}function Sr(nr){if(nr.kind!==226&&nr.name)return Er(nr)?e.isBindingPattern(nr.name)?Je(nr.name):M.createVariableDeclaration(nr.name,void 0,ve(nr,void 0),void 0):void 0}function Yr(nr){var Zr;q||(Zr=$,$=e.createGetSymbolAccessibilityDiagnosticForNodeName(nr)),w=nr.name,e.Debug.assert(R.isLateBound(e.getParseTreeNode(nr)));var ir=nr,ge=ir.name.expression;i(ge,x),q||($=Zr),w=void 0}function ot(nr){return!!Y&&!!nr&&u(nr,B)}function _t(nr){return e.isExportAssignment(nr)||e.isExportDeclaration(nr)}function kt(nr){return e.some(nr,_t)}function Yt(nr){var Zr=e.getEffectiveModifierFlags(nr),ir=vn(nr);return Zr===ir?nr.modifiers:M.createModifiersFromModifierFlags(ir)}function vn(nr){var Zr=11003,ir=C&&!I(nr)?2:0,ge=nr.parent.kind===303;return(!ge||K&&ge&&e.isExternalModule(nr.parent))&&(Zr^=2,ir=0),L(nr,Zr,ir)}function Mn(nr,Zr){var ir=m(nr);return!ir&&nr!==Zr.firstAccessor&&(ir=m(Zr.firstAccessor),$=e.createGetSymbolAccessibilityDiagnosticForNode(Zr.firstAccessor)),!ir&&Zr.secondAccessor&&nr!==Zr.secondAccessor&&(ir=m(Zr.secondAccessor),$=e.createGetSymbolAccessibilityDiagnosticForNode(Zr.secondAccessor)),ir}function qn(nr){return M.createNodeArray(e.filter(e.map(nr,function(Zr){return M.updateHeritageClause(Zr,e.visitNodes(M.createNodeArray(e.filter(Zr.types,function(ir){return e.isEntityNameExpression(ir.expression)||Zr.token===94&&ir.expression.kind===104})),qe))}),function(Zr){return Zr.types&&!!Zr.types.length}))}}e.transformDeclarations=p;function I(E){return E.kind===257}function V(E,F,$){return e.factory.createModifiersFromModifierFlags(L(E,F,$))}function L(E,F,$){F===void 0&&(F=27643),$===void 0&&($=0);var C=e.getEffectiveModifierFlags(E)&F|$;return C&512&&!(C&1)&&(C^=1),C&512&&C&2&&(C^=2),C}function m(E){if(E)return E.kind===171?E.type:E.parameters.length>0?E.parameters[0].type:void 0}function y(E){switch(E.kind){case 166:case 165:return!e.hasEffectiveModifier(E,8);case 163:case 253:return!0}return!1}function j(E){switch(E.kind){case 255:case 260:case 264:case 257:case 256:case 258:case 259:case 236:case 265:case 271:case 270:return!0}return!1}function te(E){switch(E.kind){case 174:case 170:case 168:case 171:case 172:case 166:case 165:case 167:case 173:case 175:case 253:case 162:case 227:case 177:case 188:case 178:case 179:case 199:return!0}return!1}})(mr||(mr={}));var mr;(function(e){function n(F){switch(F){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}var c;(function(F){F[F.Uninitialized=0]="Uninitialized",F[F.Initialized=1]="Initialized",F[F.Completed=2]="Completed",F[F.Disposed=3]="Disposed"})(c||(c={}));var u;(function(F){F[F.Substitution=1]="Substitution",F[F.EmitNotifications=2]="EmitNotifications"})(u||(u={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function g(F,$,C){return{scriptTransformers:p(F,$,C),declarationTransformers:I($)}}e.getTransformers=g;function p(F,$,C){if(C)return e.emptyArray;var K=e.getEmitScriptTarget(F),k=e.getEmitModuleKind(F),X=[];return e.addRange(X,$&&e.map($.before,m)),X.push(e.transformTypeScript),X.push(e.transformClassFields),e.getJSXTransformEnabled(F)&&X.push(e.transformJsx),K<99&&X.push(e.transformESNext),K<8&&X.push(e.transformES2021),K<7&&X.push(e.transformES2020),K<6&&X.push(e.transformES2019),K<5&&X.push(e.transformES2018),K<4&&X.push(e.transformES2017),K<3&&X.push(e.transformES2016),K<2&&(X.push(e.transformES2015),X.push(e.transformGenerators)),X.push(n(k)),K<1&&X.push(e.transformES5),e.addRange(X,$&&e.map($.after,m)),X}function I(F){var $=[];return $.push(e.transformDeclarations),e.addRange($,F&&e.map(F.afterDeclarations,y)),$}function V(F){return function($){return e.isBundle($)?F.transformBundle($):F.transformSourceFile($)}}function L(F,$){return function(C){var K=F(C);return typeof K=="function"?$(C,K):V(K)}}function m(F){return L(F,e.chainBundle)}function y(F){return L(F,function($,C){return C})}function j(F,$){return $}e.noEmitSubstitution=j;function te(F,$,C){C(F,$)}e.noEmitNotification=te;function E(F,$,C,K,k,X,O){for(var x=new Array(353),ie,Z,re,q=0,P=[],M=[],Q=[],H=[],w=0,d=!1,B=[],T=0,_,h,R=j,b=te,G=0,Y=[],pe={factory:C,getCompilerOptions:function(){return K},getEmitResolver:function(){return F},getEmitHost:function(){return $},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(pe)}),startLexicalEnvironment:Ue,suspendLexicalEnvironment:We,resumeLexicalEnvironment:Ne,endLexicalEnvironment:ve,setLexicalEnvironmentFlags:Ve,getLexicalEnvironmentFlags:gr,hoistVariableDeclaration:xe,hoistFunctionDeclaration:Re,addInitializationStatement:ce,startBlockScope:Er,endBlockScope:Nr,addBlockScopedVariable:ur,requestEmitHelper:xr,readEmitHelpers:sr,enableSubstitution:Te,enableEmitNotification:Ae,isSubstitutionEnabled:Me,isEmitNotificationEnabled:Ge,get onSubstituteNode(){return R},set onSubstituteNode(Mr){e.Debug.assert(G<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Mr!==void 0,"Value must not be 'undefined'"),R=Mr},get onEmitNode(){return b},set onEmitNode(Mr){e.Debug.assert(G<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Mr!==void 0,"Value must not be 'undefined'"),b=Mr},addDiagnostic:function(Mr){Y.push(Mr)}},A=0,_e=k;A<_e.length;A++){var Se=_e[A];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Se)))}e.performance.mark("beforeTransform");var ae=X.map(function(Mr){return Mr(pe)}),D=function(Mr){for(var fr=0,Ar=ae;fr<Ar.length;fr++){var de=Ar[fr];Mr=de(Mr)}return Mr};G=1;for(var be=[],ne=0,J=k;ne<J.length;ne++){var Se=J[ne];e.tracing===null||e.tracing===void 0||e.tracing.push("emit","transformNodes",Se.kind===303?{path:Se.path}:{kind:Se.kind,pos:Se.pos,end:Se.end}),be.push((O?D:le)(Se)),e.tracing===null||e.tracing===void 0||e.tracing.pop()}return G=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:be,substituteNode:Ke,emitNodeWithNotification:se,isEmitNotificationEnabled:Ge,dispose:i,diagnostics:Y};function le(Mr){return Mr&&(!e.isSourceFile(Mr)||!Mr.isDeclarationFile)?D(Mr):Mr}function Te(Mr){e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed."),x[Mr]|=1}function Me(Mr){return(x[Mr.kind]&1)!==0&&(e.getEmitFlags(Mr)&4)===0}function Ke(Mr,fr){return e.Debug.assert(G<3,"Cannot substitute a node after the result is disposed."),fr&&Me(fr)&&R(Mr,fr)||fr}function Ae(Mr){e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed."),x[Mr]|=2}function Ge(Mr){return(x[Mr.kind]&2)!==0||(e.getEmitFlags(Mr)&2)!==0}function se(Mr,fr,Ar){e.Debug.assert(G<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),fr&&(Ge(fr)?b(Mr,fr,Ar):Ar(Mr,fr))}function xe(Mr){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed.");var fr=e.setEmitFlags(C.createVariableDeclaration(Mr),64);ie?ie.push(fr):ie=[fr],q&1&&(q|=2)}function Re(Mr){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Mr,1048576),Z?Z.push(Mr):Z=[Mr]}function ce(Mr){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Mr,1048576),re?re.push(Mr):re=[Mr]}function Ue(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!d,"Lexical environment is suspended."),P[w]=ie,M[w]=Z,Q[w]=re,H[w]=q,w++,ie=void 0,Z=void 0,re=void 0,q=0}function We(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!d,"Lexical environment is already suspended."),d=!0}function Ne(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(d,"Lexical environment is not suspended."),d=!1}function ve(){e.Debug.assert(G>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(G<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!d,"Lexical environment is suspended.");var Mr;if(ie||Z||re){if(Z&&(Mr=Bt([],Z,!0)),ie){var fr=C.createVariableStatement(void 0,C.createVariableDeclarationList(ie));e.setEmitFlags(fr,1048576),Mr?Mr.push(fr):Mr=[fr]}re&&(Mr?Mr=Bt(Bt([],Mr,!0),re,!0):Mr=Bt([],re,!0))}return w--,ie=P[w],Z=M[w],re=Q[w],q=H[w],w===0&&(P=[],M=[],Q=[],H=[]),Mr}function Ve(Mr,fr){q=fr?q|Mr:q&~Mr}function gr(){return q}function Er(){e.Debug.assert(G>0,"Cannot start a block scope during initialization."),e.Debug.assert(G<2,"Cannot start a block scope after transformation has completed."),B[T]=_,T++,_=void 0}function Nr(){e.Debug.assert(G>0,"Cannot end a block scope during initialization."),e.Debug.assert(G<2,"Cannot end a block scope after transformation has completed.");var Mr=e.some(_)?[C.createVariableStatement(void 0,C.createVariableDeclarationList(_.map(function(fr){return C.createVariableDeclaration(fr)}),1))]:void 0;return T--,_=B[T],T===0&&(B=[]),Mr}function ur(Mr){e.Debug.assert(T>0,"Cannot add a block scoped variable outside of an iteration body."),(_||(_=[])).push(Mr)}function xr(Mr){if(e.Debug.assert(G>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Mr.scoped,"Cannot request a scoped emit helper."),Mr.dependencies)for(var fr=0,Ar=Mr.dependencies;fr<Ar.length;fr++){var de=Ar[fr];xr(de)}h=e.append(h,Mr)}function sr(){e.Debug.assert(G>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(G<2,"Cannot modify the transformation context after transformation has completed.");var Mr=h;return h=void 0,Mr}function i(){if(G<3){for(var Mr=0,fr=k;Mr<fr.length;Mr++){var Ar=fr[Mr];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(Ar)))}ie=void 0,P=void 0,Z=void 0,M=void 0,R=void 0,b=void 0,h=void 0,G=3}}}e.transformNodes=E,e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:j,onEmitNode:te,addDiagnostic:e.noop}})(mr||(mr={}));var mr;(function(e){var n=M();function c(d){return e.fileExtensionIs(d,".tsbuildinfo")}e.isBuildInfoFile=c;function u(d,B,T,_,h,R){_===void 0&&(_=!1);var b=e.isArray(T)?T:e.getSourceFilesToEmit(d,T,_),G=d.getCompilerOptions();if(e.outFile(G)){var Y=d.getPrependNodes();if(b.length||Y.length){var pe=e.factory.createBundle(b,Y),A=B(I(pe,d,_),pe);if(A)return A}}else{if(!h)for(var _e=0,Se=b;_e<Se.length;_e++){var ae=Se[_e],A=B(I(ae,d,_),ae);if(A)return A}if(R){var D=g(G);if(D)return B({buildInfoPath:D},void 0)}}}e.forEachEmittedFile=u;function g(d){var B=d.configFilePath;if(!!e.isIncrementalCompilation(d)){if(d.tsBuildInfoFile)return d.tsBuildInfoFile;var T=e.outFile(d),_;if(T)_=e.removeFileExtension(T);else{if(!B)return;var h=e.removeFileExtension(B);_=d.outDir?d.rootDir?e.resolvePath(d.outDir,e.getRelativePathFromDirectory(d.rootDir,h,!0)):e.combinePaths(d.outDir,e.getBaseFileName(h)):h}return _+".tsbuildinfo"}}e.getTsBuildInfoEmitOutputFilePath=g;function p(d,B){var T=e.outFile(d),_=d.emitDeclarationOnly?void 0:T,h=_&&V(_,d),R=B||e.getEmitDeclarations(d)?e.removeFileExtension(T)+".d.ts":void 0,b=R&&e.getAreDeclarationMapsEnabled(d)?R+".map":void 0,G=g(d);return{jsFilePath:_,sourceMapFilePath:h,declarationFilePath:R,declarationMapPath:b,buildInfoPath:G}}e.getOutputPathsForBundle=p;function I(d,B,T){var _=B.getCompilerOptions();if(d.kind===304)return p(_,T);var h=e.getOwnEmitOutputFilePath(d.fileName,B,L(d.fileName,_)),R=e.isJsonSourceFile(d),b=R&&e.comparePaths(d.fileName,h,B.getCurrentDirectory(),!B.useCaseSensitiveFileNames())===0,G=_.emitDeclarationOnly||b?void 0:h,Y=!G||e.isJsonSourceFile(d)?void 0:V(G,_),pe=T||e.getEmitDeclarations(_)&&!R?e.getDeclarationEmitOutputFilePath(d.fileName,B):void 0,A=pe&&e.getAreDeclarationMapsEnabled(_)?pe+".map":void 0;return{jsFilePath:G,sourceMapFilePath:Y,declarationFilePath:pe,declarationMapPath:A,buildInfoPath:void 0}}e.getOutputPathsFor=I;function V(d,B){return B.sourceMap&&!B.inlineSourceMap?d+".map":void 0}function L(d,B){return e.fileExtensionIs(d,".json")?".json":B.jsx===1&&e.fileExtensionIsOneOf(d,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(d,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(d,[".cts",".cjs"])?".cjs":".js"}e.getOutputExtension=L;function m(d,B,T,_,h){return _?e.resolvePath(_,e.getRelativePathFromDirectory(h?h():C(B,T),d,T)):d}function y(d,B,T,_){return e.changeExtension(m(d,B,T,B.options.declarationDir||B.options.outDir,_),e.getDeclarationEmitExtensionForPath(d))}e.getOutputDeclarationFileName=y;function j(d,B,T,_){if(!B.options.emitDeclarationOnly){var h=e.fileExtensionIs(d,".json"),R=e.changeExtension(m(d,B,T,B.options.outDir,_),L(d,B.options));return!h||e.comparePaths(d,R,e.Debug.checkDefined(B.options.configFilePath),T)!==0?R:void 0}}function te(){var d;return{addOutput:B,getOutputs:T};function B(_){_&&(d||(d=[])).push(_)}function T(){return d||e.emptyArray}}function E(d,B){var T=p(d.options,!1),_=T.jsFilePath,h=T.sourceMapFilePath,R=T.declarationFilePath,b=T.declarationMapPath,G=T.buildInfoPath;B(_),B(h),B(R),B(b),B(G)}function F(d,B,T,_,h){if(!e.fileExtensionIs(B,".d.ts")){var R=j(B,d,T,h);if(_(R),!e.fileExtensionIs(B,".json")&&(R&&d.options.sourceMap&&_("".concat(R,".map")),e.getEmitDeclarations(d.options))){var b=y(B,d,T,h);_(b),d.options.declarationMap&&_("".concat(b,".map"))}}}function $(d,B,T,_,h){var R;return d.rootDir?(R=e.getNormalizedAbsolutePath(d.rootDir,T),h==null||h(d.rootDir)):d.composite&&d.configFilePath?(R=e.getDirectoryPath(e.normalizeSlashes(d.configFilePath)),h==null||h(R)):R=e.computeCommonSourceDirectoryOfFilenames(B(),T,_),R&&R[R.length-1]!==e.directorySeparator&&(R+=e.directorySeparator),R}e.getCommonSourceDirectory=$;function C(d,B){var T=d.options,_=d.fileNames;return $(T,function(){return e.filter(_,function(h){return!(T.noEmitForJsFiles&&e.fileExtensionIsOneOf(h,e.supportedJSExtensionsFlat))&&!e.fileExtensionIs(h,".d.ts")})},e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(T.configFilePath))),e.createGetCanonicalFileName(!B))}e.getCommonSourceDirectoryOfConfig=C;function K(d,B){var T=te(),_=T.addOutput,h=T.getOutputs;if(e.outFile(d.options))E(d,_);else{for(var R=e.memoize(function(){return C(d,B)}),b=0,G=d.fileNames;b<G.length;b++){var Y=G[b];F(d,Y,B,_,R)}_(g(d.options))}return h()}e.getAllProjectOutputs=K;function k(d,B,T){B=e.normalizePath(B),e.Debug.assert(e.contains(d.fileNames,B),"Expected fileName to be present in command line");var _=te(),h=_.addOutput,R=_.getOutputs;return e.outFile(d.options)?E(d,h):F(d,B,T,h),R()}e.getOutputFileNames=k;function X(d,B){if(e.outFile(d.options)){var T=p(d.options,!1).jsFilePath;return e.Debug.checkDefined(T,"project ".concat(d.options.configFilePath," expected to have at least one output"))}for(var _=e.memoize(function(){return C(d,B)}),h=0,R=d.fileNames;h<R.length;h++){var b=R[h];if(!e.fileExtensionIs(b,".d.ts")){var T=j(b,d,B,_);if(T)return T;if(!e.fileExtensionIs(b,".json")&&e.getEmitDeclarations(d.options))return y(b,d,B,_)}}var G=g(d.options);return G||e.Debug.fail("project ".concat(d.options.configFilePath," expected to have at least one output"))}e.getFirstProjectOutput=X;function O(d,B,T,_,h,R,b){var G=_.scriptTransformers,Y=_.declarationTransformers,pe=B.getCompilerOptions(),A=pe.sourceMap||pe.inlineSourceMap||e.getAreDeclarationMapsEnabled(pe)?[]:void 0,_e=pe.listEmittedFiles?[]:void 0,Se=e.createDiagnosticCollection(),ae=e.getNewLineCharacter(pe,function(){return B.getNewLine()}),D=e.createTextWriter(ae),be=e.performance.createTimer("printTime","beforePrint","afterPrint"),ne=be.enter,J=be.exit,le,Te=!1,Me;return ne(),u(B,Ke,e.getSourceFilesToEmit(B,T,b),b,R,!T),J(),{emitSkipped:Te,diagnostics:Se.getDiagnostics(),emittedFiles:_e,sourceMaps:A,exportedModulesFromDeclarationEmit:Me};function Ke(ve,Ve){var gr=ve.jsFilePath,Er=ve.sourceMapFilePath,Nr=ve.declarationFilePath,ur=ve.declarationMapPath,xr=ve.buildInfoPath,sr;xr&&Ve&&e.isBundle(Ve)&&(sr=e.getDirectoryPath(e.getNormalizedAbsolutePath(xr,B.getCurrentDirectory())),le={commonSourceDirectory:i(B.getCommonSourceDirectory()),sourceFiles:Ve.sourceFiles.map(function(Mr){return i(e.getNormalizedAbsolutePath(Mr.fileName,B.getCurrentDirectory()))})}),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:gr}),Ge(Ve,gr,Er,i),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:Nr}),se(Ve,Nr,ur,i),e.tracing===null||e.tracing===void 0||e.tracing.pop(),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:xr}),Ae(le,xr),e.tracing===null||e.tracing===void 0||e.tracing.pop(),!Te&&_e&&(h||(gr&&_e.push(gr),Er&&_e.push(Er),xr&&_e.push(xr)),Nr&&_e.push(Nr),ur&&_e.push(ur));function i(Mr){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(sr,Mr,B.getCanonicalFileName))}}function Ae(ve,Ve){if(!(!Ve||T||Te)){var gr=B.getProgramBuildInfo();if(B.isEmitBlocked(Ve)){Te=!0;return}var Er=e.version;e.writeFile(B,Se,Ve,x({bundle:ve,program:gr,version:Er}),!1)}}function Ge(ve,Ve,gr,Er){if(!(!ve||h||!Ve)){if(Ve&&B.isEmitBlocked(Ve)||pe.noEmit){Te=!0;return}var Nr=e.transformNodes(d,B,e.factory,pe,[ve],G,!1),ur={removeComments:pe.removeComments,newLine:pe.newLine,noEmitHelpers:pe.noEmitHelpers,module:pe.module,target:pe.target,sourceMap:pe.sourceMap,inlineSourceMap:pe.inlineSourceMap,inlineSources:pe.inlineSources,extendedDiagnostics:pe.extendedDiagnostics,writeBundleFileInfo:!!le,relativeToBuildInfo:Er},xr=P(ur,{hasGlobalName:d.hasGlobalName,onEmitNode:Nr.emitNodeWithNotification,isEmitNotificationEnabled:Nr.isEmitNotificationEnabled,substituteNode:Nr.substituteNode});e.Debug.assert(Nr.transformed.length===1,"Should only see one output from the transform"),Re(Ve,gr,Nr.transformed[0],xr,pe),Nr.dispose(),le&&(le.js=xr.bundleFileInfo)}}function se(ve,Ve,gr,Er){if(!!ve){if(!Ve){(h||pe.emitDeclarationOnly)&&(Te=!0);return}var Nr=e.isSourceFile(ve)?[ve]:ve.sourceFiles,ur=b?Nr:e.filter(Nr,e.isSourceFileNotJson),xr=e.outFile(pe)?[e.factory.createBundle(ur,e.isSourceFile(ve)?void 0:ve.prepends)]:ur;h&&!e.getEmitDeclarations(pe)&&ur.forEach(xe);var sr=e.transformNodes(d,B,e.factory,pe,xr,Y,!1);if(e.length(sr.diagnostics))for(var i=0,Mr=sr.diagnostics;i<Mr.length;i++){var fr=Mr[i];Se.add(fr)}var Ar={removeComments:pe.removeComments,newLine:pe.newLine,noEmitHelpers:!0,module:pe.module,target:pe.target,sourceMap:pe.sourceMap,inlineSourceMap:pe.inlineSourceMap,extendedDiagnostics:pe.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!le,recordInternalSection:!!le,relativeToBuildInfo:Er},de=P(Ar,{hasGlobalName:d.hasGlobalName,onEmitNode:sr.emitNodeWithNotification,isEmitNotificationEnabled:sr.isEmitNotificationEnabled,substituteNode:sr.substituteNode}),we=!!sr.diagnostics&&!!sr.diagnostics.length||!!B.isEmitBlocked(Ve)||!!pe.noEmit;if(Te=Te||we,(!we||b)&&(e.Debug.assert(sr.transformed.length===1,"Should only see one output from the decl transform"),Re(Ve,gr,sr.transformed[0],de,{sourceMap:!b&&pe.declarationMap,sourceRoot:pe.sourceRoot,mapRoot:pe.mapRoot,extendedDiagnostics:pe.extendedDiagnostics}),b&&sr.transformed[0].kind===303)){var qe=sr.transformed[0];Me=qe.exportedModulesFromDeclarationEmit}sr.dispose(),le&&(le.dts=de.bundleFileInfo)}}function xe(ve){if(e.isExportAssignment(ve)){ve.expression.kind===79&&d.collectLinkedAliases(ve.expression,!0);return}else if(e.isExportSpecifier(ve)){d.collectLinkedAliases(ve.propertyName||ve.name,!0);return}e.forEachChild(ve,xe)}function Re(ve,Ve,gr,Er,Nr){var ur=gr.kind===304?gr:void 0,xr=gr.kind===303?gr:void 0,sr=ur?ur.sourceFiles:[xr],i;if(ce(Nr,gr)&&(i=e.createSourceMapGenerator(B,e.getBaseFileName(e.normalizeSlashes(ve)),Ue(Nr),We(Nr,ve,xr),Nr)),ur?Er.writeBundle(ur,D,i):Er.writeFile(xr,D,i),i){A&&A.push({inputSourceFileNames:i.getSources(),sourceMap:i.toJSON()});var Mr=Ne(Nr,i,ve,Ve,xr);if(Mr&&(D.isAtStartOfLine()||D.rawWrite(ae),D.writeComment("//# ".concat("sourceMappingURL","=").concat(Mr))),Ve){var fr=i.toString();e.writeFile(B,Se,Ve,fr,!1,sr)}}else D.writeLine();e.writeFile(B,Se,ve,D.getText(),!!pe.emitBOM,sr),D.clear()}function ce(ve,Ve){return(ve.sourceMap||ve.inlineSourceMap)&&(Ve.kind!==303||!e.fileExtensionIs(Ve.fileName,".json"))}function Ue(ve){var Ve=e.normalizeSlashes(ve.sourceRoot||"");return Ve&&e.ensureTrailingDirectorySeparator(Ve)}function We(ve,Ve,gr){if(ve.sourceRoot)return B.getCommonSourceDirectory();if(ve.mapRoot){var Er=e.normalizeSlashes(ve.mapRoot);return gr&&(Er=e.getDirectoryPath(e.getSourceFilePathInNewDir(gr.fileName,B,Er))),e.getRootLength(Er)===0&&(Er=e.combinePaths(B.getCommonSourceDirectory(),Er)),Er}return e.getDirectoryPath(e.normalizePath(Ve))}function Ne(ve,Ve,gr,Er,Nr){if(ve.inlineSourceMap){var ur=Ve.toString(),xr=e.base64encode(e.sys,ur);return"data:application/json;base64,".concat(xr)}var sr=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(Er)));if(ve.mapRoot){var i=e.normalizeSlashes(ve.mapRoot);return Nr&&(i=e.getDirectoryPath(e.getSourceFilePathInNewDir(Nr.fileName,B,i))),e.getRootLength(i)===0?(i=e.combinePaths(B.getCommonSourceDirectory(),i),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(gr)),e.combinePaths(i,sr),B.getCurrentDirectory(),B.getCanonicalFileName,!0))):encodeURI(e.combinePaths(i,sr))}return encodeURI(sr)}}e.emitFiles=O;function x(d){return JSON.stringify(d)}e.getBuildInfoText=x;function ie(d){return JSON.parse(d)}e.getBuildInfo=ie,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(d){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented};function Z(d,B,T){var _,h=e.Debug.checkDefined(d.js),R=((_=h.sources)===null||_===void 0?void 0:_.prologues)&&e.arrayToMap(h.sources.prologues,function(b){return b.file});return d.sourceFiles.map(function(b,G){var Y,pe,A=R==null?void 0:R.get(G),_e=A==null?void 0:A.directives.map(function(D){var be=e.setTextRange(e.factory.createStringLiteral(D.expression.text),D.expression),ne=e.setTextRange(e.factory.createExpressionStatement(be),D);return e.setParent(be,ne),ne}),Se=e.factory.createToken(1),ae=e.factory.createSourceFile(_e!=null?_e:[],Se,0);return ae.fileName=e.getRelativePathFromDirectory(T.getCurrentDirectory(),e.getNormalizedAbsolutePath(b,B),!T.useCaseSensitiveFileNames()),ae.text=(Y=A==null?void 0:A.text)!==null&&Y!==void 0?Y:"",e.setTextRangePosWidth(ae,0,(pe=A==null?void 0:A.text.length)!==null&&pe!==void 0?pe:0),e.setEachParent(ae.statements,ae),e.setTextRangePosWidth(Se,ae.end,0),e.setParent(Se,ae),ae})}function re(d,B,T,_){var h=p(d.options,!1),R=h.buildInfoPath,b=h.jsFilePath,G=h.sourceMapFilePath,Y=h.declarationFilePath,pe=h.declarationMapPath,A=B.readFile(e.Debug.checkDefined(R));if(!A)return R;var _e=B.readFile(e.Debug.checkDefined(b));if(!_e)return b;var Se=G&&B.readFile(G);if(G&&!Se||d.options.inlineSourceMap)return G||"inline sourcemap decoding";var ae=Y&&B.readFile(Y);if(Y&&!ae)return Y;var D=pe&&B.readFile(pe);if(pe&&!D||d.options.inlineSourceMap)return pe||"inline sourcemap decoding";var be=ie(A);if(!be.bundle||!be.bundle.js||ae&&!be.bundle.dts)return R;var ne=e.getDirectoryPath(e.getNormalizedAbsolutePath(R,B.getCurrentDirectory())),J=e.createInputFiles(_e,ae,G,Se,pe,D,b,Y,R,be,!0),le=[],Te=e.createPrependNodes(d.projectReferences,T,function(Ae){return B.readFile(Ae)}),Me=Z(be.bundle,ne,B),Ke={getPrependNodes:e.memoize(function(){return Bt(Bt([],Te,!0),[J],!1)}),getCanonicalFileName:B.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(be.bundle.commonSourceDirectory,ne)},getCompilerOptions:function(){return d.options},getCurrentDirectory:function(){return B.getCurrentDirectory()},getNewLine:function(){return B.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return Me},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(Ae,Ge,se){switch(Ae){case b:if(_e===Ge)return;break;case G:if(Se===Ge)return;break;case R:var xe=ie(Ge);xe.program=be.program;var Re=be.bundle,ce=Re.js,Ue=Re.dts,We=Re.sourceFiles;xe.bundle.js.sources=ce.sources,Ue&&(xe.bundle.dts.sources=Ue.sources),xe.bundle.sourceFiles=We,le.push({name:Ae,text:x(xe),writeByteOrderMark:se});return;case Y:if(ae===Ge)return;break;case pe:if(D===Ge)return;break;default:e.Debug.fail("Unexpected path: ".concat(Ae))}le.push({name:Ae,text:Ge,writeByteOrderMark:se})},isEmitBlocked:e.returnFalse,readFile:function(Ae){return B.readFile(Ae)},fileExists:function(Ae){return B.fileExists(Ae)},useCaseSensitiveFileNames:function(){return B.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return O(e.notImplementedResolver,Ke,void 0,e.getTransformers(d.options,_)),le}e.emitUsingBuildInfo=re;var q;(function(d){d[d.Notification=0]="Notification",d[d.Substitution=1]="Substitution",d[d.Comments=2]="Comments",d[d.SourceMaps=3]="SourceMaps",d[d.Emit=4]="Emit"})(q||(q={}));function P(d,B){d===void 0&&(d={}),B===void 0&&(B={});var T=B.hasGlobalName,_=B.onEmitNode,h=_===void 0?e.noEmitNotification:_,R=B.isEmitNotificationEnabled,b=B.substituteNode,G=b===void 0?e.noEmitSubstitution:b,Y=B.onBeforeEmitNode,pe=B.onAfterEmitNode,A=B.onBeforeEmitNodeArray,_e=B.onAfterEmitNodeArray,Se=B.onBeforeEmitToken,ae=B.onAfterEmitToken,D=!!d.extendedDiagnostics,be=e.getNewLineCharacter(d),ne=e.getEmitModuleKind(d),J=new e.Map,le,Te,Me,Ke,Ae,Ge,se,xe,Re=d.preserveSourceNewlines,ce,Ue,We,Ne=rc,ve,Ve=d.writeBundleFileInfo?{sections:[]}:void 0,gr=Ve?e.Debug.checkDefined(d.relativeToBuildInfo):void 0,Er=d.recordInternalSection,Nr=0,ur="text",xr=!0,sr,i,Mr=-1,fr,Ar=-1,de=-1,we=-1,qe=-1,Cr,kr,He=!1,lr=!!d.removeComments,Hr,Je,Sr=e.performance.createTimerIf(D,"commentTime","beforeComment","afterComment"),Yr=Sr.enter,ot=Sr.exit,_t=e.factory.parenthesizer,kt=Pr();return Ir(),{printNode:Yt,printList:vn,printFile:qn,printBundle:Mn,writeNode:Zr,writeList:ir,writeFile:De,writeBundle:cr,bundleFileInfo:Ve};function Yt(S,Ze,nt){switch(S){case 0:e.Debug.assert(e.isSourceFile(Ze),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(Ze),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(Ze),"Expected an Expression node.");break}switch(Ze.kind){case 303:return qn(Ze);case 304:return Mn(Ze);case 305:return nr(Ze)}return Zr(S,Ze,nt,z()),ke()}function vn(S,Ze,nt){return ir(S,Ze,nt,z()),ke()}function Mn(S){return cr(S,z(),void 0),ke()}function qn(S){return De(S,z(),void 0),ke()}function nr(S){return $e(S,z()),ke()}function Zr(S,Ze,nt,wt){var ca=Ue;Qe(wt,void 0),dr(S,Ze,nt),Ir(),Ue=ca}function ir(S,Ze,nt,wt){var ca=Ue;Qe(wt,void 0),nt&&Xe(nt),Zi(void 0,Ze,S),Ir(),Ue=ca}function ge(){return Ue.getTextPosWithWriteLine?Ue.getTextPosWithWriteLine():Ue.getTextPos()}function rr(S,Ze,nt){var wt=e.lastOrUndefined(Ve.sections);wt&&wt.kind===nt?wt.end=Ze:Ve.sections.push({pos:S,end:Ze,kind:nt})}function pr(S){if(Er&&Ve&&le&&(e.isDeclaration(S)||e.isVariableStatement(S))&&e.isInternalDeclaration(S,le)&&ur!=="internal"){var Ze=ur;return Ce(Ue.getTextPos()),Nr=ge(),ur="internal",Ze}}function Lr(S){S&&(Ce(Ue.getTextPos()),Nr=ge(),ur=S)}function Ce(S){return Nr<S?(rr(Nr,S,ur),!0):!1}function cr(S,Ze,nt){var wt;ve=!1;var ca=Ue;Qe(Ze,nt),Bu(S),Of(S),pa(S),ud(S);for(var Ga=0,na=S.prepends;Ga<na.length;Ga++){var si=na[Ga];ls();var wa=Ue.getTextPos(),Za=Ve&&Ve.sections;if(Za&&(Ve.sections=[]),dr(4,si,void 0),Ve){var Lo=Ve.sections;Ve.sections=Za,si.oldFileOfCurrentEmit?(wt=Ve.sections).push.apply(wt,Lo):(Lo.forEach(function(ou){return e.Debug.assert(e.isBundleFileTextLike(ou))}),Ve.sections.push({pos:wa,end:Ue.getTextPos(),kind:"prepend",data:gr(si.fileName),texts:Lo}))}}Nr=ge();for(var ol=0,As=S.sourceFiles;ol<As.length;ol++){var Ms=As[ol];dr(0,Ms,Ms)}if(Ve&&S.sourceFiles.length){var gl=Ue.getTextPos();if(Ce(gl)){var au=zd(S);au&&(Ve.sources||(Ve.sources={}),Ve.sources.prologues=au);var iu=ia(S);iu&&(Ve.sources||(Ve.sources={}),Ve.sources.helpers=iu)}}Ir(),Ue=ca}function $e(S,Ze){var nt=Ue;Qe(Ze,void 0),dr(4,S,void 0),Ir(),Ue=nt}function De(S,Ze,nt){ve=!0;var wt=Ue;Qe(Ze,nt),Bu(S),Of(S),dr(0,S,S),Ir(),Ue=wt}function z(){return We||(We=e.createTextWriter(be))}function ke(){var S=We.getText();return We.clear(),S}function dr(S,Ze,nt){nt&&Xe(nt),mt(S,Ze,void 0)}function Xe(S){le=S,Cr=void 0,kr=void 0,S&&tu(S)}function Qe(S,Ze){S&&d.omitTrailingSemicolon&&(S=e.getTrailingSemicolonDeferringWriter(S)),Ue=S,sr=Ze,xr=!Ue||!sr}function Ir(){Te=[],Me=[],Ke=new e.Set,Ae=[],Ge=0,se=[],le=void 0,Cr=void 0,kr=void 0,Qe(void 0,void 0)}function Jr(){return Cr||(Cr=e.getLineStarts(le))}function Or(S,Ze){if(S!==void 0){var nt=pr(S);mt(4,S,Ze),Lr(nt)}}function Be(S){S!==void 0&&mt(2,S,void 0)}function yr(S,Ze){S!==void 0&&mt(1,S,Ze)}function Rr(S){mt(e.isStringLiteral(S)?6:4,S)}function zr(S){Re&&e.getEmitFlags(S)&134217728&&(Re=!1)}function ut(S){Re=S}function mt(S,Ze,nt){Je=nt;var wt=pt(0,S,Ze);wt(S,Ze),Je=void 0}function Lt(S){return!lr&&!e.isSourceFile(S)}function vt(S){return!xr&&!e.isSourceFile(S)&&!e.isInJsonFile(S)&&!e.isUnparsedSource(S)&&!e.isUnparsedPrepend(S)}function pt(S,Ze,nt){switch(S){case 0:if(h!==e.noEmitNotification&&(!R||R(nt)))return Xt;case 1:if(G!==e.noEmitSubstitution&&(Hr=G(Ze,nt)||nt)!==nt)return Je&&(Hr=Je(Hr)),Ea;case 2:if(Lt(nt))return Su;case 3:if(vt(nt))return ru;case 4:return st;default:return e.Debug.assertNever(S)}}function Nt(S,Ze,nt){return pt(S+1,Ze,nt)}function Xt(S,Ze){var nt=Nt(0,S,Ze);h(S,Ze,nt)}function st(S,Ze){if(Y==null||Y(Ze),Re){var nt=Re;zr(Ze),$t(S,Ze),ut(nt)}else $t(S,Ze);pe==null||pe(Ze),Je=void 0}function $t(S,Ze,nt){if(nt===void 0&&(nt=!0),nt){var wt=e.getSnippetElement(Ze);if(wt)return ra(S,Ze,wt)}if(S===0)return ec(e.cast(Ze,e.isSourceFile));if(S===2)return Pt(e.cast(Ze,e.isIdentifier));if(S===6)return bt(e.cast(Ze,e.isStringLiteral),!0);if(S===3)return Pn(e.cast(Ze,e.isTypeParameterDeclaration));if(S===5)return e.Debug.assertNode(Ze,e.isEmptyStatement),zo(!0);if(S===4){switch(Ze.kind){case 15:case 16:case 17:return bt(Ze,!1);case 79:return Pt(Ze);case 80:return Et(Ze);case 160:return et(Ze);case 161:return Qn(Ze);case 162:return Ra(Ze);case 163:return Ki(Ze);case 164:return di(Ze);case 165:return ya(Ze);case 166:return $a(Ze);case 167:return ao(Ze);case 168:return ei(Ze);case 169:return Fi(Ze);case 170:return eo(Ze);case 171:case 172:return Wo(Ze);case 173:return Yi(Ze);case 174:return Ni(Ze);case 175:return Eo(Ze);case 176:return ts(Ze);case 177:return ja(Ze);case 178:return Do(Ze);case 179:return ko(Ze);case 180:return Oo(Ze);case 181:return Po(Ze);case 182:return Ss(Ze);case 183:return vr(Ze);case 184:return tn(Ze);case 186:return Bn(Ze);case 187:return Fe(Ze);case 188:return Gr(Ze);case 189:return ht(Ze);case 190:return ye(Ze);case 227:return da(Ze);case 191:return oe();case 192:return Pe(Ze);case 193:return Ye(Ze);case 194:return Tr(Ze);case 195:return tt(Ze);case 196:return gt(Ze);case 197:return Mt(Ze);case 198:return lo(Ze);case 199:return Wt(Ze);case 200:return Ln(Ze);case 201:return va(Ze);case 202:return ti(Ze);case 232:return wr(Ze);case 233:return So();case 234:return ss(Ze);case 236:return Sl(Ze);case 235:return zo(!1);case 237:return bs(Ze);case 238:return xl(Ze);case 239:return Vl(Ze);case 240:return zc(Ze);case 241:return io(Ze);case 242:return Zl(Ze);case 243:return Oc(Ze);case 244:return oc(Ze);case 245:return sc(Ze);case 246:return tf(Ze);case 247:return Rc(Ze);case 248:return lc(Ze);case 249:return Fr(Ze);case 250:return rt(Ze);case 251:return Dt(Ze);case 252:return zt(Ze);case 253:return _n(Ze);case 254:return dn(Ze);case 255:return On(Ze);case 256:return hr(Ze);case 257:return en(Ze);case 258:return ta(Ze);case 259:return Un(Ze);case 260:return Ta(Ze);case 261:return Ei(Ze);case 262:return Qi(Ze);case 263:return Nl(Ze);case 264:return Wi(Ze);case 265:return Ci(Ze);case 266:return Fo(Ze);case 267:return xo(Ze);case 273:return wc(Ze);case 268:return js(Ze);case 269:return Dl(Ze);case 270:return cc(Ze);case 271:return qc(Ze);case 272:return fl(Ze);case 274:return Mc(Ze);case 292:return Br(Ze);case 293:return Il(Ze);case 275:return;case 276:return Fd(Ze);case 11:return hc(Ze);case 279:case 282:return nf(Ze);case 280:case 283:return Gd(Ze);case 284:return Bd(Ze);case 285:return Ll(Ze);case 286:return qs(Ze);case 287:return Al(Ze);case 288:return af(Ze);case 289:return vu(Ze);case 290:return Vd(Ze);case 291:return Wd(Ze);case 294:return of(Ze);case 295:return jd(Ze);case 296:return cd(Ze);case 297:return $l(Ze);case 298:return Kt(Ze);case 305:case 299:return Ut(Ze);case 300:case 301:return bn(Ze);case 302:return wn(Ze);case 303:return ec(Ze);case 304:return e.Debug.fail("Bundles should be printed using printBundle");case 306:return e.Debug.fail("InputFiles should not be printed");case 307:return uc(Ze);case 308:return Ep(Ze);case 310:return Cn("*");case 311:return Cn("?");case 312:return Ti(Ze);case 313:return mo(Ze);case 314:return No(Ze);case 315:return Pa(Ze);case 185:case 316:return Ds(Ze);case 317:return;case 318:return o_(Ze);case 320:return Kd(Ze);case 321:return Dp(Ze);case 325:case 330:return l_(Ze);case 326:case 327:return s_(Ze);case 328:case 329:return;case 331:case 332:case 333:case 334:case 335:return;case 336:return Nf(Ze);case 338:case 345:return P_(Ze);case 337:case 339:case 340:case 341:return Hd(Ze);case 342:return Tp(Ze);case 343:return Sp(Ze);case 344:return Jd(Ze);case 347:case 351:case 350:return}if(e.isExpression(Ze)&&(S=1,G!==e.noEmitSubstitution)){var ca=G(S,Ze)||Ze;ca!==Ze&&(Ze=ca,Je&&(Ze=Je(Ze)))}}if(S===1)switch(Ze.kind){case 8:case 9:return nn(Ze);case 10:case 13:case 14:return bt(Ze,!1);case 79:return Pt(Ze);case 80:return Et(Ze);case 203:return ii(Ze);case 204:return Si(Ze);case 205:return Oi(Ze);case 206:return os(Ze);case 207:return jo(Ze);case 208:return At(Ze);case 209:return Wn(Ze);case 210:return sa(Ze);case 211:return oi(Ze);case 212:return vi(Ze);case 213:return Ui(Ze);case 214:return gi(Ze);case 215:return Mi(Ze);case 216:return Vi(Ze);case 217:return Ro(Ze);case 218:return Yo(Ze);case 219:return me(Ze);case 220:return kt(Ze);case 221:return yt(Ze);case 222:return Le(Ze);case 223:return Xr(Ze);case 224:return an(Ze);case 225:return Xn(Ze);case 226:return;case 228:return bi(Ze);case 229:return Qa(Ze);case 230:return go(Ze);case 231:return e.Debug.fail("SyntheticExpression should never be printed.");case 277:return bp(Ze);case 278:return ld(Ze);case 281:return cs(Ze);case 346:return e.Debug.fail("SyntaxList should not be printed");case 347:return;case 348:return sf(Ze);case 349:return F_(Ze);case 350:case 351:return;case 352:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}if(e.isKeyword(Ze.kind))return Ys(Ze,ui);if(e.isTokenKind(Ze.kind))return Ys(Ze,Cn);e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(Ze.kind),"."))}function Pn(S){Or(S.name),An(),ui("in"),An(),Or(S.constraint)}function Ea(S,Ze){var nt=Nt(1,S,Ze);e.Debug.assertIsDefined(Hr),Ze=Hr,Hr=void 0,nt(S,Ze)}function ia(S){var Ze;if(!(ne===e.ModuleKind.None||d.noEmitHelpers)){for(var nt=new e.Map,wt=0,ca=S.sourceFiles;wt<ca.length;wt++){var Ga=ca[wt],na=e.getExternalHelpersModuleName(Ga)!==void 0,si=Gn(Ga);if(!!si)for(var wa=0,Za=si;wa<Za.length;wa++){var Lo=Za[wa];!Lo.scoped&&!na&&!nt.get(Lo.name)&&(nt.set(Lo.name,!0),(Ze||(Ze=[])).push(Lo.name))}}return Ze}}function pa(S){var Ze=!1,nt=S.kind===304?S:void 0;if(!(nt&&ne===e.ModuleKind.None)){for(var wt=nt?nt.prepends.length:0,ca=nt?nt.sourceFiles.length+wt:1,Ga=0;Ga<ca;Ga++){var na=nt?Ga<wt?nt.prepends[Ga]:nt.sourceFiles[Ga-wt]:S,si=e.isSourceFile(na)?na:e.isUnparsedSource(na)?void 0:le,wa=d.noEmitHelpers||!!si&&e.hasRecordedExternalHelpers(si),Za=(e.isSourceFile(na)||e.isUnparsedSource(na))&&!ve,Lo=e.isUnparsedSource(na)?na.helpers:Gn(na);if(Lo)for(var ol=0,As=Lo;ol<As.length;ol++){var Ms=As[ol];if(Ms.scoped){if(nt)continue}else{if(wa)continue;if(Za){if(J.get(Ms.name))continue;J.set(Ms.name,!0)}}var gl=ge();typeof Ms.text=="string"?Ec(Ms.text):Ec(Ms.text(Gf)),Ve&&Ve.sections.push({pos:gl,end:Ue.getTextPos(),kind:"emitHelpers",data:Ms.name}),Ze=!0}}return Ze}}function Gn(S){var Ze=e.getEmitHelpers(S);return Ze&&e.stableSort(Ze,e.compareEmitHelpers)}function nn(S){bt(S,!1)}function bt(S,Ze){var nt=il(S,d.neverAsciiEscape,Ze);(d.sourceMap||d.inlineSourceMap)&&(S.kind===10||e.isTemplateLiteralKind(S.kind))?Go(nt):Lp(nt)}function Ut(S){for(var Ze=0,nt=S.texts;Ze<nt.length;Ze++){var wt=nt[Ze];ls(),Or(wt)}}function Kt(S){Ue.rawWrite(S.parent.text.substring(S.pos,S.end))}function bn(S){var Ze=ge();Kt(S),Ve&&rr(Ze,Ue.getTextPos(),S.kind===300?"text":"internal")}function wn(S){var Ze=ge();if(Kt(S),Ve){var nt=e.clone(S.section);nt.pos=Ze,nt.end=Ue.getTextPos(),Ve.sections.push(nt)}}function ra(S,Ze,nt){switch(nt.kind){case 1:ft(S,Ze,nt);break;case 0:Ct(nt);break}}function ft(S,Ze,nt){fs("${".concat(nt.order,":")),$t(S,Ze,!1),fs("}")}function Ct(S){fs("$".concat(S.order))}function Pt(S){var Ze=S.symbol?wf:Ne;Ze(Tu(S,!1),S.symbol),Zi(S,S.typeArguments,53776)}function Et(S){var Ze=S.symbol?wf:Ne;Ze(Tu(S,!1),S.symbol)}function et(S){hn(S.left),Cn("."),Or(S.right)}function hn(S){S.kind===79?yr(S):Or(S)}function Qn(S){Cn("["),yr(S.expression,_t.parenthesizeExpressionOfComputedPropertyName),Cn("]")}function Ra(S){Or(S.name),S.constraint&&(An(),ui("extends"),An(),Or(S.constraint)),S.default&&(An(),yc("="),An(),Or(S.default))}function Ki(S){kl(S,S.decorators),ks(S,S.modifiers),Or(S.dotDotDotToken),qd(S.name,Ap),Or(S.questionToken),S.parent&&S.parent.kind===315&&!S.name?Or(S.type):Xc(S.type),Yc(S.initializer,S.type?S.type.end:S.questionToken?S.questionToken.end:S.name?S.name.end:S.modifiers?S.modifiers.end:S.decorators?S.decorators.end:S.pos,S,_t.parenthesizeExpressionForDisallowedComma)}function di(S){Cn("@"),yr(S.expression,_t.parenthesizeLeftSideOfAccess)}function ya(S){kl(S,S.decorators),ks(S,S.modifiers),qd(S.name,d_),Or(S.questionToken),Xc(S.type),us()}function $a(S){kl(S,S.decorators),ks(S,S.modifiers),Or(S.name),Or(S.questionToken),Or(S.exclamationToken),Xc(S.type),Yc(S.initializer,S.type?S.type.end:S.questionToken?S.questionToken.end:S.name.end,S),us()}function ao(S){Ol(S),kl(S,S.decorators),ks(S,S.modifiers),Or(S.name),Or(S.questionToken),Wl(S,S.typeParameters),Bc(S,S.parameters),Xc(S.type),us(),$c(S)}function ei(S){kl(S,S.decorators),ks(S,S.modifiers),Or(S.asteriskToken),Or(S.name),Or(S.questionToken),Fa(S,fa)}function Fi(S){kl(S,S.decorators),ks(S,S.modifiers),ui("static"),Na(S.body)}function eo(S){ks(S,S.modifiers),ui("constructor"),Fa(S,fa)}function Wo(S){kl(S,S.decorators),ks(S,S.modifiers),ui(S.kind===171?"get":"set"),An(),Or(S.name),Fa(S,fa)}function Yi(S){Ol(S),kl(S,S.decorators),ks(S,S.modifiers),Wl(S,S.typeParameters),Bc(S,S.parameters),Xc(S.type),us(),$c(S)}function Ni(S){Ol(S),kl(S,S.decorators),ks(S,S.modifiers),ui("new"),An(),Wl(S,S.typeParameters),Bc(S,S.parameters),Xc(S.type),us(),$c(S)}function Eo(S){kl(S,S.decorators),ks(S,S.modifiers),yu(S,S.parameters),Xc(S.type),us()}function lo(S){Or(S.type),Or(S.literal)}function So(){us()}function ts(S){S.assertsModifier&&(Or(S.assertsModifier),An()),Or(S.parameterName),S.type&&(An(),ui("is"),An(),Or(S.type))}function ja(S){Or(S.typeName),Qc(S,S.typeArguments)}function Do(S){Ol(S),Wl(S,S.typeParameters),pd(S,S.parameters),An(),Cn("=>"),An(),Or(S.type),$c(S)}function Pa(S){ui("function"),Bc(S,S.parameters),Cn(":"),Or(S.type)}function Ti(S){Cn("?"),Or(S.type)}function mo(S){Cn("!"),Or(S.type)}function No(S){Or(S.type),Cn("=")}function ko(S){Ol(S),ks(S,S.modifiers),ui("new"),An(),Wl(S,S.typeParameters),Bc(S,S.parameters),An(),Cn("=>"),An(),Or(S.type),$c(S)}function Oo(S){ui("typeof"),An(),Or(S.exprName)}function Po(S){Cn("{");var Ze=e.getEmitFlags(S)&1?768:32897;Zi(S,S.members,Ze|524288),Cn("}")}function Ss(S){Or(S.elementType,_t.parenthesizeElementTypeOfArrayType),Cn("["),Cn("]")}function Ds(S){Cn("..."),Or(S.type)}function vr(S){Ia(22,S.pos,Cn,S);var Ze=e.getEmitFlags(S)&1?528:657;Zi(S,S.elements,Ze|524288),Ia(23,S.elements.end,Cn,S)}function gt(S){Or(S.dotDotDotToken),Or(S.name),Or(S.questionToken),Ia(58,S.name.end,Cn,S),An(),Or(S.type)}function tn(S){Or(S.type,_t.parenthesizeElementTypeOfArrayType),Cn("?")}function Bn(S){Zi(S,S.types,516,_t.parenthesizeMemberOfElementType)}function Fe(S){Zi(S,S.types,520,_t.parenthesizeMemberOfElementType)}function Gr(S){Or(S.checkType,_t.parenthesizeMemberOfConditionalType),An(),ui("extends"),An(),Or(S.extendsType,_t.parenthesizeMemberOfConditionalType),An(),Cn("?"),An(),Or(S.trueType),An(),Cn(":"),An(),Or(S.falseType)}function ht(S){ui("infer"),An(),Or(S.typeParameter)}function ye(S){Cn("("),Or(S.type),Cn(")")}function oe(){ui("this")}function Pe(S){bc(S.operator,ui),An(),Or(S.type,_t.parenthesizeMemberOfElementType)}function Ye(S){Or(S.objectType,_t.parenthesizeMemberOfElementType),Cn("["),Or(S.indexType),Cn("]")}function Tr(S){var Ze=e.getEmitFlags(S);Cn("{"),Ze&1?An():(ls(),fc()),S.readonlyToken&&(Or(S.readonlyToken),S.readonlyToken.kind!==144&&ui("readonly"),An()),Cn("["),mt(3,S.typeParameter),S.nameType&&(An(),ui("as"),An(),Or(S.nameType)),Cn("]"),S.questionToken&&(Or(S.questionToken),S.questionToken.kind!==57&&Cn("?")),Cn(":"),An(),Or(S.type),us(),Ze&1?An():(ls(),jl()),Cn("}")}function tt(S){yr(S.literal)}function Mt(S){Or(S.head),Zi(S,S.templateSpans,262144)}function Wt(S){S.isTypeOf&&(ui("typeof"),An()),ui("import"),Cn("("),Or(S.argument),Cn(")"),S.qualifier&&(Cn("."),Or(S.qualifier)),Qc(S,S.typeArguments)}function Ln(S){Cn("{"),Zi(S,S.elements,525136),Cn("}")}function va(S){Cn("["),Zi(S,S.elements,524880),Cn("]")}function ti(S){Or(S.dotDotDotToken),S.propertyName&&(Or(S.propertyName),Cn(":"),An()),Or(S.name),Yc(S.initializer,S.name.end,S,_t.parenthesizeExpressionForDisallowedComma)}function ii(S){var Ze=S.elements,nt=S.multiLine?65536:0;cf(S,Ze,8914|nt,_t.parenthesizeExpressionForDisallowedComma)}function Si(S){e.forEach(S.properties,xn);var Ze=e.getEmitFlags(S)&65536;Ze&&fc();var nt=S.multiLine?65536:0,wt=le.languageVersion>=1&&!e.isJsonSourceFile(le)?64:0;Zi(S,S.properties,526226|wt|nt),Ze&&jl()}function Oi(S){yr(S.expression,_t.parenthesizeLeftSideOfAccess);var Ze=S.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),S.expression.end,S.name.pos),nt=dc(S,S.expression,Ze),wt=dc(S,Ze,S.name);Zc(nt,!1);var ca=Ze.kind!==28&&_s(S.expression)&&!Ue.hasTrailingComment()&&!Ue.hasTrailingWhitespace();ca&&Cn("."),S.questionDotToken?Or(Ze):Ia(Ze.kind,S.expression.end,Cn,S),Zc(wt,!1),Or(S.name),bu(nt,wt)}function _s(S){if(S=e.skipPartiallyEmittedExpressions(S),e.isNumericLiteral(S)){var Ze=il(S,!0,!1);return!S.numericLiteralFlags&&!e.stringContains(Ze,e.tokenToString(24))}else if(e.isAccessExpression(S)){var nt=e.getConstantValue(S);return typeof nt=="number"&&isFinite(nt)&&Math.floor(nt)===nt}}function os(S){yr(S.expression,_t.parenthesizeLeftSideOfAccess),Or(S.questionDotToken),Ia(22,S.expression.end,Cn,S),yr(S.argumentExpression),Ia(23,S.argumentExpression.end,Cn,S)}function jo(S){var Ze=e.getEmitFlags(S)&536870912;Ze&&(Cn("("),Go("0"),Cn(","),An()),yr(S.expression,_t.parenthesizeLeftSideOfAccess),Ze&&Cn(")"),Or(S.questionDotToken),Qc(S,S.typeArguments),cf(S,S.arguments,2576,_t.parenthesizeExpressionForDisallowedComma)}function At(S){Ia(103,S.pos,ui,S),An(),yr(S.expression,_t.parenthesizeExpressionOfNew),Qc(S,S.typeArguments),cf(S,S.arguments,18960,_t.parenthesizeExpressionForDisallowedComma)}function Wn(S){var Ze=e.getEmitFlags(S)&536870912;Ze&&(Cn("("),Go("0"),Cn(","),An()),yr(S.tag,_t.parenthesizeLeftSideOfAccess),Ze&&Cn(")"),Qc(S,S.typeArguments),An(),yr(S.template)}function sa(S){Cn("<"),Or(S.type),Cn(">"),yr(S.expression,_t.parenthesizeOperandOfPrefixUnary)}function oi(S){var Ze=Ia(20,S.pos,Cn,S),nt=Ff(S.expression,S);yr(S.expression,void 0),_d(S.expression,S),bu(nt),Ia(21,S.expression?S.expression.end:Ze,Cn,S)}function vi(S){Ls(S.name),Jn(S)}function Ui(S){kl(S,S.decorators),ks(S,S.modifiers),Fa(S,Ca)}function Ca(S){Wl(S,S.typeParameters),pd(S,S.parameters),Xc(S.type),An(),Or(S.equalsGreaterThanToken)}function gi(S){Ia(89,S.pos,ui,S),An(),yr(S.expression,_t.parenthesizeOperandOfPrefixUnary)}function Mi(S){Ia(112,S.pos,ui,S),An(),yr(S.expression,_t.parenthesizeOperandOfPrefixUnary)}function Vi(S){Ia(114,S.pos,ui,S),An(),yr(S.expression,_t.parenthesizeOperandOfPrefixUnary)}function Ro(S){Ia(132,S.pos,ui,S),An(),yr(S.expression,_t.parenthesizeOperandOfPrefixUnary)}function Yo(S){bc(S.operator,yc),ns(S)&&An(),yr(S.operand,_t.parenthesizeOperandOfPrefixUnary)}function ns(S){var Ze=S.operand;return Ze.kind===218&&(S.operator===39&&(Ze.operator===39||Ze.operator===45)||S.operator===40&&(Ze.operator===40||Ze.operator===46))}function me(S){yr(S.operand,_t.parenthesizeOperandOfPostfixUnary),bc(S.operator,yc)}function Pr(){return e.createBinaryExpressionTrampoline(S,Ze,nt,wt,ca,void 0);function S(na,si){if(si){si.stackIndex++,si.preserveSourceNewlinesStack[si.stackIndex]=Re,si.containerPosStack[si.stackIndex]=de,si.containerEndStack[si.stackIndex]=we,si.declarationListContainerEndStack[si.stackIndex]=qe;var wa=si.shouldEmitCommentsStack[si.stackIndex]=Lt(na),Za=si.shouldEmitSourceMapsStack[si.stackIndex]=vt(na);Y==null||Y(na),wa&&Np(na),Za&&Rp(na),zr(na)}else si={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return si}function Ze(na,si,wa){return Ga(na,wa,"left")}function nt(na,si,wa){var Za=na.kind!==27,Lo=dc(wa,wa.left,na),ol=dc(wa,na,wa.right);Zc(Lo,Za),Hu(na.pos),Ys(na,na.kind===101?ui:yc),Ju(na.end,!0),Zc(ol,!0)}function wt(na,si,wa){return Ga(na,wa,"right")}function ca(na,si){var wa=dc(na,na.left,na.operatorToken),Za=dc(na,na.operatorToken,na.right);if(bu(wa,Za),si.stackIndex>0){var Lo=si.preserveSourceNewlinesStack[si.stackIndex],ol=si.containerPosStack[si.stackIndex],As=si.containerEndStack[si.stackIndex],Ms=si.declarationListContainerEndStack[si.stackIndex],gl=si.shouldEmitCommentsStack[si.stackIndex],au=si.shouldEmitSourceMapsStack[si.stackIndex];ut(Lo),au&&pc(na),gl&&Bf(na,ol,As,Ms),pe==null||pe(na),si.stackIndex--}}function Ga(na,si,wa){var Za=wa==="left"?_t.getParenthesizeLeftSideOfBinaryForOperator(si.operatorToken.kind):_t.getParenthesizeRightSideOfBinaryForOperator(si.operatorToken.kind),Lo=pt(0,1,na);if(Lo===Ea&&(e.Debug.assertIsDefined(Hr),na=Za(e.cast(Hr,e.isExpression)),Lo=Nt(1,1,na),Hr=void 0),(Lo===Su||Lo===ru||Lo===st)&&e.isBinaryExpression(na))return na;Je=Za,Lo(1,na)}}function yt(S){var Ze=dc(S,S.condition,S.questionToken),nt=dc(S,S.questionToken,S.whenTrue),wt=dc(S,S.whenTrue,S.colonToken),ca=dc(S,S.colonToken,S.whenFalse);yr(S.condition,_t.parenthesizeConditionOfConditionalExpression),Zc(Ze,!0),Or(S.questionToken),Zc(nt,!0),yr(S.whenTrue,_t.parenthesizeBranchOfConditionalExpression),bu(Ze,nt),Zc(wt,!0),Or(S.colonToken),Zc(ca,!0),yr(S.whenFalse,_t.parenthesizeBranchOfConditionalExpression),bu(wt,ca)}function Le(S){Or(S.head),Zi(S,S.templateSpans,262144)}function Xr(S){Ia(125,S.pos,ui,S),Or(S.asteriskToken),Uu(S.expression,_t.parenthesizeExpressionForDisallowedComma)}function an(S){Ia(25,S.pos,Cn,S),yr(S.expression,_t.parenthesizeExpressionForDisallowedComma)}function Xn(S){Ls(S.name),dt(S)}function da(S){yr(S.expression,_t.parenthesizeLeftSideOfAccess),Qc(S,S.typeArguments)}function bi(S){yr(S.expression,void 0),S.type&&(An(),ui("as"),An(),Or(S.type))}function Qa(S){yr(S.expression,_t.parenthesizeLeftSideOfAccess),yc("!")}function go(S){Mf(S.keywordToken,S.pos,Cn),Cn("."),Or(S.name)}function wr(S){yr(S.expression),Or(S.literal)}function ss(S){al(S,!S.multiLine&&md(S))}function al(S,Ze){Ia(18,S.pos,Cn,S);var nt=Ze||e.getEmitFlags(S)&1?768:129;Zi(S,S.statements,nt),Ia(19,S.statements.end,Cn,S,!!(nt&1))}function Sl(S){ks(S,S.modifiers),Or(S.declarationList),us()}function zo(S){S?Cn(";"):us()}function bs(S){yr(S.expression,_t.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(le)||e.nodeIsSynthesized(S.expression))&&us()}function xl(S){var Ze=Ia(99,S.pos,ui,S);An(),Ia(20,Ze,Cn,S),yr(S.expression),Ia(21,S.expression.end,Cn,S),Gc(S,S.thenStatement),S.elseStatement&&(Pf(S,S.thenStatement,S.elseStatement),Ia(91,S.thenStatement.end,ui,S),S.elseStatement.kind===238?(An(),Or(S.elseStatement)):Gc(S,S.elseStatement))}function ic(S,Ze){var nt=Ia(115,Ze,ui,S);An(),Ia(20,nt,Cn,S),yr(S.expression),Ia(21,S.expression.end,Cn,S)}function Vl(S){Ia(90,S.pos,ui,S),Gc(S,S.statement),e.isBlock(S.statement)&&!Re?An():Pf(S,S.statement,S.expression),ic(S,S.statement.end),us()}function zc(S){ic(S,S.pos),Gc(S,S.statement)}function io(S){var Ze=Ia(97,S.pos,ui,S);An();var nt=Ia(20,Ze,Cn,S);ul(S.initializer),nt=Ia(26,S.initializer?S.initializer.end:nt,Cn,S),Uu(S.condition),nt=Ia(26,S.condition?S.condition.end:nt,Cn,S),Uu(S.incrementor),Ia(21,S.incrementor?S.incrementor.end:nt,Cn,S),Gc(S,S.statement)}function Zl(S){var Ze=Ia(97,S.pos,ui,S);An(),Ia(20,Ze,Cn,S),ul(S.initializer),An(),Ia(101,S.initializer.end,ui,S),An(),yr(S.expression),Ia(21,S.expression.end,Cn,S),Gc(S,S.statement)}function Oc(S){var Ze=Ia(97,S.pos,ui,S);An(),G_(S.awaitModifier),Ia(20,Ze,Cn,S),ul(S.initializer),An(),Ia(159,S.initializer.end,ui,S),An(),yr(S.expression),Ia(21,S.expression.end,Cn,S),Gc(S,S.statement)}function ul(S){S!==void 0&&(S.kind===254?Or(S):yr(S))}function oc(S){Ia(86,S.pos,ui,S),lf(S.label),us()}function sc(S){Ia(81,S.pos,ui,S),lf(S.label),us()}function Ia(S,Ze,nt,wt,ca){var Ga=e.getParseTreeNode(wt),na=Ga&&Ga.kind===wt.kind,si=Ze;if(na&&le&&(Ze=e.skipTrivia(le.text,Ze)),na&&wt.pos!==si){var wa=ca&&le&&!e.positionsAreOnSameLine(si,Ze,le);wa&&fc(),Hu(si),wa&&jl()}if(Ze=bc(S,nt,Ze),na&&wt.end!==Ze){var Za=wt.kind===287;Ju(Ze,!Za,Za)}return Ze}function tf(S){Ia(105,S.pos,ui,S),Uu(S.expression),us()}function Rc(S){var Ze=Ia(116,S.pos,ui,S);An(),Ia(20,Ze,Cn,S),yr(S.expression),Ia(21,S.expression.end,Cn,S),Gc(S,S.statement)}function lc(S){var Ze=Ia(107,S.pos,ui,S);An(),Ia(20,Ze,Cn,S),yr(S.expression),Ia(21,S.expression.end,Cn,S),An(),Or(S.caseBlock)}function Fr(S){Or(S.label),Ia(58,S.label.end,Cn,S),An(),Or(S.statement)}function rt(S){Ia(109,S.pos,ui,S),Uu(S.expression),us()}function Dt(S){Ia(111,S.pos,ui,S),An(),Or(S.tryBlock),S.catchClause&&(Pf(S,S.tryBlock,S.catchClause),Or(S.catchClause)),S.finallyBlock&&(Pf(S,S.catchClause||S.tryBlock,S.finallyBlock),Ia(96,(S.catchClause||S.tryBlock).end,ui,S),An(),Or(S.finallyBlock))}function zt(S){Mf(87,S.pos,ui),us()}function _n(S){Or(S.name),Or(S.exclamationToken),Xc(S.type),Yc(S.initializer,S.type?S.type.end:S.name.end,S,_t.parenthesizeExpressionForDisallowedComma)}function dn(S){ui(e.isLet(S)?"let":e.isVarConst(S)?"const":"var"),An(),Zi(S,S.declarations,528)}function On(S){Jn(S)}function Jn(S){kl(S,S.decorators),ks(S,S.modifiers),ui("function"),Or(S.asteriskToken),An(),Be(S.name),Fa(S,fa)}function Fa(S,Ze){var nt=S.body;if(nt)if(e.isBlock(nt)){var wt=e.getEmitFlags(S)&65536;wt&&fc(),Ol(S),e.forEach(S.parameters,Ha),Ha(S.body),Ze(S),Na(nt),$c(S),wt&&jl()}else Ze(S),An(),yr(nt,_t.parenthesizeConciseBodyOfArrowFunction);else Ze(S),us()}function fa(S){Wl(S,S.typeParameters),Bc(S,S.parameters),Xc(S.type)}function ba(S){if(e.getEmitFlags(S)&1)return!0;if(S.multiLine||!e.nodeIsSynthesized(S)&&!e.rangeIsOnSingleLine(S,le)||_l(S,S.statements,2)||Eu(S,S.statements,2))return!1;for(var Ze,nt=0,wt=S.statements;nt<wt.length;nt++){var ca=wt[nt];if(Cp(Ze,ca,2)>0)return!1;Ze=ca}return!0}function Na(S){Y==null||Y(S),An(),Cn("{"),fc();var Ze=ba(S)?he:ar;vd?vd(S,S.statements,Ze):Ze(S),jl(),Mf(19,S.statements.end,Cn,S),pe==null||pe(S)}function he(S){ar(S,!0)}function ar(S,Ze){var nt=dd(S.statements),wt=Ue.getTextPos();pa(S),nt===0&&wt===Ue.getTextPos()&&Ze?(jl(),Zi(S,S.statements,768),fc()):Zi(S,S.statements,1,void 0,nt)}function hr(S){dt(S)}function dt(S){e.forEach(S.members,xn),kl(S,S.decorators),ks(S,S.modifiers),ui("class"),S.name&&(An(),Be(S.name));var Ze=e.getEmitFlags(S)&65536;Ze&&fc(),Wl(S,S.typeParameters),Zi(S,S.heritageClauses,0),An(),Cn("{"),Zi(S,S.members,129),Cn("}"),Ze&&jl()}function en(S){kl(S,S.decorators),ks(S,S.modifiers),ui("interface"),An(),Or(S.name),Wl(S,S.typeParameters),Zi(S,S.heritageClauses,512),An(),Cn("{"),Zi(S,S.members,129),Cn("}")}function ta(S){kl(S,S.decorators),ks(S,S.modifiers),ui("type"),An(),Or(S.name),Wl(S,S.typeParameters),An(),Cn("="),An(),Or(S.type),us()}function Un(S){ks(S,S.modifiers),ui("enum"),An(),Or(S.name),An(),Cn("{"),Zi(S,S.members,145),Cn("}")}function Ta(S){ks(S,S.modifiers),~S.flags&1024&&(ui(S.flags&16?"namespace":"module"),An()),Or(S.name);var Ze=S.body;if(!Ze)return us();for(;Ze&&e.isModuleDeclaration(Ze);)Cn("."),Or(Ze.name),Ze=Ze.body;An(),Or(Ze)}function Ei(S){Ol(S),e.forEach(S.statements,Ha),al(S,md(S)),$c(S)}function Qi(S){Ia(18,S.pos,Cn,S),Zi(S,S.clauses,129),Ia(19,S.clauses.end,Cn,S,!0)}function Wi(S){ks(S,S.modifiers),Ia(100,S.modifiers?S.modifiers.end:S.pos,ui,S),An(),S.isTypeOnly&&(Ia(151,S.pos,ui,S),An()),Or(S.name),An(),Ia(63,S.name.end,Cn,S),An(),Ai(S.moduleReference),us()}function Ai(S){S.kind===79?yr(S):Or(S)}function Ci(S){ks(S,S.modifiers),Ia(100,S.modifiers?S.modifiers.end:S.pos,ui,S),An(),S.importClause&&(Or(S.importClause),An(),Ia(155,S.importClause.end,ui,S),An()),yr(S.moduleSpecifier),S.assertClause&&lf(S.assertClause),us()}function Fo(S){S.isTypeOnly&&(Ia(151,S.pos,ui,S),An()),Or(S.name),S.name&&S.namedBindings&&(Ia(27,S.name.end,Cn,S),An()),Or(S.namedBindings)}function xo(S){var Ze=Ia(41,S.pos,Cn,S);An(),Ia(127,Ze,ui,S),An(),Or(S.name)}function js(S){sd(S)}function Dl(S){co(S)}function cc(S){var Ze=Ia(93,S.pos,ui,S);An(),S.isExportEquals?Ia(63,Ze,yc,S):Ia(88,Ze,ui,S),An(),yr(S.expression,S.isExportEquals?_t.getParenthesizeRightSideOfBinaryForOperator(63):_t.parenthesizeExpressionOfExportDefault),us()}function qc(S){var Ze=Ia(93,S.pos,ui,S);if(An(),S.isTypeOnly&&(Ze=Ia(151,Ze,ui,S),An()),S.exportClause?Or(S.exportClause):Ze=Ia(41,Ze,Cn,S),S.moduleSpecifier){An();var nt=S.exportClause?S.exportClause.end:Ze;Ia(155,nt,ui,S),An(),yr(S.moduleSpecifier)}S.assertClause&&lf(S.assertClause),us()}function Br(S){Ia(129,S.pos,ui,S),An();var Ze=S.elements;Zi(S,Ze,526226)}function Il(S){Or(S.name),Cn(":"),An();var Ze=S.value;if((e.getEmitFlags(Ze)&512)===0){var nt=e.getCommentRange(Ze);Ju(nt.pos)}Or(Ze)}function Nl(S){var Ze=Ia(93,S.pos,ui,S);An(),Ze=Ia(127,Ze,ui,S),An(),Ze=Ia(142,Ze,ui,S),An(),Or(S.name),us()}function wc(S){var Ze=Ia(41,S.pos,Cn,S);An(),Ia(127,Ze,ui,S),An(),Or(S.name)}function fl(S){sd(S)}function Mc(S){co(S)}function sd(S){Cn("{"),Zi(S,S.elements,525136),Cn("}")}function co(S){S.isTypeOnly&&(ui("type"),An()),S.propertyName&&(Or(S.propertyName),An(),Ia(127,S.propertyName.end,ui,S),An()),Or(S.name)}function Fd(S){ui("require"),Cn("("),yr(S.expression),Cn(")")}function bp(S){Or(S.openingElement),Zi(S,S.children,262144),Or(S.closingElement)}function ld(S){Cn("<"),Ud(S.tagName),Qc(S,S.typeArguments),An(),Or(S.attributes),Cn("/>")}function cs(S){Or(S.openingFragment),Zi(S,S.children,262144),Or(S.closingFragment)}function nf(S){if(Cn("<"),e.isJsxOpeningElement(S)){var Ze=Ff(S.tagName,S);Ud(S.tagName),Qc(S,S.typeArguments),S.attributes.properties&&S.attributes.properties.length>0&&An(),Or(S.attributes),_d(S.attributes,S),bu(Ze)}Cn(">")}function hc(S){Ue.writeLiteral(S.text)}function Gd(S){Cn("</"),e.isJsxClosingElement(S)&&Ud(S.tagName),Cn(">")}function Ll(S){Zi(S,S.properties,262656)}function Bd(S){Or(S.name),f_("=",Cn,S.initializer,Rr)}function qs(S){Cn("{..."),yr(S.expression),Cn("}")}function Va(S){var Ze=!1;return e.forEachTrailingCommentRange((le==null?void 0:le.text)||"",S+1,function(){return Ze=!0}),Ze}function Zn(S){var Ze=!1;return e.forEachLeadingCommentRange((le==null?void 0:le.text)||"",S+1,function(){return Ze=!0}),Ze}function Pc(S){return Va(S)||Zn(S)}function Al(S){var Ze;if(S.expression||!lr&&!e.nodeIsSynthesized(S)&&Pc(S.pos)){var nt=le&&!e.nodeIsSynthesized(S)&&e.getLineAndCharacterOfPosition(le,S.pos).line!==e.getLineAndCharacterOfPosition(le,S.end).line;nt&&Ue.increaseIndent();var wt=Ia(18,S.pos,Cn,S);Or(S.dotDotDotToken),yr(S.expression),Ia(19,((Ze=S.expression)===null||Ze===void 0?void 0:Ze.end)||wt,Cn,S),nt&&Ue.decreaseIndent()}}function Ud(S){S.kind===79?yr(S):Or(S)}function af(S){Ia(82,S.pos,ui,S),An(),yr(S.expression,_t.parenthesizeExpressionForDisallowedComma),Ho(S,S.statements,S.expression.end)}function vu(S){var Ze=Ia(88,S.pos,ui,S);Ho(S,S.statements,Ze)}function Ho(S,Ze,nt){var wt=Ze.length===1&&(e.nodeIsSynthesized(S)||e.nodeIsSynthesized(Ze[0])||e.rangeStartPositionsAreOnSameLine(S,Ze[0],le)),ca=163969;wt?(Mf(58,nt,Cn,S),An(),ca&=-130):Ia(58,nt,Cn,S),Zi(S,Ze,ca)}function Vd(S){An(),bc(S.token,ui),An(),Zi(S,S.types,528)}function Wd(S){var Ze=Ia(83,S.pos,ui,S);An(),S.variableDeclaration&&(Ia(20,Ze,Cn,S),Or(S.variableDeclaration),Ia(21,S.variableDeclaration.end,Cn,S),An()),Or(S.block)}function of(S){Or(S.name),Cn(":"),An();var Ze=S.initializer;if((e.getEmitFlags(Ze)&512)===0){var nt=e.getCommentRange(Ze);Ju(nt.pos)}yr(Ze,_t.parenthesizeExpressionForDisallowedComma)}function jd(S){Or(S.name),S.objectAssignmentInitializer&&(An(),Cn("="),An(),yr(S.objectAssignmentInitializer,_t.parenthesizeExpressionForDisallowedComma))}function cd(S){S.expression&&(Ia(25,S.pos,Cn,S),yr(S.expression,_t.parenthesizeExpressionForDisallowedComma))}function $l(S){Or(S.name),Yc(S.initializer,S.name.end,S,_t.parenthesizeExpressionForDisallowedComma)}function o_(S){if(Ne("/**"),S.comment){var Ze=e.getTextOfJSDocComment(S.comment);if(Ze)for(var nt=Ze.split(/\r\n?|\n/g),wt=0,ca=nt;wt<ca.length;wt++){var Ga=ca[wt];ls(),An(),Cn("*"),An(),Ne(Ga)}}S.tags&&(S.tags.length===1&&S.tags[0].kind===341&&!S.comment?(An(),Or(S.tags[0])):Zi(S,S.tags,33)),An(),Ne("*/")}function Hd(S){hu(S.tagName),uc(S.typeExpression),Fc(S.comment)}function Jd(S){hu(S.tagName),Or(S.name),Fc(S.comment)}function Ep(S){An(),Cn("{"),Or(S.name),Cn("}")}function s_(S){hu(S.tagName),An(),Cn("{"),Or(S.class),Cn("}"),Fc(S.comment)}function Tp(S){hu(S.tagName),uc(S.constraint),An(),Zi(S,S.typeParameters,528),Fc(S.comment)}function Sp(S){hu(S.tagName),S.typeExpression&&(S.typeExpression.kind===307?uc(S.typeExpression):(An(),Cn("{"),Ne("Object"),S.typeExpression.isArrayType&&(Cn("["),Cn("]")),Cn("}"))),S.fullName&&(An(),Or(S.fullName)),Fc(S.comment),S.typeExpression&&S.typeExpression.kind===320&&Kd(S.typeExpression)}function Nf(S){hu(S.tagName),S.name&&(An(),Or(S.name)),Fc(S.comment),Dp(S.typeExpression)}function l_(S){hu(S.tagName),Fc(S.comment)}function Kd(S){Zi(S,e.factory.createNodeArray(S.jsDocPropertyTags),33)}function Dp(S){S.typeParameters&&Zi(S,e.factory.createNodeArray(S.typeParameters),33),S.parameters&&Zi(S,e.factory.createNodeArray(S.parameters),33),S.type&&(ls(),An(),Cn("*"),An(),Or(S.type))}function P_(S){hu(S.tagName),uc(S.typeExpression),An(),S.isBracketed&&Cn("["),Or(S.name),S.isBracketed&&Cn("]"),Fc(S.comment)}function hu(S){Cn("@"),Or(S)}function Fc(S){var Ze=e.getTextOfJSDocComment(S);Ze&&(An(),Ne(Ze))}function uc(S){S&&(An(),Cn("{"),Or(S.type),Cn("}"))}function ec(S){ls();var Ze=S.statements;if(vd){var nt=Ze.length===0||!e.isPrologueDirective(Ze[0])||e.nodeIsSynthesized(Ze[0]);if(nt){vd(S,Ze,c_);return}}c_(S)}function ud(S){fd(!!S.hasNoDefaultLib,S.syntheticFileReferences||[],S.syntheticTypeReferences||[],S.syntheticLibReferences||[]);for(var Ze=0,nt=S.prepends;Ze<nt.length;Ze++){var wt=nt[Ze];if(e.isUnparsedSource(wt)&&wt.syntheticReferences)for(var ca=0,Ga=wt.syntheticReferences;ca<Ga.length;ca++){var na=Ga[ca];Or(na),ls()}}}function kf(S){S.isDeclarationFile&&fd(S.hasNoDefaultLib,S.referencedFiles,S.typeReferenceDirectives,S.libReferenceDirectives)}function fd(S,Ze,nt,wt){if(S){var ca=Ue.getTextPos();Xs('/// <reference no-default-lib="true"/>'),Ve&&Ve.sections.push({pos:ca,end:Ue.getTextPos(),kind:"no-default-lib"}),ls()}if(le&&le.moduleName&&(Xs('/// <amd-module name="'.concat(le.moduleName,'" />')),ls()),le&&le.amdDependencies)for(var Ga=0,na=le.amdDependencies;Ga<na.length;Ga++){var si=na[Ga];si.name?Xs('/// <amd-dependency name="'.concat(si.name,'" path="').concat(si.path,'" />')):Xs('/// <amd-dependency path="'.concat(si.path,'" />')),ls()}for(var wa=0,Za=Ze;wa<Za.length;wa++){var Lo=Za[wa],ca=Ue.getTextPos();Xs('/// <reference path="'.concat(Lo.fileName,'" />')),Ve&&Ve.sections.push({pos:ca,end:Ue.getTextPos(),kind:"reference",data:Lo.fileName}),ls()}for(var ol=0,As=nt;ol<As.length;ol++){var Lo=As[ol],ca=Ue.getTextPos();Xs('/// <reference types="'.concat(Lo.fileName,'" />')),Ve&&Ve.sections.push({pos:ca,end:Ue.getTextPos(),kind:"type",data:Lo.fileName}),ls()}for(var Ms=0,gl=wt;Ms<gl.length;Ms++){var Lo=gl[Ms],ca=Ue.getTextPos();Xs('/// <reference lib="'.concat(Lo.fileName,'" />')),Ve&&Ve.sections.push({pos:ca,end:Ue.getTextPos(),kind:"lib",data:Lo.fileName}),ls()}}function c_(S){var Ze=S.statements;Ol(S),e.forEach(S.statements,Ha),pa(S);var nt=e.findIndex(Ze,function(wt){return!e.isPrologueDirective(wt)});kf(S),Zi(S,Ze,1,void 0,nt===-1?Ze.length:nt),$c(S)}function sf(S){yr(S.expression)}function F_(S){cf(S,S.elements,528,void 0)}function dd(S,Ze,nt,wt){for(var ca=!!Ze,Ga=0;Ga<S.length;Ga++){var na=S[Ga];if(e.isPrologueDirective(na)){var si=nt?!nt.has(na.expression.text):!0;if(si){ca&&(ca=!1,Xe(Ze)),ls();var wa=Ue.getTextPos();Or(na),wt&&Ve&&Ve.sections.push({pos:wa,end:Ue.getTextPos(),kind:"prologue",data:na.expression.text}),nt&&nt.add(na.expression.text)}}else return Ga}return S.length}function u_(S,Ze){for(var nt=0,wt=S;nt<wt.length;nt++){var ca=wt[nt];if(!Ze.has(ca.data)){ls();var Ga=Ue.getTextPos();Or(ca),Ve&&Ve.sections.push({pos:Ga,end:Ue.getTextPos(),kind:"prologue",data:ca.data}),Ze&&Ze.add(ca.data)}}}function Of(S){if(e.isSourceFile(S))dd(S.statements,S);else{for(var Ze=new e.Set,nt=0,wt=S.prepends;nt<wt.length;nt++){var ca=wt[nt];u_(ca.prologues,Ze)}for(var Ga=0,na=S.sourceFiles;Ga<na.length;Ga++){var si=na[Ga];dd(si.statements,si,Ze,!0)}Xe(void 0)}}function zd(S){for(var Ze=new e.Set,nt,wt=0;wt<S.sourceFiles.length;wt++){for(var ca=S.sourceFiles[wt],Ga=void 0,na=0,si=0,wa=ca.statements;si<wa.length;si++){var Za=wa[si];if(!e.isPrologueDirective(Za))break;Ze.has(Za.expression.text)||(Ze.add(Za.expression.text),(Ga||(Ga=[])).push({pos:Za.pos,end:Za.end,expression:{pos:Za.expression.pos,end:Za.expression.end,text:Za.expression.text}}),na=na<Za.end?Za.end:na)}Ga&&(nt||(nt=[])).push({file:wt,text:ca.text.substring(0,na),directives:Ga})}return nt}function Bu(S){if(e.isSourceFile(S)||e.isUnparsedSource(S)){var Ze=e.getShebang(S.text);if(Ze)return Xs(Ze),ls(),!0}else{for(var nt=0,wt=S.prepends;nt<wt.length;nt++){var ca=wt[nt];if(e.Debug.assertNode(ca,e.isUnparsedSource),Bu(ca))return!0}for(var Ga=0,na=S.sourceFiles;Ga<na.length;Ga++){var si=na[Ga];if(Bu(si))return!0}}}function qd(S,Ze){if(!!S){var nt=Ne;Ne=Ze,Or(S),Ne=nt}}function ks(S,Ze){Ze&&Ze.length&&(Zi(S,Ze,262656),An())}function Xc(S){S&&(Cn(":"),An(),Or(S))}function Yc(S,Ze,nt,wt){S&&(An(),Ia(63,Ze,yc,nt),An(),yr(S,wt))}function f_(S,Ze,nt,wt){nt&&(Ze(S),wt(nt))}function lf(S){S&&(An(),Or(S))}function Uu(S,Ze){S&&(An(),yr(S,Ze))}function G_(S){S&&(Or(S),An())}function Gc(S,Ze){e.isBlock(Ze)||e.getEmitFlags(S)&1?(An(),Or(Ze)):(ls(),fc(),e.isEmptyStatement(Ze)?mt(5,Ze):Or(Ze),jl())}function kl(S,Ze){Zi(S,Ze,2146305)}function Qc(S,Ze){Zi(S,Ze,53776,_t.parenthesizeMemberOfElementType)}function Wl(S,Ze){if(e.isFunctionLike(S)&&S.typeArguments)return Qc(S,S.typeArguments);Zi(S,Ze,53776)}function Bc(S,Ze){Zi(S,Ze,2576)}function Xd(S,Ze){var nt=e.singleOrUndefined(Ze);return nt&&nt.pos===S.pos&&e.isArrowFunction(S)&&!S.type&&!e.some(S.decorators)&&!e.some(S.modifiers)&&!e.some(S.typeParameters)&&!e.some(nt.decorators)&&!e.some(nt.modifiers)&&!nt.dotDotDotToken&&!nt.questionToken&&!nt.type&&!nt.initializer&&e.isIdentifier(nt.name)}function pd(S,Ze){Xd(S,Ze)?Zi(S,Ze,528):Bc(S,Ze)}function yu(S,Ze){Zi(S,Ze,8848)}function Rf(S){switch(S&60){case 0:break;case 16:Cn(",");break;case 4:An(),Cn("|");break;case 32:An(),Cn("*"),An();break;case 8:An(),Cn("&");break}}function Zi(S,Ze,nt,wt,ca,Ga){wo(Or,S,Ze,nt,wt,ca,Ga)}function cf(S,Ze,nt,wt,ca,Ga){wo(yr,S,Ze,nt,wt,ca,Ga)}function wo(S,Ze,nt,wt,ca,Ga,na){Ga===void 0&&(Ga=0),na===void 0&&(na=nt?nt.length-Ga:0);var si=nt===void 0;if(!(si&&wt&16384)){var wa=nt===void 0||Ga>=nt.length||na===0;if(wa&&wt&32768){A&&A(nt),_e&&_e(nt);return}if(wt&15360&&(Cn(Q(wt)),wa&&nt&&Ju(nt.pos,!0)),A&&A(nt),wa)wt&1&&!(Re&&(!Ze||e.rangeIsOnSingleLine(Ze,le)))?ls():wt&256&&!(wt&524288)&&An();else{e.Debug.type(nt);var Za=(wt&262144)===0,Lo=Za,ol=_l(Ze,nt,wt);ol?(ls(ol),Lo=!1):wt&256&&An(),wt&128&&fc();for(var As=void 0,Ms=void 0,gl=!1,au=0;au<na;au++){var iu=nt[Ga+au];if(wt&32)ls(),Rf(wt);else if(As){wt&60&&As.end!==(Ze?Ze.end:-1)&&Hu(As.end),Rf(wt),Lr(Ms);var ou=Cp(As,iu,wt);ou>0?((wt&131)===0&&(fc(),gl=!0),ls(ou),Lo=!1):As&&wt&512&&An()}if(Ms=pr(iu),Lo){if(Ju){var yf=e.getCommentRange(iu);Ju(yf.pos)}}else Lo=Za;ce=iu.pos,S.length===1?S(iu):S(iu,ca),gl&&(jl(),gl=!1),As=iu}var __=As?e.getEmitFlags(As):0,Vc=lr||!!(__&1024),m_=(nt==null?void 0:nt.hasTrailingComma)&&wt&64&&wt&16;m_&&(As&&!Vc?Ia(27,As.end,Cn,As):Cn(",")),As&&(Ze?Ze.end:-1)!==As.end&&wt&60&&!Vc&&Hu(m_&&(nt==null?void 0:nt.end)?nt.end:As.end),wt&128&&jl(),Lr(Ms);var tp=Eu(Ze,nt,wt);tp?ls(tp):wt&2097408&&An()}_e&&_e(nt),wt&15360&&(wa&&nt&&Hu(nt.end),Cn(H(wt)))}}function Go(S){Ue.writeLiteral(S)}function Lp(S){Ue.writeStringLiteral(S)}function rc(S){Ue.write(S)}function wf(S,Ze){Ue.writeSymbol(S,Ze)}function Cn(S){Ue.writePunctuation(S)}function us(){Ue.writeTrailingSemicolon(";")}function ui(S){Ue.writeKeyword(S)}function yc(S){Ue.writeOperator(S)}function Ap(S){Ue.writeParameter(S)}function Xs(S){Ue.writeComment(S)}function An(){Ue.writeSpace(" ")}function d_(S){Ue.writeProperty(S)}function fs(S){Ue.nonEscapingWrite?Ue.nonEscapingWrite(S):Ue.write(S)}function ls(S){S===void 0&&(S=1);for(var Ze=0;Ze<S;Ze++)Ue.writeLine(Ze>0)}function fc(){Ue.increaseIndent()}function jl(){Ue.decreaseIndent()}function Mf(S,Ze,nt,wt){return xr?bc(S,nt,Ze):Mp(wt,S,nt,Ze,bc)}function Ys(S,Ze){Se&&Se(S),Ze(e.tokenToString(S.kind)),ae&&ae(S)}function bc(S,Ze,nt){var wt=e.tokenToString(S);return Ze(wt),nt<0?nt:nt+wt.length}function Pf(S,Ze,nt){if(e.getEmitFlags(S)&1)An();else if(Re){var wt=dc(S,Ze,nt);wt?ls(wt):An()}else ls()}function Ec(S){for(var Ze=S.split(/\r\n?|\n/g),nt=e.guessIndentation(Ze),wt=0,ca=Ze;wt<ca.length;wt++){var Ga=ca[wt],na=nt?Ga.slice(nt):Ga;na.length&&(ls(),Ne(na))}}function Zc(S,Ze){S?(fc(),ls(S)):Ze&&An()}function bu(S,Ze){S&&jl(),Ze&&jl()}function _l(S,Ze,nt){if(nt&2||Re){if(nt&65536)return 1;var wt=Ze[0];if(wt===void 0)return!S||e.rangeIsOnSingleLine(S,le)?0:1;if(wt.pos===ce||wt.kind===11)return 0;if(S&&!e.positionIsSynthesized(S.pos)&&!e.nodeIsSynthesized(wt)&&(!wt.parent||e.getOriginalNode(wt.parent)===e.getOriginalNode(S)))return Re?uf(function(ca){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(wt.pos,S.pos,le,ca)}):e.rangeStartPositionsAreOnSameLine(S,wt,le)?0:1;if(ff(wt,nt))return 1}return nt&1?1:0}function Cp(S,Ze,nt){if(nt&2||Re){if(S===void 0||Ze===void 0||Ze.kind===11)return 0;if(!e.nodeIsSynthesized(S)&&!e.nodeIsSynthesized(Ze))return Re&&gf(S,Ze)?uf(function(wt){return e.getLinesBetweenRangeEndAndRangeStart(S,Ze,le,wt)}):!Re&&hd(S,Ze)?e.rangeEndIsOnSameLineAsRangeStart(S,Ze,le)?0:1:nt&65536?1:0;if(ff(S,nt)||ff(Ze,nt))return 1}else if(e.getStartsOnNewLine(Ze))return 1;return nt&1?1:0}function Eu(S,Ze,nt){if(nt&2||Re){if(nt&65536)return 1;var wt=e.lastOrUndefined(Ze);if(wt===void 0)return!S||e.rangeIsOnSingleLine(S,le)?0:1;if(S&&!e.positionIsSynthesized(S.pos)&&!e.nodeIsSynthesized(wt)&&(!wt.parent||wt.parent===S)){if(Re){var ca=e.isNodeArray(Ze)&&!e.positionIsSynthesized(Ze.end)?Ze.end:wt.end;return uf(function(Ga){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(ca,S.end,le,Ga)})}return e.rangeEndPositionsAreOnSameLine(S,wt,le)?0:1}if(ff(wt,nt))return 1}return nt&1&&!(nt&131072)?1:0}function uf(S){e.Debug.assert(!!Re);var Ze=S(!0);return Ze===0?S(!1):Ze}function Ff(S,Ze){var nt=Re&&_l(Ze,[S],0);return nt&&Zc(nt,!1),!!nt}function _d(S,Ze){var nt=Re&&Eu(Ze,[S],0);nt&&ls(nt)}function ff(S,Ze){if(e.nodeIsSynthesized(S)){var nt=e.getStartsOnNewLine(S);return nt===void 0?(Ze&65536)!==0:nt}return(Ze&65536)!==0}function dc(S,Ze,nt){return e.getEmitFlags(S)&131072?0:(S=Yd(S),Ze=Yd(Ze),nt=Yd(nt),e.getStartsOnNewLine(nt)?1:!e.nodeIsSynthesized(S)&&!e.nodeIsSynthesized(Ze)&&!e.nodeIsSynthesized(nt)?Re?uf(function(wt){return e.getLinesBetweenRangeEndAndRangeStart(Ze,nt,le,wt)}):e.rangeEndIsOnSameLineAsRangeStart(Ze,nt,le)?0:1:0)}function md(S){return S.statements.length===0&&e.rangeEndIsOnSameLineAsRangeStart(S,S,le)}function Yd(S){for(;S.kind===211&&e.nodeIsSynthesized(S);)S=S.expression;return S}function Tu(S,Ze){return e.isGeneratedIdentifier(S)?xp(S):(e.isIdentifier(S)||e.isPrivateIdentifier(S))&&(e.nodeIsSynthesized(S)||!S.parent||!le||S.parent&&le&&e.getSourceFileOfNode(S)!==e.getOriginalNode(le))?e.idText(S):S.kind===10&&S.textSourceNode?Tu(S.textSourceNode,Ze):e.isLiteralExpression(S)&&(e.nodeIsSynthesized(S)||!S.parent)?S.text:e.getSourceTextOfNodeFromSourceFile(le,S,Ze)}function il(S,Ze,nt){if(S.kind===10&&S.textSourceNode){var wt=S.textSourceNode;if(e.isIdentifier(wt)||e.isNumericLiteral(wt)){var ca=e.isNumericLiteral(wt)?wt.text:Tu(wt);return nt?'"'.concat(e.escapeJsxAttributeString(ca),'"'):Ze||e.getEmitFlags(S)&16777216?'"'.concat(e.escapeString(ca),'"'):'"'.concat(e.escapeNonAsciiString(ca),'"')}else return il(wt,Ze,nt)}var Ga=(Ze?1:0)|(nt?2:0)|(d.terminateUnterminatedLiterals?4:0)|(d.target&&d.target===99?8:0);return e.getLiteralText(S,le,Ga)}function Ol(S){S&&e.getEmitFlags(S)&524288||(Ae.push(Ge),Ge=0,se.push(xe))}function $c(S){S&&e.getEmitFlags(S)&524288||(Ge=Ae.pop(),xe=se.pop())}function df(S){(!xe||xe===e.lastOrUndefined(se))&&(xe=new e.Set),xe.add(S)}function Ha(S){if(!!S)switch(S.kind){case 234:e.forEach(S.statements,Ha);break;case 249:case 247:case 239:case 240:Ha(S.statement);break;case 238:Ha(S.thenStatement),Ha(S.elseStatement);break;case 241:case 243:case 242:Ha(S.initializer),Ha(S.statement);break;case 248:Ha(S.caseBlock);break;case 262:e.forEach(S.clauses,Ha);break;case 288:case 289:e.forEach(S.statements,Ha);break;case 251:Ha(S.tryBlock),Ha(S.catchClause),Ha(S.finallyBlock);break;case 291:Ha(S.variableDeclaration),Ha(S.block);break;case 236:Ha(S.declarationList);break;case 254:e.forEach(S.declarations,Ha);break;case 253:case 163:case 202:case 256:Ls(S.name);break;case 255:Ls(S.name),e.getEmitFlags(S)&524288&&(e.forEach(S.parameters,Ha),Ha(S.body));break;case 200:case 201:e.forEach(S.elements,Ha);break;case 265:Ha(S.importClause);break;case 266:Ls(S.name),Ha(S.namedBindings);break;case 267:Ls(S.name);break;case 273:Ls(S.name);break;case 268:e.forEach(S.elements,Ha);break;case 269:Ls(S.propertyName||S.name);break}}function xn(S){if(!!S)switch(S.kind){case 294:case 295:case 166:case 168:case 171:case 172:Ls(S.name);break}}function Ls(S){S&&(e.isGeneratedIdentifier(S)?xp(S):e.isBindingPattern(S)&&Ha(S))}function xp(S){if((S.autoGenerateFlags&7)===4)return Qd(mf(S),S.autoGenerateFlags);var Ze=S.autoGenerateId;return Me[Ze]||(Me[Ze]=tc(S))}function Qd(S,Ze){var nt=e.getNodeId(S);return Te[nt]||(Te[nt]=p_(S,Ze))}function pf(S){return _f(S)&&!Ke.has(S)&&!(xe&&xe.has(S))}function _f(S){return le?e.isFileLevelUniqueName(le,S,T):!0}function gd(S,Ze){for(var nt=Ze;e.isNodeDescendantOf(nt,Ze);nt=nt.nextContainer)if(nt.locals){var wt=nt.locals.get(e.escapeLeadingUnderscores(S));if(wt&&wt.flags&3257279)return!1}return!0}function Hl(S,Ze){if(S&&!(Ge&S)){var nt=S===268435456?"_i":"_n";if(pf(nt))return Ge|=S,Ze&&df(nt),nt}for(;;){var wt=Ge&268435455;if(Ge++,wt!==8&&wt!==13){var nt=wt<26?"_"+String.fromCharCode(97+wt):"_"+(wt-26);if(pf(nt))return Ze&&df(nt),nt}}}function Rs(S,Ze,nt,wt){if(Ze===void 0&&(Ze=pf),nt&&Ze(S))return wt?df(S):Ke.add(S),S;S.charCodeAt(S.length-1)!==95&&(S+="_");for(var ca=1;;){var Ga=S+ca;if(Ze(Ga))return wt?df(Ga):Ke.add(Ga),Ga;ca++}}function Gf(S){return Rs(S,_f,!0)}function Vu(S){var Ze=Tu(S.name);return gd(Ze,S)?Ze:Rs(Ze)}function dl(S){var Ze=e.getExternalModuleName(S),nt=e.isStringLiteral(Ze)?e.makeIdentifierFromModuleName(Ze.text):"module";return Rs(nt)}function Ip(){return Rs("default")}function $o(){return Rs("class")}function ml(S){return e.isIdentifier(S.name)?Qd(S.name):Hl(0)}function p_(S,Ze){switch(S.kind){case 79:return Rs(Tu(S),pf,!!(Ze&16),!!(Ze&8));case 260:case 259:return Vu(S);case 265:case 271:return dl(S);case 255:case 256:case 270:return Ip();case 225:return $o();case 168:case 171:case 172:return ml(S);case 161:return Hl(0,!0);default:return Hl(0)}}function tc(S){switch(S.autoGenerateFlags&7){case 1:return Hl(0,!!(S.autoGenerateFlags&8));case 2:return Hl(268435456,!!(S.autoGenerateFlags&8));case 3:return Rs(e.idText(S),S.autoGenerateFlags&32?_f:pf,!!(S.autoGenerateFlags&16),!!(S.autoGenerateFlags&8))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}function mf(S){for(var Ze=S.autoGenerateId,nt=S,wt=nt.original;wt&&(nt=wt,!(e.isIdentifier(nt)&&!!(nt.autoGenerateFlags&4)&&nt.autoGenerateId!==Ze));)wt=nt.original;return nt}function Su(S,Ze){var nt=Nt(2,S,Ze),wt=de,ca=we,Ga=qe;Np(Ze),nt(S,Ze),Bf(Ze,wt,ca,Ga)}function Np(S){var Ze=e.getEmitFlags(S),nt=e.getCommentRange(S);Rl(S,Ze,nt.pos,nt.end),Ze&2048&&(lr=!0)}function Bf(S,Ze,nt,wt){var ca=e.getEmitFlags(S),Ga=e.getCommentRange(S);ca&2048&&(lr=!1),es(S,ca,Ga.pos,Ga.end,Ze,nt,wt)}function Rl(S,Ze,nt,wt){Yr(),He=!1;var ca=nt<0||(Ze&512)!==0||S.kind===11,Ga=wt<0||(Ze&1024)!==0||S.kind===11;(nt>0||wt>0)&&nt!==wt&&(ca||ju(nt,S.kind!==347),(!ca||nt>=0&&(Ze&512)!==0)&&(de=nt),(!Ga||wt>=0&&(Ze&1024)!==0)&&(we=wt,S.kind===254&&(qe=wt))),e.forEach(e.getSyntheticLeadingComments(S),Wu),ot()}function es(S,Ze,nt,wt,ca,Ga,na){Yr();var si=wt<0||(Ze&1024)!==0||S.kind===11;e.forEach(e.getSyntheticTrailingComments(S),Uf),(nt>0||wt>0)&&nt!==wt&&(de=ca,we=Ga,qe=na,!si&&S.kind!==347&&Wf(wt)),ot()}function Wu(S){(S.hasLeadingNewline||S.kind===2)&&Ue.writeLine(),eu(S),S.hasTrailingNewLine||S.kind===2?Ue.writeLine():Ue.writeSpace(" ")}function Uf(S){Ue.isAtStartOfLine()||Ue.writeSpace(" "),eu(S),S.hasTrailingNewLine&&Ue.writeLine()}function eu(S){var Ze=Vf(S),nt=S.kind===3?e.computeLineStarts(Ze):void 0;e.writeCommentRange(Ze,nt,Ue,0,Ze.length,be)}function Vf(S){return S.kind===3?"/*".concat(S.text,"*/"):"//".concat(S.text)}function vd(S,Ze,nt){Yr();var wt=Ze.pos,ca=Ze.end,Ga=e.getEmitFlags(S),na=wt<0||(Ga&512)!==0,si=lr||ca<0||(Ga&1024)!==0;na||rp(Ze),ot(),Ga&2048&&!lr?(lr=!0,nt(S),lr=!1):nt(S),Yr(),si||(ju(Ze.end,!0),He&&!Ue.isAtStartOfLine()&&Ue.writeLine()),ot()}function hd(S,Ze){return S=e.getOriginalNode(S),S.parent&&S.parent===e.getOriginalNode(Ze).parent}function gf(S,Ze){if(Ze.pos<S.end)return!1;S=e.getOriginalNode(S),Ze=e.getOriginalNode(Ze);var nt=S.parent;if(!nt||nt!==Ze.parent)return!1;var wt=e.getContainingNodeArray(S),ca=wt==null?void 0:wt.indexOf(S);return ca!==void 0&&ca>-1&&wt.indexOf(Ze)===ca+1}function ju(S,Ze){He=!1,Ze?S===0&&(le==null?void 0:le.isDeclarationFile)?Tc(S,Zd):Tc(S,vf):S===0&&Tc(S,Uc)}function Uc(S,Ze,nt,wt,ca){Op(S,Ze)&&vf(S,Ze,nt,wt,ca)}function Zd(S,Ze,nt,wt,ca){Op(S,Ze)||vf(S,Ze,nt,wt,ca)}function Du(S,Ze){return d.onlyPrintJsDocStyle?e.isJSDocLikeText(S,Ze)||e.isPinnedComment(S,Ze):!0}function vf(S,Ze,nt,wt,ca){!Du(le.text,S)||(He||(e.emitNewLineBeforeLeadingCommentOfPosition(Jr(),Ue,ca,S),He=!0),nc(S),e.writeCommentRange(le.text,Jr(),Ue,S,Ze,be),nc(Ze),wt?Ue.writeLine():nt===3&&Ue.writeSpace(" "))}function Hu(S){lr||S===-1||ju(S,!0)}function Wf(S){pn(S,Jl)}function Jl(S,Ze,nt,wt){!Du(le.text,S)||(Ue.isAtStartOfLine()||Ue.writeSpace(" "),nc(S),e.writeCommentRange(le.text,Jr(),Ue,S,Ze,be),nc(Ze),wt&&Ue.writeLine())}function Ju(S,Ze,nt){lr||(Yr(),pn(S,Ze?Jl:nt?$d:Ja),ot())}function $d(S,Ze,nt){nc(S),e.writeCommentRange(le.text,Jr(),Ue,S,Ze,be),nc(Ze),nt===2&&Ue.writeLine()}function Ja(S,Ze,nt,wt){nc(S),e.writeCommentRange(le.text,Jr(),Ue,S,Ze,be),nc(Ze),wt?Ue.writeLine():Ue.writeSpace(" ")}function Tc(S,Ze){le&&(de===-1||S!==de)&&(ep(S)?jf(Ze):e.forEachLeadingCommentRange(le.text,S,Ze,S))}function pn(S,Ze){le&&(we===-1||S!==we&&S!==qe)&&e.forEachTrailingCommentRange(le.text,S,Ze)}function ep(S){return kr!==void 0&&e.last(kr).nodePos===S}function jf(S){var Ze=e.last(kr).detachedCommentEndPos;kr.length-1?kr.pop():kr=void 0,e.forEachLeadingCommentRange(le.text,Ze,S,Ze)}function rp(S){var Ze=e.emitDetachedComments(le.text,Jr(),Ue,kp,S,be,lr);Ze&&(kr?kr.push(Ze):kr=[Ze])}function kp(S,Ze,nt,wt,ca,Ga){!Du(le.text,wt)||(nc(wt),e.writeCommentRange(S,Ze,nt,wt,ca,Ga),nc(ca))}function Op(S,Ze){return e.isRecognizedTripleSlashComment(le.text,S,Ze)}function B_(S){return S.parsedSourceMap===void 0&&S.sourceMapText!==void 0&&(S.parsedSourceMap=e.tryParseRawSourceMap(S.sourceMapText)||!1),S.parsedSourceMap||void 0}function ru(S,Ze){var nt=Nt(3,S,Ze);Rp(Ze),nt(S,Ze),pc(Ze)}function Rp(S){var Ze=e.getEmitFlags(S),nt=e.getSourceMapRange(S);if(e.isUnparsedNode(S)){e.Debug.assertIsDefined(S.parent,"UnparsedNodes must have parent pointers");var wt=B_(S.parent);wt&&sr&&sr.appendSourceMap(Ue.getLine(),Ue.getColumn(),wt,S.parent.sourceMapPath,S.parent.getLineAndCharacterOfPosition(S.pos),S.parent.getLineAndCharacterOfPosition(S.end))}else{var ca=nt.source||i;S.kind!==347&&(Ze&16)===0&&nt.pos>=0&&hf(nt.source||i,wp(ca,nt.pos)),Ze&64&&(xr=!0)}}function pc(S){var Ze=e.getEmitFlags(S),nt=e.getSourceMapRange(S);e.isUnparsedNode(S)||(Ze&64&&(xr=!1),S.kind!==347&&(Ze&32)===0&&nt.end>=0&&hf(nt.source||i,nt.end))}function wp(S,Ze){return S.skipTrivia?S.skipTrivia(Ze):e.skipTrivia(S.text,Ze)}function nc(S){if(!(xr||e.positionIsSynthesized(S)||yd(i))){var Ze=e.getLineAndCharacterOfPosition(i,S),nt=Ze.line,wt=Ze.character;sr.addMapping(Ue.getLine(),Ue.getColumn(),Mr,nt,wt,void 0)}}function hf(S,Ze){if(S!==i){var nt=i,wt=Mr;tu(S),nc(Ze),nu(nt,wt)}else nc(Ze)}function Mp(S,Ze,nt,wt,ca){if(xr||S&&e.isInJsonFile(S))return ca(Ze,nt,wt);var Ga=S&&S.emitNode,na=Ga&&Ga.flags||0,si=Ga&&Ga.tokenSourceMapRanges&&Ga.tokenSourceMapRanges[Ze],wa=si&&si.source||i;return wt=wp(wa,si?si.pos:wt),(na&128)===0&&wt>=0&&hf(wa,wt),wt=ca(Ze,nt,wt),si&&(wt=si.end),(na&256)===0&&wt>=0&&hf(wa,wt),wt}function tu(S){if(!xr){if(i=S,S===fr){Mr=Ar;return}yd(S)||(Mr=sr.addSource(S.fileName),d.inlineSources&&sr.setSourceContent(Mr,S.text),fr=S,Ar=Mr)}}function nu(S,Ze){i=S,Mr=Ze}function yd(S){return e.fileExtensionIs(S.fileName,".json")}}e.createPrinter=P;function M(){var d=[];return d[1024]=["{","}"],d[2048]=["(",")"],d[4096]=["<",">"],d[8192]=["[","]"],d}function Q(d){return n[d&15360][0]}function H(d){return n[d&15360][1]}var w;(function(d){d[d.Auto=0]="Auto",d[d.CountMask=268435455]="CountMask",d[d._i=268435456]="_i"})(w||(w={}))})(mr||(mr={}));var mr;(function(e){function n(C,K,k){if(!C.getDirectories||!C.readDirectory)return;var X=new e.Map,O=e.createGetCanonicalFileName(k);return{useCaseSensitiveFileNames:k,fileExists:d,readFile:function(A,_e){return C.readFile(A,_e)},directoryExists:C.directoryExists&&B,getDirectories:_,readDirectory:h,createDirectory:C.createDirectory&&T,writeFile:C.writeFile&&w,addOrDeleteFileOrDirectory:b,addOrDeleteFile:G,clearCache:pe,realpath:C.realpath&&R};function x(A){return e.toPath(A,K,O)}function ie(A){return X.get(e.ensureTrailingDirectorySeparator(A))}function Z(A){return ie(e.getDirectoryPath(A))}function re(A){return e.getBaseFileName(e.normalizePath(A))}function q(A,_e){var Se;if(!C.realpath||e.ensureTrailingDirectorySeparator(x(C.realpath(A)))===_e){var ae={files:e.map(C.readDirectory(A,void 0,void 0,["*.*"]),re)||[],directories:C.getDirectories(A)||[]};return X.set(e.ensureTrailingDirectorySeparator(_e),ae),ae}if(!((Se=C.directoryExists)===null||Se===void 0)&&Se.call(C,A))return X.set(_e,!1),!1}function P(A,_e){_e=e.ensureTrailingDirectorySeparator(_e);var Se=ie(_e);if(Se)return Se;try{return q(A,_e)}catch(ae){e.Debug.assert(!X.has(e.ensureTrailingDirectorySeparator(_e)));return}}function M(A,_e){return O(A)===O(_e)}function Q(A,_e){return e.some(A,function(Se){return M(Se,_e)})}function H(A,_e,Se){if(Q(A,_e)){if(!Se)return e.filterMutate(A,function(ae){return!M(ae,_e)})}else if(Se)return A.push(_e)}function w(A,_e,Se){var ae=x(A),D=Z(ae);return D&&Y(D,re(A),!0),C.writeFile(A,_e,Se)}function d(A){var _e=x(A),Se=Z(_e);return Se&&Q(Se.files,re(A))||C.fileExists(A)}function B(A){var _e=x(A);return X.has(e.ensureTrailingDirectorySeparator(_e))||C.directoryExists(A)}function T(A){var _e=x(A),Se=Z(_e),ae=re(A);Se&&H(Se.directories,ae,!0),C.createDirectory(A)}function _(A){var _e=x(A),Se=P(A,_e);return Se?Se.directories.slice():C.getDirectories(A)}function h(A,_e,Se,ae,D){var be=x(A),ne=P(A,be),J;if(ne!==void 0)return e.matchFiles(A,_e,Se,ae,k,K,D,le,R);return C.readDirectory(A,_e,Se,ae,D);function le(Me){var Ke=x(Me);if(Ke===be)return ne||Te(Me,Ke);var Ae=P(Me,Ke);return Ae!==void 0?Ae||Te(Me,Ke):e.emptyFileSystemEntries}function Te(Me,Ke){if(J&&Ke===be)return J;var Ae={files:e.map(C.readDirectory(Me,void 0,void 0,["*.*"]),re)||e.emptyArray,directories:C.getDirectories(Me)||e.emptyArray};return Ke===be&&(J=Ae),Ae}}function R(A){return C.realpath?C.realpath(A):A}function b(A,_e){var Se=ie(_e);if(Se!==void 0){pe();return}var ae=Z(_e);if(!!ae){if(!C.directoryExists){pe();return}var D=re(A),be={fileExists:C.fileExists(_e),directoryExists:C.directoryExists(_e)};return be.directoryExists||Q(ae.directories,D)?pe():Y(ae,D,be.fileExists),be}}function G(A,_e,Se){if(Se!==e.FileWatcherEventKind.Changed){var ae=Z(_e);ae&&Y(ae,re(A),Se===e.FileWatcherEventKind.Created)}}function Y(A,_e,Se){H(A.files,_e,Se)}function pe(){X.clear()}}e.createCachedDirectoryStructureHost=n;var c;(function(C){C[C.None=0]="None",C[C.Partial=1]="Partial",C[C.Full=2]="Full"})(c=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function u(C,K,k,X,O){var x,ie=e.arrayToMap(((x=K==null?void 0:K.configFile)===null||x===void 0?void 0:x.extendedSourceFiles)||e.emptyArray,O);k.forEach(function(Z,re){ie.has(re)||(Z.projects.delete(C),Z.close())}),ie.forEach(function(Z,re){var q=k.get(re);q?q.projects.add(C):k.set(re,{projects:new e.Set([C]),watcher:X(Z,re),close:function(){var P=k.get(re);!P||P.projects.size!==0||(P.watcher.close(),k.delete(re))}})})}e.updateSharedExtendedConfigFileWatcher=u;function g(C,K){K.forEach(function(k){k.projects.delete(C)&&k.close()})}e.clearSharedExtendedConfigFileWatcher=g;function p(C,K,k){!C.delete(K)||C.forEach(function(X,O){var x,ie=X.extendedResult;!((x=ie.extendedSourceFiles)===null||x===void 0)&&x.some(function(Z){return k(Z)===K})&&p(C,O,k)})}e.cleanExtendedConfigCache=p;function I(C,K,k){var X=new e.Map(C);e.mutateMap(K,X,{createNewValue:k,onDeleteValue:e.closeFileWatcher})}e.updatePackageJsonWatch=I;function V(C,K,k){var X=C.getMissingFilePaths(),O=e.arrayToMap(X,e.identity,e.returnTrue);e.mutateMap(K,O,{createNewValue:k,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=V;function L(C,K,k){e.mutateMap(C,K,{createNewValue:X,onDeleteValue:$,onExistingValue:O});function X(x,ie){return{watcher:k(x,ie),flags:ie}}function O(x,ie,Z){x.flags!==ie&&(x.watcher.close(),C.set(Z,X(Z,ie)))}}e.updateWatchingWildcardDirectories=L;function m(C){var K=C.watchedDirPath,k=C.fileOrDirectory,X=C.fileOrDirectoryPath,O=C.configFileName,x=C.options,ie=C.program,Z=C.extraFileExtensions,re=C.currentDirectory,q=C.useCaseSensitiveFileNames,P=C.writeLog,M=C.toPath,Q=e.removeIgnoredPath(X);if(!Q)return P("Project: ".concat(O," Detected ignored path: ").concat(k)),!0;if(X=Q,X===K)return!1;if(e.hasExtension(X)&&!e.isSupportedSourceFileName(k,x,Z))return P("Project: ".concat(O," Detected file add/remove of non supported extension: ").concat(k)),!0;if(e.isExcludedFile(k,x.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(O),re),q,re))return P("Project: ".concat(O," Detected excluded file: ").concat(k)),!0;if(!ie||e.outFile(x)||x.outDir)return!1;if(e.fileExtensionIs(X,".d.ts")){if(x.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(X,e.supportedJSExtensionsFlat))return!1;var H=e.removeFileExtension(X),w=e.isArray(ie)?void 0:y(ie)?ie.getProgramOrUndefined():ie,d=!w&&!e.isArray(ie)?ie:void 0;if(B(H+".ts")||B(H+".tsx"))return P("Project: ".concat(O," Detected output file: ").concat(k)),!0;return!1;function B(T){return w?!!w.getSourceFileByPath(T):d?d.getState().fileInfos.has(T):!!e.find(ie,function(_){return M(_)===T})}}e.isIgnoredFileFromWildCardWatching=m;function y(C){return!!C.getState}function j(C,K){return C?C.isEmittedFile(K):!1}e.isEmittedFileOfProgram=j;var te;(function(C){C[C.None=0]="None",C[C.TriggerOnly=1]="TriggerOnly",C[C.Verbose=2]="Verbose"})(te=e.WatchLogLevel||(e.WatchLogLevel={}));function E(C,K,k,X){e.setSysLog(K===te.Verbose?k:e.noop);var O={watchFile:function(d,B,T,_){return C.watchFile(d,B,T,_)},watchDirectory:function(d,B,T,_){return C.watchDirectory(d,B,(T&1)!==0,_)}},x=K!==te.None?{watchFile:H("watchFile"),watchDirectory:H("watchDirectory")}:void 0,ie=K===te.Verbose?{watchFile:M,watchDirectory:Q}:x||O,Z=K===te.Verbose?P:e.returnNoopFileWatcher;return{watchFile:re("watchFile"),watchDirectory:re("watchDirectory")};function re(d){return function(B,T,_,h,R,b){var G;return e.matchesExclude(B,d==="watchFile"?h==null?void 0:h.excludeFiles:h==null?void 0:h.excludeDirectories,q(),((G=C.getCurrentDirectory)===null||G===void 0?void 0:G.call(C))||"")?Z(B,_,h,R,b):ie[d].call(void 0,B,T,_,h,R,b)}}function q(){return typeof C.useCaseSensitiveFileNames=="boolean"?C.useCaseSensitiveFileNames:C.useCaseSensitiveFileNames()}function P(d,B,T,_,h){return k("ExcludeWatcher:: Added:: ".concat(w(d,B,T,_,h,X))),{close:function(){return k("ExcludeWatcher:: Close:: ".concat(w(d,B,T,_,h,X)))}}}function M(d,B,T,_,h,R){k("FileWatcher:: Added:: ".concat(w(d,T,_,h,R,X)));var b=x.watchFile(d,B,T,_,h,R);return{close:function(){k("FileWatcher:: Close:: ".concat(w(d,T,_,h,R,X))),b.close()}}}function Q(d,B,T,_,h,R){var b="DirectoryWatcher:: Added:: ".concat(w(d,T,_,h,R,X));k(b);var G=e.timestamp(),Y=x.watchDirectory(d,B,T,_,h,R),pe=e.timestamp()-G;return k("Elapsed:: ".concat(pe,"ms ").concat(b)),{close:function(){var A="DirectoryWatcher:: Close:: ".concat(w(d,T,_,h,R,X));k(A);var _e=e.timestamp();Y.close();var Se=e.timestamp()-_e;k("Elapsed:: ".concat(Se,"ms ").concat(A))}}}function H(d){return function(B,T,_,h,R,b){return O[d].call(void 0,B,function(){for(var G=[],Y=0;Y<arguments.length;Y++)G[Y]=arguments[Y];var pe="".concat(d==="watchFile"?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(G[0]," ").concat(G[1]!==void 0?G[1]:"",":: ").concat(w(B,_,h,R,b,X));k(pe);var A=e.timestamp();T.call.apply(T,Bt([void 0],G,!1));var _e=e.timestamp()-A;k("Elapsed:: ".concat(_e,"ms ").concat(pe))},_,h,R,b)}}function w(d,B,T,_,h,R){return"WatchInfo: ".concat(d," ").concat(B," ").concat(JSON.stringify(T)," ").concat(R?R(_,h):h===void 0?_:"".concat(_," ").concat(h))}}e.getWatchFactory=E;function F(C){var K=C==null?void 0:C.fallbackPolling;return{watchFile:K!==void 0?K:e.WatchFileKind.PriorityPollingInterval}}e.getFallbackOptions=F;function $(C){C.watcher.close()}e.closeFileWatcherOf=$})(mr||(mr={}));var mr;(function(e){function n(ne,J,le){return le===void 0&&(le="tsconfig.json"),e.forEachAncestorDirectory(ne,function(Te){var Me=e.combinePaths(Te,le);return J(Me)?Me:void 0})}e.findConfigFile=n;function c(ne,J){var le=e.getDirectoryPath(J),Te=e.isRootedDiskPath(ne)?ne:e.combinePaths(le,ne);return e.normalizePath(Te)}e.resolveTripleslashReference=c;function u(ne,J,le){var Te,Me=e.forEach(ne,function(Ke){var Ae=e.getNormalizedPathComponents(Ke,J);if(Ae.pop(),!Te){Te=Ae;return}for(var Ge=Math.min(Te.length,Ae.length),se=0;se<Ge;se++)if(le(Te[se])!==le(Ae[se])){if(se===0)return!0;Te.length=se;break}Ae.length<Te.length&&(Te.length=Ae.length)});return Me?"":Te?e.getPathFromPathComponents(Te):J}e.computeCommonSourceDirectoryOfFilenames=u;function g(ne,J){return p(ne,J)}e.createCompilerHost=g;function p(ne,J,le){le===void 0&&(le=e.sys);var Te=new e.Map,Me=e.createGetCanonicalFileName(le.useCaseSensitiveFileNames),Ke=e.maybeBind(le,le.createHash)||e.generateDjb2Hash;function Ae(ve,Ve,gr){var Er;try{e.performance.mark("beforeIORead"),Er=Ne.readFile(ve),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(Nr){gr&&gr(Nr.message),Er=""}return Er!==void 0?e.createSourceFile(ve,Er,Ve,J):void 0}function Ge(ve){return Te.has(ve)?!0:(Ne.directoryExists||le.directoryExists)(ve)?(Te.set(ve,!0),!0):!1}function se(ve,Ve,gr,Er){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(ve,Ve,gr,function(Nr,ur,xr){return Re(Nr,ur,xr)},function(Nr){return(Ne.createDirectory||le.createDirectory)(Nr)},function(Nr){return Ge(Nr)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(Nr){Er&&Er(Nr.message)}}var xe;function Re(ve,Ve,gr){if(!e.isWatchSet(ne)||!le.getModifiedTime){le.writeFile(ve,Ve,gr);return}xe||(xe=new e.Map);var Er=Ke(Ve),Nr=le.getModifiedTime(ve);if(Nr){var ur=xe.get(ve);if(ur&&ur.byteOrderMark===gr&&ur.hash===Er&&ur.mtime.getTime()===Nr.getTime())return}le.writeFile(ve,Ve,gr);var xr=le.getModifiedTime(ve)||e.missingFileModifiedTime;xe.set(ve,{hash:Er,byteOrderMark:gr,mtime:xr})}function ce(){return e.getDirectoryPath(e.normalizePath(le.getExecutingFilePath()))}var Ue=e.getNewLineCharacter(ne,function(){return le.newLine}),We=le.realpath&&function(ve){return le.realpath(ve)},Ne={getSourceFile:Ae,getDefaultLibLocation:ce,getDefaultLibFileName:function(ve){return e.combinePaths(ce(),e.getDefaultLibFileName(ve))},writeFile:se,getCurrentDirectory:e.memoize(function(){return le.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return le.useCaseSensitiveFileNames},getCanonicalFileName:Me,getNewLine:function(){return Ue},fileExists:function(ve){return le.fileExists(ve)},readFile:function(ve){return le.readFile(ve)},trace:function(ve){return le.write(ve+Ue)},directoryExists:function(ve){return le.directoryExists(ve)},getEnvironmentVariable:function(ve){return le.getEnvironmentVariable?le.getEnvironmentVariable(ve):""},getDirectories:function(ve){return le.getDirectories(ve)},realpath:We,readDirectory:function(ve,Ve,gr,Er,Nr){return le.readDirectory(ve,Ve,gr,Er,Nr)},createDirectory:function(ve){return le.createDirectory(ve)},createHash:e.maybeBind(le,le.createHash)};return Ne}e.createCompilerHostWorker=p;function I(ne,J,le){var Te=ne.readFile,Me=ne.fileExists,Ke=ne.directoryExists,Ae=ne.createDirectory,Ge=ne.writeFile,se=new e.Map,xe=new e.Map,Re=new e.Map,ce=new e.Map,Ue=function(ve){var Ve=J(ve),gr=se.get(Ve);return gr!==void 0?gr!==!1?gr:void 0:We(Ve,ve)},We=function(ve,Ve){var gr=Te.call(ne,Ve);return se.set(ve,gr!==void 0?gr:!1),gr};ne.readFile=function(ve){var Ve=J(ve),gr=se.get(Ve);return gr!==void 0?gr!==!1?gr:void 0:!e.fileExtensionIs(ve,".json")&&!e.isBuildInfoFile(ve)?Te.call(ne,ve):We(Ve,ve)};var Ne=le?function(ve,Ve,gr,Er){var Nr=J(ve),ur=ce.get(Nr);if(ur)return ur;var xr=le(ve,Ve,gr,Er);return xr&&(e.isDeclarationFileName(ve)||e.fileExtensionIs(ve,".json"))&&ce.set(Nr,xr),xr}:void 0;return ne.fileExists=function(ve){var Ve=J(ve),gr=xe.get(Ve);if(gr!==void 0)return gr;var Er=Me.call(ne,ve);return xe.set(Ve,!!Er),Er},Ge&&(ne.writeFile=function(ve,Ve,gr,Er,Nr){var ur=J(ve);xe.delete(ur);var xr=se.get(ur);if(xr!==void 0&&xr!==Ve)se.delete(ur),ce.delete(ur);else if(Ne){var sr=ce.get(ur);sr&&sr.text!==Ve&&ce.delete(ur)}Ge.call(ne,ve,Ve,gr,Er,Nr)}),Ke&&Ae&&(ne.directoryExists=function(ve){var Ve=J(ve),gr=Re.get(Ve);if(gr!==void 0)return gr;var Er=Ke.call(ne,ve);return Re.set(Ve,!!Er),Er},ne.createDirectory=function(ve){var Ve=J(ve);Re.delete(Ve),Ae.call(ne,ve)}),{originalReadFile:Te,originalFileExists:Me,originalDirectoryExists:Ke,originalCreateDirectory:Ae,originalWriteFile:Ge,getSourceFileWithCache:Ne,readFileWithCache:Ue}}e.changeCompilerHostLikeToUseCache=I;function V(ne,J,le){var Te;return Te=e.addRange(Te,ne.getConfigFileParsingDiagnostics()),Te=e.addRange(Te,ne.getOptionsDiagnostics(le)),Te=e.addRange(Te,ne.getSyntacticDiagnostics(J,le)),Te=e.addRange(Te,ne.getGlobalDiagnostics(le)),Te=e.addRange(Te,ne.getSemanticDiagnostics(J,le)),e.getEmitDeclarations(ne.getCompilerOptions())&&(Te=e.addRange(Te,ne.getDeclarationDiagnostics(J,le))),e.sortAndDeduplicateDiagnostics(Te||e.emptyArray)}e.getPreEmitDiagnostics=V;function L(ne,J){for(var le="",Te=0,Me=ne;Te<Me.length;Te++){var Ke=Me[Te];le+=m(Ke,J)}return le}e.formatDiagnostics=L;function m(ne,J){var le="".concat(e.diagnosticCategoryName(ne)," TS").concat(ne.code,": ").concat(ie(ne.messageText,J.getNewLine())).concat(J.getNewLine());if(ne.file){var Te=e.getLineAndCharacterOfPosition(ne.file,ne.start),Me=Te.line,Ke=Te.character,Ae=ne.file.fileName,Ge=e.convertToRelativePath(Ae,J.getCurrentDirectory(),function(se){return J.getCanonicalFileName(se)});return"".concat(Ge,"(").concat(Me+1,",").concat(Ke+1,"): ")+le}return le}e.formatDiagnostic=m;var y;(function(ne){ne.Grey="\x1B[90m",ne.Red="\x1B[91m",ne.Yellow="\x1B[93m",ne.Blue="\x1B[94m",ne.Cyan="\x1B[96m"})(y=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var j="\x1B[7m",te=" ",E="\x1B[0m",F="...",$=" ",C=" ";function K(ne){switch(ne){case e.DiagnosticCategory.Error:return y.Red;case e.DiagnosticCategory.Warning:return y.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return y.Blue}}function k(ne,J){return J+ne+E}e.formatColorAndReset=k;function X(ne,J,le,Te,Me,Ke){var Ae=e.getLineAndCharacterOfPosition(ne,J),Ge=Ae.line,se=Ae.character,xe=e.getLineAndCharacterOfPosition(ne,J+le),Re=xe.line,ce=xe.character,Ue=e.getLineAndCharacterOfPosition(ne,ne.text.length).line,We=Re-Ge>=4,Ne=(Re+1+"").length;We&&(Ne=Math.max(F.length,Ne));for(var ve="",Ve=Ge;Ve<=Re;Ve++){ve+=Ke.getNewLine(),We&&Ge+1<Ve&&Ve<Re-1&&(ve+=Te+k(e.padLeft(F,Ne),j)+te+Ke.getNewLine(),Ve=Re-1);var gr=e.getPositionOfLineAndCharacter(ne,Ve,0),Er=Ve<Ue?e.getPositionOfLineAndCharacter(ne,Ve+1,0):ne.text.length,Nr=ne.text.slice(gr,Er);if(Nr=e.trimStringEnd(Nr),Nr=Nr.replace(/\t/g," "),ve+=Te+k(e.padLeft(Ve+1+"",Ne),j)+te,ve+=Nr+Ke.getNewLine(),ve+=Te+k(e.padLeft("",Ne),j)+te,ve+=Me,Ve===Ge){var ur=Ve===Re?ce:void 0;ve+=Nr.slice(0,se).replace(/\S/g," "),ve+=Nr.slice(se,ur).replace(/./g,"~")}else Ve===Re?ve+=Nr.slice(0,ce).replace(/./g,"~"):ve+=Nr.replace(/./g,"~");ve+=E}return ve}function O(ne,J,le,Te){Te===void 0&&(Te=k);var Me=e.getLineAndCharacterOfPosition(ne,J),Ke=Me.line,Ae=Me.character,Ge=le?e.convertToRelativePath(ne.fileName,le.getCurrentDirectory(),function(xe){return le.getCanonicalFileName(xe)}):ne.fileName,se="";return se+=Te(Ge,y.Cyan),se+=":",se+=Te("".concat(Ke+1),y.Yellow),se+=":",se+=Te("".concat(Ae+1),y.Yellow),se}e.formatLocation=O;function x(ne,J){for(var le="",Te=0,Me=ne;Te<Me.length;Te++){var Ke=Me[Te];if(Ke.file){var Ae=Ke.file,Ge=Ke.start;le+=O(Ae,Ge,J),le+=" - "}if(le+=k(e.diagnosticCategoryName(Ke),K(Ke.category)),le+=k(" TS".concat(Ke.code,": "),y.Grey),le+=ie(Ke.messageText,J.getNewLine()),Ke.file&&(le+=J.getNewLine(),le+=X(Ke.file,Ke.start,Ke.length,"",K(Ke.category),J)),Ke.relatedInformation){le+=J.getNewLine();for(var se=0,xe=Ke.relatedInformation;se<xe.length;se++){var Re=xe[se],Ae=Re.file,Ge=Re.start,ce=Re.length,Ue=Re.messageText;Ae&&(le+=J.getNewLine(),le+=$+O(Ae,Ge,J),le+=X(Ae,Ge,ce,C,y.Cyan,J)),le+=J.getNewLine(),le+=C+ie(Ue,J.getNewLine())}}le+=J.getNewLine()}return le}e.formatDiagnosticsWithColorAndContext=x;function ie(ne,J,le){if(le===void 0&&(le=0),e.isString(ne))return ne;if(ne===void 0)return"";var Te="";if(le){Te+=J;for(var Me=0;Me<le;Me++)Te+=" "}if(Te+=ne.messageText,le++,ne.next)for(var Ke=0,Ae=ne.next;Ke<Ae.length;Ke++){var Ge=Ae[Ke];Te+=ie(Ge,J,le)}return Te}e.flattenDiagnosticMessageText=ie;function Z(ne,J,le,Te){if(ne.length===0)return[];for(var Me=[],Ke=new e.Map,Ae=0,Ge=ne;Ae<Ge.length;Ae++){var se=Ge[Ae],xe=void 0;Ke.has(se)?xe=Ke.get(se):Ke.set(se,xe=Te(se,J,le)),Me.push(xe)}return Me}e.loadWithLocalCache=Z;function re(ne,J){if(ne.impliedNodeFormat!==void 0)return q(ne,be(ne,J))}e.getModeForResolutionAtIndex=re;function q(ne,J){var le;if(ne.impliedNodeFormat!==void 0){if(ne.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(J.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var Te=(le=e.walkUpParenthesizedExpressions(J.parent))===null||le===void 0?void 0:le.parent;return Te&&e.isImportEqualsDeclaration(Te)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}e.getModeForUsageLocation=q;function P(ne,J,le,Te,Me){if(ne.length===0)return[];for(var Ke=[],Ae=new e.Map,Ge=0,se=0,xe=ne;se<xe.length;se++){var Re=xe[se],ce=void 0,Ue=re(J,Ge);Ge++;var We=Ue!==void 0?"".concat(Ue,"|").concat(Re):Re;Ae.has(We)?ce=Ae.get(We):Ae.set(We,ce=Me(Re,Ue,le,Te)),Ke.push(ce)}return Ke}e.loadWithModeAwareCache=P;function M(ne,J){return Q(void 0,ne,function(le,Te){return le&&J(le,Te)})}e.forEachResolvedProjectReference=M;function Q(ne,J,le,Te){var Me;return Ke(ne,J,void 0);function Ke(Ae,Ge,se){if(Te){var xe=Te(Ae,se);if(xe)return xe}return e.forEach(Ge,function(Re,ce){if(!(Re&&(Me==null?void 0:Me.has(Re.sourceFile.path)))){var Ue=le(Re,se,ce);return Ue||!Re?Ue:((Me||(Me=new e.Set)).add(Re.sourceFile.path),Ke(Re.commandLine.projectReferences,Re.references,Re))}})}}e.inferredTypesContainingFile="__inferred type names__.ts";function H(ne){switch(ne==null?void 0:ne.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}e.isReferencedFile=H;function w(ne){return ne.pos!==void 0}e.isReferenceFileLocation=w;function d(ne,J){var le,Te,Me,Ke,Ae,Ge,se,xe=e.Debug.checkDefined(ne(J.file)),Re=J.kind,ce=J.index,Ue,We,Ne;switch(Re){case e.FileIncludeKind.Import:var ve=be(xe,ce);if(Ne=(Ae=(Ke=xe.resolvedModules)===null||Ke===void 0?void 0:Ke.get(ve.text,re(xe,ce)))===null||Ae===void 0?void 0:Ae.packageId,ve.pos===-1)return{file:xe,packageId:Ne,text:ve.text};Ue=e.skipTrivia(xe.text,ve.pos),We=ve.end;break;case e.FileIncludeKind.ReferenceFile:le=xe.referencedFiles[ce],Ue=le.pos,We=le.end;break;case e.FileIncludeKind.TypeReferenceDirective:Te=xe.typeReferenceDirectives[ce],Ue=Te.pos,We=Te.end,Ne=(se=(Ge=xe.resolvedTypeReferenceDirectiveNames)===null||Ge===void 0?void 0:Ge.get(e.toFileNameLowerCase(xe.typeReferenceDirectives[ce].fileName),xe.impliedNodeFormat))===null||se===void 0?void 0:se.packageId;break;case e.FileIncludeKind.LibReferenceDirective:Me=xe.libReferenceDirectives[ce],Ue=Me.pos,We=Me.end;break;default:return e.Debug.assertNever(Re)}return{file:xe,pos:Ue,end:We,packageId:Ne}}e.getReferencedFileLocation=d;function B(ne,J,le,Te,Me,Ke,Ae,Ge,se){if(!ne||(Ae==null?void 0:Ae())||!e.arrayIsEqualTo(ne.getRootFileNames(),J))return!1;var xe;if(!e.arrayIsEqualTo(ne.getProjectReferences(),se,We)||ne.getSourceFiles().some(ce)||ne.getMissingFilePaths().some(Me))return!1;var Re=ne.getCompilerOptions();if(!e.compareDataObjects(Re,le))return!1;if(Re.configFile&&le.configFile)return Re.configFile.text===le.configFile.text;return!0;function ce(ve){return!Ue(ve)||Ke(ve.path)}function Ue(ve){return ve.version===Te(ve.resolvedPath,ve.fileName)}function We(ve,Ve,gr){return e.projectReferenceIsEqualTo(ve,Ve)&&Ne(ne.getResolvedProjectReferences()[gr],ve)}function Ne(ve,Ve){if(ve){if(e.contains(xe,ve))return!0;var gr=Se(Ve),Er=Ge(gr);return!Er||ve.commandLine.options.configFile!==Er.options.configFile||!e.arrayIsEqualTo(ve.commandLine.fileNames,Er.fileNames)?!1:((xe||(xe=[])).push(ve),!e.forEach(ve.references,function(ur,xr){return!Ne(ur,ve.commandLine.projectReferences[xr])}))}var Nr=Se(Ve);return!Ge(Nr)}}e.isProgramUptoDate=B;function T(ne){return ne.options.configFile?Bt(Bt([],ne.options.configFile.parseDiagnostics,!0),ne.errors,!0):ne.errors}e.getConfigFileParsingDiagnostics=T;function _(ne,J,le,Te){switch(e.getEmitModuleResolutionKind(Te)){case e.ModuleResolutionKind.Node12:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(ne,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(ne,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(ne,[".d.ts",".ts",".tsx",".js",".jsx"])?Me():void 0;default:return}function Me(){var Ke=e.getPackageScopeForPath(ne,J,le,Te);return(Ke==null?void 0:Ke.packageJsonContent.type)==="module"?e.ModuleKind.ESNext:e.ModuleKind.CommonJS}}e.getImpliedNodeFormatForFile=_;function h(ne,J){return ne?e.optionsHaveChanges(ne.getCompilerOptions(),J,e.sourceFileAffectingCompilerOptions):!1}function R(ne,J,le,Te,Me){return{rootNames:ne,options:J,host:le,oldProgram:Te,configFileParsingDiagnostics:Me}}function b(ne,J,le,Te,Me){var Ke,Ae,Ge,se,xe=e.isArray(ne)?R(ne,J,le,Te,Me):ne,Re=xe.rootNames,ce=xe.options,Ue=xe.configFileParsingDiagnostics,We=xe.projectReferences,Ne=xe.oldProgram,ve,Ve,gr,Er,Nr,ur,xr,sr,i=new e.Map,Mr=e.createMultiMap(),fr={},Ar={},de=new e.Map,we,qe=typeof ce.maxNodeModuleJsDepth=="number"?ce.maxNodeModuleJsDepth:0,Cr=0,kr=new e.Map,He=new e.Map;e.tracing===null||e.tracing===void 0||e.tracing.push("program","createProgram",{configFilePath:ce.configFilePath,rootDir:ce.rootDir},!0),e.performance.mark("beforeProgram");var lr=xe.host||g(ce),Hr=A(lr),Je=ce.noLib,Sr=e.memoize(function(){return lr.getDefaultLibFileName(ce)}),Yr=lr.getDefaultLibLocation?lr.getDefaultLibLocation():e.getDirectoryPath(Sr()),ot=e.createDiagnosticCollection(),_t=lr.getCurrentDirectory(),kt=e.getSupportedExtensions(ce),Yt=e.getSupportedExtensionsWithJsonIfResolveJsonModule(ce,kt),vn=new e.Map,Mn,qn,nr,Zr,ir=lr.hasInvalidatedResolution||e.returnFalse;if(lr.resolveModuleNames)Zr=function(Fr,rt,Dt,zt,_n){return lr.resolveModuleNames(e.Debug.checkEachDefined(Fr),Dt,zt,_n,ce,rt).map(function(dn){if(!dn||dn.extension!==void 0)return dn;var On=e.clone(dn);return On.extension=e.extensionFromPath(dn.resolvedFileName),On})},qn=(Ke=lr.getModuleResolutionCache)===null||Ke===void 0?void 0:Ke.call(lr);else{qn=e.createModuleResolutionCache(_t,an,ce);var ge=function(Fr,rt,Dt,zt){return e.resolveModuleName(Fr,Dt,ce,lr,qn,zt,rt).resolvedModule};Zr=function(Fr,rt,Dt,zt,_n){return P(e.Debug.checkEachDefined(Fr),rt,Dt,_n,ge)}}var rr;if(lr.resolveTypeReferenceDirectives)rr=function(Fr,rt,Dt){return lr.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(Fr),rt,Dt,ce)};else{nr=e.createTypeReferenceDirectiveResolutionCache(_t,an,void 0,qn==null?void 0:qn.getPackageJsonInfoCache());var pr=function(Fr,rt,Dt){return e.resolveTypeReferenceDirective(Fr,rt,ce,lr,Dt,nr).resolvedTypeReferenceDirective};rr=function(Fr,rt,Dt){return Z(e.Debug.checkEachDefined(Fr),rt,Dt,pr)}}var Lr=new e.Map,Ce=new e.Map,cr=e.createMultiMap(),$e=!1,De=new e.Map,z,ke=lr.useCaseSensitiveFileNames()?new e.Map:void 0,dr,Xe,Qe,Ir,Jr=!!(!((Ae=lr.useSourceOfProjectReferenceRedirect)===null||Ae===void 0)&&Ae.call(lr))&&!ce.disableSourceOfProjectReferenceRedirect,Or=G({compilerHost:lr,getSymlinkCache:lc,useSourceOfProjectReferenceRedirect:Jr,toPath:ft,getResolvedProjectReferences:Ki,getSourceOfProjectReferenceRedirect:Vi,forEachResolvedProjectReference:Mi}),Be=Or.onProgramCreateComplete,yr=Or.fileExists,Rr=Or.directoryExists,zr=lr.readFile.bind(lr);e.tracing===null||e.tracing===void 0||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!Ne});var ut=h(Ne,ce);e.tracing===null||e.tracing===void 0||e.tracing.pop();var mt;if(e.tracing===null||e.tracing===void 0||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),mt=hn(),e.tracing===null||e.tracing===void 0||e.tracing.pop(),mt!==2){ve=[],Ve=[],We&&(dr||(dr=We.map(bi)),Re.length&&(dr==null||dr.forEach(function(Fr,rt){if(!!Fr){var Dt=e.outFile(Fr.commandLine.options);if(Jr){if(Dt||e.getEmitModuleKind(Fr.commandLine.options)===e.ModuleKind.None)for(var zt=0,_n=Fr.commandLine.fileNames;zt<_n.length;zt++){var dn=_n[zt];_s(dn,{kind:e.FileIncludeKind.SourceFromProjectReference,index:rt})}}else if(Dt)_s(e.changeExtension(Dt,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:rt});else if(e.getEmitModuleKind(Fr.commandLine.options)===e.ModuleKind.None)for(var On=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Fr.commandLine,!lr.useCaseSensitiveFileNames())}),Jn=0,Fa=Fr.commandLine.fileNames;Jn<Fa.length;Jn++){var dn=Fa[Jn];!e.fileExtensionIs(dn,".d.ts")&&!e.fileExtensionIs(dn,".json")&&_s(e.getOutputDeclarationFileName(dn,Fr.commandLine,!lr.useCaseSensitiveFileNames(),On),{kind:e.FileIncludeKind.OutputFromProjectReference,index:rt})}}}))),e.tracing===null||e.tracing===void 0||e.tracing.push("program","processRootFiles",{count:Re.length}),e.forEach(Re,function(Fr,rt){return tt(Fr,!1,!1,{kind:e.FileIncludeKind.RootFile,index:rt})}),e.tracing===null||e.tracing===void 0||e.tracing.pop();var Lt=Re.length?e.getAutomaticTypeDirectiveNames(ce,lr):e.emptyArray;if(Lt.length){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferences",{count:Lt.length});for(var vt=ce.configFilePath?e.getDirectoryPath(ce.configFilePath):lr.getCurrentDirectory(),pt=e.combinePaths(vt,e.inferredTypesContainingFile),Nt=bt(Lt,pt),Xt=0;Xt<Lt.length;Xt++)Pr(Lt[Xt],Nt[Xt],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Lt[Xt],packageId:(Ge=Nt[Xt])===null||Ge===void 0?void 0:Ge.packageId});e.tracing===null||e.tracing===void 0||e.tracing.pop()}if(Re.length&&!Je){var st=Sr();!ce.lib&&st?tt(st,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(ce.lib,function(Fr,rt){tt(Le(Fr),!0,!1,{kind:e.FileIncludeKind.LibFile,index:rt})})}z=e.arrayFrom(e.mapDefinedIterator(De.entries(),function(Fr){var rt=Fr[0],Dt=Fr[1];return Dt===void 0?rt:void 0})),gr=e.stableSort(ve,bn).concat(Ve),ve=void 0,Ve=void 0}if(e.Debug.assert(!!z),Ne&&lr.onReleaseOldSourceFile){for(var $t=Ne.getSourceFiles(),Pn=0,Ea=$t;Pn<Ea.length;Pn++){var ia=Ea[Pn],pa=lo(ia.resolvedPath);(ut||!pa||ia.resolvedPath===ia.path&&pa.resolvedPath!==ia.path)&&lr.onReleaseOldSourceFile(ia,Ne.getCompilerOptions(),!!lo(ia.path))}lr.getParsedCommandLine||Ne.forEachResolvedProjectReference(function(Fr){Yo(Fr.sourceFile.path)||lr.onReleaseOldSourceFile(Fr.sourceFile,Ne.getCompilerOptions(),!1)})}Ne&&lr.onReleaseParsedCommandLine&&Q(Ne.getProjectReferences(),Ne.getResolvedProjectReferences(),function(Fr,rt,Dt){var zt=(rt==null?void 0:rt.commandLine.projectReferences[Dt])||Ne.getProjectReferences()[Dt],_n=Se(zt);Xe!=null&&Xe.has(ft(_n))||lr.onReleaseParsedCommandLine(_n,Fr,Ne.getCompilerOptions())}),nr=void 0,Ne=void 0;var Gn={getRootFileNames:function(){return Re},getSourceFile:Eo,getSourceFileByPath:lo,getSourceFiles:function(){return gr},getMissingFilePaths:function(){return z},getModuleResolutionCache:function(){return qn},getFilesByNameMap:function(){return De},getCompilerOptions:function(){return ce},getSyntacticDiagnostics:ts,getOptionsDiagnostics:oe,getGlobalDiagnostics:Ye,getSemanticDiagnostics:ja,getCachedSemanticDiagnostics:Do,getSuggestionDiagnostics:gt,getDeclarationDiagnostics:mo,getBindAndCheckDiagnostics:Pa,getProgramDiagnostics:Ti,getTypeChecker:eo,getClassifiableNames:Pt,getDiagnosticsProducingTypeChecker:ei,getCommonSourceDirectory:Ct,emit:Wo,getCurrentDirectory:function(){return _t},getNodeCount:function(){return ei().getNodeCount()},getIdentifierCount:function(){return ei().getIdentifierCount()},getSymbolCount:function(){return ei().getSymbolCount()},getTypeCount:function(){return ei().getTypeCount()},getInstantiationCount:function(){return ei().getInstantiationCount()},getRelationCacheSizes:function(){return ei().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return we},getResolvedTypeReferenceDirectives:function(){return de},isSourceFileFromExternalLibrary:$a,isSourceFileDefaultLibrary:ao,dropDiagnosticsProducingTypeChecker:Fi,getSourceFileFromReference:ii,getLibFileFromReference:ti,sourceFileToPackageName:Ce,redirectTargetsMap:cr,usesUriStyleNodeCoreModules:$e,isEmittedFile:tf,getConfigFileParsingDiagnostics:Tr,getResolvedModuleWithFailedLookupLocationsFromCache:ra,getProjectReferences:di,getResolvedProjectReferences:Ki,getProjectReferenceRedirect:vi,getResolvedProjectReferenceToRedirect:gi,getResolvedProjectReferenceByPath:Yo,forEachResolvedProjectReference:Mi,isSourceOfProjectReferenceRedirect:Ro,emitBuildInfo:Ra,fileExists:yr,readFile:zr,directoryExists:Rr,getSymlinkCache:lc,realpath:(se=lr.realpath)===null||se===void 0?void 0:se.bind(lr),useCaseSensitiveFileNames:function(){return lr.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return Mr},structureIsReused:mt};return Be(),we==null||we.forEach(function(Fr){switch(Fr.kind){case 1:return ot.add(go(Fr.file&&lo(Fr.file),Fr.fileProcessingReason,Fr.diagnostic,Fr.args||e.emptyArray));case 0:var rt=d(lo,Fr.reason),Dt=rt.file,zt=rt.pos,_n=rt.end;return ot.add(e.createFileDiagnostic.apply(void 0,Bt([Dt,e.Debug.checkDefined(zt),e.Debug.checkDefined(_n)-zt,Fr.diagnostic],Fr.args||e.emptyArray,!1)));default:e.Debug.assertNever(Fr)}}),Qa(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),Gn;function nn(Fr,rt,Dt){if(!Fr.length)return e.emptyArray;var zt=e.getNormalizedAbsolutePath(rt.originalFileName,_t),_n=Ut(rt);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:zt}),e.performance.mark("beforeResolveModule");var dn=Zr(Fr,rt,zt,Dt,_n);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),dn}function bt(Fr,rt){if(!Fr.length)return[];var Dt=e.isString(rt)?rt:e.getNormalizedAbsolutePath(rt.originalFileName,_t),zt=e.isString(rt)?void 0:Ut(rt);e.tracing===null||e.tracing===void 0||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Dt}),e.performance.mark("beforeResolveTypeReference");var _n=rr(Fr,Dt,zt);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),_n}function Ut(Fr){var rt=gi(Fr.originalFileName);if(rt||!e.fileExtensionIsOneOf(Fr.originalFileName,[".d.ts",".d.cts",".d.mts"]))return rt;var Dt=Kt(Fr.path);if(Dt)return Dt;if(!(!lr.realpath||!ce.preserveSymlinks||!e.stringContains(Fr.originalFileName,e.nodeModulesPathPart))){var zt=ft(lr.realpath(Fr.originalFileName));return zt===Fr.path?void 0:Kt(zt)}}function Kt(Fr){var rt=Vi(Fr);if(e.isString(rt))return gi(rt);if(!!rt)return Mi(function(Dt){var zt=e.outFile(Dt.commandLine.options);if(!!zt)return ft(zt)===Fr?Dt:void 0})}function bn(Fr,rt){return e.compareValues(wn(Fr),wn(rt))}function wn(Fr){if(e.containsPath(Yr,Fr.fileName,!1)){var rt=e.getBaseFileName(Fr.fileName);if(rt==="lib.d.ts"||rt==="lib.es6.d.ts")return 0;var Dt=e.removeSuffix(e.removePrefix(rt,"lib."),".d.ts"),zt=e.libs.indexOf(Dt);if(zt!==-1)return zt+1}return e.libs.length+2}function ra(Fr,rt,Dt){return qn&&e.resolveModuleNameFromCache(Fr,rt,qn,Dt)}function ft(Fr){return e.toPath(Fr,_t,an)}function Ct(){if(Nr===void 0){var Fr=e.filter(gr,function(rt){return e.sourceFileMayBeEmitted(rt,Gn)});Nr=e.getCommonSourceDirectory(ce,function(){return e.mapDefined(Fr,function(rt){return rt.isDeclarationFile?void 0:rt.fileName})},_t,an,function(rt){return da(Fr,rt)})}return Nr}function Pt(){var Fr;if(!sr){eo(),sr=new e.Set;for(var rt=0,Dt=gr;rt<Dt.length;rt++){var zt=Dt[rt];(Fr=zt.classifiableNames)===null||Fr===void 0||Fr.forEach(function(_n){return sr.add(_n)})}}return sr}function Et(Fr,rt){if(mt===0&&!rt.ambientModuleNames.length)return nn(Fr,rt,void 0);var Dt=Ne&&Ne.getSourceFile(rt.fileName);if(Dt!==rt&&rt.resolvedModules){for(var zt=[],_n=0,dn=0,On=Fr;dn<On.length;dn++){var Jn=On[dn],Fa=rt.resolvedModules.get(Jn,re(rt,_n));_n++,zt.push(Fa)}return zt}for(var fa,ba,Na,he={},_n=0;_n<Fr.length;_n++){var Jn=Fr[_n];if(rt===Dt&&!ir(Dt.path)){var ar=e.getResolvedModule(Dt,Jn,re(Dt,_n));if(ar){e.isTraceEnabled(ce,lr)&&e.trace(lr,ar.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Jn,e.getNormalizedAbsolutePath(rt.originalFileName,_t),ar.resolvedFileName,ar.packageId&&e.packageIdToString(ar.packageId)),(ba||(ba=new Array(Fr.length)))[_n]=ar,(Na||(Na=[])).push(Jn);continue}}var hr=!1;e.contains(rt.ambientModuleNames,Jn)?(hr=!0,e.isTraceEnabled(ce,lr)&&e.trace(lr,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Jn,e.getNormalizedAbsolutePath(rt.originalFileName,_t))):hr=ta(Jn,_n),hr?(ba||(ba=new Array(Fr.length)))[_n]=he:(fa||(fa=[])).push(Jn)}var dt=fa&&fa.length?nn(fa,rt,Na):e.emptyArray;if(!ba)return e.Debug.assert(dt.length===Fr.length),dt;for(var en=0,_n=0;_n<ba.length;_n++)ba[_n]?ba[_n]===he&&(ba[_n]=void 0):(ba[_n]=dt[en],en++);return e.Debug.assert(en===dt.length),ba;function ta(Un,Ta){if(Ta>=e.length(Dt==null?void 0:Dt.imports)+e.length(Dt==null?void 0:Dt.moduleAugmentations))return!1;var Ei=e.getResolvedModule(Dt,Un,Dt&&re(Dt,Ta)),Qi=Ei&&Ne.getSourceFile(Ei.resolvedFileName);if(Ei&&Qi)return!1;var Wi=i.get(Un);return Wi?(e.isTraceEnabled(ce,lr)&&e.trace(lr,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Un,Wi),!0):!1}}function et(){return!Q(Ne.getProjectReferences(),Ne.getResolvedProjectReferences(),function(Fr,rt,Dt){var zt=(rt?rt.commandLine.projectReferences:We)[Dt],_n=bi(zt);return Fr?!_n||_n.sourceFile!==Fr.sourceFile||!e.arrayIsEqualTo(Fr.commandLine.fileNames,_n.commandLine.fileNames):_n!==void 0},function(Fr,rt){var Dt=rt?Yo(rt.sourceFile.path).commandLine.projectReferences:We;return!e.arrayIsEqualTo(Fr,Dt,e.projectReferenceIsEqualTo)})}function hn(){var Fr;if(!Ne)return 0;var rt=Ne.getCompilerOptions();if(e.changesAffectModuleResolution(rt,ce))return 0;var Dt=Ne.getRootFileNames();if(!e.arrayIsEqualTo(Dt,Re)||!et())return 0;We&&(dr=We.map(bi));var zt=[],_n=[];if(mt=2,Ne.getMissingFilePaths().some(function(fl){return lr.fileExists(fl)}))return 0;var dn=Ne.getSourceFiles(),On;(function(fl){fl[fl.Exists=0]="Exists",fl[fl.Modified=1]="Modified"})(On||(On={}));for(var Jn=new e.Map,Fa=0,fa=dn;Fa<fa.length;Fa++){var ba=fa[Fa],Na=lr.getSourceFileByPath?lr.getSourceFileByPath(ba.fileName,ba.resolvedPath,e.getEmitScriptTarget(ce),void 0,ut):lr.getSourceFile(ba.fileName,e.getEmitScriptTarget(ce),void 0,ut);if(!Na)return 0;e.Debug.assert(!Na.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var he=void 0;if(ba.redirectInfo){if(Na!==ba.redirectInfo.unredirected)return 0;he=!1,Na=ba}else if(Ne.redirectTargetsMap.has(ba.path)){if(Na!==ba)return 0;he=!1}else he=Na!==ba;Na.path=ba.path,Na.originalFileName=ba.originalFileName,Na.resolvedPath=ba.resolvedPath,Na.fileName=ba.fileName;var ar=Ne.sourceFileToPackageName.get(ba.path);if(ar!==void 0){var hr=Jn.get(ar),dt=he?1:0;if(hr!==void 0&&dt===1||hr===1)return 0;Jn.set(ar,dt)}he?(e.arrayIsEqualTo(ba.libReferenceDirectives,Na.libReferenceDirectives,Mt)||(mt=1),ba.hasNoDefaultLib!==Na.hasNoDefaultLib&&(mt=1),e.arrayIsEqualTo(ba.referencedFiles,Na.referencedFiles,Mt)||(mt=1),va(Na),e.arrayIsEqualTo(ba.imports,Na.imports,Wt)||(mt=1),e.arrayIsEqualTo(ba.moduleAugmentations,Na.moduleAugmentations,Wt)||(mt=1),(ba.flags&3145728)!==(Na.flags&3145728)&&(mt=1),e.arrayIsEqualTo(ba.typeReferenceDirectives,Na.typeReferenceDirectives,Mt)||(mt=1),_n.push({oldFile:ba,newFile:Na})):ir(ba.path)&&(mt=1,_n.push({oldFile:ba,newFile:Na})),zt.push(Na)}if(mt!==2)return mt;for(var en=_n.map(function(fl){return fl.oldFile}),ta=0,Un=dn;ta<Un.length;ta++){var Ta=Un[ta];if(!e.contains(en,Ta))for(var Ei=0,Qi=Ta.ambientModuleNames;Ei<Qi.length;Ei++){var Wi=Qi[Ei];i.set(Wi,Ta.fileName)}}for(var Ai=0,Ci=_n;Ai<Ci.length;Ai++){var Fo=Ci[Ai],ba=Fo.oldFile,Na=Fo.newFile,xo=D(Na),js=Et(xo,Na),Dl=e.hasChangesInResolutions(xo,js,ba.resolvedModules,ba,e.moduleResolutionIsEqualTo);Dl?(mt=1,Na.resolvedModules=e.zipToModeAwareCache(Na,xo,js)):Na.resolvedModules=ba.resolvedModules;var cc=e.map(Na.typeReferenceDirectives,function(sd){return e.toFileNameLowerCase(sd.fileName)}),qc=bt(cc,Na),Br=e.hasChangesInResolutions(cc,qc,ba.resolvedTypeReferenceDirectiveNames,ba,e.typeDirectiveIsEqualTo);Br?(mt=1,Na.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(Na,cc,qc)):Na.resolvedTypeReferenceDirectiveNames=ba.resolvedTypeReferenceDirectiveNames}if(mt!==2)return mt;if(e.changesAffectingProgramStructure(rt,ce)||((Fr=lr.hasChangedAutomaticTypeDirectiveNames)===null||Fr===void 0?void 0:Fr.call(lr)))return 1;z=Ne.getMissingFilePaths(),e.Debug.assert(zt.length===Ne.getSourceFiles().length);for(var Il=0,Nl=zt;Il<Nl.length;Il++){var Na=Nl[Il];De.set(Na.path,Na)}var wc=Ne.getFilesByNameMap();return wc.forEach(function(fl,Mc){if(!fl){De.set(Mc,fl);return}if(fl.path===Mc){Ne.isSourceFileFromExternalLibrary(fl)&&He.set(fl.path,!0);return}De.set(Mc,De.get(fl.path))}),gr=zt,Mr=Ne.getFileIncludeReasons(),we=Ne.getFileProcessingDiagnostics(),de=Ne.getResolvedTypeReferenceDirectives(),Ce=Ne.sourceFileToPackageName,cr=Ne.redirectTargetsMap,$e=Ne.usesUriStyleNodeCoreModules,2}function Qn(Fr){return{getPrependNodes:ya,getCanonicalFileName:an,getCommonSourceDirectory:Gn.getCommonSourceDirectory,getCompilerOptions:Gn.getCompilerOptions,getCurrentDirectory:function(){return _t},getNewLine:function(){return lr.getNewLine()},getSourceFile:Gn.getSourceFile,getSourceFileByPath:Gn.getSourceFileByPath,getSourceFiles:Gn.getSourceFiles,getLibFileFromReference:Gn.getLibFileFromReference,isSourceFileFromExternalLibrary:$a,getResolvedProjectReferenceToRedirect:gi,getProjectReferenceRedirect:vi,isSourceOfProjectReferenceRedirect:Ro,getSymlinkCache:lc,writeFile:Fr||function(rt,Dt,zt,_n,dn){return lr.writeFile(rt,Dt,zt,_n,dn)},isEmitBlocked:Yi,readFile:function(rt){return lr.readFile(rt)},fileExists:function(rt){var Dt=ft(rt);return lo(Dt)?!0:e.contains(z,Dt)?!1:lr.fileExists(rt)},useCaseSensitiveFileNames:function(){return lr.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return Gn.getProgramBuildInfo&&Gn.getProgramBuildInfo()},getSourceFileFromReference:function(rt,Dt){return Gn.getSourceFileFromReference(rt,Dt)},redirectTargetsMap:cr,getFileIncludeReasons:Gn.getFileIncludeReasons}}function Ra(Fr){e.Debug.assert(!e.outFile(ce)),e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var rt=e.emitFiles(e.notImplementedResolver,Qn(Fr),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),e.tracing===null||e.tracing===void 0||e.tracing.pop(),rt}function Ki(){return dr}function di(){return We}function ya(){return _e(We,function(Fr,rt){var Dt;return(Dt=dr[rt])===null||Dt===void 0?void 0:Dt.commandLine},function(Fr){var rt=ft(Fr),Dt=lo(rt);return Dt?Dt.text:De.has(rt)?void 0:lr.readFile(rt)})}function $a(Fr){return!!He.get(Fr.path)}function ao(Fr){if(Fr.hasNoDefaultLib)return!0;if(!ce.noLib)return!1;var rt=lr.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return ce.lib?e.some(ce.lib,function(Dt){return rt(Fr.fileName,Le(Dt))}):rt(Fr.fileName,Sr())}function ei(){return ur||(ur=e.createTypeChecker(Gn,!0))}function Fi(){ur=void 0}function eo(){return xr||(xr=e.createTypeChecker(Gn,!1))}function Wo(Fr,rt,Dt,zt,_n,dn){e.tracing===null||e.tracing===void 0||e.tracing.push("emit","emit",{path:Fr==null?void 0:Fr.path},!0);var On=ko(function(){return Ni(Gn,Fr,rt,Dt,zt,_n,dn)});return e.tracing===null||e.tracing===void 0||e.tracing.pop(),On}function Yi(Fr){return vn.has(ft(Fr))}function Ni(Fr,rt,Dt,zt,_n,dn,On){if(!On){var Jn=Y(Fr,rt,Dt,zt);if(Jn)return Jn}var Fa=ei().getEmitResolver(e.outFile(ce)?void 0:rt,zt);e.performance.mark("beforeEmit");var fa=e.emitFiles(Fa,Qn(Dt),rt,e.getTransformers(ce,dn,_n),_n,!1,On);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),fa}function Eo(Fr){return lo(ft(Fr))}function lo(Fr){return De.get(Fr)||void 0}function So(Fr,rt,Dt){return Fr?rt(Fr,Dt):e.sortAndDeduplicateDiagnostics(e.flatMap(Gn.getSourceFiles(),function(zt){return Dt&&Dt.throwIfCancellationRequested(),rt(zt,Dt)}))}function ts(Fr,rt){return So(Fr,No,rt)}function ja(Fr,rt){return So(Fr,Oo,rt)}function Do(Fr){var rt;return Fr?(rt=fr.perFile)===null||rt===void 0?void 0:rt.get(Fr.path):fr.allDiagnostics}function Pa(Fr,rt){return Po(Fr,rt)}function Ti(Fr){var rt;if(e.skipTypeChecking(Fr,ce,Gn))return e.emptyArray;var Dt=ot.getDiagnostics(Fr.fileName);return!((rt=Fr.commentDirectives)===null||rt===void 0)&&rt.length?vr(Fr,Fr.commentDirectives,Dt).diagnostics:Dt}function mo(Fr,rt){var Dt=Gn.getCompilerOptions();return!Fr||e.outFile(Dt)?Fe(Fr,rt):So(Fr,ye,rt)}function No(Fr){return e.isSourceFileJS(Fr)?(Fr.additionalSyntacticDiagnostics||(Fr.additionalSyntacticDiagnostics=Bn(Fr)),e.concatenate(Fr.additionalSyntacticDiagnostics,Fr.parseDiagnostics)):Fr.parseDiagnostics}function ko(Fr){try{return Fr()}catch(rt){throw rt instanceof e.OperationCanceledException&&(xr=void 0,ur=void 0),rt}}function Oo(Fr,rt){return e.concatenate(pe(Po(Fr,rt),ce),Ti(Fr))}function Po(Fr,rt){return ht(Fr,rt,fr,Ss)}function Ss(Fr,rt){return ko(function(){if(e.skipTypeChecking(Fr,ce,Gn))return e.emptyArray;var Dt=ei();e.Debug.assert(!!Fr.bindDiagnostics);var zt=e.isCheckJsEnabledForFile(Fr,ce),_n=!!Fr.checkJsDirective&&Fr.checkJsDirective.enabled===!1,dn=!_n&&(Fr.scriptKind===3||Fr.scriptKind===4||Fr.scriptKind===5||zt||Fr.scriptKind===7),On=dn?Fr.bindDiagnostics:e.emptyArray,Jn=dn?Dt.getDiagnostics(Fr,rt):e.emptyArray;return Ds(Fr,dn,On,Jn,zt?Fr.jsDocDiagnostics:void 0)})}function Ds(Fr,rt){for(var Dt,zt=[],_n=2;_n<arguments.length;_n++)zt[_n-2]=arguments[_n];var dn=e.flatten(zt);if(!rt||!(!((Dt=Fr.commentDirectives)===null||Dt===void 0)&&Dt.length))return dn;for(var On=vr(Fr,Fr.commentDirectives,dn),Jn=On.diagnostics,Fa=On.directives,fa=0,ba=Fa.getUnusedExpectations();fa<ba.length;fa++){var Na=ba[fa];Jn.push(e.createDiagnosticForRange(Fr,Na.range,e.Diagnostics.Unused_ts_expect_error_directive))}return Jn}function vr(Fr,rt,Dt){var zt=e.createCommentDirectivesMap(Fr,rt),_n=Dt.filter(function(dn){return tn(dn,zt)===-1});return{diagnostics:_n,directives:zt}}function gt(Fr,rt){return ko(function(){return ei().getSuggestionDiagnostics(Fr,rt)})}function tn(Fr,rt){var Dt=Fr.file,zt=Fr.start;if(!Dt)return-1;for(var _n=e.getLineStarts(Dt),dn=e.computeLineAndCharacterOfPosition(_n,zt).line-1;dn>=0;){if(rt.markUsed(dn))return dn;var On=Dt.text.slice(_n[dn],_n[dn+1]).trim();if(On!==""&&!/^(\s*)\/\/(.*)$/.test(On))return-1;dn--}return-1}function Bn(Fr){return ko(function(){var rt=[];return Dt(Fr,Fr),e.forEachChildRecursively(Fr,Dt,zt),rt;function Dt(Jn,Fa){switch(Fa.kind){case 163:case 166:case 168:if(Fa.questionToken===Jn)return rt.push(On(Jn,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 167:case 170:case 171:case 172:case 212:case 255:case 213:case 253:if(Fa.type===Jn)return rt.push(On(Jn,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Jn.kind){case 266:if(Jn.isTypeOnly)return rt.push(On(Fa,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 271:if(Jn.isTypeOnly)return rt.push(On(Jn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 264:return rt.push(On(Jn,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 270:if(Jn.isExportEquals)return rt.push(On(Jn,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 290:var fa=Jn;if(fa.token===117)return rt.push(On(Jn,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 257:var ba=e.tokenToString(118);return e.Debug.assertIsDefined(ba),rt.push(On(Jn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,ba)),"skip";case 260:var Na=Jn.flags&16?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(Na),rt.push(On(Jn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Na)),"skip";case 258:return rt.push(On(Jn,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 259:var he=e.Debug.checkDefined(e.tokenToString(92));return rt.push(On(Jn,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,he)),"skip";case 229:return rt.push(On(Jn,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 228:return rt.push(On(Jn.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 210:e.Debug.fail()}}function zt(Jn,Fa){switch(Fa.decorators===Jn&&!ce.experimentalDecorators&&rt.push(On(Fa,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),Fa.kind){case 256:case 225:case 168:case 170:case 171:case 172:case 212:case 255:case 213:if(Jn===Fa.typeParameters)return rt.push(dn(Jn,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 236:if(Jn===Fa.modifiers)return _n(Fa.modifiers,Fa.kind===236),"skip";break;case 166:if(Jn===Fa.modifiers){for(var fa=0,ba=Jn;fa<ba.length;fa++){var Na=ba[fa];Na.kind!==124&&rt.push(On(Na,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Na.kind)))}return"skip"}break;case 163:if(Jn===Fa.modifiers)return rt.push(dn(Jn,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 207:case 208:case 227:case 278:case 279:case 209:if(Jn===Fa.typeArguments)return rt.push(dn(Jn,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function _n(Jn,Fa){for(var fa=0,ba=Jn;fa<ba.length;fa++){var Na=ba[fa];switch(Na.kind){case 85:if(Fa)continue;case 123:case 121:case 122:case 144:case 135:case 126:case 158:rt.push(On(Na,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(Na.kind)));break;case 124:case 93:case 88:}}}function dn(Jn,Fa,fa,ba,Na){var he=Jn.pos;return e.createFileDiagnostic(Fr,he,Jn.end-he,Fa,fa,ba,Na)}function On(Jn,Fa,fa,ba,Na){return e.createDiagnosticForNodeInSourceFile(Fr,Jn,Fa,fa,ba,Na)}})}function Fe(Fr,rt){return ht(Fr,rt,Ar,Gr)}function Gr(Fr,rt){return ko(function(){var Dt=ei().getEmitResolver(Fr,rt);return e.getDeclarationDiagnostics(Qn(e.noop),Dt,Fr)||e.emptyArray})}function ht(Fr,rt,Dt,zt){var _n,dn=Fr?(_n=Dt.perFile)===null||_n===void 0?void 0:_n.get(Fr.path):Dt.allDiagnostics;if(dn)return dn;var On=zt(Fr,rt);return Fr?(Dt.perFile||(Dt.perFile=new e.Map)).set(Fr.path,On):Dt.allDiagnostics=On,On}function ye(Fr,rt){return Fr.isDeclarationFile?[]:Fe(Fr,rt)}function oe(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ot.getGlobalDiagnostics(),Pe()))}function Pe(){if(!ce.configFile)return e.emptyArray;var Fr=ot.getDiagnostics(ce.configFile.fileName);return Mi(function(rt){Fr=e.concatenate(Fr,ot.getDiagnostics(rt.sourceFile.fileName))}),Fr}function Ye(){return Re.length?e.sortAndDeduplicateDiagnostics(ei().getGlobalDiagnostics().slice()):e.emptyArray}function Tr(){return Ue||e.emptyArray}function tt(Fr,rt,Dt,zt){Oi(e.normalizePath(Fr),rt,Dt,void 0,zt)}function Mt(Fr,rt){return Fr.fileName===rt.fileName}function Wt(Fr,rt){return Fr.kind===79?rt.kind===79&&Fr.escapedText===rt.escapedText:rt.kind===10&&Fr.text===rt.text}function Ln(Fr,rt){var Dt=e.factory.createStringLiteral(Fr),zt=e.factory.createImportDeclaration(void 0,void 0,void 0,Dt,void 0);return e.addEmitFlags(zt,67108864),e.setParent(Dt,zt),e.setParent(zt,rt),Dt.flags&=-9,zt.flags&=-9,Dt}function va(Fr){if(Fr.imports)return;var rt=e.isSourceFileJS(Fr),Dt=e.isExternalModule(Fr),zt,_n,dn;if((ce.isolatedModules||Dt)&&!Fr.isDeclarationFile){ce.importHelpers&&(zt=[Ln(e.externalHelpersModuleNameText,Fr)]);var On=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(ce,Fr),ce);On&&(zt||(zt=[])).push(Ln(On,Fr))}for(var Jn=0,Fa=Fr.statements;Jn<Fa.length;Jn++){var fa=Fa[Jn];ba(fa,!1)}(Fr.flags&1048576||rt)&&Na(Fr),Fr.imports=zt||e.emptyArray,Fr.moduleAugmentations=_n||e.emptyArray,Fr.ambientModuleNames=dn||e.emptyArray;return;function ba(ar,hr){if(e.isAnyImportOrReExport(ar)){var dt=e.getExternalModuleName(ar);dt&&e.isStringLiteral(dt)&&dt.text&&(!hr||!e.isExternalModuleNameRelative(dt.text))&&(e.setParentRecursive(ar,!1),zt=e.append(zt,dt),!$e&&Cr===0&&!Fr.isDeclarationFile&&($e=e.startsWith(dt.text,"node:")))}else if(e.isModuleDeclaration(ar)&&e.isAmbientModule(ar)&&(hr||e.hasSyntacticModifier(ar,2)||Fr.isDeclarationFile)){ar.name.parent=ar;var en=e.getTextOfIdentifierOrLiteral(ar.name);if(Dt||hr&&!e.isExternalModuleNameRelative(en))(_n||(_n=[])).push(ar.name);else if(!hr){Fr.isDeclarationFile&&(dn||(dn=[])).push(en);var ta=ar.body;if(ta)for(var Un=0,Ta=ta.statements;Un<Ta.length;Un++){var Ei=Ta[Un];ba(Ei,!0)}}}}function Na(ar){for(var hr=/import|require/g;hr.exec(ar.text)!==null;){var dt=he(ar,hr.lastIndex);rt&&e.isRequireCall(dt,!0)||e.isImportCall(dt)&&dt.arguments.length>=1&&e.isStringLiteralLike(dt.arguments[0])?(e.setParentRecursive(dt,!1),zt=e.append(zt,dt.arguments[0])):e.isLiteralImportTypeNode(dt)&&(e.setParentRecursive(dt,!1),zt=e.append(zt,dt.argument.literal))}}function he(ar,hr){for(var dt=ar,en=function(Un){if(Un.pos<=hr&&(hr<Un.end||hr===Un.end&&Un.kind===1))return Un};;){var ta=rt&&e.hasJSDocNodes(dt)&&e.forEach(dt.jsDoc,en)||e.forEachChild(dt,en);if(!ta)return dt;dt=ta}}}function ti(Fr){var rt=e.toFileNameLowerCase(Fr.fileName),Dt=e.libMap.get(rt);if(Dt)return Eo(Le(Dt))}function ii(Fr,rt){return Si(c(rt.fileName,Fr.fileName),Eo)}function Si(Fr,rt,Dt,zt){if(e.hasExtension(Fr)){var _n=lr.getCanonicalFileName(Fr);if(!ce.allowNonTsExtensions&&!e.forEach(e.flatten(Yt),function(fa){return e.fileExtensionIs(_n,fa)})){Dt&&(e.hasJSFileExtension(_n)?Dt(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Fr):Dt(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Fr,"'"+e.flatten(kt).join("', '")+"'"));return}var dn=rt(Fr);if(Dt)if(dn)H(zt)&&_n===lr.getCanonicalFileName(lo(zt.file).fileName)&&Dt(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var On=vi(Fr);On?Dt(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,On,Fr):Dt(e.Diagnostics.File_0_not_found,Fr)}return dn}else{var Jn=ce.allowNonTsExtensions&&rt(Fr);if(Jn)return Jn;if(Dt&&ce.allowNonTsExtensions){Dt(e.Diagnostics.File_0_not_found,Fr);return}var Fa=e.forEach(kt[0],function(fa){return rt(Fr+fa)});return Dt&&!Fa&&Dt(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Fr,"'"+e.flatten(kt).join("', '")+"'"),Fa}}function Oi(Fr,rt,Dt,zt,_n){Si(Fr,function(dn){return At(dn,rt,Dt,_n,zt)},function(dn){for(var On=[],Jn=1;Jn<arguments.length;Jn++)On[Jn-1]=arguments[Jn];return wr(void 0,_n,dn,On)},_n)}function _s(Fr,rt){return Oi(Fr,!1,!1,void 0,rt)}function os(Fr,rt,Dt){var zt=!H(Dt)&&e.some(Mr.get(rt.path),H);zt?wr(rt,Dt,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[rt.fileName,Fr]):wr(rt,Dt,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Fr,rt.fileName])}function jo(Fr,rt,Dt,zt,_n,dn){var On=Object.create(Fr);return On.fileName=Dt,On.path=zt,On.resolvedPath=_n,On.originalFileName=dn,On.redirectInfo={redirectTarget:Fr,unredirected:rt},He.set(zt,Cr>0),Object.defineProperties(On,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(Jn){this.redirectInfo.redirectTarget.id=Jn}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(Jn){this.redirectInfo.redirectTarget.symbol=Jn}}}),On}function At(Fr,rt,Dt,zt,_n){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:Fr,isDefaultLib:rt||void 0,fileIncludeKind:e.FileIncludeKind[zt.kind]});var dn=Wn(Fr,rt,Dt,zt,_n);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),dn}function Wn(Fr,rt,Dt,zt,_n){var dn=ft(Fr);if(Jr){var On=Vi(dn);if(!On&&lr.realpath&&ce.preserveSymlinks&&e.isDeclarationFileName(Fr)&&e.stringContains(Fr,e.nodeModulesPathPart)){var Jn=ft(lr.realpath(Fr));Jn!==dn&&(On=Vi(Jn))}if(On){var Fa=e.isString(On)?At(On,rt,Dt,zt,_n):void 0;return Fa&&oi(Fa,dn,void 0),Fa}}var fa=Fr;if(De.has(dn)){var ba=De.get(dn);if(sa(ba||void 0,zt),ba&&ce.forceConsistentCasingInFileNames){var Na=ba.fileName,he=ft(Na)!==ft(Fr);he&&(Fr=vi(Fr)||Fr);var ar=e.getNormalizedAbsolutePathWithoutRoot(Na,_t),hr=e.getNormalizedAbsolutePathWithoutRoot(Fr,_t);ar!==hr&&os(Fr,ba,zt)}return ba&&He.get(ba.path)&&Cr===0?(He.set(ba.path,!1),ce.noResolve||(ns(ba,rt),me(ba)),ce.noLib||Xr(ba),kr.set(ba.path,!1),Xn(ba)):ba&&kr.get(ba.path)&&Cr<qe&&(kr.set(ba.path,!1),Xn(ba)),ba||void 0}var dt;if(H(zt)&&!Jr){var en=Ui(Fr);if(en){if(e.outFile(en.commandLine.options))return;var ta=Ca(en,Fr);Fr=ta,dt=ft(ta)}}var Un=lr.getSourceFile(Fr,e.getEmitScriptTarget(ce),function(Ci){return wr(void 0,zt,e.Diagnostics.Cannot_read_file_0_Colon_1,[Fr,Ci])},ut);if(_n){var Ta=e.packageIdToString(_n),Ei=Lr.get(Ta);if(Ei){var Qi=jo(Ei,Un,Fr,dn,ft(Fr),fa);return cr.add(Ei.path,Fr),oi(Qi,dn,dt),sa(Qi,zt),Ce.set(dn,_n.name),Ve.push(Qi),Qi}else Un&&(Lr.set(Ta,Un),Ce.set(dn,_n.name))}if(oi(Un,dn,dt),Un){if(He.set(dn,Cr>0),Un.fileName=Fr,Un.path=dn,Un.resolvedPath=ft(Fr),Un.originalFileName=fa,Un.impliedNodeFormat=_(Un.resolvedPath,qn==null?void 0:qn.getPackageJsonInfoCache(),lr,ce),sa(Un,zt),lr.useCaseSensitiveFileNames()){var Wi=e.toFileNameLowerCase(dn),Ai=ke.get(Wi);Ai?os(Fr,Ai,zt):ke.set(Wi,Un)}Je=Je||Un.hasNoDefaultLib&&!Dt,ce.noResolve||(ns(Un,rt),me(Un)),ce.noLib||Xr(Un),Xn(Un),rt?ve.push(Un):Ve.push(Un)}return Un}function sa(Fr,rt){Fr&&Mr.add(Fr.path,rt)}function oi(Fr,rt,Dt){Dt?(De.set(Dt,Fr),De.set(rt,Fr||!1)):De.set(rt,Fr)}function vi(Fr){var rt=Ui(Fr);return rt&&Ca(rt,Fr)}function Ui(Fr){if(!(!dr||!dr.length||e.fileExtensionIs(Fr,".d.ts")||e.fileExtensionIs(Fr,".json")))return gi(Fr)}function Ca(Fr,rt){var Dt=e.outFile(Fr.commandLine.options);return Dt?e.changeExtension(Dt,".d.ts"):e.getOutputDeclarationFileName(rt,Fr.commandLine,!lr.useCaseSensitiveFileNames())}function gi(Fr){Qe===void 0&&(Qe=new e.Map,Mi(function(Dt){ft(ce.configFilePath)!==Dt.sourceFile.path&&Dt.commandLine.fileNames.forEach(function(zt){return Qe.set(ft(zt),Dt.sourceFile.path)})}));var rt=Qe.get(ft(Fr));return rt&&Yo(rt)}function Mi(Fr){return e.forEachResolvedProjectReference(dr,Fr)}function Vi(Fr){if(!!e.isDeclarationFileName(Fr))return Ir===void 0&&(Ir=new e.Map,Mi(function(rt){var Dt=e.outFile(rt.commandLine.options);if(Dt){var zt=e.changeExtension(Dt,".d.ts");Ir.set(ft(zt),!0)}else{var _n=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(rt.commandLine,!lr.useCaseSensitiveFileNames())});e.forEach(rt.commandLine.fileNames,function(dn){if(!e.fileExtensionIs(dn,".d.ts")&&!e.fileExtensionIs(dn,".json")){var On=e.getOutputDeclarationFileName(dn,rt.commandLine,!lr.useCaseSensitiveFileNames(),_n);Ir.set(ft(On),dn)}})}})),Ir.get(Fr)}function Ro(Fr){return Jr&&!!gi(Fr)}function Yo(Fr){if(!!Xe)return Xe.get(Fr)||void 0}function ns(Fr,rt){e.forEach(Fr.referencedFiles,function(Dt,zt){Oi(c(Dt.fileName,Fr.fileName),rt,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:Fr.path,index:zt})})}function me(Fr){var rt=e.map(Fr.typeReferenceDirectives,function(Jn){return e.toFileNameLowerCase(Jn.fileName)});if(!!rt)for(var Dt=bt(rt,Fr),zt=0;zt<rt.length;zt++){var _n=Fr.typeReferenceDirectives[zt],dn=Dt[zt],On=e.toFileNameLowerCase(_n.fileName);e.setResolvedTypeReferenceDirective(Fr,On,dn),Pr(On,dn,{kind:e.FileIncludeKind.TypeReferenceDirective,file:Fr.path,index:zt})}}function Pr(Fr,rt,Dt){e.tracing===null||e.tracing===void 0||e.tracing.push("program","processTypeReferenceDirective",{directive:Fr,hasResolved:!!Et,refKind:Dt.kind,refPath:H(Dt)?Dt.file:void 0}),yt(Fr,rt,Dt),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function yt(Fr,rt,Dt){var zt=de.get(Fr);if(!(zt&&zt.primary)){var _n=!0;if(rt){if(rt.isExternalLibraryImport&&Cr++,rt.primary)Oi(rt.resolvedFileName,!1,!1,rt.packageId,Dt);else if(zt){if(rt.resolvedFileName!==zt.resolvedFileName){var dn=lr.readFile(rt.resolvedFileName),On=Eo(zt.resolvedFileName);dn!==On.text&&wr(On,Dt,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Fr,rt.resolvedFileName,zt.resolvedFileName])}_n=!1}else Oi(rt.resolvedFileName,!1,!1,rt.packageId,Dt);rt.isExternalLibraryImport&&Cr--}else wr(void 0,Dt,e.Diagnostics.Cannot_find_type_definition_file_for_0,[Fr]);_n&&de.set(Fr,rt)}}function Le(Fr){for(var rt=Fr.split("."),Dt=rt[1],zt=2;rt[zt]&&rt[zt]!=="d";)Dt+=(zt===2?"/":"-")+rt[zt],zt++;var _n=e.combinePaths(_t,"__lib_node_modules_lookup_".concat(Fr,"__.ts")),dn=e.resolveModuleName("@typescript/lib-"+Dt,_n,{moduleResolution:e.ModuleResolutionKind.NodeJs},lr,qn);return dn!=null&&dn.resolvedModule?dn.resolvedModule.resolvedFileName:e.combinePaths(Yr,Fr)}function Xr(Fr){e.forEach(Fr.libReferenceDirectives,function(rt,Dt){var zt=e.toFileNameLowerCase(rt.fileName),_n=e.libMap.get(zt);if(_n)tt(Le(_n),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:Fr.path,index:Dt});else{var dn=e.removeSuffix(e.removePrefix(zt,"lib."),".d.ts"),On=e.getSpellingSuggestion(dn,e.libs,e.identity),Jn=On?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(we||(we=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:Fr.path,index:Dt},diagnostic:Jn,args:[zt,On]})}})}function an(Fr){return lr.getCanonicalFileName(Fr)}function Xn(Fr){var rt;if(va(Fr),Fr.imports.length||Fr.moduleAugmentations.length){var Dt=D(Fr),zt=Et(Dt,Fr);e.Debug.assert(zt.length===Dt.length);for(var _n=(Jr?(rt=Ut(Fr))===null||rt===void 0?void 0:rt.commandLine.options:void 0)||ce,dn=0;dn<Dt.length;dn++){var On=zt[dn];if(e.setResolvedModule(Fr,Dt[dn],On,re(Fr,dn)),!!On){var Jn=On.isExternalLibraryImport,Fa=!e.resolutionExtensionIsTSOrJson(On.extension),fa=Jn&&Fa,ba=On.resolvedFileName;Jn&&Cr++;var Na=fa&&Cr>qe,he=ba&&!ae(_n,On)&&!_n.noResolve&&dn<Fr.imports.length&&!Na&&!(Fa&&!e.getAllowJSCompilerOption(_n))&&(e.isInJSFile(Fr.imports[dn])||!(Fr.imports[dn].flags&4194304));Na?kr.set(Fr.path,!0):he&&At(ba,!1,!1,{kind:e.FileIncludeKind.Import,file:Fr.path,index:dn},On.packageId),Jn&&Cr--}}}else Fr.resolvedModules=void 0}function da(Fr,rt){for(var Dt=!0,zt=lr.getCanonicalFileName(e.getNormalizedAbsolutePath(rt,_t)),_n=0,dn=Fr;_n<dn.length;_n++){var On=dn[_n];if(!On.isDeclarationFile){var Jn=lr.getCanonicalFileName(e.getNormalizedAbsolutePath(On.fileName,_t));Jn.indexOf(zt)!==0&&(ss(On,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[On.fileName,rt]),Dt=!1)}}return Dt}function bi(Fr){Xe||(Xe=new e.Map);var rt=Se(Fr),Dt=ft(rt),zt=Xe.get(Dt);if(zt!==void 0)return zt||void 0;var _n,dn;if(lr.getParsedCommandLine){if(_n=lr.getParsedCommandLine(rt),!_n){oi(void 0,Dt,void 0),Xe.set(Dt,!1);return}dn=e.Debug.checkDefined(_n.options.configFile),e.Debug.assert(!dn.path||dn.path===Dt),oi(dn,Dt,void 0)}else{var On=e.getNormalizedAbsolutePath(e.getDirectoryPath(rt),lr.getCurrentDirectory());if(dn=lr.getSourceFile(rt,100),oi(dn,Dt,void 0),dn===void 0){Xe.set(Dt,!1);return}_n=e.parseJsonSourceFileConfigFileContent(dn,Hr,On,void 0,rt)}dn.fileName=rt,dn.path=Dt,dn.resolvedPath=Dt,dn.originalFileName=rt;var Jn={commandLine:_n,sourceFile:dn};return Xe.set(Dt,Jn),_n.projectReferences&&(Jn.references=_n.projectReferences.map(bi)),Jn}function Qa(){var Fr=e.stringContains(e.version,"-dev");Fr||(e.getEmitModuleKind(ce)===e.ModuleKind.Node12?Zl("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","node12"):e.getEmitModuleKind(ce)===e.ModuleKind.NodeNext?Zl("module",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"module","nodenext"):e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.Node12?Zl("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","node12"):e.getEmitModuleResolutionKind(ce)===e.ModuleResolutionKind.NodeNext&&Zl("moduleResolution",e.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next,"moduleResolution","nodenext")),ce.strictPropertyInitialization&&!e.getStrictOptionValue(ce,"strictNullChecks")&&io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),ce.exactOptionalPropertyTypes&&!e.getStrictOptionValue(ce,"strictNullChecks")&&io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),ce.isolatedModules&&(ce.out&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),ce.outFile&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),ce.inlineSourceMap&&(ce.sourceMap&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),ce.mapRoot&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),ce.composite&&(ce.declaration===!1&&io(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),ce.incremental===!1&&io(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var rt=e.outFile(ce);if(ce.tsBuildInfoFile?e.isIncrementalCompilation(ce)||io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):ce.incremental&&!rt&&!ce.configFilePath&&ot.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Sl(),ce.composite)for(var Dt=new e.Set(Re.map(ft)),zt=0,_n=gr;zt<_n.length;zt++){var dn=_n[zt];e.sourceFileMayBeEmitted(dn,Gn)&&!Dt.has(dn.path)&&ss(dn,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[dn.fileName,ce.configFilePath||""])}if(ce.paths){for(var On in ce.paths)if(!!e.hasProperty(ce.paths,On))if(e.hasZeroOrOneAsteriskCharacter(On)||bs(!0,On,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,On),e.isArray(ce.paths[On])){var Jn=ce.paths[On].length;Jn===0&&bs(!1,On,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,On);for(var Fa=0;Fa<Jn;Fa++){var fa=ce.paths[On][Fa],ba=typeof fa;ba==="string"?(e.hasZeroOrOneAsteriskCharacter(fa)||zo(On,Fa,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,fa,On),!ce.baseUrl&&!e.pathIsRelative(fa)&&!e.pathIsAbsolute(fa)&&zo(On,Fa,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):zo(On,Fa,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,fa,On,ba)}}else bs(!1,On,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,On)}!ce.sourceMap&&!ce.inlineSourceMap&&(ce.inlineSources&&io(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),ce.sourceRoot&&io(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),ce.out&&ce.outFile&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),ce.mapRoot&&!(ce.sourceMap||ce.declarationMap)&&io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),ce.declarationDir&&(e.getEmitDeclarations(ce)||io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),rt&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",ce.out?"out":"outFile")),ce.declarationMap&&!e.getEmitDeclarations(ce)&&io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),ce.lib&&ce.noLib&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),ce.noImplicitUseStrict&&e.getStrictOptionValue(ce,"alwaysStrict")&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var Na=e.getEmitScriptTarget(ce),he=e.find(gr,function(Ta){return e.isExternalModule(Ta)&&!Ta.isDeclarationFile});if(ce.isolatedModules){ce.module===e.ModuleKind.None&&Na<2&&io(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ce.preserveConstEnums===!1&&io(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var ar=e.find(gr,function(Ta){return!e.isExternalModule(Ta)&&!e.isSourceFileJS(Ta)&&!Ta.isDeclarationFile&&Ta.scriptKind!==6});if(ar){var hr=e.getErrorSpanForNode(ar,ar);ot.add(e.createFileDiagnostic(ar,hr.start,hr.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(ar.fileName)))}}else if(he&&Na<2&&ce.module===e.ModuleKind.None){var hr=e.getErrorSpanForNode(he,he.externalModuleIndicator);ot.add(e.createFileDiagnostic(he,hr.start,hr.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(rt&&!ce.emitDeclarationOnly){if(ce.module&&!(ce.module===e.ModuleKind.AMD||ce.module===e.ModuleKind.System))io(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,ce.out?"out":"outFile","module");else if(ce.module===void 0&&he){var hr=e.getErrorSpanForNode(he,he.externalModuleIndicator);ot.add(e.createFileDiagnostic(he,hr.start,hr.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ce.out?"out":"outFile"))}}if(ce.resolveJsonModule&&(e.getEmitModuleResolutionKind(ce)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(ce)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(ce)!==e.ModuleResolutionKind.NodeNext?io(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(ce)||io(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ce.outDir||ce.rootDir||ce.sourceRoot||ce.mapRoot){var dt=Ct();ce.outDir&&dt===""&&gr.some(function(Ta){return e.getRootLength(Ta.fileName)>1})&&io(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(ce.useDefineForClassFields&&Na===0&&io(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ce.checkJs&&!e.getAllowJSCompilerOption(ce)&&ot.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ce.emitDeclarationOnly&&(e.getEmitDeclarations(ce)||io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ce.noEmit&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ce.emitDecoratorMetadata&&!ce.experimentalDecorators&&io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ce.jsxFactory?(ce.reactNamespace&&io(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ce.jsx===4||ce.jsx===5)&&io(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+ce.jsx)),e.parseIsolatedEntityName(ce.jsxFactory,Na)||Zl("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ce.jsxFactory)):ce.reactNamespace&&!e.isIdentifierText(ce.reactNamespace,Na)&&Zl("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ce.reactNamespace),ce.jsxFragmentFactory&&(ce.jsxFactory||io(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ce.jsx===4||ce.jsx===5)&&io(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+ce.jsx)),e.parseIsolatedEntityName(ce.jsxFragmentFactory,Na)||Zl("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ce.jsxFragmentFactory)),ce.reactNamespace&&(ce.jsx===4||ce.jsx===5)&&io(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+ce.jsx)),ce.jsxImportSource&&ce.jsx===2&&io(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+ce.jsx)),ce.preserveValueImports&&e.getEmitModuleKind(ce)<e.ModuleKind.ES2015&&Zl("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!ce.noEmit&&!ce.suppressOutputPathCheck){var en=Qn(),ta=new e.Set;e.forEachEmittedFile(en,function(Ta){ce.emitDeclarationOnly||Un(Ta.jsFilePath,ta),Un(Ta.declarationFilePath,ta)})}function Un(Ta,Ei){if(Ta){var Qi=ft(Ta);if(De.has(Qi)){var Wi=void 0;ce.configFilePath||(Wi=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),Wi=e.chainDiagnosticMessages(Wi,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,Ta),Ia(Ta,e.createCompilerDiagnosticFromMessageChain(Wi))}var Ai=lr.useCaseSensitiveFileNames()?Qi:e.toFileNameLowerCase(Qi);Ei.has(Ai)?Ia(Ta,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Ta)):Ei.add(Ai)}}}function go(Fr,rt,Dt,zt){var _n,dn,On,Jn=H(rt)?rt:void 0;Fr&&((_n=Mr.get(Fr.path))===null||_n===void 0||_n.forEach(he)),rt&&he(rt),Jn&&(dn==null?void 0:dn.length)===1&&(dn=void 0);var Fa=Jn&&d(lo,Jn),fa=dn&&e.chainDiagnosticMessages(dn,e.Diagnostics.The_file_is_in_the_program_because_Colon),ba=Fr&&e.explainIfFileIsRedirect(Fr),Na=e.chainDiagnosticMessages.apply(void 0,Bt([ba?fa?Bt([fa],ba,!0):ba:fa,Dt],zt||e.emptyArray,!1));return Fa&&w(Fa)?e.createFileDiagnosticFromMessageChain(Fa.file,Fa.pos,Fa.end-Fa.pos,Na,On):e.createCompilerDiagnosticFromMessageChain(Na,On);function he(ar){(dn||(dn=[])).push(e.fileIncludeReasonToDiagnostics(Gn,ar)),!Jn&&H(ar)?Jn=ar:Jn!==ar&&(On=e.append(On,al(ar))),ar===rt&&(rt=void 0)}}function wr(Fr,rt,Dt,zt){(we||(we=[])).push({kind:1,file:Fr&&Fr.path,fileProcessingReason:rt,diagnostic:Dt,args:zt})}function ss(Fr,rt,Dt){ot.add(go(Fr,void 0,rt,Dt))}function al(Fr){if(H(Fr)){var rt=d(lo,Fr),Dt;switch(Fr.kind){case e.FileIncludeKind.Import:Dt=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:Dt=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:Dt=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:Dt=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(Fr)}return w(rt)?e.createFileDiagnostic(rt.file,rt.pos,rt.end-rt.pos,Dt):void 0}if(!!ce.configFile){var zt,_n;switch(Fr.kind){case e.FileIncludeKind.RootFile:if(!ce.configFile.configFileSpecs)return;var dn=e.getNormalizedAbsolutePath(Re[Fr.index],_t),On=e.getMatchedFileSpec(Gn,dn);if(On){zt=e.getTsConfigPropArrayElementValue(ce.configFile,"files",On),_n=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var Jn=e.getMatchedIncludeSpec(Gn,dn);if(!Jn)return;zt=e.getTsConfigPropArrayElementValue(ce.configFile,"include",Jn),_n=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Fa=e.Debug.checkDefined(dr==null?void 0:dr[Fr.index]),fa=Q(We,dr,function(hr,dt,en){return hr===Fa?{sourceFile:(dt==null?void 0:dt.sourceFile)||ce.configFile,index:en}:void 0});if(!fa)return;var ba=fa.sourceFile,Na=fa.index,he=e.firstDefined(e.getTsConfigPropArray(ba,"references"),function(hr){return e.isArrayLiteralExpression(hr.initializer)?hr.initializer:void 0});return he&&he.elements.length>Na?e.createDiagnosticForNodeInSourceFile(ba,he.elements[Na],Fr.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!ce.types)return;zt=zc("types",Fr.typeReference),_n=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(Fr.index!==void 0){zt=zc("lib",ce.lib[Fr.index]),_n=e.Diagnostics.File_is_library_specified_here;break}var ar=e.forEachEntry(e.targetOptionDeclaration.type,function(hr,dt){return hr===e.getEmitScriptTarget(ce)?dt:void 0});zt=ar?Vl("target",ar):void 0,_n=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(Fr)}return zt&&e.createDiagnosticForNodeInSourceFile(ce.configFile,zt,_n)}}function Sl(){var Fr=ce.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(ce);Q(We,dr,function(rt,Dt,zt){var _n=(Dt?Dt.commandLine.projectReferences:We)[zt],dn=Dt&&Dt.sourceFile;if(!rt){Oc(dn,zt,e.Diagnostics.File_0_not_found,_n.path);return}var On=rt.commandLine.options;if(!On.composite||On.noEmit){var Jn=Dt?Dt.commandLine.fileNames:Re;Jn.length&&(On.composite||Oc(dn,zt,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,_n.path),On.noEmit&&Oc(dn,zt,e.Diagnostics.Referenced_project_0_may_not_disable_emit,_n.path))}if(_n.prepend){var Fa=e.outFile(On);Fa?lr.fileExists(Fa)||Oc(dn,zt,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,Fa,_n.path):Oc(dn,zt,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,_n.path)}!Dt&&Fr&&Fr===e.getTsBuildInfoEmitOutputFilePath(On)&&(Oc(dn,zt,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Fr,_n.path),vn.set(ft(Fr),!0))})}function zo(Fr,rt,Dt,zt,_n,dn){for(var On=!0,Jn=ic(),Fa=0,fa=Jn;Fa<fa.length;Fa++){var ba=fa[Fa];if(e.isObjectLiteralExpression(ba.initializer))for(var Na=0,he=e.getPropertyAssignment(ba.initializer,Fr);Na<he.length;Na++){var ar=he[Na],hr=ar.initializer;e.isArrayLiteralExpression(hr)&&hr.elements.length>rt&&(ot.add(e.createDiagnosticForNodeInSourceFile(ce.configFile,hr.elements[rt],Dt,zt,_n,dn)),On=!1)}}On&&ot.add(e.createCompilerDiagnostic(Dt,zt,_n,dn))}function bs(Fr,rt,Dt,zt){for(var _n=!0,dn=ic(),On=0,Jn=dn;On<Jn.length;On++){var Fa=Jn[On];e.isObjectLiteralExpression(Fa.initializer)&&sc(Fa.initializer,Fr,rt,void 0,Dt,zt)&&(_n=!1)}_n&&ot.add(e.createCompilerDiagnostic(Dt,zt))}function xl(Fr){var rt=oc();return rt&&e.getPropertyAssignment(rt,Fr)}function ic(){return xl("paths")||e.emptyArray}function Vl(Fr,rt){var Dt=xl(Fr);return Dt&&e.firstDefined(Dt,function(zt){return e.isStringLiteral(zt.initializer)&&zt.initializer.text===rt?zt.initializer:void 0})}function zc(Fr,rt){var Dt=oc();return Dt&&e.getPropertyArrayElementValue(Dt,Fr,rt)}function io(Fr,rt,Dt,zt){ul(!0,rt,Dt,Fr,rt,Dt,zt)}function Zl(Fr,rt,Dt,zt){ul(!1,Fr,void 0,rt,Dt,zt)}function Oc(Fr,rt,Dt,zt,_n){var dn=e.firstDefined(e.getTsConfigPropArray(Fr||ce.configFile,"references"),function(On){return e.isArrayLiteralExpression(On.initializer)?On.initializer:void 0});dn&&dn.elements.length>rt?ot.add(e.createDiagnosticForNodeInSourceFile(Fr||ce.configFile,dn.elements[rt],Dt,zt,_n)):ot.add(e.createCompilerDiagnostic(Dt,zt,_n))}function ul(Fr,rt,Dt,zt,_n,dn,On){var Jn=oc(),Fa=!Jn||!sc(Jn,Fr,rt,Dt,zt,_n,dn,On);Fa&&ot.add(e.createCompilerDiagnostic(zt,_n,dn,On))}function oc(){if(Mn===void 0){Mn=!1;var Fr=e.getTsConfigObjectLiteralExpression(ce.configFile);if(Fr)for(var rt=0,Dt=e.getPropertyAssignment(Fr,"compilerOptions");rt<Dt.length;rt++){var zt=Dt[rt];if(e.isObjectLiteralExpression(zt.initializer)){Mn=zt.initializer;break}}}return Mn||void 0}function sc(Fr,rt,Dt,zt,_n,dn,On,Jn){for(var Fa=e.getPropertyAssignment(Fr,Dt,zt),fa=0,ba=Fa;fa<ba.length;fa++){var Na=ba[fa];ot.add(e.createDiagnosticForNodeInSourceFile(ce.configFile,rt?Na.name:Na.initializer,_n,dn,On,Jn))}return!!Fa.length}function Ia(Fr,rt){vn.set(ft(Fr),!0),ot.add(rt)}function tf(Fr){if(ce.noEmit)return!1;var rt=ft(Fr);if(lo(rt))return!1;var Dt=e.outFile(ce);if(Dt)return Rc(rt,Dt)||Rc(rt,e.removeFileExtension(Dt)+".d.ts");if(ce.declarationDir&&e.containsPath(ce.declarationDir,rt,_t,!lr.useCaseSensitiveFileNames()))return!0;if(ce.outDir)return e.containsPath(ce.outDir,rt,_t,!lr.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(rt,e.supportedJSExtensionsFlat)||e.fileExtensionIs(rt,".d.ts")){var zt=e.removeFileExtension(rt);return!!lo(zt+".ts")||!!lo(zt+".tsx")}return!1}function Rc(Fr,rt){return e.comparePaths(Fr,rt,_t,!lr.useCaseSensitiveFileNames())===0}function lc(){return lr.getSymlinkCache?lr.getSymlinkCache():(Er||(Er=e.createSymlinkCache(_t,an)),gr&&de&&!Er.hasProcessedResolutions()&&Er.setSymlinksFromResolutions(gr,de),Er)}}e.createProgram=b;function G(ne){var J,le=ne.compilerHost.fileExists,Te=ne.compilerHost.directoryExists,Me=ne.compilerHost.getDirectories,Ke=ne.compilerHost.realpath;if(!ne.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:e.noop,fileExists:se};ne.compilerHost.fileExists=se;var Ae;return Te&&(Ae=ne.compilerHost.directoryExists=function(We){return Te.call(ne.compilerHost,We)?(ce(We),!0):ne.getResolvedProjectReferences()?(J||(J=new e.Set,ne.forEachResolvedProjectReference(function(Ne){var ve=e.outFile(Ne.commandLine.options);if(ve)J.add(e.getDirectoryPath(ne.toPath(ve)));else{var Ve=Ne.commandLine.options.declarationDir||Ne.commandLine.options.outDir;Ve&&J.add(ne.toPath(Ve))}})),Ue(We,!1)):!1}),Me&&(ne.compilerHost.getDirectories=function(We){return!ne.getResolvedProjectReferences()||Te&&Te.call(ne.compilerHost,We)?Me.call(ne.compilerHost,We):[]}),Ke&&(ne.compilerHost.realpath=function(We){var Ne;return((Ne=ne.getSymlinkCache().getSymlinkedFiles())===null||Ne===void 0?void 0:Ne.get(ne.toPath(We)))||Ke.call(ne.compilerHost,We)}),{onProgramCreateComplete:Ge,fileExists:se,directoryExists:Ae};function Ge(){ne.compilerHost.fileExists=le,ne.compilerHost.directoryExists=Te,ne.compilerHost.getDirectories=Me}function se(We){return le.call(ne.compilerHost,We)?!0:!ne.getResolvedProjectReferences()||!e.isDeclarationFileName(We)?!1:Ue(We,!0)}function xe(We){var Ne=ne.getSourceOfProjectReferenceRedirect(ne.toPath(We));return Ne!==void 0?e.isString(Ne)?le.call(ne.compilerHost,Ne):!0:void 0}function Re(We){var Ne=ne.toPath(We),ve="".concat(Ne).concat(e.directorySeparator);return e.forEachKey(J,function(Ve){return Ne===Ve||e.startsWith(Ve,ve)||e.startsWith(Ne,"".concat(Ve,"/"))})}function ce(We){var Ne;if(!(!ne.getResolvedProjectReferences()||e.containsIgnoredPath(We))&&!(!Ke||!e.stringContains(We,e.nodeModulesPathPart))){var ve=ne.getSymlinkCache(),Ve=e.ensureTrailingDirectorySeparator(ne.toPath(We));if(!(!((Ne=ve.getSymlinkedDirectories())===null||Ne===void 0)&&Ne.has(Ve))){var gr=e.normalizePath(Ke.call(ne.compilerHost,We)),Er;if(gr===We||(Er=e.ensureTrailingDirectorySeparator(ne.toPath(gr)))===Ve){ve.setSymlinkedDirectory(Ve,!1);return}ve.setSymlinkedDirectory(We,{real:e.ensureTrailingDirectorySeparator(gr),realPath:Er})}}}function Ue(We,Ne){var ve,Ve=Ne?function(xr){return xe(xr)}:function(xr){return Re(xr)},gr=Ve(We);if(gr!==void 0)return gr;var Er=ne.getSymlinkCache(),Nr=Er.getSymlinkedDirectories();if(!Nr)return!1;var ur=ne.toPath(We);return e.stringContains(ur,e.nodeModulesPathPart)?Ne&&((ve=Er.getSymlinkedFiles())===null||ve===void 0?void 0:ve.has(ur))?!0:e.firstDefinedIterator(Nr.entries(),function(xr){var sr=xr[0],i=xr[1];if(!(!i||!e.startsWith(ur,sr))){var Mr=Ve(ur.replace(sr,i.realPath));if(Ne&&Mr){var fr=e.getNormalizedAbsolutePath(We,ne.compilerHost.getCurrentDirectory());Er.setSymlinkedFile(ur,"".concat(i.real).concat(fr.replace(new RegExp(sr,"i"),"")))}return Mr}})||!1:!1}}e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function Y(ne,J,le,Te){var Me=ne.getCompilerOptions();if(Me.noEmit)return ne.getSemanticDiagnostics(J,Te),J||e.outFile(Me)?e.emitSkippedWithNoDiagnostics:ne.emitBuildInfo(le,Te);if(!!Me.noEmitOnError){var Ke=Bt(Bt(Bt(Bt([],ne.getOptionsDiagnostics(Te),!0),ne.getSyntacticDiagnostics(J,Te),!0),ne.getGlobalDiagnostics(Te),!0),ne.getSemanticDiagnostics(J,Te),!0);if(Ke.length===0&&e.getEmitDeclarations(ne.getCompilerOptions())&&(Ke=ne.getDeclarationDiagnostics(void 0,Te)),!!Ke.length){var Ae;if(!J&&!e.outFile(Me)){var Ge=ne.emitBuildInfo(le,Te);Ge.diagnostics&&(Ke=Bt(Bt([],Ke,!0),Ge.diagnostics,!0)),Ae=Ge.emittedFiles}return{diagnostics:Ke,sourceMaps:void 0,emittedFiles:Ae,emitSkipped:!0}}}}e.handleNoEmitOptions=Y;function pe(ne,J){return e.filter(ne,function(le){return!le.skippedOn||!J[le.skippedOn]})}e.filterSemanticDiagnostics=pe;function A(ne,J){return J===void 0&&(J=ne),{fileExists:function(le){return J.fileExists(le)},readDirectory:function(le,Te,Me,Ke,Ae){return e.Debug.assertIsDefined(J.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),J.readDirectory(le,Te,Me,Ke,Ae)},readFile:function(le){return J.readFile(le)},useCaseSensitiveFileNames:ne.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return ne.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:ne.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:ne.trace?function(le){return ne.trace(le)}:void 0}}e.parseConfigHostFromCompilerHostLike=A;function _e(ne,J,le){if(!ne)return e.emptyArray;for(var Te,Me=0;Me<ne.length;Me++){var Ke=ne[Me],Ae=J(Ke,Me);if(Ke.prepend&&Ae&&Ae.options){var Ge=e.outFile(Ae.options);if(!Ge)continue;var se=e.getOutputPathsForBundle(Ae.options,!0),xe=se.jsFilePath,Re=se.sourceMapFilePath,ce=se.declarationFilePath,Ue=se.declarationMapPath,We=se.buildInfoPath,Ne=e.createInputFiles(le,xe,Re,ce,Ue,We);(Te||(Te=[])).push(Ne)}}return Te||e.emptyArray}e.createPrependNodes=_e;function Se(ne,J){var le=J||ne;return e.resolveConfigFileProjectName(le.path)}e.resolveProjectReferencePath=Se;function ae(ne,J){var le=J.extension;switch(le){case".ts":case".d.ts":return;case".tsx":return Te();case".jsx":return Te()||Me();case".js":return Me();case".json":return Ke()}function Te(){return ne.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function Me(){return e.getAllowJSCompilerOption(ne)||!e.getStrictOptionValue(ne,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function Ke(){return ne.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}}e.getResolutionDiagnostic=ae;function D(ne){for(var J=ne.imports,le=ne.moduleAugmentations,Te=J.map(function(Ge){return Ge.text}),Me=0,Ke=le;Me<Ke.length;Me++){var Ae=Ke[Me];Ae.kind===10&&Te.push(Ae.text)}return Te}function be(ne,J){var le=ne.imports,Te=ne.moduleAugmentations;if(J<le.length)return le[J];for(var Me=le.length,Ke=0,Ae=Te;Ke<Ae.length;Ke++){var Ge=Ae[Ke];if(Ge.kind===10){if(J===Me)return Ge;Me++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.getModuleNameStringLiteralAt=be})(mr||(mr={}));var mr;(function(e){function n(u,g,p,I,V,L){var m=[],y=u.emit(g,F,I,p,V,L),j=y.emitSkipped,te=y.diagnostics,E=y.exportedModulesFromDeclarationEmit;return{outputFiles:m,emitSkipped:j,diagnostics:te,exportedModulesFromDeclarationEmit:E};function F($,C,K){m.push({name:$,writeByteOrderMark:K,text:C})}}e.getFileEmitOutput=n;var c;(function(u){var g=0;function p(){function d(B,T,_){var h=0,R={id:g++,version:function(){return h},clone:function(){return d(new e.Map(B),new e.Map(T),_&&new e.Set(_))},forEach:function(b){return B.forEach(b)},getKeys:function(b){return T.get(b)},getValues:function(b){return B.get(b)},hasKey:function(b){return B.has(b)},keys:function(){return B.keys()},deletedKeys:function(){return _},deleteKey:function(b){(_||(_=new e.Set)).add(b);var G=B.get(b);return G?(G.forEach(function(Y){return V(T,Y,b)}),B.delete(b),h++,!0):!1},set:function(b,G){var Y=!!(_!=null&&_.delete(b)),pe=B.get(b);return B.set(b,G),pe==null||pe.forEach(function(A){G.has(A)||(Y=!0,V(T,A,b))}),G.forEach(function(A){pe!=null&&pe.has(A)||(Y=!0,I(T,A,b))}),Y&&h++,R}};return R}return d(new e.Map,new e.Map,void 0)}u.createManyToManyPathMap=p;function I(d,B,T){var _=d.get(B);_||(_=new e.Set,d.set(B,_)),_.add(T)}function V(d,B,T,_){_===void 0&&(_=!0);var h=d.get(B);return h!=null&&h.delete(T)?(_&&!h.size&&d.delete(B),!0):!1}function L(d){return e.mapDefined(d.declarations,function(B){var T;return(T=e.getSourceFileOfNode(B))===null||T===void 0?void 0:T.resolvedPath})}function m(d,B){var T=d.getSymbolAtLocation(B);return T&&L(T)}function y(d,B,T,_){return e.toPath(d.getProjectReferenceRedirect(B)||B,T,_)}function j(d,B,T){var _;if(B.imports&&B.imports.length>0)for(var h=d.getTypeChecker(),R=0,b=B.imports;R<b.length;R++){var G=b[R],Y=m(h,G);Y==null||Y.forEach(Ae)}var pe=e.getDirectoryPath(B.resolvedPath);if(B.referencedFiles&&B.referencedFiles.length>0)for(var A=0,_e=B.referencedFiles;A<_e.length;A++){var Se=_e[A],ae=y(d,Se.fileName,pe,T);Ae(ae)}if(B.resolvedTypeReferenceDirectiveNames&&B.resolvedTypeReferenceDirectiveNames.forEach(function(Ge){if(!!Ge){var se=Ge.resolvedFileName,xe=y(d,se,pe,T);Ae(xe)}}),B.moduleAugmentations.length)for(var h=d.getTypeChecker(),D=0,be=B.moduleAugmentations;D<be.length;D++){var ne=be[D];if(!!e.isStringLiteral(ne)){var J=h.getSymbolAtLocation(ne);!J||Ke(J)}}for(var le=0,Te=d.getTypeChecker().getAmbientModules();le<Te.length;le++){var Me=Te[le];Me.declarations&&Me.declarations.length>1&&Ke(Me)}return _;function Ke(Ge){if(!!Ge.declarations)for(var se=0,xe=Ge.declarations;se<xe.length;se++){var Re=xe[se],ce=e.getSourceFileOfNode(Re);ce&&ce!==B&&Ae(ce.resolvedPath)}}function Ae(Ge){(_||(_=new e.Set)).add(Ge)}}function te(d,B){return B&&!B.referencedMap==!d}u.canReuseOldState=te;function E(d,B,T,_){var h=new e.Map,R=d.getCompilerOptions().module!==e.ModuleKind.None?p():void 0,b=R?p():void 0,G=new e.Set,Y=te(R,T);d.getTypeChecker();for(var pe=0,A=d.getSourceFiles();pe<A.length;pe++){var _e=A[pe],Se=e.Debug.checkDefined(_e.version,"Program intended to be used with Builder should have source files with versions set"),ae=Y?T.fileInfos.get(_e.resolvedPath):void 0;if(R){var D=j(d,_e,B);if(D&&R.set(_e.resolvedPath,D),Y){var be=T.exportedModulesMap.getValues(_e.resolvedPath);be&&b.set(_e.resolvedPath,be)}}h.set(_e.resolvedPath,{version:Se,signature:ae&&ae.signature,affectsGlobalScope:M(_e)||void 0,impliedFormat:_e.impliedNodeFormat})}return{fileInfos:h,referencedMap:R,exportedModulesMap:b,hasCalledUpdateShapeSignature:G,useFileVersionAsSignature:!_&&!Y}}u.create=E;function F(d){d.allFilesExcludingDefaultLibraryFile=void 0,d.allFileNames=void 0}u.releaseCache=F;function $(d){var B,T;return{fileInfos:new e.Map(d.fileInfos),referencedMap:(B=d.referencedMap)===null||B===void 0?void 0:B.clone(),exportedModulesMap:(T=d.exportedModulesMap)===null||T===void 0?void 0:T.clone(),hasCalledUpdateShapeSignature:new e.Set(d.hasCalledUpdateShapeSignature),useFileVersionAsSignature:d.useFileVersionAsSignature}}u.clone=$;function C(d,B,T,_,h,R,b){var G=R||new e.Map,Y=B.getSourceFileByPath(T);if(!Y)return e.emptyArray;if(!X(d,B,Y,G,_,h,b))return[Y];var pe=(d.referencedMap?w:H)(d,B,Y,G,_,h,b);return R||K(d,G),pe}u.getFilesAffectedBy=C;function K(d,B){B.forEach(function(T,_){return k(d,T,_)})}u.updateSignaturesFromCache=K;function k(d,B,T){d.fileInfos.get(T).signature=B,d.hasCalledUpdateShapeSignature.add(T)}u.updateSignatureOfFile=k;function X(d,B,T,_,h,R,b,G){if(G===void 0&&(G=d.useFileVersionAsSignature),e.Debug.assert(!!T),e.Debug.assert(!b||!!d.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),d.hasCalledUpdateShapeSignature.has(T.resolvedPath)||_.has(T.resolvedPath))return!1;var Y=d.fileInfos.get(T.resolvedPath);if(!Y)return e.Debug.fail();var pe=Y.signature,A;if(!T.isDeclarationFile&&!G){var _e=n(B,T,!0,h,void 0,!0),Se=e.firstOrUndefined(_e.outputFiles);Se&&(e.Debug.assert(e.fileExtensionIsOneOf(Se.name,[".d.ts",".d.mts",".d.cts"]),"File extension for signature expected to be dts",function(){return"Found: ".concat(e.getAnyExtensionFromPath(Se.name)," for ").concat(Se.name,":: All output files: ").concat(JSON.stringify(_e.outputFiles.map(function(D){return D.name})))}),A=(R||e.generateDjb2Hash)(Se.text),b&&A!==pe&&O(T,_e.exportedModulesFromDeclarationEmit,b))}if(A===void 0&&(A=T.version,b&&A!==pe)){var ae=d.referencedMap?d.referencedMap.getValues(T.resolvedPath):void 0;ae?b.set(T.resolvedPath,ae):b.deleteKey(T.resolvedPath)}return _.set(T.resolvedPath,A),A!==pe}u.updateShapeSignature=X;function O(d,B,T){if(!B){T.deleteKey(d.resolvedPath);return}var _;B.forEach(function(R){return h(L(R))}),_?T.set(d.resolvedPath,_):T.deleteKey(d.resolvedPath);function h(R){R!=null&&R.length&&(_||(_=new e.Set),R.forEach(function(b){return _.add(b)}))}}function x(d,B){var T;if(B){e.Debug.assert(!!d.exportedModulesMap);var _=B.id,h=B.version();if(d.previousCache){if(d.previousCache.id===_&&d.previousCache.version===h)return;d.previousCache.id=_,d.previousCache.version=h}else d.previousCache={id:_,version:h};(T=B.deletedKeys())===null||T===void 0||T.forEach(function(R){return d.exportedModulesMap.deleteKey(R)}),B.forEach(function(R,b){return d.exportedModulesMap.set(b,R)})}}u.updateExportedFilesMapFromCache=x;function ie(d,B,T){var _=B.getCompilerOptions();if(e.outFile(_)||!d.referencedMap||M(T))return Z(d,B);for(var h=new e.Set,R=[T.resolvedPath];R.length;){var b=R.pop();if(!h.has(b)){h.add(b);var G=d.referencedMap.getValues(b);if(G)for(var Y=G.keys(),pe=Y.next();!pe.done;pe=Y.next())R.push(pe.value)}}return e.arrayFrom(e.mapDefinedIterator(h.keys(),function(A){var _e,Se;return(Se=(_e=B.getSourceFileByPath(A))===null||_e===void 0?void 0:_e.fileName)!==null&&Se!==void 0?Se:A}))}u.getAllDependencies=ie;function Z(d,B){if(!d.allFileNames){var T=B.getSourceFiles();d.allFileNames=T===e.emptyArray?e.emptyArray:T.map(function(_){return _.fileName})}return d.allFileNames}function re(d,B){var T=d.referencedMap.getKeys(B);return T?e.arrayFrom(T.keys()):[]}u.getReferencedByPaths=re;function q(d){for(var B=0,T=d.statements;B<T.length;B++){var _=T[B];if(!e.isModuleWithStringLiteralName(_))return!1}return!0}function P(d){return e.some(d.moduleAugmentations,function(B){return e.isGlobalScopeAugmentation(B.parent)})}function M(d){return P(d)||!e.isExternalOrCommonJsModule(d)&&!e.isJsonSourceFile(d)&&!q(d)}function Q(d,B,T){if(d.allFilesExcludingDefaultLibraryFile)return d.allFilesExcludingDefaultLibraryFile;var _;T&&G(T);for(var h=0,R=B.getSourceFiles();h<R.length;h++){var b=R[h];b!==T&&G(b)}return d.allFilesExcludingDefaultLibraryFile=_||e.emptyArray,d.allFilesExcludingDefaultLibraryFile;function G(Y){B.isSourceFileDefaultLibrary(Y)||(_||(_=[])).push(Y)}}u.getAllFilesExcludingDefaultLibraryFile=Q;function H(d,B,T){var _=B.getCompilerOptions();return _&&e.outFile(_)?[T]:Q(d,B,T)}function w(d,B,T,_,h,R,b){if(M(T))return Q(d,B,T);var G=B.getCompilerOptions();if(G&&(G.isolatedModules||e.outFile(G)))return[T];var Y=new e.Map;Y.set(T.resolvedPath,T);for(var pe=re(d,T.resolvedPath);pe.length>0;){var A=pe.pop();if(!Y.has(A)){var _e=B.getSourceFileByPath(A);Y.set(A,_e),_e&&X(d,B,_e,_,h,R,b)&&pe.push.apply(pe,re(d,_e.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(Y.values(),function(Se){return Se}))}})(c=e.BuilderState||(e.BuilderState={}))})(mr||(mr={}));var mr;(function(e){var n;(function(h){h[h.DtsOnly=0]="DtsOnly",h[h.Full=1]="Full"})(n=e.BuilderFileEmit||(e.BuilderFileEmit={}));function c(h,R){return h===R||h!==void 0&&R!==void 0&&h.size===R.size&&!e.forEachKey(h,function(b){return!R.has(b)})}function u(h,R,b,G){var Y=e.BuilderState.create(h,R,b,G);Y.program=h;var pe=h.getCompilerOptions();Y.compilerOptions=pe,e.outFile(pe)||(Y.semanticDiagnosticsPerFile=new e.Map),Y.changedFilesSet=new e.Set;var A=e.BuilderState.canReuseOldState(Y.referencedMap,b),_e=A?b.compilerOptions:void 0,Se=A&&b.semanticDiagnosticsPerFile&&!!Y.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(pe,_e);if(A){if(!b.currentChangedFilePath){var ae=b.currentAffectedFilesSignatures;e.Debug.assert(!b.affectedFiles&&(!ae||!ae.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var D=b.changedFilesSet;Se&&e.Debug.assert(!D||!e.forEachKey(D,function(Te){return b.semanticDiagnosticsPerFile.has(Te)}),"Semantic diagnostics shouldnt be available for changed files"),D==null||D.forEach(function(Te){return Y.changedFilesSet.add(Te)}),!e.outFile(pe)&&b.affectedFilesPendingEmit&&(Y.affectedFilesPendingEmit=b.affectedFilesPendingEmit.slice(),Y.affectedFilesPendingEmitKind=b.affectedFilesPendingEmitKind&&new e.Map(b.affectedFilesPendingEmitKind),Y.affectedFilesPendingEmitIndex=b.affectedFilesPendingEmitIndex,Y.seenAffectedFiles=new e.Set)}var be=Y.referencedMap,ne=A?b.referencedMap:void 0,J=Se&&!pe.skipLibCheck==!_e.skipLibCheck,le=J&&!pe.skipDefaultLibCheck==!_e.skipDefaultLibCheck;return Y.fileInfos.forEach(function(Te,Me){var Ke,Ae;if(!A||!(Ke=b.fileInfos.get(Me))||Ke.version!==Te.version||!c(Ae=be&&be.getValues(Me),ne&&ne.getValues(Me))||Ae&&e.forEachKey(Ae,function(xe){return!Y.fileInfos.has(xe)&&b.fileInfos.has(xe)}))Y.changedFilesSet.add(Me);else if(Se){var Ge=h.getSourceFileByPath(Me);if(Ge.isDeclarationFile&&!J||Ge.hasNoDefaultLib&&!le)return;var se=b.semanticDiagnosticsPerFile.get(Me);se&&(Y.semanticDiagnosticsPerFile.set(Me,b.hasReusableDiagnostic?g(se,h,R):se),Y.semanticDiagnosticsFromOldState||(Y.semanticDiagnosticsFromOldState=new e.Set),Y.semanticDiagnosticsFromOldState.add(Me))}}),A&&e.forEachEntry(b.fileInfos,function(Te,Me){return Te.affectsGlobalScope&&!Y.fileInfos.has(Me)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(Y,h,void 0).forEach(function(Te){return Y.changedFilesSet.add(Te.resolvedPath)}):_e&&!e.outFile(pe)&&e.compilerOptionsAffectEmit(pe,_e)&&(h.getSourceFiles().forEach(function(Te){return d(Y,Te.resolvedPath,1)}),e.Debug.assert(!Y.seenAffectedFiles||!Y.seenAffectedFiles.size),Y.seenAffectedFiles=Y.seenAffectedFiles||new e.Set),A&&e.forEachEntry(b.fileInfos,function(Te,Me){Y.fileInfos.has(Me)&&Y.fileInfos.get(Me).impliedFormat!==Te.impliedFormat&&Y.changedFilesSet.add(Me)}),Y.buildInfoEmitPending=!!Y.changedFilesSet.size,Y}function g(h,R,b){if(!h.length)return e.emptyArray;var G=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(R.getCompilerOptions()),R.getCurrentDirectory()));return h.map(function(pe){var A=p(pe,R,Y);A.reportsUnnecessary=pe.reportsUnnecessary,A.reportsDeprecated=pe.reportDeprecated,A.source=pe.source,A.skippedOn=pe.skippedOn;var _e=pe.relatedInformation;return A.relatedInformation=_e?_e.length?_e.map(function(Se){return p(Se,R,Y)}):[]:void 0,A});function Y(pe){return e.toPath(pe,G,b)}}function p(h,R,b){var G=h.file;return kn(kn({},h),{file:G?R.getSourceFileByPath(b(G)):void 0})}function I(h){e.BuilderState.releaseCache(h),h.program=void 0}function V(h){var R,b=e.BuilderState.clone(h);return b.semanticDiagnosticsPerFile=h.semanticDiagnosticsPerFile&&new e.Map(h.semanticDiagnosticsPerFile),b.changedFilesSet=new e.Set(h.changedFilesSet),b.affectedFiles=h.affectedFiles,b.affectedFilesIndex=h.affectedFilesIndex,b.currentChangedFilePath=h.currentChangedFilePath,b.currentAffectedFilesSignatures=h.currentAffectedFilesSignatures&&new e.Map(h.currentAffectedFilesSignatures),b.currentAffectedFilesExportedModulesMap=(R=h.currentAffectedFilesExportedModulesMap)===null||R===void 0?void 0:R.clone(),b.seenAffectedFiles=h.seenAffectedFiles&&new e.Set(h.seenAffectedFiles),b.cleanedDiagnosticsOfLibFiles=h.cleanedDiagnosticsOfLibFiles,b.semanticDiagnosticsFromOldState=h.semanticDiagnosticsFromOldState&&new e.Set(h.semanticDiagnosticsFromOldState),b.program=h.program,b.compilerOptions=h.compilerOptions,b.affectedFilesPendingEmit=h.affectedFilesPendingEmit&&h.affectedFilesPendingEmit.slice(),b.affectedFilesPendingEmitKind=h.affectedFilesPendingEmitKind&&new e.Map(h.affectedFilesPendingEmitKind),b.affectedFilesPendingEmitIndex=h.affectedFilesPendingEmitIndex,b.seenEmittedFiles=h.seenEmittedFiles&&new e.Map(h.seenEmittedFiles),b.programEmitComplete=h.programEmitComplete,b}function L(h,R){e.Debug.assert(!R||!h.affectedFiles||h.affectedFiles[h.affectedFilesIndex-1]!==R||!h.semanticDiagnosticsPerFile.has(R.resolvedPath))}function m(h,R,b){for(;;){var G=h.affectedFiles;if(G){for(var Y=h.seenAffectedFiles,pe=h.affectedFilesIndex;pe<G.length;){var A=G[pe];if(!Y.has(A.resolvedPath))return h.affectedFilesIndex=pe,j(h,A,R,b),A;pe++}h.changedFilesSet.delete(h.currentChangedFilePath),h.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(h,h.currentAffectedFilesSignatures),h.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(h,h.currentAffectedFilesExportedModulesMap),h.affectedFiles=void 0}var _e=h.changedFilesSet.keys().next();if(_e.done)return;var Se=e.Debug.checkDefined(h.program),ae=Se.getCompilerOptions();if(e.outFile(ae))return e.Debug.assert(!h.semanticDiagnosticsPerFile),Se;h.currentAffectedFilesSignatures||(h.currentAffectedFilesSignatures=new e.Map),h.exportedModulesMap&&(h.currentAffectedFilesExportedModulesMap||(h.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),h.affectedFiles=e.BuilderState.getFilesAffectedBy(h,Se,_e.value,R,b,h.currentAffectedFilesSignatures,h.currentAffectedFilesExportedModulesMap),h.currentChangedFilePath=_e.value,h.affectedFilesIndex=0,h.seenAffectedFiles||(h.seenAffectedFiles=new e.Set)}}function y(h){var R=h.affectedFilesPendingEmit;if(R){for(var b=h.seenEmittedFiles||(h.seenEmittedFiles=new e.Map),G=h.affectedFilesPendingEmitIndex;G<R.length;G++){var Y=e.Debug.checkDefined(h.program).getSourceFileByPath(R[G]);if(Y){var pe=b.get(Y.resolvedPath),A=e.Debug.checkDefined(e.Debug.checkDefined(h.affectedFilesPendingEmitKind).get(Y.resolvedPath));if(pe===void 0||pe<A)return h.affectedFilesPendingEmitIndex=G,{affectedFile:Y,emitKind:A}}}h.affectedFilesPendingEmit=void 0,h.affectedFilesPendingEmitKind=void 0,h.affectedFilesPendingEmitIndex=void 0}}function j(h,R,b,G){var Y;if(E(h,R.resolvedPath),h.allFilesExcludingDefaultLibraryFile===h.affectedFiles){if(!h.cleanedDiagnosticsOfLibFiles){h.cleanedDiagnosticsOfLibFiles=!0;var pe=e.Debug.checkDefined(h.program),A=pe.getCompilerOptions();e.forEach(pe.getSourceFiles(),function(_e){return pe.isSourceFileDefaultLibrary(_e)&&!e.skipTypeChecking(_e,A,pe)&&E(h,_e.resolvedPath)})}e.BuilderState.updateShapeSignature(h,e.Debug.checkDefined(h.program),R,e.Debug.checkDefined(h.currentAffectedFilesSignatures),b,G,h.currentAffectedFilesExportedModulesMap);return}else e.Debug.assert(h.hasCalledUpdateShapeSignature.has(R.resolvedPath)||((Y=h.currentAffectedFilesSignatures)===null||Y===void 0?void 0:Y.has(R.resolvedPath)),"Signature not updated for affected file: ".concat(R.fileName));h.compilerOptions.assumeChangesOnlyAffectDirectDependencies||$(h,R,function(_e,Se){return te(_e,Se,b,G)})}function te(h,R,b,G){if(E(h,R),!h.changedFilesSet.has(R)){var Y=e.Debug.checkDefined(h.program),pe=Y.getSourceFileByPath(R);pe&&(e.BuilderState.updateShapeSignature(h,Y,pe,e.Debug.checkDefined(h.currentAffectedFilesSignatures),b,G,h.currentAffectedFilesExportedModulesMap,!0),e.getEmitDeclarations(h.compilerOptions)&&d(h,R,0))}}function E(h,R){return h.semanticDiagnosticsFromOldState?(h.semanticDiagnosticsFromOldState.delete(R),h.semanticDiagnosticsPerFile.delete(R),!h.semanticDiagnosticsFromOldState.size):!0}function F(h,R){var b=e.Debug.checkDefined(h.currentAffectedFilesSignatures).get(R),G=e.Debug.checkDefined(h.fileInfos.get(R)).signature;return b!==G}function $(h,R,b){var G,Y;if(!(!h.exportedModulesMap||!h.changedFilesSet.has(R.resolvedPath))&&!!F(h,R.resolvedPath)){if(h.compilerOptions.isolatedModules){var pe=new e.Map;pe.set(R.resolvedPath,!0);for(var A=e.BuilderState.getReferencedByPaths(h,R.resolvedPath);A.length>0;){var _e=A.pop();if(!pe.has(_e)&&(pe.set(_e,!0),b(h,_e),F(h,_e))){var Se=e.Debug.checkDefined(h.program).getSourceFileByPath(_e);A.push.apply(A,e.BuilderState.getReferencedByPaths(h,Se.resolvedPath))}}}e.Debug.assert(!!h.currentAffectedFilesExportedModulesMap);var ae=new e.Set;(G=h.currentAffectedFilesExportedModulesMap.getKeys(R.resolvedPath))===null||G===void 0||G.forEach(function(D){return C(h,D,ae,b)}),(Y=h.exportedModulesMap.getKeys(R.resolvedPath))===null||Y===void 0||Y.forEach(function(D){var be;return!h.currentAffectedFilesExportedModulesMap.hasKey(D)&&!(!((be=h.currentAffectedFilesExportedModulesMap.deletedKeys())===null||be===void 0)&&be.has(D))&&C(h,D,ae,b)})}}function C(h,R,b,G){var Y;(Y=h.referencedMap.getKeys(R))===null||Y===void 0||Y.forEach(function(pe){return K(h,pe,b,G)})}function K(h,R,b,G){var Y,pe,A;!e.tryAddToSet(b,R)||(G(h,R),e.Debug.assert(!!h.currentAffectedFilesExportedModulesMap),(Y=h.currentAffectedFilesExportedModulesMap.getKeys(R))===null||Y===void 0||Y.forEach(function(_e){return K(h,_e,b,G)}),(pe=h.exportedModulesMap.getKeys(R))===null||pe===void 0||pe.forEach(function(_e){var Se;return!h.currentAffectedFilesExportedModulesMap.hasKey(_e)&&!(!((Se=h.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Se===void 0)&&Se.has(_e))&&K(h,_e,b,G)}),(A=h.referencedMap.getKeys(R))===null||A===void 0||A.forEach(function(_e){return!b.has(_e)&&G(h,_e)}))}function k(h,R,b,G,Y){Y?h.buildInfoEmitPending=!1:R===h.program?(h.changedFilesSet.clear(),h.programEmitComplete=!0):(h.seenAffectedFiles.add(R.resolvedPath),b!==void 0&&(h.seenEmittedFiles||(h.seenEmittedFiles=new e.Map)).set(R.resolvedPath,b),G?(h.affectedFilesPendingEmitIndex++,h.buildInfoEmitPending=!0):h.affectedFilesIndex++)}function X(h,R,b){return k(h,b),{result:R,affected:b}}function O(h,R,b,G,Y,pe){return k(h,b,G,Y,pe),{result:R,affected:b}}function x(h,R,b){return e.concatenate(ie(h,R,b),e.Debug.checkDefined(h.program).getProgramDiagnostics(R))}function ie(h,R,b){var G=R.resolvedPath;if(h.semanticDiagnosticsPerFile){var Y=h.semanticDiagnosticsPerFile.get(G);if(Y)return e.filterSemanticDiagnostics(Y,h.compilerOptions)}var pe=e.Debug.checkDefined(h.program).getBindAndCheckDiagnostics(R,b);return h.semanticDiagnosticsPerFile&&h.semanticDiagnosticsPerFile.set(G,pe),e.filterSemanticDiagnostics(pe,h.compilerOptions)}function Z(h,R){if(e.outFile(h.compilerOptions))return;var b=e.Debug.checkDefined(h.program).getCurrentDirectory(),G=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(h.compilerOptions),b)),Y=[],pe=new e.Map,A,_e,Se=e.arrayFrom(h.fileInfos.entries(),function(We){var Ne=We[0],ve=We[1],Ve=ce(Ne);e.Debug.assert(Y[Ve-1]===Re(Ne));var gr=h.currentAffectedFilesSignatures&&h.currentAffectedFilesSignatures.get(Ne),Er=gr!=null?gr:ve.signature;return ve.version===Er?ve.affectsGlobalScope?{version:ve.version,signature:void 0,affectsGlobalScope:!0,impliedFormat:ve.impliedFormat}:ve.version:Er!==void 0?gr===void 0?ve:{version:ve.version,signature:gr,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}:{version:ve.version,signature:!1,affectsGlobalScope:ve.affectsGlobalScope,impliedFormat:ve.impliedFormat}}),ae;h.referencedMap&&(ae=e.arrayFrom(h.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(We){return[ce(We),Ue(h.referencedMap.getValues(We))]}));var D;h.exportedModulesMap&&(D=e.mapDefined(e.arrayFrom(h.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(We){var Ne;if(h.currentAffectedFilesExportedModulesMap){if(!((Ne=h.currentAffectedFilesExportedModulesMap.deletedKeys())===null||Ne===void 0)&&Ne.has(We))return;var ve=h.currentAffectedFilesExportedModulesMap.getValues(We);if(ve)return[ce(We),Ue(ve)]}return[ce(We),Ue(h.exportedModulesMap.getValues(We))]}));var be;if(h.semanticDiagnosticsPerFile)for(var ne=0,J=e.arrayFrom(h.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);ne<J.length;ne++){var le=J[ne],Te=h.semanticDiagnosticsPerFile.get(le);(be||(be=[])).push(Te.length?[ce(le),h.hasReusableDiagnostic?Te:P(Te,Re)]:ce(le))}var Me;if(h.affectedFilesPendingEmit)for(var Ke=new e.Set,Ae=0,Ge=h.affectedFilesPendingEmit.slice(h.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);Ae<Ge.length;Ae++){var se=Ge[Ae];e.tryAddToSet(Ke,se)&&(Me||(Me=[])).push([ce(se),h.affectedFilesPendingEmitKind.get(se)])}return{fileNames:Y,fileInfos:Se,options:re(h.compilerOptions,xe),fileIdsList:A,referencedMap:ae,exportedModulesMap:D,semanticDiagnosticsPerFile:be,affectedFilesPendingEmit:Me};function xe(We){return Re(e.getNormalizedAbsolutePath(We,b))}function Re(We){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(G,We,R))}function ce(We){var Ne=pe.get(We);return Ne===void 0&&(Y.push(Re(We)),pe.set(We,Ne=Y.length)),Ne}function Ue(We){var Ne=e.arrayFrom(We.keys(),ce).sort(e.compareValues),ve=Ne.join(),Ve=_e==null?void 0:_e.get(ve);return Ve===void 0&&((A||(A=[])).push(Ne),(_e||(_e=new e.Map)).set(ve,Ve=A.length)),Ve}}function re(h,R){for(var b,G=e.getOptionsNameMap().optionsNameMap,Y=0,pe=e.getOwnKeys(h).sort(e.compareStringsCaseSensitive);Y<pe.length;Y++){var A=pe[Y],_e=A.toLowerCase(),Se=G.get(_e);((Se==null?void 0:Se.affectsEmit)||(Se==null?void 0:Se.affectsSemanticDiagnostics)||_e==="strict"||_e==="skiplibcheck"||_e==="skipdefaultlibcheck")&&((b||(b={}))[A]=q(Se,h[A],R))}return b}function q(h,R,b){if(h){if(h.type==="list"){var G=R;if(h.element.isFilePath&&G.length)return G.map(b)}else if(h.isFilePath)return b(R)}return R}function P(h,R){return e.Debug.assert(!!h.length),h.map(function(b){var G=M(b,R);G.reportsUnnecessary=b.reportsUnnecessary,G.reportDeprecated=b.reportsDeprecated,G.source=b.source,G.skippedOn=b.skippedOn;var Y=b.relatedInformation;return G.relatedInformation=Y?Y.length?Y.map(function(pe){return M(pe,R)}):[]:void 0,G})}function M(h,R){var b=h.file;return kn(kn({},h),{file:b?R(b.resolvedPath):void 0})}var Q;(function(h){h[h.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",h[h.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"})(Q=e.BuilderProgramKind||(e.BuilderProgramKind={}));function H(h,R,b,G,Y,pe){var A,_e,Se;return h===void 0?(e.Debug.assert(R===void 0),A=b,Se=G,e.Debug.assert(!!Se),_e=Se.getProgram()):e.isArray(h)?(Se=G,_e=e.createProgram({rootNames:h,options:R,host:b,oldProgram:Se&&Se.getProgramOrUndefined(),configFileParsingDiagnostics:Y,projectReferences:pe}),A=b):(_e=h,A=R,Se=b,Y=G),{host:A,newProgram:_e,oldProgram:Se,configFileParsingDiagnostics:Y||e.emptyArray}}e.getBuilderCreationParameters=H;function w(h,R){var b=R.newProgram,G=R.host,Y=R.oldProgram,pe=R.configFileParsingDiagnostics,A=Y&&Y.getState();if(A&&b===A.program&&pe===b.getConfigFileParsingDiagnostics())return b=void 0,A=void 0,Y;var _e=e.createGetCanonicalFileName(G.useCaseSensitiveFileNames()),Se=e.maybeBind(G,G.createHash),ae=u(b,_e,A,G.disableUseFileVersionAsSignature),D;b.getProgramBuildInfo=function(){return Z(ae,_e)},b=void 0,Y=void 0,A=void 0;var be=function(){return ae},ne=_(be,pe);return ne.getState=be,ne.backupState=function(){e.Debug.assert(D===void 0),D=V(ae)},ne.restoreState=function(){ae=e.Debug.checkDefined(D),D=void 0},ne.getAllDependencies=function(Ae){return e.BuilderState.getAllDependencies(ae,e.Debug.checkDefined(ae.program),Ae)},ne.getSemanticDiagnostics=Ke,ne.emit=Te,ne.releaseProgram=function(){I(ae),D=void 0},h===Q.SemanticDiagnosticsBuilderProgram?ne.getSemanticDiagnosticsOfNextAffectedFile=Me:h===Q.EmitAndSemanticDiagnosticsBuilderProgram?(ne.getSemanticDiagnosticsOfNextAffectedFile=Me,ne.emitNextAffectedFile=le,ne.emitBuildInfo=J):e.notImplemented(),ne;function J(Ae,Ge){if(ae.buildInfoEmitPending){var se=e.Debug.checkDefined(ae.program).emitBuildInfo(Ae||e.maybeBind(G,G.writeFile),Ge);return ae.buildInfoEmitPending=!1,se}return e.emitSkippedWithNoDiagnostics}function le(Ae,Ge,se,xe){var Re=m(ae,Ge,Se),ce=1,Ue=!1;if(!Re)if(e.outFile(ae.compilerOptions)){var ve=e.Debug.checkDefined(ae.program);if(ae.programEmitComplete)return;Re=ve}else{var We=y(ae);if(!We){if(!ae.buildInfoEmitPending)return;var Ne=e.Debug.checkDefined(ae.program);return O(ae,Ne.emitBuildInfo(Ae||e.maybeBind(G,G.writeFile),Ge),Ne,1,!1,!0)}Re=We.affectedFile,ce=We.emitKind,Ue=!0}return O(ae,e.Debug.checkDefined(ae.program).emit(Re===ae.program?void 0:Re,Ae||e.maybeBind(G,G.writeFile),Ge,se||ce===0,xe),Re,ce,Ue)}function Te(Ae,Ge,se,xe,Re){var ce=!1,Ue,We,Ne;h!==Q.EmitAndSemanticDiagnosticsBuilderProgram&&!Ae&&!e.outFile(ae.compilerOptions)&&!ae.compilerOptions.noEmit&&ae.compilerOptions.noEmitOnError&&(ce=!0,Ue=ae.affectedFilesPendingEmit&&ae.affectedFilesPendingEmit.slice(),We=ae.affectedFilesPendingEmitKind&&new e.Map(ae.affectedFilesPendingEmitKind),Ne=ae.affectedFilesPendingEmitIndex),h===Q.EmitAndSemanticDiagnosticsBuilderProgram&&L(ae,Ae);var ve=e.handleNoEmitOptions(ne,Ae,Ge,se);if(ve)return ve;if(ce&&(ae.affectedFilesPendingEmit=Ue,ae.affectedFilesPendingEmitKind=We,ae.affectedFilesPendingEmitIndex=Ne),!Ae&&h===Q.EmitAndSemanticDiagnosticsBuilderProgram){for(var Ve=[],gr=!1,Er=void 0,Nr=[],ur=void 0;ur=le(Ge,se,xe,Re);)gr=gr||ur.result.emitSkipped,Er=e.addRange(Er,ur.result.diagnostics),Nr=e.addRange(Nr,ur.result.emittedFiles),Ve=e.addRange(Ve,ur.result.sourceMaps);return{emitSkipped:gr,diagnostics:Er||e.emptyArray,emittedFiles:Nr,sourceMaps:Ve}}return e.Debug.checkDefined(ae.program).emit(Ae,Ge||e.maybeBind(G,G.writeFile),se,xe,Re)}function Me(Ae,Ge){for(;;){var se=m(ae,Ae,Se);if(se){if(se===ae.program)return X(ae,ae.program.getSemanticDiagnostics(void 0,Ae),se)}else return;if((h===Q.EmitAndSemanticDiagnosticsBuilderProgram||ae.compilerOptions.noEmit||ae.compilerOptions.noEmitOnError)&&d(ae,se.resolvedPath,1),Ge&&Ge(se)){k(ae,se);continue}return X(ae,x(ae,se,Ae),se)}}function Ke(Ae,Ge){L(ae,Ae);var se=e.Debug.checkDefined(ae.program).getCompilerOptions();if(e.outFile(se))return e.Debug.assert(!ae.semanticDiagnosticsPerFile),e.Debug.checkDefined(ae.program).getSemanticDiagnostics(Ae,Ge);if(Ae)return x(ae,Ae,Ge);for(;Me(Ge););for(var xe,Re=0,ce=e.Debug.checkDefined(ae.program).getSourceFiles();Re<ce.length;Re++){var Ue=ce[Re];xe=e.addRange(xe,x(ae,Ue,Ge))}return xe||e.emptyArray}}e.createBuilderProgram=w;function d(h,R,b){h.affectedFilesPendingEmit||(h.affectedFilesPendingEmit=[]),h.affectedFilesPendingEmitKind||(h.affectedFilesPendingEmitKind=new e.Map);var G=h.affectedFilesPendingEmitKind.get(R);h.affectedFilesPendingEmit.push(R),h.affectedFilesPendingEmitKind.set(R,G||b),h.affectedFilesPendingEmitIndex===void 0&&(h.affectedFilesPendingEmitIndex=0)}function B(h){return e.isString(h)?{version:h,signature:h,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(h.signature)?h:{version:h.version,signature:h.signature===!1?void 0:h.version,affectsGlobalScope:h.affectsGlobalScope,impliedFormat:h.impliedFormat}}e.toBuilderStateFileInfo=B;function T(h,R,b){var G,Y=e.getDirectoryPath(e.getNormalizedAbsolutePath(R,b.getCurrentDirectory())),pe=e.createGetCanonicalFileName(b.useCaseSensitiveFileNames()),A=h.fileNames.map(D),_e=(G=h.fileIdsList)===null||G===void 0?void 0:G.map(function(Te){return new e.Set(Te.map(ne))}),Se=new e.Map;h.fileInfos.forEach(function(Te,Me){return Se.set(ne(Me+1),B(Te))});var ae={fileInfos:Se,compilerOptions:h.options?e.convertToOptionsWithAbsolutePaths(h.options,be):{},referencedMap:le(h.referencedMap),exportedModulesMap:le(h.exportedModulesMap),semanticDiagnosticsPerFile:h.semanticDiagnosticsPerFile&&e.arrayToMap(h.semanticDiagnosticsPerFile,function(Te){return ne(e.isNumber(Te)?Te:Te[0])},function(Te){return e.isNumber(Te)?e.emptyArray:Te[1]}),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(h.affectedFilesPendingEmit,function(Te){return ne(Te[0])}),affectedFilesPendingEmitKind:h.affectedFilesPendingEmit&&e.arrayToMap(h.affectedFilesPendingEmit,function(Te){return ne(Te[0])},function(Te){return Te[1]}),affectedFilesPendingEmitIndex:h.affectedFilesPendingEmit&&0};return{getState:function(){return ae},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return ae.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function D(Te){return e.toPath(Te,Y,pe)}function be(Te){return e.getNormalizedAbsolutePath(Te,Y)}function ne(Te){return A[Te-1]}function J(Te){return _e[Te-1]}function le(Te){if(!!Te){var Me=e.BuilderState.createManyToManyPathMap();return Te.forEach(function(Ke){var Ae=Ke[0],Ge=Ke[1];return Me.set(ne(Ae),J(Ge))}),Me}}}e.createBuildProgramUsingProgramBuildInfo=T;function _(h,R){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:b,getProgramOrUndefined:function(){return h().program},releaseProgram:function(){return h().program=void 0},getCompilerOptions:function(){return h().compilerOptions},getSourceFile:function(G){return b().getSourceFile(G)},getSourceFiles:function(){return b().getSourceFiles()},getOptionsDiagnostics:function(G){return b().getOptionsDiagnostics(G)},getGlobalDiagnostics:function(G){return b().getGlobalDiagnostics(G)},getConfigFileParsingDiagnostics:function(){return R},getSyntacticDiagnostics:function(G,Y){return b().getSyntacticDiagnostics(G,Y)},getDeclarationDiagnostics:function(G,Y){return b().getDeclarationDiagnostics(G,Y)},getSemanticDiagnostics:function(G,Y){return b().getSemanticDiagnostics(G,Y)},emit:function(G,Y,pe,A,_e){return b().emit(G,Y,pe,A,_e)},emitBuildInfo:function(G,Y){return b().emitBuildInfo(G,Y)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return b().getCurrentDirectory()},close:e.noop};function b(){return e.Debug.checkDefined(h().program)}}e.createRedirectedBuilderProgram=_})(mr||(mr={}));var mr;(function(e){function n(g,p,I,V,L,m){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(g,p,I,V,L,m))}e.createSemanticDiagnosticsBuilderProgram=n;function c(g,p,I,V,L,m){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(g,p,I,V,L,m))}e.createEmitAndSemanticDiagnosticsBuilderProgram=c;function u(g,p,I,V,L,m){var y=e.getBuilderCreationParameters(g,p,I,V,L,m),j=y.newProgram,te=y.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram(function(){return{program:j,compilerOptions:j.getCompilerOptions()}},te)}e.createAbstractBuilder=u})(mr||(mr={}));var mr;(function(e){function n(p){return e.endsWith(p,"/node_modules/.staging")?e.removeSuffix(p,"/.staging"):e.some(e.ignoredPaths,function(I){return e.stringContains(p,I)})?void 0:p}e.removeIgnoredPath=n;function c(p){var I=e.getRootLength(p);if(p.length===I)return!1;var V=p.indexOf(e.directorySeparator,I);if(V===-1)return!1;var L=p.substring(I,V+1),m=I>1||p.charCodeAt(0)!==47;if(m&&p.search(/[a-zA-Z]:/)!==0&&L.search(/[a-zA-z]\$\//)===0){if(V=p.indexOf(e.directorySeparator,V+1),V===-1)return!1;L=p.substring(I+L.length,V+1)}if(m&&L.search(/users\//i)!==0)return!0;for(var y=V+1,j=2;j>0;j--)if(y=p.indexOf(e.directorySeparator,y)+1,y===0)return!1;return!0}e.canWatchDirectory=c;function u(p,I,V){var L,m,y,j=e.createMultiMap(),te=[],E=e.createMultiMap(),F=!1,$,C,K,k=e.memoize(function(){return p.getCurrentDirectory()}),X=p.getCachedDirectoryStructureHost(),O=new e.Map,x=e.createCacheWithRedirects(),ie=e.createCacheWithRedirects(),Z=e.createModuleResolutionCache(k(),p.getCanonicalFileName,void 0,x,ie),re=new e.Map,q=e.createCacheWithRedirects(),P=e.createTypeReferenceDirectiveResolutionCache(k(),p.getCanonicalFileName,void 0,Z.getPackageJsonInfoCache(),q),M=[".ts",".tsx",".js",".jsx",".json"],Q=new e.Map,H=new e.Map,w=I&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(I,k())),d=w&&p.toPath(w),B=d!==void 0?d.split(e.directorySeparator).length:0,T=new e.Map;return{getModuleResolutionCache:function(){return Z},startRecordingFilesWithChangedResolutions:G,finishRecordingFilesWithChangedResolutions:Y,startCachingPerDirectoryResolution:_e,finishCachingPerDirectoryResolution:Se,resolveModuleNames:J,getResolvedModuleWithFailedLookupLocationsFromCache:le,resolveTypeReferenceDirectives:ne,removeResolutionsFromProjectReferenceRedirects:ve,removeResolutionsOfFile:Ve,hasChangedAutomaticTypeDirectiveNames:function(){return F},invalidateResolutionOfFile:Er,invalidateResolutionsOfFailedLookupLocations:xr,setFilesWithInvalidatedNonRelativeUnresolvedImports:Nr,createHasInvalidatedResolution:A,isFileWithInvalidatedNonRelativeUnresolvedImports:pe,updateTypeRootsWatch:Ar,closeTypeRootsWatch:i,clear:b};function _(we){return we.resolvedModule}function h(we){return we.resolvedTypeReferenceDirective}function R(we,qe){return we===void 0||qe.length<=we.length?!1:e.startsWith(qe,we)&&qe[we.length]===e.directorySeparator}function b(){e.clearMap(H,e.closeFileWatcherOf),Q.clear(),j.clear(),i(),O.clear(),re.clear(),E.clear(),te.length=0,$=void 0,C=void 0,K=void 0,_e(),F=!1}function G(){L=[]}function Y(){var we=L;return L=void 0,we}function pe(we){if(!y)return!1;var qe=y.get(we);return!!qe&&!!qe.length}function A(we){if(xr(),we)return m=void 0,e.returnTrue;var qe=m;return m=void 0,function(Cr){return!!qe&&qe.has(Cr)||pe(Cr)}}function _e(){Z.clear(),P.clear(),j.forEach(xe),j.clear()}function Se(){y=void 0,_e(),H.forEach(function(we,qe){we.refCount===0&&(H.delete(qe),we.watcher.close())}),F=!1}function ae(we,qe,Cr,kr,He){var lr,Hr=e.resolveModuleName(we,qe,Cr,kr,Z,He);if(!p.getGlobalCache)return Hr;var Je=p.getGlobalCache();if(Je!==void 0&&!e.isExternalModuleNameRelative(we)&&!(Hr.resolvedModule&&e.extensionIsTS(Hr.resolvedModule.extension))){var Sr=e.loadModuleFromGlobalCache(e.Debug.checkDefined(p.globalCacheResolutionModuleName)(we),p.projectName,Cr,kr,Je,Z),Yr=Sr.resolvedModule,ot=Sr.failedLookupLocations;if(Yr)return Hr.resolvedModule=Yr,(lr=Hr.failedLookupLocations).push.apply(lr,ot),Hr}return Hr}function D(we,qe,Cr,kr,He){return e.resolveTypeReferenceDirective(we,qe,Cr,kr,He,P)}function be(we){var qe,Cr,kr,He=we.names,lr=we.containingFile,Hr=we.redirectedReference,Je=we.cache,Sr=we.perDirectoryCacheWithRedirects,Yr=we.loader,ot=we.getResolutionWithResolvedFileName,_t=we.shouldRetryResolution,kt=we.reusedNames,Yt=we.logChanges,vn=we.containingSourceFile,Mn=p.toPath(lr),qn=Je.get(Mn)||Je.set(Mn,e.createModeAwareCache()).get(Mn),nr=e.getDirectoryPath(Mn),Zr=Sr.getOrCreateMapOfCacheRedirects(Hr),ir=Zr.get(nr);ir||(ir=e.createModeAwareCache(),Zr.set(nr,ir));for(var ge=[],rr=p.getCompilationSettings(),pr=Yt&&pe(Mn),Lr=p.getCurrentProgram(),Ce=Lr&&Lr.getResolvedProjectReferenceToRedirect(lr),cr=Ce?!Hr||Hr.sourceFile.path!==Ce.sourceFile.path:!!Hr,$e=e.createModeAwareCache(),De=0,z=0,ke=He;z<ke.length;z++){var dr=ke[z],Xe=vn?e.getModeForResolutionAtIndex(vn,De):void 0;De++;var Qe=qn.get(dr,Xe);if(!$e.has(dr,Xe)&&cr||!Qe||Qe.isInvalidated||pr&&!e.isExternalModuleNameRelative(dr)&&_t(Qe)){var Ir=Qe,Jr=ir.get(dr,Xe);if(Jr){Qe=Jr;var Or=((qe=p.getCompilerHost)===null||qe===void 0?void 0:qe.call(p))||p;if(e.isTraceEnabled(rr,Or)){var Be=ot(Qe);e.trace(Or,Yr===ae?Be!=null&&Be.resolvedFileName?Be.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:Be!=null&&Be.resolvedFileName?Be.packagetId?e.Diagnostics.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:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,dr,lr,e.getDirectoryPath(lr),Be==null?void 0:Be.resolvedFileName,(Be==null?void 0:Be.packagetId)&&e.packageIdToString(Be.packagetId))}}else Qe=Yr(dr,lr,rr,((Cr=p.getCompilerHost)===null||Cr===void 0?void 0:Cr.call(p))||p,Hr,vn),ir.set(dr,Xe,Qe),p.onDiscoveredSymlink&&g(Qe)&&p.onDiscoveredSymlink();qn.set(dr,Xe,Qe),Ge(dr,Qe,Mn,ot),Ir&&ce(Ir,Mn,ot),Yt&&L&&!yr(Ir,Qe)&&(L.push(Mn),Yt=!1)}else{var Or=((kr=p.getCompilerHost)===null||kr===void 0?void 0:kr.call(p))||p;if(e.isTraceEnabled(rr,Or)&&!$e.has(dr,Xe)){var Be=ot(Qe);e.trace(Or,Yr===ae?Be!=null&&Be.resolvedFileName?Be.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Be!=null&&Be.resolvedFileName?Be.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,dr,lr,Be==null?void 0:Be.resolvedFileName,(Be==null?void 0:Be.packagetId)&&e.packageIdToString(Be.packagetId))}}e.Debug.assert(Qe!==void 0&&!Qe.isInvalidated),$e.set(dr,Xe,!0),ge.push(ot(Qe))}return qn.forEach(function(Rr,zr,ut){!$e.has(zr,ut)&&!e.contains(kt,zr)&&(ce(Rr,Mn,ot),qn.delete(zr,ut))}),ge;function yr(Rr,zr){if(Rr===zr)return!0;if(!Rr||!zr)return!1;var ut=ot(Rr),mt=ot(zr);return ut===mt?!0:!ut||!mt?!1:ut.resolvedFileName===mt.resolvedFileName}}function ne(we,qe,Cr){return be({names:we,containingFile:qe,redirectedReference:Cr,cache:re,perDirectoryCacheWithRedirects:q,loader:D,getResolutionWithResolvedFileName:h,shouldRetryResolution:function(kr){return kr.resolvedTypeReferenceDirective===void 0}})}function J(we,qe,Cr,kr,He){return be({names:we,containingFile:qe,redirectedReference:kr,cache:O,perDirectoryCacheWithRedirects:x,loader:ae,getResolutionWithResolvedFileName:_,shouldRetryResolution:function(lr){return!lr.resolvedModule||!e.resolutionExtensionIsTSOrJson(lr.resolvedModule.extension)},reusedNames:Cr,logChanges:V,containingSourceFile:He})}function le(we,qe,Cr){var kr=O.get(p.toPath(qe));if(!!kr)return kr.get(we,Cr)}function Te(we){return e.endsWith(we,"/node_modules/@types")}function Me(we,qe){if(R(d,qe)){we=e.isRootedDiskPath(we)?e.normalizePath(we):e.getNormalizedAbsolutePath(we,k());var Cr=qe.split(e.directorySeparator),kr=we.split(e.directorySeparator);return e.Debug.assert(kr.length===Cr.length,"FailedLookup: ".concat(we," failedLookupLocationPath: ").concat(qe)),Cr.length>B+1?{dir:kr.slice(0,B+1).join(e.directorySeparator),dirPath:Cr.slice(0,B+1).join(e.directorySeparator)}:{dir:w,dirPath:d,nonRecursive:!1}}return Ke(e.getDirectoryPath(e.getNormalizedAbsolutePath(we,k())),e.getDirectoryPath(qe))}function Ke(we,qe){for(;e.pathContainsNodeModules(qe);)we=e.getDirectoryPath(we),qe=e.getDirectoryPath(qe);if(e.isNodeModulesDirectory(qe))return c(e.getDirectoryPath(qe))?{dir:we,dirPath:qe}:void 0;var Cr=!0,kr,He;if(d!==void 0)for(;!R(qe,d);){var lr=e.getDirectoryPath(qe);if(lr===qe)break;Cr=!1,kr=qe,He=we,qe=lr,we=e.getDirectoryPath(we)}return c(qe)?{dir:He||we,dirPath:kr||qe,nonRecursive:Cr}:void 0}function Ae(we){return e.fileExtensionIsOneOf(we,M)}function Ge(we,qe,Cr,kr){if(qe.refCount)qe.refCount++,e.Debug.assertDefined(qe.files);else{qe.refCount=1,e.Debug.assert(e.length(qe.files)===0),e.isExternalModuleNameRelative(we)?se(qe):j.add(we,qe);var He=kr(qe);He&&He.resolvedFileName&&E.add(p.toPath(He.resolvedFileName),qe)}(qe.files||(qe.files=[])).push(Cr)}function se(we){e.Debug.assert(!!we.refCount);var qe=we.failedLookupLocations;if(!!qe.length){te.push(we);for(var Cr=!1,kr=0,He=qe;kr<He.length;kr++){var lr=He[kr],Hr=p.toPath(lr),Je=Me(lr,Hr);if(Je){var Sr=Je.dir,Yr=Je.dirPath,ot=Je.nonRecursive;if(!Ae(Hr)){var _t=Q.get(Hr)||0;Q.set(Hr,_t+1)}Yr===d?(e.Debug.assert(!ot),Cr=!0):Re(Sr,Yr,ot)}}Cr&&Re(w,d,!0)}}function xe(we,qe){var Cr=p.getCurrentProgram();(!Cr||!Cr.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(qe))&&we.forEach(se)}function Re(we,qe,Cr){var kr=H.get(qe);kr?(e.Debug.assert(!!Cr==!!kr.nonRecursive),kr.refCount++):H.set(qe,{watcher:We(we,qe,Cr),refCount:1,nonRecursive:Cr})}function ce(we,qe,Cr){if(e.unorderedRemoveItem(e.Debug.assertDefined(we.files),qe),we.refCount--,!we.refCount){var kr=Cr(we);if(kr&&kr.resolvedFileName&&E.remove(p.toPath(kr.resolvedFileName),we),!!e.unorderedRemoveItem(te,we)){for(var He=we.failedLookupLocations,lr=!1,Hr=0,Je=He;Hr<Je.length;Hr++){var Sr=Je[Hr],Yr=p.toPath(Sr),ot=Me(Sr,Yr);if(ot){var _t=ot.dirPath,kt=Q.get(Yr);kt&&(kt===1?Q.delete(Yr):(e.Debug.assert(kt>1),Q.set(Yr,kt-1))),_t===d?lr=!0:Ue(_t)}}lr&&Ue(d)}}}function Ue(we){var qe=H.get(we);qe.refCount--}function We(we,qe,Cr){return p.watchDirectoryOfFailedLookupLocation(we,function(kr){var He=p.toPath(kr);X&&X.addOrDeleteFileOrDirectory(kr,He),ur(He,qe===He)},Cr?0:1)}function Ne(we,qe,Cr){var kr=we.get(qe);kr&&(kr.forEach(function(He){return ce(He,qe,Cr)}),we.delete(qe))}function ve(we){if(!!e.fileExtensionIs(we,".json")){var qe=p.getCurrentProgram();if(!!qe){var Cr=qe.getResolvedProjectReferenceByPath(we);!Cr||Cr.commandLine.fileNames.forEach(function(kr){return Ve(p.toPath(kr))})}}}function Ve(we){Ne(O,we,_),Ne(re,we,h)}function gr(we,qe){if(!we)return!1;for(var Cr=!1,kr=0,He=we;kr<He.length;kr++){var lr=He[kr];if(!(lr.isInvalidated||!qe(lr))){lr.isInvalidated=Cr=!0;for(var Hr=0,Je=e.Debug.assertDefined(lr.files);Hr<Je.length;Hr++){var Sr=Je[Hr];(m||(m=new e.Set)).add(Sr),F=F||e.endsWith(Sr,e.inferredTypesContainingFile)}}}return Cr}function Er(we){Ve(we);var qe=F;gr(E.get(we),e.returnTrue)&&F&&!qe&&p.onChangedAutomaticTypeDirectiveNames()}function Nr(we){e.Debug.assert(y===we||y===void 0),y=we}function ur(we,qe){if(qe)(K||(K=[])).push(we);else{var Cr=n(we);if(!Cr||(we=Cr,p.fileIsOpen(we)))return!1;var kr=e.getDirectoryPath(we);if(Te(we)||e.isNodeModulesDirectory(we)||Te(kr)||e.isNodeModulesDirectory(kr))($||($=[])).push(we),(C||(C=new e.Set)).add(we);else{if(!Ae(we)&&!Q.has(we)||e.isEmittedFileOfProgram(p.getCurrentProgram(),we))return!1;($||($=[])).push(we);var He=e.parseNodeModuleFromPath(we);He&&(C||(C=new e.Set)).add(He)}}p.scheduleInvalidateResolutionsOfFailedLookupLocations()}function xr(){if(!$&&!C&&!K)return!1;var we=gr(te,sr);return $=void 0,C=void 0,K=void 0,we}function sr(we){return we.failedLookupLocations.some(function(qe){var Cr=p.toPath(qe);return e.contains($,Cr)||e.firstDefinedIterator((C==null?void 0:C.keys())||e.emptyIterator,function(kr){return e.startsWith(Cr,kr)?!0:void 0})||(K==null?void 0:K.some(function(kr){return R(kr,Cr)}))})}function i(){e.clearMap(T,e.closeFileWatcher)}function Mr(we,qe){if(R(d,qe))return d;var Cr=Ke(we,qe);return Cr&&H.has(Cr.dirPath)?Cr.dirPath:void 0}function fr(we,qe){return p.watchTypeRootsDirectory(qe,function(Cr){var kr=p.toPath(Cr);X&&X.addOrDeleteFileOrDirectory(Cr,kr),F=!0,p.onChangedAutomaticTypeDirectiveNames();var He=Mr(qe,we);He&&ur(kr,He===kr)},1)}function Ar(){var we=p.getCompilationSettings();if(we.types){i();return}var qe=e.getEffectiveTypeRoots(we,{directoryExists:de,getCurrentDirectory:k});qe?e.mutateMap(T,e.arrayToMap(qe,function(Cr){return p.toPath(Cr)}),{createNewValue:fr,onDeleteValue:e.closeFileWatcher}):i()}function de(we){var qe=e.getDirectoryPath(e.getDirectoryPath(we)),Cr=p.toPath(qe);return Cr===d||c(Cr)}}e.createResolutionCache=u;function g(p){var I,V;return!!(((I=p.resolvedModule)===null||I===void 0?void 0:I.originalPath)||((V=p.resolvedTypeReferenceDirective)===null||V===void 0?void 0:V.originalPath))}})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(A){A[A.Relative=0]="Relative",A[A.NonRelative=1]="NonRelative",A[A.Shortest=2]="Shortest",A[A.ExternalNonRelative=3]="ExternalNonRelative"})(u||(u={}));var g;(function(A){A[A.Minimal=0]="Minimal",A[A.Index=1]="Index",A[A.JsExtension=2]="JsExtension"})(g||(g={}));function p(A,_e,Se,ae){var D=_e.importModuleSpecifierPreference,be=_e.importModuleSpecifierEnding;return{relativePreference:D==="relative"?0:D==="non-relative"?1:D==="project-relative"?3:2,ending:ne()};function ne(){switch(be){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return x(ae)||V(Se,ae.path,A)?2:e.getEmitModuleResolutionKind(Se)!==e.ModuleResolutionKind.NodeJs?1:0}}}function I(A,_e,Se,ae){return{relativePreference:e.isExternalModuleNameRelative(_e)?0:1,ending:e.hasJSFileExtension(_e)||V(A,Se,ae)?2:e.getEmitModuleResolutionKind(A)!==e.ModuleResolutionKind.NodeJs||e.endsWith(_e,"index")?1:0}}function V(A,_e,Se){return e.getEmitModuleResolutionKind(A)!==e.ModuleResolutionKind.Node12&&e.getEmitModuleResolutionKind(A)!==e.ModuleResolutionKind.NodeNext?!1:e.getImpliedNodeFormatForFile(_e,void 0,L(Se),A)!==e.ModuleKind.CommonJS}function L(A){var _e;return{fileExists:A.fileExists,readFile:e.Debug.checkDefined(A.readFile),directoryExists:A.directoryExists,getCurrentDirectory:A.getCurrentDirectory,realpath:A.realpath,useCaseSensitiveFileNames:(_e=A.useCaseSensitiveFileNames)===null||_e===void 0?void 0:_e.call(A)}}function m(A,_e,Se,ae,D){var be=te(A,_e,Se,ae,I(A,D,_e,ae),{});if(be!==D)return be}c.updateModuleSpecifier=m;function y(A,_e,Se,ae,D){return te(A,Se,ae,D,p(D,{},A,_e),{})}c.getModuleSpecifier=y;function j(A,_e,Se,ae,D){var be=k(_e,ae),ne=q(_e,Se,ae,D);return e.firstDefined(ne,function(J){return B(J,be,ae,A,!0)})}c.getNodeModulesPackageName=j;function te(A,_e,Se,ae,D,be){var ne=k(_e,ae),J=q(_e,Se,ae,be);return e.firstDefined(J,function(le){return B(le,ne,ae,A)})||X(Se,ne,A,ae,D)}function E(A,_e,Se,ae){return F(A,_e,Se,ae)[0]}c.tryGetModuleSpecifiersFromCache=E;function F(A,_e,Se,ae){var D,be=e.getSourceFileOfModule(A);if(!be)return e.emptyArray;var ne=(D=Se.getModuleSpecifierCache)===null||D===void 0?void 0:D.call(Se),J=ne==null?void 0:ne.get(_e.path,be.path,ae);return[J==null?void 0:J.moduleSpecifiers,be,J==null?void 0:J.modulePaths,ne]}function $(A,_e,Se,ae,D,be){return C(A,_e,Se,ae,D,be).moduleSpecifiers}c.getModuleSpecifiers=$;function C(A,_e,Se,ae,D,be){var ne=!1,J=M(A,_e);if(J)return{moduleSpecifiers:[J],computedWithoutCache:ne};var le=F(A,ae,D,be),Te=le[0],Me=le[1],Ke=le[2],Ae=le[3];if(Te)return{moduleSpecifiers:Te,computedWithoutCache:ne};if(!Me)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:ne};ne=!0,Ke||(Ke=P(ae.path,Me.originalFileName,D));var Ge=K(Ke,Se,ae,D,be);return Ae==null||Ae.set(ae.path,Me.path,be,Ke,Ge),{moduleSpecifiers:Ge,computedWithoutCache:ne}}c.getModuleSpecifiersWithCacheInfo=C;function K(A,_e,Se,ae,D){var be=k(Se.path,ae),ne=p(ae,D,_e,Se),J=e.forEach(A,function(Ue){return e.forEach(ae.getFileIncludeReasons().get(e.toPath(Ue.path,ae.getCurrentDirectory(),be.getCanonicalFileName)),function(We){if(!(We.kind!==e.FileIncludeKind.Import||We.file!==Se.path)){var Ne=e.getModuleNameStringLiteralAt(Se,We.index).text;return ne.relativePreference!==1||!e.pathIsRelative(Ne)?Ne:void 0}})});if(J){var le=[J];return le}for(var Te=e.some(A,function(Ue){return Ue.isInNodeModules}),Me,Ke,Ae,Ge=0,se=A;Ge<se.length;Ge++){var xe=se[Ge],Re=B(xe,be,ae,_e);if(Me=e.append(Me,Re),Re&&xe.isRedirect)return Me;if(!Re&&!xe.isRedirect){var ce=X(xe.path,be,_e,ae,ne);e.pathIsBareSpecifier(ce)?Ke=e.append(Ke,ce):(!Te||xe.isInNodeModules)&&(Ae=e.append(Ae,ce))}}return Ke!=null&&Ke.length?Ke:Me!=null&&Me.length?Me:e.Debug.checkDefined(Ae)}function k(A,_e){var Se=e.createGetCanonicalFileName(_e.useCaseSensitiveFileNames?_e.useCaseSensitiveFileNames():!0),ae=e.getDirectoryPath(A);return{getCanonicalFileName:Se,importingSourceFileName:A,sourceDirectory:ae}}function X(A,_e,Se,ae,D){var be=D.ending,ne=D.relativePreference,J=Se.baseUrl,le=Se.paths,Te=Se.rootDirs,Me=_e.sourceDirectory,Ke=_e.getCanonicalFileName,Ae=Te&&d(Te,A,Me,Ke,be,Se)||R(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(Me,A,Ke)),be,Se);if(!J&&!le||ne===0)return Ae;var Ge=e.getNormalizedAbsolutePath(e.getPathsBasePath(Se,ae)||J,ae.getCurrentDirectory()),se=Y(A,Ge,Ke);if(!se)return Ae;var xe=R(se,be,Se),Re=le&&Q(e.removeFileExtension(se),xe,le),ce=Re===void 0&&J!==void 0?xe:Re;if(!ce)return Ae;if(ne===1)return ce;if(ne===3){var Ue=Se.configFilePath?e.toPath(e.getDirectoryPath(Se.configFilePath),ae.getCurrentDirectory(),_e.getCanonicalFileName):_e.getCanonicalFileName(ae.getCurrentDirectory()),We=e.toPath(A,Ue,Ke),Ne=e.startsWith(Me,Ue),ve=e.startsWith(We,Ue);if(Ne&&!ve||!Ne&&ve)return ce;var Ve=Z(ae,e.getDirectoryPath(We)),gr=Z(ae,Me);return gr!==Ve?ce:Ae}return ne!==2&&e.Debug.assertNever(ne),pe(ce)||O(Ae)<O(ce)?Ae:ce}function O(A){for(var _e=0,Se=e.startsWith(A,"./")?2:0;Se<A.length;Se++)A.charCodeAt(Se)===47&&_e++;return _e}c.countPathComponents=O;function x(A){var _e=A.imports;return e.firstDefined(_e,function(Se){var ae=Se.text;return e.pathIsRelative(ae)?e.hasJSFileExtension(ae):void 0})||!1}function ie(A,_e){return e.compareBooleans(_e.isRedirect,A.isRedirect)||e.compareNumberOfDirectorySeparators(A.path,_e.path)}function Z(A,_e){return A.getNearestAncestorDirectoryWithPackageJson?A.getNearestAncestorDirectoryWithPackageJson(_e):!!e.forEachAncestorDirectory(_e,function(Se){return A.fileExists(e.combinePaths(Se,"package.json"))?!0:void 0})}function re(A,_e,Se,ae,D){var be,ne=e.hostGetCanonicalFileName(Se),J=Se.getCurrentDirectory(),le=Se.isSourceOfProjectReferenceRedirect(_e)?Se.getProjectReferenceRedirect(_e):void 0,Te=e.toPath(_e,J,ne),Me=Se.redirectTargetsMap.get(Te)||e.emptyArray,Ke=Bt(Bt(Bt([],le?[le]:e.emptyArray,!0),[_e],!1),Me,!0),Ae=Ke.map(function(Ue){return e.getNormalizedAbsolutePath(Ue,J)}),Ge=!e.every(Ae,e.containsIgnoredPath);if(!ae){var se=e.forEach(Ae,function(Ue){return!(Ge&&e.containsIgnoredPath(Ue))&&D(Ue,le===Ue)});if(se)return se}var xe=(be=Se.getSymlinkCache)===null||be===void 0?void 0:be.call(Se).getSymlinkedDirectoriesByRealpath(),Re=e.getNormalizedAbsolutePath(_e,J),ce=xe&&e.forEachAncestorDirectory(e.getDirectoryPath(Re),function(Ue){var We=xe.get(e.ensureTrailingDirectorySeparator(e.toPath(Ue,J,ne)));if(!!We)return e.startsWithDirectory(A,Ue,ne)?!1:e.forEach(Ae,function(Ne){if(!!e.startsWithDirectory(Ne,Ue,ne))for(var ve=e.getRelativePathFromDirectory(Ue,Ne,ne),Ve=0,gr=We;Ve<gr.length;Ve++){var Er=gr[Ve],Nr=e.resolvePath(Er,ve),ur=D(Nr,Ne===le);if(Ge=!0,ur)return ur}})});return ce||(ae?e.forEach(Ae,function(Ue){return Ge&&e.containsIgnoredPath(Ue)?void 0:D(Ue,Ue===le)}):void 0)}c.forEachFileNameOfModule=re;function q(A,_e,Se,ae,D){var be;D===void 0&&(D=e.toPath(_e,Se.getCurrentDirectory(),e.hostGetCanonicalFileName(Se)));var ne=(be=Se.getModuleSpecifierCache)===null||be===void 0?void 0:be.call(Se);if(ne){var J=ne.get(A,D,ae);if(J!=null&&J.modulePaths)return J.modulePaths}var le=P(A,_e,Se);return ne&&ne.setModulePaths(A,D,ae,le),le}function P(A,_e,Se){var ae=e.hostGetCanonicalFileName(Se),D=new e.Map,be=!1;re(A,_e,Se,!0,function(Ae,Ge){var se=e.pathContainsNodeModules(Ae);D.set(Ae,{path:ae(Ae),isRedirect:Ge,isInNodeModules:se}),be=be||se});for(var ne=[],J=function(Ae){var Ge=e.ensureTrailingDirectorySeparator(Ae),se;D.forEach(function(Re,ce){var Ue=Re.path,We=Re.isRedirect,Ne=Re.isInNodeModules;e.startsWith(Ue,Ge)&&((se||(se=[])).push({path:ce,isRedirect:We,isInNodeModules:Ne}),D.delete(ce))}),se&&(se.length>1&&se.sort(ie),ne.push.apply(ne,se));var xe=e.getDirectoryPath(Ae);if(xe===Ae)return le=Ae,"break";Ae=xe,le=Ae},le,Te=e.getDirectoryPath(A);D.size!==0;){var Me=J(Te);if(Te=le,Me==="break")break}if(D.size){var Ke=e.arrayFrom(D.values());Ke.length>1&&Ke.sort(ie),ne.push.apply(ne,Ke)}return ne}function M(A,_e){var Se,ae=(Se=A.declarations)===null||Se===void 0?void 0:Se.find(function(ne){return e.isNonGlobalAmbientModule(ne)&&(!e.isExternalModuleAugmentation(ne)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(ne.name)))});if(ae)return ae.name.text;var D=e.mapDefined(A.declarations,function(ne){var J,le,Te,Me;if(!e.isModuleDeclaration(ne))return;var Ke=xe(ne);if(!(((J=Ke==null?void 0:Ke.parent)===null||J===void 0?void 0:J.parent)&&e.isModuleBlock(Ke.parent)&&e.isAmbientModule(Ke.parent.parent)&&e.isSourceFile(Ke.parent.parent.parent)))return;var Ae=(Me=(Te=(le=Ke.parent.parent.symbol.exports)===null||le===void 0?void 0:le.get("export="))===null||Te===void 0?void 0:Te.valueDeclaration)===null||Me===void 0?void 0:Me.expression;if(!Ae)return;var Ge=_e.getSymbolAtLocation(Ae);if(!Ge)return;var se=(Ge==null?void 0:Ge.flags)&2097152?_e.getAliasedSymbol(Ge):Ge;if(se===ne.symbol)return Ke.parent.parent;function xe(Re){for(;Re.flags&4;)Re=Re.parent;return Re}}),be=D[0];if(be)return be.name.text}function Q(A,_e,Se){for(var ae in Se)for(var D=0,be=Se[ae];D<be.length;D++){var ne=be[D],J=e.removeFileExtension(e.normalizePath(ne)),le=J.indexOf("*");if(le!==-1){var Te=J.substr(0,le),Me=J.substr(le+1);if(_e.length>=Te.length+Me.length&&e.startsWith(_e,Te)&&e.endsWith(_e,Me)||!Me&&_e===e.removeTrailingDirectorySeparator(Te)){var Ke=_e.substr(Te.length,_e.length-Me.length-Te.length);return ae.replace("*",Ke)}}else if(J===_e||J===A)return ae}}var H;(function(A){A[A.Exact=0]="Exact",A[A.Directory=1]="Directory",A[A.Pattern=2]="Pattern"})(H||(H={}));function w(A,_e,Se,ae,D,be,ne){if(ne===void 0&&(ne=0),typeof D=="string"){var J=e.getNormalizedAbsolutePath(e.combinePaths(Se,D),void 0),le=e.hasTSFileExtension(_e)?e.removeFileExtension(_e)+G(_e,A):void 0;switch(ne){case 0:if(e.comparePaths(_e,J)===0||le&&e.comparePaths(le,J)===0)return{moduleFileToTry:ae};break;case 1:if(e.containsPath(J,_e)){var Te=e.getRelativePathFromDirectory(J,_e,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(ae,D),Te),void 0)}}break;case 2:var Me=J.indexOf("*"),Ke=J.slice(0,Me),Ae=J.slice(Me+1);if(e.startsWith(_e,Ke)&&e.endsWith(_e,Ae)){var Ge=_e.slice(Ke.length,_e.length-Ae.length);return{moduleFileToTry:ae.replace("*",Ge)}}if(le&&e.startsWith(le,Ke)&&e.endsWith(le,Ae)){var Ge=le.slice(Ke.length,le.length-Ae.length);return{moduleFileToTry:ae.replace("*",Ge)}}break}}else{if(Array.isArray(D))return e.forEach(D,function(We){return w(A,_e,Se,ae,We,be)});if(typeof D=="object"&&D!==null){if(e.allKeysStartWithDot(D))return e.forEach(e.getOwnKeys(D),function(We){var Ne=e.getNormalizedAbsolutePath(e.combinePaths(ae,We),void 0),ve=e.endsWith(We,"/")?1:e.stringContains(We,"*")?2:0;return w(A,_e,Se,Ne,D[We],be,ve)});for(var se=0,xe=e.getOwnKeys(D);se<xe.length;se++){var Re=xe[se];if(Re==="default"||be.indexOf(Re)>=0||e.isApplicableVersionedTypesKey(be,Re)){var ce=D[Re],Ue=w(A,_e,Se,ae,ce,be);if(Ue)return Ue}}}}}function d(A,_e,Se,ae,D,be){var ne=h(_e,A,ae);if(ne!==void 0){var J=h(Se,A,ae),le=J!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(J,ne,ae)):ne;return e.getEmitModuleResolutionKind(be)===e.ModuleResolutionKind.NodeJs?R(le,D,be):e.removeFileExtension(le)}}function B(A,_e,Se,ae,D){var be=A.path,ne=A.isRedirect,J=_e.getCanonicalFileName,le=_e.sourceDirectory;if(!Se.fileExists||!Se.readFile)return;var Te=_(be);if(!Te)return;var Me=be,Ke=!1;if(!D)for(var Ae=Te.packageRootIndex,Ge=void 0;;){var se=gr(Ae),xe=se.moduleFileToTry,Re=se.packageRootPath,ce=se.blockedByExports,Ue=se.verbatimFromExports;if(e.getEmitModuleResolutionKind(ae)!==e.ModuleResolutionKind.Classic){if(ce)return;if(Ue)return xe}if(Re){Me=Re,Ke=!0;break}if(Ge||(Ge=xe),Ae=be.indexOf(e.directorySeparator,Ae+1),Ae===-1){Me=Er(Ge);break}}if(ne&&!Ke)return;var We=Se.getGlobalTypingsCacheLocation&&Se.getGlobalTypingsCacheLocation(),Ne=J(Me.substring(0,Te.topLevelNodeModulesIndex));if(!(e.startsWith(le,Ne)||We&&e.startsWith(J(We),Ne)))return;var ve=Me.substring(Te.topLevelPackageNameIndex+1),Ve=e.getPackageNameFromTypesPackageName(ve);return e.getEmitModuleResolutionKind(ae)===e.ModuleResolutionKind.Classic&&Ve===ve?void 0:Ve;function gr(Nr){var ur=be.substring(0,Nr),xr=e.combinePaths(ur,"package.json"),sr=be;if(Se.fileExists(xr)){var i=JSON.parse(Se.readFile(xr));if(e.getEmitModuleResolutionKind(ae)===e.ModuleResolutionKind.Node12||e.getEmitModuleResolutionKind(ae)===e.ModuleResolutionKind.NodeNext){var Mr=i.exports&&typeof i.name=="string"?w(ae,be,ur,i.name,i.exports,["node","types"]):void 0;if(Mr){var fr=e.hasTSFileExtension(Mr.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(Mr.moduleFileToTry)+G(Mr.moduleFileToTry,ae)}:Mr;return kn(kn({},fr),{verbatimFromExports:!0})}if(i.exports)return{moduleFileToTry:be,blockedByExports:!0}}var Ar=i.typesVersions?e.getPackageJsonTypesVersionsPaths(i.typesVersions):void 0;if(Ar){var de=be.slice(ur.length+1),we=Q(e.removeFileExtension(de),R(de,0,ae),Ar.paths);we!==void 0&&(sr=e.combinePaths(ur,we))}var qe=i.typings||i.types||i.main;if(e.isString(qe)){var Cr=e.toPath(qe,ur,J);if(e.removeFileExtension(Cr)===e.removeFileExtension(J(sr)))return{packageRootPath:ur,moduleFileToTry:sr}}}return{moduleFileToTry:sr}}function Er(Nr){var ur=e.removeFileExtension(Nr);return J(ur.substring(Te.fileNameIndex))==="/index"&&!T(Se,ur.substring(0,Te.fileNameIndex))?ur.substring(0,Te.fileNameIndex):ur}}function T(A,_e){if(!!A.fileExists)for(var Se=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}])),ae=0,D=Se;ae<D.length;ae++){var be=D[ae],ne=_e+be;if(A.fileExists(ne))return ne}}function _(A){var _e=0,Se=0,ae=0,D=0,be;(function(Te){Te[Te.BeforeNodeModules=0]="BeforeNodeModules",Te[Te.NodeModules=1]="NodeModules",Te[Te.Scope=2]="Scope",Te[Te.PackageContent=3]="PackageContent"})(be||(be={}));for(var ne=0,J=0,le=0;J>=0;)switch(ne=J,J=A.indexOf("/",ne+1),le){case 0:A.indexOf(e.nodeModulesPathPart,ne)===ne&&(_e=ne,Se=J,le=1);break;case 1:case 2:le===1&&A.charAt(ne+1)==="@"?le=2:(ae=J,le=3);break;case 3:A.indexOf(e.nodeModulesPathPart,ne)===ne?le=1:le=3;break}return D=ne,le>1?{topLevelNodeModulesIndex:_e,topLevelPackageNameIndex:Se,packageRootIndex:ae,fileNameIndex:D}:void 0}function h(A,_e,Se){return e.firstDefined(_e,function(ae){var D=Y(A,ae,Se);return pe(D)?void 0:D})}function R(A,_e,Se){if(e.fileExtensionIsOneOf(A,[".json",".mjs",".cjs"]))return A;var ae=e.removeFileExtension(A);if(e.fileExtensionIsOneOf(A,[".d.mts",".mts",".d.cts",".cts"]))return ae+b(A,Se);switch(_e){case 0:return e.removeSuffix(ae,"/index");case 1:return ae;case 2:return ae+b(A,Se);default:return e.Debug.assertNever(_e)}}function b(A,_e){var Se;return(Se=G(A,_e))!==null&&Se!==void 0?Se:e.Debug.fail("Extension ".concat(e.extensionFromPath(A)," is unsupported:: FileName:: ").concat(A))}function G(A,_e){var Se=e.tryGetExtensionFromPath(A);switch(Se){case".ts":case".d.ts":return".js";case".tsx":return _e.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return Se;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}c.tryGetJSExtensionForFile=G;function Y(A,_e,Se){var ae=e.getRelativePathToDirectoryOrUrl(_e,A,_e,Se,!1);return e.isRootedDiskPath(ae)?void 0:ae}function pe(A){return e.startsWith(A,"..")}})(n=e.moduleSpecifiers||(e.moduleSpecifiers={}))})(mr||(mr={}));var mr;(function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function c(d,B){var T=d===e.sys&&n?n:{getCurrentDirectory:function(){return d.getCurrentDirectory()},getNewLine:function(){return d.newLine},getCanonicalFileName:e.createGetCanonicalFileName(d.useCaseSensitiveFileNames)};if(!B)return function(h){return d.write(e.formatDiagnostic(h,T))};var _=new Array(1);return function(h){_[0]=h,d.write(e.formatDiagnosticsWithColorAndContext(_,T)+T.getNewLine()),_[0]=void 0}}e.createDiagnosticReporter=c;function u(d,B,T){return d.clearScreen&&!T.preserveWatchOutput&&!T.extendedDiagnostics&&!T.diagnostics&&e.contains(e.screenStartingMessageCodes,B.code)?(d.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function g(d,B){return e.contains(e.screenStartingMessageCodes,d.code)?B+B:B}function p(d){return d.now?d.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=p;function I(d,B){return B?function(T,_,h){u(d,T,h);var R="[".concat(e.formatColorAndReset(p(d),e.ForegroundColorEscapeSequences.Grey),"] ");R+="".concat(e.flattenDiagnosticMessageText(T.messageText,d.newLine)).concat(_+_),d.write(R)}:function(T,_,h){var R="";u(d,T,h)||(R+=_),R+="".concat(p(d)," - "),R+="".concat(e.flattenDiagnosticMessageText(T.messageText,d.newLine)).concat(g(T,_)),d.write(R)}}e.createWatchStatusReporter=I;function V(d,B,T,_,h,R){var b=h;b.onUnRecoverableConfigFileDiagnostic=function(Y){return M(h,R,Y)};var G=e.getParsedCommandLineOfConfigFile(d,B,b,T,_);return b.onUnRecoverableConfigFileDiagnostic=void 0,G}e.parseConfigFileWithSystem=V;function L(d){return e.countWhere(d,function(B){return B.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=L;function m(d){return d===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=m;function y(d,B){if(d===0)return"";var T=e.createCompilerDiagnostic(d===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,d);return"".concat(B).concat(e.flattenDiagnosticMessageText(T.messageText,B)).concat(B).concat(B)}e.getErrorSummaryText=y;function j(d){return!!d.getState}e.isBuilderProgram=j;function te(d,B){var T=d.getCompilerOptions();T.explainFiles?E(j(d)?d.getProgram():d,B):(T.listFiles||T.listFilesOnly)&&e.forEach(d.getSourceFiles(),function(_){B(_.fileName)})}e.listFiles=te;function E(d,B){for(var T,_,h=d.getFileIncludeReasons(),R=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),b=function(A){return e.convertToRelativePath(A,d.getCurrentDirectory(),R)},G=0,Y=d.getSourceFiles();G<Y.length;G++){var pe=Y[G];B("".concat(k(pe,b))),(T=h.get(pe.path))===null||T===void 0||T.forEach(function(A){return B(" ".concat(K(d,A,b).messageText))}),(_=F(pe,b))===null||_===void 0||_.forEach(function(A){return B(" ".concat(A.messageText))})}}e.explainFiles=E;function F(d,B){var T;return d.path!==d.resolvedPath&&(T||(T=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,k(d.originalFileName,B))),d.redirectInfo&&(T||(T=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,k(d.redirectInfo.redirectTarget,B))),T}e.explainIfFileIsRedirect=F;function $(d,B){var T,_=d.getCompilerOptions().configFile;if(!!(!((T=_==null?void 0:_.configFileSpecs)===null||T===void 0)&&T.validatedFilesSpec)){var h=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames()),R=h(B),b=e.getDirectoryPath(e.getNormalizedAbsolutePath(_.fileName,d.getCurrentDirectory()));return e.find(_.configFileSpecs.validatedFilesSpec,function(G){return h(e.getNormalizedAbsolutePath(G,b))===R})}}e.getMatchedFileSpec=$;function C(d,B){var T,_,h=d.getCompilerOptions().configFile;if(!!(!((T=h==null?void 0:h.configFileSpecs)===null||T===void 0)&&T.validatedIncludeSpecs)){var R=e.fileExtensionIs(B,".json"),b=e.getDirectoryPath(e.getNormalizedAbsolutePath(h.fileName,d.getCurrentDirectory())),G=d.useCaseSensitiveFileNames();return e.find((_=h==null?void 0:h.configFileSpecs)===null||_===void 0?void 0:_.validatedIncludeSpecs,function(Y){if(R&&!e.endsWith(Y,".json"))return!1;var pe=e.getPatternFromSpec(Y,b,"files");return!!pe&&e.getRegexFromPattern("(".concat(pe,")$"),G).test(B)})}}e.getMatchedIncludeSpec=C;function K(d,B,T){var _,h,R=d.getCompilerOptions();if(e.isReferencedFile(B)){var b=e.getReferencedFileLocation(function(be){return d.getSourceFileByPath(be)},B),G=e.isReferenceFileLocation(b)?b.file.text.substring(b.pos,b.end):'"'.concat(b.text,'"'),Y=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(b)||B.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),B.kind){case e.FileIncludeKind.Import:e.isReferenceFileLocation(b)?Y=b.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:b.text===e.externalHelpersModuleNameText?Y=b.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:Y=b.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!b.packageId),Y=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:Y=b.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!b.packageId),Y=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(B)}return e.chainDiagnosticMessages(void 0,Y,G,k(b.file,T),b.packageId&&e.packageIdToString(b.packageId))}switch(B.kind){case e.FileIncludeKind.RootFile:if(!(!((_=R.configFile)===null||_===void 0)&&_.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var pe=e.getNormalizedAbsolutePath(d.getRootFileNames()[B.index],d.getCurrentDirectory()),A=$(d,pe);if(A)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var _e=C(d,pe);return _e?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,_e,k(R.configFile,T)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var Se=B.kind===e.FileIncludeKind.OutputFromProjectReference,ae=e.Debug.checkDefined((h=d.getResolvedProjectReferences())===null||h===void 0?void 0:h[B.index]);return e.chainDiagnosticMessages(void 0,e.outFile(R)?Se?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:Se?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,k(ae.sourceFile.fileName,T),R.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,R.types?B.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:B.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,B.typeReference,B.packageId&&e.packageIdToString(B.packageId));case e.FileIncludeKind.LibFile:if(B.index!==void 0)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,R.lib[B.index]);var D=e.forEachEntry(e.targetOptionDeclaration.type,function(be,ne){return be===e.getEmitScriptTarget(R)?ne:void 0});return e.chainDiagnosticMessages(void 0,D?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,D);default:e.Debug.assertNever(B)}}e.fileIncludeReasonToDiagnostics=K;function k(d,B){var T=e.isString(d)?d:d.fileName;return B?B(T):T}function X(d,B,T,_,h,R,b,G){var Y=!!d.getCompilerOptions().listFilesOnly,pe=d.getConfigFileParsingDiagnostics().slice(),A=pe.length;e.addRange(pe,d.getSyntacticDiagnostics(void 0,R)),pe.length===A&&(e.addRange(pe,d.getOptionsDiagnostics(R)),Y||(e.addRange(pe,d.getGlobalDiagnostics(R)),pe.length===A&&e.addRange(pe,d.getSemanticDiagnostics(void 0,R))));var _e=Y?{emitSkipped:!0,diagnostics:e.emptyArray}:d.emit(void 0,h,R,b,G),Se=_e.emittedFiles,ae=_e.diagnostics;e.addRange(pe,ae);var D=e.sortAndDeduplicateDiagnostics(pe);if(D.forEach(B),T){var be=d.getCurrentDirectory();e.forEach(Se,function(ne){var J=e.getNormalizedAbsolutePath(ne,be);T("TSFILE: ".concat(J))}),te(d,T)}return _&&_(L(D)),{emitResult:_e,diagnostics:D}}e.emitFilesAndReportErrors=X;function O(d,B,T,_,h,R,b,G){var Y=X(d,B,T,_,h,R,b,G),pe=Y.emitResult,A=Y.diagnostics;return pe.emitSkipped&&A.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:A.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=O,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function x(d,B){d===void 0&&(d=e.sys);var T=B||I(d);return{onWatchStatusChange:T,watchFile:e.maybeBind(d,d.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(d,d.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(d,d.setTimeout)||e.noop,clearTimeout:e.maybeBind(d,d.clearTimeout)||e.noop}}e.createWatchHost=x,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",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"};function ie(d,B){var T=d.trace?B.extendedDiagnostics?e.WatchLogLevel.Verbose:B.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,_=T!==e.WatchLogLevel.None?function(R){return d.trace(R)}:e.noop,h=e.getWatchFactory(d,T,_);return h.writeLog=_,h}e.createWatchFactory=ie;function Z(d,B,T){T===void 0&&(T=d);var _=d.useCaseSensitiveFileNames(),h=e.memoize(function(){return d.getNewLine()});return{getSourceFile:function(b,G,Y){var pe;try{e.performance.mark("beforeIORead"),pe=d.readFile(b,B().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(A){Y&&Y(A.message),pe=""}return pe!==void 0?e.createSourceFile(b,pe,G):void 0},getDefaultLibLocation:e.maybeBind(d,d.getDefaultLibLocation),getDefaultLibFileName:function(b){return d.getDefaultLibFileName(b)},writeFile:R,getCurrentDirectory:e.memoize(function(){return d.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return _},getCanonicalFileName:e.createGetCanonicalFileName(_),getNewLine:function(){return e.getNewLineCharacter(B(),h)},fileExists:function(b){return d.fileExists(b)},readFile:function(b){return d.readFile(b)},trace:e.maybeBind(d,d.trace),directoryExists:e.maybeBind(T,T.directoryExists),getDirectories:e.maybeBind(T,T.getDirectories),realpath:e.maybeBind(d,d.realpath),getEnvironmentVariable:e.maybeBind(d,d.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(d,d.createHash),readDirectory:e.maybeBind(d,d.readDirectory),disableUseFileVersionAsSignature:d.disableUseFileVersionAsSignature};function R(b,G,Y,pe){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(b,G,Y,function(A,_e,Se){return d.writeFile(A,_e,Se)},function(A){return d.createDirectory(A)},function(A){return d.directoryExists(A)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(A){pe&&pe(A.message)}}}e.createCompilerHostFromProgramHost=Z;function re(d,B){var T=d.getSourceFile,_=e.maybeBind(B,B.createHash)||e.generateDjb2Hash;d.getSourceFile=function(){for(var h=[],R=0;R<arguments.length;R++)h[R]=arguments[R];var b=T.call.apply(T,Bt([d],h,!1));return b&&(b.version=_(b.text)),b}}e.setGetSourceFileAsHashVersioned=re;function q(d,B){var T=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(d.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return d.useCaseSensitiveFileNames},getNewLine:function(){return d.newLine},getCurrentDirectory:e.memoize(function(){return d.getCurrentDirectory()}),getDefaultLibLocation:T,getDefaultLibFileName:function(_){return e.combinePaths(T(),e.getDefaultLibFileName(_))},fileExists:function(_){return d.fileExists(_)},readFile:function(_,h){return d.readFile(_,h)},directoryExists:function(_){return d.directoryExists(_)},getDirectories:function(_){return d.getDirectories(_)},readDirectory:function(_,h,R,b,G){return d.readDirectory(_,h,R,b,G)},realpath:e.maybeBind(d,d.realpath),getEnvironmentVariable:e.maybeBind(d,d.getEnvironmentVariable),trace:function(_){return d.write(_+d.newLine)},createDirectory:function(_){return d.createDirectory(_)},writeFile:function(_,h,R){return d.writeFile(_,h,R)},createHash:e.maybeBind(d,d.createHash),createProgram:B||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:d.disableUseFileVersionAsSignature}}e.createProgramHost=q;function P(d,B,T,_){d===void 0&&(d=e.sys);var h=function(b){return d.write(b+d.newLine)},R=q(d,B);return e.copyProperties(R,x(d,_)),R.afterProgramCreate=function(b){var G=b.getCompilerOptions(),Y=e.getNewLineCharacter(G,function(){return d.newLine});X(b,T,h,function(pe){return R.onWatchStatusChange(e.createCompilerDiagnostic(m(pe),pe),Y,G,pe)})},R}function M(d,B,T){B(T),d.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}function Q(d){var B=d.configFileName,T=d.optionsToExtend,_=d.watchOptionsToExtend,h=d.extraFileExtensions,R=d.system,b=d.createProgram,G=d.reportDiagnostic,Y=d.reportWatchStatus,pe=G||c(R),A=P(R,b,pe,Y);return A.onUnRecoverableConfigFileDiagnostic=function(_e){return M(R,pe,_e)},A.configFileName=B,A.optionsToExtend=T,A.watchOptionsToExtend=_,A.extraFileExtensions=h,A}e.createWatchCompilerHostOfConfigFile=Q;function H(d){var B=d.rootFiles,T=d.options,_=d.watchOptions,h=d.projectReferences,R=d.system,b=d.createProgram,G=d.reportDiagnostic,Y=d.reportWatchStatus,pe=P(R,b,G||c(R),Y);return pe.rootFiles=B,pe.options=T,pe.watchOptions=_,pe.projectReferences=h,pe}e.createWatchCompilerHostOfFilesAndCompilerOptions=H;function w(d){var B=d.system||e.sys,T=d.host||(d.host=e.createIncrementalCompilerHost(d.options,B)),_=e.createIncrementalProgram(d),h=O(_,d.reportDiagnostic||c(B),function(R){return T.trace&&T.trace(R)},d.reportErrorSummary||d.options.pretty?function(R){return B.write(y(R,B.newLine))}:void 0);return d.afterProgramEmitAndDiagnostics&&d.afterProgramEmitAndDiagnostics(_),h}e.performIncrementalCompilation=w})(mr||(mr={}));var mr;(function(e){function n(I,V){if(!e.outFile(I)){var L=e.getTsBuildInfoEmitOutputFilePath(I);if(!!L){var m=V.readFile(L);if(!!m){var y=e.getBuildInfo(m);if(y.version===e.version&&!!y.program)return e.createBuildProgramUsingProgramBuildInfo(y.program,L,V)}}}}e.readBuilderProgram=n;function c(I,V){V===void 0&&(V=e.sys);var L=e.createCompilerHostWorker(I,void 0,V);return L.createHash=e.maybeBind(V,V.createHash),L.disableUseFileVersionAsSignature=V.disableUseFileVersionAsSignature,e.setGetSourceFileAsHashVersioned(L,V),e.changeCompilerHostLikeToUseCache(L,function(m){return e.toPath(m,L.getCurrentDirectory(),L.getCanonicalFileName)}),L}e.createIncrementalCompilerHost=c;function u(I){var V=I.rootNames,L=I.options,m=I.configFileParsingDiagnostics,y=I.projectReferences,j=I.host,te=I.createProgram;j=j||c(L),te=te||e.createEmitAndSemanticDiagnosticsBuilderProgram;var E=n(L,j);return te(V,L,j,E,m,y)}e.createIncrementalProgram=u;function g(I,V,L,m,y,j,te,E){return e.isArray(I)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:I,options:V,watchOptions:E,projectReferences:te,system:L,createProgram:m,reportDiagnostic:y,reportWatchStatus:j}):e.createWatchCompilerHostOfConfigFile({configFileName:I,optionsToExtend:V,watchOptionsToExtend:te,extraFileExtensions:E,system:L,createProgram:m,reportDiagnostic:y,reportWatchStatus:j})}e.createWatchCompilerHost=g;function p(I){var V,L,m,y,j,te,E,F,$,C=I.extendedConfigCache,K=!1,k=new e.Map,X,O=!1,x=I.useCaseSensitiveFileNames(),ie=I.getCurrentDirectory(),Z=I.configFileName,re=I.optionsToExtend,q=re===void 0?{}:re,P=I.watchOptionsToExtend,M=I.extraFileExtensions,Q=I.createProgram,H=I.rootFiles,w=I.options,d=I.watchOptions,B=I.projectReferences,T,_,h=!1,R=!1,b=Z===void 0?void 0:e.createCachedDirectoryStructureHost(I,ie,x),G=b||I,Y=e.parseConfigHostFromCompilerHostLike(I,G),pe=Re();Z&&I.configFileParsingResult&&(kr(I.configFileParsingResult),pe=Re()),Nr(e.Diagnostics.Starting_compilation_in_watch_mode),Z&&!I.configFileParsingResult&&(pe=e.getNewLineCharacter(q,function(){return I.getNewLine()}),e.Debug.assert(!H),Cr(),pe=Re());var A=e.createWatchFactory(I,w),_e=A.watchFile,Se=A.watchDirectory,ae=A.writeLog,D=e.createGetCanonicalFileName(x);ae("Current directory: ".concat(ie," CaseSensitiveFileNames: ").concat(x));var be;Z&&(be=_e(Z,fr,e.PollingInterval.High,d,e.WatchType.ConfigFile));var ne=e.createCompilerHostFromProgramHost(I,function(){return w},G);e.setGetSourceFileAsHashVersioned(ne,I);var J=ne.getSourceFile;ne.getSourceFile=function(Zr){for(var ir=[],ge=1;ge<arguments.length;ge++)ir[ge-1]=arguments[ge];return ve.apply(void 0,Bt([Zr,ce(Zr)],ir,!1))},ne.getSourceFileByPath=ve,ne.getNewLine=function(){return pe},ne.fileExists=Ne,ne.onReleaseOldSourceFile=Er,ne.onReleaseParsedCommandLine=Hr,ne.toPath=ce,ne.getCompilationSettings=function(){return w},ne.useSourceOfProjectReferenceRedirect=e.maybeBind(I,I.useSourceOfProjectReferenceRedirect),ne.watchDirectoryOfFailedLookupLocation=function(Zr,ir,ge){return Se(Zr,ir,ge,d,e.WatchType.FailedLookupLocations)},ne.watchTypeRootsDirectory=function(Zr,ir,ge){return Se(Zr,ir,ge,d,e.WatchType.TypeRoots)},ne.getCachedDirectoryStructureHost=function(){return b},ne.scheduleInvalidateResolutionsOfFailedLookupLocations=sr,ne.onInvalidatedResolution=Mr,ne.onChangedAutomaticTypeDirectiveNames=Mr,ne.fileIsOpen=e.returnFalse,ne.getCurrentProgram=Ae,ne.writeLog=ae,ne.getParsedCommandLine=He;var le=e.createResolutionCache(ne,Z?e.getDirectoryPath(e.getNormalizedAbsolutePath(Z,ie)):ie,!1);ne.resolveModuleNames=I.resolveModuleNames?function(){for(var Zr=[],ir=0;ir<arguments.length;ir++)Zr[ir]=arguments[ir];return I.resolveModuleNames.apply(I,Zr)}:function(Zr,ir,ge,rr,pr,Lr){return le.resolveModuleNames(Zr,ir,ge,rr,Lr)},ne.resolveTypeReferenceDirectives=I.resolveTypeReferenceDirectives?function(){for(var Zr=[],ir=0;ir<arguments.length;ir++)Zr[ir]=arguments[ir];return I.resolveTypeReferenceDirectives.apply(I,Zr)}:function(Zr,ir,ge){return le.resolveTypeReferenceDirectives(Zr,ir,ge)};var Te=!!I.resolveModuleNames||!!I.resolveTypeReferenceDirectives;return V=n(w,ne),Ge(),vn(),Z&&qn(ce(Z),w,d,e.WatchType.ExtendedConfigFile),Z?{getCurrentProgram:Ke,getProgram:de,close:Me}:{getCurrentProgram:Ke,getProgram:de,updateRootFileNames:xe,close:Me};function Me(){xr(),le.clear(),e.clearMap(k,function(Zr){Zr&&Zr.fileWatcher&&(Zr.fileWatcher.close(),Zr.fileWatcher=void 0)}),be&&(be.close(),be=void 0),C==null||C.clear(),C=void 0,$&&(e.clearMap($,e.closeFileWatcherOf),$=void 0),j&&(e.clearMap(j,e.closeFileWatcherOf),j=void 0),m&&(e.clearMap(m,e.closeFileWatcher),m=void 0),F&&(e.clearMap(F,function(Zr){var ir;(ir=Zr.watcher)===null||ir===void 0||ir.close(),Zr.watcher=void 0,Zr.watchedDirectories&&e.clearMap(Zr.watchedDirectories,e.closeFileWatcherOf),Zr.watchedDirectories=void 0}),F=void 0),y&&(e.clearMap(y,e.closeFileWatcher),y=void 0)}function Ke(){return V}function Ae(){return V&&V.getProgramOrUndefined()}function Ge(){ae("Synchronizing program"),xr();var Zr=Ke();O&&(pe=Re(),Zr&&(K||e.changesAffectModuleResolution(Zr.getCompilerOptions(),w))&&le.clear());var ir=le.createHasInvalidatedResolution(Te||K);return e.isProgramUptoDate(Ae(),H,w,gr,Ne,ir,ur,He,B)?R&&(V=Q(void 0,void 0,ne,V,_,B),R=!1):se(ir),K=!1,I.afterProgramCreate&&Zr!==V&&I.afterProgramCreate(V),V}function se(Zr){ae("CreatingProgramWith::"),ae(" roots: ".concat(JSON.stringify(H))),ae(" options: ".concat(JSON.stringify(w))),B&&ae(" projectReferences: ".concat(JSON.stringify(B)));var ir=O||!Ae();O=!1,R=!1,le.startCachingPerDirectoryResolution(),ne.hasInvalidatedResolution=Zr,ne.hasChangedAutomaticTypeDirectiveNames=ur,V=Q(H,w,ne,V,_,B);var ge=e.map(le.getModuleResolutionCache().getPackageJsonInfoCache().entries(),function(Ce){var cr=Ce[0],$e=Ce[1];return[ne.realpath?ce(ne.realpath(cr)):cr,$e]});if(le.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(V.getProgram(),m||(m=new e.Map),ot),e.updatePackageJsonWatch(ge,y||(y=new e.Map),_t),ir&&le.updateTypeRootsWatch(),X){for(var rr=0,pr=X;rr<pr.length;rr++){var Lr=pr[rr];m.has(Lr)||k.delete(Lr)}X=void 0}}function xe(Zr){e.Debug.assert(!Z,"Cannot update root file names with config file watch mode"),H=Zr,Mr()}function Re(){return e.getNewLineCharacter(w||q,function(){return I.getNewLine()})}function ce(Zr){return e.toPath(Zr,ie,D)}function Ue(Zr){return typeof Zr=="boolean"}function We(Zr){return typeof Zr.version=="boolean"}function Ne(Zr){var ir=ce(Zr);return Ue(k.get(ir))?!1:G.fileExists(Zr)}function ve(Zr,ir,ge,rr,pr){var Lr=k.get(ir);if(!Ue(Lr)){if(Lr===void 0||pr||We(Lr)){var Ce=J(Zr,ge,rr);if(Lr)Ce?(Lr.sourceFile=Ce,Lr.version=Ce.version,Lr.fileWatcher||(Lr.fileWatcher=Je(ir,Zr,Sr,e.PollingInterval.Low,d,e.WatchType.SourceFile))):(Lr.fileWatcher&&Lr.fileWatcher.close(),k.set(ir,!1));else if(Ce){var cr=Je(ir,Zr,Sr,e.PollingInterval.Low,d,e.WatchType.SourceFile);k.set(ir,{sourceFile:Ce,version:Ce.version,fileWatcher:cr})}else k.set(ir,!1);return Ce&&(Ce.impliedNodeFormat=e.getImpliedNodeFormatForFile(ir,le.getModuleResolutionCache().getPackageJsonInfoCache(),ne,ne.getCompilationSettings())),Ce}return Lr.sourceFile}}function Ve(Zr){var ir=k.get(Zr);ir!==void 0&&(Ue(ir)?k.set(Zr,{version:!1}):ir.version=!1)}function gr(Zr){var ir=k.get(Zr);return!ir||!ir.version?void 0:ir.version}function Er(Zr,ir,ge){var rr=k.get(Zr.resolvedPath);rr!==void 0&&(Ue(rr)?(X||(X=[])).push(Zr.path):rr.sourceFile===Zr&&(rr.fileWatcher&&rr.fileWatcher.close(),k.delete(Zr.resolvedPath),ge||le.removeResolutionsOfFile(Zr.path)))}function Nr(Zr){I.onWatchStatusChange&&I.onWatchStatusChange(e.createCompilerDiagnostic(Zr),pe,w||q)}function ur(){return le.hasChangedAutomaticTypeDirectiveNames()}function xr(){return E?(I.clearTimeout(E),E=void 0,!0):!1}function sr(){if(!I.setTimeout||!I.clearTimeout)return le.invalidateResolutionsOfFailedLookupLocations();var Zr=xr();ae("Scheduling invalidateFailedLookup".concat(Zr?", Cancelled earlier one":"")),E=I.setTimeout(i,250)}function i(){E=void 0,le.invalidateResolutionsOfFailedLookupLocations()&&Mr()}function Mr(){!I.setTimeout||!I.clearTimeout||(te&&I.clearTimeout(te),ae("Scheduling update"),te=I.setTimeout(Ar,250))}function fr(){e.Debug.assert(!!Z),L=e.ConfigFileProgramReloadLevel.Full,Mr()}function Ar(){te=void 0,Nr(e.Diagnostics.File_change_detected_Starting_incremental_compilation),de()}function de(){switch(L){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),we();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),qe();break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Ge();break}return e.perfLogger.logStopUpdateProgram("Done"),Ke()}function we(){ae("Reloading new file names and options"),H=e.getFileNamesFromConfigSpecs(w.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Z),ie),w,Y,M),e.updateErrorForNoInputFiles(H,e.getNormalizedAbsolutePath(Z,ie),w.configFile.configFileSpecs,_,h)&&(R=!0),Ge()}function qe(){ae("Reloading config file: ".concat(Z)),L=e.ConfigFileProgramReloadLevel.None,b&&b.clearCache(),Cr(),O=!0,Ge(),vn(),qn(ce(Z),w,d,e.WatchType.ExtendedConfigFile)}function Cr(){kr(e.getParsedCommandLineOfConfigFile(Z,q,Y,C||(C=new e.Map),P,M))}function kr(Zr){H=Zr.fileNames,w=Zr.options,d=Zr.watchOptions,B=Zr.projectReferences,T=Zr.wildcardDirectories,_=e.getConfigFileParsingDiagnostics(Zr).slice(),h=e.canJsonReportNoInputFiles(Zr.raw),R=!0}function He(Zr){var ir=ce(Zr),ge=F==null?void 0:F.get(ir);if(ge){if(!ge.reloadLevel)return ge.parsedCommandLine;if(ge.parsedCommandLine&&ge.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!I.getParsedCommandLine){ae("Reloading new file names and options");var rr=e.getFileNamesFromConfigSpecs(ge.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(Zr),ie),w,Y);return ge.parsedCommandLine=kn(kn({},ge.parsedCommandLine),{fileNames:rr}),ge.reloadLevel=void 0,ge.parsedCommandLine}}ae("Loading config file: ".concat(Zr));var pr=I.getParsedCommandLine?I.getParsedCommandLine(Zr):lr(Zr);return ge?(ge.parsedCommandLine=pr,ge.reloadLevel=void 0):(F||(F=new e.Map)).set(ir,ge={parsedCommandLine:pr}),nr(Zr,ir,ge),pr}function lr(Zr){var ir=Y.onUnRecoverableConfigFileDiagnostic;Y.onUnRecoverableConfigFileDiagnostic=e.noop;var ge=e.getParsedCommandLineOfConfigFile(Zr,void 0,Y,C||(C=new e.Map),P);return Y.onUnRecoverableConfigFileDiagnostic=ir,ge}function Hr(Zr){var ir,ge=ce(Zr),rr=F==null?void 0:F.get(ge);!rr||(F.delete(ge),rr.watchedDirectories&&e.clearMap(rr.watchedDirectories,e.closeFileWatcherOf),(ir=rr.watcher)===null||ir===void 0||ir.close(),e.clearSharedExtendedConfigFileWatcher(ge,$))}function Je(Zr,ir,ge,rr,pr,Lr){return _e(ir,function(Ce,cr){return ge(Ce,cr,Zr)},rr,pr,Lr)}function Sr(Zr,ir,ge){Yr(Zr,ge,ir),ir===e.FileWatcherEventKind.Deleted&&k.has(ge)&&le.invalidateResolutionOfFile(ge),Ve(ge),Mr()}function Yr(Zr,ir,ge){b&&b.addOrDeleteFile(Zr,ir,ge)}function ot(Zr){return F!=null&&F.has(Zr)?e.noopFileWatcher:Je(Zr,Zr,Yt,e.PollingInterval.Medium,d,e.WatchType.MissingFile)}function _t(Zr){return k.has(Zr)?e.noopFileWatcher:Je(Zr,Zr,kt,e.PollingInterval.High,d,e.WatchType.PackageJson)}function kt(Zr,ir,ge){Yr(Zr,ge,ir),L=e.ConfigFileProgramReloadLevel.Full,K=!0,Mr()}function Yt(Zr,ir,ge){Yr(Zr,ge,ir),ir===e.FileWatcherEventKind.Created&&m.has(ge)&&(m.get(ge).close(),m.delete(ge),Ve(ge),Mr())}function vn(){T?e.updateWatchingWildcardDirectories(j||(j=new e.Map),new e.Map(e.getEntries(T)),Mn):j&&e.clearMap(j,e.closeFileWatcherOf)}function Mn(Zr,ir){return Se(Zr,function(ge){e.Debug.assert(!!Z);var rr=ce(ge);b&&b.addOrDeleteFileOrDirectory(ge,rr),Ve(rr),!e.isIgnoredFileFromWildCardWatching({watchedDirPath:ce(Zr),fileOrDirectory:ge,fileOrDirectoryPath:rr,configFileName:Z,extraFileExtensions:M,options:w,program:Ke()||H,currentDirectory:ie,useCaseSensitiveFileNames:x,writeLog:ae,toPath:ce})&&L!==e.ConfigFileProgramReloadLevel.Full&&(L=e.ConfigFileProgramReloadLevel.Partial,Mr())},ir,d,e.WatchType.WildcardDirectory)}function qn(Zr,ir,ge,rr){e.updateSharedExtendedConfigFileWatcher(Zr,ir,$||($=new e.Map),function(pr,Lr){return _e(pr,function(Ce,cr){var $e;Yr(pr,Lr,cr),C&&e.cleanExtendedConfigCache(C,Lr,ce);var De=($e=$.get(Lr))===null||$e===void 0?void 0:$e.projects;!(De!=null&&De.size)||De.forEach(function(z){if(ce(Z)===z)L=e.ConfigFileProgramReloadLevel.Full;else{var ke=F==null?void 0:F.get(z);ke&&(ke.reloadLevel=e.ConfigFileProgramReloadLevel.Full),le.removeResolutionsFromProjectReferenceRedirects(z)}Mr()})},e.PollingInterval.High,ge,rr)},ce)}function nr(Zr,ir,ge){var rr,pr,Lr,Ce,cr;ge.watcher||(ge.watcher=_e(Zr,function($e,De){Yr(Zr,ir,De);var z=F==null?void 0:F.get(ir);z&&(z.reloadLevel=e.ConfigFileProgramReloadLevel.Full),le.removeResolutionsFromProjectReferenceRedirects(ir),Mr()},e.PollingInterval.High,((rr=ge.parsedCommandLine)===null||rr===void 0?void 0:rr.watchOptions)||d,e.WatchType.ConfigFileOfReferencedProject)),!((pr=ge.parsedCommandLine)===null||pr===void 0)&&pr.wildcardDirectories?e.updateWatchingWildcardDirectories(ge.watchedDirectories||(ge.watchedDirectories=new e.Map),new e.Map(e.getEntries((Lr=ge.parsedCommandLine)===null||Lr===void 0?void 0:Lr.wildcardDirectories)),function($e,De){var z;return Se($e,function(ke){var dr=ce(ke);b&&b.addOrDeleteFileOrDirectory(ke,dr),Ve(dr);var Xe=F==null?void 0:F.get(ir);!(Xe!=null&&Xe.parsedCommandLine)||e.isIgnoredFileFromWildCardWatching({watchedDirPath:ce($e),fileOrDirectory:ke,fileOrDirectoryPath:dr,configFileName:Zr,options:Xe.parsedCommandLine.options,program:Xe.parsedCommandLine.fileNames,currentDirectory:ie,useCaseSensitiveFileNames:x,writeLog:ae,toPath:ce})||Xe.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(Xe.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,Mr())},De,((z=ge.parsedCommandLine)===null||z===void 0?void 0:z.watchOptions)||d,e.WatchType.WildcardDirectoryOfReferencedProject)}):ge.watchedDirectories&&(e.clearMap(ge.watchedDirectories,e.closeFileWatcherOf),ge.watchedDirectories=void 0),qn(ir,(Ce=ge.parsedCommandLine)===null||Ce===void 0?void 0:Ce.options,((cr=ge.parsedCommandLine)===null||cr===void 0?void 0:cr.watchOptions)||d,e.WatchType.ExtendedConfigOfReferencedProject)}}e.createWatchProgram=p})(mr||(mr={}));var mr;(function(e){var n;(function(u){u[u.Unbuildable=0]="Unbuildable",u[u.UpToDate=1]="UpToDate",u[u.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",u[u.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",u[u.OutputMissing=4]="OutputMissing",u[u.OutOfDateWithSelf=5]="OutOfDateWithSelf",u[u.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",u[u.UpstreamOutOfDate=7]="UpstreamOutOfDate",u[u.UpstreamBlocked=8]="UpstreamBlocked",u[u.ComputingUpstream=9]="ComputingUpstream",u[u.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",u[u.ContainerOnly=11]="ContainerOnly"})(n=e.UpToDateStatusType||(e.UpToDateStatusType={}));function c(u){return e.fileExtensionIs(u,".json")?u:e.combinePaths(u,"tsconfig.json")}e.resolveConfigFileProjectName=c})(mr||(mr={}));var mr;(function(e){var n=new Date(-864e13),c=new Date(864e13),u;(function(de){de[de.None=0]="None",de[de.Success=1]="Success",de[de.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",de[de.ConfigFileErrors=4]="ConfigFileErrors",de[de.SyntaxErrors=8]="SyntaxErrors",de[de.TypeErrors=16]="TypeErrors",de[de.DeclarationEmitErrors=32]="DeclarationEmitErrors",de[de.EmitErrors=64]="EmitErrors",de[de.AnyErrors=124]="AnyErrors"})(u||(u={}));function g(de,we,qe){var Cr=de.get(we),kr;return Cr||(kr=qe(),de.set(we,kr)),Cr||kr}function p(de,we){return g(de,we,function(){return new e.Map})}function I(de,we){return we>de?we:de}function V(de){return e.fileExtensionIs(de,".d.ts")}function L(de){return!!de&&!!de.buildOrder}e.isCircularBuildOrder=L;function m(de){return L(de)?de.buildOrder:de}e.getBuildOrderFromAnyBuildOrder=m;function y(de,we){return function(qe){var Cr=we?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(de),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(de)," - ");Cr+="".concat(e.flattenDiagnosticMessageText(qe.messageText,de.newLine)).concat(de.newLine+de.newLine),de.write(Cr)}}e.createBuilderStatusReporter=y;function j(de,we,qe,Cr){var kr=e.createProgramHost(de,we);return kr.getModifiedTime=de.getModifiedTime?function(He){return de.getModifiedTime(He)}:e.returnUndefined,kr.setModifiedTime=de.setModifiedTime?function(He,lr){return de.setModifiedTime(He,lr)}:e.noop,kr.deleteFile=de.deleteFile?function(He){return de.deleteFile(He)}:e.noop,kr.reportDiagnostic=qe||e.createDiagnosticReporter(de),kr.reportSolutionBuilderStatus=Cr||y(de),kr.now=e.maybeBind(de,de.now),kr}function te(de,we,qe,Cr,kr){de===void 0&&(de=e.sys);var He=j(de,we,qe,Cr);return He.reportErrorSummary=kr,He}e.createSolutionBuilderHost=te;function E(de,we,qe,Cr,kr){de===void 0&&(de=e.sys);var He=j(de,we,qe,Cr),lr=e.createWatchHost(de,kr);return e.copyProperties(He,lr),He}e.createSolutionBuilderWithWatchHost=E;function F(de){var we={};return e.commonOptionsWithBuild.forEach(function(qe){e.hasProperty(de,qe.name)&&(we[qe.name]=de[qe.name])}),we}function $(de,we,qe){return Ve(!1,de,we,qe)}e.createSolutionBuilder=$;function C(de,we,qe,Cr){return Ve(!0,de,we,qe,Cr)}e.createSolutionBuilderWithWatch=C;function K(de,we,qe,Cr,kr){var He=we,lr=we,Hr=He.getCurrentDirectory(),Je=e.createGetCanonicalFileName(He.useCaseSensitiveFileNames()),Sr=F(Cr),Yr=e.createCompilerHostFromProgramHost(He,function(){return Zr.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Yr,He),Yr.getParsedCommandLine=function(ir){return ie(Zr,ir,X(Zr,ir))},Yr.resolveModuleNames=e.maybeBind(He,He.resolveModuleNames),Yr.resolveTypeReferenceDirectives=e.maybeBind(He,He.resolveTypeReferenceDirectives);var ot=Yr.resolveModuleNames?void 0:e.createModuleResolutionCache(Hr,Je),_t=Yr.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(Hr,Je,void 0,ot==null?void 0:ot.getPackageJsonInfoCache());if(!Yr.resolveModuleNames){var kt=function(ir,ge,rr,pr){return e.resolveModuleName(ir,rr,Zr.projectCompilerOptions,Yr,ot,pr,ge).resolvedModule};Yr.resolveModuleNames=function(ir,ge,rr,pr,Lr,Ce){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(ir),e.Debug.checkDefined(Ce),ge,pr,kt)},Yr.getModuleResolutionCache=function(){return ot}}if(!Yr.resolveTypeReferenceDirectives){var Yt=function(ir,ge,rr){return e.resolveTypeReferenceDirective(ir,ge,Zr.projectCompilerOptions,Yr,rr,Zr.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Yr.resolveTypeReferenceDirectives=function(ir,ge,rr){return e.loadWithLocalCache(e.Debug.checkEachDefined(ir),ge,rr,Yt)}}var vn=e.createWatchFactory(lr,Cr),Mn=vn.watchFile,qn=vn.watchDirectory,nr=vn.writeLog,Zr={host:He,hostWithWatch:lr,currentDirectory:Hr,getCanonicalFileName:Je,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(He),write:e.maybeBind(He,He.trace),options:Cr,baseCompilerOptions:Sr,rootNames:qe,baseWatchOptions:kr,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:Yr,moduleResolutionCache:ot,typeReferenceDirectiveResolutionCache:_t,buildOrder:void 0,readFileWithCache:function(ir){return He.readFile(ir)},projectCompilerOptions:Sr,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:de,currentInvalidatedProject:void 0,watch:de,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:Mn,watchDirectory:qn,writeLog:nr};return Zr}function k(de,we){return e.toPath(we,de.currentDirectory,de.getCanonicalFileName)}function X(de,we){var qe=de.resolvedConfigFilePaths,Cr=qe.get(we);if(Cr!==void 0)return Cr;var kr=k(de,we);return qe.set(we,kr),kr}function O(de){return!!de.options}function x(de,we){var qe=de.configFileCache.get(we);return qe&&O(qe)?qe:void 0}function ie(de,we,qe){var Cr=de.configFileCache,kr=Cr.get(qe);if(kr)return O(kr)?kr:void 0;var He,lr=de.parseConfigFileHost,Hr=de.baseCompilerOptions,Je=de.baseWatchOptions,Sr=de.extendedConfigCache,Yr=de.host,ot;return Yr.getParsedCommandLine?(ot=Yr.getParsedCommandLine(we),ot||(He=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,we))):(lr.onUnRecoverableConfigFileDiagnostic=function(_t){return He=_t},ot=e.getParsedCommandLineOfConfigFile(we,Hr,lr,Sr,Je),lr.onUnRecoverableConfigFileDiagnostic=e.noop),Cr.set(qe,ot||He),ot}function Z(de,we){return e.resolveConfigFileProjectName(e.resolvePath(de.currentDirectory,we))}function re(de,we){for(var qe=new e.Map,Cr=new e.Map,kr=[],He,lr,Hr=0,Je=we;Hr<Je.length;Hr++){var Sr=Je[Hr];Yr(Sr)}return lr?{buildOrder:He||e.emptyArray,circularDiagnostics:lr}:He||e.emptyArray;function Yr(ot,_t){var kt=X(de,ot);if(!Cr.has(kt)){if(qe.has(kt)){_t||(lr||(lr=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,kr.join(`\r
`)));return}qe.set(kt,!0),kr.push(ot);var Yt=ie(de,ot,kt);if(Yt&&Yt.projectReferences)for(var vn=0,Mn=Yt.projectReferences;vn<Mn.length;vn++){var qn=Mn[vn],nr=Z(de,qn.path);Yr(nr,_t||qn.circular)}kr.pop(),Cr.set(kt,!0),(He||(He=[])).push(ot)}}}function q(de){return de.buildOrder||P(de)}function P(de){var we=re(de,de.rootNames.map(function(kr){return Z(de,kr)}));de.resolvedConfigFilePaths.clear();var qe=new e.Map(m(we).map(function(kr){return[X(de,kr),!0]})),Cr={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(de.configFileCache,qe,Cr),e.mutateMapSkippingNewValues(de.projectStatus,qe,Cr),e.mutateMapSkippingNewValues(de.buildInfoChecked,qe,Cr),e.mutateMapSkippingNewValues(de.builderPrograms,qe,Cr),e.mutateMapSkippingNewValues(de.diagnostics,qe,Cr),e.mutateMapSkippingNewValues(de.projectPendingBuild,qe,Cr),e.mutateMapSkippingNewValues(de.projectErrorsReported,qe,Cr),de.watch&&(e.mutateMapSkippingNewValues(de.allWatchedConfigFiles,qe,{onDeleteValue:e.closeFileWatcher}),de.allWatchedExtendedConfigFiles.forEach(function(kr){kr.projects.forEach(function(He){qe.has(He)||kr.projects.delete(He)}),kr.close()}),e.mutateMapSkippingNewValues(de.allWatchedWildcardDirectories,qe,{onDeleteValue:function(kr){return kr.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(de.allWatchedInputFiles,qe,{onDeleteValue:function(kr){return kr.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(de.allWatchedPackageJsonFiles,qe,{onDeleteValue:function(kr){return kr.forEach(e.closeFileWatcher)}})),de.buildOrder=we}function M(de,we,qe){var Cr=we&&Z(de,we),kr=q(de);if(L(kr))return kr;if(Cr){var He=X(de,Cr),lr=e.findIndex(kr,function(Je){return X(de,Je)===He});if(lr===-1)return}var Hr=Cr?re(de,[Cr]):kr;return e.Debug.assert(!L(Hr)),e.Debug.assert(!qe||Cr!==void 0),e.Debug.assert(!qe||Hr[Hr.length-1]===Cr),qe?Hr.slice(0,Hr.length-1):Hr}function Q(de){de.cache&&H(de);var we=de.compilerHost,qe=de.host,Cr=de.readFileWithCache,kr=we.getSourceFile,He=e.changeCompilerHostLikeToUseCache(qe,function(kt){return k(de,kt)},function(){for(var kt=[],Yt=0;Yt<arguments.length;Yt++)kt[Yt]=arguments[Yt];return kr.call.apply(kr,Bt([we],kt,!1))}),lr=He.originalReadFile,Hr=He.originalFileExists,Je=He.originalDirectoryExists,Sr=He.originalCreateDirectory,Yr=He.originalWriteFile,ot=He.getSourceFileWithCache,_t=He.readFileWithCache;de.readFileWithCache=_t,we.getSourceFile=ot,de.cache={originalReadFile:lr,originalFileExists:Hr,originalDirectoryExists:Je,originalCreateDirectory:Sr,originalWriteFile:Yr,originalReadFileWithCache:Cr,originalGetSourceFile:kr}}function H(de){if(!!de.cache){var we=de.cache,qe=de.host,Cr=de.compilerHost,kr=de.extendedConfigCache,He=de.moduleResolutionCache,lr=de.typeReferenceDirectiveResolutionCache;qe.readFile=we.originalReadFile,qe.fileExists=we.originalFileExists,qe.directoryExists=we.originalDirectoryExists,qe.createDirectory=we.originalCreateDirectory,qe.writeFile=we.originalWriteFile,Cr.getSourceFile=we.originalGetSourceFile,de.readFileWithCache=we.originalReadFileWithCache,kr.clear(),He==null||He.clear(),lr==null||lr.clear(),de.cache=void 0}}function w(de,we){de.projectStatus.delete(we),de.diagnostics.delete(we)}function d(de,we,qe){var Cr=de.projectPendingBuild,kr=Cr.get(we);(kr===void 0||kr<qe)&&Cr.set(we,qe)}function B(de,we){if(!!de.allProjectBuildPending){de.allProjectBuildPending=!1,de.options.watch&&Nr(de,e.Diagnostics.Starting_compilation_in_watch_mode),Q(de);var qe=m(q(de));qe.forEach(function(Cr){return de.projectPendingBuild.set(X(de,Cr),e.ConfigFileProgramReloadLevel.None)}),we&&we.throwIfCancellationRequested()}}var T;(function(de){de[de.Build=0]="Build",de[de.UpdateBundle=1]="UpdateBundle",de[de.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"})(T=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={}));function _(de,we){return de.projectPendingBuild.delete(we),de.currentInvalidatedProject=void 0,de.diagnostics.has(we)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function h(de,we,qe,Cr,kr){var He=!0;return{kind:T.UpdateOutputFileStamps,project:we,projectPath:qe,buildOrder:kr,getCompilerOptions:function(){return Cr.options},getCurrentDirectory:function(){return de.currentDirectory},updateOutputFileStatmps:function(){J(de,Cr,qe),He=!1},done:function(){return He&&J(de,Cr,qe),_(de,qe)}}}var R;(function(de){de[de.CreateProgram=0]="CreateProgram",de[de.SyntaxDiagnostics=1]="SyntaxDiagnostics",de[de.SemanticDiagnostics=2]="SemanticDiagnostics",de[de.Emit=3]="Emit",de[de.EmitBundle=4]="EmitBundle",de[de.EmitBuildInfo=5]="EmitBuildInfo",de[de.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",de[de.QueueReferencingProjects=7]="QueueReferencingProjects",de[de.Done=8]="Done"})(R||(R={}));function b(de,we,qe,Cr,kr,He,lr){var Hr=de===T.Build?R.CreateProgram:R.EmitBundle,Je,Sr,Yr;return de===T.Build?{kind:de,project:qe,projectPath:Cr,buildOrder:lr,getCompilerOptions:function(){return He.options},getCurrentDirectory:function(){return we.currentDirectory},getBuilderProgram:function(){return _t(e.identity)},getProgram:function(){return _t(function(pr){return pr.getProgramOrUndefined()})},getSourceFile:function(pr){return _t(function(Lr){return Lr.getSourceFile(pr)})},getSourceFiles:function(){return kt(function(pr){return pr.getSourceFiles()})},getOptionsDiagnostics:function(pr){return kt(function(Lr){return Lr.getOptionsDiagnostics(pr)})},getGlobalDiagnostics:function(pr){return kt(function(Lr){return Lr.getGlobalDiagnostics(pr)})},getConfigFileParsingDiagnostics:function(){return kt(function(pr){return pr.getConfigFileParsingDiagnostics()})},getSyntacticDiagnostics:function(pr,Lr){return kt(function(Ce){return Ce.getSyntacticDiagnostics(pr,Lr)})},getAllDependencies:function(pr){return kt(function(Lr){return Lr.getAllDependencies(pr)})},getSemanticDiagnostics:function(pr,Lr){return kt(function(Ce){return Ce.getSemanticDiagnostics(pr,Lr)})},getSemanticDiagnosticsOfNextAffectedFile:function(pr,Lr){return _t(function(Ce){return Ce.getSemanticDiagnosticsOfNextAffectedFile&&Ce.getSemanticDiagnosticsOfNextAffectedFile(pr,Lr)})},emit:function(pr,Lr,Ce,cr,$e){if(pr||cr)return _t(function(De){var z,ke;return De.emit(pr,Lr,Ce,cr,$e||((ke=(z=we.host).getCustomTransformers)===null||ke===void 0?void 0:ke.call(z,qe)))});if(rr(R.SemanticDiagnostics,Ce),Hr===R.EmitBuildInfo)return Zr(Lr,Ce);if(Hr===R.Emit)return nr(Lr,Ce,$e)},done:ot}:{kind:de,project:qe,projectPath:Cr,buildOrder:lr,getCompilerOptions:function(){return He.options},getCurrentDirectory:function(){return we.currentDirectory},emit:function(pr,Lr){return Hr!==R.EmitBundle?Yr:ge(pr,Lr)},done:ot};function ot(pr,Lr,Ce){return rr(R.Done,pr,Lr,Ce),_(we,Cr)}function _t(pr){return rr(R.CreateProgram),Je&&pr(Je)}function kt(pr){return _t(pr)||e.emptyArray}function Yt(){var pr,Lr;if(e.Debug.assert(Je===void 0),we.options.dry){Er(we,e.Diagnostics.A_non_dry_build_would_build_project_0,qe),Sr=u.Success,Hr=R.QueueReferencingProjects;return}if(we.options.verbose&&Er(we,e.Diagnostics.Building_project_0,qe),He.fileNames.length===0){xr(we,Cr,e.getConfigFileParsingDiagnostics(He)),Sr=u.None,Hr=R.QueueReferencingProjects;return}var Ce=we.host,cr=we.compilerHost;we.projectCompilerOptions=He.options,(pr=we.moduleResolutionCache)===null||pr===void 0||pr.update(He.options),(Lr=we.typeReferenceDirectiveResolutionCache)===null||Lr===void 0||Lr.update(He.options),Je=Ce.createProgram(He.fileNames,He.options,cr,A(we,Cr,He),e.getConfigFileParsingDiagnostics(He),He.projectReferences),we.watch&&(we.lastCachedPackageJsonLookups.set(Cr,we.moduleResolutionCache&&e.map(we.moduleResolutionCache.getPackageJsonInfoCache().entries(),function($e){var De=$e[0],z=$e[1];return[we.host.realpath&&z?k(we,we.host.realpath(De)):De,z]})),we.builderPrograms.set(Cr,Je)),Hr++}function vn(pr,Lr,Ce){var cr;pr.length?(cr=Se(we,Cr,Je,He,pr,Lr,Ce),Sr=cr.buildResult,Hr=cr.step):Hr++}function Mn(pr){e.Debug.assertIsDefined(Je),vn(Bt(Bt(Bt(Bt([],Je.getConfigFileParsingDiagnostics(),!0),Je.getOptionsDiagnostics(pr),!0),Je.getGlobalDiagnostics(pr),!0),Je.getSyntacticDiagnostics(void 0,pr),!0),u.SyntaxErrors,"Syntactic")}function qn(pr){vn(e.Debug.checkDefined(Je).getSemanticDiagnostics(void 0,pr),u.TypeErrors,"Semantic")}function nr(pr,Lr,Ce){var cr,$e,De;e.Debug.assertIsDefined(Je),e.Debug.assert(Hr===R.Emit),Je.backupState();var z,ke=function(zr){return(z||(z=[])).push(zr)},dr=[],Xe=e.emitFilesAndReportErrors(Je,ke,void 0,void 0,function(zr,ut,mt){return dr.push({name:zr,text:ut,writeByteOrderMark:mt})},Lr,!1,Ce||((De=($e=we.host).getCustomTransformers)===null||De===void 0?void 0:De.call($e,qe))).emitResult;if(z)return Je.restoreState(),cr=Se(we,Cr,Je,He,z,u.DeclarationEmitErrors,"Declaration file"),Sr=cr.buildResult,Hr=cr.step,{emitSkipped:!0,diagnostics:Xe.diagnostics};var Qe=we.host,Ir=we.compilerHost,Jr=u.DeclarationOutputUnchanged,Or=n,Be=!1,yr=e.createDiagnosticCollection(),Rr=new e.Map;return dr.forEach(function(zr){var ut=zr.name,mt=zr.text,Lt=zr.writeByteOrderMark,vt;!Be&&V(ut)&&(Qe.fileExists(ut)&&we.readFileWithCache(ut)===mt?vt=Qe.getModifiedTime(ut):(Jr&=~u.DeclarationOutputUnchanged,Be=!0)),Rr.set(k(we,ut),ut),e.writeFile(pr?{writeFile:pr}:Ir,yr,ut,mt,Lt),vt!==void 0&&(Or=I(vt,Or))}),ir(yr,Rr,Or,Be,dr.length?dr[0].name:e.getFirstProjectOutput(He,!Qe.useCaseSensitiveFileNames()),Jr),Xe}function Zr(pr,Lr){e.Debug.assertIsDefined(Je),e.Debug.assert(Hr===R.EmitBuildInfo);var Ce=Je.emitBuildInfo(pr,Lr);return Ce.diagnostics.length&&(ur(we,Ce.diagnostics),we.diagnostics.set(Cr,Bt(Bt([],we.diagnostics.get(Cr),!0),Ce.diagnostics,!0)),Sr=u.EmitErrors&Sr),Ce.emittedFiles&&we.write&&Ce.emittedFiles.forEach(function(cr){return pe(we,He,cr)}),_e(we,Je,He),Hr=R.QueueReferencingProjects,Ce}function ir(pr,Lr,Ce,cr,$e,De){var z,ke=pr.getDiagnostics();if(ke.length)return z=Se(we,Cr,Je,He,ke,u.EmitErrors,"Emit"),Sr=z.buildResult,Hr=z.step,ke;we.write&&Lr.forEach(function(Xe){return pe(we,He,Xe)});var dr=ne(we,He,Ce,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,Lr);return we.diagnostics.delete(Cr),we.projectStatus.set(Cr,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:cr?c:dr,oldestOutputFileName:$e}),_e(we,Je,He),Hr=R.QueueReferencingProjects,Sr=De,ke}function ge(pr,Lr){var Ce,cr;if(e.Debug.assert(de===T.UpdateBundle),we.options.dry){Er(we,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,qe),Sr=u.Success,Hr=R.QueueReferencingProjects;return}we.options.verbose&&Er(we,e.Diagnostics.Updating_output_of_project_0,qe);var $e=we.compilerHost;we.projectCompilerOptions=He.options;var De=e.emitUsingBuildInfo(He,$e,function(Xe){var Qe=Z(we,Xe.path);return ie(we,Qe,X(we,Qe))},Lr||((cr=(Ce=we.host).getCustomTransformers)===null||cr===void 0?void 0:cr.call(Ce,qe)));if(e.isString(De))return Er(we,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,qe,gr(we,De)),Hr=R.BuildInvalidatedProjectOfBundle,Yr=b(T.Build,we,qe,Cr,kr,He,lr);e.Debug.assert(!!De.length);var z=e.createDiagnosticCollection(),ke=new e.Map;De.forEach(function(Xe){var Qe=Xe.name,Ir=Xe.text,Jr=Xe.writeByteOrderMark;ke.set(k(we,Qe),Qe),e.writeFile(pr?{writeFile:pr}:$e,z,Qe,Ir,Jr)});var dr=ir(z,ke,n,!1,De[0].name,u.DeclarationOutputUnchanged);return{emitSkipped:!1,diagnostics:dr}}function rr(pr,Lr,Ce,cr){for(;Hr<=pr&&Hr<R.Done;){var $e=Hr;switch(Hr){case R.CreateProgram:Yt();break;case R.SyntaxDiagnostics:Mn(Lr);break;case R.SemanticDiagnostics:qn(Lr);break;case R.Emit:nr(Ce,Lr,cr);break;case R.EmitBuildInfo:Zr(Ce,Lr);break;case R.EmitBundle:ge(Ce,cr);break;case R.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(Yr).done(Lr,Ce,cr),Hr=R.Done;break;case R.QueueReferencingProjects:le(we,qe,Cr,kr,He,lr,e.Debug.checkDefined(Sr)),Hr++;break;case R.Done:default:e.assertType(Hr)}e.Debug.assert(Hr>$e)}}}function G(de,we,qe){var Cr=de.options;return we.type!==e.UpToDateStatusType.OutOfDateWithPrepend||Cr.force?!0:qe.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(qe).length||!e.isIncrementalCompilation(qe.options)}function Y(de,we,qe){if(!!de.projectPendingBuild.size&&!L(we)){if(de.currentInvalidatedProject)return e.arrayIsEqualTo(de.currentInvalidatedProject.buildOrder,we)?de.currentInvalidatedProject:void 0;for(var Cr=de.options,kr=de.projectPendingBuild,He=0;He<we.length;He++){var lr=we[He],Hr=X(de,lr),Je=de.projectPendingBuild.get(Hr);if(Je!==void 0){qe&&(qe=!1,Mr(de,we));var Sr=ie(de,lr,Hr);if(!Sr){sr(de,Hr),kr.delete(Hr);continue}Je===e.ConfigFileProgramReloadLevel.Full?(xe(de,lr,Hr,Sr),Re(de,Hr,Sr),ce(de,lr,Hr,Sr),Ue(de,lr,Hr,Sr),We(de,lr,Hr,Sr)):Je===e.ConfigFileProgramReloadLevel.Partial&&(Sr.fileNames=e.getFileNamesFromConfigSpecs(Sr.options.configFile.configFileSpecs,e.getDirectoryPath(lr),Sr.options,de.parseConfigFileHost),e.updateErrorForNoInputFiles(Sr.fileNames,lr,Sr.options.configFile.configFileSpecs,Sr.errors,e.canJsonReportNoInputFiles(Sr.raw)),Ue(de,lr,Hr,Sr),We(de,lr,Hr,Sr));var Yr=be(de,Sr,Hr);if(Ar(de,lr,Yr),!Cr.force){if(Yr.type===e.UpToDateStatusType.UpToDate){xr(de,Hr,e.getConfigFileParsingDiagnostics(Sr)),kr.delete(Hr),Cr.dry&&Er(de,e.Diagnostics.Project_0_is_up_to_date,lr);continue}if(Yr.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return xr(de,Hr,e.getConfigFileParsingDiagnostics(Sr)),h(de,lr,Hr,Sr,we)}if(Yr.type===e.UpToDateStatusType.UpstreamBlocked){xr(de,Hr,e.getConfigFileParsingDiagnostics(Sr)),kr.delete(Hr),Cr.verbose&&Er(de,Yr.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,lr,Yr.upstreamProjectName);continue}if(Yr.type===e.UpToDateStatusType.ContainerOnly){xr(de,Hr,e.getConfigFileParsingDiagnostics(Sr)),kr.delete(Hr);continue}return b(G(de,Yr,Sr)?T.Build:T.UpdateBundle,de,lr,Hr,He,Sr,we)}}}}function pe(de,we,qe){var Cr=de.write;Cr&&we.options.listEmittedFiles&&Cr("TSFILE: ".concat(qe))}function A(de,we,qe){var Cr=de.options,kr=de.builderPrograms,He=de.compilerHost;if(!Cr.force){var lr=kr.get(we);return lr||e.readBuilderProgram(qe.options,He)}}function _e(de,we,qe){we?(we&&de.write&&e.listFiles(we,de.write),de.host.afterProgramEmitAndDiagnostics&&de.host.afterProgramEmitAndDiagnostics(we),we.releaseProgram()):de.host.afterEmitBundle&&de.host.afterEmitBundle(qe),de.projectCompilerOptions=de.baseCompilerOptions}function Se(de,we,qe,Cr,kr,He,lr){var Hr=!(He&u.SyntaxErrors)&&qe&&!e.outFile(qe.getCompilerOptions());return xr(de,we,kr),de.projectStatus.set(we,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(lr," errors")}),Hr?{buildResult:He,step:R.EmitBuildInfo}:(_e(de,qe,Cr),{buildResult:He,step:R.QueueReferencingProjects})}function ae(de,we,qe,Cr){var kr=e.getModifiedTime(de.host,we);if(qe<kr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:Cr,newerInputFileName:we}}function D(de,we,qe){for(var Cr=!!de.options.force,kr=void 0,He=n,lr=de.host,Hr=0,Je=we.fileNames;Hr<Je.length;Hr++){var Sr=Je[Hr];if(!lr.fileExists(Sr))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(Sr," does not exist")};if(!Cr){var Yr=e.getModifiedTime(lr,Sr);Yr>He&&(kr=Sr,He=Yr)}}if(!we.fileNames.length&&!e.canJsonReportNoInputFiles(we.raw))return{type:e.UpToDateStatusType.ContainerOnly};var ot=e.getAllProjectOutputs(we,!lr.useCaseSensitiveFileNames()),_t="(none)",kt=c,Yt="(none)",vn=n,Mn,qn=n,nr=!1;if(!Cr)for(var Zr=0,ir=ot;Zr<ir.length;Zr++){var ge=ir[Zr];if(!lr.fileExists(ge)){Mn=ge;break}var rr=e.getModifiedTime(lr,ge);if(rr<kt&&(kt=rr,_t=ge),rr<He){nr=!0;break}if(rr>vn&&(vn=rr,Yt=ge),V(ge)){var pr=e.getModifiedTime(lr,ge);qn=I(qn,pr)}}var Lr=!1,Ce=!1,cr;if(we.projectReferences){de.projectStatus.set(qe,{type:e.UpToDateStatusType.ComputingUpstream});for(var $e=0,De=we.projectReferences;$e<De.length;$e++){var z=De[$e];Ce=Ce||!!z.prepend;var ke=e.resolveProjectReferencePath(z),dr=X(de,ke),Xe=be(de,ie(de,ke,dr),dr);if(!(Xe.type===e.UpToDateStatusType.ComputingUpstream||Xe.type===e.UpToDateStatusType.ContainerOnly)){if(Xe.type===e.UpToDateStatusType.Unbuildable||Xe.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:z.path,upstreamProjectBlocked:Xe.type===e.UpToDateStatusType.UpstreamBlocked};if(Xe.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:z.path};if(!Cr&&!Mn){if(Xe.newestInputFileTime&&Xe.newestInputFileTime<=kt)continue;if(Xe.newestDeclarationFileContentChangedTime&&Xe.newestDeclarationFileContentChangedTime<=kt){Lr=!0,cr=z.path;continue}return e.Debug.assert(_t!==void 0,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:_t,newerProjectName:z.path}}}}}if(Mn!==void 0)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:Mn};if(nr)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:_t,newerInputFileName:kr};var Qe=ae(de,we.options.configFilePath,kt,_t);if(Qe)return Qe;var Ir=e.forEach(we.options.configFile.extendedSourceFiles||e.emptyArray,function(Rr){return ae(de,Rr,kt,_t)});if(Ir)return Ir;var Jr=e.forEach(de.lastCachedPackageJsonLookups.get(qe)||e.emptyArray,function(Rr){var zr=Rr[0];return ae(de,zr,kt,_t)});if(Jr)return Jr;if(!Cr&&!de.buildInfoChecked.has(qe)){de.buildInfoChecked.set(qe,!0);var Or=e.getTsBuildInfoEmitOutputFilePath(we.options);if(Or){var Be=de.readFileWithCache(Or),yr=Be&&e.getBuildInfo(Be);if(yr&&(yr.bundle||yr.program)&&yr.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:yr.version}}}return Ce&&Lr?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:_t,newerProjectName:cr}:{type:Lr?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:qn,newestInputFileTime:He,newestOutputFileTime:vn,newestInputFileName:kr,newestOutputFileName:Yt,oldestOutputFileName:_t}}function be(de,we,qe){if(we===void 0)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var Cr=de.projectStatus.get(qe);if(Cr!==void 0)return Cr;var kr=D(de,we,qe);return de.projectStatus.set(qe,kr),kr}function ne(de,we,qe,Cr,kr){if(we.options.noEmit)return qe;var He=de.host,lr=e.getAllProjectOutputs(we,!He.useCaseSensitiveFileNames());if(!kr||lr.length!==kr.size)for(var Hr=!!de.options.verbose,Je=He.now?He.now():new Date,Sr=0,Yr=lr;Sr<Yr.length;Sr++){var ot=Yr[Sr];kr&&kr.has(k(de,ot))||(Hr&&(Hr=!1,Er(de,Cr,we.options.configFilePath)),V(ot)&&(qe=I(qe,e.getModifiedTime(He,ot))),He.setModifiedTime(ot,Je))}return qe}function J(de,we,qe){if(de.options.dry)return Er(de,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,we.options.configFilePath);var Cr=ne(de,we,n,e.Diagnostics.Updating_output_timestamps_of_project_0);de.projectStatus.set(qe,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:Cr,oldestOutputFileName:e.getFirstProjectOutput(we,!de.host.useCaseSensitiveFileNames())})}function le(de,we,qe,Cr,kr,He,lr){if(!(lr&u.AnyErrors)&&!!kr.options.composite)for(var Hr=Cr+1;Hr<He.length;Hr++){var Je=He[Hr],Sr=X(de,Je);if(!de.projectPendingBuild.has(Sr)){var Yr=ie(de,Je,Sr);if(!(!Yr||!Yr.projectReferences))for(var ot=0,_t=Yr.projectReferences;ot<_t.length;ot++){var kt=_t[ot],Yt=Z(de,kt.path);if(X(de,Yt)===qe){var vn=de.projectStatus.get(Sr);if(vn)switch(vn.type){case e.UpToDateStatusType.UpToDate:if(lr&u.DeclarationOutputUnchanged){kt.prepend?de.projectStatus.set(Sr,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:vn.oldestOutputFileName,newerProjectName:we}):vn.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:lr&u.DeclarationOutputUnchanged||de.projectStatus.set(Sr,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:vn.type===e.UpToDateStatusType.OutOfDateWithPrepend?vn.outOfDateOutputFileName:vn.oldestOutputFileName,newerProjectName:we});break;case e.UpToDateStatusType.UpstreamBlocked:X(de,Z(de,vn.upstreamProjectName))===qe&&w(de,Sr);break}d(de,Sr,e.ConfigFileProgramReloadLevel.None);break}}}}}function Te(de,we,qe,Cr,kr,He){var lr=M(de,we,He);if(!lr)return e.ExitStatus.InvalidProject_OutputsSkipped;B(de,qe);for(var Hr=!0,Je=0;;){var Sr=Y(de,lr,Hr);if(!Sr)break;Hr=!1,Sr.done(qe,Cr,kr==null?void 0:kr(Sr.project)),de.diagnostics.has(Sr.projectPath)||Je++}return H(de),i(de,lr),Ne(de,lr),L(lr)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:lr.some(function(Yr){return de.diagnostics.has(X(de,Yr))})?Je?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function Me(de,we,qe){var Cr=M(de,we,qe);if(!Cr)return e.ExitStatus.InvalidProject_OutputsSkipped;if(L(Cr))return ur(de,Cr.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var kr=de.options,He=de.host,lr=kr.dry?[]:void 0,Hr=0,Je=Cr;Hr<Je.length;Hr++){var Sr=Je[Hr],Yr=X(de,Sr),ot=ie(de,Sr,Yr);if(ot===void 0){sr(de,Yr);continue}var _t=e.getAllProjectOutputs(ot,!He.useCaseSensitiveFileNames());if(!!_t.length)for(var kt=new e.Set(ot.fileNames.map(function(qn){return k(de,qn)})),Yt=0,vn=_t;Yt<vn.length;Yt++){var Mn=vn[Yt];kt.has(k(de,Mn))||He.fileExists(Mn)&&(lr?lr.push(Mn):(He.deleteFile(Mn),Ke(de,Yr,e.ConfigFileProgramReloadLevel.None)))}}return lr&&Er(de,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,lr.map(function(qn){return`\r
* `.concat(qn)}).join("")),e.ExitStatus.Success}function Ke(de,we,qe){de.host.getParsedCommandLine&&qe===e.ConfigFileProgramReloadLevel.Partial&&(qe=e.ConfigFileProgramReloadLevel.Full),qe===e.ConfigFileProgramReloadLevel.Full&&(de.configFileCache.delete(we),de.buildOrder=void 0),de.needsSummary=!0,w(de,we),d(de,we,qe),Q(de)}function Ae(de,we,qe){de.reportFileChangeDetected=!0,Ke(de,we,qe),Ge(de)}function Ge(de){var we=de.hostWithWatch;!we.setTimeout||!we.clearTimeout||(de.timerToBuildInvalidatedProject&&we.clearTimeout(de.timerToBuildInvalidatedProject),de.timerToBuildInvalidatedProject=we.setTimeout(se,250,de))}function se(de){de.timerToBuildInvalidatedProject=void 0,de.reportFileChangeDetected&&(de.reportFileChangeDetected=!1,de.projectErrorsReported.clear(),Nr(de,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var we=q(de),qe=Y(de,we,!1);if(qe&&(qe.done(),de.projectPendingBuild.size)){de.watch&&!de.timerToBuildInvalidatedProject&&Ge(de);return}H(de),i(de,we)}function xe(de,we,qe,Cr){!de.watch||de.allWatchedConfigFiles.has(qe)||de.allWatchedConfigFiles.set(qe,de.watchFile(we,function(){Ae(de,qe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Cr==null?void 0:Cr.watchOptions,e.WatchType.ConfigFile,we))}function Re(de,we,qe){e.updateSharedExtendedConfigFileWatcher(we,qe==null?void 0:qe.options,de.allWatchedExtendedConfigFiles,function(Cr,kr){return de.watchFile(Cr,function(){var He;return(He=de.allWatchedExtendedConfigFiles.get(kr))===null||He===void 0?void 0:He.projects.forEach(function(lr){return Ae(de,lr,e.ConfigFileProgramReloadLevel.Full)})},e.PollingInterval.High,qe==null?void 0:qe.watchOptions,e.WatchType.ExtendedConfigFile)},function(Cr){return k(de,Cr)})}function ce(de,we,qe,Cr){!de.watch||e.updateWatchingWildcardDirectories(p(de.allWatchedWildcardDirectories,qe),new e.Map(e.getEntries(Cr.wildcardDirectories)),function(kr,He){return de.watchDirectory(kr,function(lr){var Hr;e.isIgnoredFileFromWildCardWatching({watchedDirPath:k(de,kr),fileOrDirectory:lr,fileOrDirectoryPath:k(de,lr),configFileName:we,currentDirectory:de.currentDirectory,options:Cr.options,program:de.builderPrograms.get(qe)||((Hr=x(de,qe))===null||Hr===void 0?void 0:Hr.fileNames),useCaseSensitiveFileNames:de.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(Je){return de.writeLog(Je)},toPath:function(Je){return k(de,Je)}})||Ae(de,qe,e.ConfigFileProgramReloadLevel.Partial)},He,Cr==null?void 0:Cr.watchOptions,e.WatchType.WildcardDirectory,we)})}function Ue(de,we,qe,Cr){!de.watch||e.mutateMap(p(de.allWatchedInputFiles,qe),e.arrayToMap(Cr.fileNames,function(kr){return k(de,kr)}),{createNewValue:function(kr,He){return de.watchFile(He,function(){return Ae(de,qe,e.ConfigFileProgramReloadLevel.None)},e.PollingInterval.Low,Cr==null?void 0:Cr.watchOptions,e.WatchType.SourceFile,we)},onDeleteValue:e.closeFileWatcher})}function We(de,we,qe,Cr){!de.watch||!de.lastCachedPackageJsonLookups||e.mutateMap(p(de.allWatchedPackageJsonFiles,qe),new e.Map(de.lastCachedPackageJsonLookups.get(qe)),{createNewValue:function(kr,He){return de.watchFile(kr,function(){return Ae(de,qe,e.ConfigFileProgramReloadLevel.Full)},e.PollingInterval.High,Cr==null?void 0:Cr.watchOptions,e.WatchType.PackageJson,we)},onDeleteValue:e.closeFileWatcher})}function Ne(de,we){if(!!de.watchAllProjectsPending){de.watchAllProjectsPending=!1;for(var qe=0,Cr=m(we);qe<Cr.length;qe++){var kr=Cr[qe],He=X(de,kr),lr=ie(de,kr,He);xe(de,kr,He,lr),Re(de,He,lr),lr&&(ce(de,kr,He,lr),Ue(de,kr,He,lr),We(de,kr,He,lr))}}}function ve(de){e.clearMap(de.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(de.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(de.allWatchedWildcardDirectories,function(we){return e.clearMap(we,e.closeFileWatcherOf)}),e.clearMap(de.allWatchedInputFiles,function(we){return e.clearMap(we,e.closeFileWatcher)}),e.clearMap(de.allWatchedPackageJsonFiles,function(we){return e.clearMap(we,e.closeFileWatcher)})}function Ve(de,we,qe,Cr,kr){var He=K(de,we,qe,Cr,kr);return{build:function(lr,Hr,Je,Sr){return Te(He,lr,Hr,Je,Sr)},clean:function(lr){return Me(He,lr)},buildReferences:function(lr,Hr,Je,Sr){return Te(He,lr,Hr,Je,Sr,!0)},cleanReferences:function(lr){return Me(He,lr,!0)},getNextInvalidatedProject:function(lr){return B(He,lr),Y(He,q(He),!1)},getBuildOrder:function(){return q(He)},getUpToDateStatusOfProject:function(lr){var Hr=Z(He,lr),Je=X(He,Hr);return be(He,ie(He,Hr,Je),Je)},invalidateProject:function(lr,Hr){return Ke(He,lr,Hr||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return se(He)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(He.configFileCache.values(),function(lr){return O(lr)?lr:void 0}))},close:function(){return ve(He)}}}function gr(de,we){return e.convertToRelativePath(we,de.currentDirectory,function(qe){return de.getCanonicalFileName(qe)})}function Er(de,we){for(var qe=[],Cr=2;Cr<arguments.length;Cr++)qe[Cr-2]=arguments[Cr];de.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,Bt([we],qe,!1)))}function Nr(de,we){for(var qe,Cr,kr=[],He=2;He<arguments.length;He++)kr[He-2]=arguments[He];(Cr=(qe=de.hostWithWatch).onWatchStatusChange)===null||Cr===void 0||Cr.call(qe,e.createCompilerDiagnostic.apply(void 0,Bt([we],kr,!1)),de.host.getNewLine(),de.baseCompilerOptions)}function ur(de,we){var qe=de.host;we.forEach(function(Cr){return qe.reportDiagnostic(Cr)})}function xr(de,we,qe){ur(de,qe),de.projectErrorsReported.set(we,!0),qe.length&&de.diagnostics.set(we,qe)}function sr(de,we){xr(de,we,[de.configFileCache.get(we)])}function i(de,we){if(!!de.needsSummary){de.needsSummary=!1;var qe=de.watch||!!de.host.reportErrorSummary,Cr=de.diagnostics,kr=0;L(we)?(Mr(de,we.buildOrder),ur(de,we.circularDiagnostics),qe&&(kr+=e.getErrorCountForSummary(we.circularDiagnostics))):(we.forEach(function(He){var lr=X(de,He);de.projectErrorsReported.has(lr)||ur(de,Cr.get(lr)||e.emptyArray)}),qe&&Cr.forEach(function(He){return kr+=e.getErrorCountForSummary(He)})),de.watch?Nr(de,e.getWatchErrorSummaryDiagnosticMessage(kr),kr):de.host.reportErrorSummary&&de.host.reportErrorSummary(kr)}}function Mr(de,we){de.options.verbose&&Er(de,e.Diagnostics.Projects_in_this_build_Colon_0,we.map(function(qe){return`\r
* `+gr(de,qe)}).join(""))}function fr(de,we,qe){if(de.options.force&&(qe.type===e.UpToDateStatusType.UpToDate||qe.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Er(de,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,gr(de,we));switch(qe.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,gr(de,we),gr(de,qe.outOfDateOutputFileName),gr(de,qe.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,gr(de,we),gr(de,qe.outOfDateOutputFileName),gr(de,qe.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,gr(de,we),gr(de,qe.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(qe.newestInputFileTime!==void 0)return Er(de,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,gr(de,we),gr(de,qe.newestInputFileName||""),gr(de,qe.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,gr(de,we),gr(de,qe.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Er(de,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,gr(de,we));case e.UpToDateStatusType.UpstreamOutOfDate:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,gr(de,we),gr(de,qe.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Er(de,qe.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,gr(de,we),gr(de,qe.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Er(de,e.Diagnostics.Failed_to_parse_file_0_Colon_1,gr(de,we),qe.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Er(de,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,gr(de,we),qe.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(qe)}}function Ar(de,we,qe){de.options.verbose&&fr(de,we,qe)}})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.ActionSet="action::set",c.ActionInvalidate="action::invalidate",c.ActionPackageInstalled="action::packageInstalled",c.EventTypesRegistry="event::typesRegistry",c.EventBeginInstallTypes="event::beginInstallTypes",c.EventEndInstallTypes="event::endInstallTypes",c.EventInitializationFailed="event::initializationFailed";var u;(function(V){V.GlobalCacheLocation="--globalTypingsCacheLocation",V.LogFile="--logFile",V.EnableTelemetry="--enableTelemetry",V.TypingSafeListLocation="--typingSafeListLocation",V.TypesMapLocation="--typesMapLocation",V.NpmLocation="--npmLocation",V.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(u=c.Arguments||(c.Arguments={}));function g(V){return e.sys.args.indexOf(V)>=0}c.hasArgument=g;function p(V){var L=e.sys.args.indexOf(V);return L>=0&&L<e.sys.args.length-1?e.sys.args[L+1]:void 0}c.findArgument=p;function I(){var V=new Date;return"".concat(e.padLeft(V.getHours().toString(),2,"0"),":").concat(e.padLeft(V.getMinutes().toString(),2,"0"),":").concat(e.padLeft(V.getSeconds().toString(),2,"0"),".").concat(e.padLeft(V.getMilliseconds().toString(),3,"0"))}c.nowString=I})(n=e.server||(e.server={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u($,C){var K=new e.Version(e.getProperty(C,"ts".concat(e.versionMajorMinor))||e.getProperty(C,"latest"));return K.compareTo($.version)<=0}c.isTypingUpToDate=u;var g=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];c.prefixedNodeCoreModuleList=g.map(function($){return"node:".concat($)}),c.nodeCoreModuleList=Bt(Bt([],g,!0),c.prefixedNodeCoreModuleList,!0),c.nodeCoreModules=new e.Set(c.nodeCoreModuleList);function p($){return c.nodeCoreModules.has($)?"node":$}c.nonRelativeModuleNameForTypingCache=p;function I($,C){var K=e.readConfigFile(C,function(k){return $.readFile(k)});return new e.Map(e.getEntries(K.config))}c.loadSafeList=I;function V($,C){var K=e.readConfigFile(C,function(k){return $.readFile(k)});if(K.config)return new e.Map(e.getEntries(K.config.simpleMap))}c.loadTypesMap=V;function L($,C,K,k,X,O,x,ie,Z){if(!x||!x.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var re=new e.Map;K=e.mapDefined(K,function(A){var _e=e.normalizePath(A);if(e.hasJSFileExtension(_e))return _e});var q=[];x.include&&b(x.include,"Explicitly included types");var P=x.exclude||[],M=new e.Set(K.map(e.getDirectoryPath));if(M.add(k),M.forEach(function(A){var _e=e.combinePaths(A,"package.json");G(_e,q);var Se=e.combinePaths(A,"bower.json");G(Se,q);var ae=e.combinePaths(A,"bower_components");pe(ae,q);var D=e.combinePaths(A,"node_modules");pe(D,q)}),x.disableFilenameBasedTypeAcquisition||Y(K),ie){var Q=e.deduplicate(ie.map(p),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive);b(Q,"Inferred typings from unresolved imports")}O.forEach(function(A,_e){var Se=Z.get(_e);re.has(_e)&&re.get(_e)===void 0&&Se!==void 0&&u(A,Se)&&re.set(_e,A.typingLocation)});for(var H=0,w=P;H<w.length;H++){var d=w[H],B=re.delete(d);B&&C&&C("Typing for ".concat(d," is in exclude list, will be ignored."))}var T=[],_=[];re.forEach(function(A,_e){A!==void 0?_.push(A):T.push(_e)});var h={cachedTypingPaths:_,newTypingNames:T,filesToWatch:q};return C&&C("Result: ".concat(JSON.stringify(h))),h;function R(A){re.has(A)||re.set(A,void 0)}function b(A,_e){C&&C("".concat(_e,": ").concat(JSON.stringify(A))),e.forEach(A,R)}function G(A,_e){if(!!$.fileExists(A)){_e.push(A);var Se=e.readConfigFile(A,function(D){return $.readFile(D)}).config,ae=e.flatMap([Se.dependencies,Se.devDependencies,Se.optionalDependencies,Se.peerDependencies],e.getOwnKeys);b(ae,"Typing names in '".concat(A,"' dependencies"))}}function Y(A){var _e=e.mapDefined(A,function(ae){if(!!e.hasJSFileExtension(ae)){var D=e.removeFileExtension(e.getBaseFileName(ae.toLowerCase())),be=e.removeMinAndVersionNumbers(D);return X.get(be)}});_e.length&&b(_e,"Inferred typings from file names");var Se=e.some(A,function(ae){return e.fileExtensionIs(ae,".jsx")});Se&&(C&&C("Inferred 'react' typings due to presence of '.jsx' extension"),R("react"))}function pe(A,_e){if(_e.push(A),!!$.directoryExists(A)){var Se=$.readDirectory(A,[".json"],void 0,void 0,2);C&&C("Searching for typing names in ".concat(A,"; all files: ").concat(JSON.stringify(Se)));for(var ae=[],D=0,be=Se;D<be.length;D++){var ne=be[D],J=e.normalizePath(ne),le=e.getBaseFileName(J);if(!(le!=="package.json"&&le!=="bower.json")){var Te=e.readConfigFile(J,function(Ge){return $.readFile(Ge)}),Me=Te.config;if(!(le==="package.json"&&Me._requiredBy&&e.filter(Me._requiredBy,function(Ge){return Ge[0]==="#"||Ge==="/"}).length===0)&&!!Me.name){var Ke=Me.types||Me.typings;if(Ke){var Ae=e.getNormalizedAbsolutePath(Ke,e.getDirectoryPath(J));C&&C(" Package '".concat(Me.name,"' provides its own types.")),re.set(Me.name,Ae)}else ae.push(Me.name)}}}b(ae," Found package names")}}}c.discoverTypings=L;var m;(function($){$[$.Ok=0]="Ok",$[$.EmptyName=1]="EmptyName",$[$.NameTooLong=2]="NameTooLong",$[$.NameStartsWithDot=3]="NameStartsWithDot",$[$.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",$[$.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters"})(m=c.NameValidationResult||(c.NameValidationResult={}));var y=214;function j($){return te($,!0)}c.validatePackageName=j;function te($,C){if(!$)return 1;if($.length>y)return 2;if($.charCodeAt(0)===46)return 3;if($.charCodeAt(0)===95)return 4;if(C){var K=/^@([^/]+)\/([^/]+)$/.exec($);if(K){var k=te(K[1],!1);if(k!==0)return{name:K[1],isScopeName:!0,result:k};var X=te(K[2],!1);return X!==0?{name:K[2],isScopeName:!1,result:X}:0}}return encodeURIComponent($)!==$?5:0}function E($,C){return typeof $=="object"?F(C,$.result,$.name,$.isScopeName):F(C,$,C,!1)}c.renderPackageNameValidationFailure=E;function F($,C,K,k){var X=k?"Scope":"Package";switch(C){case 1:return"'".concat($,"':: ").concat(X," name '").concat(K,"' cannot be empty");case 2:return"'".concat($,"':: ").concat(X," name '").concat(K,"' should be less than ").concat(y," characters");case 3:return"'".concat($,"':: ").concat(X," name '").concat(K,"' cannot start with '.'");case 4:return"'".concat($,"':: ").concat(X," name '").concat(K,"' cannot start with '_'");case 5:return"'".concat($,"':: ").concat(X," name '").concat(K,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(C)}}})(n=e.JsTyping||(e.JsTyping={}))})(mr||(mr={}));var mr;(function(e){var n;(function(x){var ie=function(){function re(q){this.text=q}return re.prototype.getText=function(q,P){return q===0&&P===this.text.length?this.text:this.text.substring(q,P)},re.prototype.getLength=function(){return this.text.length},re.prototype.getChangeRange=function(){},re}();function Z(re){return new ie(re)}x.fromString=Z})(n=e.ScriptSnapshot||(e.ScriptSnapshot={}));var c;(function(x){x[x.Dependencies=1]="Dependencies",x[x.DevDependencies=2]="DevDependencies",x[x.PeerDependencies=4]="PeerDependencies",x[x.OptionalDependencies=8]="OptionalDependencies",x[x.All=15]="All"})(c=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}));var u;(function(x){x[x.Off=0]="Off",x[x.On=1]="On",x[x.Auto=2]="Auto"})(u=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}));var g;(function(x){x[x.Semantic=0]="Semantic",x[x.PartialSemantic=1]="PartialSemantic",x[x.Syntactic=2]="Syntactic"})(g=e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={};var p;(function(x){x.Original="original",x.TwentyTwenty="2020"})(p=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={}));var I;(function(x){x[x.Invoked=1]="Invoked",x[x.TriggerCharacter=2]="TriggerCharacter",x[x.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions"})(I=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var V;(function(x){x.Type="Type",x.Parameter="Parameter",x.Enum="Enum"})(V=e.InlayHintKind||(e.InlayHintKind={}));var L;(function(x){x.none="none",x.definition="definition",x.reference="reference",x.writtenReference="writtenReference"})(L=e.HighlightSpanKind||(e.HighlightSpanKind={}));var m;(function(x){x[x.None=0]="None",x[x.Block=1]="Block",x[x.Smart=2]="Smart"})(m=e.IndentStyle||(e.IndentStyle={}));var y;(function(x){x.Ignore="ignore",x.Insert="insert",x.Remove="remove"})(y=e.SemicolonPreference||(e.SemicolonPreference={}));function j(x){return{indentSize:4,tabSize:4,newLineCharacter:x||`
`,convertTabsToSpaces:!0,indentStyle:m.Smart,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:y.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=j,e.testFormatSettings=j(`
`);var te;(function(x){x[x.aliasName=0]="aliasName",x[x.className=1]="className",x[x.enumName=2]="enumName",x[x.fieldName=3]="fieldName",x[x.interfaceName=4]="interfaceName",x[x.keyword=5]="keyword",x[x.lineBreak=6]="lineBreak",x[x.numericLiteral=7]="numericLiteral",x[x.stringLiteral=8]="stringLiteral",x[x.localName=9]="localName",x[x.methodName=10]="methodName",x[x.moduleName=11]="moduleName",x[x.operator=12]="operator",x[x.parameterName=13]="parameterName",x[x.propertyName=14]="propertyName",x[x.punctuation=15]="punctuation",x[x.space=16]="space",x[x.text=17]="text",x[x.typeParameterName=18]="typeParameterName",x[x.enumMemberName=19]="enumMemberName",x[x.functionName=20]="functionName",x[x.regularExpressionLiteral=21]="regularExpressionLiteral",x[x.link=22]="link",x[x.linkName=23]="linkName",x[x.linkText=24]="linkText"})(te=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}));var E;(function(x){x.Comment="comment",x.Region="region",x.Code="code",x.Imports="imports"})(E=e.OutliningSpanKind||(e.OutliningSpanKind={}));var F;(function(x){x[x.JavaScript=0]="JavaScript",x[x.SourceMap=1]="SourceMap",x[x.Declaration=2]="Declaration"})(F=e.OutputFileType||(e.OutputFileType={}));var $;(function(x){x[x.None=0]="None",x[x.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",x[x.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",x[x.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",x[x.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",x[x.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",x[x.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"})($=e.EndOfLineState||(e.EndOfLineState={}));var C;(function(x){x[x.Punctuation=0]="Punctuation",x[x.Keyword=1]="Keyword",x[x.Operator=2]="Operator",x[x.Comment=3]="Comment",x[x.Whitespace=4]="Whitespace",x[x.Identifier=5]="Identifier",x[x.NumberLiteral=6]="NumberLiteral",x[x.BigIntLiteral=7]="BigIntLiteral",x[x.StringLiteral=8]="StringLiteral",x[x.RegExpLiteral=9]="RegExpLiteral"})(C=e.TokenClass||(e.TokenClass={}));var K;(function(x){x.unknown="",x.warning="warning",x.keyword="keyword",x.scriptElement="script",x.moduleElement="module",x.classElement="class",x.localClassElement="local class",x.interfaceElement="interface",x.typeElement="type",x.enumElement="enum",x.enumMemberElement="enum member",x.variableElement="var",x.localVariableElement="local var",x.functionElement="function",x.localFunctionElement="local function",x.memberFunctionElement="method",x.memberGetAccessorElement="getter",x.memberSetAccessorElement="setter",x.memberVariableElement="property",x.constructorImplementationElement="constructor",x.callSignatureElement="call",x.indexSignatureElement="index",x.constructSignatureElement="construct",x.parameterElement="parameter",x.typeParameterElement="type parameter",x.primitiveType="primitive type",x.label="label",x.alias="alias",x.constElement="const",x.letElement="let",x.directory="directory",x.externalModuleName="external module name",x.jsxAttribute="JSX attribute",x.string="string",x.link="link",x.linkName="link name",x.linkText="link text"})(K=e.ScriptElementKind||(e.ScriptElementKind={}));var k;(function(x){x.none="",x.publicMemberModifier="public",x.privateMemberModifier="private",x.protectedMemberModifier="protected",x.exportedModifier="export",x.ambientModifier="declare",x.staticModifier="static",x.abstractModifier="abstract",x.optionalModifier="optional",x.deprecatedModifier="deprecated",x.dtsModifier=".d.ts",x.tsModifier=".ts",x.tsxModifier=".tsx",x.jsModifier=".js",x.jsxModifier=".jsx",x.jsonModifier=".json",x.dmtsModifier=".d.mts",x.mtsModifier=".mts",x.mjsModifier=".mjs",x.dctsModifier=".d.cts",x.ctsModifier=".cts",x.cjsModifier=".cjs"})(k=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={}));var X;(function(x){x.comment="comment",x.identifier="identifier",x.keyword="keyword",x.numericLiteral="number",x.bigintLiteral="bigint",x.operator="operator",x.stringLiteral="string",x.whiteSpace="whitespace",x.text="text",x.punctuation="punctuation",x.className="class name",x.enumName="enum name",x.interfaceName="interface name",x.moduleName="module name",x.typeParameterName="type parameter name",x.typeAliasName="type alias name",x.parameterName="parameter name",x.docCommentTagName="doc comment tag name",x.jsxOpenTagName="jsx open tag name",x.jsxCloseTagName="jsx close tag name",x.jsxSelfClosingTagName="jsx self closing tag name",x.jsxAttribute="jsx attribute",x.jsxText="jsx text",x.jsxAttributeStringLiteralValue="jsx attribute string literal value"})(X=e.ClassificationTypeNames||(e.ClassificationTypeNames={}));var O;(function(x){x[x.comment=1]="comment",x[x.identifier=2]="identifier",x[x.keyword=3]="keyword",x[x.numericLiteral=4]="numericLiteral",x[x.operator=5]="operator",x[x.stringLiteral=6]="stringLiteral",x[x.regularExpressionLiteral=7]="regularExpressionLiteral",x[x.whiteSpace=8]="whiteSpace",x[x.text=9]="text",x[x.punctuation=10]="punctuation",x[x.className=11]="className",x[x.enumName=12]="enumName",x[x.interfaceName=13]="interfaceName",x[x.moduleName=14]="moduleName",x[x.typeParameterName=15]="typeParameterName",x[x.typeAliasName=16]="typeAliasName",x[x.parameterName=17]="parameterName",x[x.docCommentTagName=18]="docCommentTagName",x[x.jsxOpenTagName=19]="jsxOpenTagName",x[x.jsxCloseTagName=20]="jsxCloseTagName",x[x.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",x[x.jsxAttribute=22]="jsxAttribute",x[x.jsxText=23]="jsxText",x[x.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",x[x.bigintLiteral=25]="bigintLiteral"})(O=e.ClassificationType||(e.ClassificationType={}))})(mr||(mr={}));var mr;(function(e){e.scanner=e.createScanner(99,!0);var n;(function(he){he[he.None=0]="None",he[he.Value=1]="Value",he[he.Type=2]="Type",he[he.Namespace=4]="Namespace",he[he.All=7]="All"})(n=e.SemanticMeaning||(e.SemanticMeaning={}));function c(he){switch(he.kind){case 253:return e.isInJSFile(he)&&e.getJSDocEnumTag(he)?7:1;case 163:case 202:case 166:case 165:case 294:case 295:case 168:case 167:case 170:case 171:case 172:case 255:case 212:case 213:case 291:case 284:return 1;case 162:case 257:case 258:case 181:return 2;case 343:return he.name===void 0?3:2;case 297:case 256:return 3;case 260:return e.isAmbientModule(he)||e.getModuleInstanceState(he)===1?5:4;case 259:case 268:case 269:case 264:case 265:case 270:case 271:return 7;case 303:return 5}return 7}e.getMeaningFromDeclaration=c;function u(he){he=xr(he);var ar=he.parent;if(he.kind===303)return 1;if(e.isExportAssignment(ar)||e.isExportSpecifier(ar)||e.isExternalModuleReference(ar)||e.isImportSpecifier(ar)||e.isImportClause(ar)||e.isImportEqualsDeclaration(ar)&&he===ar.name){for(var hr=ar;hr;){if(e.isImportEqualsDeclaration(hr)||e.isImportClause(hr)||e.isExportDeclaration(hr))return hr.isTypeOnly?2:7;hr=hr.parent}return 7}else return p(he)?g(he):e.isDeclarationName(he)?c(ar):e.isEntityName(he)&&e.findAncestor(he,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:m(he)?2:I(he)?4:e.isTypeParameterDeclaration(ar)?(e.Debug.assert(e.isJSDocTemplateTag(ar.parent)),2):e.isLiteralTypeNode(ar)?3:1}e.getMeaningFromLocation=u;function g(he){var ar=he.kind===160?he:e.isQualifiedName(he.parent)&&he.parent.right===he?he.parent:void 0;return ar&&ar.parent.kind===264?7:4}function p(he){for(;he.parent.kind===160;)he=he.parent;return e.isInternalModuleImportEqualsDeclaration(he.parent)&&he.parent.moduleReference===he}e.isInRightSideOfInternalImportEqualsDeclaration=p;function I(he){return V(he)||L(he)}function V(he){var ar=he,hr=!0;if(ar.parent.kind===160){for(;ar.parent&&ar.parent.kind===160;)ar=ar.parent;hr=ar.right===he}return ar.parent.kind===177&&!hr}function L(he){var ar=he,hr=!0;if(ar.parent.kind===205){for(;ar.parent&&ar.parent.kind===205;)ar=ar.parent;hr=ar.name===he}if(!hr&&ar.parent.kind===227&&ar.parent.parent.kind===290){var dt=ar.parent.parent.parent;return dt.kind===256&&ar.parent.parent.token===117||dt.kind===257&&ar.parent.parent.token===94}return!1}function m(he){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(he)&&(he=he.parent),he.kind){case 108:return!e.isExpressionNode(he);case 191:return!0}switch(he.parent.kind){case 177:return!0;case 199:return!he.parent.isTypeOf;case 227:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(he.parent)}return!1}function y(he,ar,hr){return ar===void 0&&(ar=!1),hr===void 0&&(hr=!1),X(he,e.isCallExpression,C,ar,hr)}e.isCallExpressionTarget=y;function j(he,ar,hr){return ar===void 0&&(ar=!1),hr===void 0&&(hr=!1),X(he,e.isNewExpression,C,ar,hr)}e.isNewExpressionTarget=j;function te(he,ar,hr){return ar===void 0&&(ar=!1),hr===void 0&&(hr=!1),X(he,e.isCallOrNewExpression,C,ar,hr)}e.isCallOrNewExpressionTarget=te;function E(he,ar,hr){return ar===void 0&&(ar=!1),hr===void 0&&(hr=!1),X(he,e.isTaggedTemplateExpression,K,ar,hr)}e.isTaggedTemplateTag=E;function F(he,ar,hr){return ar===void 0&&(ar=!1),hr===void 0&&(hr=!1),X(he,e.isDecorator,C,ar,hr)}e.isDecoratorTarget=F;function $(he,ar,hr){return ar===void 0&&(ar=!1),hr===void 0&&(hr=!1),X(he,e.isJsxOpeningLikeElement,k,ar,hr)}e.isJsxOpeningLikeElementTagName=$;function C(he){return he.expression}function K(he){return he.tag}function k(he){return he.tagName}function X(he,ar,hr,dt,en){var ta=dt?x(he):O(he);return en&&(ta=e.skipOuterExpressions(ta)),!!ta&&!!ta.parent&&ar(ta.parent)&&hr(ta.parent)===ta}function O(he){return H(he)?he.parent:he}e.climbPastPropertyAccess=O;function x(he){return H(he)||w(he)?he.parent:he}e.climbPastPropertyOrElementAccess=x;function ie(he,ar){for(;he;){if(he.kind===249&&he.label.escapedText===ar)return he.label;he=he.parent}}e.getTargetLabel=ie;function Z(he,ar){return e.isPropertyAccessExpression(he.expression)?he.expression.name.text===ar:!1}e.hasPropertyAccessExpressionWithName=Z;function re(he){var ar;return e.isIdentifier(he)&&((ar=e.tryCast(he.parent,e.isBreakOrContinueStatement))===null||ar===void 0?void 0:ar.label)===he}e.isJumpStatementTarget=re;function q(he){var ar;return e.isIdentifier(he)&&((ar=e.tryCast(he.parent,e.isLabeledStatement))===null||ar===void 0?void 0:ar.label)===he}e.isLabelOfLabeledStatement=q;function P(he){return q(he)||re(he)}e.isLabelName=P;function M(he){var ar;return((ar=e.tryCast(he.parent,e.isJSDocTag))===null||ar===void 0?void 0:ar.tagName)===he}e.isTagName=M;function Q(he){var ar;return((ar=e.tryCast(he.parent,e.isQualifiedName))===null||ar===void 0?void 0:ar.right)===he}e.isRightSideOfQualifiedName=Q;function H(he){var ar;return((ar=e.tryCast(he.parent,e.isPropertyAccessExpression))===null||ar===void 0?void 0:ar.name)===he}e.isRightSideOfPropertyAccess=H;function w(he){var ar;return((ar=e.tryCast(he.parent,e.isElementAccessExpression))===null||ar===void 0?void 0:ar.argumentExpression)===he}e.isArgumentExpressionOfElementAccess=w;function d(he){var ar;return((ar=e.tryCast(he.parent,e.isModuleDeclaration))===null||ar===void 0?void 0:ar.name)===he}e.isNameOfModuleDeclaration=d;function B(he){var ar;return e.isIdentifier(he)&&((ar=e.tryCast(he.parent,e.isFunctionLike))===null||ar===void 0?void 0:ar.name)===he}e.isNameOfFunctionDeclaration=B;function T(he){switch(he.parent.kind){case 166:case 165:case 294:case 297:case 168:case 167:case 171:case 172:case 260:return e.getNameOfDeclaration(he.parent)===he;case 206:return he.parent.argumentExpression===he;case 161:return!0;case 195:return he.parent.parent.kind===193;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=T;function _(he){return e.isExternalModuleImportEqualsDeclaration(he.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(he.parent.parent)===he}e.isExpressionOfExternalModuleImportEqualsDeclaration=_;function h(he){for(e.isJSDocTypeAlias(he)&&(he=he.parent.parent);;){if(he=he.parent,!he)return;switch(he.kind){case 303:case 168:case 167:case 255:case 212:case 171:case 172:case 256:case 257:case 259:case 260:return he}}}e.getContainerNode=h;function R(he){switch(he.kind){case 303:return e.isExternalModule(he)?"module":"script";case 260:return"module";case 256:case 225:return"class";case 257:return"interface";case 258:case 336:case 343:return"type";case 259:return"enum";case 253:return Un(he);case 202:return Un(e.getRootDeclaration(he));case 213:case 255:case 212:return"function";case 171:return"getter";case 172:return"setter";case 168:case 167:return"method";case 294:var ar=he.initializer;return e.isFunctionLike(ar)?"method":"property";case 166:case 165:case 295:case 296:return"property";case 175:return"index";case 174:return"construct";case 173:return"call";case 170:case 169:return"constructor";case 162:return"type parameter";case 297:return"enum member";case 163:return e.hasSyntacticModifier(he,16476)?"property":"parameter";case 264:case 269:case 274:case 267:case 273:return"alias";case 220:var hr=e.getAssignmentDeclarationKind(he),dt=he.right;switch(hr){case 7:case 8:case 9:case 0:return"";case 1:case 2:var en=R(dt);return en===""?"const":en;case 3:return e.isFunctionExpression(dt)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(dt)?"method":"property";case 6:return"local class";default:return e.assertType(hr),""}case 79:return e.isImportClause(he.parent)?"alias":"";case 270:var ta=R(he.expression);return ta===""?"const":ta;default:return""}function Un(Ta){return e.isVarConst(Ta)?"const":e.isLet(Ta)?"let":"var"}}e.getNodeKind=R;function b(he){switch(he.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(he)&&he.parent.kind===163;default:return!1}}e.isThis=b;var G=/^\/\/\/\s*</;function Y(he,ar){var hr=e.getLineStarts(ar),dt=ar.getLineAndCharacterOfPosition(he).line;return hr[dt]}e.getLineStartPositionForPosition=Y;function pe(he,ar){return ae(he.pos,he.end,ar)}e.rangeContainsRange=pe;function A(he,ar){return Se(he,ar.pos)&&Se(he,ar.end)}e.rangeContainsRangeExclusive=A;function _e(he,ar){return he.pos<=ar&&ar<=he.end}e.rangeContainsPosition=_e;function Se(he,ar){return he.pos<ar&&ar<he.end}e.rangeContainsPositionExclusive=Se;function ae(he,ar,hr){return he<=hr.pos&&ar>=hr.end}e.startEndContainsRange=ae;function D(he,ar,hr){return he.pos<=ar&&he.end>=hr}e.rangeContainsStartEnd=D;function be(he,ar,hr){return J(he.pos,he.end,ar,hr)}e.rangeOverlapsWithStartEnd=be;function ne(he,ar,hr,dt){return J(he.getStart(ar),he.end,hr,dt)}e.nodeOverlapsWithStartEnd=ne;function J(he,ar,hr,dt){var en=Math.max(he,hr),ta=Math.min(ar,dt);return en<ta}e.startEndOverlapsWithStartEnd=J;function le(he,ar,hr){return e.Debug.assert(he.pos<=ar),ar<he.end||!Te(he,hr)}e.positionBelongsToNode=le;function Te(he,ar){if(he===void 0||e.nodeIsMissing(he))return!1;switch(he.kind){case 256:case 257:case 259:case 204:case 200:case 181:case 234:case 261:case 262:case 268:case 272:return Me(he,19,ar);case 291:return Te(he.block,ar);case 208:if(!he.arguments)return!0;case 207:case 211:case 190:return Me(he,21,ar);case 178:case 179:return Te(he.type,ar);case 170:case 171:case 172:case 255:case 212:case 168:case 167:case 174:case 173:case 213:return he.body?Te(he.body,ar):he.type?Te(he.type,ar):Ae(he,21,ar);case 260:return!!he.body&&Te(he.body,ar);case 238:return he.elseStatement?Te(he.elseStatement,ar):Te(he.thenStatement,ar);case 237:return Te(he.expression,ar)||Ae(he,26,ar);case 203:case 201:case 206:case 161:case 183:return Me(he,23,ar);case 175:return he.type?Te(he.type,ar):Ae(he,23,ar);case 288:case 289:return!1;case 241:case 242:case 243:case 240:return Te(he.statement,ar);case 239:return Ae(he,115,ar)?Me(he,21,ar):Te(he.statement,ar);case 180:return Te(he.exprName,ar);case 215:case 214:case 216:case 223:case 224:var hr=he;return Te(hr.expression,ar);case 209:return Te(he.template,ar);case 222:var dt=e.lastOrUndefined(he.templateSpans);return Te(dt,ar);case 232:return e.nodeIsPresent(he.literal);case 271:case 265:return e.nodeIsPresent(he.moduleSpecifier);case 218:return Te(he.operand,ar);case 220:return Te(he.right,ar);case 221:return Te(he.whenFalse,ar);default:return!0}}function Me(he,ar,hr){var dt=he.getChildren(hr);if(dt.length){var en=e.last(dt);if(en.kind===ar)return!0;if(en.kind===26&&dt.length!==1)return dt[dt.length-2].kind===ar}return!1}function Ke(he){var ar=se(he);if(!!ar){var hr=ar.getChildren(),dt=e.indexOfNode(hr,he);return{listItemIndex:dt,list:ar}}}e.findListItemInfo=Ke;function Ae(he,ar,hr){return!!Ge(he,ar,hr)}e.hasChildOfKind=Ae;function Ge(he,ar,hr){return e.find(he.getChildren(hr),function(dt){return dt.kind===ar})}e.findChildOfKind=Ge;function se(he){var ar=e.find(he.parent.getChildren(),function(hr){return e.isSyntaxList(hr)&&pe(hr,he)});return e.Debug.assert(!ar||e.contains(ar.getChildren(),he)),ar}e.findContainingList=se;function xe(he){return he.kind===88}function Re(he){return he.kind===84}function ce(he){return he.kind===98}function Ue(he){if(e.isNamedDeclaration(he))return he.name;if(e.isClassDeclaration(he)){var ar=he.modifiers&&e.find(he.modifiers,xe);if(ar)return ar}if(e.isClassExpression(he)){var hr=e.find(he.getChildren(),Re);if(hr)return hr}}function We(he){if(e.isNamedDeclaration(he))return he.name;if(e.isFunctionDeclaration(he)){var ar=e.find(he.modifiers,xe);if(ar)return ar}if(e.isFunctionExpression(he)){var hr=e.find(he.getChildren(),ce);if(hr)return hr}}function Ne(he){var ar;return e.findAncestor(he,function(hr){return e.isTypeNode(hr)&&(ar=hr),!e.isQualifiedName(hr.parent)&&!e.isTypeNode(hr.parent)&&!e.isTypeElement(hr.parent)}),ar}function ve(he,ar){var hr=Yo(he,ar);if(hr)return hr;var dt=Ne(he);return dt&&ar.getTypeAtLocation(dt)}e.getContextualTypeFromParentOrAncestorTypeNode=ve;function Ve(he,ar){if(!ar)switch(he.kind){case 256:case 225:return Ue(he);case 255:case 212:return We(he)}if(e.isNamedDeclaration(he))return he.name}function gr(he,ar){if(he.importClause){if(he.importClause.name&&he.importClause.namedBindings)return;if(he.importClause.name)return he.importClause.name;if(he.importClause.namedBindings){if(e.isNamedImports(he.importClause.namedBindings)){var hr=e.singleOrUndefined(he.importClause.namedBindings.elements);return hr?hr.name:void 0}else if(e.isNamespaceImport(he.importClause.namedBindings))return he.importClause.namedBindings.name}}if(!ar)return he.moduleSpecifier}function Er(he,ar){if(he.exportClause){if(e.isNamedExports(he.exportClause)){var hr=e.singleOrUndefined(he.exportClause.elements);return hr?he.exportClause.elements[0].name:void 0}else if(e.isNamespaceExport(he.exportClause))return he.exportClause.name}if(!ar)return he.moduleSpecifier}function Nr(he){if(he.types.length===1)return he.types[0].expression}function ur(he,ar){var hr=he.parent;if(e.isModifier(he)&&(ar||he.kind!==88)?e.contains(hr.modifiers,he):he.kind===84?e.isClassDeclaration(hr)||e.isClassExpression(he):he.kind===98?e.isFunctionDeclaration(hr)||e.isFunctionExpression(he):he.kind===118?e.isInterfaceDeclaration(hr):he.kind===92?e.isEnumDeclaration(hr):he.kind===151?e.isTypeAliasDeclaration(hr):he.kind===142||he.kind===141?e.isModuleDeclaration(hr):he.kind===100?e.isImportEqualsDeclaration(hr):he.kind===136?e.isGetAccessorDeclaration(hr):he.kind===148&&e.isSetAccessorDeclaration(hr)){var dt=Ve(hr,ar);if(dt)return dt}if((he.kind===113||he.kind===85||he.kind===119)&&e.isVariableDeclarationList(hr)&&hr.declarations.length===1){var en=hr.declarations[0];if(e.isIdentifier(en.name))return en.name}if(he.kind===151){if(e.isImportClause(hr)&&hr.isTypeOnly){var dt=gr(hr.parent,ar);if(dt)return dt}if(e.isExportDeclaration(hr)&&hr.isTypeOnly){var dt=Er(hr,ar);if(dt)return dt}}if(he.kind===127){if(e.isImportSpecifier(hr)&&hr.propertyName||e.isExportSpecifier(hr)&&hr.propertyName||e.isNamespaceImport(hr)||e.isNamespaceExport(hr))return hr.name;if(e.isExportDeclaration(hr)&&hr.exportClause&&e.isNamespaceExport(hr.exportClause))return hr.exportClause.name}if(he.kind===100&&e.isImportDeclaration(hr)){var dt=gr(hr,ar);if(dt)return dt}if(he.kind===93){if(e.isExportDeclaration(hr)){var dt=Er(hr,ar);if(dt)return dt}if(e.isExportAssignment(hr))return e.skipOuterExpressions(hr.expression)}if(he.kind===145&&e.isExternalModuleReference(hr))return hr.expression;if(he.kind===155&&(e.isImportDeclaration(hr)||e.isExportDeclaration(hr))&&hr.moduleSpecifier)return hr.moduleSpecifier;if((he.kind===94||he.kind===117)&&e.isHeritageClause(hr)&&hr.token===he.kind){var dt=Nr(hr);if(dt)return dt}if(he.kind===94){if(e.isTypeParameterDeclaration(hr)&&hr.constraint&&e.isTypeReferenceNode(hr.constraint))return hr.constraint.typeName;if(e.isConditionalTypeNode(hr)&&e.isTypeReferenceNode(hr.extendsType))return hr.extendsType.typeName}if(he.kind===137&&e.isInferTypeNode(hr))return hr.typeParameter.name;if(he.kind===101&&e.isTypeParameterDeclaration(hr)&&e.isMappedTypeNode(hr.parent))return hr.name;if(he.kind===140&&e.isTypeOperatorNode(hr)&&hr.operator===140&&e.isTypeReferenceNode(hr.type))return hr.type.typeName;if(he.kind===144&&e.isTypeOperatorNode(hr)&&hr.operator===144&&e.isArrayTypeNode(hr.type)&&e.isTypeReferenceNode(hr.type.elementType))return hr.type.elementType.typeName;if(!ar){if((he.kind===103&&e.isNewExpression(hr)||he.kind===114&&e.isVoidExpression(hr)||he.kind===112&&e.isTypeOfExpression(hr)||he.kind===132&&e.isAwaitExpression(hr)||he.kind===125&&e.isYieldExpression(hr)||he.kind===89&&e.isDeleteExpression(hr))&&hr.expression)return e.skipOuterExpressions(hr.expression);if((he.kind===101||he.kind===102)&&e.isBinaryExpression(hr)&&hr.operatorToken===he)return e.skipOuterExpressions(hr.right);if(he.kind===127&&e.isAsExpression(hr)&&e.isTypeReferenceNode(hr.type))return hr.type.typeName;if(he.kind===101&&e.isForInStatement(hr)||he.kind===159&&e.isForOfStatement(hr))return e.skipOuterExpressions(hr.expression)}return he}function xr(he){return ur(he,!1)}e.getAdjustedReferenceLocation=xr;function sr(he){return ur(he,!0)}e.getAdjustedRenameLocation=sr;function i(he,ar){return Mr(he,ar,function(hr){return e.isPropertyNameLiteral(hr)||e.isKeyword(hr.kind)||e.isPrivateIdentifier(hr)})}e.getTouchingPropertyName=i;function Mr(he,ar,hr){return Ar(he,ar,!1,hr,!1)}e.getTouchingToken=Mr;function fr(he,ar){return Ar(he,ar,!0,void 0,!1)}e.getTokenAtPosition=fr;function Ar(he,ar,hr,dt,en){var ta=he,Un,Ta=function(){var Wi=ta.getChildren(he),Ai=e.binarySearchKey(Wi,ar,function(Ci,Fo){return Fo},function(Ci,Fo){var xo=hr?Wi[Ci].getFullStart():Wi[Ci].getStart(he,!0);return xo>ar?1:Qi(Wi[Ci])?Wi[Ci-1]&&Qi(Wi[Ci-1])?1:0:dt&&xo===ar&&Wi[Ci-1]&&Wi[Ci-1].getEnd()===ar&&Qi(Wi[Ci-1])?1:-1});return Un?{value:Un}:Ai>=0&&Wi[Ai]?(ta=Wi[Ai],"continue-outer"):{value:ta}};e:for(;;){var Ei=Ta();if(typeof Ei=="object")return Ei.value;switch(Ei){case"continue-outer":continue e}}function Qi(Wi){var Ai=hr?Wi.getFullStart():Wi.getStart(he,!0);if(Ai>ar)return!1;var Ci=Wi.getEnd();if(ar<Ci||ar===Ci&&(Wi.kind===1||en))return!0;if(dt&&Ci===ar){var Fo=Cr(ar,he,Wi);if(Fo&&dt(Fo))return Un=Fo,!0}return!1}}function de(he,ar){for(var hr=fr(he,ar);Sr(hr);){var dt=qe(hr,hr.parent,he);if(!dt)return;hr=dt}return hr}e.findFirstNonJsxWhitespaceToken=de;function we(he,ar){var hr=fr(he,ar);return e.isToken(hr)&&ar>hr.getStart(he)&&ar<hr.getEnd()?hr:Cr(ar,he)}e.findTokenOnLeftOfPosition=we;function qe(he,ar,hr){return dt(ar);function dt(en){return e.isToken(en)&&en.pos===he.end?en:e.firstDefined(en.getChildren(hr),function(ta){var Un=ta.pos<=he.pos&&ta.end>he.end||ta.pos===he.end;return Un&&ir(ta,hr)?dt(ta):void 0})}}e.findNextToken=qe;function Cr(he,ar,hr,dt){var en=ta(hr||ar);return e.Debug.assert(!(en&&Sr(en))),en;function ta(Un){if(kr(Un)&&Un.kind!==1)return Un;var Ta=Un.getChildren(ar),Ei=e.binarySearchKey(Ta,he,function(xo,js){return js},function(xo,js){return he<Ta[xo].end?!Ta[xo-1]||he>=Ta[xo-1].end?0:1:-1});if(Ei>=0&&Ta[Ei]){var Qi=Ta[Ei];if(he<Qi.end){var Wi=Qi.getStart(ar,!dt),Ai=Wi>=he||!ir(Qi,ar)||Sr(Qi);if(Ai){var Ci=lr(Ta,Ei,ar,Un.kind);return Ci&&He(Ci,ar)}else return ta(Qi)}}e.Debug.assert(hr!==void 0||Un.kind===303||Un.kind===1||e.isJSDocCommentContainingNode(Un));var Fo=lr(Ta,Ta.length,ar,Un.kind);return Fo&&He(Fo,ar)}}e.findPrecedingToken=Cr;function kr(he){return e.isToken(he)&&!Sr(he)}function He(he,ar){if(kr(he))return he;var hr=he.getChildren(ar);if(hr.length===0)return he;var dt=lr(hr,hr.length,ar,he.kind);return dt&&He(dt,ar)}function lr(he,ar,hr,dt){for(var en=ar-1;en>=0;en--){var ta=he[en];if(Sr(ta))en===0&&(dt===11||dt===278)&&e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(ir(he[en],hr))return he[en]}}function Hr(he,ar,hr){if(hr===void 0&&(hr=Cr(ar,he)),hr&&e.isStringTextContainingNode(hr)){var dt=hr.getStart(he),en=hr.getEnd();if(dt<ar&&ar<en)return!0;if(ar===en)return!!hr.isUnterminated}return!1}e.isInString=Hr;function Je(he,ar){var hr=fr(he,ar);return hr?!!(hr.kind===11||hr.kind===29&&hr.parent.kind===11||hr.kind===29&&hr.parent.kind===287||hr&&hr.kind===19&&hr.parent.kind===287||hr.kind===29&&hr.parent.kind===280):!1}e.isInsideJsxElementOrAttribute=Je;function Sr(he){return e.isJsxText(he)&&he.containsOnlyTriviaWhiteSpaces}function Yr(he,ar){var hr=fr(he,ar);return e.isTemplateLiteralKind(hr.kind)&&ar>hr.getStart(he)}e.isInTemplateString=Yr;function ot(he,ar){var hr=fr(he,ar);return!!(e.isJsxText(hr)||hr.kind===18&&e.isJsxExpression(hr.parent)&&e.isJsxElement(hr.parent.parent)||hr.kind===29&&e.isJsxOpeningLikeElement(hr.parent)&&e.isJsxElement(hr.parent.parent))}e.isInJSXText=ot;function _t(he,ar){function hr(dt){for(;dt;)if(dt.kind>=278&&dt.kind<=287||dt.kind===11||dt.kind===29||dt.kind===31||dt.kind===79||dt.kind===19||dt.kind===18||dt.kind===43)dt=dt.parent;else if(dt.kind===277){if(ar>dt.getStart(he))return!0;dt=dt.parent}else return!1;return!1}return hr(fr(he,ar))}e.isInsideJsxElement=_t;function kt(he,ar,hr){var dt=e.tokenToString(he.kind),en=e.tokenToString(ar),ta=he.getFullStart(),Un=hr.text.lastIndexOf(en,ta);if(Un!==-1){if(hr.text.lastIndexOf(dt,ta-1)<Un){var Ta=Cr(Un+1,hr);if(Ta&&Ta.kind===ar)return Ta}for(var Ei=he.kind,Qi=0;;){var Wi=Cr(he.getFullStart(),hr);if(!Wi)return;if(he=Wi,he.kind===ar){if(Qi===0)return he;Qi--}else he.kind===Ei&&Qi++}}}e.findPrecedingMatchingToken=kt;function Yt(he,ar,hr){return ar?he.getNonNullableType():hr?he.getNonOptionalType():he}e.removeOptionality=Yt;function vn(he,ar,hr){var dt=qn(he,ar);return dt!==void 0&&(e.isPartOfTypeNode(dt.called)||Mn(dt.called,dt.nTypeArguments,hr).length!==0||vn(dt.called,ar,hr))}e.isPossiblyTypeArgumentPosition=vn;function Mn(he,ar,hr){var dt=hr.getTypeAtLocation(he);e.isOptionalChain(he.parent)&&(dt=Yt(dt,e.isOptionalChainRoot(he.parent),!0));var en=e.isNewExpression(he.parent)?dt.getConstructSignatures():dt.getCallSignatures();return en.filter(function(ta){return!!ta.typeParameters&&ta.typeParameters.length>=ar})}e.getPossibleGenericSignatures=Mn;function qn(he,ar){if(ar.text.lastIndexOf("<",he?he.pos:ar.text.length)!==-1)for(var hr=he,dt=0,en=0;hr;){switch(hr.kind){case 29:if(hr=Cr(hr.getFullStart(),ar),hr&&hr.kind===28&&(hr=Cr(hr.getFullStart(),ar)),!hr||!e.isIdentifier(hr))return;if(!dt)return e.isDeclarationName(hr)?void 0:{called:hr,nTypeArguments:en};dt--;break;case 49:dt=3;break;case 48:dt=2;break;case 31:dt++;break;case 19:if(hr=kt(hr,18,ar),!hr)return;break;case 21:if(hr=kt(hr,20,ar),!hr)return;break;case 23:if(hr=kt(hr,22,ar),!hr)return;break;case 27:en++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(hr))break;return}hr=Cr(hr.getFullStart(),ar)}}e.getPossibleTypeArgumentsInfo=qn;function nr(he,ar,hr){return e.formatting.getRangeOfEnclosingComment(he,ar,void 0,hr)}e.isInComment=nr;function Zr(he,ar){var hr=fr(he,ar);return!!e.findAncestor(hr,e.isJSDoc)}e.hasDocComment=Zr;function ir(he,ar){return he.kind===1?!!he.jsDoc:he.getWidth(ar)!==0}function ge(he,ar){ar===void 0&&(ar=0);var hr=[],dt=e.isDeclaration(he)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(he)&~ar:0;return dt&8&&hr.push("private"),dt&16&&hr.push("protected"),dt&4&&hr.push("public"),(dt&32||e.isClassStaticBlockDeclaration(he))&&hr.push("static"),dt&128&&hr.push("abstract"),dt&1&&hr.push("export"),dt&8192&&hr.push("deprecated"),he.flags&8388608&&hr.push("declare"),he.kind===270&&hr.push("export"),hr.length>0?hr.join(","):""}e.getNodeModifiers=ge;function rr(he){if(he.kind===177||he.kind===207)return he.typeArguments;if(e.isFunctionLike(he)||he.kind===256||he.kind===257)return he.typeParameters}e.getTypeArgumentOrTypeParameterList=rr;function pr(he){return he===2||he===3}e.isComment=pr;function Lr(he){return!!(he===10||he===13||e.isTemplateLiteralKind(he))}e.isStringOrRegularExpressionOrTemplateLiteral=Lr;function Ce(he){return 18<=he&&he<=78}e.isPunctuation=Ce;function cr(he,ar,hr){return e.isTemplateLiteralKind(he.kind)&&he.getStart(hr)<ar&&ar<he.end||!!he.isUnterminated&&ar===he.end}e.isInsideTemplateLiteral=cr;function $e(he){switch(he){case 123:case 121:case 122:return!0}return!1}e.isAccessibilityModifier=$e;function De(he){var ar=e.clone(he);return e.setConfigFileInOptions(ar,he&&he.configFile),ar}e.cloneCompilerOptions=De;function z(he){return!!((he.kind===203||he.kind===204)&&(he.parent.kind===220&&he.parent.left===he&&he.parent.operatorToken.kind===63||he.parent.kind===243&&he.parent.initializer===he||z(he.parent.kind===294?he.parent.parent:he.parent)))}e.isArrayLiteralOrObjectLiteralDestructuringPattern=z;function ke(he,ar){return Xe(he,ar,!0)}e.isInReferenceComment=ke;function dr(he,ar){return Xe(he,ar,!1)}e.isInNonReferenceComment=dr;function Xe(he,ar,hr){var dt=nr(he,ar,void 0);return!!dt&&hr===G.test(he.text.substring(dt.pos,dt.end))}function Qe(he){if(!!he)switch(he.kind){case 10:case 14:return Jr(he);default:return Ir(he)}}e.getReplacementSpanForContextToken=Qe;function Ir(he,ar,hr){return e.createTextSpanFromBounds(he.getStart(ar),(hr||he).getEnd())}e.createTextSpanFromNode=Ir;function Jr(he){if(!he.isUnterminated)return e.createTextSpanFromBounds(he.getStart()+1,he.getEnd()-1)}e.createTextSpanFromStringLiteralLikeContent=Jr;function Or(he,ar){return e.createRange(he.getStart(ar),he.end)}e.createTextRangeFromNode=Or;function Be(he){return e.createTextSpanFromBounds(he.pos,he.end)}e.createTextSpanFromRange=Be;function yr(he){return e.createRange(he.start,he.start+he.length)}e.createTextRangeFromSpan=yr;function Rr(he,ar,hr){return zr(e.createTextSpan(he,ar),hr)}e.createTextChangeFromStartLength=Rr;function zr(he,ar){return{span:he,newText:ar}}e.createTextChange=zr,e.typeKeywords=[130,128,157,133,95,137,140,143,104,146,147,144,149,150,110,114,152,153,154];function ut(he){return e.contains(e.typeKeywords,he)}e.isTypeKeyword=ut;function mt(he){return he.kind===151}e.isTypeKeywordToken=mt;function Lt(he){return mt(he)||e.isIdentifier(he)&&he.text==="type"}e.isTypeKeywordTokenOrIdentifier=Lt;function vt(he){return!!(he.flags&1536)&&he.name.charCodeAt(0)===34}e.isExternalModuleSymbol=vt;function pt(){var he=[];return function(ar){var hr=e.getNodeId(ar);return!he[hr]&&(he[hr]=!0)}}e.nodeSeenTracker=pt;function Nt(he){return he.getText(0,he.getLength())}e.getSnapshotText=Nt;function Xt(he,ar){for(var hr="",dt=0;dt<ar;dt++)hr+=he;return hr}e.repeatString=Xt;function st(he){return he.isTypeParameter()&&he.getConstraint()||he}e.skipConstraint=st;function $t(he){return he.kind===161?e.isStringOrNumericLiteralLike(he.expression)?he.expression.text:void 0:e.isPrivateIdentifier(he)?e.idText(he):e.getTextOfIdentifierOrLiteral(he)}e.getNameFromPropertyName=$t;function Pn(he){return he.getSourceFiles().some(function(ar){return!ar.isDeclarationFile&&!he.isSourceFileFromExternalLibrary(ar)&&!!(ar.externalModuleIndicator||ar.commonJsModuleIndicator)})}e.programContainsModules=Pn;function Ea(he){return he.getSourceFiles().some(function(ar){return!ar.isDeclarationFile&&!he.isSourceFileFromExternalLibrary(ar)&&!!ar.externalModuleIndicator})}e.programContainsEsModules=Ea;function ia(he){return!!he.module||e.getEmitScriptTarget(he)>=2||!!he.noEmit}e.compilerOptionsIndicateEsModules=ia;function pa(he,ar){return{fileExists:function(hr){return he.fileExists(hr)},getCurrentDirectory:function(){return ar.getCurrentDirectory()},readFile:e.maybeBind(ar,ar.readFile),useCaseSensitiveFileNames:e.maybeBind(ar,ar.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(ar,ar.getSymlinkCache)||he.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(ar,ar.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(ar,ar.getGlobalTypingsCacheLocation),redirectTargetsMap:he.redirectTargetsMap,getProjectReferenceRedirect:function(hr){return he.getProjectReferenceRedirect(hr)},isSourceOfProjectReferenceRedirect:function(hr){return he.isSourceOfProjectReferenceRedirect(hr)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(ar,ar.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return he.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=pa;function Gn(he,ar){return kn(kn({},pa(he,ar)),{getCommonSourceDirectory:function(){return he.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=Gn;function nn(he,ar,hr,dt){return he||ar&&ar.length?bt(he,ar,hr,dt):void 0}e.makeImportIfNecessary=nn;function bt(he,ar,hr,dt,en){return e.factory.createImportDeclaration(void 0,void 0,he||ar?e.factory.createImportClause(!!en,he,ar&&ar.length?e.factory.createNamedImports(ar):void 0):void 0,typeof hr=="string"?Ut(hr,dt):hr,void 0)}e.makeImport=bt;function Ut(he,ar){return e.factory.createStringLiteral(he,ar===0)}e.makeStringLiteral=Ut;var Kt;(function(he){he[he.Single=0]="Single",he[he.Double=1]="Double"})(Kt=e.QuotePreference||(e.QuotePreference={}));function bn(he,ar){return e.isStringDoubleQuoted(he,ar)?1:0}e.quotePreferenceFromString=bn;function wn(he,ar){if(ar.quotePreference&&ar.quotePreference!=="auto")return ar.quotePreference==="single"?0:1;var hr=he.imports&&e.find(he.imports,function(dt){return e.isStringLiteral(dt)&&!e.nodeIsSynthesized(dt.parent)});return hr?bn(hr,he):1}e.getQuotePreference=wn;function ra(he){switch(he){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(he)}}e.getQuoteFromPreference=ra;function ft(he){var ar=Ct(he);return ar===void 0?void 0:e.unescapeLeadingUnderscores(ar)}e.symbolNameNoDefault=ft;function Ct(he){return he.escapedName!=="default"?he.escapedName:e.firstDefined(he.declarations,function(ar){var hr=e.getNameOfDeclaration(ar);return hr&&hr.kind===79?hr.escapedText:void 0})}e.symbolEscapedNameNoDefault=Ct;function Pt(he){return e.isStringLiteralLike(he)&&(e.isExternalModuleReference(he.parent)||e.isImportDeclaration(he.parent)||e.isRequireCall(he.parent,!1)&&he.parent.arguments[0]===he||e.isImportCall(he.parent)&&he.parent.arguments[0]===he)}e.isModuleSpecifierLike=Pt;function Et(he){return e.isBindingElement(he)&&e.isObjectBindingPattern(he.parent)&&e.isIdentifier(he.name)&&!he.propertyName}e.isObjectBindingElementWithoutPropertyName=Et;function et(he,ar){var hr=he.getTypeAtLocation(ar.parent);return hr&&he.getPropertyOfType(hr,ar.name.text)}e.getPropertySymbolFromBindingElement=et;function hn(he,ar,hr){if(!!he)for(;he.parent;){if(e.isSourceFile(he.parent)||!Qn(hr,he.parent,ar))return he;he=he.parent}}e.getParentNodeInSpan=hn;function Qn(he,ar,hr){return e.textSpanContainsPosition(he,ar.getStart(hr))&&ar.getEnd()<=e.textSpanEnd(he)}function Ra(he,ar){return he.modifiers&&e.find(he.modifiers,function(hr){return hr.kind===ar})}e.findModifier=Ra;function Ki(he,ar,hr,dt){var en=e.isArray(hr)?hr[0]:hr,ta=en.kind===236?e.isRequireVariableStatement:e.isAnyImportSyntax,Un=e.filter(ar.statements,ta),Ta=e.isArray(hr)?e.stableSort(hr,e.OrganizeImports.compareImportsOrRequireStatements):[hr];if(!Un.length)he.insertNodesAtTopOfFile(ar,Ta,dt);else if(Un&&e.OrganizeImports.importsAreSorted(Un))for(var Ei=0,Qi=Ta;Ei<Qi.length;Ei++){var Wi=Qi[Ei],Ai=e.OrganizeImports.getImportDeclarationInsertionIndex(Un,Wi);if(Ai===0){var Ci=Un[0]===ar.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};he.insertNodeBefore(ar,Un[0],Wi,!1,Ci)}else{var Fo=Un[Ai-1];he.insertNodeAfter(ar,Fo,Wi)}}else{var xo=e.lastOrUndefined(Un);xo?he.insertNodesAfter(ar,xo,Ta):he.insertNodesAtTopOfFile(ar,Ta,dt)}}e.insertImports=Ki;function di(he,ar){return e.Debug.assert(he.isTypeOnly),e.cast(he.getChildAt(0,ar),mt)}e.getTypeKeywordOfTypeOnlyImport=di;function ya(he,ar){return!!he&&!!ar&&he.start===ar.start&&he.length===ar.length}e.textSpansEqual=ya;function $a(he,ar){return he.fileName===ar.fileName&&ya(he.textSpan,ar.textSpan)}e.documentSpansEqual=$a;function ao(he,ar){if(he){for(var hr=0;hr<he.length;hr++)if(he.indexOf(he[hr])===hr){var dt=ar(he[hr],hr);if(dt)return dt}}}e.forEachUnique=ao;function ei(he,ar,hr){for(var dt=ar;dt<hr;dt++)if(!e.isWhiteSpaceLike(he.charCodeAt(dt)))return!1;return!0}e.isTextWhiteSpaceLike=ei;function Fi(he){var ar=he.declarations?e.firstOrUndefined(he.declarations):void 0;return!!e.findAncestor(ar,function(hr){return e.isParameter(hr)?!0:e.isBindingElement(hr)||e.isObjectBindingPattern(hr)||e.isArrayBindingPattern(hr)?!1:"quit"})}e.isFirstDeclarationOfSymbolParameter=Fi;var eo=Wo();function Wo(){var he=e.defaultMaximumTruncationLength*10,ar,hr,dt,en;Wi();var ta=function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Ai=ar.length&&ar[ar.length-1].text;return en>he&&Ai&&Ai!=="..."&&(e.isWhiteSpaceLike(Ai.charCodeAt(Ai.length-1))||ar.push(Ni(" ",e.SymbolDisplayPartKind.space)),ar.push(Ni("...",e.SymbolDisplayPartKind.punctuation))),ar},writeKeyword:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Ai){return Ta(Ai,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:Ei,writeLine:Qi,write:ta,writeComment:ta,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return dt},increaseIndent:function(){dt++},decreaseIndent:function(){dt--},clear:Wi,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function Un(){if(!(en>he)&&hr){var Ai=e.getIndentString(dt);Ai&&(en+=Ai.length,ar.push(Ni(Ai,e.SymbolDisplayPartKind.space))),hr=!1}}function Ta(Ai,Ci){en>he||(Un(),en+=Ai.length,ar.push(Ni(Ai,Ci)))}function Ei(Ai,Ci){en>he||(Un(),en+=Ai.length,ar.push(Yi(Ai,Ci)))}function Qi(){en>he||(en+=1,ar.push(tn()),hr=!0)}function Wi(){ar=[],hr=!0,dt=0,en=0}}function Yi(he,ar){return Ni(he,hr(ar));function hr(dt){var en=dt.flags;return en&3?Fi(dt)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:en&4||en&32768||en&65536?e.SymbolDisplayPartKind.propertyName:en&8?e.SymbolDisplayPartKind.enumMemberName:en&16?e.SymbolDisplayPartKind.functionName:en&32?e.SymbolDisplayPartKind.className:en&64?e.SymbolDisplayPartKind.interfaceName:en&384?e.SymbolDisplayPartKind.enumName:en&1536?e.SymbolDisplayPartKind.moduleName:en&8192?e.SymbolDisplayPartKind.methodName:en&262144?e.SymbolDisplayPartKind.typeParameterName:en&524288||en&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=Yi;function Ni(he,ar){return{text:he,kind:e.SymbolDisplayPartKind[ar]}}e.displayPart=Ni;function Eo(){return Ni(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Eo;function lo(he){return Ni(e.tokenToString(he),e.SymbolDisplayPartKind.keyword)}e.keywordPart=lo;function So(he){return Ni(e.tokenToString(he),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=So;function ts(he){return Ni(e.tokenToString(he),e.SymbolDisplayPartKind.operator)}e.operatorPart=ts;function ja(he){return Ni(he,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=ja;function Do(he){return Ni(he,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=Do;function Pa(he){var ar=e.stringToToken(he);return ar===void 0?Ti(he):lo(ar)}e.textOrKeywordPart=Pa;function Ti(he){return Ni(he,e.SymbolDisplayPartKind.text)}e.textPart=Ti;function mo(he){return Ni(he,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=mo;function No(he){return Ni(he,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=No;function ko(he){return Ni(he,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=ko;function Oo(he,ar){return{text:he,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(ar).fileName,textSpan:Ir(ar)}}}e.linkNamePart=Oo;function Po(he){return Ni(he,e.SymbolDisplayPartKind.link)}e.linkPart=Po;function Ss(he,ar){var hr,dt=e.isJSDocLink(he)?"link":e.isJSDocLinkCode(he)?"linkcode":"linkplain",en=[Po("{@".concat(dt," "))];if(!he.name)he.text&&en.push(ko(he.text));else{var ta=ar==null?void 0:ar.getSymbolAtLocation(he.name),Un=Ds(he.text),Ta=e.getTextOfNode(he.name)+he.text.slice(0,Un),Ei=he.text.slice(Un),Qi=(ta==null?void 0:ta.valueDeclaration)||((hr=ta==null?void 0:ta.declarations)===null||hr===void 0?void 0:hr[0]);Qi?(en.push(Oo(Ta,Qi)),Ei&&en.push(ko(Ei))):en.push(ko(Ta+(Un?"":" ")+Ei))}return en.push(Po("}")),en}e.buildLinkParts=Ss;function Ds(he){if(he.indexOf("()")===0)return 2;if(he[0]!=="<")return 0;for(var ar=0,hr=0;hr<he.length;)if(he[hr]==="<"&&ar++,he[hr]===">"&&ar--,hr++,!ar)return hr;return 0}var vr=`\r
`;function gt(he,ar){var hr;return(ar==null?void 0:ar.newLineCharacter)||((hr=he.getNewLine)===null||hr===void 0?void 0:hr.call(he))||vr}e.getNewLineOrDefaultFromHost=gt;function tn(){return Ni(`
`,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=tn;function Bn(he){try{return he(eo),eo.displayParts()}finally{eo.clear()}}e.mapToDisplayParts=Bn;function Fe(he,ar,hr,dt){return dt===void 0&&(dt=0),Bn(function(en){he.writeType(ar,hr,dt|1024|16384,en)})}e.typeToDisplayParts=Fe;function Gr(he,ar,hr,dt,en){return en===void 0&&(en=0),Bn(function(ta){he.writeSymbol(ar,hr,dt,en|8,ta)})}e.symbolToDisplayParts=Gr;function ht(he,ar,hr,dt){return dt===void 0&&(dt=0),dt|=25632,Bn(function(en){he.writeSignature(ar,hr,dt,void 0,en)})}e.signatureToDisplayParts=ht;function ye(he){return!!he.parent&&e.isImportOrExportSpecifier(he.parent)&&he.parent.propertyName===he}e.isImportOrExportSpecifierName=ye;function oe(he,ar){return e.ensureScriptKind(he,ar.getScriptKind&&ar.getScriptKind(he))}e.getScriptKind=oe;function Pe(he,ar){for(var hr=he;Tr(hr)||Ye(hr)&&hr.target;)Ye(hr)&&hr.target?hr=hr.target:hr=e.skipAlias(hr,ar);return hr}e.getSymbolTarget=Pe;function Ye(he){return(he.flags&33554432)!==0}function Tr(he){return(he.flags&2097152)!==0}function tt(he,ar){return e.getSymbolId(e.skipAlias(he,ar))}e.getUniqueSymbolId=tt;function Mt(he,ar){for(;e.isWhiteSpaceLike(he.charCodeAt(ar));)ar+=1;return ar}e.getFirstNonSpaceCharacterPosition=Mt;function Wt(he,ar){for(;ar>-1&&e.isWhiteSpaceSingleLine(he.charCodeAt(ar));)ar-=1;return ar+1}e.getPrecedingNonSpaceCharacterPosition=Wt;function Ln(he,ar){ar===void 0&&(ar=!0);var hr=he&&ti(he);return hr&&!ar&&Oi(hr),hr}e.getSynthesizedDeepClone=Ln;function va(he,ar,hr){var dt=hr(he);return dt?e.setOriginalNode(dt,he):dt=ti(he,hr),dt&&!ar&&Oi(dt),dt}e.getSynthesizedDeepCloneWithReplacements=va;function ti(he,ar){var hr=ar?function(Un){return va(Un,!0,ar)}:Ln,dt=ar?function(Un){return Un&&Si(Un,!0,ar)}:function(Un){return Un&&ii(Un)},en=e.visitEachChild(he,hr,e.nullTransformationContext,dt,hr);if(en===he){var ta=e.isStringLiteral(he)?e.setOriginalNode(e.factory.createStringLiteralFromNode(he),he):e.isNumericLiteral(he)?e.setOriginalNode(e.factory.createNumericLiteral(he.text,he.numericLiteralFlags),he):e.factory.cloneNode(he);return e.setTextRange(ta,he)}return en.parent=void 0,en}function ii(he,ar){return ar===void 0&&(ar=!0),he&&e.factory.createNodeArray(he.map(function(hr){return Ln(hr,ar)}),he.hasTrailingComma)}e.getSynthesizedDeepClones=ii;function Si(he,ar,hr){return e.factory.createNodeArray(he.map(function(dt){return va(dt,ar,hr)}),he.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=Si;function Oi(he){_s(he),os(he)}e.suppressLeadingAndTrailingTrivia=Oi;function _s(he){Wn(he,512,sa)}e.suppressLeadingTrivia=_s;function os(he){Wn(he,1024,e.getLastChild)}e.suppressTrailingTrivia=os;function jo(he,ar){var hr=he.getSourceFile(),dt=hr.text;At(he,dt)?Ui(he,ar,hr):gi(he,ar,hr),Ca(he,ar,hr)}e.copyComments=jo;function At(he,ar){for(var hr=he.getFullStart(),dt=he.getStart(),en=hr;en<dt;en++)if(ar.charCodeAt(en)===10)return!0;return!1}function Wn(he,ar,hr){e.addEmitFlags(he,ar);var dt=hr(he);dt&&Wn(dt,ar,hr)}function sa(he){return he.forEachChild(function(ar){return ar})}function oi(he,ar){for(var hr=he,dt=1;!e.isFileLevelUniqueName(ar,hr);dt++)hr="".concat(he,"_").concat(dt);return hr}e.getUniqueName=oi;function vi(he,ar,hr,dt){for(var en=0,ta=-1,Un=0,Ta=he;Un<Ta.length;Un++){var Ei=Ta[Un],Qi=Ei.fileName,Wi=Ei.textChanges;e.Debug.assert(Qi===ar);for(var Ai=0,Ci=Wi;Ai<Ci.length;Ai++){var Fo=Ci[Ai],xo=Fo.span,js=Fo.newText,Dl=Vi(js,hr);if(Dl!==-1&&(ta=xo.start+en+Dl,!dt))return ta;en+=js.length-xo.length}}return e.Debug.assert(dt),e.Debug.assert(ta>=0),ta}e.getRenameLocation=vi;function Ui(he,ar,hr,dt,en){e.forEachLeadingCommentRange(hr.text,he.pos,Mi(ar,hr,dt,en,e.addSyntheticLeadingComment))}e.copyLeadingComments=Ui;function Ca(he,ar,hr,dt,en){e.forEachTrailingCommentRange(hr.text,he.end,Mi(ar,hr,dt,en,e.addSyntheticTrailingComment))}e.copyTrailingComments=Ca;function gi(he,ar,hr,dt,en){e.forEachTrailingCommentRange(hr.text,he.pos,Mi(ar,hr,dt,en,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=gi;function Mi(he,ar,hr,dt,en){return function(ta,Un,Ta,Ei){Ta===3?(ta+=2,Un-=2):ta+=2,en(he,hr||Ta,ar.text.slice(ta,Un),dt!==void 0?dt:Ei)}}function Vi(he,ar){if(e.startsWith(he,ar))return 0;var hr=he.indexOf(" "+ar);return hr===-1&&(hr=he.indexOf("."+ar)),hr===-1&&(hr=he.indexOf('"'+ar)),hr===-1?-1:hr+1}function Ro(he){return e.isBinaryExpression(he)&&he.operatorToken.kind===27||e.isObjectLiteralExpression(he)||e.isAsExpression(he)&&e.isObjectLiteralExpression(he.expression)}e.needsParentheses=Ro;function Yo(he,ar){var hr=he.parent;switch(hr.kind){case 208:return ar.getContextualType(hr);case 220:{var dt=hr,en=dt.left,ta=dt.operatorToken,Un=dt.right;return me(ta.kind)?ar.getTypeAtLocation(he===Un?en:Un):ar.getContextualType(he)}case 288:return hr.expression===he?Le(hr,ar):void 0;default:return ar.getContextualType(he)}}e.getContextualTypeFromParent=Yo;function ns(he,ar,hr){var dt=wn(he,ar),en=JSON.stringify(hr);return dt===0?"'".concat(e.stripQuotes(en).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):en}e.quote=ns;function me(he){switch(he){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=me;function Pr(he){switch(he.kind){case 10:case 14:case 222:case 209:return!0;default:return!1}}e.isStringLiteralOrTemplate=Pr;function yt(he){return!!he.getStringIndexType()||!!he.getNumberIndexType()}e.hasIndexSignature=yt;function Le(he,ar){return ar.getTypeAtLocation(he.parent.parent.expression)}e.getSwitchedType=Le,e.ANONYMOUS="anonymous function";function Xr(he,ar,hr,dt){var en=hr.getTypeChecker(),ta=!0,Un=function(){return ta=!1},Ta=en.typeToTypeNode(he,ar,1,{trackSymbol:function(Ei,Qi,Wi){return ta=ta&&en.isSymbolAccessible(Ei,Qi,Wi,!1).accessibility===0,!ta},reportInaccessibleThisError:Un,reportPrivateInBaseOfClassExpression:Un,reportInaccessibleUniqueSymbolError:Un,moduleResolverHost:Gn(hr,dt)});return ta?Ta:void 0}e.getTypeNodeIfAccessible=Xr;function an(he){return he===173||he===174||he===175||he===165||he===167}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=an;function Xn(he){return he===255||he===170||he===168||he===171||he===172}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=Xn;function da(he){return he===260}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=da;function bi(he){return he===236||he===237||he===239||he===244||he===245||he===246||he===250||he===252||he===166||he===258||he===265||he===264||he===271||he===263||he===270}e.syntaxRequiresTrailingSemicolonOrASI=bi,e.syntaxMayBeASICandidate=e.or(an,Xn,da,bi);function Qa(he,ar){var hr=he.getLastToken(ar);if(hr&&hr.kind===26)return!1;if(an(he.kind)){if(hr&&hr.kind===27)return!1}else if(da(he.kind)){var dt=e.last(he.getChildren(ar));if(dt&&e.isModuleBlock(dt))return!1}else if(Xn(he.kind)){var dt=e.last(he.getChildren(ar));if(dt&&e.isFunctionBlock(dt))return!1}else if(!bi(he.kind))return!1;if(he.kind===239)return!0;var en=e.findAncestor(he,function(Ei){return!Ei.parent}),ta=qe(he,en,ar);if(!ta||ta.kind===19)return!0;var Un=ar.getLineAndCharacterOfPosition(he.getEnd()).line,Ta=ar.getLineAndCharacterOfPosition(ta.getStart(ar)).line;return Un!==Ta}function go(he,ar,hr){var dt=e.findAncestor(ar,function(en){return en.end!==he?"quit":e.syntaxMayBeASICandidate(en.kind)});return!!dt&&Qa(dt,hr)}e.positionIsASICandidate=go;function wr(he){var ar=0,hr=0,dt=5;return e.forEachChild(he,function en(ta){if(bi(ta.kind)){var Un=ta.getLastToken(he);Un&&Un.kind===26?ar++:hr++}return ar+hr>=dt?!0:e.forEachChild(ta,en)}),ar===0&&hr<=1?!0:ar/hr>1/dt}e.probablyUsesSemicolons=wr;function ss(he,ar){return xl(he,he.getDirectories,ar)||[]}e.tryGetDirectories=ss;function al(he,ar,hr,dt,en){return xl(he,he.readDirectory,ar,hr,dt,en)||e.emptyArray}e.tryReadDirectory=al;function Sl(he,ar){return xl(he,he.fileExists,ar)}e.tryFileExists=Sl;function zo(he,ar){return bs(function(){return e.directoryProbablyExists(ar,he)})||!1}e.tryDirectoryExists=zo;function bs(he){try{return he()}catch(ar){return}}e.tryAndIgnoreErrors=bs;function xl(he,ar){for(var hr=[],dt=2;dt<arguments.length;dt++)hr[dt-2]=arguments[dt];return bs(function(){return ar&&ar.apply(he,hr)})}e.tryIOAndConsumeErrors=xl;function ic(he,ar,hr){var dt=[];return e.forEachAncestorDirectory(he,function(en){if(en===hr)return!0;var ta=e.combinePaths(en,"package.json");Sl(ar,ta)&&dt.push(ta)}),dt}e.findPackageJsons=ic;function Vl(he,ar){var hr;return e.forEachAncestorDirectory(he,function(dt){if(dt==="node_modules"||(hr=e.findConfigFile(dt,function(en){return Sl(ar,en)},"package.json"),hr))return!0}),hr}e.findPackageJson=Vl;function zc(he,ar){if(!ar.fileExists)return[];var hr=[];return e.forEachAncestorDirectory(e.getDirectoryPath(he),function(dt){var en=e.combinePaths(dt,"package.json");if(ar.fileExists(en)){var ta=io(en,ar);ta&&hr.push(ta)}}),hr}e.getPackageJsonsVisibleToFile=zc;function io(he,ar){if(!ar.readFile)return;var hr=["dependencies","devDependencies","optionalDependencies","peerDependencies"],dt=ar.readFile(he)||"",en=Oc(dt),ta={};if(en)for(var Un=0,Ta=hr;Un<Ta.length;Un++){var Ei=Ta[Un],Qi=en[Ei];if(!!Qi){var Wi=new e.Map;for(var Ai in Qi)Wi.set(Ai,Qi[Ai]);ta[Ei]=Wi}}var Ci=[[1,ta.dependencies],[2,ta.devDependencies],[8,ta.optionalDependencies],[4,ta.peerDependencies]];return kn(kn({},ta),{parseable:!!en,fileName:he,get:Fo,has:function(xo,js){return!!Fo(xo,js)}});function Fo(xo,js){js===void 0&&(js=15);for(var Dl=0,cc=Ci;Dl<cc.length;Dl++){var qc=cc[Dl],Br=qc[0],Il=qc[1];if(Il&&js&Br){var Nl=Il.get(xo);if(Nl!==void 0)return Nl}}}}e.createPackageJsonInfo=io;function Zl(he,ar,hr){var dt=(hr.getPackageJsonsVisibleToFile&&hr.getPackageJsonsVisibleToFile(he.fileName)||zc(he.fileName,hr)).filter(function(Ci){return Ci.parseable}),en;return{allowsImportingAmbientModule:Un,allowsImportingSourceFile:Ta,allowsImportingSpecifier:Ei};function ta(Ci){for(var Fo=Ai(Ci),xo=0,js=dt;xo<js.length;xo++){var Dl=js[xo];if(Dl.has(Fo)||Dl.has(e.getTypesPackageName(Fo)))return!0}return!1}function Un(Ci,Fo){if(!dt.length||!Ci.valueDeclaration)return!0;var xo=Ci.valueDeclaration.getSourceFile(),js=Wi(xo.fileName,Fo);if(typeof js=="undefined")return!0;var Dl=e.stripQuotes(Ci.getName());return Qi(Dl)?!0:ta(js)||ta(Dl)}function Ta(Ci,Fo){if(!dt.length)return!0;var xo=Wi(Ci.fileName,Fo);return xo?ta(xo):!0}function Ei(Ci){return!dt.length||Qi(Ci)||e.pathIsRelative(Ci)||e.isRootedDiskPath(Ci)?!0:ta(Ci)}function Qi(Ci){return!!(e.isSourceFileJS(he)&&e.JsTyping.nodeCoreModules.has(Ci)&&(en===void 0&&(en=ul(he)),en))}function Wi(Ci,Fo){if(!!e.stringContains(Ci,"node_modules")){var xo=e.moduleSpecifiers.getNodeModulesPackageName(hr.getCompilationSettings(),he.path,Ci,Fo,ar);if(!!xo&&!e.pathIsRelative(xo)&&!e.isRootedDiskPath(xo))return Ai(xo)}}function Ai(Ci){var Fo=e.getPathComponents(e.getPackageNameFromTypesPackageName(Ci)).slice(1);return e.startsWith(Fo[0],"@")?"".concat(Fo[0],"/").concat(Fo[1]):Fo[0]}}e.createPackageJsonImportFilter=Zl;function Oc(he){try{return JSON.parse(he)}catch(ar){return}}function ul(he){return e.some(he.imports,function(ar){var hr=ar.text;return e.JsTyping.nodeCoreModules.has(hr)})}e.consumesNodeCoreModules=ul;function oc(he){return e.contains(e.getPathComponents(he),"node_modules")}e.isInsideNodeModules=oc;function sc(he){return he.file!==void 0&&he.start!==void 0&&he.length!==void 0}e.isDiagnosticWithLocation=sc;function Ia(he,ar){var hr=Ir(he),dt=e.binarySearchKey(ar,hr,e.identity,e.compareTextSpans);if(dt>=0){var en=ar[dt];return e.Debug.assertEqual(en.file,he.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(en,sc)}}e.findDiagnosticForNode=Ia;function tf(he,ar){var hr,dt=e.binarySearchKey(ar,he.start,function(Ta){return Ta.start},e.compareValues);for(dt<0&&(dt=~dt);((hr=ar[dt-1])===null||hr===void 0?void 0:hr.start)===he.start;)dt--;for(var en=[],ta=e.textSpanEnd(he);;){var Un=e.tryCast(ar[dt],sc);if(!Un||Un.start>ta)break;e.textSpanContainsTextSpan(he,Un)&&en.push(Un),dt++}return en}e.getDiagnosticsWithinSpan=tf;function Rc(he){var ar=he.startPosition,hr=he.endPosition;return e.createTextSpanFromBounds(ar,hr===void 0?ar:hr)}e.getRefactorContextSpan=Rc;function lc(he,ar){var hr=fr(he,ar.start),dt=e.findAncestor(hr,function(en){return en.getStart(he)<ar.start||en.getEnd()>e.textSpanEnd(ar)?"quit":e.isExpression(en)&&ya(ar,Ir(en,he))});return dt}e.getFixableErrorSpanExpression=lc;function Fr(he,ar,hr){return hr===void 0&&(hr=e.identity),he?e.isArray(he)?hr(e.map(he,ar)):ar(he,0):void 0}e.mapOneOrMany=Fr;function rt(he){return e.isArray(he)?e.first(he):he}e.firstOrOnly=rt;function Dt(he,ar){return!(he.flags&33554432)&&(he.escapedName==="export="||he.escapedName==="default")?e.firstDefined(he.declarations,function(hr){var dt;return e.isExportAssignment(hr)?(dt=e.tryCast(e.skipOuterExpressions(hr.expression),e.isIdentifier))===null||dt===void 0?void 0:dt.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(zt(he),ar):he.name}e.getNameForExportedSymbol=Dt;function zt(he){var ar;return e.Debug.checkDefined(he.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(he.flags),". ")+"Declarations: ".concat((ar=he.declarations)===null||ar===void 0?void 0:ar.map(function(hr){var dt=e.Debug.formatSyntaxKind(hr.kind),en=e.isInJSFile(hr),ta=hr.expression;return(en?"[JS]":"")+dt+(ta?" (expression: ".concat(e.Debug.formatSyntaxKind(ta.kind),")"):"")}).join(", "),"."))}function _n(he,ar,hr){var dt=ar.length;if(dt+hr>he.length)return!1;for(var en=0;en<dt;en++)if(ar.charCodeAt(en)!==he.charCodeAt(en+hr))return!1;return!0}e.stringContainsAt=_n;function dn(he){return he.charCodeAt(0)===95}e.startsWithUnderscore=dn;function On(he){return!Jn(he)}e.isGlobalDeclaration=On;function Jn(he){var ar=he.getSourceFile();return!ar.externalModuleIndicator&&!ar.commonJsModuleIndicator?!1:e.isInJSFile(he)||!e.findAncestor(he,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=Jn;function Fa(he){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(he)&8192)}e.isDeprecatedDeclaration=Fa;function fa(he,ar){var hr=e.firstDefined(he.imports,function(dt){if(e.JsTyping.nodeCoreModules.has(dt.text))return e.startsWith(dt.text,"node:")});return hr!=null?hr:ar.usesUriStyleNodeCoreModules}e.shouldUseUriStyleNodeCoreModules=fa;function ba(he){return he===`
`?1:0}e.getNewLineKind=ba;function Na(he){return e.isArray(he)?e.formatStringFromArgs(e.getLocaleSpecificMessage(he[0]),he.slice(1)):e.getLocaleSpecificMessage(he)}e.diagnosticToString=Na})(mr||(mr={}));var mr;(function(e){var n;(function(F){F[F.Named=0]="Named",F[F.Default=1]="Default",F[F.Namespace=2]="Namespace",F[F.CommonJS=3]="CommonJS"})(n=e.ImportKind||(e.ImportKind={}));var c;(function(F){F[F.Named=0]="Named",F[F.Default=1]="Default",F[F.ExportEquals=2]="ExportEquals",F[F.UMD=3]="UMD"})(c=e.ExportKind||(e.ExportKind={}));function u(F){var $=1,C=e.createMultiMap(),K=new e.Map,k,X={isUsableByFile:function(q){return q===k},isEmpty:function(){return!C.size},clear:function(){C.clear(),K.clear(),k=void 0},add:function(q,P,M,Q,H,w,d,B,T){q!==k&&(X.clear(),k=q);var _=w===1,h=_&&e.getLocalSymbolForExportDefault(P)||P,R=w===0||e.isExternalModuleSymbol(h)?e.unescapeLeadingUnderscores(M):e.getNameForExportedSymbol(h,B),b=e.stripQuotes(Q.name),G=$++,Y=e.skipAlias(P,T),pe=P.flags&33554432?void 0:P,A=Q.flags&33554432?void 0:Q;(!pe||!A)&&K.set(G,[P,Q]),C.add(x(R,P,e.isExternalModuleNameRelative(b)?void 0:b,T),{id:G,symbolTableKey:M,symbolName:R,moduleName:b,moduleFile:H,moduleFileName:H==null?void 0:H.fileName,exportKind:w,targetFlags:Y.flags,isFromPackageJson:d,symbol:pe,moduleSymbol:A})},get:function(q,P){if(q===k){var M=C.get(P);return M==null?void 0:M.map(O)}},forEach:function(q,P){q===k&&C.forEach(function(M,Q){var H=ie(Q),w=H.symbolName,d=H.ambientModuleName;P(M.map(O),w,!!d,Q)})},releaseSymbols:function(){K.clear()},onFileChanged:function(q,P,M){return Z(q)&&Z(P)?!1:k&&k!==P.path||M&&e.consumesNodeCoreModules(q)!==e.consumesNodeCoreModules(P)||!e.arrayIsEqualTo(q.moduleAugmentations,P.moduleAugmentations)||!re(q,P)?(X.clear(),!0):(k=P.path,!1)}};return e.Debug.isDebugging&&Object.defineProperty(X,"__cache",{get:function(){return C}}),X;function O(q){if(q.symbol&&q.moduleSymbol)return q;var P=q.id,M=q.exportKind,Q=q.targetFlags,H=q.isFromPackageJson,w=q.moduleFileName,d=K.get(P)||e.emptyArray,B=d[0],T=d[1];if(B&&T)return{symbol:B,moduleSymbol:T,moduleFileName:w,exportKind:M,targetFlags:Q,isFromPackageJson:H};var _=(H?F.getPackageJsonAutoImportProvider():F.getCurrentProgram()).getTypeChecker(),h=q.moduleSymbol||T||e.Debug.checkDefined(q.moduleFile?_.getMergedSymbol(q.moduleFile.symbol):_.tryFindAmbientModule(q.moduleName)),R=q.symbol||B||e.Debug.checkDefined(M===2?_.resolveExternalModuleSymbol(h):_.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(q.symbolTableKey),h),"Could not find symbol '".concat(q.symbolName,"' by key '").concat(q.symbolTableKey,"' in module ").concat(h.name));return K.set(P,[R,h]),{symbol:R,moduleSymbol:h,moduleFileName:w,exportKind:M,targetFlags:Q,isFromPackageJson:H}}function x(q,P,M,Q){var H=M||"";return"".concat(q,"|").concat(e.getSymbolId(e.skipAlias(P,Q)),"|").concat(H)}function ie(q){var P=q.substring(0,q.indexOf("|")),M=q.substring(q.lastIndexOf("|")+1),Q=M===""?void 0:M;return{symbolName:P,ambientModuleName:Q}}function Z(q){return!q.commonJsModuleIndicator&&!q.externalModuleIndicator&&!q.moduleAugmentations&&!q.ambientModuleNames}function re(q,P){if(!e.arrayIsEqualTo(q.ambientModuleNames,P.ambientModuleNames))return!1;for(var M=-1,Q=-1,H=function(_){var h=function(R){return e.isNonGlobalAmbientModule(R)&&R.name.text===_};if(M=e.findIndex(q.statements,h,M+1),Q=e.findIndex(P.statements,h,Q+1),q.statements[M]!==P.statements[Q])return{value:!1}},w=0,d=P.ambientModuleNames;w<d.length;w++){var B=d[w],T=H(B);if(typeof T=="object")return T.value}return!0}}e.createCacheableExportInfoMap=u;function g(F,$,C,K,k,X,O){var x;if($===C)return!1;var ie=O==null?void 0:O.get($.path,C.path,K);if((ie==null?void 0:ie.isAutoImportable)!==void 0)return ie.isAutoImportable;var Z=e.hostGetCanonicalFileName(X),re=(x=X.getGlobalTypingsCacheLocation)===null||x===void 0?void 0:x.call(X),q=!!e.moduleSpecifiers.forEachFileNameOfModule($.fileName,C.fileName,X,!1,function(M){var Q=F.getSourceFile(M);return(Q===C||!Q)&&p($.fileName,M,Z,re)});if(k){var P=q&&k.allowsImportingSourceFile(C,X);return O==null||O.setIsAutoImportable($.path,C.path,K,P),P}return q}e.isImportableFile=g;function p(F,$,C,K){var k=e.forEachAncestorDirectory($,function(O){return e.getBaseFileName(O)==="node_modules"?O:void 0}),X=k&&e.getDirectoryPath(C(k));return X===void 0||e.startsWith(C(F),X)||!!K&&e.startsWith(C(K),X)}function I(F,$,C,K){var k,X;V(F.getTypeChecker(),F.getSourceFiles(),function(ie,Z){return K(ie,Z,F,!1)});var O=C&&((k=$.getPackageJsonAutoImportProvider)===null||k===void 0?void 0:k.call($));if(O){var x=e.timestamp();V(O.getTypeChecker(),O.getSourceFiles(),function(ie,Z){return K(ie,Z,O,!0)}),(X=$.log)===null||X===void 0||X.call($,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-x))}}e.forEachExternalModuleToImportFrom=I;function V(F,$,C){for(var K=0,k=F.getAmbientModules();K<k.length;K++){var X=k[K];e.stringContains(X.name,"*")||C(X,void 0)}for(var O=0,x=$;O<x.length;O++){var ie=x[O];e.isExternalOrCommonJsModule(ie)&&C(F.getMergedSymbol(ie.symbol),ie)}}function L(F,$,C,K){var k,X,O,x,ie,Z=e.timestamp();(k=$.getPackageJsonAutoImportProvider)===null||k===void 0||k.call($);var re=((X=$.getCachedExportInfoMap)===null||X===void 0?void 0:X.call($))||u({getCurrentProgram:function(){return C},getPackageJsonAutoImportProvider:function(){var Q;return(Q=$.getPackageJsonAutoImportProvider)===null||Q===void 0?void 0:Q.call($)}});if(re.isUsableByFile(F.path))return(O=$.log)===null||O===void 0||O.call($,"getExportInfoMap: cache hit"),re;(x=$.log)===null||x===void 0||x.call($,"getExportInfoMap: cache miss or empty; calculating new results");var q=C.getCompilerOptions(),P=e.getEmitScriptTarget(q),M=0;return I(C,$,!0,function(Q,H,w,d){++M%100===0&&(K==null||K.throwIfCancellationRequested());var B=new e.Map,T=w.getTypeChecker(),_=m(Q,T,q);_&&y(_.symbol,T)&&re.add(F.path,_.symbol,_.exportKind===1?"default":"export=",Q,H,_.exportKind,d,P,T),T.forEachExportAndPropertyOfModule(Q,function(h,R){h!==(_==null?void 0:_.symbol)&&y(h,T)&&e.addToSeen(B,R)&&re.add(F.path,h,R,Q,H,0,d,P,T)})}),(ie=$.log)===null||ie===void 0||ie.call($,"getExportInfoMap: done in ".concat(e.timestamp()-Z," ms")),re}e.getExportInfoMap=L;function m(F,$,C){var K=j(F,$);if(!!K){var k=K.symbol,X=K.exportKind,O=te(k,$,C);return O&&kn({symbol:k,exportKind:X},O)}}e.getDefaultLikeExportInfo=m;function y(F,$){return!$.isUndefinedSymbol(F)&&!$.isUnknownSymbol(F)&&!e.isKnownSymbol(F)&&!e.isPrivateIdentifierSymbol(F)}function j(F,$){var C=$.resolveExternalModuleSymbol(F);if(C!==F)return{symbol:C,exportKind:2};var K=$.tryGetMemberInModuleExports("default",F);if(K)return{symbol:K,exportKind:1}}function te(F,$,C){var K=e.getLocalSymbolForExportDefault(F);if(K)return{symbolForMeaning:K,name:K.name};var k=E(F);if(k!==void 0)return{symbolForMeaning:F,name:k};if(F.flags&2097152){var X=$.getImmediateAliasedSymbol(F);if(X&&X.parent)return te(X,$,C)}return F.escapedName!=="default"&&F.escapedName!=="export="?{symbolForMeaning:F,name:F.getName()}:{symbolForMeaning:F,name:e.getNameForExportedSymbol(F,C.target)}}function E(F){return F.declarations&&e.firstDefined(F.declarations,function($){var C;if(e.isExportAssignment($))return(C=e.tryCast(e.skipOuterExpressions($.expression),e.isIdentifier))===null||C===void 0?void 0:C.text;if(e.isExportSpecifier($))return e.Debug.assert($.name.text==="default","Expected the specifier to be a default export"),$.propertyName&&$.propertyName.text})}})(mr||(mr={}));var mr;(function(e){function n(){var x=e.createScanner(99,!1);function ie(re,q,P){return p(Z(re,q,P),re)}function Z(re,q,P){var M=0,Q=0,H=[],w=L(q),d=w.prefix,B=w.pushTemplate;re=d+re;var T=d.length;B&&H.push(15),x.setText(re);var _=0,h=[],R=0;do{M=x.scan(),e.isTrivia(M)||(Y(),Q=M);var b=x.getTextPos();if(g(x.getTokenPos(),b,T,j(M),h),b>=re.length){var G=u(x,M,e.lastOrUndefined(H));G!==void 0&&(_=G)}}while(M!==1);function Y(){switch(M){case 43:case 68:!c[Q]&&x.reScanSlashToken()===13&&(M=13);break;case 29:Q===79&&R++;break;case 31:R>0&&R--;break;case 130:case 149:case 146:case 133:case 150:R>0&&!P&&(M=79);break;case 15:H.push(M);break;case 18:H.length>0&&H.push(M);break;case 19:if(H.length>0){var pe=e.lastOrUndefined(H);pe===15?(M=x.reScanTemplateToken(!1),M===17?H.pop():e.Debug.assertEqual(M,16,"Should have been a template middle.")):(e.Debug.assertEqual(pe,18,"Should have been an open brace"),H.pop())}break;default:if(!e.isKeyword(M))break;(Q===24||e.isKeyword(Q)&&e.isKeyword(M)&&!V(Q,M))&&(M=79)}}return{endOfLineState:_,spans:h}}return{getClassificationsForLine:ie,getEncodedLexicalClassifications:Z}}e.createClassifier=n;var c=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(x){return x},function(){return!0});function u(x,ie,Z){switch(ie){case 10:{if(!x.isUnterminated())return;for(var re=x.getTokenText(),q=re.length-1,P=0;re.charCodeAt(q-P)===92;)P++;return(P&1)===0?void 0:re.charCodeAt(0)===34?3:2}case 3:return x.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(ie)){if(!x.isUnterminated())return;switch(ie){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+ie)}}return Z===15?6:void 0}}function g(x,ie,Z,re,q){if(re!==8){x===0&&Z>0&&(x+=Z);var P=ie-x;P>0&&q.push(x-Z,P,re)}}function p(x,ie){for(var Z=[],re=x.spans,q=0,P=0;P<re.length;P+=3){var M=re[P],Q=re[P+1],H=re[P+2];if(q>=0){var w=M-q;w>0&&Z.push({length:w,classification:e.TokenClass.Whitespace})}Z.push({length:Q,classification:I(H)}),q=M+Q}var d=ie.length-q;return d>0&&Z.push({length:d,classification:e.TokenClass.Whitespace}),{entries:Z,finalLexState:x.endOfLineState}}function I(x){switch(x){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return e.TokenClass.Identifier;default:return}}function V(x,ie){if(!e.isAccessibilityModifier(x))return!0;switch(ie){case 136:case 148:case 134:case 124:return!0;default:return!1}}function L(x){switch(x){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 e.Debug.assertNever(x)}}function m(x){switch(x){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}function y(x){switch(x){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function j(x){if(e.isKeyword(x))return 3;if(m(x)||y(x))return 5;if(x>=18&&x<=78)return 10;switch(x){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 79:default:return e.isTemplateLiteralKind(x)?6:2}}function te(x,ie,Z,re,q){return k(F(x,ie,Z,re,q))}e.getSemanticClassifications=te;function E(x,ie){switch(ie){case 260:case 256:case 257:case 255:case 225:case 212:case 213:x.throwIfCancellationRequested()}}function F(x,ie,Z,re,q){var P=[];return Z.forEachChild(function Q(H){if(!(!H||!e.textSpanIntersectsWith(q,H.pos,H.getFullWidth()))){if(E(ie,H.kind),e.isIdentifier(H)&&!e.nodeIsMissing(H)&&re.has(H.escapedText)){var w=x.getSymbolAtLocation(H),d=w&&$(w,e.getMeaningFromLocation(H),x);d&&M(H.getStart(Z),H.getEnd(),d)}H.forEachChild(Q)}}),{spans:P,endOfLineState:0};function M(Q,H,w){var d=H-Q;e.Debug.assert(d>0,"Classification had non-positive length of ".concat(d)),P.push(Q),P.push(d),P.push(w)}}e.getEncodedSemanticClassifications=F;function $(x,ie,Z){var re=x.getFlags();if((re&2885600)!==0)return re&32?11:re&384?12:re&524288?16:re&1536?ie&4||ie&1&&C(x)?14:void 0:re&2097152?$(Z.getAliasedSymbol(x),ie,Z):ie&2?re&64?13:re&262144?15:void 0:void 0}function C(x){return e.some(x.declarations,function(ie){return e.isModuleDeclaration(ie)&&e.getModuleInstanceState(ie)===1})}function K(x){switch(x){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 k(x){e.Debug.assert(x.spans.length%3===0);for(var ie=x.spans,Z=[],re=0;re<ie.length;re+=3)Z.push({textSpan:e.createTextSpan(ie[re],ie[re+1]),classificationType:K(ie[re+2])});return Z}function X(x,ie,Z){return k(O(x,ie,Z))}e.getSyntacticClassifications=X;function O(x,ie,Z){var re=Z.start,q=Z.length,P=e.createScanner(99,!1,ie.languageVariant,ie.text),M=e.createScanner(99,!1,ie.languageVariant,ie.text),Q=[];return A(ie),{spans:Q,endOfLineState:0};function H(_e,Se,ae){Q.push(_e),Q.push(Se),Q.push(ae)}function w(_e){for(P.setTextPos(_e.pos);;){var Se=P.getTextPos();if(!e.couldStartTrivia(ie.text,Se))return Se;var ae=P.scan(),D=P.getTextPos(),be=D-Se;if(!e.isTrivia(ae))return Se;switch(ae){case 4:case 5:continue;case 2:case 3:d(_e,ae,Se,be),P.setTextPos(D);continue;case 7:var ne=ie.text,J=ne.charCodeAt(Se);if(J===60||J===62){H(Se,be,1);continue}e.Debug.assert(J===124||J===61),R(ne,Se,D);break;case 6:break;default:e.Debug.assertNever(ae)}}}function d(_e,Se,ae,D){if(Se===3){var be=e.parseIsolatedJSDocComment(ie.text,ae,D);if(be&&be.jsDoc){e.setParent(be.jsDoc,_e),T(be.jsDoc);return}}else if(Se===2&&_(ae,D))return;B(ae,D)}function B(_e,Se){H(_e,Se,1)}function T(_e){var Se,ae,D,be,ne,J,le,Te=_e.pos;if(_e.tags)for(var Me=0,Ke=_e.tags;Me<Ke.length;Me++){var Ae=Ke[Me];Ae.pos!==Te&&B(Te,Ae.pos-Te),H(Ae.pos,1,10),H(Ae.tagName.pos,Ae.tagName.end-Ae.tagName.pos,18),Te=Ae.tagName.end;var Ge=Ae.tagName.end;switch(Ae.kind){case 338:var se=Ae;ce(se),Ge=se.isNameFirst&&((Se=se.typeExpression)===null||Se===void 0?void 0:Se.end)||se.name.end;break;case 345:var xe=Ae;Ge=xe.isNameFirst&&((ae=xe.typeExpression)===null||ae===void 0?void 0:ae.end)||xe.name.end;break;case 342:h(Ae),Te=Ae.end,Ge=Ae.typeParameters.end;break;case 343:var Re=Ae;Ge=((D=Re.typeExpression)===null||D===void 0?void 0:D.kind)===307&&((be=Re.fullName)===null||be===void 0?void 0:be.end)||((ne=Re.typeExpression)===null||ne===void 0?void 0:ne.end)||Ge;break;case 336:Ge=Ae.typeExpression.end;break;case 341:A(Ae.typeExpression),Te=Ae.end,Ge=Ae.typeExpression.end;break;case 340:case 337:Ge=Ae.typeExpression.end;break;case 339:A(Ae.typeExpression),Te=Ae.end,Ge=((J=Ae.typeExpression)===null||J===void 0?void 0:J.end)||Ge;break;case 344:Ge=((le=Ae.name)===null||le===void 0?void 0:le.end)||Ge;break;case 326:case 327:Ge=Ae.class.end;break}typeof Ae.comment=="object"?B(Ae.comment.pos,Ae.comment.end-Ae.comment.pos):typeof Ae.comment=="string"&&B(Ge,Ae.end-Ge)}Te!==_e.end&&B(Te,_e.end-Te);return;function ce(Ue){Ue.isNameFirst&&(B(Te,Ue.name.pos-Te),H(Ue.name.pos,Ue.name.end-Ue.name.pos,17),Te=Ue.name.end),Ue.typeExpression&&(B(Te,Ue.typeExpression.pos-Te),A(Ue.typeExpression),Te=Ue.typeExpression.end),Ue.isNameFirst||(B(Te,Ue.name.pos-Te),H(Ue.name.pos,Ue.name.end-Ue.name.pos,17),Te=Ue.name.end)}}function _(_e,Se){var ae=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,D=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,be=ie.text.substr(_e,Se),ne=ae.exec(be);if(!ne||!ne[3]||!(ne[3]in e.commentPragmas))return!1;var J=_e;B(J,ne[1].length),J+=ne[1].length,H(J,ne[2].length,10),J+=ne[2].length,H(J,ne[3].length,21),J+=ne[3].length;for(var le=ne[4],Te=J;;){var Me=D.exec(le);if(!Me)break;var Ke=J+Me.index+Me[1].length;Ke>Te&&(B(Te,Ke-Te),Te=Ke),H(Te,Me[2].length,22),Te+=Me[2].length,Me[3].length&&(B(Te,Me[3].length),Te+=Me[3].length),H(Te,Me[4].length,5),Te+=Me[4].length,Me[5].length&&(B(Te,Me[5].length),Te+=Me[5].length),H(Te,Me[6].length,24),Te+=Me[6].length}J+=ne[4].length,J>Te&&B(Te,J-Te),ne[5]&&(H(J,ne[5].length,10),J+=ne[5].length);var Ae=_e+Se;return J<Ae&&B(J,Ae-J),!0}function h(_e){for(var Se=0,ae=_e.getChildren();Se<ae.length;Se++){var D=ae[Se];A(D)}}function R(_e,Se,ae){var D;for(D=Se;D<ae&&!e.isLineBreak(_e.charCodeAt(D));D++);for(H(Se,D-Se,1),M.setTextPos(D);M.getTextPos()<ae;)b()}function b(){var _e=M.getTextPos(),Se=M.scan(),ae=M.getTextPos(),D=pe(Se);D&&H(_e,ae-_e,D)}function G(_e){if(e.isJSDoc(_e)||e.nodeIsMissing(_e))return!0;var Se=Y(_e);if(!e.isToken(_e)&&_e.kind!==11&&Se===void 0)return!1;var ae=_e.kind===11?_e.pos:w(_e),D=_e.end-ae;if(e.Debug.assert(D>=0),D>0){var be=Se||pe(_e.kind,_e);be&&H(ae,D,be)}return!0}function Y(_e){switch(_e.parent&&_e.parent.kind){case 279:if(_e.parent.tagName===_e)return 19;break;case 280:if(_e.parent.tagName===_e)return 20;break;case 278:if(_e.parent.tagName===_e)return 21;break;case 284:if(_e.parent.name===_e)return 22;break}}function pe(_e,Se){if(e.isKeyword(_e))return 3;if((_e===29||_e===31)&&Se&&e.getTypeArgumentOrTypeParameterList(Se.parent))return 10;if(e.isPunctuation(_e)){if(Se){var ae=Se.parent;if(_e===63&&(ae.kind===253||ae.kind===166||ae.kind===163||ae.kind===284)||ae.kind===220||ae.kind===218||ae.kind===219||ae.kind===221)return 5}return 10}else{if(_e===8)return 4;if(_e===9)return 25;if(_e===10)return Se&&Se.parent.kind===284?24:6;if(_e===13)return 6;if(e.isTemplateLiteralKind(_e))return 6;if(_e===11)return 23;if(_e===79){if(Se)switch(Se.parent.kind){case 256:return Se.parent.name===Se?11:void 0;case 162:return Se.parent.name===Se?15:void 0;case 257:return Se.parent.name===Se?13:void 0;case 259:return Se.parent.name===Se?12:void 0;case 260:return Se.parent.name===Se?14:void 0;case 163:return Se.parent.name===Se?e.isThisIdentifier(Se)?3:17:void 0}return 2}}}function A(_e){if(!!_e&&e.decodedTextSpanIntersectsWith(re,q,_e.pos,_e.getFullWidth())){E(x,_e.kind);for(var Se=0,ae=_e.getChildren(ie);Se<ae.length;Se++){var D=ae[Se];G(D)||A(D)}}}}e.getEncodedSyntacticClassifications=O})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p;(function(O){O[O.typeOffset=8]="typeOffset",O[O.modifierMask=255]="modifierMask"})(p=g.TokenEncodingConsts||(g.TokenEncodingConsts={}));var I;(function(O){O[O.class=0]="class",O[O.enum=1]="enum",O[O.interface=2]="interface",O[O.namespace=3]="namespace",O[O.typeParameter=4]="typeParameter",O[O.type=5]="type",O[O.parameter=6]="parameter",O[O.variable=7]="variable",O[O.enumMember=8]="enumMember",O[O.property=9]="property",O[O.function=10]="function",O[O.member=11]="member"})(I=g.TokenType||(g.TokenType={}));var V;(function(O){O[O.declaration=0]="declaration",O[O.static=1]="static",O[O.async=2]="async",O[O.readonly=3]="readonly",O[O.defaultLibrary=4]="defaultLibrary",O[O.local=5]="local"})(V=g.TokenModifier||(g.TokenModifier={}));function L(O,x,ie,Z){var re=m(O,x,ie,Z);e.Debug.assert(re.spans.length%3===0);for(var q=re.spans,P=[],M=0;M<q.length;M+=3)P.push({textSpan:e.createTextSpan(q[M],q[M+1]),classificationType:q[M+2]});return P}g.getSemanticClassifications=L;function m(O,x,ie,Z){return{spans:y(O,ie,Z,x),endOfLineState:0}}g.getEncodedSemanticClassifications=m;function y(O,x,ie,Z){var re=[],q=function(P,M,Q){re.push(P.getStart(x),P.getWidth(x),(M+1<<8)+Q)};return O&&x&&j(O,x,ie,q,Z),re}function j(O,x,ie,Z,re){var q=O.getTypeChecker(),P=!1;function M(Q){switch(Q.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 213:re.throwIfCancellationRequested()}if(!(!Q||!e.textSpanIntersectsWith(ie,Q.pos,Q.getFullWidth())||Q.getFullWidth()===0)){var H=P;if((e.isJsxElement(Q)||e.isJsxSelfClosingElement(Q))&&(P=!0),e.isJsxExpression(Q)&&(P=!1),e.isIdentifier(Q)&&!P&&!C(Q)&&!e.isInfinityOrNaNString(Q.escapedText)){var w=q.getSymbolAtLocation(Q);if(w){w.flags&2097152&&(w=q.getAliasedSymbol(w));var d=te(w,e.getMeaningFromLocation(Q));if(d!==void 0){var B=0;if(Q.parent){var T=e.isBindingElement(Q.parent)||X.get(Q.parent.kind)===d;T&&Q.parent.name===Q&&(B=1)}d===6&&k(Q)&&(d=9),d=E(q,Q,d);var _=w.valueDeclaration;if(_){var h=e.getCombinedModifierFlags(_),R=e.getCombinedNodeFlags(_);h&32&&(B|=2),h&256&&(B|=4),d!==0&&d!==2&&(h&64||R&2||w.getFlags()&8)&&(B|=8),(d===7||d===10)&&F(_,x)&&(B|=32),O.isSourceFileDefaultLibrary(_.getSourceFile())&&(B|=16)}else w.declarations&&w.declarations.some(function(b){return O.isSourceFileDefaultLibrary(b.getSourceFile())})&&(B|=16);Z(Q,d,B)}}}e.forEachChild(Q,M),P=H}}M(x)}function te(O,x){var ie=O.getFlags();if(ie&32)return 0;if(ie&384)return 1;if(ie&524288)return 5;if(ie&64){if(x&2)return 2}else if(ie&262144)return 4;var Z=O.valueDeclaration||O.declarations&&O.declarations[0];return Z&&e.isBindingElement(Z)&&(Z=$(Z)),Z&&X.get(Z.kind)}function E(O,x,ie){if(ie===7||ie===9||ie===6){var Z=O.getTypeAtLocation(x);if(Z){var re=function(q){return q(Z)||Z.isUnion()&&Z.types.some(q)};if(ie!==6&&re(function(q){return q.getConstructSignatures().length>0}))return 0;if(re(function(q){return q.getCallSignatures().length>0})&&!re(function(q){return q.getProperties().length>0})||K(x))return ie===9?11:10}}return ie}function F(O,x){return e.isBindingElement(O)&&(O=$(O)),e.isVariableDeclaration(O)?(!e.isSourceFile(O.parent.parent.parent)||e.isCatchClause(O.parent))&&O.getSourceFile()===x:e.isFunctionDeclaration(O)?!e.isSourceFile(O.parent)&&O.getSourceFile()===x:!1}function $(O){for(;;)if(e.isBindingElement(O.parent.parent))O=O.parent.parent;else return O.parent.parent}function C(O){var x=O.parent;return x&&(e.isImportClause(x)||e.isImportSpecifier(x)||e.isNamespaceImport(x))}function K(O){for(;k(O);)O=O.parent;return e.isCallExpression(O.parent)&&O.parent.expression===O}function k(O){return e.isQualifiedName(O.parent)&&O.parent.right===O||e.isPropertyAccessExpression(O.parent)&&O.parent.name===O}var X=new e.Map([[253,7],[163,6],[166,9],[260,3],[259,1],[297,8],[256,0],[168,11],[255,10],[212,10],[167,11],[171,9],[172,9],[165,9],[257,2],[258,5],[162,4],[294,9],[295,9]])})(u=c.v2020||(c.v2020={}))})(n=e.classifier||(e.classifier={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){function p(J,le,Te,Me,Ke,Ae,Ge,se){if(e.isInReferenceComment(J,le)){var xe=Y(J,le,Me,Ke);return xe&&m(xe)}if(e.isInString(J,le,Te)){if(!Te||!e.isStringLiteralLike(Te))return;var xe=te(J,Te,le,Ae.getTypeChecker(),Me,Ke,se);return I(xe,Te,J,Ke,Ae,Ge,Me,se)}}g.getStringLiteralCompletions=p;function I(J,le,Te,Me,Ke,Ae,Ge,se){if(J!==void 0){var xe=e.createTextSpanFromStringLiteralLikeContent(le);switch(J.kind){case 0:return m(J.paths);case 1:{var Re=[];return c.getCompletionEntriesFromSymbols(J.symbols,Re,le,le,Te,Te,Me,Ke,99,Ae,4,se,Ge),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:J.hasIndexSignature,optionalReplacementSpan:xe,entries:Re}}case 2:{var Re=J.types.map(function(Ue){return{name:Ue.value,kindModifiers:"",kind:"string",sortText:c.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(le)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:J.isNewIdentifier,optionalReplacementSpan:xe,entries:Re}}default:return e.Debug.assertNever(J)}}}function V(J,le,Te,Me,Ke,Ae,Ge,se,xe){if(!(!Me||!e.isStringLiteralLike(Me))){var Re=te(le,Me,Te,Ke,Ae,Ge,xe);return Re&&L(J,Me,Re,le,Ke,se)}}g.getStringLiteralCompletionDetails=V;function L(J,le,Te,Me,Ke,Ae){switch(Te.kind){case 0:{var Ge=e.find(Te.paths,function(se){return se.name===J});return Ge&&c.createCompletionDetails(J,y(Ge.extension),Ge.kind,[e.textPart(J)])}case 1:{var Ge=e.find(Te.symbols,function(xe){return xe.name===J});return Ge&&c.createCompletionDetailsForSymbol(Ge,Ke,Me,le,Ae)}case 2:return e.find(Te.types,function(se){return se.value===J})?c.createCompletionDetails(J,"","type",[e.textPart(J)]):void 0;default:return e.Debug.assertNever(Te)}}function m(J){var le=!1,Te=!0,Me=J.map(function(Ke){var Ae=Ke.name,Ge=Ke.kind,se=Ke.span,xe=Ke.extension;return{name:Ae,kind:Ge,kindModifiers:y(xe),sortText:c.SortText.LocationPriority,replacementSpan:se}});return{isGlobalCompletion:le,isMemberCompletion:!1,isNewIdentifierLocation:Te,entries:Me}}function y(J){switch(J){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 e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(J)}}var j;(function(J){J[J.Paths=0]="Paths",J[J.Properties=1]="Properties",J[J.Types=2]="Types"})(j||(j={}));function te(J,le,Te,Me,Ke,Ae,Ge){var se=E(le.parent);switch(se.kind){case 195:{var xe=E(se.parent);switch(xe.kind){case 177:{var Re=xe,ce=e.findAncestor(se,function(sr){return sr.parent===Re});return ce?{kind:2,types:k(Me.getTypeArgumentConstraint(ce)),isNewIdentifier:!1}:void 0}case 193:var Ue=xe,We=Ue.indexType,Ne=Ue.objectType;return e.rangeContainsPosition(We,Te)?C(Me.getTypeFromTypeNode(Ne)):void 0;case 199:return{kind:0,paths:ie(J,le,Ke,Ae,Me,Ge)};case 186:{if(!e.isTypeReferenceNode(xe.parent))return;var ve=F(xe,se),Ve=k(Me.getTypeArgumentConstraint(xe)).filter(function(sr){return!e.contains(ve,sr.value)});return{kind:2,types:Ve,isNewIdentifier:!1}}default:return}}case 294:return e.isObjectLiteralExpression(se.parent)&&se.name===le?K(Me,se.parent):xr();case 206:{var gr=se,Er=gr.expression,Nr=gr.argumentExpression;return le===e.skipParentheses(Nr)?C(Me.getTypeAtLocation(Er)):void 0}case 207:case 208:if(!ne(le)&&!e.isImportCall(se)){var ur=e.SignatureHelp.getArgumentInfoForCompletions(le,Te,J);return ur?$(ur,Me):xr()}case 265:case 271:case 276:return{kind:0,paths:ie(J,le,Ke,Ae,Me,Ge)};default:return xr()}function xr(){return{kind:2,types:k(e.getContextualTypeFromParent(le,Me)),isNewIdentifier:!1}}}function E(J){switch(J.kind){case 190:return e.walkUpParenthesizedTypes(J);case 211:return e.walkUpParenthesizedExpressions(J);default:return J}}function F(J,le){return e.mapDefined(J.types,function(Te){return Te!==le&&e.isLiteralTypeNode(Te)&&e.isStringLiteral(Te.literal)?Te.literal.text:void 0})}function $(J,le){var Te=!1,Me=new e.Map,Ke=[];le.getResolvedSignature(J.invocation,Ke,J.argumentCount);var Ae=e.flatMap(Ke,function(Ge){if(!(!e.signatureHasRestParameter(Ge)&&J.argumentCount>Ge.parameters.length)){var se=le.getParameterType(Ge,J.argumentIndex);return Te=Te||!!(se.flags&4),k(se,Me)}});return{kind:2,types:Ae,isNewIdentifier:Te}}function C(J){return J&&{kind:1,symbols:e.filter(J.getApparentProperties(),function(le){return!(le.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(le.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(J)}}function K(J,le){var Te=J.getContextualType(le);if(!!Te){var Me=J.getContextualType(le,4),Ke=c.getPropertiesForObjectExpression(Te,Me,le,J);return{kind:1,symbols:Ke,hasIndexSignature:e.hasIndexSignature(Te)}}}function k(J,le){return le===void 0&&(le=new e.Map),J?(J=e.skipConstraint(J),J.isUnion()?e.flatMap(J.types,function(Te){return k(Te,le)}):J.isStringLiteral()&&!(J.flags&1024)&&e.addToSeen(le,J.value)?[J]:e.emptyArray):e.emptyArray}function X(J,le,Te){return{name:J,kind:le,extension:Te}}function O(J){return X(J,"directory",void 0)}function x(J,le,Te){var Me=_e(J,le),Ke=J.length===0?void 0:e.createTextSpan(le,J.length);return Te.map(function(Ae){var Ge=Ae.name,se=Ae.kind,xe=Ae.extension;return Math.max(Ge.indexOf(e.directorySeparator),Ge.indexOf(e.altDirectorySeparator))!==-1?{name:Ge,kind:se,extension:xe,span:Ke}:{name:Ge,kind:se,extension:xe,span:Me}})}function ie(J,le,Te,Me,Ke,Ae){return x(le.text,le.getStart(J)+1,Z(J,le,Te,Me,Ke,Ae))}function Z(J,le,Te,Me,Ke,Ae){var Ge=e.normalizeSlashes(le.text),se=J.path,xe=e.getDirectoryPath(se);return Se(Ge)||!Te.baseUrl&&(e.isRootedDiskPath(Ge)||e.isUrl(Ge))?q(Ge,xe,Te,Me,se,Re()):B(Ge,xe,Te,Me,Ke);function Re(){var ce=e.isStringLiteralLike(le)?e.getModeForUsageLocation(J,le):void 0;return Ae.importModuleSpecifierEnding==="js"||ce===e.ModuleKind.ESNext?2:0}}function re(J,le){return le===void 0&&(le=0),{extensions:e.flatten(P(J)),includeExtensionsOption:le}}function q(J,le,Te,Me,Ke,Ae){var Ge=re(Te,Ae);return Te.rootDirs?Q(Te.rootDirs,J,le,Ge,Te,Me,Ke):w(J,le,Ge,Me,Ke)}function P(J){var le=e.getSupportedExtensions(J);return e.getEmitModuleResolutionKind(J)===e.ModuleResolutionKind.NodeJs?e.getSupportedExtensionsWithJsonIfResolveJsonModule(J,le):le}function M(J,le,Te,Me){J=J.map(function(Ae){return e.normalizePath(e.isRootedDiskPath(Ae)?Ae:e.combinePaths(le,Ae))});var Ke=e.firstDefined(J,function(Ae){return e.containsPath(Ae,Te,le,Me)?Te.substr(Ae.length):void 0});return e.deduplicate(Bt(Bt([],J.map(function(Ae){return e.combinePaths(Ae,Ke)}),!0),[Te],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function Q(J,le,Te,Me,Ke,Ae,Ge){var se=Ke.project||Ae.getCurrentDirectory(),xe=!(Ae.useCaseSensitiveFileNames&&Ae.useCaseSensitiveFileNames()),Re=M(J,se,Te,xe);return e.flatMap(Re,function(ce){return w(le,ce,Me,Ae,Ge)})}var H;(function(J){J[J.Exclude=0]="Exclude",J[J.Include=1]="Include",J[J.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"})(H||(H={}));function w(J,le,Te,Me,Ke,Ae){var Ge=Te.extensions,se=Te.includeExtensionsOption;Ae===void 0&&(Ae=[]),J===void 0&&(J=""),J=e.normalizeSlashes(J),e.hasTrailingDirectorySeparator(J)||(J=e.getDirectoryPath(J)),J===""&&(J="."+e.directorySeparator),J=e.ensureTrailingDirectorySeparator(J);var xe=e.resolvePath(le,J),Re=e.hasTrailingDirectorySeparator(xe)?xe:e.getDirectoryPath(xe),ce=!(Me.useCaseSensitiveFileNames&&Me.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(Me,Re))return Ae;var Ue=e.tryReadDirectory(Me,Re,Ge,void 0,["./*"]);if(Ue){for(var We=new e.Map,Ne=0,ve=Ue;Ne<ve.length;Ne++){var Ve=ve[Ne];if(Ve=e.normalizePath(Ve),!(Ke&&e.comparePaths(Ve,Ke,le,ce)===0)){var gr=void 0,Er=e.moduleSpecifiers.tryGetJSExtensionForFile(Ve,Me.getCompilationSettings());se===0&&!e.fileExtensionIsOneOf(Ve,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(gr=e.removeFileExtension(e.getBaseFileName(Ve)),We.set(gr,e.tryGetExtensionFromPath(Ve))):(e.fileExtensionIsOneOf(Ve,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||se===2)&&Er?(gr=e.changeExtension(e.getBaseFileName(Ve),Er),We.set(gr,Er)):(gr=e.getBaseFileName(Ve),We.set(gr,e.tryGetExtensionFromPath(Ve)))}}We.forEach(function(Cr,kr){Ae.push(X(kr,"script",Cr))})}var Nr=e.tryGetDirectories(Me,Re);if(Nr)for(var ur=0,xr=Nr;ur<xr.length;ur++){var sr=xr[ur],i=e.getBaseFileName(e.normalizePath(sr));i!=="@types"&&Ae.push(O(i))}var Mr=e.findPackageJson(Re,Me);if(Mr){var fr=e.readJson(Mr,Me),Ar=fr.typesVersions;if(typeof Ar=="object"){var de=e.getPackageJsonTypesVersionsPaths(Ar),we=de&&de.paths,qe=xe.slice(e.ensureTrailingDirectorySeparator(Re).length);we&&d(Ae,qe,Re,Ge,we,Me)}}return Ae}function d(J,le,Te,Me,Ke,Ae){for(var Ge in Ke)if(!!e.hasProperty(Ke,Ge)){var se=Ke[Ge];if(se)for(var xe=function(Ve,gr,Er){J.some(function(Nr){return Nr.name===Ve})||J.push(X(Ve,gr,Er))},Re=0,ce=_(Ge,se,le,Te,Me,Ae);Re<ce.length;Re++){var Ue=ce[Re],We=Ue.name,Ne=Ue.kind,ve=Ue.extension;xe(We,Ne,ve)}}}function B(J,le,Te,Me,Ke){var Ae=Te.baseUrl,Ge=Te.paths,se=[],xe=re(Te);if(Ae){var Re=Te.project||Me.getCurrentDirectory(),ce=e.normalizePath(e.combinePaths(Re,Ae));w(J,ce,xe,Me,void 0,se),Ge&&d(se,J,ce,xe.extensions,Ge,Me)}for(var Ue=T(J),We=0,Ne=G(J,Ue,Ke);We<Ne.length;We++){var ve=Ne[We];se.push(X(ve,"external module name",void 0))}if(pe(Me,Te,le,Ue,xe,se),e.getEmitModuleResolutionKind(Te)===e.ModuleResolutionKind.NodeJs){var Ve=!1;if(Ue===void 0)for(var gr=function(xr){se.some(function(sr){return sr.name===xr})||(Ve=!0,se.push(X(xr,"external module name",void 0)))},Er=0,Nr=A(Me,le);Er<Nr.length;Er++){var ur=Nr[Er];gr(ur)}Ve||e.forEachAncestorDirectory(le,function(xr){var sr=e.combinePaths(xr,"node_modules");e.tryDirectoryExists(Me,sr)&&w(J,sr,xe,Me,void 0,se)})}return se}function T(J){return be(J)?e.hasTrailingDirectorySeparator(J)?J:e.getDirectoryPath(J):void 0}function _(J,le,Te,Me,Ke,Ae){if(!e.endsWith(J,"*"))return e.stringContains(J,"*")?e.emptyArray:xe(J);var Ge=J.slice(0,J.length-1),se=e.tryRemovePrefix(Te,Ge);return se===void 0?xe(Ge):e.flatMap(le,function(Re){return h(se,Me,Re,Ke,Ae)});function xe(Re){return e.startsWith(Re,Te)?[O(Re)]:e.emptyArray}}function h(J,le,Te,Me,Ke){if(!Ke.readDirectory)return;var Ae=e.tryParsePattern(Te);if(Ae===void 0||e.isString(Ae))return;var Ge=e.resolvePath(Ae.prefix),se=e.hasTrailingDirectorySeparator(Ae.prefix)?Ge:e.getDirectoryPath(Ge),xe=e.hasTrailingDirectorySeparator(Ae.prefix)?"":e.getBaseFileName(Ge),Re=be(J),ce=Re?e.hasTrailingDirectorySeparator(J)?J:e.getDirectoryPath(J):void 0,Ue=Re?e.combinePaths(se,xe+ce):se,We=e.normalizePath(Ae.suffix),Ne=e.normalizePath(e.combinePaths(le,Ue)),ve=Re?Ne:e.ensureTrailingDirectorySeparator(Ne)+xe,Ve=We?"**/*":"./*",gr=e.mapDefined(e.tryReadDirectory(Ke,Ne,Me,void 0,[Ve]),function(ur){var xr=e.tryGetExtensionFromPath(ur),sr=Nr(ur);return sr===void 0?void 0:X(e.removeFileExtension(sr),"script",xr)}),Er=e.mapDefined(e.tryGetDirectories(Ke,Ne).map(function(ur){return e.combinePaths(Ne,ur)}),function(ur){var xr=Nr(ur);return xr===void 0?void 0:O(xr)});return Bt(Bt([],gr,!0),Er,!0);function Nr(ur){var xr=R(e.normalizePath(ur),ve,We);return xr===void 0?void 0:b(xr)}}function R(J,le,Te){return e.startsWith(J,le)&&e.endsWith(J,Te)?J.slice(le.length,J.length-Te.length):void 0}function b(J){return J[0]===e.directorySeparator?J.slice(1):J}function G(J,le,Te){var Me=Te.getAmbientModules().map(function(Ge){return e.stripQuotes(Ge.name)}),Ke=Me.filter(function(Ge){return e.startsWith(Ge,J)});if(le!==void 0){var Ae=e.ensureTrailingDirectorySeparator(le);return Ke.map(function(Ge){return e.removePrefix(Ge,Ae)})}return Ke}function Y(J,le,Te,Me){var Ke=e.getTokenAtPosition(J,le),Ae=e.getLeadingCommentRanges(J.text,Ke.pos),Ge=Ae&&e.find(Ae,function(ve){return le>=ve.pos&&le<=ve.end});if(!!Ge){var se=J.text.slice(Ge.pos,le),xe=ae.exec(se);if(!!xe){var Re=xe[1],ce=xe[2],Ue=xe[3],We=e.getDirectoryPath(J.path),Ne=ce==="path"?w(Ue,We,re(Te,1),Me,J.path):ce==="types"?pe(Me,Te,We,T(Ue),re(Te)):e.Debug.fail();return x(Ue,Ge.pos+Re.length,Ne)}}}function pe(J,le,Te,Me,Ke,Ae){Ae===void 0&&(Ae=[]);for(var Ge=new e.Map,se=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(le,J)})||e.emptyArray,xe=0,Re=se;xe<Re.length;xe++){var ce=Re[xe];Ve(ce)}for(var Ue=0,We=e.findPackageJsons(Te,J);Ue<We.length;Ue++){var Ne=We[Ue],ve=e.combinePaths(e.getDirectoryPath(Ne),"node_modules/@types");Ve(ve)}return Ae;function Ve(gr){if(!!e.tryDirectoryExists(J,gr))for(var Er=0,Nr=e.tryGetDirectories(J,gr);Er<Nr.length;Er++){var ur=Nr[Er],xr=e.unmangleScopedPackageName(ur);if(!(le.types&&!e.contains(le.types,xr)))if(Me===void 0)Ge.has(xr)||(Ae.push(X(xr,"external module name",void 0)),Ge.set(xr,!0));else{var sr=e.combinePaths(gr,ur),i=e.tryRemoveDirectoryPrefix(Me,xr,e.hostGetCanonicalFileName(J));i!==void 0&&w(i,sr,Ke,J,void 0,Ae)}}}}function A(J,le){if(!J.readFile||!J.fileExists)return e.emptyArray;for(var Te=[],Me=0,Ke=e.findPackageJsons(le,J);Me<Ke.length;Me++)for(var Ae=Ke[Me],Ge=e.readJson(Ae,J),se=0,xe=D;se<xe.length;se++){var Re=xe[se],ce=Ge[Re];if(!!ce)for(var Ue in ce)ce.hasOwnProperty(Ue)&&!e.startsWith(Ue,"@types/")&&Te.push(Ue)}return Te}function _e(J,le){var Te=Math.max(J.lastIndexOf(e.directorySeparator),J.lastIndexOf(e.altDirectorySeparator)),Me=Te!==-1?Te+1:0,Ke=J.length-Me;return Ke===0||e.isIdentifierText(J.substr(Me,Ke),99)?void 0:e.createTextSpan(le+Me,Ke)}function Se(J){if(J&&J.length>=2&&J.charCodeAt(0)===46){var le=J.length>=3&&J.charCodeAt(1)===46?2:1,Te=J.charCodeAt(le);return Te===47||Te===92}return!1}var ae=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,D=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function be(J){return e.stringContains(J,e.directorySeparator)}function ne(J){return e.isCallExpression(J.parent)&&e.firstOrUndefined(J.parent.arguments)===J&&e.isIdentifier(J.parent.expression)&&J.parent.expression.escapedText==="require"}})(u=c.StringCompletions||(c.StringCompletions={}))})(n=e.Completions||(e.Completions={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.moduleSpecifierResolutionLimit=100,c.moduleSpecifierResolutionCacheAttemptLimit=1e3;var u;(function(Ce){Ce.LocalDeclarationPriority="10",Ce.LocationPriority="11",Ce.OptionalMember="12",Ce.MemberDeclaredBySpreadAssignment="13",Ce.SuggestedClassMembers="14",Ce.GlobalsOrKeywords="15",Ce.AutoImportSuggestions="16",Ce.JavascriptIdentifiers="17",Ce.DeprecatedLocalDeclarationPriority="18",Ce.DeprecatedLocationPriority="19",Ce.DeprecatedOptionalMember="20",Ce.DeprecatedMemberDeclaredBySpreadAssignment="21",Ce.DeprecatedSuggestedClassMembers="22",Ce.DeprecatedGlobalsOrKeywords="23",Ce.DeprecatedAutoImportSuggestions="24"})(u=c.SortText||(c.SortText={}));var g;(function(Ce){Ce[Ce.LocalDeclarationPriority=10]="LocalDeclarationPriority",Ce[Ce.LocationPriority=11]="LocationPriority",Ce[Ce.OptionalMember=12]="OptionalMember",Ce[Ce.MemberDeclaredBySpreadAssignment=13]="MemberDeclaredBySpreadAssignment",Ce[Ce.SuggestedClassMembers=14]="SuggestedClassMembers",Ce[Ce.GlobalsOrKeywords=15]="GlobalsOrKeywords",Ce[Ce.AutoImportSuggestions=16]="AutoImportSuggestions",Ce[Ce._JavaScriptIdentifiers=17]="_JavaScriptIdentifiers",Ce[Ce._DeprecatedStart=18]="_DeprecatedStart",Ce[Ce._First=10]="_First",Ce[Ce.DeprecatedOffset=8]="DeprecatedOffset"})(g||(g={}));var p;(function(Ce){Ce.ThisProperty="ThisProperty/",Ce.ClassMemberSnippet="ClassMemberSnippet/"})(p=c.CompletionSource||(c.CompletionSource={}));var I;(function(Ce){Ce[Ce.ThisType=1]="ThisType",Ce[Ce.SymbolMember=2]="SymbolMember",Ce[Ce.Export=4]="Export",Ce[Ce.Promise=8]="Promise",Ce[Ce.Nullable=16]="Nullable",Ce[Ce.ResolvedExport=32]="ResolvedExport",Ce[Ce.SymbolMemberNoExport=2]="SymbolMemberNoExport",Ce[Ce.SymbolMemberExport=6]="SymbolMemberExport"})(I||(I={}));function V(Ce){return!!(Ce.kind&1)}function L(Ce){return!!(Ce.kind&2)}function m(Ce){return!!(Ce&&Ce.kind&4)}function y(Ce){return!!(Ce&&Ce.kind===32)}function j(Ce){return m(Ce)||y(Ce)}function te(Ce){return(m(Ce)||y(Ce))&&!!Ce.isFromPackageJson}function E(Ce){return!!(Ce.kind&8)}function F(Ce){return!!(Ce.kind&16)}var $;(function(Ce){Ce[Ce.None=0]="None",Ce[Ce.All=1]="All",Ce[Ce.ClassElementKeywords=2]="ClassElementKeywords",Ce[Ce.InterfaceElementKeywords=3]="InterfaceElementKeywords",Ce[Ce.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",Ce[Ce.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",Ce[Ce.TypeAssertionKeywords=6]="TypeAssertionKeywords",Ce[Ce.TypeKeywords=7]="TypeKeywords",Ce[Ce.TypeKeyword=8]="TypeKeyword",Ce[Ce.Last=7]="Last"})($||($={}));var C;(function(Ce){Ce[Ce.Continue=0]="Continue",Ce[Ce.Success=1]="Success",Ce[Ce.Fail=2]="Fail"})(C||(C={}));function K(Ce,cr,$e,De,z,ke,dr){var Xe,Qe,Ir,Jr=e.timestamp(),Or=!1,Be=0,yr=0,Rr=0,zr=0,ut=dr({tryResolve:Lt,resolutionLimitExceeded:function(){return Or}}),mt=zr?" (".concat((Rr/zr*100).toFixed(1),"% hit rate)"):"";return(Xe=cr.log)===null||Xe===void 0||Xe.call(cr,"".concat(Ce,": resolved ").concat(yr," module specifiers, plus ").concat(Be," ambient and ").concat(Rr," from cache").concat(mt)),(Qe=cr.log)===null||Qe===void 0||Qe.call(cr,"".concat(Ce,": response is ").concat(Or?"incomplete":"complete")),(Ir=cr.log)===null||Ir===void 0||Ir.call(cr,"".concat(Ce,": ").concat(e.timestamp()-Jr)),ut;function Lt(vt,pt){if(pt){var Nt=e.codefix.getModuleSpecifierForBestExportInfo(vt,De,$e,cr,z);return Nt&&Be++,Nt}var Xt=ke||z.allowIncompleteCompletions&&yr<c.moduleSpecifierResolutionLimit,st=!Xt&&z.allowIncompleteCompletions&&zr<c.moduleSpecifierResolutionCacheAttemptLimit,$t=Xt||st?e.codefix.getModuleSpecifierForBestExportInfo(vt,De,$e,cr,z,st):void 0;return(!Xt&&!st||st&&!$t)&&(Or=!0),yr+=($t==null?void 0:$t.computedWithoutCacheCount)||0,Rr+=vt.length-yr,st&&zr++,$t}}function k(Ce,cr,$e,De,z,ke,dr,Xe,Qe){var Ir,Jr=Ve(z,De).previousToken;if(!(dr&&!e.isInString(De,z,Jr)&&!Yr(De,dr,Jr,z))){if(dr===" ")return ke.includeCompletionsForImportStatements&&ke.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var Or=cr.getCompilerOptions(),Be=ke.allowIncompleteCompletions?(Ir=Ce.getIncompleteCompletionsCache)===null||Ir===void 0?void 0:Ir.call(Ce):void 0;if(Be&&Xe===3&&Jr&&e.isIdentifier(Jr)){var yr=O(Be,De,Jr,cr,Ce,ke,Qe);if(yr)return yr}else Be==null||Be.clear();var Rr=c.StringCompletions.getStringLiteralCompletions(De,z,Jr,Or,Ce,cr,$e,ke);if(Rr)return Rr;if(Jr&&e.isBreakOrContinueStatement(Jr.parent)&&(Jr.kind===81||Jr.kind===86||Jr.kind===79))return ne(Jr.parent);var zr=ve(cr,$e,De,Q(De,Or),z,ke,void 0,Ce,Qe);if(!!zr)switch(zr.kind){case 0:var ut=M(De,Ce,cr,Or,$e,zr,ke);return ut!=null&&ut.isIncomplete&&(Be==null||Be.set(ut)),ut;case 1:return x(e.JsDoc.getJSDocTagNameCompletions());case 2:return x(e.JsDoc.getJSDocTagCompletions());case 3:return x(e.JsDoc.getJSDocParameterNameCompletions(zr.tag));case 4:return Z(zr.keywordCompletions,zr.isNewIdentifierLocation);default:return e.Debug.assertNever(zr)}}}c.getCompletionsAtPosition=k;function X(Ce){return!!(Ce!=null&&Ce.moduleSpecifier)}function O(Ce,cr,$e,De,z,ke,dr){var Xe=Ce.get();if(!!Xe){var Qe=$e.text.toLowerCase(),Ir=e.getExportInfoMap(cr,z,De,dr),Jr=K("continuePreviousIncompleteResponse",z,De,cr,ke,!1,function(Or){var Be=e.mapDefined(Xe.entries,function(yr){if(!yr.hasAction||!yr.source||!yr.data||X(yr.data))return yr;if(!!pr(yr.name,Qe)){var Rr=e.Debug.checkDefined(gr(yr.name,yr.data,De,z)).origin,zr=Ir.get(cr.path,yr.data.exportMapKey),ut=zr&&Or.tryResolve(zr,!e.isExternalModuleNameRelative(e.stripQuotes(Rr.moduleSymbol.name)));if(!ut)return yr;var mt=kn(kn({},Rr),{kind:32,moduleSpecifier:ut.moduleSpecifier});return yr.data=pe(mt),yr.source=D(mt),yr.sourceDisplay=[e.textPart(mt.moduleSpecifier)],yr}});return Or.resolutionLimitExceeded()||(Xe.isIncomplete=void 0),Be});return Xe.entries=Jr,Xe}}function x(Ce){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:Ce}}function ie(Ce){return{name:e.tokenToString(Ce),kind:"keyword",kindModifiers:"",sortText:u.GlobalsOrKeywords}}function Z(Ce,cr){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:cr,entries:Ce.slice()}}function re(Ce,cr,$e){return{kind:4,keywordCompletions:xr(Ce,cr),isNewIdentifierLocation:$e}}function q(Ce){switch(Ce){case 151:return 8;default:e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function P(Ce){return(Ce==null?void 0:Ce.kind)===79?e.createTextSpanFromNode(Ce):void 0}function M(Ce,cr,$e,De,z,ke,dr){var Xe=ke.symbols,Qe=ke.contextToken,Ir=ke.completionKind,Jr=ke.isInSnippetScope,Or=ke.isNewIdentifierLocation,Be=ke.location,yr=ke.propertyAccessToConvert,Rr=ke.keywordFilters,zr=ke.literals,ut=ke.symbolToOriginInfoMap,mt=ke.recommendedCompletion,Lt=ke.isJsxInitializer,vt=ke.isTypeOnlyLocation,pt=ke.isJsxIdentifierExpected,Nt=ke.isRightOfOpenTag,Xt=ke.importCompletionNode,st=ke.insideJsDocTagTypeExpression,$t=ke.symbolToSortTextIdMap,Pn=ke.hasUnresolvedAutoImports;if(e.getLanguageVariant(Ce.scriptKind)===1){var Ea=w(Be,Ce);if(Ea)return Ea}var ia=[];if(Q(Ce,De)){var pa=be(Xe,ia,void 0,Qe,Be,Ce,cr,$e,e.getEmitScriptTarget(De),z,Ir,dr,De,vt,yr,pt,Lt,Xt,mt,ut,$t,pt,Nt);d(Ce,Be.pos,pa,e.getEmitScriptTarget(De),ia)}else{if(!Or&&(!Xe||Xe.length===0)&&Rr===0)return;be(Xe,ia,void 0,Qe,Be,Ce,cr,$e,e.getEmitScriptTarget(De),z,Ir,dr,De,vt,yr,pt,Lt,Xt,mt,ut,$t,pt,Nt)}if(Rr!==0)for(var Gn=new e.Set(ia.map(function(ra){return ra.name})),nn=0,bt=xr(Rr,!st&&e.isSourceFileJS(Ce));nn<bt.length;nn++){var Ut=bt[nn];Gn.has(Ut.name)||ia.push(Ut)}for(var Kt=0,bn=zr;Kt<bn.length;Kt++){var wn=bn[Kt];ia.push(T(Ce,dr,wn))}return{isGlobalCompletion:Jr,isIncomplete:dr.allowIncompleteCompletions&&Pn?!0:void 0,isMemberCompletion:H(Ir),isNewIdentifierLocation:Or,optionalReplacementSpan:P(Be),entries:ia}}function Q(Ce,cr){return e.isSourceFileJS(Ce)&&!e.isCheckJsEnabledForFile(Ce,cr)}function H(Ce){switch(Ce){case 0:case 3:case 2:return!0;default:return!1}}function w(Ce,cr){var $e=e.findAncestor(Ce,function(Ir){switch(Ir.kind){case 280:return!0;case 43:case 31:case 79:case 205:return!1;default:return"quit"}});if($e){var De=!!e.findChildOfKind($e,31,cr),z=$e.parent.openingElement.tagName,ke=z.getText(cr),dr=ke+(De?"":">"),Xe=e.createTextSpanFromNode($e.tagName),Qe={name:dr,kind:"class",kindModifiers:void 0,sortText:u.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:Xe,entries:[Qe]}}}function d(Ce,cr,$e,De,z){e.getNameTable(Ce).forEach(function(ke,dr){if(ke!==cr){var Xe=e.unescapeLeadingUnderscores(dr);!$e.has(Xe)&&e.isIdentifierText(Xe,De)&&($e.add(Xe),z.push({name:Xe,kind:"warning",kindModifiers:"",sortText:u.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}function B(Ce,cr,$e){return typeof $e=="object"?e.pseudoBigIntToString($e)+"n":e.isString($e)?e.quote(Ce,cr,$e):JSON.stringify($e)}function T(Ce,cr,$e){return{name:B(Ce,cr,$e),kind:"string",kindModifiers:"",sortText:u.LocationPriority}}function _(Ce,cr,$e,De,z,ke,dr,Xe,Qe,Ir,Jr,Or,Be,yr,Rr,zr,ut,mt,Lt,vt,pt){var Nt,Xt,st,$t=e.getReplacementSpanForContextToken($e),Pn,Ea,ia=D(Jr),pa,Gn,nn=Xe.getTypeChecker(),bt=Jr&&F(Jr),Ut=Jr&&L(Jr)||Ir;if(Jr&&V(Jr))st=Ir?"this".concat(bt?"?.":"","[").concat(Se(ke,mt,Qe),"]"):"this".concat(bt?"?.":".").concat(Qe);else if((Ut||bt)&&Be){st=Ut?Ir?"[".concat(Se(ke,mt,Qe),"]"):"[".concat(Qe,"]"):Qe,(bt||Be.questionDotToken)&&(st="?.".concat(st));var Kt=e.findChildOfKind(Be,24,ke)||e.findChildOfKind(Be,28,ke);if(!Kt)return;var bn=e.startsWith(Qe,Be.name.text)?Be.name.end:Kt.end;$t=e.createTextSpanFromBounds(Kt.getStart(ke),bn)}if(yr&&(st===void 0&&(st=Qe),st="{".concat(st,"}"),typeof yr!="boolean"&&($t=e.createTextSpanFromNode(yr,ke))),Jr&&E(Jr)&&Be){st===void 0&&(st=Qe);var wn=e.findPrecedingToken(Be.pos,ke),ra="";wn&&e.positionIsASICandidate(wn.end,wn.parent,ke)&&(ra=";"),ra+="(await ".concat(Be.expression.getText(),")"),st=Ir?"".concat(ra).concat(st):"".concat(ra).concat(bt?"?.":".").concat(st),$t=e.createTextSpanFromBounds(Be.getStart(ke),Be.end)}if(y(Jr)&&(pa=[e.textPart(Jr.moduleSpecifier)],Rr&&(Nt=_e(Qe,Rr,De,Jr,zr,ut,mt),st=Nt.insertText,$t=Nt.replacementSpan,Ea=mt.includeCompletionsWithSnippetText?!0:void 0)),mt.includeCompletionsWithClassMemberSnippets&&mt.includeCompletionsWithInsertText&&Lt===3&&h(Ce,z)){var ft=void 0;Xt=R(dr,Xe,ut,mt,Qe,Ce,z,De),st=Xt.insertText,Ea=Xt.isSnippet,ft=Xt.importAdder,ft!=null&&ft.hasFixes()&&(Gn=!0,ia=p.ClassMemberSnippet)}if(vt&&!pt&&mt.includeCompletionsWithSnippetText&&mt.jsxAttributeCompletionStyle&&mt.jsxAttributeCompletionStyle!=="none"){var Ct=mt.jsxAttributeCompletionStyle==="braces",Pt=nn.getTypeOfSymbolAtLocation(Ce,z);mt.jsxAttributeCompletionStyle==="auto"&&!(Pt.flags&528)&&!(Pt.flags&1048576&&e.find(Pt.types,function(Et){return!!(Et.flags&528)}))&&(Pt.flags&402653316||Pt.flags&1048576&&e.every(Pt.types,function(Et){return!!(Et.flags&402686084)})?(st="".concat(e.escapeSnippetText(Qe),"=").concat(e.quote(ke,mt,"$1")),Ea=!0):Ct=!0),Ct&&(st="".concat(e.escapeSnippetText(Qe),"={$1}"),Ea=!0)}if(!(st!==void 0&&!mt.includeCompletionsWithInsertText))return(m(Jr)||y(Jr))&&(Pn=pe(Jr),Gn=!Rr),{name:Qe,kind:e.SymbolDisplay.getSymbolKind(nn,Ce,z),kindModifiers:e.SymbolDisplay.getSymbolModifiers(nn,Ce),sortText:cr,source:ia,hasAction:Gn?!0:void 0,isRecommended:ae(Ce,Or,nn)||void 0,insertText:st,replacementSpan:$t,sourceDisplay:pa,isSnippet:Ea,isPackageJsonImport:te(Jr)||void 0,isImportStatementCompletion:!!Rr||void 0,data:Pn}}function h(Ce,cr){if(e.isInJSFile(cr))return!1;var $e=106500;return!!(Ce.flags&$e)&&(e.isClassLike(cr)||cr.parent&&cr.parent.parent&&e.isClassElement(cr.parent)&&cr===cr.parent.name&&e.isClassLike(cr.parent.parent)||cr.parent&&e.isSyntaxList(cr)&&e.isClassLike(cr.parent))}function R(Ce,cr,$e,De,z,ke,dr,Xe){var Qe=e.findAncestor(dr,e.isClassLike);if(!Qe)return{insertText:z};var Ir,Jr=z,Or=cr.getTypeChecker(),Be=dr.getSourceFile(),yr=Y({removeComments:!0,module:$e.module,target:$e.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter($e,e.maybeBind(Ce,Ce.getNewLine)))}),Rr=e.codefix.createImportAdder(Be,cr,De,Ce),zr;if(De.includeCompletionsWithSnippetText){Ir=!0;var ut=e.factory.createExpressionStatement(e.factory.createIdentifier(""));e.setSnippetElement(ut,{kind:0,order:0}),zr=e.factory.createBlock([ut],!0)}else zr=e.factory.createBlock([],!0);var mt=0,Lt=Xe&&G(Xe)===126,vt=[];return e.codefix.addNewNodeForMemberSymbol(ke,Qe,Be,{program:cr,host:Ce},De,Rr,function(pt){var Nt=0;Lt&&(Nt|=128),e.isClassElement(pt)&&Or.getMemberOverrideModifierStatus(Qe,pt)===1&&(Nt|=16384);var Xt=0;vt.length||(Xe&&(Xt=b(Xe)),mt=pt.modifierFlagsCache|Nt|Xt),pt=e.factory.updateModifiers(pt,mt&~Xt),vt.push(pt)},zr,2,Lt),vt.length&&(Jr=yr.printSnippetList(131073,e.factory.createNodeArray(vt),Be)),{insertText:Jr,isSnippet:Ir,importAdder:Rr}}function b(Ce){var cr=0,$e;return($e=G(Ce))&&(cr|=e.modifierToFlag($e)),e.isPropertyDeclaration(Ce.parent)&&(cr|=e.modifiersToFlags(Ce.parent.modifiers)),cr}function G(Ce){if(e.isModifier(Ce))return Ce.kind;if(e.isIdentifier(Ce)&&Ce.originalKeywordKind&&e.isModifierKind(Ce.originalKeywordKind))return Ce.originalKeywordKind}function Y(Ce){var cr=e.createPrinter(Ce),$e=e.createTextWriter(e.getNewLineCharacter(Ce)),De=kn(kn({},$e),{write:function(ke){return $e.write(e.escapeSnippetText(ke))},nonEscapingWrite:$e.write,writeLiteral:function(ke){return $e.writeLiteral(e.escapeSnippetText(ke))},writeStringLiteral:function(ke){return $e.writeStringLiteral(e.escapeSnippetText(ke))},writeSymbol:function(ke,dr){return $e.writeSymbol(e.escapeSnippetText(ke),dr)},writeParameter:function(ke){return $e.writeParameter(e.escapeSnippetText(ke))},writeComment:function(ke){return $e.writeComment(e.escapeSnippetText(ke))},writeProperty:function(ke){return $e.writeProperty(e.escapeSnippetText(ke))}});return{printSnippetList:z};function z(ke,dr,Xe){return De.clear(),cr.writeList(ke,dr,Xe,De),De.getText()}}function pe(Ce){var cr=Ce.fileName?void 0:e.stripQuotes(Ce.moduleSymbol.name),$e=Ce.isFromPackageJson?!0:void 0;if(y(Ce)){var De={exportName:Ce.exportName,moduleSpecifier:Ce.moduleSpecifier,ambientModuleName:cr,fileName:Ce.fileName,isPackageJsonImport:$e};return De}var z={exportName:Ce.exportName,exportMapKey:Ce.exportMapKey,fileName:Ce.fileName,ambientModuleName:Ce.fileName?void 0:e.stripQuotes(Ce.moduleSymbol.name),isPackageJsonImport:Ce.isFromPackageJson?!0:void 0};return z}function A(Ce,cr,$e){var De=Ce.exportName==="default",z=!!Ce.isPackageJsonImport;if(X(Ce)){var ke={kind:32,exportName:Ce.exportName,moduleSpecifier:Ce.moduleSpecifier,symbolName:cr,fileName:Ce.fileName,moduleSymbol:$e,isDefaultExport:De,isFromPackageJson:z};return ke}var dr={kind:4,exportName:Ce.exportName,exportMapKey:Ce.exportMapKey,symbolName:cr,fileName:Ce.fileName,moduleSymbol:$e,isDefaultExport:De,isFromPackageJson:z};return dr}function _e(Ce,cr,$e,De,z,ke,dr){var Xe,Qe,Ir,Jr=cr.getSourceFile(),Or=e.createTextSpanFromNode(e.findAncestor(cr,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||cr,Jr),Be=e.quote(Jr,dr,De.moduleSpecifier),yr=De.isDefaultExport?1:De.exportName==="export="?2:0,Rr=dr.includeCompletionsWithSnippetText?"$1":"",zr=e.codefix.getImportKind(Jr,yr,ke,!0),ut=((Qe=(Xe=e.tryCast(cr,e.isImportDeclaration))===null||Xe===void 0?void 0:Xe.importClause)===null||Qe===void 0?void 0:Qe.isTypeOnly)||((Ir=e.tryCast(cr,e.isImportEqualsDeclaration))===null||Ir===void 0?void 0:Ir.isTypeOnly),mt=Mn(cr,$e),Lt=ut?" ".concat(e.tokenToString(151)," "):" ",vt=mt?"".concat(e.tokenToString(151)," "):"",pt=z?";":"";switch(zr){case 3:return{replacementSpan:Or,insertText:"import".concat(Lt).concat(e.escapeSnippetText(Ce)).concat(Rr," = require(").concat(Be,")").concat(pt)};case 1:return{replacementSpan:Or,insertText:"import".concat(Lt).concat(e.escapeSnippetText(Ce)).concat(Rr," from ").concat(Be).concat(pt)};case 2:return{replacementSpan:Or,insertText:"import".concat(Lt,"* as ").concat(e.escapeSnippetText(Ce)," from ").concat(Be).concat(pt)};case 0:return{replacementSpan:Or,insertText:"import".concat(Lt,"{ ").concat(vt).concat(e.escapeSnippetText(Ce)).concat(Rr," } from ").concat(Be).concat(pt)}}}function Se(Ce,cr,$e){return/^\d+$/.test($e)?$e:e.quote(Ce,cr,$e)}function ae(Ce,cr,$e){return Ce===cr||!!(Ce.flags&1048576)&&$e.getExportSymbolOfSymbol(Ce)===cr}function D(Ce){if(m(Ce))return e.stripQuotes(Ce.moduleSymbol.name);if(y(Ce))return Ce.moduleSpecifier;if((Ce==null?void 0:Ce.kind)===1)return p.ThisProperty}function be(Ce,cr,$e,De,z,ke,dr,Xe,Qe,Ir,Jr,Or,Be,yr,Rr,zr,ut,mt,Lt,vt,pt,Nt,Xt){for(var st,$t=e.timestamp(),Pn=Zr(z),Ea=e.probablyUsesSemicolons(ke),ia=Xe.getTypeChecker(),pa=new e.Map,Gn=0;Gn<Ce.length;Gn++){var nn=Ce[Gn],bt=vt==null?void 0:vt[Gn],Ut=Er(nn,Qe,bt,Jr,!!zr);if(!(!Ut||pa.get(Ut.name)||Jr===1&&pt&&!Pt(nn,pt))){var Kt=Ut.name,bn=Ut.needsConvertPropertyAccess,wn=(st=pt==null?void 0:pt[e.getSymbolId(nn)])!==null&&st!==void 0?st:11,ra=(rr(nn,ia)?8+wn:wn).toString(),ft=_(nn,ra,$e,De,z,ke,dr,Xe,Kt,bn,bt,Lt,Rr,ut,mt,Ea,Be,Or,Jr,Nt,Xt);if(!!ft){var Ct=!bt&&!(nn.parent===void 0&&!e.some(nn.declarations,function(Et){return Et.getSourceFile()===z.getSourceFile()}));pa.set(Kt,Ct),cr.push(ft)}}}return Ir("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-$t)),{has:function(Et){return pa.has(Et)},add:function(Et){return pa.set(Et,!0)}};function Pt(Et,et){if(!e.isSourceFile(z)){if(e.isExportAssignment(z.parent))return!0;if(Pn&&Et.valueDeclaration===Pn)return!1;var hn=e.skipAlias(Et,ia);if(!!ke.externalModuleIndicator&&!Be.allowUmdGlobalAccess&&et[e.getSymbolId(Et)]===15&&(et[e.getSymbolId(hn)]===16||et[e.getSymbolId(hn)]===11))return!1;if(Et=hn,e.isInRightSideOfInternalImportEqualsDeclaration(z))return!!(Et.flags&1920);if(yr)return ge(Et,ia)}return!!(e.getCombinedLocalAndExportSymbolFlags(Et)&111551)}}c.getCompletionEntriesFromSymbols=be;function ne(Ce){var cr=J(Ce);if(cr.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:cr}}function J(Ce){for(var cr=[],$e=new e.Map,De=Ce;De&&!e.isFunctionLike(De);){if(e.isLabeledStatement(De)){var z=De.label.text;$e.has(z)||($e.set(z,!0),cr.push({name:z,kindModifiers:"",kind:"label",sortText:u.LocationPriority}))}De=De.parent}return cr}function le(Ce,cr,$e,De,z,ke,dr){if(z.data){var Xe=gr(z.name,z.data,Ce,ke);if(Xe){var Qe=Ve(De,$e),Ir=Qe.contextToken,Jr=Qe.previousToken;return{type:"symbol",symbol:Xe.symbol,location:e.getTouchingPropertyName($e,De),previousToken:Jr,contextToken:Ir,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:Xe.origin}}}var Or=Ce.getCompilerOptions(),Be=ve(Ce,cr,$e,Q($e,Or),De,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},z,ke);if(!Be)return{type:"none"};if(Be.kind!==0)return{type:"request",request:Be};var yr=Be.symbols,Rr=Be.literals,zr=Be.location,ut=Be.completionKind,mt=Be.symbolToOriginInfoMap,Lt=Be.contextToken,vt=Be.previousToken,pt=Be.isJsxInitializer,Nt=Be.isTypeOnlyLocation,Xt=e.find(Rr,function(st){return B($e,dr,st)===z.name});return Xt!==void 0?{type:"literal",literal:Xt}:e.firstDefined(yr,function(st,$t){var Pn=mt[$t],Ea=Er(st,e.getEmitScriptTarget(Or),Pn,ut,Be.isJsxIdentifierExpected);return Ea&&Ea.name===z.name&&(z.source===p.ClassMemberSnippet&&st.flags&106500||D(Pn)===z.source)?{type:"symbol",symbol:st,location:zr,origin:Pn,contextToken:Lt,previousToken:vt,isJsxInitializer:pt,isTypeOnlyLocation:Nt}:void 0})||{type:"none"}}function Te(Ce,cr,$e,De,z,ke,dr,Xe,Qe){var Ir=Ce.getTypeChecker(),Jr=Ce.getCompilerOptions(),Or=z.name,Be=z.source,yr=z.data,Rr=e.findPrecedingToken(De,$e);if(e.isInString($e,De,Rr))return c.StringCompletions.getStringLiteralCompletionDetails(Or,$e,De,Rr,Ir,Jr,ke,Qe,Xe);var zr=le(Ce,cr,$e,De,z,ke,Xe);switch(zr.type){case"request":{var ut=zr.request;switch(ut.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(Or);case 2:return e.JsDoc.getJSDocTagCompletionDetails(Or);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(Or);case 4:return e.some(ut.keywordCompletions,function(Ea){return Ea.name===Or})?Me(Or,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(ut)}}case"symbol":{var mt=zr.symbol,Lt=zr.location,vt=zr.contextToken,pt=zr.origin,Nt=zr.previousToken,Xt=Ge(Or,Lt,vt,pt,mt,Ce,ke,Jr,$e,De,Nt,dr,Xe,yr,Be),st=Xt.codeActions,$t=Xt.sourceDisplay;return Ke(mt,Ir,$e,Lt,Qe,st,$t)}case"literal":{var Pn=zr.literal;return Me(B($e,Xe,Pn),"string",typeof Pn=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return ur().some(function(Ea){return Ea.name===Or})?Me(Or,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(zr)}}c.getCompletionEntryDetails=Te;function Me(Ce,cr,$e){return Ae(Ce,"",cr,[e.displayPart(Ce,$e)])}function Ke(Ce,cr,$e,De,z,ke,dr){var Xe=cr.runWithCancellationToken(z,function(Be){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(Be,Ce,$e,De,De,7)}),Qe=Xe.displayParts,Ir=Xe.documentation,Jr=Xe.symbolKind,Or=Xe.tags;return Ae(Ce.name,e.SymbolDisplay.getSymbolModifiers(cr,Ce),Jr,Qe,Ir,Or,ke,dr)}c.createCompletionDetailsForSymbol=Ke;function Ae(Ce,cr,$e,De,z,ke,dr,Xe){return{name:Ce,kindModifiers:cr,kind:$e,displayParts:De,documentation:z,tags:ke,codeActions:dr,source:Xe,sourceDisplay:Xe}}c.createCompletionDetails=Ae;function Ge(Ce,cr,$e,De,z,ke,dr,Xe,Qe,Ir,Jr,Or,Be,yr,Rr){if(yr!=null&&yr.moduleSpecifier){var zr=Ve(Ir,Qe),ut=zr.contextToken,mt=zr.previousToken;if(mt&&vn(ut||mt).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(yr.moduleSpecifier)]}}if(Rr===p.ClassMemberSnippet){var Lt=R(dr,ke,Xe,Be,Ce,z,cr,$e).importAdder;if(Lt){var vt=e.textChanges.ChangeTracker.with({host:dr,formatContext:Or,preferences:Be},Lt.writeFixes);return{sourceDisplay:void 0,codeActions:[{changes:vt,description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,Ce])}]}}}if(!De||!(m(De)||y(De)))return{codeActions:void 0,sourceDisplay:void 0};var pt=De.isFromPackageJson?dr.getPackageJsonAutoImportProvider().getTypeChecker():ke.getTypeChecker(),Nt=De.moduleSymbol,Xt=pt.getMergedSymbol(e.skipAlias(z.exportSymbol||z,pt)),st=e.codefix.getImportCompletionAction(Xt,Nt,Qe,e.getNameForExportedSymbol(z,e.getEmitScriptTarget(Xe)),dr,ke,Or,Jr&&e.isIdentifier(Jr)?Jr.getStart(Qe):Ir,Be),$t=st.moduleSpecifier,Pn=st.codeAction;return e.Debug.assert(!(yr!=null&&yr.moduleSpecifier)||$t===yr.moduleSpecifier),{sourceDisplay:[e.textPart($t)],codeActions:[Pn]}}function se(Ce,cr,$e,De,z,ke,dr){var Xe=le(Ce,cr,$e,De,z,ke,dr);return Xe.type==="symbol"?Xe.symbol:void 0}c.getCompletionEntrySymbol=se;var xe;(function(Ce){Ce[Ce.Data=0]="Data",Ce[Ce.JsDocTagName=1]="JsDocTagName",Ce[Ce.JsDocTag=2]="JsDocTag",Ce[Ce.JsDocParameterName=3]="JsDocParameterName",Ce[Ce.Keywords=4]="Keywords"})(xe||(xe={}));var Re;(function(Ce){Ce[Ce.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",Ce[Ce.Global=1]="Global",Ce[Ce.PropertyAccess=2]="PropertyAccess",Ce[Ce.MemberLike=3]="MemberLike",Ce[Ce.String=4]="String",Ce[Ce.None=5]="None"})(Re=c.CompletionKind||(c.CompletionKind={}));function ce(Ce,cr,$e){return e.firstDefined(cr&&(cr.isUnion()?cr.types:[cr]),function(De){var z=De&&De.symbol;return z&&z.flags&424&&!e.isAbstractConstructorSymbol(z)?We(z,Ce,$e):void 0})}function Ue(Ce,cr,$e,De){var z=Ce.parent;switch(Ce.kind){case 79:return e.getContextualTypeFromParent(Ce,De);case 63:switch(z.kind){case 253:return De.getContextualType(z.initializer);case 220:return De.getTypeAtLocation(z.left);case 284:return De.getContextualTypeForJsxAttribute(z);default:return}case 103:return De.getContextualType(z);case 82:return e.getSwitchedType(e.cast(z,e.isCaseClause),De);case 18:return e.isJsxExpression(z)&&!e.isJsxElement(z.parent)&&!e.isJsxFragment(z.parent)?De.getContextualTypeForJsxAttribute(z.parent):void 0;default:var ke=e.SignatureHelp.getArgumentInfoForCompletions(Ce,cr,$e);return ke?De.getContextualTypeForArgumentAtIndex(ke.invocation,ke.argumentIndex+(Ce.kind===27?1:0)):e.isEqualityOperatorKind(Ce.kind)&&e.isBinaryExpression(z)&&e.isEqualityOperatorKind(z.operatorToken.kind)?De.getTypeAtLocation(z.left):De.getContextualType(Ce)}}function We(Ce,cr,$e){var De=$e.getAccessibleSymbolChain(Ce,cr,67108863,!1);return De?e.first(De):Ce.parent&&(Ne(Ce.parent)?Ce:We(Ce.parent,cr,$e))}function Ne(Ce){var cr;return!!(!((cr=Ce.declarations)===null||cr===void 0)&&cr.some(function($e){return $e.kind===303}))}function ve(Ce,cr,$e,De,z,ke,dr,Xe,Qe){var Ir=Ce.getTypeChecker(),Jr=e.timestamp(),Or=e.getTokenAtPosition($e,z);cr("getCompletionData: Get current token: "+(e.timestamp()-Jr)),Jr=e.timestamp();var Be=e.isInComment($e,z,Or);cr("getCompletionData: Is inside comment: "+(e.timestamp()-Jr));var yr=!1,Rr=!1;if(Be){if(e.hasDocComment($e,z)){if($e.text.charCodeAt(z-1)===64)return{kind:1};var zr=e.getLineStartPositionForPosition(z,$e);if(!/[^\*|\s(/)]/.test($e.text.substring(zr,z)))return{kind:2}}var ut=we(Or,z);if(ut){if(ut.tagName.pos<=z&&z<=ut.tagName.end)return{kind:1};if(Fi(ut)&&ut.typeExpression&&ut.typeExpression.kind===307&&(Or=e.getTokenAtPosition($e,z),(!Or||!e.isDeclarationName(Or)&&(Or.parent.kind!==345||Or.parent.name!==Or))&&(yr=jo(ut.typeExpression))),!yr&&e.isJSDocParameterTag(ut)&&(e.nodeIsMissing(ut.name)||ut.name.pos<=z&&z<=ut.name.end))return{kind:3,tag:ut}}if(!yr){cr("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}Jr=e.timestamp();var mt=!yr&&e.isSourceFileJS($e),Lt=Ve(z,$e),vt=Lt.previousToken,pt=Lt.contextToken;cr("getCompletionData: Get previous token: "+(e.timestamp()-Jr));var Nt=Or,Xt,st=!1,$t=!1,Pn=!1,Ea=!1,ia=!1,pa=!1,Gn,nn=e.getTouchingPropertyName($e,z),bt=0,Ut=!1;if(pt){var Kt=vn(pt);if(Ut=Kt.isNewIdentifierLocation,Kt.keywordCompletion){if(Kt.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[ie(Kt.keywordCompletion)],isNewIdentifierLocation:Ut};bt=q(Kt.keywordCompletion)}if(Kt.replacementNode&&ke.includeCompletionsForImportStatements&&ke.includeCompletionsWithInsertText&&(Gn=Kt.replacementNode),!Gn&&Ss(pt))return cr("Returning an empty list because completion was requested in an invalid position."),bt?re(bt,mt,vr()):void 0;var bn=pt.parent;if(pt.kind===24||pt.kind===28)switch(st=pt.kind===24,$t=pt.kind===28,bn.kind){case 205:Xt=bn,Nt=Xt.expression;var wn=e.getLeftmostAccessExpression(Xt);if(e.nodeIsMissing(wn)||(e.isCallExpression(Nt)||e.isFunctionLike(Nt))&&Nt.end===pt.pos&&Nt.getChildCount($e)&&e.last(Nt.getChildren($e)).kind!==21)return;break;case 160:Nt=bn.left;break;case 260:Nt=bn.name;break;case 199:Nt=bn;break;case 230:Nt=bn.getFirstToken($e),e.Debug.assert(Nt.kind===100||Nt.kind===103);break;default:return}else if(!Gn&&$e.languageVariant===1){if(bn&&bn.kind===205&&(pt=bn,bn=bn.parent),Or.parent===nn)switch(Or.kind){case 31:(Or.parent.kind===277||Or.parent.kind===279)&&(nn=Or);break;case 43:Or.parent.kind===278&&(nn=Or);break}switch(bn.kind){case 280:pt.kind===43&&(Ea=!0,nn=pt);break;case 220:if(!ot(bn))break;case 278:case 277:case 279:pa=!0,pt.kind===29&&(Pn=!0,nn=pt);break;case 287:case 286:vt.kind===19&&Or.kind===31&&(pa=!0);break;case 284:if(bn.initializer===vt&&vt.end<z){pa=!0;break}switch(vt.kind){case 63:ia=!0;break;case 79:pa=!0,bn!==vt.parent&&!bn.initializer&&e.findChildOfKind(bn,63,$e)&&(ia=vt)}break}}}var ra=e.timestamp(),ft=5,Ct=!1,Pt=!1,Et=[],et=[],hn=[],Qn=new e.Map,Ra=Ti(),Ki=e.memoizeOne(function(At){return e.createModuleSpecifierResolutionHost(At?Xe.getPackageJsonAutoImportProvider():Ce,Xe)});if(st||$t)eo();else if(Pn)Et=Ir.getJsxIntrinsicTagNamesAt(nn),e.Debug.assertEachIsDefined(Et,"getJsxIntrinsicTagNames() should all be defined"),Eo(),ft=1,bt=0;else if(Ea){var di=pt.parent.parent.openingElement.tagName,ya=Ir.getSymbolAtLocation(di);ya&&(Et=[ya]),ft=1,bt=0}else if(!Eo())return bt?re(bt,mt,Ut):void 0;cr("getCompletionData: Semantic work: "+(e.timestamp()-ra));var $a=vt&&Ue(vt,z,$e,Ir),ao=e.mapDefined($a&&($a.isUnion()?$a.types:[$a]),function(At){return At.isLiteral()&&!(At.flags&1024)?At.value:void 0}),ei=vt&&$a&&ce(vt,$a,Ir);return{kind:0,symbols:Et,completionKind:ft,isInSnippetScope:Rr,propertyAccessToConvert:Xt,isNewIdentifierLocation:Ut,location:nn,keywordFilters:bt,literals:ao,symbolToOriginInfoMap:et,recommendedCompletion:ei,previousToken:vt,contextToken:pt,isJsxInitializer:ia,insideJsDocTagTypeExpression:yr,symbolToSortTextIdMap:hn,isTypeOnlyLocation:Ra,isJsxIdentifierExpected:pa,isRightOfOpenTag:Pn,importCompletionNode:Gn,hasUnresolvedAutoImports:Pt};function Fi(At){switch(At.kind){case 338:case 345:case 339:case 341:case 343:return!0;default:return!1}}function eo(){ft=2;var At=e.isLiteralImportTypeNode(Nt),Wn=yr||At&&!Nt.isTypeOf||e.isPartOfTypeNode(Nt.parent)||e.isPossiblyTypeArgumentPosition(pt,$e,Ir),sa=e.isInRightSideOfInternalImportEqualsDeclaration(Nt);if(e.isEntityName(Nt)||At||e.isPropertyAccessExpression(Nt)){var oi=e.isModuleDeclaration(Nt.parent);oi&&(Ut=!0);var vi=Ir.getSymbolAtLocation(Nt);if(vi&&(vi=e.skipAlias(vi,Ir),vi.flags&1920)){var Ui=Ir.getExportsOfModule(vi);e.Debug.assertEachIsDefined(Ui,"getExportsOfModule() should all be defined");for(var Ca=function(Le){return Ir.isValidPropertyAccess(At?Nt:Nt.parent,Le.name)},gi=function(Le){return ge(Le,Ir)},Mi=oi?function(Le){var Xr;return!!(Le.flags&1920)&&!(!((Xr=Le.declarations)===null||Xr===void 0)&&Xr.every(function(an){return an.parent===Nt.parent}))}:sa?function(Le){return gi(Le)||Ca(Le)}:Wn?gi:Ca,Vi=0,Ro=Ui;Vi<Ro.length;Vi++){var Yo=Ro[Vi];Mi(Yo)&&Et.push(Yo)}if(!Wn&&vi.declarations&&vi.declarations.some(function(Le){return Le.kind!==303&&Le.kind!==260&&Le.kind!==259})){var ns=Ir.getTypeOfSymbolAtLocation(vi,Nt).getNonOptionalType(),me=!1;if(ns.isNullableType()){var Pr=st&&!$t&&ke.includeAutomaticOptionalChainCompletions!==!1;(Pr||$t)&&(ns=ns.getNonNullableType(),Pr&&(me=!0))}Wo(ns,!!(Nt.flags&32768),me)}return}}if(!Wn){var yt=e.getThisContainer(Nt,!1);!e.isSourceFile(yt)&&yt.parent&&Ir.getTypeAtLocation(yt);var ns=Ir.getTypeAtLocation(Nt).getNonOptionalType(),me=!1;if(ns.isNullableType()){var Pr=st&&!$t&&ke.includeAutomaticOptionalChainCompletions!==!1;(Pr||$t)&&(ns=ns.getNonNullableType(),Pr&&(me=!0))}Wo(ns,!!(Nt.flags&32768),me)}}function Wo(At,Wn,sa){Ut=!!At.getStringIndexType(),$t&&e.some(At.getCallSignatures())&&(Ut=!0);var oi=Nt.kind===199?Nt:Nt.parent;if(De)Et.push.apply(Et,e.filter(He(At,Ir),function(Ro){return Ir.isValidPropertyAccessForCompletions(oi,At,Ro)}));else for(var vi=0,Ui=At.getApparentProperties();vi<Ui.length;vi++){var Ca=Ui[vi];Ir.isValidPropertyAccessForCompletions(oi,At,Ca)&&Yi(Ca,!1,sa)}if(Wn&&ke.includeCompletionsWithInsertText){var gi=Ir.getPromisedTypeOfPromise(At);if(gi)for(var Mi=0,Vi=gi.getApparentProperties();Mi<Vi.length;Mi++){var Ca=Vi[Mi];Ir.isValidPropertyAccessForCompletions(oi,gi,Ca)&&Yi(Ca,!0,sa)}}}function Yi(At,Wn,sa){var oi,vi=e.firstDefined(At.declarations,function(Le){return e.tryCast(e.getNameOfDeclaration(Le),e.isComputedPropertyName)});if(vi){var Ui=Ni(vi.expression),Ca=Ui&&Ir.getSymbolAtLocation(Ui),gi=Ca&&We(Ca,pt,Ir);if(gi&&e.addToSeen(Qn,e.getSymbolId(gi))){var Mi=Et.length;Et.push(gi);var Vi=gi.parent;if(!Vi||!e.isExternalModuleSymbol(Vi)||Ir.tryGetMemberInModuleExportsAndProperties(gi.name,Vi)!==gi)et[Mi]={kind:yt(2)};else{var Ro=e.isExternalModuleNameRelative(e.stripQuotes(Vi.name))?(oi=e.getSourceFileOfModule(Vi))===null||oi===void 0?void 0:oi.fileName:void 0,Yo=(e.codefix.getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Ro,isFromPackageJson:!1,moduleSymbol:Vi,symbol:gi,targetFlags:e.skipAlias(gi,Ir).flags}],$e,Ce,Xe,ke)||{}).moduleSpecifier;if(Yo){var ns={kind:yt(6),moduleSymbol:Vi,isDefaultExport:!1,symbolName:gi.name,exportName:gi.name,fileName:Ro,moduleSpecifier:Yo};et[Mi]=ns}}}else ke.includeCompletionsWithInsertText&&(Pr(At),me(At),Et.push(At))}else Pr(At),me(At),Et.push(At);function me(Le){kt(Le)&&(hn[e.getSymbolId(Le)]=10)}function Pr(Le){ke.includeCompletionsWithInsertText&&(Wn&&e.addToSeen(Qn,e.getSymbolId(Le))?et[Et.length]={kind:yt(8)}:sa&&(et[Et.length]={kind:16}))}function yt(Le){return sa?Le|16:Le}}function Ni(At){return e.isIdentifier(At)?At:e.isPropertyAccessExpression(At)?Ni(At.expression):void 0}function Eo(){var At=tn()||Bn()||ts()||Fe()||Gr()||lo()||ht()||So()||(ja(),1);return At===1}function lo(){return Pe(pt)?(ft=5,Ut=!0,bt=4,1):0}function So(){var At=Tr(pt),Wn=At&&Ir.getContextualType(At.attributes);if(!Wn)return 0;var sa=At&&Ir.getContextualType(At.attributes,4);return Et=e.concatenate(Et,os(qe(Wn,sa,At.attributes,Ir),At.attributes.properties)),Si(),ft=3,Ut=!1,1}function ts(){return Gn?(Ut=!0,ko(),1):0}function ja(){bt=Ye(pt)?5:1,ft=1,Ut=vr(),vt!==pt&&e.Debug.assert(!!vt,"Expected 'contextToken' to be defined when different from 'previousToken'.");var At=vt!==pt?vt.getStart():z,Wn=Po(pt,At,$e)||$e;Rr=Pa(Wn);var sa=(Ra?0:111551)|788968|1920|2097152;Et=e.concatenate(Et,Ir.getSymbolsInScope(Wn,sa)),e.Debug.assertEachIsDefined(Et,"getSymbolsInScope() should all be defined");for(var oi=0,vi=Et;oi<vi.length;oi++){var Ui=vi[oi];!Ir.isArgumentsSymbol(Ui)&&!e.some(Ui.declarations,function(Vi){return Vi.getSourceFile()===$e})&&(hn[e.getSymbolId(Ui)]=15)}if(ke.includeCompletionsWithInsertText&&Wn.kind!==303){var Ca=Ir.tryGetThisTypeAt(Wn,!1);if(Ca&&!_t(Ca,$e,Ir))for(var gi=0,Mi=He(Ca,Ir);gi<Mi.length;gi++){var Ui=Mi[gi];et[Et.length]={kind:1},Et.push(Ui),hn[e.getSymbolId(Ui)]=14}}ko(),Ra&&(bt=pt&&e.isAssertionExpression(pt.parent)?6:7)}function Do(){return Gn?!0:Ct||!ke.includeCompletionsForModuleExports?!1:$e.externalModuleIndicator||$e.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(Ce.getCompilerOptions())?!0:e.programContainsModules(Ce)}function Pa(At){switch(At.kind){case 303:case 222:case 287:case 234:return!0;default:return e.isStatement(At)}}function Ti(){return yr||!!Gn&&e.isTypeOnlyImportOrExportDeclaration(nn.parent)||!mo(pt)&&(e.isPossiblyTypeArgumentPosition(pt,$e,Ir)||e.isPartOfTypeNode(nn)||No(pt))}function mo(At){return At&&(At.kind===112&&(At.parent.kind===180||e.isTypeOfExpression(At.parent))||At.kind===128&&At.parent.kind===176)}function No(At){if(At){var Wn=At.parent.kind;switch(At.kind){case 58:return Wn===166||Wn===165||Wn===163||Wn===253||e.isFunctionLikeKind(Wn);case 63:return Wn===258;case 127:return Wn===228;case 29:return Wn===177||Wn===210;case 94:return Wn===162}}return!1}function ko(){var At,Wn;if(!Do()||(e.Debug.assert(!(dr!=null&&dr.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),dr&&!dr.source))return;var sa=vt===pt&&Gn&&Mn(Gn,pt),oi=sa?"":vt&&e.isIdentifier(vt)?vt.text.toLowerCase():"",vi=(At=Xe.getModuleSpecifierCache)===null||At===void 0?void 0:At.call(Xe),Ui=e.getExportInfoMap($e,Xe,Ce,Qe),Ca=(Wn=Xe.getPackageJsonAutoImportProvider)===null||Wn===void 0?void 0:Wn.call(Xe),gi=dr?void 0:e.createPackageJsonImportFilter($e,ke,Xe);K("collectAutoImports",Xe,Ce,$e,ke,!!Gn,function(Vi){Ui.forEach($e.path,function(Ro,Yo,ns,me){if(!!e.isIdentifierText(Yo,e.getEmitScriptTarget(Xe.getCompilationSettings()))&&!(!dr&&e.isStringANonContextualKeyword(Yo))&&!(!Ra&&!Gn&&!(Ro[0].targetFlags&111551))&&!(Ra&&!(Ro[0].targetFlags&790504))){var Pr=dr&&e.some(Ro,function(Qa){return dr.source===e.stripQuotes(Qa.moduleSymbol.name)});if(Pr||!dr&&pr(Yo,oi)){var yt=e.find(Ro,Mi);if(!yt)return;var Le=Vi.tryResolve(Ro,ns)||{},Xr=Le.exportInfo,an=Xr===void 0?yt:Xr,Xn=Le.moduleSpecifier,da=an.exportKind===1,bi=da&&e.getLocalSymbolForExportDefault(an.symbol)||an.symbol;Oo(bi,{kind:Xn?32:4,moduleSpecifier:Xn,symbolName:Yo,exportMapKey:me,exportName:an.exportKind===2?"export=":an.symbol.name,fileName:an.moduleFileName,isDefaultExport:da,moduleSymbol:an.moduleSymbol,isFromPackageJson:an.isFromPackageJson})}}}),Pt=Vi.resolutionLimitExceeded()});function Mi(Vi){var Ro=e.tryCast(Vi.moduleSymbol.valueDeclaration,e.isSourceFile);if(!Ro){var Yo=e.stripQuotes(Vi.moduleSymbol.name);return e.JsTyping.nodeCoreModules.has(Yo)&&e.startsWith(Yo,"node:")!==e.shouldUseUriStyleNodeCoreModules($e,Ce)?!1:gi?gi.allowsImportingAmbientModule(Vi.moduleSymbol,Ki(Vi.isFromPackageJson)):!0}return e.isImportableFile(Vi.isFromPackageJson?Ca:Ce,$e,Ro,ke,gi,Ki(Vi.isFromPackageJson),vi)}}function Oo(At,Wn){var sa=e.getSymbolId(At);hn[sa]!==15&&(et[Et.length]=Wn,hn[sa]=Gn?11:16,Et.push(At))}function Po(At,Wn,sa){for(var oi=At;oi&&!e.positionBelongsToNode(oi,Wn,sa);)oi=oi.parent;return oi}function Ss(At){var Wn=e.timestamp(),sa=gt(At)||tt(At)||Ln(At)||Ds(At)||e.isBigIntLiteral(At);return cr("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-Wn)),sa}function Ds(At){if(At.kind===11)return!0;if(At.kind===31&&At.parent){if(At.parent.kind===279)return nn.parent.kind!==279;if(At.parent.kind===280||At.parent.kind===278)return!!At.parent.parent&&At.parent.parent.kind===277}return!1}function vr(){if(pt){var At=pt.parent.kind,Wn=de(pt);switch(Wn){case 27:return At===207||At===170||At===208||At===203||At===220||At===178||At===204;case 20:return At===207||At===170||At===208||At===211||At===190;case 22:return At===203||At===175||At===161;case 141:case 142:case 100:return!0;case 24:return At===260;case 18:return At===256||At===204;case 63:return At===253||At===220;case 15:return At===222;case 16:return At===232;case 131:return At===168||At===295;case 41:return At===168}if(fr(Wn))return!0}return!1}function gt(At){return(e.isRegularExpressionLiteral(At)||e.isStringTextContainingNode(At))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(At)),z)||z===At.end&&(!!At.isUnterminated||e.isRegularExpressionLiteral(At)))}function tn(){var At=Hr(pt);if(!At)return 0;var Wn=e.isIntersectionTypeNode(At.parent)?At.parent:void 0,sa=Wn||At,oi=Je(sa,Ir);if(!oi)return 0;var vi=Ir.getTypeFromTypeNode(sa),Ui=He(oi,Ir),Ca=He(vi,Ir),gi=new e.Set;return Ca.forEach(function(Mi){return gi.add(Mi.escapedName)}),Et=e.concatenate(Et,e.filter(Ui,function(Mi){return!gi.has(Mi.escapedName)})),ft=0,Ut=!0,1}function Bn(){var At=ye(pt);if(!At)return 0;ft=0;var Wn,sa;if(At.kind===204){var oi=Yt(At,Ir);if(oi===void 0)return At.flags&16777216?2:(Ct=!0,0);var vi=Ir.getContextualType(At,4),Ui=(vi||oi).getStringIndexType(),Ca=(vi||oi).getNumberIndexType();if(Ut=!!Ui||!!Ca,Wn=qe(oi,vi,At,Ir),sa=At.properties,Wn.length===0&&!Ca)return Ct=!0,0}else{e.Debug.assert(At.kind===200),Ut=!1;var gi=e.getRootDeclaration(At.parent);if(!e.isVariableLike(gi))return e.Debug.fail("Root declaration is not variable-like.");var Mi=e.hasInitializer(gi)||e.hasType(gi)||gi.parent.parent.kind===243;if(!Mi&&gi.kind===163&&(e.isExpression(gi.parent)?Mi=!!Ir.getContextualType(gi.parent):(gi.parent.kind===168||gi.parent.kind===172)&&(Mi=e.isExpression(gi.parent.parent)&&!!Ir.getContextualType(gi.parent.parent))),Mi){var Vi=Ir.getTypeAtLocation(At);if(!Vi)return 2;Wn=Ir.getPropertiesOfType(Vi).filter(function(Ro){return Ir.isPropertyAccessible(At,!1,!1,Vi,Ro)}),sa=At.elements}}return Wn&&Wn.length>0&&(Et=e.concatenate(Et,ti(Wn,e.Debug.checkDefined(sa)))),Si(),1}function Fe(){if(!pt)return 0;var At=pt.kind===18||pt.kind===27?e.tryCast(pt.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(pt)?e.tryCast(pt.parent.parent,e.isNamedImportsOrExports):void 0;if(!At)return 0;e.isTypeKeywordTokenOrIdentifier(pt)||(bt=8);var Wn=(At.kind===268?At.parent.parent:At.parent).moduleSpecifier;if(!Wn)return Ut=!0,At.kind===268?2:0;var sa=Ir.getSymbolAtLocation(Wn);if(!sa)return Ut=!0,2;ft=3,Ut=!1;var oi=Ir.getExportsAndPropertiesOfModule(sa),vi=new e.Set(At.elements.filter(function(Ca){return!jo(Ca)}).map(function(Ca){return(Ca.propertyName||Ca.name).escapedText})),Ui=oi.filter(function(Ca){return Ca.escapedName!=="default"&&!vi.has(Ca.escapedName)});return Et=e.concatenate(Et,Ui),Ui.length||(bt=0),1}function Gr(){var At,Wn=pt&&(pt.kind===18||pt.kind===27)?e.tryCast(pt.parent,e.isNamedExports):void 0;if(!Wn)return 0;var sa=e.findAncestor(Wn,e.or(e.isSourceFile,e.isModuleDeclaration));return ft=5,Ut=!1,(At=sa.locals)===null||At===void 0||At.forEach(function(oi,vi){var Ui,Ca;Et.push(oi),!((Ca=(Ui=sa.symbol)===null||Ui===void 0?void 0:Ui.exports)===null||Ca===void 0)&&Ca.has(vi)&&(hn[e.getSymbolId(oi)]=12)}),1}function ht(){var At=lr($e,pt,nn,z);if(!At)return 0;if(ft=3,Ut=!0,bt=pt.kind===41?0:e.isClassLike(At)?2:3,!e.isClassLike(At))return 1;var Wn=pt.kind===26?pt.parent.parent:pt.parent,sa=e.isClassElement(Wn)?e.getEffectiveModifierFlags(Wn):0;if(pt.kind===79&&!jo(pt))switch(pt.getText()){case"private":sa=sa|8;break;case"static":sa=sa|32;break;case"override":sa=sa|16384;break}if(e.isClassStaticBlockDeclaration(Wn)&&(sa|=32),!(sa&8)){var oi=e.isClassLike(At)&&sa&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(At)):e.getAllSuperTypeNodes(At),vi=e.flatMap(oi,function(Ui){var Ca=Ir.getTypeAtLocation(Ui);return sa&32?(Ca==null?void 0:Ca.symbol)&&Ir.getPropertiesOfType(Ir.getTypeOfSymbolAtLocation(Ca.symbol,At)):Ca&&Ir.getPropertiesOfType(Ca)});Et=e.concatenate(Et,_s(vi,At.members,sa))}return 1}function ye(At){if(At){var Wn=At.parent;switch(At.kind){case 18:case 27:if(e.isObjectLiteralExpression(Wn)||e.isObjectBindingPattern(Wn))return Wn;break;case 41:return e.isMethodDeclaration(Wn)?e.tryCast(Wn.parent,e.isObjectLiteralExpression):void 0;case 79:return At.text==="async"&&e.isShorthandPropertyAssignment(At.parent)?At.parent.parent:void 0}}}function oe(At){return!!At.parent&&e.isParameter(At.parent)&&e.isConstructorDeclaration(At.parent.parent)&&(e.isParameterPropertyModifier(At.kind)||e.isDeclarationName(At))}function Pe(At){if(At){var Wn=At.parent;switch(At.kind){case 20:case 27:return e.isConstructorDeclaration(At.parent)?At.parent:void 0;default:if(oe(At))return Wn.parent}}}function Ye(At){if(At){var Wn,sa=e.findAncestor(At.parent,function(oi){return e.isClassLike(oi)?"quit":e.isFunctionLikeDeclaration(oi)&&Wn===oi.body?!0:(Wn=oi,!1)});return sa&&sa}}function Tr(At){if(At){var Wn=At.parent;switch(At.kind){case 31:case 30:case 43:case 79:case 205:case 285:case 284:case 286:if(Wn&&(Wn.kind===278||Wn.kind===279)){if(At.kind===31){var sa=e.findPrecedingToken(At.pos,$e,void 0);if(!Wn.typeArguments||sa&&sa.kind===43)break}return Wn}else if(Wn.kind===284)return Wn.parent.parent;break;case 10:if(Wn&&(Wn.kind===284||Wn.kind===286))return Wn.parent.parent;break;case 19:if(Wn&&Wn.kind===287&&Wn.parent&&Wn.parent.kind===284)return Wn.parent.parent.parent;if(Wn&&Wn.kind===286)return Wn.parent.parent;break}}}function tt(At){var Wn=At.parent,sa=Wn.kind;switch(At.kind){case 27:return sa===253||va(At)||sa===236||sa===259||Wt(sa)||sa===257||sa===201||sa===258||e.isClassLike(Wn)&&!!Wn.typeParameters&&Wn.typeParameters.end>=At.pos;case 24:return sa===201;case 58:return sa===202;case 22:return sa===201;case 20:return sa===291||Wt(sa);case 18:return sa===259;case 29:return sa===256||sa===225||sa===257||sa===258||e.isFunctionLikeKind(sa);case 124:return sa===166&&!e.isClassLike(Wn.parent);case 25:return sa===163||!!Wn.parent&&Wn.parent.kind===201;case 123:case 121:case 122:return sa===163&&!e.isConstructorDeclaration(Wn.parent);case 127:return sa===269||sa===274||sa===267;case 136:case 148:return!Sr(At);case 79:if(sa===269&&At===Wn.name&&At.text==="type")return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 151:return sa!==269;case 41:return e.isFunctionLike(At.parent)&&!e.isMethodDeclaration(At.parent)}if(fr(de(At))&&Sr(At)||oe(At)&&(!e.isIdentifier(At)||e.isParameterPropertyModifier(de(At))||jo(At)))return!1;switch(de(At)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(At.parent)}var oi=e.findAncestor(At.parent,e.isClassLike);if(oi&&At===vt&&Mt(At,z))return!1;var vi=e.getAncestor(At.parent,166);if(vi&&At!==vt&&e.isClassLike(vt.parent.parent)&&z<=vt.end){if(Mt(At,vt.end))return!1;if(At.kind!==63&&(e.isInitializedProperty(vi)||e.hasType(vi)))return!0}return e.isDeclarationName(At)&&!e.isShorthandPropertyAssignment(At.parent)&&!e.isJsxAttribute(At.parent)&&!(e.isClassLike(At.parent)&&(At!==vt||z>vt.end))}function Mt(At,Wn){return At.kind!==63&&(At.kind===26||!e.positionsAreOnSameLine(At.end,Wn,$e))}function Wt(At){return e.isFunctionLikeKind(At)&&At!==170}function Ln(At){if(At.kind===8){var Wn=At.getFullText();return Wn.charAt(Wn.length-1)==="."}return!1}function va(At){return At.parent.kind===254&&!e.isPossiblyTypeArgumentPosition(At,$e,Ir)}function ti(At,Wn){if(Wn.length===0)return At;for(var sa=new e.Set,oi=new e.Set,vi=0,Ui=Wn;vi<Ui.length;vi++){var Ca=Ui[vi];if(!(Ca.kind!==294&&Ca.kind!==295&&Ca.kind!==202&&Ca.kind!==168&&Ca.kind!==171&&Ca.kind!==172&&Ca.kind!==296)&&!jo(Ca)){var gi=void 0;if(e.isSpreadAssignment(Ca))ii(Ca,sa);else if(e.isBindingElement(Ca)&&Ca.propertyName)Ca.propertyName.kind===79&&(gi=Ca.propertyName.escapedText);else{var Mi=e.getNameOfDeclaration(Ca);gi=Mi&&e.isPropertyNameLiteral(Mi)?e.getEscapedTextOfIdentifierOrLiteral(Mi):void 0}gi!==void 0&&oi.add(gi)}}var Vi=At.filter(function(Ro){return!oi.has(Ro.escapedName)});return Oi(sa,Vi),Vi}function ii(At,Wn){var sa=At.expression,oi=Ir.getSymbolAtLocation(sa),vi=oi&&Ir.getTypeOfSymbolAtLocation(oi,sa),Ui=vi&&vi.properties;Ui&&Ui.forEach(function(Ca){Wn.add(Ca.name)})}function Si(){Et.forEach(function(At){var Wn;if(At.flags&16777216){var sa=e.getSymbolId(At);hn[sa]=(Wn=hn[sa])!==null&&Wn!==void 0?Wn:12}})}function Oi(At,Wn){if(At.size!==0)for(var sa=0,oi=Wn;sa<oi.length;sa++){var vi=oi[sa];At.has(vi.name)&&(hn[e.getSymbolId(vi)]=13)}}function _s(At,Wn,sa){for(var oi=new e.Set,vi=0,Ui=Wn;vi<Ui.length;vi++){var Ca=Ui[vi];if(!(Ca.kind!==166&&Ca.kind!==168&&Ca.kind!==171&&Ca.kind!==172)&&!jo(Ca)&&!e.hasEffectiveModifier(Ca,8)&&e.isStatic(Ca)===!!(sa&32)){var gi=e.getPropertyNameForPropertyNameNode(Ca.name);gi&&oi.add(gi)}}return At.filter(function(Mi){return!oi.has(Mi.escapedName)&&!!Mi.declarations&&!(e.getDeclarationModifierFlagsFromSymbol(Mi)&8)&&!(Mi.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Mi.valueDeclaration))})}function os(At,Wn){for(var sa=new e.Set,oi=new e.Set,vi=0,Ui=Wn;vi<Ui.length;vi++){var Ca=Ui[vi];jo(Ca)||(Ca.kind===284?sa.add(Ca.name.escapedText):e.isJsxSpreadAttribute(Ca)&&ii(Ca,oi))}var gi=At.filter(function(Mi){return!sa.has(Mi.escapedName)});return Oi(oi,gi),gi}function jo(At){return At.getStart($e)<=z&&z<=At.getEnd()}}function Ve(Ce,cr){var $e=e.findPrecedingToken(Ce,cr);if($e&&Ce<=$e.end&&(e.isMemberName($e)||e.isKeyword($e.kind))){var De=e.findPrecedingToken($e.getFullStart(),cr,void 0);return{contextToken:De,previousToken:$e}}return{contextToken:$e,previousToken:$e}}function gr(Ce,cr,$e,De){var z=cr.isPackageJsonImport?De.getPackageJsonAutoImportProvider():$e,ke=z.getTypeChecker(),dr=cr.ambientModuleName?ke.tryFindAmbientModule(cr.ambientModuleName):cr.fileName?ke.getMergedSymbol(e.Debug.checkDefined(z.getSourceFile(cr.fileName)).symbol):void 0;if(!!dr){var Xe=cr.exportName==="export="?ke.resolveExternalModuleSymbol(dr):ke.tryGetMemberInModuleExportsAndProperties(cr.exportName,dr);if(!!Xe){var Qe=cr.exportName==="default";return Xe=Qe&&e.getLocalSymbolForExportDefault(Xe)||Xe,{symbol:Xe,origin:A(cr,Ce,dr)}}}}function Er(Ce,cr,$e,De,z){var ke=j($e)?$e.symbolName:Ce.name;if(!(ke===void 0||Ce.flags&1536&&e.isSingleOrDoubleQuote(ke.charCodeAt(0))||e.isKnownSymbol(Ce))){var dr={name:ke,needsConvertPropertyAccess:!1};if(e.isIdentifierText(ke,cr,z?1:0)||Ce.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(Ce.valueDeclaration))return dr;switch(De){case 3:return;case 0:return{name:JSON.stringify(ke),needsConvertPropertyAccess:!1};case 2:case 1:return ke.charCodeAt(0)===32?void 0:{name:ke,needsConvertPropertyAccess:!0};case 5:case 4:return dr;default:e.Debug.assertNever(De)}}}var Nr=[],ur=e.memoize(function(){for(var Ce=[],cr=81;cr<=159;cr++)Ce.push({name:e.tokenToString(cr),kind:"keyword",kindModifiers:"",sortText:u.GlobalsOrKeywords});return Ce});function xr(Ce,cr){if(!cr)return sr(Ce);var $e=Ce+7+1;return Nr[$e]||(Nr[$e]=sr(Ce).filter(function(De){return!i(e.stringToToken(De.name))}))}function sr(Ce){return Nr[Ce]||(Nr[Ce]=ur().filter(function(cr){var $e=e.stringToToken(cr.name);switch(Ce){case 0:return!1;case 1:return Ar($e)||$e===135||$e===141||$e===151||$e===142||$e===126||e.isTypeKeyword($e)&&$e!==152;case 5:return Ar($e);case 2:return fr($e);case 3:return Mr($e);case 4:return e.isParameterPropertyModifier($e);case 6:return e.isTypeKeyword($e)||$e===85;case 7:return e.isTypeKeyword($e);case 8:return $e===151;default:return e.Debug.assertNever(Ce)}}))}function i(Ce){switch(Ce){case 126:case 130:case 157:case 133:case 135:case 92:case 156:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 146:case 147:case 158:case 121:case 122:case 123:case 144:case 149:case 150:case 151:case 153:case 154:return!0;default:return!1}}function Mr(Ce){return Ce===144}function fr(Ce){switch(Ce){case 126:case 134:case 136:case 148:case 131:case 135:case 158:return!0;default:return e.isClassMemberModifier(Ce)}}function Ar(Ce){return Ce===131||Ce===132||Ce===127||!e.isContextualKeyword(Ce)&&!fr(Ce)}function de(Ce){return e.isIdentifier(Ce)?Ce.originalKeywordKind||0:Ce.kind}function we(Ce,cr){var $e=e.findAncestor(Ce,e.isJSDoc);return $e&&$e.tags&&(e.rangeContainsPosition($e,cr)?e.findLast($e.tags,function(De){return De.pos<cr}):void 0)}function qe(Ce,cr,$e,De){var z=cr&&cr!==Ce,ke=z&&!(cr.flags&3)?De.getUnionType([Ce,cr]):Ce,dr=Cr(ke,$e,De);return ke.isClass()&&kr(dr)?[]:z?e.filter(dr,Xe):dr;function Xe(Qe){return e.some(Qe.declarations,function(Ir){return Ir.parent!==$e})}}c.getPropertiesForObjectExpression=qe;function Cr(Ce,cr,$e){return Ce.isUnion()?$e.getAllPossiblePropertiesOfTypes(e.filter(Ce.types,function(De){return!(De.flags&131068||$e.isArrayLikeType(De)||$e.isTypeInvalidDueToUnionDiscriminant(De,cr)||e.typeHasCallOrConstructSignatures(De,$e)||De.isClass()&&kr(De.getApparentProperties()))})):Ce.getApparentProperties()}function kr(Ce){return e.some(Ce,function(cr){return!!(e.getDeclarationModifierFlagsFromSymbol(cr)&24)})}function He(Ce,cr){return Ce.isUnion()?e.Debug.checkEachDefined(cr.getAllPossiblePropertiesOfTypes(Ce.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(Ce.getApparentProperties(),"getApparentProperties() should all be defined")}function lr(Ce,cr,$e,De){switch($e.kind){case 346:return e.tryCast($e.parent,e.isObjectTypeDeclaration);case 1:var z=e.tryCast(e.lastOrUndefined(e.cast($e.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(z&&!e.findChildOfKind(z,19,Ce))return z;break;case 79:{if(e.isPropertyDeclaration($e.parent)&&$e.parent.initializer===$e)return;if(Sr($e))return e.findAncestor($e,e.isObjectTypeDeclaration)}}if(!!cr){if($e.kind===134||e.isIdentifier(cr)&&e.isPropertyDeclaration(cr.parent)&&e.isClassLike($e))return e.findAncestor(cr,e.isClassLike);switch(cr.kind){case 63:return;case 26:case 19:return Sr($e)&&$e.parent.name===$e?$e.parent.parent:e.tryCast($e,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(cr.parent,e.isObjectTypeDeclaration);default:if(!Sr(cr))return e.getLineAndCharacterOfPosition(Ce,cr.getEnd()).line!==e.getLineAndCharacterOfPosition(Ce,De).line&&e.isObjectTypeDeclaration($e)?$e:void 0;var ke=e.isClassLike(cr.parent.parent)?fr:Mr;return ke(cr.kind)||cr.kind===41||e.isIdentifier(cr)&&ke(e.stringToToken(cr.text))?cr.parent.parent:void 0}}}function Hr(Ce){if(!!Ce){var cr=Ce.parent;switch(Ce.kind){case 18:if(e.isTypeLiteralNode(cr))return cr;break;case 26:case 27:case 79:if(cr.kind===165&&e.isTypeLiteralNode(cr.parent))return cr.parent;break}}}function Je(Ce,cr){if(!!Ce){if(e.isTypeNode(Ce)&&e.isTypeReferenceType(Ce.parent))return cr.getTypeArgumentConstraint(Ce);var $e=Je(Ce.parent,cr);if(!!$e)switch(Ce.kind){case 165:return cr.getTypeOfPropertyOfContextualType($e,Ce.symbol.escapedName);case 187:case 181:case 186:return $e}}}function Sr(Ce){return Ce.parent&&e.isClassOrTypeElement(Ce.parent)&&e.isObjectTypeDeclaration(Ce.parent.parent)}function Yr(Ce,cr,$e,De){switch(cr){case".":case"@":return!0;case'"':case"'":case"`":return!!$e&&e.isStringLiteralOrTemplate($e)&&De===$e.getStart(Ce)+1;case"#":return!!$e&&e.isPrivateIdentifier($e)&&!!e.getContainingClass($e);case"<":return!!$e&&$e.kind===29&&(!e.isBinaryExpression($e.parent)||ot($e.parent));case"/":return!!$e&&(e.isStringLiteralLike($e)?!!e.tryGetImportFromModuleSpecifier($e):$e.kind===43&&e.isJsxClosingElement($e.parent));case" ":return!!$e&&e.isImportKeyword($e)&&$e.parent.kind===303;default:return e.Debug.assertNever(cr)}}function ot(Ce){var cr=Ce.left;return e.nodeIsMissing(cr)}function _t(Ce,cr,$e){var De=$e.resolveName("self",void 0,111551,!1);if(De&&$e.getTypeOfSymbolAtLocation(De,cr)===Ce)return!0;var z=$e.resolveName("global",void 0,111551,!1);if(z&&$e.getTypeOfSymbolAtLocation(z,cr)===Ce)return!0;var ke=$e.resolveName("globalThis",void 0,111551,!1);return!!(ke&&$e.getTypeOfSymbolAtLocation(ke,cr)===Ce)}function kt(Ce){return!!(Ce.valueDeclaration&&e.getEffectiveModifierFlags(Ce.valueDeclaration)&32&&e.isClassLike(Ce.valueDeclaration.parent))}function Yt(Ce,cr){var $e=cr.getContextualType(Ce);if($e)return $e;if(e.isBinaryExpression(Ce.parent)&&Ce.parent.operatorToken.kind===63&&Ce===Ce.parent.left)return cr.getTypeAtLocation(Ce.parent)}function vn(Ce){var cr,$e=!1,De=z();return{isKeywordOnlyCompletion:$e,keywordCompletion:cr,isNewIdentifierLocation:!!(De||cr===151),replacementNode:De&&e.rangeIsOnSingleLine(De,De.getSourceFile())?De:void 0};function z(){var ke=Ce.parent;if(e.isImportEqualsDeclaration(ke))return cr=Ce.kind===151?void 0:151,nr(ke.moduleReference)?ke:void 0;if(Mn(ke,Ce)&&qn(ke.parent))return ke;if(e.isNamedImports(ke)||e.isNamespaceImport(ke)){if(!ke.parent.isTypeOnly&&(Ce.kind===18||Ce.kind===100||Ce.kind===27)&&(cr=151),qn(ke))if(Ce.kind===19||Ce.kind===79)$e=!0,cr=155;else return ke.parent.parent;return}if(e.isImportKeyword(Ce)&&e.isSourceFile(ke))return cr=151,Ce;if(e.isImportKeyword(Ce)&&e.isImportDeclaration(ke))return cr=151,nr(ke.moduleSpecifier)?ke:void 0}}function Mn(Ce,cr){return e.isImportSpecifier(Ce)&&(Ce.isTypeOnly||cr===Ce.name&&e.isTypeKeywordTokenOrIdentifier(cr))}function qn(Ce){return nr(Ce.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(Ce)||Ce.elements.length<2)&&!Ce.parent.name}function nr(Ce){var cr;return e.nodeIsMissing(Ce)?!0:!(!((cr=e.tryCast(e.isExternalModuleReference(Ce)?Ce.expression:Ce,e.isStringLiteralLike))===null||cr===void 0)&&cr.text)}function Zr(Ce){var cr=e.findAncestor(Ce,function($e){return e.isFunctionBlock($e)||ir($e)||e.isBindingPattern($e)?"quit":e.isVariableDeclaration($e)});return cr}function ir(Ce){return Ce.parent&&e.isArrowFunction(Ce.parent)&&Ce.parent.body===Ce}function ge(Ce,cr,$e){$e===void 0&&($e=new e.Map);var De=e.skipAlias(Ce.exportSymbol||Ce,cr);return!!(De.flags&788968)||cr.isUnknownSymbol(De)||!!(De.flags&1536)&&e.addToSeen($e,e.getSymbolId(De))&&cr.getExportsOfModule(De).some(function(z){return ge(z,cr,$e)})}function rr(Ce,cr){var $e=e.skipAlias(Ce,cr).declarations;return!!e.length($e)&&e.every($e,e.isDeprecatedDeclaration)}function pr(Ce,cr){if(cr.length===0)return!0;for(var $e=!1,De,z=0,ke=Ce.length,dr=0;dr<ke;dr++){var Xe=Ce.charCodeAt(dr),Qe=cr.charCodeAt(z);if((Xe===Qe||Xe===Lr(Qe))&&($e||($e=De===void 0||97<=De&&De<=122&&65<=Xe&&Xe<=90||De===95&&Xe!==95),$e&&z++,z===cr.length))return!0;De=Xe}return!1}function Lr(Ce){return 97<=Ce&&Ce<=122?Ce-32:Ce}})(n=e.Completions||(e.Completions={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(H,w,d,B,T){var _=e.getTouchingPropertyName(d,B);if(_.parent&&(e.isJsxOpeningElement(_.parent)&&_.parent.tagName===_||e.isJsxClosingElement(_.parent))){var h=_.parent.parent,R=h.openingElement,b=h.closingElement,G=[R,b].map(function(Y){var pe=Y.tagName;return g(pe,d)});return[{fileName:d.fileName,highlightSpans:G}]}return p(B,_,H,w,T)||I(_,d)}c.getDocumentHighlights=u;function g(H,w){return{fileName:w.fileName,textSpan:e.createTextSpanFromNode(H,w),kind:"none"}}function p(H,w,d,B,T){var _=new e.Set(T.map(function(G){return G.fileName})),h=e.FindAllReferences.getReferenceEntriesForNode(H,w,d,T,B,void 0,_);if(!!h){var R=e.arrayToMultiMap(h.map(e.FindAllReferences.toHighlightSpan),function(G){return G.fileName},function(G){return G.span}),b=e.createGetCanonicalFileName(d.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(R.entries()),function(G){var Y=G[0],pe=G[1];if(!_.has(Y)){if(!d.redirectTargetsMap.has(e.toPath(Y,d.getCurrentDirectory(),b)))return;var A=d.getSourceFile(Y),_e=e.find(T,function(Se){return!!Se.redirectInfo&&Se.redirectInfo.redirectTarget===A});Y=_e.fileName,e.Debug.assert(_.has(Y))}return{fileName:Y,highlightSpans:pe}})}}function I(H,w){var d=V(H,w);return d&&[{fileName:w.fileName,highlightSpans:d}]}function V(H,w){switch(H.kind){case 99:case 91:return e.isIfStatement(H.parent)?P(H.parent,w):void 0;case 105:return T(H.parent,e.isReturnStatement,ie);case 109:return T(H.parent,e.isThrowStatement,x);case 111:case 83:case 96:var d=H.kind===83?H.parent.parent:H.parent;return T(d,e.isTryStatement,O);case 107:return T(H.parent,e.isSwitchStatement,X);case 82:case 88:return e.isDefaultClause(H.parent)||e.isCaseClause(H.parent)?T(H.parent.parent.parent,e.isSwitchStatement,X):void 0;case 81:case 86:return T(H.parent,e.isBreakOrContinueStatement,k);case 97:case 115:case 90:return T(H.parent,function(h){return e.isIterationStatement(h,!0)},K);case 134:return B(e.isConstructorDeclaration,[134]);case 136:case 148:return B(e.isAccessor,[136,148]);case 132:return T(H.parent,e.isAwaitExpression,Z);case 131:return _(Z(H));case 125:return _(re(H));default:return e.isModifierKind(H.kind)&&(e.isDeclaration(H.parent)||e.isVariableStatement(H.parent))?_(F(H.kind,H.parent)):void 0}function B(h,R){return T(H.parent,h,function(b){return e.mapDefined(b.symbol.declarations,function(G){return h(G)?e.find(G.getChildren(w),function(Y){return e.contains(R,Y.kind)}):void 0})})}function T(h,R,b){return R(h)?_(b(h,w)):void 0}function _(h){return h&&h.map(function(R){return g(R,w)})}}function L(H){return e.isThrowStatement(H)?[H]:e.isTryStatement(H)?e.concatenate(H.catchClause?L(H.catchClause):H.tryBlock&&L(H.tryBlock),H.finallyBlock&&L(H.finallyBlock)):e.isFunctionLike(H)?void 0:j(H,L)}function m(H){for(var w=H;w.parent;){var d=w.parent;if(e.isFunctionBlock(d)||d.kind===303)return d;if(e.isTryStatement(d)&&d.tryBlock===w&&d.catchClause)return w;w=d}}function y(H){return e.isBreakOrContinueStatement(H)?[H]:e.isFunctionLike(H)?void 0:j(H,y)}function j(H,w){var d=[];return H.forEachChild(function(B){var T=w(B);T!==void 0&&d.push.apply(d,e.toArray(T))}),d}function te(H,w){var d=E(w);return!!d&&d===H}function E(H){return e.findAncestor(H,function(w){switch(w.kind){case 248:if(H.kind===244)return!1;case 241:case 242:case 243:case 240:case 239:return!H.label||Q(w,H.label.escapedText);default:return e.isFunctionLike(w)&&"quit"}})}function F(H,w){return e.mapDefined($(w,e.modifierToFlag(H)),function(d){return e.findModifier(d,H)})}function $(H,w){var d=H.parent;switch(d.kind){case 261:case 303:case 234:case 288:case 289:return w&128&&e.isClassDeclaration(H)?Bt(Bt([],H.members,!0),[H],!1):d.statements;case 170:case 168:case 255:return Bt(Bt([],d.parameters,!0),e.isClassLike(d.parent)?d.parent.members:[],!0);case 256:case 225:case 257:case 181:var B=d.members;if(w&92){var T=e.find(d.members,e.isConstructorDeclaration);if(T)return Bt(Bt([],B,!0),T.parameters,!0)}else if(w&128)return Bt(Bt([],B,!0),[d],!1);return B;case 204:return;default:e.Debug.assertNever(d,"Invalid container kind.")}}function C(H,w){for(var d=[],B=2;B<arguments.length;B++)d[B-2]=arguments[B];return w&&e.contains(d,w.kind)?(H.push(w),!0):!1}function K(H){var w=[];if(C(w,H.getFirstToken(),97,115,90)&&H.kind===239)for(var d=H.getChildren(),B=d.length-1;B>=0&&!C(w,d[B],115);B--);return e.forEach(y(H.statement),function(T){te(H,T)&&C(w,T.getFirstToken(),81,86)}),w}function k(H){var w=E(H);if(w)switch(w.kind){case 241:case 242:case 243:case 239:case 240:return K(w);case 248:return X(w)}}function X(H){var w=[];return C(w,H.getFirstToken(),107),e.forEach(H.caseBlock.clauses,function(d){C(w,d.getFirstToken(),82,88),e.forEach(y(d),function(B){te(H,B)&&C(w,B.getFirstToken(),81)})}),w}function O(H,w){var d=[];if(C(d,H.getFirstToken(),111),H.catchClause&&C(d,H.catchClause.getFirstToken(),83),H.finallyBlock){var B=e.findChildOfKind(H,96,w);C(d,B,96)}return d}function x(H,w){var d=m(H);if(!!d){var B=[];return e.forEach(L(d),function(T){B.push(e.findChildOfKind(T,109,w))}),e.isFunctionBlock(d)&&e.forEachReturnStatement(d,function(T){B.push(e.findChildOfKind(T,105,w))}),B}}function ie(H,w){var d=e.getContainingFunction(H);if(!!d){var B=[];return e.forEachReturnStatement(e.cast(d.body,e.isBlock),function(T){B.push(e.findChildOfKind(T,105,w))}),e.forEach(L(d.body),function(T){B.push(e.findChildOfKind(T,109,w))}),B}}function Z(H){var w=e.getContainingFunction(H);if(!!w){var d=[];return w.modifiers&&w.modifiers.forEach(function(B){C(d,B,131)}),e.forEachChild(w,function(B){q(B,function(T){e.isAwaitExpression(T)&&C(d,T.getFirstToken(),132)})}),d}}function re(H){var w=e.getContainingFunction(H);if(!!w){var d=[];return e.forEachChild(w,function(B){q(B,function(T){e.isYieldExpression(T)&&C(d,T.getFirstToken(),125)})}),d}}function q(H,w){w(H),!e.isFunctionLike(H)&&!e.isClassLike(H)&&!e.isInterfaceDeclaration(H)&&!e.isModuleDeclaration(H)&&!e.isTypeAliasDeclaration(H)&&!e.isTypeNode(H)&&e.forEachChild(H,function(d){return q(d,w)})}function P(H,w){for(var d=M(H,w),B=[],T=0;T<d.length;T++){if(d[T].kind===91&&T<d.length-1){for(var _=d[T],h=d[T+1],R=!0,b=h.getStart(w)-1;b>=_.end;b--)if(!e.isWhiteSpaceSingleLine(w.text.charCodeAt(b))){R=!1;break}if(R){B.push({fileName:w.fileName,textSpan:e.createTextSpanFromBounds(_.getStart(),h.end),kind:"reference"}),T++;continue}}B.push(g(d[T],w))}return B}function M(H,w){for(var d=[];e.isIfStatement(H.parent)&&H.parent.elseStatement===H;)H=H.parent;for(;;){var B=H.getChildren(w);C(d,B[0],99);for(var T=B.length-1;T>=0&&!C(d,B[T],91);T--);if(!H.elseStatement||!e.isIfStatement(H.elseStatement))break;H=H.elseStatement}return d}function Q(H,w){return!!e.findAncestor(H.parent,function(d){return e.isLabeledStatement(d)?d.label.escapedText===w:"quit"})}})(n=e.DocumentHighlights||(e.DocumentHighlights={}))})(mr||(mr={}));var mr;(function(e){function n(p){return!!p.sourceFile}function c(p,I){return u(p,I)}e.createDocumentRegistry=c;function u(p,I,V){I===void 0&&(I="");var L=new e.Map,m=e.createGetCanonicalFileName(!!p);function y(){var O=e.arrayFrom(L.keys()).filter(function(x){return x&&x.charAt(0)==="_"}).map(function(x){var ie=L.get(x),Z=[];return ie.forEach(function(re,q){n(re)?Z.push({name:q,scriptKind:re.sourceFile.scriptKind,refCount:re.languageServiceRefCount}):re.forEach(function(P,M){return Z.push({name:q,scriptKind:M,refCount:P.languageServiceRefCount})})}),Z.sort(function(re,q){return q.refCount-re.refCount}),{bucket:x,sourceFiles:Z}});return JSON.stringify(O,void 0,2)}function j(O,x,ie,Z,re){var q=e.toPath(O,I,m),P=g(x);return te(O,q,x,P,ie,Z,re)}function te(O,x,ie,Z,re,q,P){return C(O,x,ie,Z,re,q,!0,P)}function E(O,x,ie,Z,re){var q=e.toPath(O,I,m),P=g(x);return F(O,q,x,P,ie,Z,re)}function F(O,x,ie,Z,re,q,P){return C(O,x,ie,Z,re,q,!1,P)}function $(O,x){var ie=n(O)?O:O.get(e.Debug.checkDefined(x,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(x===void 0||!ie||ie.sourceFile.scriptKind===x,"Script kind should match provided ScriptKind:".concat(x," and sourceFile.scriptKind: ").concat(ie==null?void 0:ie.sourceFile.scriptKind,", !entry: ").concat(!ie)),ie}function C(O,x,ie,Z,re,q,P,M){M=e.ensureScriptKind(O,M);var Q=M===6?100:e.getEmitScriptTarget(ie),H=e.getOrUpdate(L,Z,function(){return new e.Map}),w=H.get(x),d=w&&$(w,M);if(!d&&V){var B=V.getDocument(Z,x);B&&(e.Debug.assert(P),d={sourceFile:B,languageServiceRefCount:0},T())}if(d)d.sourceFile.version!==q&&(d.sourceFile=e.updateLanguageServiceSourceFile(d.sourceFile,re,q,re.getChangeRange(d.sourceFile.scriptSnapshot)),V&&V.setDocument(Z,x,d.sourceFile)),P&&d.languageServiceRefCount++;else{var B=e.createLanguageServiceSourceFile(O,re,Q,q,!1,M);V&&V.setDocument(Z,x,B),d={sourceFile:B,languageServiceRefCount:1},T()}return e.Debug.assert(d.languageServiceRefCount!==0),d.sourceFile;function T(){if(!w)H.set(x,d);else if(n(w)){var _=new e.Map;_.set(w.sourceFile.scriptKind,w),_.set(M,d),H.set(x,_)}else w.set(M,d)}}function K(O,x,ie){var Z=e.toPath(O,I,m),re=g(x);return k(Z,re,ie)}function k(O,x,ie){var Z=e.Debug.checkDefined(L.get(x)),re=Z.get(O),q=$(re,ie);q.languageServiceRefCount--,e.Debug.assert(q.languageServiceRefCount>=0),q.languageServiceRefCount===0&&(n(re)?Z.delete(O):(re.delete(ie),re.size===1&&Z.set(O,e.firstDefinedIterator(re.values(),e.identity))))}function X(O,x){return e.arrayFrom(L.entries(),function(ie){var Z=ie[0],re=ie[1],q=re.get(O),P=q&&$(q,x);return[Z,P&&P.languageServiceRefCount]})}return{acquireDocument:j,acquireDocumentWithKey:te,updateDocument:E,updateDocumentWithKey:F,releaseDocument:K,releaseDocumentWithKey:k,getLanguageServiceRefCounts:X,reportStats:y,getKeyForCompilationSettings:g}}e.createDocumentRegistryInternal=u;function g(p){return e.sourceFileAffectingCompilerOptions.map(function(I){return e.getCompilerOptionValue(p,I)}).join("|")}})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(Z,re,q,P){var M=y(Z,q,P);return function(Q,H,w){var d=I(Z,re,M,H,q,P),B=d.directImports,T=d.indirectUsers;return kn({indirectUsers:T},V(B,Q,H.exportKind,q,w))}}c.createImportTracker=u;var g;(function(Z){Z[Z.Named=0]="Named",Z[Z.Default=1]="Default",Z[Z.ExportEquals=2]="ExportEquals"})(g=c.ExportKind||(c.ExportKind={}));var p;(function(Z){Z[Z.Import=0]="Import",Z[Z.Export=1]="Export"})(p=c.ImportExport||(c.ImportExport={}));function I(Z,re,q,P,M,Q){var H=P.exportingModuleSymbol,w=P.exportKind,d=e.nodeSeenTracker(),B=e.nodeSeenTracker(),T=[],_=!!H.globalExports,h=_?void 0:[];return b(H),{directImports:T,indirectUsers:R()};function R(){if(_)return Z;if(H.declarations)for(var Se=0,ae=H.declarations;Se<ae.length;Se++){var D=ae[Se];e.isExternalModuleAugmentation(D)&&re.has(D.getSourceFile().fileName)&&A(D)}return h.map(e.getSourceFileOfNode)}function b(Se){var ae=_e(Se);if(ae)for(var D=0,be=ae;D<be.length;D++){var ne=be[D];if(!!d(ne))switch(Q&&Q.throwIfCancellationRequested(),ne.kind){case 207:if(e.isImportCall(ne)){G(ne);break}if(!_){var J=ne.parent;if(w===2&&J.kind===253){var le=J.name;if(le.kind===79){T.push(le);break}}}break;case 79:break;case 264:pe(ne,ne.name,e.hasSyntacticModifier(ne,1),!1);break;case 265:T.push(ne);var Te=ne.importClause&&ne.importClause.namedBindings;Te&&Te.kind===267?pe(ne,Te.name,!1,!0):!_&&e.isDefaultImport(ne)&&A(O(ne));break;case 271:ne.exportClause?ne.exportClause.kind===273?A(O(ne),!0):T.push(ne):b(X(ne,M));break;case 199:ne.isTypeOf&&!ne.qualifier&&Y(ne)&&A(ne.getSourceFile(),!0),T.push(ne);break;default:e.Debug.failBadSyntaxKind(ne,"Unexpected import kind.")}}}function G(Se){var ae=e.findAncestor(Se,x)||Se.getSourceFile();A(ae,!!Y(Se,!0))}function Y(Se,ae){return ae===void 0&&(ae=!1),e.findAncestor(Se,function(D){return ae&&x(D)?"quit":e.some(D.modifiers,function(be){return be.kind===93})})}function pe(Se,ae,D,be){if(w===2)be||T.push(Se);else if(!_){var ne=O(Se);e.Debug.assert(ne.kind===303||ne.kind===260),D||L(ne,ae,M)?A(ne,!0):A(ne)}}function A(Se,ae){ae===void 0&&(ae=!1),e.Debug.assert(!_);var D=B(Se);if(!!D&&(h.push(Se),!!ae)){var be=M.getMergedSymbol(Se.symbol);if(!!be){e.Debug.assert(!!(be.flags&1536));var ne=_e(be);if(ne)for(var J=0,le=ne;J<le.length;J++){var Te=le[J];e.isImportTypeNode(Te)||A(O(Te),!0)}}}}function _e(Se){return q.get(e.getSymbolId(Se).toString())}}function V(Z,re,q,P,M){var Q=[],H=[];function w(G,Y){Q.push([G,Y])}if(Z)for(var d=0,B=Z;d<B.length;d++){var T=B[d];_(T)}return{importSearches:Q,singleReferences:H};function _(G){if(G.kind===264){ie(G)&&h(G.name);return}if(G.kind===79){h(G);return}if(G.kind===199){if(G.qualifier){var Y=e.getFirstIdentifier(G.qualifier);Y.escapedText===e.symbolName(re)&&H.push(Y)}else q===2&&H.push(G.argument.literal);return}if(G.moduleSpecifier.kind===10){if(G.kind===271){G.exportClause&&e.isNamedExports(G.exportClause)&&R(G.exportClause);return}var pe=G.importClause||{name:void 0,namedBindings:void 0},A=pe.name,_e=pe.namedBindings;if(_e)switch(_e.kind){case 267:h(_e.name);break;case 268:(q===0||q===1)&&R(_e);break;default:e.Debug.assertNever(_e)}if(A&&(q===1||q===2)&&(!M||A.escapedText===e.symbolEscapedNameNoDefault(re))){var Se=P.getSymbolAtLocation(A);w(A,Se)}}}function h(G){q===2&&(!M||b(G.escapedText))&&w(G,P.getSymbolAtLocation(G))}function R(G){if(!!G)for(var Y=0,pe=G.elements;Y<pe.length;Y++){var A=pe[Y],_e=A.name,Se=A.propertyName;if(!!b((Se||_e).escapedText))if(Se)H.push(Se),(!M||_e.escapedText===re.escapedName)&&w(_e,P.getSymbolAtLocation(_e));else{var ae=A.kind===274&&A.propertyName?P.getExportSpecifierLocalTargetSymbol(A):P.getSymbolAtLocation(_e);w(_e,ae)}}}function b(G){return G===re.escapedName||q!==0&&G==="default"}}function L(Z,re,q){var P=q.getSymbolAtLocation(re);return!!j(Z,function(M){if(!!e.isExportDeclaration(M)){var Q=M.exportClause,H=M.moduleSpecifier;return!H&&Q&&e.isNamedExports(Q)&&Q.elements.some(function(w){return q.getExportSpecifierLocalTargetSymbol(w)===P})}})}function m(Z,re,q){for(var P=[],M=Z.getTypeChecker(),Q=0,H=re;Q<H.length;Q++){var w=H[Q],d=q.valueDeclaration;if((d==null?void 0:d.kind)===303){for(var B=0,T=w.referencedFiles;B<T.length;B++){var _=T[B];Z.getSourceFileFromReference(w,_)===d&&P.push({kind:"reference",referencingFile:w,ref:_})}for(var h=0,R=w.typeReferenceDirectives;h<R.length;h++){var _=R[h],b=Z.getResolvedTypeReferenceDirectives().get(_.fileName);b!==void 0&&b.resolvedFileName===d.fileName&&P.push({kind:"reference",referencingFile:w,ref:_})}}te(w,function(G,Y){var pe=M.getSymbolAtLocation(Y);pe===q&&P.push({kind:"import",literal:Y})})}return P}c.findModuleReferences=m;function y(Z,re,q){for(var P=new e.Map,M=0,Q=Z;M<Q.length;M++){var H=Q[M];q&&q.throwIfCancellationRequested(),te(H,function(w,d){var B=re.getSymbolAtLocation(d);if(B){var T=e.getSymbolId(B).toString(),_=P.get(T);_||P.set(T,_=[]),_.push(w)}})}return P}function j(Z,re){return e.forEach(Z.kind===303?Z.statements:Z.body.statements,function(q){return re(q)||x(q)&&e.forEach(q.body&&q.body.statements,re)})}function te(Z,re){if(Z.externalModuleIndicator||Z.imports!==void 0)for(var q=0,P=Z.imports;q<P.length;q++){var M=P[q];re(e.importFromModuleSpecifier(M),M)}else j(Z,function(Q){switch(Q.kind){case 271:case 265:{var H=Q;H.moduleSpecifier&&e.isStringLiteral(H.moduleSpecifier)&&re(H,H.moduleSpecifier);break}case 264:{var H=Q;ie(H)&&re(H,H.moduleReference.expression);break}}})}function E(Z,re,q,P){return P?M():M()||Q();function M(){var d,B=Z.parent,T=B.parent;if(re.exportSymbol)return B.kind===205?((d=re.declarations)===null||d===void 0?void 0:d.some(function(G){return G===B}))&&e.isBinaryExpression(T)?b(T,!1):void 0:H(re.exportSymbol,w(B));var _=$(B,Z);if(_&&e.hasSyntacticModifier(_,1))if(e.isImportEqualsDeclaration(_)&&_.moduleReference===Z){if(P)return;var h=q.getSymbolAtLocation(_.name);return{kind:0,symbol:h}}else return H(re,w(_));else{if(e.isNamespaceExport(B))return H(re,0);if(e.isExportAssignment(B))return R(B);if(e.isExportAssignment(T))return R(T);if(e.isBinaryExpression(B))return b(B,!0);if(e.isBinaryExpression(T))return b(T,!0);if(e.isJSDocTypedefTag(B))return H(re,0)}function R(G){if(!!G.symbol.parent){var Y=G.isExportEquals?2:1;return{kind:1,symbol:re,exportInfo:{exportingModuleSymbol:G.symbol.parent,exportKind:Y}}}}function b(G,Y){var pe;switch(e.getAssignmentDeclarationKind(G)){case 1:pe=0;break;case 2:pe=2;break;default:return}var A=Y?q.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(G.left,e.isAccessExpression))):re;return A&&H(A,pe)}}function Q(){var d=C(Z);if(!!d){var B=q.getImmediateAliasedSymbol(re);if(!!B){B=k(B,q),B.escapedName==="export="&&(B=F(B,q));var T=e.symbolEscapedNameNoDefault(B);if(T===void 0||T==="default"||T===re.escapedName)return{kind:0,symbol:B}}}}function H(d,B){var T=K(d,B,q);return T&&{kind:1,symbol:d,exportInfo:T}}function w(d){return e.hasSyntacticModifier(d,512)?1:0}}c.getImportOrExportSymbol=E;function F(Z,re){if(Z.flags&2097152)return e.Debug.checkDefined(re.getImmediateAliasedSymbol(Z));var q=e.Debug.checkDefined(Z.valueDeclaration);return e.isExportAssignment(q)?e.Debug.checkDefined(q.expression.symbol):e.isBinaryExpression(q)?e.Debug.checkDefined(q.right.symbol):e.isSourceFile(q)?e.Debug.checkDefined(q.symbol):e.Debug.fail()}function $(Z,re){var q=e.isVariableDeclaration(Z)?Z:e.isBindingElement(Z)?e.walkUpBindingElementsAndPatterns(Z):void 0;return q?Z.name!==re||e.isCatchClause(q.parent)?void 0:e.isVariableStatement(q.parent.parent)?q.parent.parent:void 0:Z}function C(Z){var re=Z.parent;switch(re.kind){case 264:return re.name===Z&&ie(re);case 269:return!re.propertyName;case 266:case 267:return e.Debug.assert(re.name===Z),!0;case 202:return e.isInJSFile(Z)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(re);default:return!1}}function K(Z,re,q){var P=Z.parent;if(!!P){var M=q.getMergedSymbol(P);return e.isExternalModuleSymbol(M)?{exportingModuleSymbol:M,exportKind:re}:void 0}}c.getExportInfo=K;function k(Z,re){if(Z.declarations)for(var q=0,P=Z.declarations;q<P.length;q++){var M=P[q];if(e.isExportSpecifier(M)&&!M.propertyName&&!M.parent.parent.moduleSpecifier)return re.getExportSpecifierLocalTargetSymbol(M);if(e.isPropertyAccessExpression(M)&&e.isModuleExportsAccessExpression(M.expression)&&!e.isPrivateIdentifier(M.name))return re.getSymbolAtLocation(M);if(e.isShorthandPropertyAssignment(M)&&e.isBinaryExpression(M.parent.parent)&&e.getAssignmentDeclarationKind(M.parent.parent)===2)return re.getExportSpecifierLocalTargetSymbol(M.name)}return Z}function X(Z,re){return re.getMergedSymbol(O(Z).symbol)}function O(Z){if(Z.kind===207)return Z.getSourceFile();var re=Z.parent;return re.kind===303?re:(e.Debug.assert(re.kind===261),e.cast(re.parent,x))}function x(Z){return Z.kind===260&&Z.name.kind===10}function ie(Z){return Z.moduleReference.kind===276&&Z.moduleReference.expression.kind===10}})(n=e.FindAllReferences||(e.FindAllReferences={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(T){T[T.Symbol=0]="Symbol",T[T.Label=1]="Label",T[T.Keyword=2]="Keyword",T[T.This=3]="This",T[T.String=4]="String",T[T.TripleSlashReference=5]="TripleSlashReference"})(u=c.DefinitionKind||(c.DefinitionKind={}));var g;(function(T){T[T.Span=0]="Span",T[T.Node=1]="Node",T[T.StringLiteral=2]="StringLiteral",T[T.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",T[T.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal"})(g=c.EntryKind||(c.EntryKind={}));function p(T,_){return _===void 0&&(_=1),{kind:_,node:T.name||T,context:V(T)}}c.nodeEntry=p;function I(T){return T&&T.kind===void 0}c.isContextWithStartAndEndNode=I;function V(T){if(e.isDeclaration(T))return L(T);if(!!T.parent){if(!e.isDeclaration(T.parent)&&!e.isExportAssignment(T.parent)){if(e.isInJSFile(T)){var _=e.isBinaryExpression(T.parent)?T.parent:e.isAccessExpression(T.parent)&&e.isBinaryExpression(T.parent.parent)&&T.parent.parent.left===T.parent?T.parent.parent:void 0;if(_&&e.getAssignmentDeclarationKind(_)!==0)return L(_)}if(e.isJsxOpeningElement(T.parent)||e.isJsxClosingElement(T.parent))return T.parent.parent;if(e.isJsxSelfClosingElement(T.parent)||e.isLabeledStatement(T.parent)||e.isBreakOrContinueStatement(T.parent))return T.parent;if(e.isStringLiteralLike(T)){var h=e.tryGetImportFromModuleSpecifier(T);if(h){var R=e.findAncestor(h,function(G){return e.isDeclaration(G)||e.isStatement(G)||e.isJSDocTag(G)});return e.isDeclaration(R)?L(R):R}}var b=e.findAncestor(T,e.isComputedPropertyName);return b?L(b.parent):void 0}if(T.parent.name===T||e.isConstructorDeclaration(T.parent)||e.isExportAssignment(T.parent)||(e.isImportOrExportSpecifier(T.parent)||e.isBindingElement(T.parent))&&T.parent.propertyName===T||T.kind===88&&e.hasSyntacticModifier(T.parent,513))return L(T.parent)}}function L(T){if(!!T)switch(T.kind){case 253:return!e.isVariableDeclarationList(T.parent)||T.parent.declarations.length!==1?T:e.isVariableStatement(T.parent.parent)?T.parent.parent:e.isForInOrOfStatement(T.parent.parent)?L(T.parent.parent):T.parent;case 202:return L(T.parent.parent);case 269:return T.parent.parent.parent;case 274:case 267:return T.parent.parent;case 266:case 273:return T.parent;case 220:return e.isExpressionStatement(T.parent)?T.parent:T;case 243:case 242:return{start:T.initializer,end:T.expression};case 294:case 295:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(T.parent)?L(e.findAncestor(T.parent,function(_){return e.isBinaryExpression(_)||e.isForInOrOfStatement(_)})):T;default:return T}}c.getContextNode=L;function m(T,_,h){if(!!h){var R=I(h)?M(h.start,_,h.end):M(h,_);return R.start!==T.start||R.length!==T.length?{contextSpan:R}:void 0}}c.toContextSpan=m;var y;(function(T){T[T.Other=0]="Other",T[T.References=1]="References",T[T.Rename=2]="Rename"})(y=c.FindReferencesUse||(c.FindReferencesUse={}));function j(T,_,h,R,b){var G=e.getTouchingPropertyName(R,b),Y=B.getReferencedSymbolsForNode(b,G,T,h,_,{use:1}),pe=T.getTypeChecker(),A=pe.getSymbolAtLocation(G);return!Y||!Y.length?void 0:e.mapDefined(Y,function(_e){var Se=_e.definition,ae=_e.references;return Se&&{definition:pe.runWithCancellationToken(_,function(D){return K(Se,D,G)}),references:ae.map(function(D){return x(D,A)})}})}c.findReferencedSymbols=j;function te(T,_,h,R,b){var G=e.getTouchingPropertyName(R,b),Y,pe=E(T,_,h,G,b);if(G.parent.kind===205||G.parent.kind===202||G.parent.kind===206||G.kind===106)Y=pe&&Bt([],pe,!0);else for(var A=pe&&Bt([],pe,!0),_e=new e.Map;A&&A.length;){var Se=A.shift();if(!!e.addToSeen(_e,e.getNodeId(Se.node))){Y=e.append(Y,Se);var ae=E(T,_,h,Se.node,Se.node.pos);ae&&A.push.apply(A,ae)}}var D=T.getTypeChecker();return e.map(Y,function(be){return re(be,D)})}c.getImplementationsAtPosition=te;function E(T,_,h,R,b){if(R.kind!==303){var G=T.getTypeChecker();if(R.parent.kind===295){var Y=[];return B.getReferenceEntriesForShorthandPropertyAssignment(R,G,function(A){return Y.push(p(A))}),Y}else if(R.kind===106||e.isSuperProperty(R.parent)){var pe=G.getSymbolAtLocation(R);return pe.valueDeclaration&&[p(pe.valueDeclaration)]}else return $(b,R,T,h,_,{implementations:!0,use:1})}}function F(T,_,h,R,b,G,Y){return e.map(C(B.getReferencedSymbolsForNode(b,R,T,h,_,G)),function(pe){return Y(pe,R,T.getTypeChecker())})}c.findReferenceOrRenameEntries=F;function $(T,_,h,R,b,G,Y){return G===void 0&&(G={}),Y===void 0&&(Y=new e.Set(R.map(function(pe){return pe.fileName}))),C(B.getReferencedSymbolsForNode(T,_,h,R,b,G,Y))}c.getReferenceEntriesForNode=$;function C(T){return T&&e.flatMap(T,function(_){return _.references})}function K(T,_,h){var R=function(){switch(T.type){case 0:{var Se=T.symbol,ae=X(Se,_,h),D=ae.displayParts,be=ae.kind,ne=D.map(function(Ke){return Ke.text}).join(""),J=Se.declarations&&e.firstOrUndefined(Se.declarations),le=J?e.getNameOfDeclaration(J)||J:h;return kn(kn({},k(le)),{name:ne,kind:be,displayParts:D,context:L(J)})}case 1:{var le=T.node;return kn(kn({},k(le)),{name:le.text,kind:"label",displayParts:[e.displayPart(le.text,e.SymbolDisplayPartKind.text)]})}case 2:{var le=T.node,Te=e.tokenToString(le.kind);return kn(kn({},k(le)),{name:Te,kind:"keyword",displayParts:[{text:Te,kind:"keyword"}]})}case 3:{var le=T.node,Se=_.getSymbolAtLocation(le),Me=Se&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(_,Se,le.getSourceFile(),e.getContainerNode(le),le).displayParts||[e.textPart("this")];return kn(kn({},k(le)),{name:"this",kind:"var",displayParts:Me})}case 4:{var le=T.node;return kn(kn({},k(le)),{name:le.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(le),e.SymbolDisplayPartKind.stringLiteral)]})}case 5:return{textSpan:e.createTextSpanFromRange(T.reference),sourceFile:T.file,name:T.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(T.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(T)}}(),b=R.sourceFile,G=R.textSpan,Y=R.name,pe=R.kind,A=R.displayParts,_e=R.context;return kn({containerKind:"",containerName:"",fileName:b.fileName,kind:pe,name:Y,textSpan:G,displayParts:A},m(G,b,_e))}function k(T){var _=T.getSourceFile();return{sourceFile:_,textSpan:M(e.isComputedPropertyName(T)?T.expression:T,_)}}function X(T,_,h){var R=B.getIntersectingMeaningFromDeclarations(h,T),b=T.declarations&&e.firstOrUndefined(T.declarations)||h,G=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(_,T,b.getSourceFile(),b,b,R),Y=G.displayParts,pe=G.symbolKind;return{displayParts:Y,kind:pe}}function O(T,_,h,R){return kn(kn({},ie(T)),R&&Z(T,_,h))}c.toRenameLocation=O;function x(T,_){var h=ie(T);if(T.kind===0)return kn(kn({},h),{isWriteAccess:!1,isDefinition:!1});var R=T.kind,b=T.node;return kn(kn({},h),{isWriteAccess:H(b),isDefinition:w(b,_),isInString:R===2?!0:void 0})}c.toReferenceEntry=x;function ie(T){if(T.kind===0)return{textSpan:T.textSpan,fileName:T.fileName};var _=T.node.getSourceFile(),h=M(T.node,_);return kn({textSpan:h,fileName:_.fileName},m(h,_,T.context))}function Z(T,_,h){if(T.kind!==0&&e.isIdentifier(_)){var R=T.node,b=T.kind,G=R.parent,Y=_.text,pe=e.isShorthandPropertyAssignment(G);if(pe||e.isObjectBindingElementWithoutPropertyName(G)&&G.name===R&&G.dotDotDotToken===void 0){var A={prefixText:Y+": "},_e={suffixText:": "+Y};if(b===3)return A;if(b===4)return _e;if(pe){var Se=G.parent;return e.isObjectLiteralExpression(Se)&&e.isBinaryExpression(Se.parent)&&e.isModuleExportsAccessExpression(Se.parent.left)?A:_e}else return A}else if(e.isImportSpecifier(G)&&!G.propertyName){var ae=e.isExportSpecifier(_.parent)?h.getExportSpecifierLocalTargetSymbol(_.parent):h.getSymbolAtLocation(_);return e.contains(ae.declarations,G)?{prefixText:Y+" as "}:e.emptyOptions}else if(e.isExportSpecifier(G)&&!G.propertyName)return _===T.node||h.getSymbolAtLocation(_)===h.getSymbolAtLocation(T.node)?{prefixText:Y+" as "}:{suffixText:" as "+Y}}return e.emptyOptions}function re(T,_){var h=ie(T);if(T.kind!==0){var R=T.node;return kn(kn({},h),q(R,_))}else return kn(kn({},h),{kind:"",displayParts:[]})}function q(T,_){var h=_.getSymbolAtLocation(e.isDeclaration(T)&&T.name?T.name:T);return h?X(h,_,T):T.kind===204?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:T.kind===225?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(T),displayParts:[]}}function P(T){var _=ie(T);if(T.kind===0)return{fileName:_.fileName,span:{textSpan:_.textSpan,kind:"reference"}};var h=H(T.node),R=kn({textSpan:_.textSpan,kind:h?"writtenReference":"reference",isInString:T.kind===2?!0:void 0},_.contextSpan&&{contextSpan:_.contextSpan});return{fileName:_.fileName,span:R}}c.toHighlightSpan=P;function M(T,_,h){var R=T.getStart(_),b=(h||T).getEnd();return e.isStringLiteralLike(T)&&(e.Debug.assert(h===void 0),R+=1,b-=1),e.createTextSpanFromBounds(R,b)}function Q(T){return T.kind===0?T.textSpan:M(T.node,T.node.getSourceFile())}c.getTextSpanOfEntry=Q;function H(T){var _=e.getDeclarationFromName(T);return!!_&&d(_)||T.kind===88||e.isWriteAccess(T)}function w(T,_){var h;if(!_)return!1;var R=e.getDeclarationFromName(T)||(T.kind===88?T.parent:e.isLiteralComputedPropertyDeclarationName(T)||T.kind===134&&e.isConstructorDeclaration(T.parent)?T.parent.parent:void 0),b=R&&e.isBinaryExpression(R)?R.left:void 0;return!!(R&&((h=_.declarations)===null||h===void 0?void 0:h.some(function(G){return G===R||G===b})))}function d(T){if(T.flags&8388608)return!0;switch(T.kind){case 220:case 202:case 256:case 225:case 88:case 259:case 297:case 274:case 266:case 264:case 269:case 257:case 336:case 343:case 284:case 260:case 263:case 267:case 273:case 163:case 295:case 258:case 162:return!0;case 294:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(T.parent);case 255:case 212:case 170:case 168:case 171:case 172:return!!T.body;case 253:case 166:return!!T.initializer||e.isCatchClause(T.parent);case 167:case 165:case 345:case 338:return!1;default:return e.Debug.failBadSyntaxKind(T)}}var B;(function(T){function _(z,ke,dr,Xe,Qe,Ir,Jr){var Or,Be;if(Ir===void 0&&(Ir={}),Jr===void 0&&(Jr=new e.Set(Xe.map(function(Pn){return Pn.fileName}))),Ir.use===1?ke=e.getAdjustedReferenceLocation(ke):Ir.use===2&&(ke=e.getAdjustedRenameLocation(ke)),e.isSourceFile(ke)){var yr=e.GoToDefinition.getReferenceAtPosition(ke,z,dr);if(!(yr!=null&&yr.file))return;var Rr=dr.getTypeChecker().getMergedSymbol(yr.file.symbol);if(Rr)return A(dr,Rr,!1,Xe,Jr);var zr=dr.getFileIncludeReasons();return zr?[{definition:{type:5,reference:yr.reference,file:ke},references:R(yr.file,zr,dr)||e.emptyArray}]:void 0}if(!Ir.implementations){var ut=Se(ke,Xe,Qe);if(ut)return ut}var mt=dr.getTypeChecker(),Lt=mt.getSymbolAtLocation(e.isConstructorDeclaration(ke)&&ke.parent.name||ke);if(!Lt){if(!Ir.implementations&&e.isStringLiteralLike(ke)){if(e.isModuleSpecifierLike(ke)){var zr=dr.getFileIncludeReasons(),vt=(Be=(Or=ke.getSourceFile().resolvedModules)===null||Or===void 0?void 0:Or.get(ke.text,e.getModeForUsageLocation(ke.getSourceFile(),ke)))===null||Be===void 0?void 0:Be.resolvedFileName,pt=vt?dr.getSourceFile(vt):void 0;if(pt)return[{definition:{type:4,node:ke},references:R(pt,zr,dr)||e.emptyArray}]}return Mn(ke,Xe,mt,Qe)}return}if(Lt.escapedName==="export=")return A(dr,Lt.parent,!1,Xe,Jr);var Nt=G(Lt,dr,Xe,Qe,Ir,Jr);if(Nt&&!(Lt.flags&33554432))return Nt;var Xt=b(ke,Lt,mt),st=Xt&&G(Xt,dr,Xe,Qe,Ir,Jr),$t=ae(Lt,ke,Xe,Jr,mt,Qe,Ir);return Y(dr,Nt,$t,st)}T.getReferencedSymbolsForNode=_;function h(z,ke,dr,Xe){var Qe,Ir;Xe===void 0&&(Xe=new e.Set(dr.map(function(yr){return yr.fileName})));var Jr=(Qe=ke.getSourceFile(z))===null||Qe===void 0?void 0:Qe.symbol;if(Jr)return((Ir=A(ke,Jr,!1,dr,Xe)[0])===null||Ir===void 0?void 0:Ir.references)||e.emptyArray;var Or=ke.getFileIncludeReasons(),Be=ke.getSourceFile(z);return Be&&Or&&R(Be,Or,ke)||e.emptyArray}T.getReferencesForFileName=h;function R(z,ke,dr){for(var Xe,Qe=ke.get(z.path)||e.emptyArray,Ir=0,Jr=Qe;Ir<Jr.length;Ir++){var Or=Jr[Ir];if(e.isReferencedFile(Or)){var Be=dr.getSourceFileByPath(Or.file),yr=e.getReferencedFileLocation(dr.getSourceFileByPath,Or);e.isReferenceFileLocation(yr)&&(Xe=e.append(Xe,{kind:0,fileName:Be.fileName,textSpan:e.createTextSpanFromRange(yr)}))}}return Xe}function b(z,ke,dr){if(z.parent&&e.isNamespaceExportDeclaration(z.parent)){var Xe=dr.getAliasedSymbol(ke),Qe=dr.getMergedSymbol(Xe);if(Xe!==Qe)return Qe}}function G(z,ke,dr,Xe,Qe,Ir){var Jr=z.flags&1536&&z.declarations&&e.find(z.declarations,e.isSourceFile);if(!!Jr){var Or=z.exports.get("export="),Be=A(ke,z,!!Or,dr,Ir);if(!Or||!Ir.has(Jr.fileName))return Be;var yr=ke.getTypeChecker();return z=e.skipAlias(Or,yr),Y(ke,Be,ae(z,void 0,dr,Ir,yr,Xe,Qe))}}function Y(z){for(var ke=[],dr=1;dr<arguments.length;dr++)ke[dr-1]=arguments[dr];for(var Xe,Qe=0,Ir=ke;Qe<Ir.length;Qe++){var Jr=Ir[Qe];if(!(!Jr||!Jr.length)){if(!Xe){Xe=Jr;continue}for(var Or=function(zr){if(!zr.definition||zr.definition.type!==0)return Xe.push(zr),"continue";var ut=zr.definition.symbol,mt=e.findIndex(Xe,function(vt){return!!vt.definition&&vt.definition.type===0&&vt.definition.symbol===ut});if(mt===-1)return Xe.push(zr),"continue";var Lt=Xe[mt];Xe[mt]={definition:Lt.definition,references:Lt.references.concat(zr.references).sort(function(vt,pt){var Nt=pe(z,vt),Xt=pe(z,pt);if(Nt!==Xt)return e.compareValues(Nt,Xt);var st=Q(vt),$t=Q(pt);return st.start!==$t.start?e.compareValues(st.start,$t.start):e.compareValues(st.length,$t.length)})}},Be=0,yr=Jr;Be<yr.length;Be++){var Rr=yr[Be];Or(Rr)}}}return Xe}function pe(z,ke){var dr=ke.kind===0?z.getSourceFile(ke.fileName):ke.node.getSourceFile();return z.getSourceFiles().indexOf(dr)}function A(z,ke,dr,Xe,Qe){e.Debug.assert(!!ke.valueDeclaration);var Ir=e.mapDefined(c.findModuleReferences(z,Xe,ke),function(Lt){if(Lt.kind==="import"){var vt=Lt.literal.parent;if(e.isLiteralTypeNode(vt)){var pt=e.cast(vt.parent,e.isImportTypeNode);if(dr&&!pt.qualifier)return}return p(Lt.literal)}else return{kind:0,fileName:Lt.referencingFile.fileName,textSpan:e.createTextSpanFromRange(Lt.ref)}});if(ke.declarations)for(var Jr=0,Or=ke.declarations;Jr<Or.length;Jr++){var Be=Or[Jr];switch(Be.kind){case 303:break;case 260:Qe.has(Be.getSourceFile().fileName)&&Ir.push(p(Be.name));break;default:e.Debug.assert(!!(ke.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}}var yr=ke.exports.get("export=");if(yr!=null&&yr.declarations)for(var Rr=0,zr=yr.declarations;Rr<zr.length;Rr++){var Be=zr[Rr],ut=Be.getSourceFile();if(Qe.has(ut.fileName)){var mt=e.isBinaryExpression(Be)&&e.isPropertyAccessExpression(Be.left)?Be.left.expression:e.isExportAssignment(Be)?e.Debug.checkDefined(e.findChildOfKind(Be,93,ut)):e.getNameOfDeclaration(Be)||Be;Ir.push(p(mt))}}return Ir.length?[{definition:{type:0,symbol:ke},references:Ir}]:e.emptyArray}function _e(z){return z.kind===144&&e.isTypeOperatorNode(z.parent)&&z.parent.operator===144}function Se(z,ke,dr){if(e.isTypeKeyword(z.kind))return z.kind===114&&e.isVoidExpression(z.parent)||z.kind===144&&!_e(z)?void 0:Er(ke,z.kind,dr,z.kind===144?_e:void 0);if(e.isStaticModifier(z)&&e.isClassStaticBlockDeclaration(z.parent))return[{definition:{type:2,node:z},references:[p(z)]}];if(e.isJumpStatementTarget(z)){var Xe=e.getTargetLabel(z.parent,z.text);return Xe&&Ve(Xe.parent,Xe)}else if(e.isLabelOfLabeledStatement(z))return Ve(z.parent,z);if(e.isThis(z))return vn(z,ke,dr);if(z.kind===106)return kt(z)}function ae(z,ke,dr,Xe,Qe,Ir,Jr){var Or=ke&&ne(z,ke,Qe,!De(Jr))||z,Be=ke?rr(ke,Or):7,yr=[],Rr=new Te(dr,Xe,ke?be(ke):0,Qe,Ir,Be,Jr,yr),zr=!De(Jr)||!Or.declarations?void 0:e.find(Or.declarations,e.isExportSpecifier);if(zr)i(zr.name,Or,zr,Rr.createSearch(ke,z,void 0),Rr,!0,!0);else if(ke&&ke.kind===88&&Or.escapedName==="default"&&Or.parent)we(ke,Or,Rr),Me(ke,Or,{exportingModuleSymbol:Or.parent,exportKind:1},Rr);else{var ut=Rr.createSearch(ke,Or,void 0,{allSearchSymbols:ke?qn(Or,ke,Qe,Jr.use===2,!!Jr.providePrefixAndSuffixTextForRename,!!Jr.implementations):[Or]});D(Or,Rr,ut)}return yr}function D(z,ke,dr){var Xe=Re(z);if(Xe)ur(Xe,Xe.getSourceFile(),dr,ke,!(e.isSourceFile(Xe)&&!e.contains(ke.sourceFiles,Xe)));else for(var Qe=0,Ir=ke.sourceFiles;Qe<Ir.length;Qe++){var Jr=Ir[Qe];ke.cancellationToken.throwIfCancellationRequested(),se(Jr,dr,ke)}}function be(z){switch(z.kind){case 170:case 134:return 1;case 79:if(e.isClassLike(z.parent))return e.Debug.assert(z.parent.name===z),2;default:return 0}}function ne(z,ke,dr,Xe){var Qe=ke.parent;return e.isExportSpecifier(Qe)&&Xe?Mr(ke,z,Qe,dr):e.firstDefined(z.declarations,function(Ir){if(!Ir.parent){if(z.flags&33554432)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(ke.kind),": ").concat(e.Debug.formatSymbol(z)))}return e.isTypeLiteralNode(Ir.parent)&&e.isUnionTypeNode(Ir.parent.parent)?dr.getPropertyOfType(dr.getTypeFromTypeNode(Ir.parent.parent),z.name):void 0})}var J;(function(z){z[z.None=0]="None",z[z.Constructor=1]="Constructor",z[z.Class=2]="Class"})(J||(J={}));function le(z){if(!!(z.flags&33555968)){var ke=z.declarations&&e.find(z.declarations,function(dr){return!e.isSourceFile(dr)&&!e.isModuleDeclaration(dr)});return ke&&ke.symbol}}var Te=function(){function z(ke,dr,Xe,Qe,Ir,Jr,Or,Be){this.sourceFiles=ke,this.sourceFilesSet=dr,this.specialSearchKind=Xe,this.checker=Qe,this.cancellationToken=Ir,this.searchMeaning=Jr,this.options=Or,this.result=Be,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return z.prototype.includesSourceFile=function(ke){return this.sourceFilesSet.has(ke.fileName)},z.prototype.getImportSearches=function(ke,dr){return this.importTracker||(this.importTracker=c.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(ke,dr,this.options.use===2)},z.prototype.createSearch=function(ke,dr,Xe,Qe){Qe===void 0&&(Qe={});var Ir=Qe.text,Jr=Ir===void 0?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(dr)||le(dr)||dr)):Ir,Or=Qe.allSearchSymbols,Be=Or===void 0?[dr]:Or,yr=e.escapeLeadingUnderscores(Jr),Rr=this.options.implementations&&ke?$e(ke,dr,this.checker):void 0;return{symbol:dr,comingFrom:Xe,text:Jr,escapedText:yr,parents:Rr,allSearchSymbols:Be,includes:function(zr){return e.contains(Be,zr)}}},z.prototype.referenceAdder=function(ke){var dr=e.getSymbolId(ke),Xe=this.symbolIdToReferences[dr];return Xe||(Xe=this.symbolIdToReferences[dr]=[],this.result.push({definition:{type:0,symbol:ke},references:Xe})),function(Qe,Ir){return Xe.push(p(Qe,Ir))}},z.prototype.addStringOrCommentReference=function(ke,dr){this.result.push({definition:void 0,references:[{kind:0,fileName:ke,textSpan:dr}]})},z.prototype.markSearchedSymbols=function(ke,dr){for(var Xe=e.getNodeId(ke),Qe=this.sourceFileToSeenSymbols[Xe]||(this.sourceFileToSeenSymbols[Xe]=new e.Set),Ir=!1,Jr=0,Or=dr;Jr<Or.length;Jr++){var Be=Or[Jr];Ir=e.tryAddToSet(Qe,e.getSymbolId(Be))||Ir}return Ir},z}();function Me(z,ke,dr,Xe){var Qe=Xe.getImportSearches(ke,dr),Ir=Qe.importSearches,Jr=Qe.singleReferences,Or=Qe.indirectUsers;if(Jr.length)for(var Be=Xe.referenceAdder(ke),yr=0,Rr=Jr;yr<Rr.length;yr++){var zr=Rr[yr];Ae(zr,Xe)&&Be(zr)}for(var ut=0,mt=Ir;ut<mt.length;ut++){var Lt=mt[ut],vt=Lt[0],pt=Lt[1];Nr(vt.getSourceFile(),Xe.createSearch(vt,pt,1),Xe)}if(Or.length){var Nt=void 0;switch(dr.exportKind){case 0:Nt=Xe.createSearch(z,ke,1);break;case 1:Nt=Xe.options.use===2?void 0:Xe.createSearch(z,ke,1,{text:"default"});break;case 2:break}if(Nt)for(var Xt=0,st=Or;Xt<st.length;Xt++){var $t=st[Xt];se($t,Nt,Xe)}}}function Ke(z,ke,dr,Xe,Qe,Ir,Jr,Or){for(var Be=c.createImportTracker(z,new e.Set(z.map(function(ia){return ia.fileName})),ke,dr),yr=Be(Xe,{exportKind:Jr?1:0,exportingModuleSymbol:Qe},!1),Rr=yr.importSearches,zr=yr.indirectUsers,ut=0,mt=Rr;ut<mt.length;ut++){var Lt=mt[ut][0];Or(Lt)}for(var vt=0,pt=zr;vt<pt.length;vt++)for(var Nt=pt[vt],Xt=0,st=Ne(Nt,Jr?"default":Ir);Xt<st.length;Xt++){var $t=st[Xt],Pn=ke.getSymbolAtLocation($t),Ea=e.some(Pn==null?void 0:Pn.declarations,function(ia){return!!e.tryCast(ia,e.isExportAssignment)});e.isIdentifier($t)&&!e.isImportOrExportSpecifier($t.parent)&&(Pn===Xe||Ea)&&Or($t)}}T.eachExportReference=Ke;function Ae(z,ke){return xr(z,ke)?ke.options.use!==2?!0:e.isIdentifier(z)?!(e.isImportOrExportSpecifier(z.parent)&&z.escapedText==="default"):!1:!1}function Ge(z,ke){if(!!z.declarations)for(var dr=0,Xe=z.declarations;dr<Xe.length;dr++){var Qe=Xe[dr],Ir=Qe.getSourceFile();Nr(Ir,ke.createSearch(Qe,z,0),ke,ke.includesSourceFile(Ir))}}function se(z,ke,dr){e.getNameTable(z).get(ke.escapedText)!==void 0&&Nr(z,ke,dr)}function xe(z,ke){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(z.parent.parent)?ke.getPropertySymbolOfDestructuringAssignment(z):void 0}function Re(z){var ke=z.declarations,dr=z.flags,Xe=z.parent,Qe=z.valueDeclaration;if(Qe&&(Qe.kind===212||Qe.kind===225))return Qe;if(!!ke){if(dr&8196){var Ir=e.find(ke,function(mt){return e.hasEffectiveModifier(mt,8)||e.isPrivateIdentifierClassElementDeclaration(mt)});return Ir?e.getAncestor(Ir,256):void 0}if(!ke.some(e.isObjectBindingElementWithoutPropertyName)){var Jr=Xe&&!(z.flags&262144);if(!(Jr&&!(e.isExternalModuleSymbol(Xe)&&!Xe.globalExports))){for(var Or,Be=0,yr=ke;Be<yr.length;Be++){var Rr=yr[Be],zr=e.getContainerNode(Rr);if(Or&&Or!==zr||!zr||zr.kind===303&&!e.isExternalOrCommonJsModule(zr))return;if(Or=zr,e.isFunctionExpression(Or))for(var ut=void 0;ut=e.getNextJSDocCommentLocation(Or);)Or=ut}return Jr?Or.getSourceFile():Or}}}}function ce(z,ke,dr,Xe){return Xe===void 0&&(Xe=dr),Ue(z,ke,dr,function(){return!0},Xe)||!1}T.isSymbolReferencedInFile=ce;function Ue(z,ke,dr,Xe,Qe){Qe===void 0&&(Qe=dr);var Ir=e.isParameterPropertyDeclaration(z.parent,z.parent.parent)?e.first(ke.getSymbolsOfParameterPropertyDeclaration(z.parent,z.text)):ke.getSymbolAtLocation(z);if(!!Ir)for(var Jr=0,Or=Ne(dr,Ir.name,Qe);Jr<Or.length;Jr++){var Be=Or[Jr];if(!(!e.isIdentifier(Be)||Be===z||Be.escapedText!==z.escapedText)){var yr=ke.getSymbolAtLocation(Be);if(yr===Ir||ke.getShorthandAssignmentValueSymbol(Be.parent)===Ir||e.isExportSpecifier(Be.parent)&&Mr(Be,yr,Be.parent,ke)===Ir){var Rr=Xe(Be);if(Rr)return Rr}}}}T.eachSymbolReferenceInFile=Ue;function We(z,ke,dr,Xe){if(!z.name||!e.isIdentifier(z.name))return!1;for(var Qe=e.Debug.checkDefined(dr.getSymbolAtLocation(z.name)),Ir=0,Jr=ke;Ir<Jr.length;Ir++)for(var Or=Jr[Ir],Be=0,yr=Ne(Or,Qe.name);Be<yr.length;Be++){var Rr=yr[Be];if(!(!e.isIdentifier(Rr)||Rr===z.name||Rr.escapedText!==z.name.escapedText)){var zr=e.climbPastPropertyAccess(Rr),ut=e.isCallExpression(zr.parent)&&zr.parent.expression===zr?zr.parent:void 0,mt=dr.getSymbolAtLocation(Rr);if(mt&&dr.getRootSymbols(mt).some(function(Lt){return Lt===Qe})&&Xe(Rr,ut))return!0}}return!1}T.someSignatureUsage=We;function Ne(z,ke,dr){return dr===void 0&&(dr=z),ve(z,ke,dr).map(function(Xe){return e.getTouchingPropertyName(z,Xe)})}function ve(z,ke,dr){dr===void 0&&(dr=z);var Xe=[];if(!ke||!ke.length)return Xe;for(var Qe=z.text,Ir=Qe.length,Jr=ke.length,Or=Qe.indexOf(ke,dr.pos);Or>=0&&!(Or>dr.end);){var Be=Or+Jr;(Or===0||!e.isIdentifierPart(Qe.charCodeAt(Or-1),99))&&(Be===Ir||!e.isIdentifierPart(Qe.charCodeAt(Be),99))&&Xe.push(Or),Or=Qe.indexOf(ke,Or+Jr+1)}return Xe}function Ve(z,ke){var dr=z.getSourceFile(),Xe=ke.text,Qe=e.mapDefined(Ne(dr,Xe,z),function(Ir){return Ir===ke||e.isJumpStatementTarget(Ir)&&e.getTargetLabel(Ir,Xe)===ke?p(Ir):void 0});return[{definition:{type:1,node:ke},references:Qe}]}function gr(z,ke){switch(z.kind){case 80:if(e.isJSDocMemberName(z.parent))return!0;case 79:return z.text.length===ke.length;case 14:case 10:{var dr=z;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(dr)||e.isNameOfModuleDeclaration(z)||e.isExpressionOfExternalModuleImportEqualsDeclaration(z)||e.isCallExpression(z.parent)&&e.isBindableObjectDefinePropertyCall(z.parent)&&z.parent.arguments[1]===z)&&dr.text.length===ke.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(z)&&z.text.length===ke.length;case 88:return ke.length===7;default:return!1}}function Er(z,ke,dr,Xe){var Qe=e.flatMap(z,function(Ir){return dr.throwIfCancellationRequested(),e.mapDefined(Ne(Ir,e.tokenToString(ke),Ir),function(Jr){if(Jr.kind===ke&&(!Xe||Xe(Jr)))return p(Jr)})});return Qe.length?[{definition:{type:2,node:Qe[0].node},references:Qe}]:void 0}function Nr(z,ke,dr,Xe){return Xe===void 0&&(Xe=!0),dr.cancellationToken.throwIfCancellationRequested(),ur(z,z,ke,dr,Xe)}function ur(z,ke,dr,Xe,Qe){if(!!Xe.markSearchedSymbols(ke,dr.allSearchSymbols))for(var Ir=0,Jr=ve(ke,dr.text,z);Ir<Jr.length;Ir++){var Or=Jr[Ir];sr(ke,Or,dr,Xe,Qe)}}function xr(z,ke){return!!(e.getMeaningFromLocation(z)&ke.searchMeaning)}function sr(z,ke,dr,Xe,Qe){var Ir=e.getTouchingPropertyName(z,ke);if(!gr(Ir,dr.text)){!Xe.options.implementations&&(Xe.options.findInStrings&&e.isInString(z,ke)||Xe.options.findInComments&&e.isInNonReferenceComment(z,ke))&&Xe.addStringOrCommentReference(z.fileName,e.createTextSpan(ke,dr.text.length));return}if(!!xr(Ir,Xe)){var Jr=Xe.checker.getSymbolAtLocation(Ir);if(!!Jr){var Or=Ir.parent;if(!(e.isImportSpecifier(Or)&&Or.propertyName===Ir)){if(e.isExportSpecifier(Or)){e.Debug.assert(Ir.kind===79),i(Ir,Jr,Or,dr,Xe,Qe);return}var Be=ge(dr,Jr,Ir,Xe);if(!Be){de(Jr,dr,Xe);return}switch(Xe.specialSearchKind){case 0:Qe&&we(Ir,Be,Xe);break;case 1:qe(Ir,z,dr,Xe);break;case 2:Cr(Ir,dr,Xe);break;default:e.Debug.assertNever(Xe.specialSearchKind)}e.isInJSFile(Ir)&&Ir.parent.kind===202&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(Ir.parent)&&(Jr=Ir.parent.symbol,!Jr)||Ar(Ir,Jr,dr,Xe)}}}}function i(z,ke,dr,Xe,Qe,Ir,Jr){e.Debug.assert(!Jr||!!Qe.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var Or=dr.parent,Be=dr.propertyName,yr=dr.name,Rr=Or.parent,zr=Mr(z,ke,dr,Qe.checker);if(!Jr&&!Xe.includes(zr))return;if(Be?z===Be?(Rr.moduleSpecifier||Nt(),Ir&&Qe.options.use!==2&&Qe.markSeenReExportRHS(yr)&&we(yr,e.Debug.checkDefined(dr.symbol),Qe)):Qe.markSeenReExportRHS(z)&&Nt():Qe.options.use===2&&yr.escapedText==="default"||Nt(),!De(Qe.options)||Jr){var ut=z.originalKeywordKind===88||dr.name.originalKeywordKind===88,mt=ut?1:0,Lt=e.Debug.checkDefined(dr.symbol),vt=c.getExportInfo(Lt,mt,Qe.checker);vt&&Me(z,Lt,vt,Qe)}if(Xe.comingFrom!==1&&Rr.moduleSpecifier&&!Be&&!De(Qe.options)){var pt=Qe.checker.getExportSpecifierLocalTargetSymbol(dr);pt&&Ge(pt,Qe)}function Nt(){Ir&&we(z,zr,Qe)}}function Mr(z,ke,dr,Xe){return fr(z,dr)&&Xe.getExportSpecifierLocalTargetSymbol(dr)||ke}function fr(z,ke){var dr=ke.parent,Xe=ke.propertyName,Qe=ke.name;return e.Debug.assert(Xe===z||Qe===z),Xe?Xe===z:!dr.parent.moduleSpecifier}function Ar(z,ke,dr,Xe){var Qe=c.getImportOrExportSymbol(z,ke,Xe.checker,dr.comingFrom===1);if(!!Qe){var Ir=Qe.symbol;Qe.kind===0?De(Xe.options)||Ge(Ir,Xe):Me(z,Ir,Qe.exportInfo,Xe)}}function de(z,ke,dr){var Xe=z.flags,Qe=z.valueDeclaration,Ir=dr.checker.getShorthandAssignmentValueSymbol(Qe),Jr=Qe&&e.getNameOfDeclaration(Qe);!(Xe&33554432)&&Jr&&ke.includes(Ir)&&we(Jr,Ir,dr)}function we(z,ke,dr){var Xe="kind"in ke?ke:{kind:void 0,symbol:ke},Qe=Xe.kind,Ir=Xe.symbol,Jr=dr.referenceAdder(Ir);dr.options.implementations?Sr(z,Jr,dr):Jr(z,Qe)}function qe(z,ke,dr,Xe){e.isNewExpressionTarget(z)&&we(z,dr.symbol,Xe);var Qe=function(){return Xe.referenceAdder(dr.symbol)};if(e.isClassLike(z.parent))e.Debug.assert(z.kind===88||z.parent.name===z),kr(dr.symbol,ke,Qe());else{var Ir=cr(z);Ir&&(lr(Ir,Qe()),Je(Ir,Xe))}}function Cr(z,ke,dr){we(z,ke.symbol,dr);var Xe=z.parent;if(!(dr.options.use===2||!e.isClassLike(Xe))){e.Debug.assert(Xe.name===z);for(var Qe=dr.referenceAdder(ke.symbol),Ir=0,Jr=Xe.members;Ir<Jr.length;Ir++){var Or=Jr[Ir];!(e.isMethodOrAccessor(Or)&&e.isStatic(Or))||Or.body&&Or.body.forEachChild(function Be(yr){yr.kind===108?Qe(yr):!e.isFunctionLike(yr)&&!e.isClassLike(yr)&&yr.forEachChild(Be)})}}}function kr(z,ke,dr){var Xe=He(z);if(Xe&&Xe.declarations)for(var Qe=0,Ir=Xe.declarations;Qe<Ir.length;Qe++){var Jr=Ir[Qe],Or=e.findChildOfKind(Jr,134,ke);e.Debug.assert(Jr.kind===170&&!!Or),dr(Or)}z.exports&&z.exports.forEach(function(Be){var yr=Be.valueDeclaration;if(yr&&yr.kind===168){var Rr=yr.body;Rr&&Ce(Rr,108,function(zr){e.isNewExpressionTarget(zr)&&dr(zr)})}})}function He(z){return z.members&&z.members.get("__constructor")}function lr(z,ke){var dr=He(z.symbol);if(!!(dr&&dr.declarations))for(var Xe=0,Qe=dr.declarations;Xe<Qe.length;Xe++){var Ir=Qe[Xe];e.Debug.assert(Ir.kind===170);var Jr=Ir.body;Jr&&Ce(Jr,106,function(Or){e.isCallExpressionTarget(Or)&&ke(Or)})}}function Hr(z){return!!He(z.symbol)}function Je(z,ke){if(!Hr(z)){var dr=z.symbol,Xe=ke.createSearch(void 0,dr,void 0);D(dr,ke,Xe)}}function Sr(z,ke,dr){if(e.isDeclarationName(z)&&pr(z.parent)){ke(z);return}if(z.kind!==79)return;z.parent.kind===295&&Lr(z,dr.checker,ke);var Xe=Yr(z);if(Xe){ke(Xe);return}var Qe=e.findAncestor(z,function(Be){return!e.isQualifiedName(Be.parent)&&!e.isTypeNode(Be.parent)&&!e.isTypeElement(Be.parent)}),Ir=Qe.parent;if(e.hasType(Ir)&&Ir.type===Qe&&dr.markSeenContainingTypeReference(Ir))if(e.hasInitializer(Ir))Or(Ir.initializer);else if(e.isFunctionLike(Ir)&&Ir.body){var Jr=Ir.body;Jr.kind===234?e.forEachReturnStatement(Jr,function(Be){Be.expression&&Or(Be.expression)}):Or(Jr)}else e.isAssertionExpression(Ir)&&Or(Ir.expression);function Or(Be){ot(Be)&&ke(Be)}}function Yr(z){return e.isIdentifier(z)||e.isPropertyAccessExpression(z)?Yr(z.parent):e.isExpressionWithTypeArguments(z)?e.tryCast(z.parent.parent,e.isClassLike):void 0}function ot(z){switch(z.kind){case 211:return ot(z.expression);case 213:case 212:case 204:case 225:case 203:return!0;default:return!1}}function _t(z,ke,dr,Xe){if(z===ke)return!0;var Qe=e.getSymbolId(z)+","+e.getSymbolId(ke),Ir=dr.get(Qe);if(Ir!==void 0)return Ir;dr.set(Qe,!1);var Jr=!!z.declarations&&z.declarations.some(function(Or){return e.getAllSuperTypeNodes(Or).some(function(Be){var yr=Xe.getTypeAtLocation(Be);return!!yr&&!!yr.symbol&&_t(yr.symbol,ke,dr,Xe)})});return dr.set(Qe,Jr),Jr}function kt(z){var ke=e.getSuperContainer(z,!1);if(!!ke){var dr=32;switch(ke.kind){case 166:case 165:case 168:case 167:case 170:case 171:case 172:dr&=e.getSyntacticModifierFlags(ke),ke=ke.parent;break;default:return}var Xe=ke.getSourceFile(),Qe=e.mapDefined(Ne(Xe,"super",ke),function(Ir){if(Ir.kind===106){var Jr=e.getSuperContainer(Ir,!1);return Jr&&e.isStatic(Jr)===!!dr&&Jr.parent.symbol===ke.symbol?p(Ir):void 0}});return[{definition:{type:0,symbol:ke.symbol},references:Qe}]}}function Yt(z){return z.kind===79&&z.parent.kind===163&&z.parent.name===z}function vn(z,ke,dr){var Xe=e.getThisContainer(z,!1),Qe=32;switch(Xe.kind){case 168:case 167:if(e.isObjectLiteralMethod(Xe)){Qe&=e.getSyntacticModifierFlags(Xe),Xe=Xe.parent;break}case 166:case 165:case 170:case 171:case 172:Qe&=e.getSyntacticModifierFlags(Xe),Xe=Xe.parent;break;case 303:if(e.isExternalModule(Xe)||Yt(z))return;case 255:case 212:break;default:return}var Ir=e.flatMap(Xe.kind===303?ke:[Xe.getSourceFile()],function(Or){return dr.throwIfCancellationRequested(),Ne(Or,"this",e.isSourceFile(Xe)?Or:Xe).filter(function(Be){if(!e.isThis(Be))return!1;var yr=e.getThisContainer(Be,!1);switch(Xe.kind){case 212:case 255:return Xe.symbol===yr.symbol;case 168:case 167:return e.isObjectLiteralMethod(Xe)&&Xe.symbol===yr.symbol;case 225:case 256:case 204:return yr.parent&&Xe.symbol===yr.parent.symbol&&e.isStatic(yr)===!!Qe;case 303:return yr.kind===303&&!e.isExternalModule(yr)&&!Yt(Be)}})}).map(function(Or){return p(Or)}),Jr=e.firstDefined(Ir,function(Or){return e.isParameter(Or.node.parent)?Or.node:void 0});return[{definition:{type:3,node:Jr||z},references:Ir}]}function Mn(z,ke,dr,Xe){var Qe=e.getContextualTypeFromParentOrAncestorTypeNode(z,dr),Ir=e.flatMap(ke,function(Jr){return Xe.throwIfCancellationRequested(),e.mapDefined(Ne(Jr,z.text),function(Or){if(e.isStringLiteralLike(Or)&&Or.text===z.text)if(Qe){var Be=e.getContextualTypeFromParentOrAncestorTypeNode(Or,dr);if(Qe!==dr.getStringType()&&Qe===Be)return p(Or,2)}else return p(Or,2)})});return[{definition:{type:4,node:z},references:Ir}]}function qn(z,ke,dr,Xe,Qe,Ir){var Jr=[];return nr(z,ke,dr,Xe,!(Xe&&Qe),function(Or,Be,yr){yr&&ir(z)!==ir(yr)&&(yr=void 0),Jr.push(yr||Be||Or)},function(){return!Ir}),Jr}function nr(z,ke,dr,Xe,Qe,Ir,Jr){var Or=e.getContainingObjectLiteralElement(ke);if(Or){var Be=dr.getShorthandAssignmentValueSymbol(ke.parent);if(Be&&Xe)return Ir(Be,void 0,void 0,3);var yr=dr.getContextualType(Or.parent),Rr=yr&&e.firstDefined(e.getPropertySymbolsFromContextualType(Or,dr,yr,!0),function(Gn){return ia(Gn,4)});if(Rr)return Rr;var zr=xe(ke,dr),ut=zr&&Ir(zr,void 0,void 0,4);if(ut)return ut;var mt=Be&&Ir(Be,void 0,void 0,3);if(mt)return mt}var Lt=b(ke,z,dr);if(Lt){var vt=Ir(Lt,void 0,void 0,1);if(vt)return vt}var pt=ia(z);if(pt)return pt;if(z.valueDeclaration&&e.isParameterPropertyDeclaration(z.valueDeclaration,z.valueDeclaration.parent)){var Nt=dr.getSymbolsOfParameterPropertyDeclaration(e.cast(z.valueDeclaration,e.isParameter),z.name);return e.Debug.assert(Nt.length===2&&!!(Nt[0].flags&1)&&!!(Nt[1].flags&4)),ia(z.flags&1?Nt[1]:Nt[0])}var Xt=e.getDeclarationOfKind(z,274);if(!Xe||Xt&&!Xt.propertyName){var st=Xt&&dr.getExportSpecifierLocalTargetSymbol(Xt);if(st){var $t=Ir(st,void 0,void 0,1);if($t)return $t}}if(!Xe){var Pn=void 0;return Qe?Pn=e.isObjectBindingElementWithoutPropertyName(ke.parent)?e.getPropertySymbolFromBindingElement(dr,ke.parent):void 0:Pn=pa(z,dr),Pn&&ia(Pn,4)}e.Debug.assert(Xe);var Ea=Qe;if(Ea){var Pn=pa(z,dr);return Pn&&ia(Pn,4)}function ia(Gn,nn){return e.firstDefined(dr.getRootSymbols(Gn),function(bt){return Ir(Gn,bt,void 0,nn)||(bt.parent&&bt.parent.flags&96&&Jr(bt)?Zr(bt.parent,bt.name,dr,function(Ut){return Ir(Gn,bt,Ut,nn)}):void 0)})}function pa(Gn,nn){var bt=e.getDeclarationOfKind(Gn,202);if(bt&&e.isObjectBindingElementWithoutPropertyName(bt))return e.getPropertySymbolFromBindingElement(nn,bt)}}function Zr(z,ke,dr,Xe){var Qe=new e.Map;return Ir(z);function Ir(Jr){if(!(!(Jr.flags&96)||!e.addToSeen(Qe,e.getSymbolId(Jr))))return e.firstDefined(Jr.declarations,function(Or){return e.firstDefined(e.getAllSuperTypeNodes(Or),function(Be){var yr=dr.getTypeAtLocation(Be),Rr=yr&&yr.symbol&&dr.getPropertyOfType(yr,ke);return yr&&Rr&&(e.firstDefined(dr.getRootSymbols(Rr),Xe)||Ir(yr.symbol))})})}}function ir(z){if(!z.valueDeclaration)return!1;var ke=e.getEffectiveModifierFlags(z.valueDeclaration);return!!(ke&32)}function ge(z,ke,dr,Xe){var Qe=Xe.checker;return nr(ke,dr,Qe,!1,Xe.options.use!==2||!!Xe.options.providePrefixAndSuffixTextForRename,function(Ir,Jr,Or,Be){return Or&&ir(ke)!==ir(Or)&&(Or=void 0),z.includes(Or||Jr||Ir)?{symbol:Jr&&!(e.getCheckFlags(Ir)&6)?Jr:Ir,kind:Be}:void 0},function(Ir){return!(z.parents&&!z.parents.some(function(Jr){return _t(Ir.parent,Jr,Xe.inheritsFromCache,Qe)}))})}function rr(z,ke){var dr=e.getMeaningFromLocation(z),Xe=ke.declarations;if(Xe){var Qe=void 0;do{Qe=dr;for(var Ir=0,Jr=Xe;Ir<Jr.length;Ir++){var Or=Jr[Ir],Be=e.getMeaningFromDeclaration(Or);Be&dr&&(dr|=Be)}}while(dr!==Qe)}return dr}T.getIntersectingMeaningFromDeclarations=rr;function pr(z){return z.flags&8388608?!(e.isInterfaceDeclaration(z)||e.isTypeAliasDeclaration(z)):e.isVariableLike(z)?e.hasInitializer(z):e.isFunctionLikeDeclaration(z)?!!z.body:e.isClassLike(z)||e.isModuleOrEnumDeclaration(z)}function Lr(z,ke,dr){var Xe=ke.getSymbolAtLocation(z),Qe=ke.getShorthandAssignmentValueSymbol(Xe.valueDeclaration);if(Qe)for(var Ir=0,Jr=Qe.getDeclarations();Ir<Jr.length;Ir++){var Or=Jr[Ir];e.getMeaningFromDeclaration(Or)&1&&dr(Or)}}T.getReferenceEntriesForShorthandPropertyAssignment=Lr;function Ce(z,ke,dr){e.forEachChild(z,function(Xe){Xe.kind===ke&&dr(Xe),Ce(Xe,ke,dr)})}function cr(z){return e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(z).parent)}function $e(z,ke,dr){var Xe=e.isRightSideOfPropertyAccess(z)?z.parent:void 0,Qe=Xe&&dr.getTypeAtLocation(Xe.expression),Ir=e.mapDefined(Qe&&(Qe.isUnionOrIntersection()?Qe.types:Qe.symbol===ke.parent?void 0:[Qe]),function(Jr){return Jr.symbol&&Jr.symbol.flags&96?Jr.symbol:void 0});return Ir.length===0?void 0:Ir}function De(z){return z.use===2&&z.providePrefixAndSuffixTextForRename}})(B=c.Core||(c.Core={}))})(n=e.FindAllReferences||(e.FindAllReferences={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(T){return(e.isFunctionExpression(T)||e.isClassExpression(T))&&e.isNamedDeclaration(T)}function g(T){return(e.isFunctionExpression(T)||e.isArrowFunction(T)||e.isClassExpression(T))&&e.isVariableDeclaration(T.parent)&&T===T.parent.initializer&&e.isIdentifier(T.parent.name)&&!!(e.getCombinedNodeFlags(T.parent)&2)}function p(T){return e.isSourceFile(T)||e.isModuleDeclaration(T)||e.isFunctionDeclaration(T)||e.isFunctionExpression(T)||e.isClassDeclaration(T)||e.isClassExpression(T)||e.isClassStaticBlockDeclaration(T)||e.isMethodDeclaration(T)||e.isMethodSignature(T)||e.isGetAccessorDeclaration(T)||e.isSetAccessorDeclaration(T)}function I(T){return e.isSourceFile(T)||e.isModuleDeclaration(T)&&e.isIdentifier(T.name)||e.isFunctionDeclaration(T)||e.isClassDeclaration(T)||e.isClassStaticBlockDeclaration(T)||e.isMethodDeclaration(T)||e.isMethodSignature(T)||e.isGetAccessorDeclaration(T)||e.isSetAccessorDeclaration(T)||u(T)||g(T)}function V(T){return e.isSourceFile(T)?T:e.isNamedDeclaration(T)?T.name:g(T)?T.parent.name:e.Debug.checkDefined(T.modifiers&&e.find(T.modifiers,L))}function L(T){return T.kind===88}function m(T,_){var h=V(_);return h&&T.getSymbolAtLocation(h)}function y(T,_){if(e.isSourceFile(_))return{text:_.fileName,pos:0,end:0};if((e.isFunctionDeclaration(_)||e.isClassDeclaration(_))&&!e.isNamedDeclaration(_)){var h=_.modifiers&&e.find(_.modifiers,L);if(h)return{text:"default",pos:h.getStart(),end:h.getEnd()}}if(e.isClassStaticBlockDeclaration(_)){var R=_.getSourceFile(),b=e.skipTrivia(R.text,e.moveRangePastModifiers(_).pos),G=b+6,Y=T.getTypeChecker(),pe=Y.getSymbolAtLocation(_.parent),A=pe?"".concat(Y.symbolToString(pe,_.parent)," "):"";return{text:"".concat(A,"static {}"),pos:b,end:G}}var _e=g(_)?_.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(_),"Expected call hierarchy item to have a name"),Se=e.isIdentifier(_e)?e.idText(_e):e.isStringOrNumericLiteralLike(_e)?_e.text:e.isComputedPropertyName(_e)&&e.isStringOrNumericLiteralLike(_e.expression)?_e.expression.text:void 0;if(Se===void 0){var Y=T.getTypeChecker(),pe=Y.getSymbolAtLocation(_e);pe&&(Se=Y.symbolToString(pe,_))}if(Se===void 0){var ae=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});Se=e.usingSingleLineStringWriter(function(D){return ae.writeNode(4,_,_.getSourceFile(),D)})}return{text:Se,pos:_e.getStart(),end:_e.getEnd()}}function j(T){var _,h;if(g(T))return e.isModuleBlock(T.parent.parent.parent.parent)&&e.isIdentifier(T.parent.parent.parent.parent.parent.name)?T.parent.parent.parent.parent.parent.name.getText():void 0;switch(T.kind){case 171:case 172:case 168:return T.parent.kind===204?(_=e.getAssignedName(T.parent))===null||_===void 0?void 0:_.getText():(h=e.getNameOfDeclaration(T.parent))===null||h===void 0?void 0:h.getText();case 255:case 256:case 260:if(e.isModuleBlock(T.parent)&&e.isIdentifier(T.parent.parent.name))return T.parent.parent.name.getText()}}function te(T,_){if(_.body)return _;if(e.isConstructorDeclaration(_))return e.getFirstConstructorWithBody(_.parent);if(e.isFunctionDeclaration(_)||e.isMethodDeclaration(_)){var h=m(T,_);return h&&h.valueDeclaration&&e.isFunctionLikeDeclaration(h.valueDeclaration)&&h.valueDeclaration.body?h.valueDeclaration:void 0}return _}function E(T,_){var h=m(T,_),R;if(h&&h.declarations){var b=e.indicesOf(h.declarations),G=e.map(h.declarations,function(ae){return{file:ae.getSourceFile().fileName,pos:ae.pos}});b.sort(function(ae,D){return e.compareStringsCaseSensitive(G[ae].file,G[D].file)||G[ae].pos-G[D].pos});for(var Y=e.map(b,function(ae){return h.declarations[ae]}),pe=void 0,A=0,_e=Y;A<_e.length;A++){var Se=_e[A];I(Se)&&((!pe||pe.parent!==Se.parent||pe.end!==Se.pos)&&(R=e.append(R,Se)),pe=Se)}}return R}function F(T,_){var h,R,b;return e.isClassStaticBlockDeclaration(_)?_:e.isFunctionLikeDeclaration(_)?(R=(h=te(T,_))!==null&&h!==void 0?h:E(T,_))!==null&&R!==void 0?R:_:(b=E(T,_))!==null&&b!==void 0?b:_}function $(T,_){for(var h=T.getTypeChecker(),R=!1;;){if(I(_))return F(h,_);if(p(_)){var b=e.findAncestor(_,I);return b&&F(h,b)}if(e.isDeclarationName(_)){if(I(_.parent))return F(h,_.parent);if(p(_.parent)){var b=e.findAncestor(_.parent,I);return b&&F(h,b)}return e.isVariableDeclaration(_.parent)&&_.parent.initializer&&g(_.parent.initializer)?_.parent.initializer:void 0}if(e.isConstructorDeclaration(_))return I(_.parent)?_.parent:void 0;if(_.kind===124&&e.isClassStaticBlockDeclaration(_.parent)){_=_.parent;continue}if(e.isVariableDeclaration(_)&&_.initializer&&g(_.initializer))return _.initializer;if(!R){var G=h.getSymbolAtLocation(_);if(G&&(G.flags&2097152&&(G=h.getAliasedSymbol(G)),G.valueDeclaration)){R=!0,_=G.valueDeclaration;continue}}return}}c.resolveCallHierarchyDeclaration=$;function C(T,_){var h=_.getSourceFile(),R=y(T,_),b=j(_),G=e.getNodeKind(_),Y=e.getNodeModifiers(_),pe=e.createTextSpanFromBounds(e.skipTrivia(h.text,_.getFullStart(),!1,!0),_.getEnd()),A=e.createTextSpanFromBounds(R.pos,R.end);return{file:h.fileName,kind:G,kindModifiers:Y,name:R.text,containerName:b,span:pe,selectionSpan:A}}c.createCallHierarchyItem=C;function K(T){return T!==void 0}function k(T){if(T.kind===1){var _=T.node;if(e.isCallOrNewExpressionTarget(_,!0,!0)||e.isTaggedTemplateTag(_,!0,!0)||e.isDecoratorTarget(_,!0,!0)||e.isJsxOpeningLikeElementTagName(_,!0,!0)||e.isRightSideOfPropertyAccess(_)||e.isArgumentExpressionOfElementAccess(_)){var h=_.getSourceFile(),R=e.findAncestor(_,I)||h;return{declaration:R,range:e.createTextRangeFromNode(_,h)}}}}function X(T){return e.getNodeId(T.declaration)}function O(T,_){return{from:T,fromSpans:_}}function x(T,_){return O(C(T,_[0].declaration),e.map(_,function(h){return e.createTextSpanFromRange(h.range)}))}function ie(T,_,h){if(e.isSourceFile(_)||e.isModuleDeclaration(_)||e.isClassStaticBlockDeclaration(_))return[];var R=V(_),b=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(T,h,T.getSourceFiles(),R,0,{use:1},k),K);return b?e.group(b,X,function(G){return x(T,G)}):[]}c.getIncomingCalls=ie;function Z(T,_){function h(b){var G=e.isTaggedTemplateExpression(b)?b.tag:e.isJsxOpeningLikeElement(b)?b.tagName:e.isAccessExpression(b)||e.isClassStaticBlockDeclaration(b)?b:b.expression,Y=$(T,G);if(Y){var pe=e.createTextRangeFromNode(G,b.getSourceFile());if(e.isArray(Y))for(var A=0,_e=Y;A<_e.length;A++){var Se=_e[A];_.push({declaration:Se,range:pe})}else _.push({declaration:Y,range:pe})}}function R(b){if(!!b&&!(b.flags&8388608)){if(I(b)){if(e.isClassLike(b))for(var G=0,Y=b.members;G<Y.length;G++){var pe=Y[G];pe.name&&e.isComputedPropertyName(pe.name)&&R(pe.name.expression)}return}switch(b.kind){case 79:case 264:case 265:case 271:case 257:case 258:return;case 169:h(b);return;case 210:case 228:R(b.expression);return;case 253:case 163:R(b.name),R(b.initializer);return;case 207:h(b),R(b.expression),e.forEach(b.arguments,R);return;case 208:h(b),R(b.expression),e.forEach(b.arguments,R);return;case 209:h(b),R(b.tag),R(b.template);return;case 279:case 278:h(b),R(b.tagName),R(b.attributes);return;case 164:h(b),R(b.expression);return;case 205:case 206:h(b),e.forEachChild(b,R);break}e.isPartOfTypeNode(b)||e.forEachChild(b,R)}}return R}function re(T,_){e.forEach(T.statements,_)}function q(T,_){!e.hasSyntacticModifier(T,2)&&T.body&&e.isModuleBlock(T.body)&&e.forEach(T.body.statements,_)}function P(T,_,h){var R=te(T,_);R&&(e.forEach(R.parameters,h),h(R.body))}function M(T,_){_(T.body)}function Q(T,_){e.forEach(T.decorators,_);var h=e.getClassExtendsHeritageElement(T);h&&_(h.expression);for(var R=0,b=T.members;R<b.length;R++){var G=b[R];e.forEach(G.decorators,_),e.isPropertyDeclaration(G)?_(G.initializer):e.isConstructorDeclaration(G)&&G.body?(e.forEach(G.parameters,_),_(G.body)):e.isClassStaticBlockDeclaration(G)&&_(G)}}function H(T,_){var h=[],R=Z(T,h);switch(_.kind){case 303:re(_,R);break;case 260:q(_,R);break;case 255:case 212:case 213:case 168:case 171:case 172:P(T.getTypeChecker(),_,R);break;case 256:case 225:Q(_,R);break;case 169:M(_,R);break;default:e.Debug.assertNever(_)}return h}function w(T,_){return{to:T,fromSpans:_}}function d(T,_){return w(C(T,_[0].declaration),e.map(_,function(h){return e.createTextSpanFromRange(h.range)}))}function B(T,_){return _.flags&8388608||e.isMethodSignature(_)?[]:e.group(H(T,_),X,function(h){return d(T,h)})}c.getOutgoingCalls=B})(n=e.CallHierarchy||(e.CallHierarchy={}))})(mr||(mr={}));var mr;(function(e){function n(E,F,$,C,K,k,X){var O=e.hostUsesCaseSensitiveFileNames(C),x=e.createGetCanonicalFileName(O),ie=c(F,$,x,X),Z=c($,F,x,X);return e.textChanges.ChangeTracker.with({host:C,formatContext:K,preferences:k},function(re){g(E,re,ie,F,$,C.getCurrentDirectory(),O),p(E,re,ie,Z,C,x)})}e.getEditsForFileRename=n;function c(E,F,$,C){var K=$(E);return function(X){var O=C&&C.tryGetSourcePosition({fileName:X,pos:0}),x=k(O?O.fileName:X);return O?x===void 0?void 0:u(O.fileName,x,X,$):x};function k(X){if($(X)===K)return F;var O=e.tryRemoveDirectoryPrefix(X,K,$);return O===void 0?void 0:F+"/"+O}}e.getPathUpdater=c;function u(E,F,$,C){var K=e.getRelativePathFromFile(E,F,C);return V(e.getDirectoryPath($),K)}function g(E,F,$,C,K,k,X){var O=E.getCompilerOptions().configFile;if(!O)return;var x=e.getDirectoryPath(O.fileName),ie=e.getTsConfigObjectLiteralExpression(O);if(!ie)return;te(ie,function(P,M){switch(M){case"files":case"include":case"exclude":{var Q=Z(P);if(Q||M!=="include"||!e.isArrayLiteralExpression(P.initializer))return;var H=e.mapDefined(P.initializer.elements,function(d){return e.isStringLiteral(d)?d.text:void 0});if(H.length===0)return;var w=e.getFileMatcherPatterns(x,[],H,X,k);e.getRegexFromPattern(e.Debug.checkDefined(w.includeFilePattern),X).test(C)&&!e.getRegexFromPattern(e.Debug.checkDefined(w.includeFilePattern),X).test(K)&&F.insertNodeAfter(O,e.last(P.initializer.elements),e.factory.createStringLiteral(q(K)));return}case"compilerOptions":te(P.initializer,function(d,B){var T=e.getOptionFromName(B);T&&(T.isFilePath||T.type==="list"&&T.element.isFilePath)?Z(d):B==="paths"&&te(d.initializer,function(_){if(!!e.isArrayLiteralExpression(_.initializer))for(var h=0,R=_.initializer.elements;h<R.length;h++){var b=R[h];re(b)}})});return}});function Z(P){for(var M=e.isArrayLiteralExpression(P.initializer)?P.initializer.elements:[P.initializer],Q=!1,H=0,w=M;H<w.length;H++){var d=w[H];Q=re(d)||Q}return Q}function re(P){if(!e.isStringLiteral(P))return!1;var M=V(x,P.text),Q=$(M);return Q!==void 0?(F.replaceRangeWithText(O,j(P,O),q(Q)),!0):!1}function q(P){return e.getRelativePathFromDirectory(x,P,!X)}}function p(E,F,$,C,K,k){for(var X=E.getSourceFiles(),O=function(re){var q=$(re.fileName),P=q!=null?q:re.fileName,M=e.getDirectoryPath(P),Q=C(re.fileName),H=Q||re.fileName,w=e.getDirectoryPath(H),d=q!==void 0||Q!==void 0;y(re,F,function(B){if(!!e.pathIsRelative(B)){var T=V(w,B),_=$(T);return _===void 0?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(M,_,k))}},function(B){var T=E.getTypeChecker().getSymbolAtLocation(B);if(!((T==null?void 0:T.declarations)&&T.declarations.some(function(h){return e.isAmbientModule(h)}))){var _=Q!==void 0?m(B,e.resolveModuleName(B.text,H,E.getCompilerOptions(),K),$,X):L(T,B,re,E,K,$);return _!==void 0&&(_.updated||d&&e.pathIsRelative(B.text))?e.moduleSpecifiers.updateModuleSpecifier(E.getCompilerOptions(),k(P),_.newFileName,e.createModuleSpecifierResolutionHost(E,K),B.text):void 0}})},x=0,ie=X;x<ie.length;x++){var Z=ie[x];O(Z)}}function I(E,F){return e.normalizePath(e.combinePaths(E,F))}function V(E,F){return e.ensurePathIsNonModuleName(I(E,F))}function L(E,F,$,C,K,k){if(E){var X=e.find(E.declarations,e.isSourceFile).fileName,O=k(X);return O===void 0?{newFileName:X,updated:!1}:{newFileName:O,updated:!0}}else{var x=e.getModeForUsageLocation($,F),ie=K.resolveModuleNames?K.getResolvedModuleWithFailedLookupLocationsFromCache&&K.getResolvedModuleWithFailedLookupLocationsFromCache(F.text,$.fileName,x):C.getResolvedModuleWithFailedLookupLocationsFromCache(F.text,$.fileName,x);return m(F,ie,k,C.getSourceFiles())}}function m(E,F,$,C){if(!F)return;if(F.resolvedModule){var K=x(F.resolvedModule.resolvedFileName);if(K)return K}var k=e.forEach(F.failedLookupLocations,X)||e.pathIsRelative(E.text)&&e.forEach(F.failedLookupLocations,O);if(k)return k;return F.resolvedModule&&{newFileName:F.resolvedModule.resolvedFileName,updated:!1};function X(ie){var Z=$(ie);return Z&&e.find(C,function(re){return re.fileName===Z})?O(ie):void 0}function O(ie){return e.endsWith(ie,"/package.json")?void 0:x(ie)}function x(ie){var Z=$(ie);return Z&&{newFileName:Z,updated:!0}}}function y(E,F,$,C){for(var K=0,k=E.referencedFiles||e.emptyArray;K<k.length;K++){var X=k[K],O=$(X.fileName);O!==void 0&&O!==E.text.slice(X.pos,X.end)&&F.replaceRangeWithText(E,X,O)}for(var x=0,ie=E.imports;x<ie.length;x++){var Z=ie[x],O=C(Z);O!==void 0&&O!==Z.text&&F.replaceRangeWithText(E,j(Z,E),O)}}function j(E,F){return e.createRange(E.getStart(F)+1,E.end-1)}function te(E,F){if(!!e.isObjectLiteralExpression(E))for(var $=0,C=E.properties;$<C.length;$++){var K=C[$];e.isPropertyAssignment(K)&&e.isStringLiteral(K.name)&&F(K,K.name.text)}}})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(q,P,M){var Q=V(P,M,q),H=Q&&[x(Q.reference.fileName,Q.fileName,Q.unverified)]||e.emptyArray;if(Q!=null&&Q.file)return H;var w=e.getTouchingPropertyName(P,M);if(w!==P){var d=w.parent,B=q.getTypeChecker();if(w.kind===158||e.isJSDocOverrideTag(w)&&e.rangeContainsPosition(w.tagName,M))return I(B,w)||e.emptyArray;if(e.isJumpStatementTarget(w)){var T=e.getTargetLabel(w.parent,w.text);return T?[K(B,T,"label",w.text,void 0)]:void 0}if(e.isStaticModifier(w)&&e.isClassStaticBlockDeclaration(w.parent)){var _=w.parent.parent,h=E(_,B),R=e.filter(_.members,e.isClassStaticBlockDeclaration),b=h?B.symbolToString(h,_):"",G=w.getSourceFile();return e.map(R,function(ne){var J=e.moveRangePastModifiers(ne).pos;return J=e.skipTrivia(G.text,J),K(B,ne,"constructor","static {}",b,{start:J,length:6})})}var Y=E(w,B);if(!Y)return e.concatenate(H,te(w,B));var pe=Z(B,w);if(pe&&!(e.isJsxOpeningLikeElement(w.parent)&&re(pe))){var A=X(B,pe);if(B.getRootSymbols(Y).some(function(ne){return g(ne,pe)}))return[A];var _e=$(B,Y,w,pe)||e.emptyArray;return w.kind===106?Bt([A],_e,!0):Bt(Bt([],_e,!0),[A],!1)}if(w.parent.kind===295){var Se=B.getShorthandAssignmentValueSymbol(Y.valueDeclaration),ae=Se!=null&&Se.declarations?Se.declarations.map(function(ne){return C(ne,B,Se,w)}):e.emptyArray;return e.concatenate(ae,p(B,w)||e.emptyArray)}if(e.isPropertyName(w)&&e.isBindingElement(d)&&e.isObjectBindingPattern(d.parent)&&w===(d.propertyName||d.name)){var D=e.getNameFromPropertyName(w),be=B.getTypeAtLocation(d.parent);return D===void 0?e.emptyArray:e.flatMap(be.isUnion()?be.types:[be],function(ne){var J=ne.getProperty(D);return J&&$(B,J,w)})}return e.concatenate(H,p(B,w)||$(B,Y,w))}}c.getDefinitionAtPosition=u;function g(q,P){return q===P.symbol||q===P.symbol.parent||e.isAssignmentExpression(P.parent)||!e.isCallLikeExpression(P.parent)&&q===P.parent.symbol}function p(q,P){var M=e.getContainingObjectLiteralElement(P);if(M){var Q=M&&q.getContextualType(M.parent);if(Q)return e.flatMap(e.getPropertySymbolsFromContextualType(M,q,Q,!1),function(H){return $(q,H,P)})}}function I(q,P){var M=e.findAncestor(P,e.isClassElement);if(!!(M&&M.name)){var Q=e.findAncestor(M,e.isClassLike);if(!!Q){var H=e.getEffectiveBaseTypeNode(Q),w=H?q.getTypeAtLocation(H):void 0;if(!!w){var d=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(M.name)),B=e.hasStaticModifier(M)?q.getPropertyOfType(q.getTypeOfSymbolAtLocation(w.symbol,Q),d):q.getPropertyOfType(w,d);if(!!B)return $(q,B,P)}}}}function V(q,P,M){var Q,H,w=O(q.referencedFiles,P);if(w){var d=M.getSourceFileFromReference(q,w);return d&&{reference:w,fileName:d.fileName,file:d,unverified:!1}}var B=O(q.typeReferenceDirectives,P);if(B){var T=M.getResolvedTypeReferenceDirectives().get(B.fileName),d=T&&M.getSourceFile(T.resolvedFileName);return d&&{reference:B,fileName:d.fileName,file:d,unverified:!1}}var _=O(q.libReferenceDirectives,P);if(_){var d=M.getLibFileFromReference(_);return d&&{reference:_,fileName:d.fileName,file:d,unverified:!1}}if(!((Q=q.resolvedModules)===null||Q===void 0)&&Q.size()){var h=e.getTokenAtPosition(q,P);if(e.isModuleSpecifierLike(h)&&e.isExternalModuleNameRelative(h.text)&&q.resolvedModules.has(h.text,e.getModeForUsageLocation(q,h))){var R=(H=q.resolvedModules.get(h.text,e.getModeForUsageLocation(q,h)))===null||H===void 0?void 0:H.resolvedFileName,b=R||e.resolvePath(e.getDirectoryPath(q.fileName),h.text);return{file:M.getSourceFile(b),fileName:b,reference:{pos:h.getStart(),end:h.getEnd(),fileName:h.text},unverified:!R}}}}c.getReferenceAtPosition=V;function L(q,P,M){var Q=e.getTouchingPropertyName(P,M);if(Q!==P){var H=q.getSymbolAtLocation(Q);if(!!H){var w=q.getTypeOfSymbolAtLocation(H,Q),d=y(H,w,q),B=d&&m(d,q,Q);return B&&B.length!==0?B:m(w,q,Q)}}}c.getTypeDefinitionAtPosition=L;function m(q,P,M){return e.flatMap(q.isUnion()&&!(q.flags&32)?q.types:[q],function(Q){return Q.symbol&&$(P,Q.symbol,M)})}function y(q,P,M){if(P.symbol===q||q.valueDeclaration&&P.symbol&&e.isVariableDeclaration(q.valueDeclaration)&&q.valueDeclaration.initializer===P.symbol.valueDeclaration){var Q=P.getCallSignatures();if(Q.length===1)return M.getReturnTypeOfSignature(e.first(Q))}}function j(q,P,M){var Q=u(q,P,M);if(!(!Q||Q.length===0)){var H=O(P.referencedFiles,M)||O(P.typeReferenceDirectives,M)||O(P.libReferenceDirectives,M);if(H)return{definitions:Q,textSpan:e.createTextSpanFromRange(H)};var w=e.getTouchingPropertyName(P,M),d=e.createTextSpan(w.getStart(),w.getWidth());return{definitions:Q,textSpan:d}}}c.getDefinitionAndBoundSpan=j;function te(q,P){return e.mapDefined(P.getIndexInfosAtLocation(q),function(M){return M.declaration&&X(P,M.declaration)})}function E(q,P){var M=P.getSymbolAtLocation(q);if((M==null?void 0:M.declarations)&&M.flags&2097152&&F(q,M.declarations[0])){var Q=P.getAliasedSymbol(M);if(Q.declarations)return Q}return M}function F(q,P){if(q.kind!==79)return!1;if(q.parent===P)return!0;switch(P.kind){case 266:case 264:return!0;case 269:return P.parent.kind===268;case 202:case 253:return e.isInJSFile(P)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(P);default:return!1}}function $(q,P,M,Q){var H=e.filter(P.declarations,function(T){return T!==Q&&(!e.isAssignmentDeclaration(T)||T===P.valueDeclaration)})||void 0;return w()||d()||e.map(H,function(T){return C(T,q,P,M)});function w(){if(P.flags&32&&!(P.flags&19)&&(e.isNewExpressionTarget(M)||M.kind===134)){var T=e.find(H,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration");return B(T.members,!0)}}function d(){return e.isCallOrNewExpressionTarget(M)||e.isNameOfFunctionDeclaration(M)?B(H,!1):void 0}function B(T,_){if(!!T){var h=T.filter(_?e.isConstructorDeclaration:e.isFunctionLike),R=h.filter(function(b){return!!b.body});return h.length?R.length!==0?R.map(function(b){return C(b,q,P,M)}):[C(e.last(h),q,P,M)]:void 0}}}function C(q,P,M,Q){var H=P.symbolToString(M),w=e.SymbolDisplay.getSymbolKind(P,M,Q),d=M.parent?P.symbolToString(M.parent,Q):"";return K(P,q,w,H,d)}function K(q,P,M,Q,H,w){var d=P.getSourceFile();if(!w){var B=e.getNameOfDeclaration(P)||P;w=e.createTextSpanFromNode(B,d)}return kn(kn({fileName:d.fileName,textSpan:w,kind:M,name:Q,containerKind:void 0,containerName:H},e.FindAllReferences.toContextSpan(w,d,e.FindAllReferences.getContextNode(P))),{isLocal:!k(q,P)})}function k(q,P){if(q.isDeclarationVisible(P))return!0;if(!P.parent)return!1;if(e.hasInitializer(P.parent)&&P.parent.initializer===P)return k(q,P.parent);switch(P.kind){case 166:case 171:case 172:case 168:if(e.hasEffectiveModifier(P,8))return!1;case 170:case 294:case 295:case 204:case 225:case 213:case 212:return k(q,P.parent);default:return!1}}function X(q,P){return C(P,q,P.symbol,P)}function O(q,P){return e.find(q,function(M){return e.textRangeContainsPositionInclusive(M,P)})}c.findReferenceInPosition=O;function x(q,P,M){return{fileName:P,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:q,containerName:void 0,containerKind:void 0,unverified:M}}function ie(q){var P=e.findAncestor(q,function(Q){return!e.isRightSideOfPropertyAccess(Q)}),M=P==null?void 0:P.parent;return M&&e.isCallLikeExpression(M)&&e.getInvokedExpression(M)===P?M:void 0}function Z(q,P){var M=ie(P),Q=M&&q.getResolvedSignature(M);return e.tryCast(Q&&Q.declaration,function(H){return e.isFunctionLike(H)&&!e.isFunctionTypeNode(H)})}function re(q){switch(q.kind){case 170:case 179:case 174:return!0;default:return!1}}})(n=e.GoToDefinition||(e.GoToDefinition={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],g,p;function I(P,M){var Q=[];return e.forEachUnique(P,function(H){for(var w=0,d=L(H);w<d.length;w++){var B=d[w];if(!(B.comment===void 0||e.isJSDoc(B)&&H.kind!==343&&H.kind!==336&&B.tags&&B.tags.some(function(_){return _.kind===343||_.kind===336})&&!B.tags.some(function(_){return _.kind===338||_.kind===339}))){var T=y(B.comment,M);e.contains(Q,T,V)||Q.push(T)}}}),e.flatten(e.intersperse(Q,[e.lineBreakPart()]))}c.getJsDocCommentsFromDeclarations=I;function V(P,M){return e.arraysEqual(P,M,function(Q,H){return Q.kind===H.kind&&Q.text===H.text})}function L(P){switch(P.kind){case 338:case 345:return[P];case 336:case 343:return[P,P.parent];default:return e.getJSDocCommentsAndTags(P)}}function m(P,M){var Q=[];return e.forEachUnique(P,function(H){var w=e.getJSDocTags(H);if(!(w.some(function(_){return _.kind===343||_.kind===336})&&!w.some(function(_){return _.kind===338||_.kind===339})))for(var d=0,B=w;d<B.length;d++){var T=B[d];Q.push({name:T.tagName.text,text:j(T,M)})}}),Q}c.getJsDocTagsFromDeclarations=m;function y(P,M){return typeof P=="string"?[e.textPart(P)]:e.flatMap(P,function(Q){return Q.kind===319?[e.textPart(Q.text)]:e.buildLinkParts(Q,M)})}function j(P,M){var Q=P.comment,H=P.kind,w=te(H);switch(H){case 327:return B(P.class);case 326:return B(P.class);case 342:return T(P.typeParameters.map(function(_){return _.getText()}).join(", "));case 341:return B(P.typeExpression);case 343:case 336:case 345:case 338:case 344:var d=P.name;return d?B(d):Q===void 0?void 0:y(Q,M);default:return Q===void 0?void 0:y(Q,M)}function B(_){return T(_.getText())}function T(_){return Q?_.match(/^https?$/)?Bt([e.textPart(_)],y(Q,M),!0):Bt([w(_),e.spacePart()],y(Q,M),!0):[e.textPart(_)]}}function te(P){switch(P){case 338:return e.parameterNamePart;case 345:return e.propertyNamePart;case 342:return e.typeParameterNamePart;case 343:case 336:return e.typeAliasNamePart;default:return e.textPart}}function E(){return g||(g=e.map(u,function(P){return{name:P,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}c.getJSDocTagNameCompletions=E,c.getJSDocTagNameCompletionDetails=$;function F(){return p||(p=e.map(u,function(P){return{name:"@".concat(P),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}))}c.getJSDocTagCompletions=F;function $(P){return{name:P,kind:"",kindModifiers:"",displayParts:[e.textPart(P)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}c.getJSDocTagCompletionDetails=$;function C(P){if(!e.isIdentifier(P.name))return e.emptyArray;var M=P.name.text,Q=P.parent,H=Q.parent;return e.isFunctionLike(H)?e.mapDefined(H.parameters,function(w){if(!!e.isIdentifier(w.name)){var d=w.name.text;if(!(Q.tags.some(function(B){return B!==P&&e.isJSDocParameterTag(B)&&e.isIdentifier(B.name)&&B.name.escapedText===d})||M!==void 0&&!e.startsWith(d,M)))return{name:d,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}}):[]}c.getJSDocParameterNameCompletions=C;function K(P){return{name:P,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(P)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}c.getJSDocParameterNameCompletionDetails=K;function k(P,M,Q,H){var w=e.getTokenAtPosition(M,Q),d=e.findAncestor(w,e.isJSDoc);if(!(d&&(d.comment!==void 0||e.length(d.tags)))){var B=w.getStart(M);if(!(!d&&B<Q)){var T=ie(w,H);if(!!T){var _=T.commentOwner,h=T.parameters,R=T.hasReturn;if(!(_.getStart(M)<Q)){var b=X(M,Q),G=e.hasJSFileExtension(M.fileName),Y=(h?O(h||[],G,b,P):"")+(R?x(b,P):""),pe="/**",A=" */";if(Y){var _e=pe+P+b+" * ",Se=B===Q?P+b:"",ae=_e+P+Y+b+A+Se;return{newText:ae,caretOffset:_e.length}}return{newText:pe+A,caretOffset:3}}}}}}c.getDocCommentTemplateAtPosition=k;function X(P,M){for(var Q=P.text,H=e.getLineStartPositionForPosition(M,P),w=H;w<=M&&e.isWhiteSpaceSingleLine(Q.charCodeAt(w));w++);return Q.slice(H,w)}function O(P,M,Q,H){return P.map(function(w,d){var B=w.name,T=w.dotDotDotToken,_=B.kind===79?B.text:"param"+d,h=M?T?"{...any} ":"{any} ":"";return"".concat(Q," * @param ").concat(h).concat(_).concat(H)}).join("")}function x(P,M){return"".concat(P," * @returns").concat(M)}function ie(P,M){return e.forEachAncestor(P,function(Q){return Z(Q,M)})}function Z(P,M){switch(P.kind){case 255:case 212:case 168:case 170:case 167:case 213:var Q=P;return{commentOwner:P,parameters:Q.parameters,hasReturn:re(Q,M)};case 294:return Z(P.initializer,M);case 256:case 257:case 165:case 259:case 297:case 258:return{commentOwner:P};case 236:{var H=P,w=H.declarationList.declarations,d=w.length===1&&w[0].initializer?q(w[0].initializer):void 0;return d?{commentOwner:P,parameters:d.parameters,hasReturn:re(d,M)}:{commentOwner:P}}case 303:return"quit";case 260:return P.parent.kind===260?void 0:{commentOwner:P};case 237:return Z(P.expression,M);case 220:{var B=P;return e.getAssignmentDeclarationKind(B)===0?"quit":e.isFunctionLike(B.right)?{commentOwner:P,parameters:B.right.parameters,hasReturn:re(B.right,M)}:{commentOwner:P}}case 166:var T=P.initializer;if(T&&(e.isFunctionExpression(T)||e.isArrowFunction(T)))return{commentOwner:P,parameters:T.parameters,hasReturn:re(T,M)}}}function re(P,M){return!!(M!=null&&M.generateReturnInDocTemplate)&&(e.isArrowFunction(P)&&e.isExpression(P.body)||e.isFunctionLikeDeclaration(P)&&P.body&&e.isBlock(P.body)&&!!e.forEachReturnStatement(P.body,function(Q){return Q}))}function q(P){for(;P.kind===211;)P=P.expression;switch(P.kind){case 212:case 213:return P;case 225:return e.find(P.members,e.isConstructorDeclaration)}}})(n=e.JsDoc||(e.JsDoc={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(te,E,F,$,C,K){var k=e.createPatternMatcher($);if(!k)return e.emptyArray;for(var X=[],O=function(re){if(F.throwIfCancellationRequested(),K&&re.isDeclarationFile)return"continue";re.getNamedDeclarations().forEach(function(q,P){g(k,P,q,E,re.fileName,X)})},x=0,ie=te;x<ie.length;x++){var Z=ie[x];O(Z)}return X.sort(y),(C===void 0?X:X.slice(0,C)).map(j)}c.getNavigateToItems=u;function g(te,E,F,$,C,K){var k=te.getMatchForLastSegmentOfPattern(E);if(!!k)for(var X=0,O=F;X<O.length;X++){var x=O[X];if(!!p(x,$))if(te.patternContainsDots){var ie=te.getFullMatch(m(x),E);ie&&K.push({name:E,fileName:C,matchKind:ie.kind,isCaseSensitive:ie.isCaseSensitive,declaration:x})}else K.push({name:E,fileName:C,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:x})}}function p(te,E){switch(te.kind){case 266:case 269:case 264:var F=E.getSymbolAtLocation(te.name),$=E.getAliasedSymbol(F);return F.escapedName!==$.escapedName;default:return!0}}function I(te,E){var F=e.getNameOfDeclaration(te);return!!F&&(L(F,E)||F.kind===161&&V(F.expression,E))}function V(te,E){return L(te,E)||e.isPropertyAccessExpression(te)&&(E.push(te.name.text),!0)&&V(te.expression,E)}function L(te,E){return e.isPropertyNameLiteral(te)&&(E.push(e.getTextOfIdentifierOrLiteral(te)),!0)}function m(te){var E=[],F=e.getNameOfDeclaration(te);if(F&&F.kind===161&&!V(F.expression,E))return e.emptyArray;E.shift();for(var $=e.getContainerNode(te);$;){if(!I($,E))return e.emptyArray;$=e.getContainerNode($)}return E.reverse()}function y(te,E){return e.compareValues(te.matchKind,E.matchKind)||e.compareStringsCaseSensitiveUI(te.name,E.name)}function j(te){var E=te.declaration,F=e.getContainerNode(E),$=F&&e.getNameOfDeclaration(F);return{name:te.name,kind:e.getNodeKind(E),kindModifiers:e.getNodeModifiers(E),matchKind:e.PatternMatchKind[te.matchKind],isCaseSensitive:te.isCaseSensitive,fileName:te.fileName,textSpan:e.createTextSpanFromNode(E),containerName:$?$.text:"",containerKind:$?e.getNodeKind(F):""}}})(n=e.NavigateTo||(e.NavigateTo={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u,g=/\s+/g,p=150,I,V,L=[],m,y=[],j,te=[];function E(ce,Ue){I=Ue,V=ce;try{return e.map(ae(X(ce)),be)}finally{$()}}c.getNavigationBarItems=E;function F(ce,Ue){I=Ue,V=ce;try{return D(X(ce))}finally{$()}}c.getNavigationTree=F;function $(){V=void 0,I=void 0,L=[],m=void 0,te=[]}function C(ce){return Re(ce.getText(V))}function K(ce){return ce.node.kind}function k(ce,Ue){ce.children?ce.children.push(Ue):ce.children=[Ue]}function X(ce){e.Debug.assert(!L.length);var Ue={node:ce,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};m=Ue;for(var We=0,Ne=ce.statements;We<Ne.length;We++){var ve=Ne[We];w(ve)}return P(),e.Debug.assert(!m&&!L.length),Ue}function O(ce,Ue){k(m,x(ce,Ue))}function x(ce,Ue){return{node:ce,name:Ue||(e.isDeclaration(ce)||e.isExpression(ce)?e.getNameOfDeclaration(ce):void 0),additionalNodes:void 0,parent:m,children:void 0,indent:m.indent+1}}function ie(ce){j||(j=new e.Map),j.set(ce,!0)}function Z(ce){for(var Ue=0;Ue<ce;Ue++)P()}function re(ce,Ue){for(var We=[];!e.isPropertyNameLiteral(Ue);){var Ne=e.getNameOrArgument(Ue),ve=e.getElementOrPropertyAccessName(Ue);Ue=Ue.expression,!(ve==="prototype"||e.isPrivateIdentifier(Ne))&&We.push(Ne)}We.push(Ue);for(var Ve=We.length-1;Ve>0;Ve--){var Ne=We[Ve];q(ce,Ne)}return[We.length-1,We[0]]}function q(ce,Ue){var We=x(ce,Ue);k(m,We),L.push(m),y.push(j),j=void 0,m=We}function P(){m.children&&(d(m.children,m),pe(m.children)),m=L.pop(),j=y.pop()}function M(ce,Ue,We){q(ce,We),w(Ue),P()}function Q(ce){ce.initializer&&xe(ce.initializer)?(q(ce),e.forEachChild(ce.initializer,w),P()):M(ce,ce.initializer)}function H(ce){return!e.hasDynamicName(ce)||ce.kind!==220&&e.isPropertyAccessExpression(ce.name.expression)&&e.isIdentifier(ce.name.expression.expression)&&e.idText(ce.name.expression.expression)==="Symbol"}function w(ce){var Ue;if(I.throwIfCancellationRequested(),!(!ce||e.isToken(ce)))switch(ce.kind){case 170:var We=ce;M(We,We.body);for(var Ne=0,ve=We.parameters;Ne<ve.length;Ne++){var Ve=ve[Ne];e.isParameterPropertyDeclaration(Ve,We)&&O(Ve)}break;case 168:case 171:case 172:case 167:H(ce)&&M(ce,ce.body);break;case 166:H(ce)&&Q(ce);break;case 165:H(ce)&&O(ce);break;case 266:var gr=ce;gr.name&&O(gr.name);var Er=gr.namedBindings;if(Er)if(Er.kind===267)O(Er);else for(var Nr=0,ur=Er.elements;Nr<ur.length;Nr++){var xr=ur[Nr];O(xr)}break;case 295:M(ce,ce.name);break;case 296:var sr=ce.expression;e.isIdentifier(sr)?O(ce,sr):O(ce);break;case 202:case 294:case 253:{var i=ce;e.isBindingPattern(i.name)?w(i.name):Q(i);break}case 255:var Mr=ce.name;Mr&&e.isIdentifier(Mr)&&ie(Mr.text),M(ce,ce.body);break;case 213:case 212:M(ce,ce.body);break;case 259:q(ce);for(var fr=0,Ar=ce.members;fr<Ar.length;fr++){var de=Ar[fr];Me(de)||O(de)}P();break;case 256:case 225:case 257:q(ce);for(var we=0,qe=ce.members;we<qe.length;we++){var de=qe[we];w(de)}P();break;case 260:M(ce,Te(ce).body);break;case 270:{var Cr=ce.expression,i=e.isObjectLiteralExpression(Cr)||e.isCallExpression(Cr)?Cr:e.isArrowFunction(Cr)||e.isFunctionExpression(Cr)?Cr.body:void 0;i?(q(ce),w(i),P()):O(ce);break}case 274:case 264:case 175:case 173:case 174:case 258:O(ce);break;case 207:case 220:{var kr=e.getAssignmentDeclarationKind(ce);switch(kr){case 1:case 2:M(ce,ce.right);return;case 6:case 3:{var He=ce,lr=He.left,Hr=kr===3?lr.expression:lr,Je=0,Sr=void 0;e.isIdentifier(Hr.expression)?(ie(Hr.expression.text),Sr=Hr.expression):(Ue=re(He,Hr.expression),Je=Ue[0],Sr=Ue[1]),kr===6?e.isObjectLiteralExpression(He.right)&&He.right.properties.length>0&&(q(He,Sr),e.forEachChild(He.right,w),P()):e.isFunctionExpression(He.right)||e.isArrowFunction(He.right)?M(ce,He.right,Sr):(q(He,Sr),M(ce,He.right,lr.name),P()),Z(Je);return}case 7:case 9:{var Yr=ce,Sr=kr===7?Yr.arguments[0]:Yr.arguments[0].expression,ot=Yr.arguments[1],_t=re(ce,Sr),Je=_t[0],kt=_t[1];q(ce,kt),q(ce,e.setTextRange(e.factory.createIdentifier(ot.text),ot)),w(ce.arguments[2]),P(),P(),Z(Je);return}case 5:{var He=ce,lr=He.left,Yt=lr.expression;if(e.isIdentifier(Yt)&&e.getElementOrPropertyAccessName(lr)!=="prototype"&&j&&j.has(Yt.text)){e.isFunctionExpression(He.right)||e.isArrowFunction(He.right)?M(ce,He.right,Yt):e.isBindableStaticAccessExpression(lr)&&(q(He,Yt),M(He.left,He.right,e.getNameOrArgument(lr)),P());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(kr)}}default:e.hasJSDocNodes(ce)&&e.forEach(ce.jsDoc,function(vn){e.forEach(vn.tags,function(Mn){e.isJSDocTypeAlias(Mn)&&O(Mn)})}),e.forEachChild(ce,w)}}function d(ce,Ue){var We=new e.Map;e.filterMutate(ce,function(Ne,ve){var Ve=Ne.name||e.getNameOfDeclaration(Ne.node),gr=Ve&&C(Ve);if(!gr)return!0;var Er=We.get(gr);if(!Er)return We.set(gr,Ne),!0;if(Er instanceof Array){for(var Nr=0,ur=Er;Nr<ur.length;Nr++){var xr=ur[Nr];if(_(xr,Ne,ve,Ue))return!1}return Er.push(Ne),!0}else{var xr=Er;return _(xr,Ne,ve,Ue)?!1:(We.set(gr,[xr,Ne]),!0)}})}var B=(u={},u[5]=!0,u[3]=!0,u[7]=!0,u[9]=!0,u[0]=!1,u[1]=!1,u[2]=!1,u[8]=!1,u[6]=!0,u[4]=!1,u);function T(ce,Ue,We,Ne){function ve(i){return e.isFunctionExpression(i)||e.isFunctionDeclaration(i)||e.isVariableDeclaration(i)}var Ve=e.isBinaryExpression(Ue.node)||e.isCallExpression(Ue.node)?e.getAssignmentDeclarationKind(Ue.node):0,gr=e.isBinaryExpression(ce.node)||e.isCallExpression(ce.node)?e.getAssignmentDeclarationKind(ce.node):0;if(B[Ve]&&B[gr]||ve(ce.node)&&B[Ve]||ve(Ue.node)&&B[gr]||e.isClassDeclaration(ce.node)&&R(ce.node)&&B[Ve]||e.isClassDeclaration(Ue.node)&&B[gr]||e.isClassDeclaration(ce.node)&&R(ce.node)&&ve(Ue.node)||e.isClassDeclaration(Ue.node)&&ve(ce.node)&&R(ce.node)){var Er=ce.additionalNodes&&e.lastOrUndefined(ce.additionalNodes)||ce.node;if(!e.isClassDeclaration(ce.node)&&!e.isClassDeclaration(Ue.node)||ve(ce.node)||ve(Ue.node)){var Nr=ve(ce.node)?ce.node:ve(Ue.node)?Ue.node:void 0;if(Nr!==void 0){var ur=e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),Nr),xr=x(ur);xr.indent=ce.indent+1,xr.children=ce.node===Nr?ce.children:Ue.children,ce.children=ce.node===Nr?e.concatenate([xr],Ue.children||[Ue]):e.concatenate(ce.children||[kn({},ce)],[xr])}else(ce.children||Ue.children)&&(ce.children=e.concatenate(ce.children||[kn({},ce)],Ue.children||[Ue]),ce.children&&(d(ce.children,ce),pe(ce.children)));Er=ce.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,ce.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),ce.node)}else ce.children=e.concatenate(ce.children,Ue.children),ce.children&&d(ce.children,ce);var sr=Ue.node;return Ne.children[We-1].node.end===Er.end?e.setTextRange(Er,{pos:Er.pos,end:sr.end}):(ce.additionalNodes||(ce.additionalNodes=[]),ce.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,ce.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),Ue.node))),!0}return Ve!==0}function _(ce,Ue,We,Ne){return T(ce,Ue,We,Ne)?!0:h(ce.node,Ue.node,Ne)?(Y(ce,Ue),!0):!1}function h(ce,Ue,We){if(ce.kind!==Ue.kind||ce.parent!==Ue.parent&&!(b(ce,We)&&b(Ue,We)))return!1;switch(ce.kind){case 166:case 168:case 171:case 172:return e.isStatic(ce)===e.isStatic(Ue);case 260:return G(ce,Ue)&&le(ce)===le(Ue);default:return!0}}function R(ce){return!!(ce.flags&8)}function b(ce,Ue){var We=e.isModuleBlock(ce.parent)?ce.parent.parent:ce.parent;return We===Ue.node||e.contains(Ue.additionalNodes,We)}function G(ce,Ue){return!ce.body||!Ue.body?ce.body===Ue.body:ce.body.kind===Ue.body.kind&&(ce.body.kind!==260||G(ce.body,Ue.body))}function Y(ce,Ue){var We;ce.additionalNodes=ce.additionalNodes||[],ce.additionalNodes.push(Ue.node),Ue.additionalNodes&&(We=ce.additionalNodes).push.apply(We,Ue.additionalNodes),ce.children=e.concatenate(ce.children,Ue.children),ce.children&&(d(ce.children,ce),pe(ce.children))}function pe(ce){ce.sort(A)}function A(ce,Ue){return e.compareStringsCaseSensitiveUI(_e(ce.node),_e(Ue.node))||e.compareValues(K(ce),K(Ue))}function _e(ce){if(ce.kind===260)return J(ce);var Ue=e.getNameOfDeclaration(ce);if(Ue&&e.isPropertyName(Ue)){var We=e.getPropertyNameForPropertyNameNode(Ue);return We&&e.unescapeLeadingUnderscores(We)}switch(ce.kind){case 212:case 213:case 225:return Ge(ce);default:return}}function Se(ce,Ue){if(ce.kind===260)return Re(J(ce));if(Ue){var We=e.isIdentifier(Ue)?Ue.text:e.isElementAccessExpression(Ue)?"[".concat(C(Ue.argumentExpression),"]"):C(Ue);if(We.length>0)return Re(We)}switch(ce.kind){case 303:var Ne=ce;return e.isExternalModule(Ne)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(Ne.fileName)))),'"'):"<global>";case 270:return e.isExportAssignment(ce)&&ce.isExportEquals?"export=":"default";case 213:case 255:case 212:case 256:case 225:return e.getSyntacticModifierFlags(ce)&512?"default":Ge(ce);case 170:return"constructor";case 174:return"new()";case 173:return"()";case 175:return"[]";default:return"<unknown>"}}function ae(ce){var Ue=[];function We(ve){if(Ne(ve)&&(Ue.push(ve),ve.children))for(var Ve=0,gr=ve.children;Ve<gr.length;Ve++){var Er=gr[Ve];We(Er)}}return We(ce),Ue;function Ne(ve){if(ve.children)return!0;switch(K(ve)){case 256:case 225:case 259:case 257:case 260:case 303:case 258:case 343:case 336:return!0;case 213:case 255:case 212:return Ve(ve);default:return!1}function Ve(gr){if(!gr.node.body)return!1;switch(K(gr.parent)){case 261:case 303:case 168:case 170:return!0;default:return!1}}}}function D(ce){return{text:Se(ce.node,ce.name),kind:e.getNodeKind(ce.node),kindModifiers:Ae(ce.node),spans:ne(ce),nameSpan:ce.name&&Ke(ce.name),childItems:e.map(ce.children,D)}}function be(ce){return{text:Se(ce.node,ce.name),kind:e.getNodeKind(ce.node),kindModifiers:Ae(ce.node),spans:ne(ce),childItems:e.map(ce.children,Ue)||te,indent:ce.indent,bolded:!1,grayed:!1};function Ue(We){return{text:Se(We.node,We.name),kind:e.getNodeKind(We.node),kindModifiers:e.getNodeModifiers(We.node),spans:ne(We),childItems:te,indent:0,bolded:!1,grayed:!1}}}function ne(ce){var Ue=[Ke(ce.node)];if(ce.additionalNodes)for(var We=0,Ne=ce.additionalNodes;We<Ne.length;We++){var ve=Ne[We];Ue.push(Ke(ve))}return Ue}function J(ce){return e.isAmbientModule(ce)?e.getTextOfNode(ce.name):le(ce)}function le(ce){for(var Ue=[e.getTextOfIdentifierOrLiteral(ce.name)];ce.body&&ce.body.kind===260;)ce=ce.body,Ue.push(e.getTextOfIdentifierOrLiteral(ce.name));return Ue.join(".")}function Te(ce){return ce.body&&e.isModuleDeclaration(ce.body)?Te(ce.body):ce}function Me(ce){return!ce.name||ce.name.kind===161}function Ke(ce){return ce.kind===303?e.createTextSpanFromRange(ce):e.createTextSpanFromNode(ce,V)}function Ae(ce){return ce.parent&&ce.parent.kind===253&&(ce=ce.parent),e.getNodeModifiers(ce)}function Ge(ce){var Ue=ce.parent;if(ce.name&&e.getFullWidth(ce.name)>0)return Re(e.declarationNameToString(ce.name));if(e.isVariableDeclaration(Ue))return Re(e.declarationNameToString(Ue.name));if(e.isBinaryExpression(Ue)&&Ue.operatorToken.kind===63)return C(Ue.left).replace(g,"");if(e.isPropertyAssignment(Ue))return C(Ue.name);if(e.getSyntacticModifierFlags(ce)&512)return"default";if(e.isClassLike(ce))return"<class>";if(e.isCallExpression(Ue)){var We=se(Ue.expression);if(We!==void 0){if(We=Re(We),We.length>p)return"".concat(We," callback");var Ne=Re(e.mapDefined(Ue.arguments,function(ve){return e.isStringLiteralLike(ve)?ve.getText(V):void 0}).join(", "));return"".concat(We,"(").concat(Ne,") callback")}}return"<function>"}function se(ce){if(e.isIdentifier(ce))return ce.text;if(e.isPropertyAccessExpression(ce)){var Ue=se(ce.expression),We=ce.name.text;return Ue===void 0?We:"".concat(Ue,".").concat(We)}else return}function xe(ce){switch(ce.kind){case 213:case 212:case 225:return!0;default:return!1}}function Re(ce){return ce=ce.length>p?ce.substring(0,p)+"...":ce,ce.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(n=e.NavigationBar||(e.NavigationBar={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(Z,re,q,P,M,Q){var H=e.textChanges.ChangeTracker.fromContext({host:q,formatContext:re,preferences:M}),w=function(Y){return e.stableSort(V(g(Y,Z,P,Q)),function(pe,A){return O(pe,A)})},d=Z.statements.filter(e.isImportDeclaration);G(d,w);var B=Z.statements.filter(e.isExportDeclaration);G(B,m);for(var T=0,_=Z.statements.filter(e.isAmbientModule);T<_.length;T++){var h=_[T];if(!!h.body){var R=h.body.statements.filter(e.isImportDeclaration);G(R,w);var b=h.body.statements.filter(e.isExportDeclaration);G(b,m)}}return H.getChanges();function G(Y,pe){if(e.length(Y)!==0){e.suppressLeadingTrivia(Y[0]);var A=e.group(Y,function(be){return I(be.moduleSpecifier)}),_e=e.stableSort(A,function(be,ne){return E(be[0].moduleSpecifier,ne[0].moduleSpecifier)}),Se=e.flatMap(_e,function(be){return I(be[0].moduleSpecifier)?pe(be):be});if(Se.length===0)H.deleteNodes(Z,Y,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var ae={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(q,re.options)};H.replaceNodeWithNodes(Z,Y[0],Se,ae);var D=H.nodeHasTrailingComment(Z,Y[0],ae);H.deleteNodes(Z,Y.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},D)}}}}c.organizeImports=u;function g(Z,re,q,P){if(P)return Z;for(var M=q.getTypeChecker(),Q=M.getJsxNamespace(re),H=M.getJsxFragmentFactory(re),w=!!(re.transformFlags&2),d=[],B=0,T=Z;B<T.length;B++){var _=T[B],h=_.importClause,R=_.moduleSpecifier;if(!h){d.push(_);continue}var b=h.name,G=h.namedBindings;if(b&&!pe(b)&&(b=void 0),G)if(e.isNamespaceImport(G))pe(G.name)||(G=void 0);else{var Y=G.elements.filter(function(A){return pe(A.name)});Y.length<G.elements.length&&(G=Y.length?e.factory.updateNamedImports(G,Y):void 0)}b||G?d.push(y(_,b,G)):p(re,R)&&(re.isDeclarationFile?d.push(e.factory.createImportDeclaration(_.decorators,_.modifiers,void 0,R,void 0)):d.push(_))}return d;function pe(A){return w&&(A.text===Q||H&&A.text===H)||e.FindAllReferences.Core.isSymbolReferencedInFile(A,M,re)}}function p(Z,re){var q=e.isStringLiteral(re)&&re.text;return e.isString(q)&&e.some(Z.moduleAugmentations,function(P){return e.isStringLiteral(P)&&P.text===q})}function I(Z){return Z!==void 0&&e.isStringLiteralLike(Z)?Z.text:void 0}function V(Z){var re;if(Z.length===0)return Z;var q=L(Z),P=q.importWithoutClause,M=q.typeOnlyImports,Q=q.regularImports,H=[];P&&H.push(P);for(var w=0,d=[Q,M];w<d.length;w++){var B=d[w],T=B===M,_=B.defaultImports,h=B.namespaceImports,R=B.namedImports;if(!T&&_.length===1&&h.length===1&&R.length===0){var b=_[0];H.push(y(b,b.importClause.name,h[0].importClause.namedBindings));continue}for(var G=e.stableSort(h,function(le,Te){return F(le.importClause.namedBindings.name,Te.importClause.namedBindings.name)}),Y=0,pe=G;Y<pe.length;Y++){var A=pe[Y];H.push(y(A,void 0,A.importClause.namedBindings))}if(!(_.length===0&&R.length===0)){var _e=void 0,Se=[];if(_.length===1)_e=_[0].importClause.name;else for(var ae=0,D=_;ae<D.length;ae++){var b=D[ae];Se.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),b.importClause.name))}Se.push.apply(Se,e.flatMap(R,function(le){return le.importClause.namedBindings.elements}));var be=j(Se),ne=_.length>0?_[0]:R[0],J=be.length===0?_e?void 0:e.factory.createNamedImports(e.emptyArray):R.length===0?e.factory.createNamedImports(be):e.factory.updateNamedImports(R[0].importClause.namedBindings,be);T&&_e&&J?(H.push(y(ne,_e,void 0)),H.push(y((re=R[0])!==null&&re!==void 0?re:ne,void 0,J))):H.push(y(ne,_e,J))}}return H}c.coalesceImports=V;function L(Z){for(var re,q={defaultImports:[],namespaceImports:[],namedImports:[]},P={defaultImports:[],namespaceImports:[],namedImports:[]},M=0,Q=Z;M<Q.length;M++){var H=Q[M];if(H.importClause===void 0){re=re||H;continue}var w=H.importClause.isTypeOnly?q:P,d=H.importClause,B=d.name,T=d.namedBindings;B&&w.defaultImports.push(H),T&&(e.isNamespaceImport(T)?w.namespaceImports.push(H):w.namedImports.push(H))}return{importWithoutClause:re,typeOnlyImports:q,regularImports:P}}function m(Z){if(Z.length===0)return Z;var re=h(Z),q=re.exportWithoutClause,P=re.namedExports,M=re.typeOnlyExports,Q=[];q&&Q.push(q);for(var H=0,w=[P,M];H<w.length;H++){var d=w[H];if(d.length!==0){var B=[];B.push.apply(B,e.flatMap(d,function(R){return R.exportClause&&e.isNamedExports(R.exportClause)?R.exportClause.elements:e.emptyArray}));var T=j(B),_=d[0];Q.push(e.factory.updateExportDeclaration(_,_.decorators,_.modifiers,_.isTypeOnly,_.exportClause&&(e.isNamedExports(_.exportClause)?e.factory.updateNamedExports(_.exportClause,T):e.factory.updateNamespaceExport(_.exportClause,_.exportClause.name)),_.moduleSpecifier,_.assertClause))}}return Q;function h(R){for(var b,G=[],Y=[],pe=0,A=R;pe<A.length;pe++){var _e=A[pe];_e.exportClause===void 0?b=b||_e:_e.isTypeOnly?Y.push(_e):G.push(_e)}return{exportWithoutClause:b,namedExports:G,typeOnlyExports:Y}}}c.coalesceExports=m;function y(Z,re,q){return e.factory.updateImportDeclaration(Z,Z.decorators,Z.modifiers,e.factory.updateImportClause(Z.importClause,Z.importClause.isTypeOnly,re,q),Z.moduleSpecifier,Z.assertClause)}function j(Z){return e.stableSort(Z,te)}function te(Z,re){return e.compareBooleans(Z.isTypeOnly,re.isTypeOnly)||F(Z.propertyName||Z.name,re.propertyName||re.name)||F(Z.name,re.name)}c.compareImportOrExportSpecifiers=te;function E(Z,re){var q=Z===void 0?void 0:I(Z),P=re===void 0?void 0:I(re);return e.compareBooleans(q===void 0,P===void 0)||e.compareBooleans(e.isExternalModuleNameRelative(q),e.isExternalModuleNameRelative(P))||e.compareStringsCaseInsensitive(q,P)}c.compareModuleSpecifiers=E;function F(Z,re){return e.compareStringsCaseInsensitive(Z.text,re.text)}function $(Z){var re;switch(Z.kind){case 264:return(re=e.tryCast(Z.moduleReference,e.isExternalModuleReference))===null||re===void 0?void 0:re.expression;case 265:return Z.moduleSpecifier;case 236:return Z.declarationList.declarations[0].initializer.arguments[0]}}function C(Z){return e.arrayIsSorted(Z,O)}c.importsAreSorted=C;function K(Z){return e.arrayIsSorted(Z,te)}c.importSpecifiersAreSorted=K;function k(Z,re){var q=e.binarySearch(Z,re,e.identity,O);return q<0?~q:q}c.getImportDeclarationInsertionIndex=k;function X(Z,re){var q=e.binarySearch(Z,re,e.identity,te);return q<0?~q:q}c.getImportSpecifierInsertionIndex=X;function O(Z,re){return E($(Z),$(re))||x(Z,re)}c.compareImportsOrRequireStatements=O;function x(Z,re){return e.compareValues(ie(Z),ie(re))}function ie(Z){var re;switch(Z.kind){case 265:return Z.importClause?Z.importClause.isTypeOnly?1:((re=Z.importClause.namedBindings)===null||re===void 0?void 0:re.kind)===267?2:Z.importClause.name?3:4:0;case 264:return 5;case 236:return 6}}})(n=e.OrganizeImports||(e.OrganizeImports={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(C,K){var k=[];return g(C,K,k),p(C,k),k.sort(function(X,O){return X.textSpan.start-O.textSpan.start})}c.collectElements=u;function g(C,K,k){for(var X=40,O=0,x=Bt(Bt([],C.statements,!0),[C.endOfFileToken],!1),ie=x.length;O<ie;){for(;O<ie&&!e.isAnyImportSyntax(x[O]);)q(x[O]),O++;if(O===ie)break;for(var Z=O;O<ie&&e.isAnyImportSyntax(x[O]);)m(x[O],C,K,k),O++;var re=O-1;re!==Z&&k.push(y(e.findChildOfKind(x[Z],100,C).getStart(C),x[re].getEnd(),"imports"))}function q(P){var M;if(X!==0){K.throwIfCancellationRequested(),(e.isDeclaration(P)||e.isVariableStatement(P)||e.isReturnStatement(P)||P.kind===1)&&m(P,C,K,k),e.isFunctionLike(P)&&e.isBinaryExpression(P.parent)&&e.isPropertyAccessExpression(P.parent.left)&&m(P.parent.left,C,K,k),(e.isBlock(P)||e.isModuleBlock(P))&&L(P.statements.end,C,K,k),(e.isClassLike(P)||e.isInterfaceDeclaration(P))&&L(P.members.end,C,K,k);var Q=j(P,C);Q&&k.push(Q),X--,e.isCallExpression(P)?(X++,q(P.expression),X--,P.arguments.forEach(q),(M=P.typeArguments)===null||M===void 0||M.forEach(q)):e.isIfStatement(P)&&P.elseStatement&&e.isIfStatement(P.elseStatement)?(q(P.expression),q(P.thenStatement),X++,q(P.elseStatement),X--):P.forEachChild(q),X++}}}function p(C,K){for(var k=[],X=C.getLineStarts(),O=0,x=X;O<x.length;O++){var ie=x[O],Z=C.getLineEndOfPosition(ie),re=C.text.substring(ie,Z),q=V(re);if(!(!q||e.isInComment(C,ie)))if(q[1]){var M=k.pop();M&&(M.textSpan.length=Z-M.textSpan.start,M.hintSpan.length=Z-M.textSpan.start,K.push(M))}else{var P=e.createTextSpanFromBounds(C.text.indexOf("//",ie),Z);k.push(F(P,"region",P,!1,q[2]||"#region"))}}}var I=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function V(C){return C=e.trimStringStart(C),e.startsWith(C,"//")?(C=e.trimString(C.slice(2)),I.exec(C)):null}function L(C,K,k,X){var O=e.getLeadingCommentRanges(K.text,C);if(!O)return;for(var x=-1,ie=-1,Z=0,re=K.getFullText(),q=0,P=O;q<P.length;q++){var M=P[q],Q=M.kind,H=M.pos,w=M.end;switch(k.throwIfCancellationRequested(),Q){case 2:var d=re.slice(H,w);if(V(d)){B(),Z=0;break}Z===0&&(x=H),ie=w,Z++;break;case 3:B(),X.push(y(H,w,"comment")),Z=0;break;default:e.Debug.assertNever(Q)}}B();function B(){Z>1&&X.push(y(x,ie,"comment"))}}function m(C,K,k,X){e.isJsxText(C)||L(C.pos,K,k,X)}function y(C,K,k){return F(e.createTextSpanFromBounds(C,K),k)}function j(C,K){switch(C.kind){case 234:if(e.isFunctionLike(C.parent))return te(C.parent,C,K);switch(C.parent.kind){case 239:case 242:case 243:case 241:case 238:case 240:case 247:case 291:return M(C.parent);case 251:var k=C.parent;if(k.tryBlock===C)return M(C.parent);if(k.finallyBlock===C){var X=e.findChildOfKind(k,96,K);if(X)return M(X)}default:return F(e.createTextSpanFromNode(C,K),"code")}case 261:return M(C.parent);case 256:case 225:case 257:case 259:case 262:case 181:case 200:return M(C);case 183:return M(C,!1,!e.isTupleTypeNode(C.parent),22);case 288:case 289:return Q(C.statements);case 204:return P(C);case 203:return P(C,22);case 277:return ie(C);case 281:return Z(C);case 278:case 279:return re(C.attributes);case 222:case 14:return q(C);case 201:return M(C,!1,!e.isBindingElement(C.parent),22);case 213:return x(C);case 207:return O(C)}function O(H){if(!!H.arguments.length){var w=e.findChildOfKind(H,20,K),d=e.findChildOfKind(H,21,K);if(!(!w||!d||e.positionsAreOnSameLine(w.pos,d.pos,K)))return E(w,d,H,K,!1,!0)}}function x(H){if(!(e.isBlock(H.body)||e.positionsAreOnSameLine(H.body.getFullStart(),H.body.getEnd(),K))){var w=e.createTextSpanFromBounds(H.body.getFullStart(),H.body.getEnd());return F(w,"code",e.createTextSpanFromNode(H))}}function ie(H){var w=e.createTextSpanFromBounds(H.openingElement.getStart(K),H.closingElement.getEnd()),d=H.openingElement.tagName.getText(K),B="<"+d+">...</"+d+">";return F(w,"code",w,!1,B)}function Z(H){var w=e.createTextSpanFromBounds(H.openingFragment.getStart(K),H.closingFragment.getEnd()),d="<>...</>";return F(w,"code",w,!1,d)}function re(H){if(H.properties.length!==0)return y(H.getStart(K),H.getEnd(),"code")}function q(H){if(!(H.kind===14&&H.text.length===0))return y(H.getStart(K),H.getEnd(),"code")}function P(H,w){return w===void 0&&(w=18),M(H,!1,!e.isArrayLiteralExpression(H.parent)&&!e.isCallExpression(H.parent),w)}function M(H,w,d,B,T){w===void 0&&(w=!1),d===void 0&&(d=!0),B===void 0&&(B=18),T===void 0&&(T=B===18?19:23);var _=e.findChildOfKind(C,B,K),h=e.findChildOfKind(C,T,K);return _&&h&&E(_,h,H,K,w,d)}function Q(H){return H.length?F(e.createTextSpanFromRange(H),"code"):void 0}}function te(C,K,k){var X=$(C,K,k),O=e.findChildOfKind(K,19,k);return X&&O&&E(X,O,C,k,C.kind!==213)}function E(C,K,k,X,O,x){O===void 0&&(O=!1),x===void 0&&(x=!0);var ie=e.createTextSpanFromBounds(x?C.getFullStart():C.getStart(X),K.getEnd());return F(ie,"code",e.createTextSpanFromNode(k,X),O)}function F(C,K,k,X,O){return k===void 0&&(k=C),X===void 0&&(X=!1),O===void 0&&(O="..."),{textSpan:C,kind:K,hintSpan:k,bannerText:O,autoCollapse:X}}function $(C,K,k){if(e.isNodeArrayMultiLine(C.parameters,k)){var X=e.findChildOfKind(C,20,k);if(X)return X}return e.findChildOfKind(K,18,k)}})(n=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(mr||(mr={}));var mr;(function(e){var n;(function(d){d[d.exact=0]="exact",d[d.prefix=1]="prefix",d[d.substring=2]="substring",d[d.camelCase=3]="camelCase"})(n=e.PatternMatchKind||(e.PatternMatchKind={}));function c(d,B){return{kind:d,isCaseSensitive:B}}function u(d){var B=new e.Map,T=d.trim().split(".").map(function(_){return E(_.trim())});if(!T.some(function(_){return!_.subWordTextChunks.length}))return{getFullMatch:function(_,h){return g(_,h,T,B)},getMatchForLastSegmentOfPattern:function(_){return V(_,e.last(T),B)},patternContainsDots:T.length>1}}e.createPatternMatcher=u;function g(d,B,T,_){var h=V(B,e.last(T),_);if(!!h&&!(T.length-1>d.length)){for(var R,b=T.length-2,G=d.length-1;b>=0;b-=1,G-=1)R=L(R,V(d[G],T[b],_));return R}}function p(d,B){var T=B.get(d);return T||B.set(d,T=Z(d)),T}function I(d,B,T){var _=C(d,B.textLowerCase);if(_===0)return c(B.text.length===d.length?n.exact:n.prefix,e.startsWith(d,B.text));if(B.isLowerCase){if(_===-1)return;for(var h=p(d,T),R=0,b=h;R<b.length;R++){var G=b[R];if(y(d,G,B.text,!0))return c(n.substring,y(d,G,B.text,!1))}if(B.text.length<d.length&&F(d.charCodeAt(_)))return c(n.substring,!1)}else{if(d.indexOf(B.text)>0)return c(n.substring,!0);if(B.characterSpans.length>0){var Y=p(d,T),pe=te(d,Y,B,!1)?!0:te(d,Y,B,!0)?!1:void 0;if(pe!==void 0)return c(n.camelCase,pe)}}}function V(d,B,T){if(w(B.totalTextChunk.text,function(pe){return pe!==32&&pe!==42})){var _=I(d,B.totalTextChunk,T);if(_)return _}for(var h=B.subWordTextChunks,R,b=0,G=h;b<G.length;b++){var Y=G[b];R=L(R,I(d,Y,T))}return R}function L(d,B){return e.min(d,B,m)}function m(d,B){return d===void 0?1:B===void 0?-1:e.compareValues(d.kind,B.kind)||e.compareBooleans(!d.isCaseSensitive,!B.isCaseSensitive)}function y(d,B,T,_,h){return h===void 0&&(h={start:0,length:T.length}),h.length<=B.length&&H(0,h.length,function(R){return j(T.charCodeAt(h.start+R),d.charCodeAt(B.start+R),_)})}function j(d,B,T){return T?K(d)===K(B):d===B}function te(d,B,T,_){for(var h=T.characterSpans,R=0,b=0,G,Y;;){if(b===h.length)return!0;if(R===B.length)return!1;for(var pe=B[R],A=!1;b<h.length;b++){var _e=h[b];if(A&&(!F(T.text.charCodeAt(h[b-1].start))||!F(T.text.charCodeAt(h[b].start)))||!y(d,pe,T.text,_,_e))break;A=!0,G=G===void 0?R:G,Y=Y===void 0?!0:Y,pe=e.createTextSpan(pe.start+_e.length,pe.length-_e.length)}!A&&Y!==void 0&&(Y=!1),R++}}function E(d){return{totalTextChunk:x(d),subWordTextChunks:O(d)}}function F(d){if(d>=65&&d<=90)return!0;if(d<127||!e.isUnicodeIdentifierStart(d,99))return!1;var B=String.fromCharCode(d);return B===B.toUpperCase()}function $(d){if(d>=97&&d<=122)return!0;if(d<127||!e.isUnicodeIdentifierStart(d,99))return!1;var B=String.fromCharCode(d);return B===B.toLowerCase()}function C(d,B){for(var T=d.length-B.length,_=function(b){if(w(B,function(G,Y){return K(d.charCodeAt(Y+b))===G}))return{value:b}},h=0;h<=T;h++){var R=_(h);if(typeof R=="object")return R.value}return-1}function K(d){return d>=65&&d<=90?97+(d-65):d<127?d:String.fromCharCode(d).toLowerCase().charCodeAt(0)}function k(d){return d>=48&&d<=57}function X(d){return F(d)||$(d)||k(d)||d===95||d===36}function O(d){for(var B=[],T=0,_=0,h=0;h<d.length;h++){var R=d.charCodeAt(h);X(R)?(_===0&&(T=h),_++):_>0&&(B.push(x(d.substr(T,_))),_=0)}return _>0&&B.push(x(d.substr(T,_))),B}function x(d){var B=d.toLowerCase();return{text:d,textLowerCase:B,isLowerCase:d===B,characterSpans:ie(d)}}function ie(d){return re(d,!1)}e.breakIntoCharacterSpans=ie;function Z(d){return re(d,!0)}e.breakIntoWordSpans=Z;function re(d,B){for(var T=[],_=0,h=1;h<d.length;h++){var R=k(d.charCodeAt(h-1)),b=k(d.charCodeAt(h)),G=Q(d,B,h),Y=B&&M(d,h,_);(q(d.charCodeAt(h-1))||q(d.charCodeAt(h))||R!==b||G||Y)&&(P(d,_,h)||T.push(e.createTextSpan(_,h-_)),_=h)}return P(d,_,d.length)||T.push(e.createTextSpan(_,d.length-_)),T}function q(d){switch(d){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function P(d,B,T){return w(d,function(_){return q(_)&&_!==95},B,T)}function M(d,B,T){return B!==T&&B+1<d.length&&F(d.charCodeAt(B))&&$(d.charCodeAt(B+1))&&w(d,F,T,B)}function Q(d,B,T){var _=F(d.charCodeAt(T-1)),h=F(d.charCodeAt(T));return h&&(!B||!_)}function H(d,B,T){for(var _=d;_<B;_++)if(!T(_))return!1;return!0}function w(d,B,T,_){return T===void 0&&(T=0),_===void 0&&(_=d.length),H(T,_,function(h){return B(d.charCodeAt(h),h)})}})(mr||(mr={}));var mr;(function(e){function n(c,u,g){u===void 0&&(u=!0),g===void 0&&(g=!1);var p={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},I=[],V,L,m,y=0,j=!1;function te(){return L=m,m=e.scanner.scan(),m===18?y++:m===19&&y--,m}function E(){var H=e.scanner.getTokenValue(),w=e.scanner.getTokenPos();return{fileName:H,pos:w,end:w+H.length}}function F(){V||(V=[]),V.push({ref:E(),depth:y})}function $(){I.push(E()),C()}function C(){y===0&&(j=!0)}function K(){var H=e.scanner.getToken();return H===135?(H=te(),H===141&&(H=te(),H===10&&F()),!0):!1}function k(){if(L===24)return!1;var H=e.scanner.getToken();if(H===100){if(H=te(),H===20){if(H=te(),H===10||H===14)return $(),!0}else{if(H===10)return $(),!0;if(H===151){var w=e.scanner.lookAhead(function(){var d=e.scanner.scan();return d!==155&&(d===41||d===18||d===79||e.isKeyword(d))});w&&(H=te())}if(H===79||e.isKeyword(H))if(H=te(),H===155){if(H=te(),H===10)return $(),!0}else if(H===63){if(O(!0))return!0}else if(H===27)H=te();else return!0;if(H===18){for(H=te();H!==19&&H!==1;)H=te();H===19&&(H=te(),H===155&&(H=te(),H===10&&$()))}else H===41&&(H=te(),H===127&&(H=te(),(H===79||e.isKeyword(H))&&(H=te(),H===155&&(H=te(),H===10&&$()))))}return!0}return!1}function X(){var H=e.scanner.getToken();if(H===93){if(C(),H=te(),H===151){var w=e.scanner.lookAhead(function(){var d=e.scanner.scan();return d===41||d===18});w&&(H=te())}if(H===18){for(H=te();H!==19&&H!==1;)H=te();H===19&&(H=te(),H===155&&(H=te(),H===10&&$()))}else if(H===41)H=te(),H===155&&(H=te(),H===10&&$());else if(H===100){if(H=te(),H===151){var w=e.scanner.lookAhead(function(){var B=e.scanner.scan();return B===79||e.isKeyword(B)});w&&(H=te())}if((H===79||e.isKeyword(H))&&(H=te(),H===63&&O(!0)))return!0}return!0}return!1}function O(H,w){w===void 0&&(w=!1);var d=H?te():e.scanner.getToken();return d===145?(d=te(),d===20&&(d=te(),(d===10||w&&d===14)&&$()),!0):!1}function x(){var H=e.scanner.getToken();if(H===79&&e.scanner.getTokenValue()==="define"){if(H=te(),H!==20)return!0;if(H=te(),H===10||H===14)if(H=te(),H===27)H=te();else return!0;if(H!==22)return!0;for(H=te();H!==23&&H!==1;)(H===10||H===14)&&$(),H=te();return!0}return!1}function ie(){for(e.scanner.setText(c),te();e.scanner.getToken()!==1;)K()||k()||X()||g&&(O(!1,!0)||x())||te();e.scanner.setText(void 0)}if(u&&ie(),e.processCommentPragmas(p,c),e.processPragmasIntoFields(p,e.noop),j){if(V)for(var Z=0,re=V;Z<re.length;Z++){var q=re[Z];I.push(q.ref)}return{referencedFiles:p.referencedFiles,typeReferenceDirectives:p.typeReferenceDirectives,libReferenceDirectives:p.libReferenceDirectives,importedFiles:I,isLibFile:!!p.hasNoDefaultLib,ambientExternalModules:void 0}}else{var P=void 0;if(V)for(var M=0,Q=V;M<Q.length;M++){var q=Q[M];q.depth===0?(P||(P=[]),P.push(q.ref.fileName)):I.push(q.ref)}return{referencedFiles:p.referencedFiles,typeReferenceDirectives:p.typeReferenceDirectives,libReferenceDirectives:p.libReferenceDirectives,importedFiles:I,isLibFile:!!p.hasNoDefaultLib,ambientExternalModules:P}}}e.preProcessFile=n})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(j,te,E,F){var $=e.getAdjustedRenameLocation(e.getTouchingPropertyName(te,E));if(y($)){var C=g($,j.getTypeChecker(),te,j,F);if(C)return C}return L(e.Diagnostics.You_cannot_rename_this_element)}c.getRenameInfo=u;function g(j,te,E,F,$){var C=te.getSymbolAtLocation(j);if(!C){if(e.isStringLiteralLike(j)){var K=e.getContextualTypeFromParentOrAncestorTypeNode(j,te);if(K&&(K.flags&128||K.flags&1048576&&e.every(K.types,function(re){return!!(re.flags&128)})))return V(j.text,j.text,"string","",j,E)}else if(e.isLabelName(j)){var k=e.getTextOfNode(j);return V(k,k,"label","",j,E)}return}var X=C.declarations;if(!(!X||X.length===0)){if(X.some(function(re){return p(F,re)}))return L(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(j)&&j.originalKeywordKind===88&&C.parent&&C.parent.flags&1536)){if(e.isStringLiteralLike(j)&&e.tryGetImportFromModuleSpecifier(j))return $&&$.allowRenameOfImportPath?I(j,E,C):void 0;var O=e.SymbolDisplay.getSymbolKind(te,C,j),x=e.isImportOrExportSpecifierName(j)||e.isStringOrNumericLiteralLike(j)&&j.parent.kind===161?e.stripQuotes(e.getTextOfIdentifierOrLiteral(j)):void 0,ie=x||te.symbolToString(C),Z=x||te.getFullyQualifiedName(C);return V(ie,Z,O,e.SymbolDisplay.getSymbolModifiers(te,C),j,E)}}}function p(j,te){var E=te.getSourceFile();return j.isSourceFileDefaultLibrary(E)&&e.fileExtensionIs(E.fileName,".d.ts")}function I(j,te,E){if(!e.isExternalModuleNameRelative(j.text))return L(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var F=E.declarations&&e.find(E.declarations,e.isSourceFile);if(!!F){var $=e.endsWith(j.text,"/index")||e.endsWith(j.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(F.fileName),"/index"),C=$===void 0?F.fileName:$,K=$===void 0?"module":"directory",k=j.text.lastIndexOf("/")+1,X=e.createTextSpan(j.getStart(te)+1+k,j.text.length-k);return{canRename:!0,fileToRename:C,kind:K,displayName:C,fullDisplayName:C,kindModifiers:"",triggerSpan:X}}}function V(j,te,E,F,$,C){return{canRename:!0,fileToRename:void 0,kind:E,displayName:j,fullDisplayName:te,kindModifiers:F,triggerSpan:m($,C)}}function L(j){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(j)}}function m(j,te){var E=j.getStart(te),F=j.getWidth(te);return e.isStringLiteralLike(j)&&(E+=1,F-=2),e.createTextSpan(E,F)}function y(j){switch(j.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(j);default:return!1}}c.nodeIsEligibleForRename=y})(n=e.Rename||(e.Rename={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(E,F){var $,C={textSpan:e.createTextSpanFromBounds(F.getFullStart(),F.getEnd())},K=F;e:for(;;){var k=I(K);if(!k.length)break;for(var X=0;X<k.length;X++){var O=k[X-1],x=k[X],ie=k[X+1];if(e.getTokenPosOfNode(x,F,!0)>E)break e;var Z=e.singleOrUndefined(e.getTrailingCommentRanges(F.text,x.end));if(Z&&Z.kind===2&&w(Z.pos,Z.end),g(F,E,x)){if(e.isBlock(x)||e.isTemplateSpan(x)||e.isTemplateHead(x)||e.isTemplateTail(x)||O&&e.isTemplateHead(O)||e.isVariableDeclarationList(x)&&e.isVariableStatement(K)||e.isSyntaxList(x)&&e.isVariableDeclarationList(K)||e.isVariableDeclaration(x)&&e.isSyntaxList(K)&&k.length===1||e.isJSDocTypeExpression(x)||e.isJSDocSignature(x)||e.isJSDocTypeLiteral(x)){K=x;break}if(e.isTemplateSpan(K)&&ie&&e.isTemplateMiddleOrTemplateTail(ie)){var re=x.getFullStart()-2,q=ie.getStart()+1;H(re,q)}var P=e.isSyntaxList(x)&&y(O)&&j(ie)&&!e.positionsAreOnSameLine(O.getStart(),ie.getStart(),F),M=P?O.getEnd():x.getStart(),Q=P?ie.getStart():te(F,x);e.hasJSDocNodes(x)&&(($=x.jsDoc)===null||$===void 0?void 0:$.length)&&H(e.first(x.jsDoc).getStart(),Q),H(M,Q),(e.isStringLiteral(x)||e.isTemplateLiteral(x))&&H(M+1,Q-1),K=x;break}if(X===k.length-1)break e}}return C;function H(d,B){if(d!==B){var T=e.createTextSpanFromBounds(d,B);(!C||!e.textSpansEqual(T,C.textSpan)&&e.textSpanIntersectsWithPosition(T,E))&&(C=kn({textSpan:T},C&&{parent:C}))}}function w(d,B){H(d,B);for(var T=d;F.text.charCodeAt(T)===47;)T++;H(T,B)}}c.getSmartSelectionRange=u;function g(E,F,$){if(e.Debug.assert($.pos<=F),F<$.end)return!0;var C=$.getEnd();return C===F?e.getTouchingPropertyName(E,F).pos<$.end:!1}var p=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function I(E){if(e.isSourceFile(E))return V(E.getChildAt(0).getChildren(),p);if(e.isMappedTypeNode(E)){var F=E.getChildren(),$=F[0],C=F.slice(1),K=e.Debug.checkDefined(C.pop());e.Debug.assertEqual($.kind,18),e.Debug.assertEqual(K.kind,19);var k=V(C,function(ie){return ie===E.readonlyToken||ie.kind===144||ie===E.questionToken||ie.kind===57}),X=V(k,function(ie){var Z=ie.kind;return Z===22||Z===162||Z===23});return[$,m(L(X,function(ie){var Z=ie.kind;return Z===58})),K]}if(e.isPropertySignature(E)){var C=V(E.getChildren(),function(Z){return Z===E.name||e.contains(E.modifiers,Z)});return L(C,function(Z){var re=Z.kind;return re===58})}if(e.isParameter(E)){var O=V(E.getChildren(),function(ie){return ie===E.dotDotDotToken||ie===E.name}),x=V(O,function(ie){return ie===O[0]||ie===E.questionToken});return L(x,function(ie){var Z=ie.kind;return Z===63})}return e.isBindingElement(E)?L(E.getChildren(),function(ie){var Z=ie.kind;return Z===63}):E.getChildren()}function V(E,F){for(var $=[],C,K=0,k=E;K<k.length;K++){var X=k[K];F(X)?(C=C||[],C.push(X)):(C&&($.push(m(C)),C=void 0),$.push(X))}return C&&$.push(m(C)),$}function L(E,F,$){if($===void 0&&($=!0),E.length<2)return E;var C=e.findIndex(E,F);if(C===-1)return E;var K=E.slice(0,C),k=E[C],X=e.last(E),O=$&&X.kind===26,x=E.slice(C+1,O?E.length-1:void 0),ie=e.compact([K.length?m(K):void 0,k,x.length?m(x):void 0]);return O?ie.concat(X):ie}function m(E){return e.Debug.assertGreaterThanOrEqual(E.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(E),E[0].pos,e.last(E).end)}function y(E){var F=E&&E.kind;return F===18||F===22||F===20||F===279}function j(E){var F=E&&E.kind;return F===19||F===23||F===21||F===280}function te(E,F){switch(F.kind){case 338:case 336:case 345:case 343:case 340:return E.getLineEndOfPosition(F.getStart());default:return F.getEnd()}}})(n=e.SmartSelectionRange||(e.SmartSelectionRange={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(A){A[A.Call=0]="Call",A[A.TypeArgs=1]="TypeArgs",A[A.Contextual=2]="Contextual"})(u||(u={}));function g(A,_e,Se,ae,D){var be=A.getTypeChecker(),ne=e.findTokenOnLeftOfPosition(_e,Se);if(!!ne){var J=!!ae&&ae.kind==="characterTyped";if(!(J&&(e.isInString(_e,Se,ne)||e.isInComment(_e,Se)))){var le=!!ae&&ae.kind==="invoked",Te=P(ne,Se,_e,be,le);if(!!Te){D.throwIfCancellationRequested();var Me=I(Te,be,_e,ne,J);return D.throwIfCancellationRequested(),Me?be.runWithCancellationToken(D,function(Ke){return Me.kind===0?d(Me.candidates,Me.resolvedSignature,Te,_e,Ke):B(Me.symbol,Te,_e,Ke)}):e.isSourceFileJS(_e)?L(Te,A,D):void 0}}}}c.getSignatureHelpItems=g;var p;(function(A){A[A.Candidate=0]="Candidate",A[A.Type=1]="Type"})(p||(p={}));function I(A,_e,Se,ae,D){var be=A.invocation,ne=A.argumentCount;switch(be.kind){case 0:{if(D&&!V(ae,be.node,Se))return;var J=[],le=_e.getResolvedSignatureForSignatureHelp(be.node,J,ne);return J.length===0?void 0:{kind:0,candidates:J,resolvedSignature:le}}case 1:{var Te=be.called;if(D&&!m(ae,Se,e.isIdentifier(Te)?Te.parent:Te))return;var J=e.getPossibleGenericSignatures(Te,ne,_e);if(J.length!==0)return{kind:0,candidates:J,resolvedSignature:e.first(J)};var Me=_e.getSymbolAtLocation(Te);return Me&&{kind:1,symbol:Me}}case 2:return{kind:0,candidates:[be.signature],resolvedSignature:be.signature};default:return e.Debug.assertNever(be)}}function V(A,_e,Se){if(!e.isCallOrNewExpression(_e))return!1;var ae=_e.getChildren(Se);switch(A.kind){case 20:return e.contains(ae,A);case 27:{var D=e.findContainingList(A);return!!D&&e.contains(ae,D)}case 29:return m(A,Se,_e.expression);default:return!1}}function L(A,_e,Se){if(A.invocation.kind!==2){var ae=Q(A.invocation),D=e.isPropertyAccessExpression(ae)?ae.name.text:void 0,be=_e.getTypeChecker();return D===void 0?void 0:e.firstDefined(_e.getSourceFiles(),function(ne){return e.firstDefined(ne.getNamedDeclarations().get(D),function(J){var le=J.symbol&&be.getTypeOfSymbolAtLocation(J.symbol,J),Te=le&&le.getCallSignatures();if(Te&&Te.length)return be.runWithCancellationToken(Se,function(Me){return d(Te,Te[0],A,ne,Me,!0)})})})}}function m(A,_e,Se){for(var ae=A.getFullStart(),D=A.parent;D;){var be=e.findPrecedingToken(ae,_e,D,!0);if(be)return e.rangeContainsRange(Se,be);D=D.parent}return e.Debug.fail("Could not find preceding token")}function y(A,_e,Se){var ae=E(A,_e,Se);return!ae||ae.isTypeParameterList||ae.invocation.kind!==0?void 0:{invocation:ae.invocation.node,argumentCount:ae.argumentCount,argumentIndex:ae.argumentIndex}}c.getArgumentInfoForCompletions=y;function j(A,_e){var Se=te(A,_e);if(!!Se){var ae=Se.list,D=Se.argumentIndex,be=x(ae);D!==0&&e.Debug.assertLessThan(D,be);var ne=re(ae,_e);return{list:ae,argumentIndex:D,argumentCount:be,argumentsSpan:ne}}}function te(A,_e){if(A.kind===29||A.kind===20)return{list:M(A.parent,A,_e),argumentIndex:0};var Se=e.findContainingList(A);return Se&&{list:Se,argumentIndex:O(Se,A)}}function E(A,_e,Se){var ae=A.parent;if(e.isCallOrNewExpression(ae)){var D=ae,be=j(A,Se);if(!be)return;var ne=be.list,J=be.argumentIndex,le=be.argumentCount,Te=be.argumentsSpan,Me=!!ae.typeArguments&&ae.typeArguments.pos===ne.pos;return{isTypeParameterList:Me,invocation:{kind:0,node:D},argumentsSpan:Te,argumentIndex:J,argumentCount:le}}else{if(e.isNoSubstitutionTemplateLiteral(A)&&e.isTaggedTemplateExpression(ae))return e.isInsideTemplateLiteral(A,_e,Se)?Z(ae,0,Se):void 0;if(e.isTemplateHead(A)&&ae.parent.kind===209){var Ke=ae,Ae=Ke.parent;e.Debug.assert(Ke.kind===222);var J=e.isInsideTemplateLiteral(A,_e,Se)?0:1;return Z(Ae,J,Se)}else if(e.isTemplateSpan(ae)&&e.isTaggedTemplateExpression(ae.parent.parent)){var Ge=ae,Ae=ae.parent.parent;if(e.isTemplateTail(A)&&!e.isInsideTemplateLiteral(A,_e,Se))return;var se=Ge.parent.templateSpans.indexOf(Ge),J=ie(se,A,_e,Se);return Z(Ae,J,Se)}else if(e.isJsxOpeningLikeElement(ae)){var xe=ae.attributes.pos,Re=e.skipTrivia(Se.text,ae.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:ae},argumentsSpan:e.createTextSpan(xe,Re-xe),argumentIndex:0,argumentCount:1}}else{var ce=e.getPossibleTypeArgumentsInfo(A,Se);if(ce){var Ue=ce.called,We=ce.nTypeArguments,D={kind:1,called:Ue},Te=e.createTextSpanFromBounds(Ue.getStart(Se),A.end);return{isTypeParameterList:!0,invocation:D,argumentsSpan:Te,argumentIndex:We,argumentCount:We+1}}return}}}function F(A,_e,Se,ae){return K(A,_e,Se,ae)||E(A,_e,Se)}function $(A){return e.isBinaryExpression(A.parent)?$(A.parent):A}function C(A){return e.isBinaryExpression(A.left)?C(A.left)+1:2}function K(A,_e,Se,ae){var D=k(A,Se,ae);if(!!D){var be=D.contextualType,ne=D.argumentIndex,J=D.argumentCount,le=D.argumentsSpan,Te=be.getNonNullableType(),Me=Te.getCallSignatures();if(Me.length===1){var Ke={kind:2,signature:e.first(Me),node:A,symbol:X(Te.symbol)};return{isTypeParameterList:!1,invocation:Ke,argumentsSpan:le,argumentIndex:ne,argumentCount:J}}}}function k(A,_e,Se){if(!(A.kind!==20&&A.kind!==27)){var ae=A.parent;switch(ae.kind){case 211:case 168:case 212:case 213:var D=j(A,_e);if(!D)return;var be=D.argumentIndex,ne=D.argumentCount,J=D.argumentsSpan,le=e.isMethodDeclaration(ae)?Se.getContextualTypeForObjectLiteralElement(ae):Se.getContextualType(ae);return le&&{contextualType:le,argumentIndex:be,argumentCount:ne,argumentsSpan:J};case 220:{var Te=$(ae),Me=Se.getContextualType(Te),Ke=A.kind===20?0:C(ae)-1,Ae=C(Te);return Me&&{contextualType:Me,argumentIndex:Ke,argumentCount:Ae,argumentsSpan:e.createTextSpanFromNode(ae)}}default:return}}}function X(A){return A.name==="__type"&&e.firstDefined(A.declarations,function(_e){return e.isFunctionTypeNode(_e)?_e.parent.symbol:void 0})||A}function O(A,_e){for(var Se=0,ae=0,D=A.getChildren();ae<D.length;ae++){var be=D[ae];if(be===_e)break;be.kind!==27&&Se++}return Se}function x(A){var _e=A.getChildren(),Se=e.countWhere(_e,function(ae){return ae.kind!==27});return _e.length>0&&e.last(_e).kind===27&&Se++,Se}function ie(A,_e,Se,ae){return e.Debug.assert(Se>=_e.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(_e)?e.isInsideTemplateLiteral(_e,Se,ae)?0:A+2:A+1}function Z(A,_e,Se){var ae=e.isNoSubstitutionTemplateLiteral(A.template)?1:A.template.templateSpans.length+1;return _e!==0&&e.Debug.assertLessThan(_e,ae),{isTypeParameterList:!1,invocation:{kind:0,node:A},argumentsSpan:q(A,Se),argumentIndex:_e,argumentCount:ae}}function re(A,_e){var Se=A.getFullStart(),ae=e.skipTrivia(_e.text,A.getEnd(),!1);return e.createTextSpan(Se,ae-Se)}function q(A,_e){var Se=A.template,ae=Se.getStart(),D=Se.getEnd();if(Se.kind===222){var be=e.last(Se.templateSpans);be.literal.getFullWidth()===0&&(D=e.skipTrivia(_e.text,D,!1))}return e.createTextSpan(ae,D-ae)}function P(A,_e,Se,ae,D){for(var be=function(le){e.Debug.assert(e.rangeContainsRange(le.parent,le),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(le.kind),", parent: ").concat(e.Debug.formatSyntaxKind(le.parent.kind))});var Te=F(le,_e,Se,ae);if(Te)return{value:Te}},ne=A;!e.isSourceFile(ne)&&(D||!e.isBlock(ne));ne=ne.parent){var J=be(ne);if(typeof J=="object")return J.value}}function M(A,_e,Se){var ae=A.getChildren(Se),D=ae.indexOf(_e);return e.Debug.assert(D>=0&&ae.length>D+1),ae[D+1]}function Q(A){return A.kind===0?e.getInvokedExpression(A.node):A.called}function H(A){return A.kind===0?A.node:A.kind===1?A.called:A.node}var w=70246400;function d(A,_e,Se,ae,D,be){var ne,J=Se.isTypeParameterList,le=Se.argumentCount,Te=Se.argumentsSpan,Me=Se.invocation,Ke=Se.argumentIndex,Ae=H(Me),Ge=Me.kind===2?Me.symbol:D.getSymbolAtLocation(Q(Me))||be&&((ne=_e.declaration)===null||ne===void 0?void 0:ne.symbol),se=Ge?e.symbolToDisplayParts(D,Ge,be?ae:void 0,void 0):e.emptyArray,xe=e.map(A,function(xr){return h(xr,se,J,D,Ae,ae)});Ke!==0&&e.Debug.assertLessThan(Ke,le);for(var Re=0,ce=0,Ue=0;Ue<xe.length;Ue++){var We=xe[Ue];if(A[Ue]===_e&&(Re=ce,We.length>1))for(var Ne=0,ve=0,Ve=We;ve<Ve.length;ve++){var gr=Ve[ve];if(gr.isVariadic||gr.parameters.length>=le){Re=ce+Ne;break}Ne++}ce+=We.length}e.Debug.assert(Re!==-1);var Er={items:e.flatMapToMutable(xe,e.identity),applicableSpan:Te,selectedItemIndex:Re,argumentIndex:Ke,argumentCount:le},Nr=Er.items[Re];if(Nr.isVariadic){var ur=e.findIndex(Nr.parameters,function(xr){return!!xr.isRest});-1<ur&&ur<Nr.parameters.length-1?Er.argumentIndex=Nr.parameters.length:Er.argumentIndex=Math.min(Er.argumentIndex,Nr.parameters.length-1)}return Er}function B(A,_e,Se,ae){var D=_e.argumentCount,be=_e.argumentsSpan,ne=_e.invocation,J=_e.argumentIndex,le=ae.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(A);if(!!le){var Te=[T(A,le,ae,H(ne),Se)];return{items:Te,applicableSpan:be,selectedItemIndex:0,argumentIndex:J,argumentCount:D}}}function T(A,_e,Se,ae,D){var be=e.symbolToDisplayParts(Se,A),ne=e.createPrinter({removeComments:!0}),J=_e.map(function(Ke){return pe(Ke,Se,ae,D,ne)}),le=A.getDocumentationComment(Se),Te=A.getJsDocTags(Se),Me=Bt(Bt([],be,!0),[e.punctuationPart(29)],!1);return{isVariadic:!1,prefixDisplayParts:Me,suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:_,parameters:J,documentation:le,tags:Te}}var _=[e.punctuationPart(27),e.spacePart()];function h(A,_e,Se,ae,D,be){var ne=(Se?b:G)(A,ae,D,be);return e.map(ne,function(J){var le=J.isVariadic,Te=J.parameters,Me=J.prefix,Ke=J.suffix,Ae=Bt(Bt([],_e,!0),Me,!0),Ge=Bt(Bt([],Ke,!0),R(A,D,ae),!0),se=A.getDocumentationComment(ae),xe=A.getJsDocTags();return{isVariadic:le,prefixDisplayParts:Ae,suffixDisplayParts:Ge,separatorDisplayParts:_,parameters:Te,documentation:se,tags:xe}})}function R(A,_e,Se){return e.mapToDisplayParts(function(ae){ae.writePunctuation(":"),ae.writeSpace(" ");var D=Se.getTypePredicateOfSignature(A);D?Se.writeTypePredicate(D,_e,void 0,ae):Se.writeType(Se.getReturnTypeOfSignature(A),_e,void 0,ae)})}function b(A,_e,Se,ae){var D=(A.target||A).typeParameters,be=e.createPrinter({removeComments:!0}),ne=(D||e.emptyArray).map(function(le){return pe(le,_e,Se,ae,be)}),J=A.thisParameter?[_e.symbolToParameterDeclaration(A.thisParameter,Se,w)]:[];return _e.getExpandedParameters(A).map(function(le){var Te=e.factory.createNodeArray(Bt(Bt([],J,!0),e.map(le,function(Ke){return _e.symbolToParameterDeclaration(Ke,Se,w)}),!0)),Me=e.mapToDisplayParts(function(Ke){be.writeList(2576,Te,ae,Ke)});return{isVariadic:!1,parameters:ne,prefix:[e.punctuationPart(29)],suffix:Bt([e.punctuationPart(31)],Me,!0)}})}function G(A,_e,Se,ae){var D=e.createPrinter({removeComments:!0}),be=e.mapToDisplayParts(function(le){if(A.typeParameters&&A.typeParameters.length){var Te=e.factory.createNodeArray(A.typeParameters.map(function(Me){return _e.typeParameterToDeclaration(Me,Se,w)}));D.writeList(53776,Te,ae,le)}}),ne=_e.getExpandedParameters(A),J=_e.hasEffectiveRestParameter(A)?ne.length===1?function(le){return!0}:function(le){return!!(le.length&&le[le.length-1].checkFlags&32768)}:function(le){return!1};return ne.map(function(le){return{isVariadic:J(le),parameters:le.map(function(Te){return Y(Te,_e,Se,ae,D)}),prefix:Bt(Bt([],be,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}})}function Y(A,_e,Se,ae,D){var be=e.mapToDisplayParts(function(le){var Te=_e.symbolToParameterDeclaration(A,Se,w);D.writeNode(4,Te,ae,le)}),ne=_e.isOptionalParameter(A.valueDeclaration),J=!!(A.checkFlags&32768);return{name:A.name,documentation:A.getDocumentationComment(_e),displayParts:be,isOptional:ne,isRest:J}}function pe(A,_e,Se,ae,D){var be=e.mapToDisplayParts(function(ne){var J=_e.typeParameterToDeclaration(A,Se,w);D.writeNode(4,J,ae,ne)});return{name:A.symbol.name,documentation:A.symbol.getDocumentationComment(_e),displayParts:be,isOptional:!1,isRest:!1}}})(n=e.SignatureHelp||(e.SignatureHelp={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=30,g=function(L){return new RegExp("^\\s?/\\*\\*?\\s?".concat(L,"\\s?\\*\\/\\s?$"))};function p(L){return L.includeInlayParameterNameHints==="literals"||L.includeInlayParameterNameHints==="all"}function I(L){return L.includeInlayParameterNameHints==="literals"}function V(L){var m=L.file,y=L.program,j=L.span,te=L.cancellationToken,E=L.preferences,F=m.text,$=y.getCompilerOptions(),C=y.getTypeChecker(),K=[];return k(m),K;function k(b){if(!(!b||b.getFullWidth()===0)){switch(b.kind){case 260:case 256:case 257:case 255:case 225:case 212:case 168:case 213:te.throwIfCancellationRequested()}if(!!e.textSpanIntersectsWith(j,b.pos,b.getFullWidth())&&!e.isTypeNode(b))return E.includeInlayVariableTypeHints&&e.isVariableDeclaration(b)||E.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(b)?q(b):E.includeInlayEnumMemberValueHints&&e.isEnumMember(b)?Z(b):p(E)&&(e.isCallExpression(b)||e.isNewExpression(b))?P(b):(E.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(b)&&e.hasContextSensitiveParameters(b)&&B(b),E.includeInlayFunctionLikeReturnTypeHints&&X(b)&&w(b)),e.forEachChild(b,k)}}function X(b){return e.isArrowFunction(b)||e.isFunctionExpression(b)||e.isFunctionDeclaration(b)||e.isMethodDeclaration(b)||e.isGetAccessorDeclaration(b)}function O(b,G,Y){K.push({text:"".concat(Y?"...":"").concat(_(b,u),":"),position:G,kind:"Parameter",whitespaceAfter:!0})}function x(b,G){K.push({text:": ".concat(_(b,u)),position:G,kind:"Type",whitespaceBefore:!0})}function ie(b,G){K.push({text:"= ".concat(_(b,u)),position:G,kind:"Enum",whitespaceBefore:!0})}function Z(b){if(!b.initializer){var G=C.getConstantValue(b);G!==void 0&&ie(G.toString(),b.end)}}function re(b){return b.symbol&&b.symbol.flags&1536}function q(b){if(!(!b.initializer||e.isBindingPattern(b.name))){var G=e.getEffectiveTypeAnnotationNode(b);if(!G){var Y=C.getTypeAtLocation(b);if(!re(Y)){var pe=h(Y);pe&&x(pe,b.name.end)}}}}function P(b){var G=b.arguments;if(!(!G||!G.length)){var Y=[],pe=C.getResolvedSignatureForSignatureHelp(b,Y);if(!(!pe||!Y.length))for(var A=0;A<G.length;++A){var _e=G[A],Se=e.skipParentheses(_e);if(!(I(E)&&!H(Se))){var ae=C.getParameterIdentifierNameAtPosition(pe,A);if(ae){var D=ae[0],be=ae[1],ne=E.includeInlayParameterNameHintsWhenArgumentMatchesName||!M(Se,D);if(!ne&&!be)continue;var J=e.unescapeLeadingUnderscores(D);if(Q(Se,J))continue;O(J,_e.getStart(),be)}}}}}function M(b,G){return e.isIdentifier(b)?b.text===G:e.isPropertyAccessExpression(b)?b.name.text===G:!1}function Q(b,G){if(!e.isIdentifierText(G,$.target,e.getLanguageVariant(m.scriptKind)))return!1;var Y=e.getLeadingCommentRanges(F,b.pos);if(!(Y!=null&&Y.length))return!1;var pe=g(G);return e.some(Y,function(A){return pe.test(F.substring(A.pos,A.end))})}function H(b){switch(b.kind){case 218:{var G=b.operand;return e.isLiteralExpression(G)||e.isIdentifier(G)&&e.isInfinityOrNaNString(G.escapedText)}case 110:case 95:case 104:case 14:case 222:return!0;case 79:{var Y=b.escapedText;return R(Y)||e.isInfinityOrNaNString(Y)}}return e.isLiteralExpression(b)}function w(b){if(!(e.isArrowFunction(b)&&!e.findChildOfKind(b,20,m))){var G=e.getEffectiveReturnTypeNode(b);if(!(G||!b.body)){var Y=C.getSignatureFromDeclaration(b);if(!!Y){var pe=C.getReturnTypeOfSignature(Y);if(!re(pe)){var A=h(pe);!A||x(A,d(b))}}}}}function d(b){var G=e.findChildOfKind(b,21,m);return G?G.end:b.parameters.end}function B(b){var G=C.getSignatureFromDeclaration(b);if(!!G)for(var Y=0;Y<b.parameters.length&&Y<G.parameters.length;++Y){var pe=b.parameters[Y],A=e.getEffectiveTypeAnnotationNode(pe);if(!A){var _e=T(G.parameters[Y]);!_e||x(_e,pe.name.end)}}}function T(b){var G=b.valueDeclaration;if(!(!G||!e.isParameter(G))){var Y=C.getTypeOfSymbolAtLocation(b,G);if(!re(Y))return h(Y)}}function _(b,G){return b.length>G?b.substr(0,G-3)+"...":b}function h(b){var G=71286784,Y={removeComments:!0},pe=e.createPrinter(Y);return e.usingSingleLineStringWriter(function(A){var _e=C.typeToTypeNode(b,void 0,G,A);e.Debug.assertIsDefined(_e,"should always get typenode"),pe.writeNode(4,_e,m,A)})}function R(b){return b==="undefined"}}c.provideInlayHints=V})(n=e.InlayHints||(e.InlayHints={}))})(mr||(mr={}));var mr;(function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function c(I){var V=e.createGetCanonicalFileName(I.useCaseSensitiveFileNames()),L=I.getCurrentDirectory(),m=new e.Map,y=new e.Map;return{tryGetSourcePosition:E,tryGetGeneratedPosition:F,toLineColumnOffset:k,clearCache:X};function j(O){return e.toPath(O,L,V)}function te(O,x){var ie=j(O),Z=y.get(ie);if(Z)return Z;var re;if(I.getDocumentPositionMapper)re=I.getDocumentPositionMapper(O,x);else if(I.readFile){var q=K(O);re=q&&e.getDocumentPositionMapper({getSourceFileLike:K,getCanonicalFileName:V,log:function(P){return I.log(P)}},O,e.getLineInfo(q.text,e.getLineStarts(q)),function(P){return!I.fileExists||I.fileExists(P)?I.readFile(P):void 0})}return y.set(ie,re||e.identitySourceMapConsumer),re||e.identitySourceMapConsumer}function E(O){if(!!e.isDeclarationFileName(O.fileName)){var x=$(O.fileName);if(!!x){var ie=te(O.fileName).getSourcePosition(O);return!ie||ie===O?void 0:E(ie)||ie}}}function F(O){if(!e.isDeclarationFileName(O.fileName)){var x=$(O.fileName);if(!!x){var ie=I.getProgram();if(!ie.isSourceOfProjectReferenceRedirect(x.fileName)){var Z=ie.getCompilerOptions(),re=e.outFile(Z),q=re?e.removeFileExtension(re)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(O.fileName,ie.getCompilerOptions(),L,ie.getCommonSourceDirectory(),V);if(q!==void 0){var P=te(q,O.fileName).getGeneratedPosition(O);return P===O?void 0:P}}}}}function $(O){var x=I.getProgram();if(!!x){var ie=j(O),Z=x.getSourceFileByPath(ie);return Z&&Z.resolvedPath===ie?Z:void 0}}function C(O){var x=j(O),ie=m.get(x);if(ie!==void 0)return ie||void 0;if(!I.readFile||I.fileExists&&!I.fileExists(x)){m.set(x,!1);return}var Z=I.readFile(x),re=Z?p(Z):!1;return m.set(x,re),re||void 0}function K(O){return I.getSourceFileLike?I.getSourceFileLike(O):$(O)||C(O)}function k(O,x){var ie=K(O);return ie.getLineAndCharacterOfPosition(x)}function X(){m.clear(),y.clear()}}e.getSourceMapper=c;function u(I,V,L,m){var y=e.tryGetSourceMappingURL(L);if(y){var j=n.exec(y);if(j){if(j[1]){var te=j[1];return g(I,e.base64decode(e.sys,te),V)}y=void 0}}var E=[];y&&E.push(y),E.push(V+".map");for(var F=y&&e.getNormalizedAbsolutePath(y,e.getDirectoryPath(V)),$=0,C=E;$<C.length;$++){var K=C[$],k=e.getNormalizedAbsolutePath(K,e.getDirectoryPath(V)),X=m(k,F);if(e.isString(X))return g(I,X,k);if(X!==void 0)return X||void 0}}e.getDocumentPositionMapper=u;function g(I,V,L){var m=e.tryParseRawSourceMap(V);if(!(!m||!m.sources||!m.file||!m.mappings)&&!(m.sourcesContent&&m.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(I,m,L)}function p(I,V){return{text:I,lineMap:V,getLineAndCharacterOfPosition:function(L){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),L)}}}})(mr||(mr={}));var mr;(function(e){var n=new e.Map;function c(X,O,x){O.getSemanticDiagnostics(X,x);var ie=[],Z=O.getTypeChecker(),re=X.impliedNodeFormat===e.ModuleKind.CommonJS||e.fileExtensionIsOneOf(X.fileName,[".cts",".cjs"]);!re&&X.commonJsModuleIndicator&&(e.programContainsEsModules(O)||e.compilerOptionsIndicateEsModules(O.getCompilerOptions()))&&u(X)&&ie.push(e.createDiagnosticForNode(m(X.commonJsModuleIndicator),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var q=e.isSourceFileJS(X);if(n.clear(),T(X),e.getAllowSyntheticDefaultImports(O.getCompilerOptions()))for(var P=0,M=X.imports;P<M.length;P++){var Q=M[P],H=e.importFromModuleSpecifier(Q),w=p(H);if(!!w){var d=e.getResolvedModule(X,Q.text,e.getModeForUsageLocation(X,Q)),B=d&&O.getSourceFile(d.resolvedFileName);B&&B.externalModuleIndicator&&e.isExportAssignment(B.externalModuleIndicator)&&B.externalModuleIndicator.isExportEquals&&ie.push(e.createDiagnosticForNode(w,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(ie,X.bindSuggestionDiagnostics),e.addRange(ie,O.getSuggestionDiagnostics(X,x)),ie.sort(function(_,h){return _.start-h.start});function T(_){if(q)K(_,Z)&&ie.push(e.createDiagnosticForNode(e.isVariableDeclaration(_.parent)?_.parent.name:_,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(_)&&_.parent===X&&_.declarationList.flags&2&&_.declarationList.declarations.length===1){var h=_.declarationList.declarations[0].initializer;h&&e.isRequireCall(h,!0)&&ie.push(e.createDiagnosticForNode(h,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(_)&&ie.push(e.createDiagnosticForNode(_.name||_,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}k(_)&&I(_,Z,ie),_.forEachChild(T)}}e.computeSuggestionDiagnostics=c;function u(X){return X.statements.some(function(O){switch(O.kind){case 236:return O.declarationList.declarations.some(function(Z){return!!Z.initializer&&e.isRequireCall(g(Z.initializer),!0)});case 237:{var x=O.expression;if(!e.isBinaryExpression(x))return e.isRequireCall(x,!0);var ie=e.getAssignmentDeclarationKind(x);return ie===1||ie===2}default:return!1}})}function g(X){return e.isPropertyAccessExpression(X)?g(X.expression):X}function p(X){switch(X.kind){case 265:var O=X.importClause,x=X.moduleSpecifier;return O&&!O.name&&O.namedBindings&&O.namedBindings.kind===267&&e.isStringLiteral(x)?O.namedBindings.name:void 0;case 264:return X.name;default:return}}function I(X,O,x){V(X,O)&&!n.has(C(X))&&x.push(e.createDiagnosticForNode(!X.name&&e.isVariableDeclaration(X.parent)&&e.isIdentifier(X.parent.name)?X.parent.name:X,e.Diagnostics.This_may_be_converted_to_an_async_function))}function V(X,O){return!e.isAsyncFunction(X)&&X.body&&e.isBlock(X.body)&&y(X.body,O)&&L(X,O)}function L(X,O){var x=O.getSignatureFromDeclaration(X),ie=x?O.getReturnTypeOfSignature(x):void 0;return!!ie&&!!O.getPromisedTypeOfPromise(ie)}e.returnsPromise=L;function m(X){return e.isBinaryExpression(X)?X.left:X}function y(X,O){return!!e.forEachReturnStatement(X,function(x){return j(x,O)})}function j(X,O){return e.isReturnStatement(X)&&!!X.expression&&te(X.expression,O)}e.isReturnStatementWithFixablePromiseHandler=j;function te(X,O){if(!E(X)||!F(X)||!X.arguments.every(function(ie){return $(ie,O)}))return!1;for(var x=X.expression.expression;E(x)||e.isPropertyAccessExpression(x);)if(e.isCallExpression(x)){if(!F(x)||!x.arguments.every(function(ie){return $(ie,O)}))return!1;x=x.expression.expression}else x=x.expression;return!0}e.isFixablePromiseHandler=te;function E(X){return e.isCallExpression(X)&&(e.hasPropertyAccessExpressionWithName(X,"then")||e.hasPropertyAccessExpressionWithName(X,"catch")||e.hasPropertyAccessExpressionWithName(X,"finally"))}function F(X){var O=X.expression.name.text,x=O==="then"?2:O==="catch"||O==="finally"?1:0;return X.arguments.length>x?!1:X.arguments.length<x?!0:x===1||e.some(X.arguments,function(ie){return ie.kind===104||e.isIdentifier(ie)&&ie.text==="undefined"})}function $(X,O){switch(X.kind){case 255:case 212:var x=e.getFunctionFlags(X);if(x&1)return!1;case 213:n.set(C(X),!0);case 104:return!0;case 79:case 205:{var ie=O.getSymbolAtLocation(X);return ie?O.isUndefinedSymbol(ie)||e.some(e.skipAlias(ie,O).declarations,function(Z){return e.isFunctionLike(Z)||e.hasInitializer(Z)&&!!Z.initializer&&e.isFunctionLike(Z.initializer)}):!1}default:return!1}}function C(X){return"".concat(X.pos.toString(),":").concat(X.end.toString())}function K(X,O){var x,ie,Z,re;if(X.kind===212){if(e.isVariableDeclaration(X.parent)&&((x=X.symbol.members)===null||x===void 0?void 0:x.size))return!0;var q=O.getSymbolOfExpando(X,!1);return!!(q&&(((ie=q.exports)===null||ie===void 0?void 0:ie.size)||((Z=q.members)===null||Z===void 0?void 0:Z.size)))}return X.kind===255?!!(!((re=X.symbol.members)===null||re===void 0)&&re.size):!1}function k(X){switch(X.kind){case 255:case 168:case 212:case 213:return!0;default:return!1}}e.canBeConvertedToAsync=k})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=70246400;function g(y,j,te){var E=p(y,j,te);if(E!=="")return E;var F=e.getCombinedLocalAndExportSymbolFlags(j);return F&32?e.getDeclarationOfKind(j,225)?"local class":"class":F&384?"enum":F&524288?"type":F&64?"interface":F&262144?"type parameter":F&8?"enum member":F&2097152?"alias":F&1536?"module":E}c.getSymbolKind=g;function p(y,j,te){var E=y.getRootSymbols(j);if(E.length===1&&e.first(E).flags&8192&&y.getTypeOfSymbolAtLocation(j,te).getNonNullableType().getCallSignatures().length!==0)return"method";if(y.isUndefinedSymbol(j))return"var";if(y.isArgumentsSymbol(j))return"local var";if(te.kind===108&&e.isExpression(te))return"parameter";var F=e.getCombinedLocalAndExportSymbolFlags(j);if(F&3)return e.isFirstDeclarationOfSymbolParameter(j)?"parameter":j.valueDeclaration&&e.isVarConst(j.valueDeclaration)?"const":e.forEach(j.declarations,e.isLet)?"let":m(j)?"local var":"var";if(F&16)return m(j)?"local function":"function";if(F&32768)return"getter";if(F&65536)return"setter";if(F&8192)return"method";if(F&16384)return"constructor";if(F&4){if(F&33554432&&j.checkFlags&6){var $=e.forEach(y.getRootSymbols(j),function(K){var k=K.getFlags();if(k&98311)return"property"});if(!$){var C=y.getTypeOfSymbolAtLocation(j,te);return C.getCallSignatures().length?"method":"property"}return $}switch(te.parent&&te.parent.kind){case 279:case 277:case 278:return te.kind===79?"property":"JSX attribute";case 284:return"JSX attribute";default:return"property"}}return""}function I(y){if(y.declarations&&y.declarations.length){var j=y.declarations,te=j[0],E=j.slice(1),F=e.length(E)&&e.isDeprecatedDeclaration(te)&&e.some(E,function(C){return!e.isDeprecatedDeclaration(C)})?8192:0,$=e.getNodeModifiers(te,F);if($)return $.split(",")}return[]}function V(y,j){if(!j)return"";var te=new e.Set(I(j));if(j.flags&2097152){var E=y.getAliasedSymbol(j);E!==j&&e.forEach(I(E),function(F){te.add(F)})}return j.flags&16777216&&te.add("optional"),te.size>0?e.arrayFrom(te.values()).join(","):""}c.getSymbolModifiers=V;function L(y,j,te,E,F,$,C){var K;$===void 0&&($=e.getMeaningFromLocation(F));var k=[],X=[],O=[],x=e.getCombinedLocalAndExportSymbolFlags(j),ie=$&1?p(y,j,F):"",Z=!1,re=F.kind===108&&e.isInExpressionContext(F),q,P,M,Q,H=!1;if(F.kind===108&&!re)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(ie!==""||x&32||x&2097152){(ie==="getter"||ie==="setter")&&(ie="property");var w=void 0;if(q=re?y.getTypeAtLocation(F):y.getTypeOfSymbolAtLocation(j,F),F.parent&&F.parent.kind===205){var d=F.parent.name;(d===F||d&&d.getFullWidth()===0)&&(F=F.parent)}var B=void 0;if(e.isCallOrNewExpression(F)?B=F:(e.isCallExpressionTarget(F)||e.isNewExpressionTarget(F)||F.parent&&(e.isJsxOpeningLikeElement(F.parent)||e.isTaggedTemplateExpression(F.parent))&&e.isFunctionLike(j.valueDeclaration))&&(B=F.parent),B){w=y.getResolvedSignature(B);var T=B.kind===208||e.isCallExpression(B)&&B.expression.kind===106,_=T?q.getConstructSignatures():q.getCallSignatures();if(w&&!e.contains(_,w.target)&&!e.contains(_,w)&&(w=_.length?_[0]:void 0),w){switch(T&&x&32?(ie="constructor",Re(q.symbol,ie)):x&2097152?(ie="alias",ce(ie),k.push(e.spacePart()),T&&(w.flags&4&&(k.push(e.keywordPart(126)),k.push(e.spacePart())),k.push(e.keywordPart(103)),k.push(e.spacePart())),xe(j)):Re(j,ie),ie){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":k.push(e.punctuationPart(58)),k.push(e.spacePart()),!(e.getObjectFlags(q)&16)&&q.symbol&&(e.addRange(k,e.symbolToDisplayParts(y,q.symbol,E,void 0,5)),k.push(e.lineBreakPart())),T&&(w.flags&4&&(k.push(e.keywordPart(126)),k.push(e.spacePart())),k.push(e.keywordPart(103)),k.push(e.spacePart())),Ue(w,_,262144);break;default:Ue(w,_)}Z=!0,H=_.length>1}}else if(e.isNameOfFunctionDeclaration(F)&&!(x&98304)||F.kind===134&&F.parent.kind===170){var h=F.parent,R=j.declarations&&e.find(j.declarations,function(Ne){return Ne===(F.kind===134?h.parent:h)});if(R){var _=h.kind===170?q.getNonNullableType().getConstructSignatures():q.getNonNullableType().getCallSignatures();y.isImplementationOfOverload(h)?w=_[0]:w=y.getSignatureFromDeclaration(h),h.kind===170?(ie="constructor",Re(q.symbol,ie)):Re(h.kind===173&&!(q.symbol.flags&2048||q.symbol.flags&4096)?q.symbol:j,ie),w&&Ue(w,_),Z=!0,H=_.length>1}}}if(x&32&&!Z&&!re&&(Ge(),e.getDeclarationOfKind(j,225)?ce("local class"):k.push(e.keywordPart(84)),k.push(e.spacePart()),xe(j),We(j,te)),x&64&&$&2&&(Ae(),k.push(e.keywordPart(118)),k.push(e.spacePart()),xe(j),We(j,te)),x&524288&&$&2&&(Ae(),k.push(e.keywordPart(151)),k.push(e.spacePart()),xe(j),We(j,te),k.push(e.spacePart()),k.push(e.operatorPart(63)),k.push(e.spacePart()),e.addRange(k,e.typeToDisplayParts(y,y.getDeclaredTypeOfSymbol(j),E,8388608))),x&384&&(Ae(),e.some(j.declarations,function(Ne){return e.isEnumDeclaration(Ne)&&e.isEnumConst(Ne)})&&(k.push(e.keywordPart(85)),k.push(e.spacePart())),k.push(e.keywordPart(92)),k.push(e.spacePart()),xe(j)),x&1536&&!re){Ae();var b=e.getDeclarationOfKind(j,260),G=b&&b.name&&b.name.kind===79;k.push(e.keywordPart(G?142:141)),k.push(e.spacePart()),xe(j)}if(x&262144&&$&2)if(Ae(),k.push(e.punctuationPart(20)),k.push(e.textPart("type parameter")),k.push(e.punctuationPart(21)),k.push(e.spacePart()),xe(j),j.parent)se(),xe(j.parent,E),We(j.parent,E);else{var Y=e.getDeclarationOfKind(j,162);if(Y===void 0)return e.Debug.fail();var b=Y.parent;if(b)if(e.isFunctionLikeKind(b.kind)){se();var w=y.getSignatureFromDeclaration(b);b.kind===174?(k.push(e.keywordPart(103)),k.push(e.spacePart())):b.kind!==173&&b.name&&xe(b.symbol),e.addRange(k,e.signatureToDisplayParts(y,w,te,32))}else b.kind===258&&(se(),k.push(e.keywordPart(151)),k.push(e.spacePart()),xe(b.symbol),We(b.symbol,te))}if(x&8){ie="enum member",Re(j,"enum member");var b=(K=j.declarations)===null||K===void 0?void 0:K[0];if((b==null?void 0:b.kind)===297){var pe=y.getConstantValue(b);pe!==void 0&&(k.push(e.spacePart()),k.push(e.operatorPart(63)),k.push(e.spacePart()),k.push(e.displayPart(e.getTextOfConstantValue(pe),typeof pe=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(j.flags&2097152){if(Ae(),!Z){var A=y.getAliasedSymbol(j);if(A!==j&&A.declarations&&A.declarations.length>0){var _e=A.declarations[0],Se=e.getNameOfDeclaration(_e);if(Se){var ae=e.isModuleWithStringLiteralName(_e)&&e.hasSyntacticModifier(_e,2),D=j.name!=="default"&&!ae,be=L(y,A,e.getSourceFileOfNode(_e),_e,Se,$,D?j:A);k.push.apply(k,be.displayParts),k.push(e.lineBreakPart()),M=be.documentation,Q=be.tags}else M=A.getContextualDocumentationComment(_e,y),Q=A.getJsDocTags(y)}}if(j.declarations)switch(j.declarations[0].kind){case 263:k.push(e.keywordPart(93)),k.push(e.spacePart()),k.push(e.keywordPart(142));break;case 270:k.push(e.keywordPart(93)),k.push(e.spacePart()),k.push(e.keywordPart(j.declarations[0].isExportEquals?63:88));break;case 274:k.push(e.keywordPart(93));break;default:k.push(e.keywordPart(100))}k.push(e.spacePart()),xe(j),e.forEach(j.declarations,function(Ne){if(Ne.kind===264){var ve=Ne;if(e.isExternalModuleImportEqualsDeclaration(ve))k.push(e.spacePart()),k.push(e.operatorPart(63)),k.push(e.spacePart()),k.push(e.keywordPart(145)),k.push(e.punctuationPart(20)),k.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(ve)),e.SymbolDisplayPartKind.stringLiteral)),k.push(e.punctuationPart(21));else{var Ve=y.getSymbolAtLocation(ve.moduleReference);Ve&&(k.push(e.spacePart()),k.push(e.operatorPart(63)),k.push(e.spacePart()),xe(Ve,E))}return!0}})}if(!Z)if(ie!==""){if(q){if(re?(Ae(),k.push(e.keywordPart(108))):Re(j,ie),ie==="property"||ie==="JSX attribute"||x&3||ie==="local var"||re){if(k.push(e.punctuationPart(58)),k.push(e.spacePart()),q.symbol&&q.symbol.flags&262144){var ne=e.mapToDisplayParts(function(Ne){var ve=y.typeParameterToDeclaration(q,E,u);Ke().writeNode(4,ve,e.getSourceFileOfNode(e.getParseTreeNode(E)),Ne)});e.addRange(k,ne)}else e.addRange(k,e.typeToDisplayParts(y,q,E));if(j.target&&j.target.tupleLabelDeclaration){var J=j.target.tupleLabelDeclaration;e.Debug.assertNode(J.name,e.isIdentifier),k.push(e.spacePart()),k.push(e.punctuationPart(20)),k.push(e.textPart(e.idText(J.name))),k.push(e.punctuationPart(21))}}else if(x&16||x&8192||x&16384||x&131072||x&98304||ie==="method"){var _=q.getNonNullableType().getCallSignatures();_.length&&(Ue(_[0],_),H=_.length>1)}}}else ie=g(y,j,F);if(X.length===0&&!H&&(X=j.getContextualDocumentationComment(E,y)),X.length===0&&x&4&&j.parent&&j.declarations&&e.forEach(j.parent.declarations,function(Ne){return Ne.kind===303}))for(var le=0,Te=j.declarations;le<Te.length;le++){var b=Te[le];if(!(!b.parent||b.parent.kind!==220)){var Me=y.getSymbolAtLocation(b.parent.right);if(!!Me&&(X=Me.getDocumentationComment(y),O=Me.getJsDocTags(y),X.length>0))break}}return O.length===0&&!H&&(O=j.getJsDocTags(y)),X.length===0&&M&&(X=M),O.length===0&&Q&&(O=Q),{displayParts:k,documentation:X,symbolKind:ie,tags:O.length===0?void 0:O};function Ke(){return P||(P=e.createPrinter({removeComments:!0})),P}function Ae(){k.length&&k.push(e.lineBreakPart()),Ge()}function Ge(){C&&(ce("alias"),k.push(e.spacePart()))}function se(){k.push(e.spacePart()),k.push(e.keywordPart(101)),k.push(e.spacePart())}function xe(Ne,ve){C&&Ne===j&&(Ne=C);var Ve=e.symbolToDisplayParts(y,Ne,ve||te,void 0,7);e.addRange(k,Ve),j.flags&16777216&&k.push(e.punctuationPart(57))}function Re(Ne,ve){Ae(),ve&&(ce(ve),Ne&&!e.some(Ne.declarations,function(Ve){return e.isArrowFunction(Ve)||(e.isFunctionExpression(Ve)||e.isClassExpression(Ve))&&!Ve.name})&&(k.push(e.spacePart()),xe(Ne)))}function ce(Ne){switch(Ne){case"var":case"function":case"let":case"const":case"constructor":k.push(e.textOrKeywordPart(Ne));return;default:k.push(e.punctuationPart(20)),k.push(e.textOrKeywordPart(Ne)),k.push(e.punctuationPart(21));return}}function Ue(Ne,ve,Ve){Ve===void 0&&(Ve=0),e.addRange(k,e.signatureToDisplayParts(y,Ne,E,Ve|32)),ve.length>1&&(k.push(e.spacePart()),k.push(e.punctuationPart(20)),k.push(e.operatorPart(39)),k.push(e.displayPart((ve.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),k.push(e.spacePart()),k.push(e.textPart(ve.length===2?"overload":"overloads")),k.push(e.punctuationPart(21))),X=Ne.getDocumentationComment(y),O=Ne.getJsDocTags(),ve.length>1&&X.length===0&&O.length===0&&(X=ve[0].getDocumentationComment(y),O=ve[0].getJsDocTags())}function We(Ne,ve){var Ve=e.mapToDisplayParts(function(gr){var Er=y.symbolToTypeParameterDeclarations(Ne,ve,u);Ke().writeList(53776,Er,e.getSourceFileOfNode(e.getParseTreeNode(ve)),gr)});e.addRange(k,Ve)}}c.getSymbolDisplayPartsDocumentationAndSymbolKind=L;function m(y){return y.parent?!1:e.forEach(y.declarations,function(j){if(j.kind===212)return!0;if(j.kind!==253&&j.kind!==255)return!1;for(var te=j.parent;!e.isFunctionBlock(te);te=te.parent)if(te.kind===303||te.kind===261)return!1;return!0})}})(n=e.SymbolDisplay||(e.SymbolDisplay={}))})(mr||(mr={}));var mr;(function(e){function n(p,I){var V=[],L=I.compilerOptions?g(I.compilerOptions,V):{},m=e.getDefaultCompilerOptions();for(var y in m)e.hasProperty(m,y)&&L[y]===void 0&&(L[y]=m[y]);for(var j=0,te=e.transpileOptionValueCompilerOptions;j<te.length;j++){var E=te[j];L[E.name]=E.transpileOptionValue}L.suppressOutputPathCheck=!0,L.allowNonTsExtensions=!0;var F=I.fileName||(I.compilerOptions&&I.compilerOptions.jsx?"module.tsx":"module.ts"),$=e.createSourceFile(F,p,e.getEmitScriptTarget(L));I.moduleName&&($.moduleName=I.moduleName),I.renamedDependencies&&($.renamedDependencies=new e.Map(e.getEntries(I.renamedDependencies)));var C=e.getNewLineCharacter(L),K,k,X={getSourceFile:function(x){return x===e.normalizePath(F)?$:void 0},writeFile:function(x,ie){e.fileExtensionIs(x,".map")?(e.Debug.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",x),k=ie):(e.Debug.assertEqual(K,void 0,"Unexpected multiple outputs, file:",x),K=ie)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(x){return x},getCurrentDirectory:function(){return""},getNewLine:function(){return C},fileExists:function(x){return x===F},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},O=e.createProgram([F],L,X);return I.reportDiagnostics&&(e.addRange(V,O.getSyntacticDiagnostics($)),e.addRange(V,O.getOptionsDiagnostics())),O.emit(void 0,void 0,void 0,void 0,I.transformers),K===void 0?e.Debug.fail("Output generation failed"):{outputText:K,diagnostics:V,sourceMapText:k}}e.transpileModule=n;function c(p,I,V,L,m){var y=n(p,{compilerOptions:I,fileName:V,reportDiagnostics:!!L,moduleName:m});return e.addRange(L,y.diagnostics),y.outputText}e.transpile=c;var u;function g(p,I){u=u||e.filter(e.optionDeclarations,function(j){return typeof j.type=="object"&&!e.forEachEntry(j.type,function(te){return typeof te!="number"})}),p=e.cloneCompilerOptions(p);for(var V=function(j){if(!e.hasProperty(p,j.name))return"continue";var te=p[j.name];e.isString(te)?p[j.name]=e.parseCustomTypeOption(j,te,I):e.forEachEntry(j.type,function(E){return E===te})||I.push(e.createCompilerDiagnosticForInvalidCustomType(j))},L=0,m=u;L<m.length;L++){var y=m[L];V(y)}return p}e.fixupCompilerOptions=g})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(p){p[p.FormatDocument=0]="FormatDocument",p[p.FormatSelection=1]="FormatSelection",p[p.FormatOnEnter=2]="FormatOnEnter",p[p.FormatOnSemicolon=3]="FormatOnSemicolon",p[p.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",p[p.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace"})(u=c.FormattingRequestKind||(c.FormattingRequestKind={}));var g=function(){function p(I,V,L){this.sourceFile=I,this.formattingRequestKind=V,this.options=L}return p.prototype.updateContext=function(I,V,L,m,y){this.currentTokenSpan=e.Debug.checkDefined(I),this.currentTokenParent=e.Debug.checkDefined(V),this.nextTokenSpan=e.Debug.checkDefined(L),this.nextTokenParent=e.Debug.checkDefined(m),this.contextNode=e.Debug.checkDefined(y),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},p.prototype.ContextNodeAllOnSameLine=function(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},p.prototype.NextNodeAllOnSameLine=function(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},p.prototype.TokensAreOnSameLine=function(){if(this.tokensAreOnSameLine===void 0){var I=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,V=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=I===V}return this.tokensAreOnSameLine},p.prototype.ContextNodeBlockIsOnOneLine=function(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},p.prototype.NextNodeBlockIsOnOneLine=function(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},p.prototype.NodeIsOnOneLine=function(I){var V=this.sourceFile.getLineAndCharacterOfPosition(I.getStart(this.sourceFile)).line,L=this.sourceFile.getLineAndCharacterOfPosition(I.getEnd()).line;return V===L},p.prototype.BlockIsOnOneLine=function(I){var V=e.findChildOfKind(I,18,this.sourceFile),L=e.findChildOfKind(I,19,this.sourceFile);if(V&&L){var m=this.sourceFile.getLineAndCharacterOfPosition(V.getEnd()).line,y=this.sourceFile.getLineAndCharacterOfPosition(L.getStart(this.sourceFile)).line;return m===y}return!1},p}();c.FormattingContext=g})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=e.createScanner(99,!1,0),g=e.createScanner(99,!1,1),p;(function(V){V[V.Scan=0]="Scan",V[V.RescanGreaterThanToken=1]="RescanGreaterThanToken",V[V.RescanSlashToken=2]="RescanSlashToken",V[V.RescanTemplateToken=3]="RescanTemplateToken",V[V.RescanJsxIdentifier=4]="RescanJsxIdentifier",V[V.RescanJsxText=5]="RescanJsxText",V[V.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"})(p||(p={}));function I(V,L,m,y,j){var te=L===1?g:u;te.setText(V),te.setTextPos(m);var E=!0,F,$,C,K,k,X=j({advance:O,readTokenInfo:Q,readEOFTokenRange:w,isOnToken:d,isOnEOF:B,getCurrentLeadingTrivia:function(){return F},lastTrailingTriviaWasNewLine:function(){return E},skipToEndOf:_,skipToStartOf:h});return k=void 0,te.setText(void 0),X;function O(){k=void 0;var R=te.getStartPos()!==m;R?E=!!$&&e.last($).kind===4:te.scan(),F=void 0,$=void 0;for(var b=te.getStartPos();b<y;){var G=te.getToken();if(!e.isTrivia(G))break;te.scan();var Y={pos:b,end:te.getStartPos(),kind:G};b=te.getStartPos(),F=e.append(F,Y)}C=te.getStartPos()}function x(R){switch(R.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}function ie(R){if(R.parent)switch(R.parent.kind){case 284:case 279:case 280:case 278:return e.isKeyword(R.kind)||R.kind===79}return!1}function Z(R){return e.isJsxText(R)}function re(R){return R.kind===13}function q(R){return R.kind===16||R.kind===17}function P(R){return R.parent&&e.isJsxAttribute(R.parent)&&R.parent.initializer===R}function M(R){return R===43||R===68}function Q(R){e.Debug.assert(d());var b=x(R)?1:re(R)?2:q(R)?3:ie(R)?4:Z(R)?5:P(R)?6:0;if(k&&b===K)return T(k,R);te.getStartPos()!==C&&(e.Debug.assert(k!==void 0),te.setTextPos(C),te.scan());var G=H(R,b),Y=c.createTextRangeWithKind(te.getStartPos(),te.getTextPos(),G);for($&&($=void 0);te.getStartPos()<y&&(G=te.scan(),!!e.isTrivia(G));){var pe=c.createTextRangeWithKind(te.getStartPos(),te.getTextPos(),G);if($||($=[]),$.push(pe),G===4){te.scan();break}}return k={leadingTrivia:F,trailingTrivia:$,token:Y},T(k,R)}function H(R,b){var G=te.getToken();switch(K=0,b){case 1:if(G===31){K=1;var Y=te.reScanGreaterToken();return e.Debug.assert(R.kind===Y),Y}break;case 2:if(M(G)){K=2;var Y=te.reScanSlashToken();return e.Debug.assert(R.kind===Y),Y}break;case 3:if(G===19)return K=3,te.reScanTemplateToken(!1);break;case 4:return K=4,te.scanJsxIdentifier();case 5:return K=5,te.reScanJsxToken(!1);case 6:return K=6,te.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(b)}return G}function w(){return e.Debug.assert(B()),c.createTextRangeWithKind(te.getStartPos(),te.getTextPos(),1)}function d(){var R=k?k.token.kind:te.getToken(),b=k?k.token.pos:te.getStartPos();return b<y&&R!==1&&!e.isTrivia(R)}function B(){var R=k?k.token.kind:te.getToken();return R===1}function T(R,b){return e.isToken(b)&&R.token.kind!==b.kind&&(R.token.kind=b.kind),R}function _(R){te.setTextPos(R.end),C=te.getStartPos(),K=void 0,k=void 0,E=!1,F=void 0,$=void 0}function h(R){te.setTextPos(R.pos),C=te.getStartPos(),K=void 0,k=void 0,E=!1,F=void 0,$=void 0}}c.getFormattingScanner=I})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.anyContext=e.emptyArray;var u;(function(p){p[p.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",p[p.StopProcessingTokenActions=2]="StopProcessingTokenActions",p[p.InsertSpace=4]="InsertSpace",p[p.InsertNewLine=8]="InsertNewLine",p[p.DeleteSpace=16]="DeleteSpace",p[p.DeleteToken=32]="DeleteToken",p[p.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",p[p.StopAction=3]="StopAction",p[p.ModifySpaceAction=28]="ModifySpaceAction",p[p.ModifyTokenAction=96]="ModifyTokenAction"})(u=c.RuleAction||(c.RuleAction={}));var g;(function(p){p[p.None=0]="None",p[p.CanDeleteNewLines=1]="CanDeleteNewLines"})(g=c.RuleFlags||(c.RuleFlags={}))})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(){for(var i=[],Mr=0;Mr<=159;Mr++)Mr!==1&&i.push(Mr);function fr(){for(var Zr=[],ir=0;ir<arguments.length;ir++)Zr[ir]=arguments[ir];return{tokens:i.filter(function(ge){return!Zr.some(function(rr){return rr===ge})}),isSpecific:!1}}var Ar={tokens:i,isSpecific:!1},de=p(Bt(Bt([],i,!0),[3],!1)),we=p(Bt(Bt([],i,!0),[1],!1)),qe=V(81,159),Cr=V(29,78),kr=[101,102,159,127,139],He=[45,46,54,53],lr=[8,9,79,20,22,18,108,103],Hr=[79,20,108,103],Je=[79,21,23,103],Sr=[79,20,108,103],Yr=[79,21,23,103],ot=[2,3],_t=Bt([79],e.typeKeywords,!0),kt=de,Yt=p([79,3,84,93,100]),vn=p([21,3,90,111,96,91]),Mn=[g("IgnoreBeforeComment",Ar,ot,c.anyContext,1),g("IgnoreAfterLineComment",2,Ar,c.anyContext,1),g("NotSpaceBeforeColon",Ar,58,[D,K,k],16),g("SpaceAfterColon",58,Ar,[D,K],4),g("NoSpaceBeforeQuestionMark",Ar,57,[D,K,k],16),g("SpaceAfterQuestionMarkInConditionalOperator",57,Ar,[D,O],4),g("NoSpaceAfterQuestionMark",57,Ar,[D],16),g("NoSpaceBeforeDot",Ar,[24,28],[D],16),g("NoSpaceAfterDot",[24,28],Ar,[D],16),g("NoSpaceBetweenImportParenInImportType",100,20,[D,ae],16),g("NoSpaceAfterUnaryPrefixOperator",He,lr,[D,K],16),g("NoSpaceAfterUnaryPreincrementOperator",45,Hr,[D],16),g("NoSpaceAfterUnaryPredecrementOperator",46,Sr,[D],16),g("NoSpaceBeforeUnaryPostincrementOperator",Je,45,[D,Nr],16),g("NoSpaceBeforeUnaryPostdecrementOperator",Yr,46,[D,Nr],16),g("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[D,C],4),g("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[D,C],4),g("SpaceAfterAddWhenFollowedByPreincrement",39,45,[D,C],4),g("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[D,C],4),g("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[D,C],4),g("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[D,C],4),g("NoSpaceAfterCloseBrace",19,[27,26],[D],16),g("NewLineBeforeCloseBraceInBlockContext",de,19,[re],8),g("SpaceAfterCloseBrace",19,fr(21),[D,_],4),g("SpaceBetweenCloseBraceAndElse",19,91,[D],4),g("SpaceBetweenCloseBraceAndWhile",19,115,[D],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[D,R],16),g("SpaceAfterConditionalClosingParen",21,22,[h],4),g("NoSpaceBetweenFunctionKeywordAndStar",98,41,[d],16),g("SpaceAfterStarInGeneratorDeclaration",41,79,[d],4),g("SpaceAfterFunctionInFuncDecl",98,Ar,[H],4),g("NewLineAfterOpenBraceInBlockContext",18,Ar,[re],8),g("SpaceAfterGetSetInMember",[136,148],79,[H],4),g("NoSpaceBetweenYieldKeywordAndStar",125,41,[D,gr],16),g("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],Ar,[D,gr],4),g("NoSpaceBetweenReturnAndSemicolon",105,26,[D],16),g("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],Ar,[D],4),g("SpaceAfterLetConstInVariableDeclaration",[119,85],Ar,[D,se],4),g("NoSpaceBeforeOpenParenInFuncCall",Ar,20,[D,Y,pe],16),g("SpaceBeforeBinaryKeywordOperator",Ar,kr,[D,C],4),g("SpaceAfterBinaryKeywordOperator",kr,Ar,[D,C],4),g("SpaceAfterVoidOperator",114,Ar,[D,Ve],4),g("SpaceBetweenAsyncAndOpenParen",131,20,[Se,D],4),g("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[D],4),g("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[D],16),g("SpaceBeforeJsxAttribute",Ar,79,[le,D],4),g("SpaceBeforeSlashInJsxOpeningElement",Ar,43,[Me,D],4),g("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[Me,D],16),g("NoSpaceBeforeEqualInJsxAttribute",Ar,63,[Te,D],16),g("NoSpaceAfterEqualInJsxAttribute",63,Ar,[Te,D],16),g("NoSpaceAfterModuleImport",[141,145],20,[D],16),g("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,144,148,124,151,155,140,137],Ar,[D],4),g("SpaceBeforeCertainTypeScriptKeywords",Ar,[94,117,155],[D],4),g("SpaceAfterModuleName",10,18,[Re],4),g("SpaceBeforeArrow",Ar,38,[D],4),g("SpaceAfterArrow",38,Ar,[D],4),g("NoSpaceAfterEllipsis",25,79,[D],16),g("NoSpaceAfterOptionalParameters",57,[21,27],[D,K],16),g("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[D,ce],16),g("NoSpaceBeforeOpenAngularBracket",_t,29,[D,Ne],16),g("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[D,Ne],16),g("NoSpaceAfterOpenAngularBracket",29,Ar,[D,Ne],16),g("NoSpaceBeforeCloseAngularBracket",Ar,31,[D,Ne],16),g("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[D,Ne,w],16),g("SpaceBeforeAt",[21,79],59,[D],4),g("NoSpaceAfterAt",59,Ar,[D],16),g("SpaceAfterDecorator",Ar,[126,79,93,88,84,124,123,121,122,136,148,22,41],[Ae],4),g("NoSpaceBeforeNonNullAssertionOperator",Ar,53,[D,Er],16),g("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[D,Ue],16),g("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[D],4)],qn=[g("SpaceAfterConstructor",134,20,[m("insertSpaceAfterConstructor"),D],4),g("NoSpaceAfterConstructor",134,20,[j("insertSpaceAfterConstructor"),D],16),g("SpaceAfterComma",27,Ar,[m("insertSpaceAfterCommaDelimiter"),D,ne,A,_e],4),g("NoSpaceAfterComma",27,Ar,[j("insertSpaceAfterCommaDelimiter"),D,ne],16),g("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[m("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),H],4),g("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[j("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),H],16),g("SpaceAfterKeywordInControl",qe,20,[m("insertSpaceAfterKeywordsInControlFlowStatements"),h],4),g("NoSpaceAfterKeywordInControl",qe,20,[j("insertSpaceAfterKeywordsInControlFlowStatements"),h],16),g("SpaceAfterOpenParen",20,Ar,[m("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),D],4),g("SpaceBeforeCloseParen",Ar,21,[m("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),D],4),g("SpaceBetweenOpenParens",20,20,[m("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),D],4),g("NoSpaceBetweenParens",20,21,[D],16),g("NoSpaceAfterOpenParen",20,Ar,[j("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),D],16),g("NoSpaceBeforeCloseParen",Ar,21,[j("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),D],16),g("SpaceAfterOpenBracket",22,Ar,[m("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),D],4),g("SpaceBeforeCloseBracket",Ar,23,[m("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),D],4),g("NoSpaceBetweenBrackets",22,23,[D],16),g("NoSpaceAfterOpenBracket",22,Ar,[j("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),D],16),g("NoSpaceBeforeCloseBracket",Ar,23,[j("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),D],16),g("SpaceAfterOpenBrace",18,Ar,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),g("SpaceBeforeCloseBrace",Ar,19,[E("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ie],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[D,R],16),g("NoSpaceAfterOpenBrace",18,Ar,[y("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),D],16),g("NoSpaceBeforeCloseBrace",Ar,19,[y("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),D],16),g("SpaceBetweenEmptyBraceBrackets",18,19,[m("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),g("NoSpaceBetweenEmptyBraceBrackets",18,19,[y("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),D],16),g("SpaceAfterTemplateHeadAndMiddle",[15,16],Ar,[m("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),be],4,1),g("SpaceBeforeTemplateMiddleAndTail",Ar,[16,17],[m("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),D],4),g("NoSpaceAfterTemplateHeadAndMiddle",[15,16],Ar,[j("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),be],16,1),g("NoSpaceBeforeTemplateMiddleAndTail",Ar,[16,17],[j("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),D],16),g("SpaceAfterOpenBraceInJsxExpression",18,Ar,[m("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),D,J],4),g("SpaceBeforeCloseBraceInJsxExpression",Ar,19,[m("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),D,J],4),g("NoSpaceAfterOpenBraceInJsxExpression",18,Ar,[j("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),D,J],16),g("NoSpaceBeforeCloseBraceInJsxExpression",Ar,19,[j("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),D,J],16),g("SpaceAfterSemicolonInFor",26,Ar,[m("insertSpaceAfterSemicolonInForStatements"),D,F],4),g("NoSpaceAfterSemicolonInFor",26,Ar,[j("insertSpaceAfterSemicolonInForStatements"),D,F],16),g("SpaceBeforeBinaryOperator",Ar,Cr,[m("insertSpaceBeforeAndAfterBinaryOperators"),D,C],4),g("SpaceAfterBinaryOperator",Cr,Ar,[m("insertSpaceBeforeAndAfterBinaryOperators"),D,C],4),g("NoSpaceBeforeBinaryOperator",Ar,Cr,[j("insertSpaceBeforeAndAfterBinaryOperators"),D,C],16),g("NoSpaceAfterBinaryOperator",Cr,Ar,[j("insertSpaceBeforeAndAfterBinaryOperators"),D,C],16),g("SpaceBeforeOpenParenInFuncDecl",Ar,20,[m("insertSpaceBeforeFunctionParenthesis"),D,H],4),g("NoSpaceBeforeOpenParenInFuncDecl",Ar,20,[j("insertSpaceBeforeFunctionParenthesis"),D,H],16),g("NewLineBeforeOpenBraceInControl",vn,18,[m("placeOpenBraceOnNewLineForControlBlocks"),h,Z],8,1),g("NewLineBeforeOpenBraceInFunction",kt,18,[m("placeOpenBraceOnNewLineForFunctions"),H,Z],8,1),g("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Yt,18,[m("placeOpenBraceOnNewLineForFunctions"),B,Z],8,1),g("SpaceAfterTypeAssertion",31,Ar,[m("insertSpaceAfterTypeAssertion"),D,ve],4),g("NoSpaceAfterTypeAssertion",31,Ar,[j("insertSpaceAfterTypeAssertion"),D,ve],16),g("SpaceBeforeTypeAnnotation",Ar,[57,58],[m("insertSpaceBeforeTypeAnnotation"),D,X],4),g("NoSpaceBeforeTypeAnnotation",Ar,[57,58],[j("insertSpaceBeforeTypeAnnotation"),D,X],16),g("NoOptionalSemicolon",26,we,[L("semicolons",e.SemicolonPreference.Remove),xr],32),g("OptionalSemicolon",Ar,we,[L("semicolons",e.SemicolonPreference.Insert),sr],64)],nr=[g("NoSpaceBeforeSemicolon",Ar,26,[D],16),g("SpaceBeforeOpenBraceInControl",vn,18,[te("placeOpenBraceOnNewLineForControlBlocks"),h,xe,x],4,1),g("SpaceBeforeOpenBraceInFunction",kt,18,[te("placeOpenBraceOnNewLineForFunctions"),H,M,xe,x],4,1),g("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Yt,18,[te("placeOpenBraceOnNewLineForFunctions"),B,xe,x],4,1),g("NoSpaceBeforeComma",Ar,27,[D],16),g("NoSpaceBeforeOpenBracket",fr(131,82),22,[D],16),g("NoSpaceAfterCloseBracket",23,Ar,[D,Ke],16),g("SpaceAfterSemicolon",26,Ar,[D],4),g("SpaceBetweenForAndAwaitKeyword",97,132,[D],4),g("SpaceBetweenStatements",[21,90,91,82],Ar,[D,ne,$],4),g("SpaceAfterTryCatchFinally",[111,83,96],18,[D],4)];return Bt(Bt(Bt([],Mn,!0),qn,!0),nr,!0)}c.getAllRules=u;function g(i,Mr,fr,Ar,de,we){return we===void 0&&(we=0),{leftTokenRange:I(Mr),rightTokenRange:I(fr),rule:{debugName:i,context:Ar,action:de,flags:we}}}function p(i){return{tokens:i,isSpecific:!0}}function I(i){return typeof i=="number"?p([i]):e.isArray(i)?p(i):i}function V(i,Mr,fr){fr===void 0&&(fr=[]);for(var Ar=[],de=i;de<=Mr;de++)e.contains(fr,de)||Ar.push(de);return p(Ar)}function L(i,Mr){return function(fr){return fr.options&&fr.options[i]===Mr}}function m(i){return function(Mr){return Mr.options&&Mr.options.hasOwnProperty(i)&&!!Mr.options[i]}}function y(i){return function(Mr){return Mr.options&&Mr.options.hasOwnProperty(i)&&!Mr.options[i]}}function j(i){return function(Mr){return!Mr.options||!Mr.options.hasOwnProperty(i)||!Mr.options[i]}}function te(i){return function(Mr){return!Mr.options||!Mr.options.hasOwnProperty(i)||!Mr.options[i]||Mr.TokensAreOnSameLine()}}function E(i){return function(Mr){return!Mr.options||!Mr.options.hasOwnProperty(i)||!!Mr.options[i]}}function F(i){return i.contextNode.kind===241}function $(i){return!F(i)}function C(i){switch(i.contextNode.kind){case 220:return i.contextNode.operatorToken.kind!==27;case 221:case 188:case 228:case 274:case 269:case 176:case 186:case 187:return!0;case 202:case 258:case 264:case 270:case 253:case 163:case 297:case 166:case 165:return i.currentTokenSpan.kind===63||i.nextTokenSpan.kind===63;case 242:case 162:return i.currentTokenSpan.kind===101||i.nextTokenSpan.kind===101||i.currentTokenSpan.kind===63||i.nextTokenSpan.kind===63;case 243:return i.currentTokenSpan.kind===159||i.nextTokenSpan.kind===159}return!1}function K(i){return!C(i)}function k(i){return!X(i)}function X(i){var Mr=i.contextNode.kind;return Mr===166||Mr===165||Mr===163||Mr===253||e.isFunctionLikeKind(Mr)}function O(i){return i.contextNode.kind===221||i.contextNode.kind===188}function x(i){return i.TokensAreOnSameLine()||M(i)}function ie(i){return i.contextNode.kind===200||i.contextNode.kind===194||q(i)}function Z(i){return M(i)&&!(i.NextNodeAllOnSameLine()||i.NextNodeBlockIsOnOneLine())}function re(i){return P(i)&&!(i.ContextNodeAllOnSameLine()||i.ContextNodeBlockIsOnOneLine())}function q(i){return P(i)&&(i.ContextNodeAllOnSameLine()||i.ContextNodeBlockIsOnOneLine())}function P(i){return Q(i.contextNode)}function M(i){return Q(i.nextTokenParent)}function Q(i){if(T(i))return!0;switch(i.kind){case 234:case 262:case 204:case 261:return!0}return!1}function H(i){switch(i.contextNode.kind){case 255:case 168:case 167:case 171:case 172:case 173:case 212:case 170:case 213:case 257:return!0}return!1}function w(i){return!H(i)}function d(i){return i.contextNode.kind===255||i.contextNode.kind===212}function B(i){return T(i.contextNode)}function T(i){switch(i.kind){case 256:case 225:case 257:case 259:case 181:case 260:case 271:case 272:case 265:case 268:return!0}return!1}function _(i){switch(i.currentTokenParent.kind){case 256:case 260:case 259:case 291:case 261:case 248:return!0;case 234:{var Mr=i.currentTokenParent.parent;if(!Mr||Mr.kind!==213&&Mr.kind!==212)return!0}}return!1}function h(i){switch(i.contextNode.kind){case 238:case 248:case 241:case 242:case 243:case 240:case 251:case 239:case 247:case 291:return!0;default:return!1}}function R(i){return i.contextNode.kind===204}function b(i){return i.contextNode.kind===207}function G(i){return i.contextNode.kind===208}function Y(i){return b(i)||G(i)}function pe(i){return i.currentTokenSpan.kind!==27}function A(i){return i.nextTokenSpan.kind!==23}function _e(i){return i.nextTokenSpan.kind!==21}function Se(i){return i.contextNode.kind===213}function ae(i){return i.contextNode.kind===199}function D(i){return i.TokensAreOnSameLine()&&i.contextNode.kind!==11}function be(i){return i.contextNode.kind!==11}function ne(i){return i.contextNode.kind!==277&&i.contextNode.kind!==281}function J(i){return i.contextNode.kind===287||i.contextNode.kind===286}function le(i){return i.nextTokenParent.kind===284}function Te(i){return i.contextNode.kind===284}function Me(i){return i.contextNode.kind===278}function Ke(i){return!H(i)&&!M(i)}function Ae(i){return i.TokensAreOnSameLine()&&!!i.contextNode.decorators&&Ge(i.currentTokenParent)&&!Ge(i.nextTokenParent)}function Ge(i){for(;e.isExpressionNode(i);)i=i.parent;return i.kind===164}function se(i){return i.currentTokenParent.kind===254&&i.currentTokenParent.getStart(i.sourceFile)===i.currentTokenSpan.pos}function xe(i){return i.formattingRequestKind!==2}function Re(i){return i.contextNode.kind===260}function ce(i){return i.contextNode.kind===181}function Ue(i){return i.contextNode.kind===174}function We(i,Mr){if(i.kind!==29&&i.kind!==31)return!1;switch(Mr.kind){case 177:case 210:case 258:case 256:case 225:case 257:case 255:case 212:case 213:case 168:case 167:case 173:case 174:case 207:case 208:case 227:return!0;default:return!1}}function Ne(i){return We(i.currentTokenSpan,i.currentTokenParent)||We(i.nextTokenSpan,i.nextTokenParent)}function ve(i){return i.contextNode.kind===210}function Ve(i){return i.currentTokenSpan.kind===114&&i.currentTokenParent.kind===216}function gr(i){return i.contextNode.kind===223&&i.contextNode.expression!==void 0}function Er(i){return i.contextNode.kind===229}function Nr(i){return!ur(i)}function ur(i){switch(i.contextNode.kind){case 238:case 241:case 242:case 243:case 239:case 240:return!0;default:return!1}}function xr(i){var Mr=i.nextTokenSpan.kind,fr=i.nextTokenSpan.pos;if(e.isTrivia(Mr)){var Ar=i.nextTokenParent===i.currentTokenParent?e.findNextToken(i.currentTokenParent,e.findAncestor(i.currentTokenParent,function(qe){return!qe.parent}),i.sourceFile):i.nextTokenParent.getFirstToken(i.sourceFile);if(!Ar)return!0;Mr=Ar.kind,fr=Ar.getStart(i.sourceFile)}var de=i.sourceFile.getLineAndCharacterOfPosition(i.currentTokenSpan.pos).line,we=i.sourceFile.getLineAndCharacterOfPosition(fr).line;return de===we?Mr===19||Mr===1:Mr===233||Mr===26?!1:i.contextNode.kind===257||i.contextNode.kind===258?!e.isPropertySignature(i.currentTokenParent)||!!i.currentTokenParent.type||Mr!==20:e.isPropertyDeclaration(i.currentTokenParent)?!i.currentTokenParent.initializer:i.currentTokenParent.kind!==241&&i.currentTokenParent.kind!==235&&i.currentTokenParent.kind!==233&&Mr!==22&&Mr!==20&&Mr!==39&&Mr!==40&&Mr!==43&&Mr!==13&&Mr!==27&&Mr!==222&&Mr!==15&&Mr!==14&&Mr!==24}function sr(i){return e.positionIsASICandidate(i.currentTokenSpan.end,i.currentTokenParent,i.sourceFile)}})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(K,k){return{options:K,getRules:p(),host:k}}c.getFormatContext=u;var g;function p(){return g===void 0&&(g=V(c.getAllRules())),g}function I(K){var k=0;return K&1&&(k|=28),K&2&&(k|=96),K&28&&(k|=28),K&96&&(k|=96),k}function V(K){var k=L(K);return function(X){var O=k[m(X.currentTokenSpan.kind,X.nextTokenSpan.kind)];if(O){for(var x=[],ie=0,Z=0,re=O;Z<re.length;Z++){var q=re[Z],P=~I(ie);q.action&P&&e.every(q.context,function(M){return M(X)})&&(x.push(q),ie|=q.action)}if(x.length)return x}}}function L(K){for(var k=new Array(te*te),X=new Array(k.length),O=0,x=K;O<x.length;O++)for(var ie=x[O],Z=ie.leftTokenRange.isSpecific&&ie.rightTokenRange.isSpecific,re=0,q=ie.leftTokenRange.tokens;re<q.length;re++)for(var P=q[re],M=0,Q=ie.rightTokenRange.tokens;M<Q.length;M++){var H=Q[M],w=m(P,H),d=k[w];d===void 0&&(d=k[w]=[]),F(d,ie.rule,Z,X,w)}return k}function m(K,k){return e.Debug.assert(K<=159&&k<=159,"Must compute formatting context from tokens"),K*te+k}var y=5,j=31,te=159+1,E;(function(K){K[K.StopRulesSpecific=0]="StopRulesSpecific",K[K.StopRulesAny=y*1]="StopRulesAny",K[K.ContextRulesSpecific=y*2]="ContextRulesSpecific",K[K.ContextRulesAny=y*3]="ContextRulesAny",K[K.NoContextRulesSpecific=y*4]="NoContextRulesSpecific",K[K.NoContextRulesAny=y*5]="NoContextRulesAny"})(E||(E={}));function F(K,k,X,O,x){var ie=k.action&3?X?E.StopRulesSpecific:E.StopRulesAny:k.context!==c.anyContext?X?E.ContextRulesSpecific:E.ContextRulesAny:X?E.NoContextRulesSpecific:E.NoContextRulesAny,Z=O[x]||0;K.splice($(Z,ie),0,k),O[x]=C(Z,ie)}function $(K,k){for(var X=0,O=0;O<=k;O+=y)X+=K&j,K>>=y;return X}function C(K,k){var X=(K>>k&j)+1;return e.Debug.assert((X&j)===X,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),K&~(j<<k)|X<<k}})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(w,d,B){var T={pos:w,end:d,kind:B};return e.Debug.isDebugging&&Object.defineProperty(T,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(B)}}),T}c.createTextRangeWithKind=u;var g;(function(w){w[w.Unknown=-1]="Unknown"})(g||(g={}));function p(w,d,B){var T=d.getLineAndCharacterOfPosition(w).line;if(T===0)return[];for(var _=e.getEndLinePosition(T,d);e.isWhiteSpaceSingleLine(d.text.charCodeAt(_));)_--;e.isLineBreak(d.text.charCodeAt(_))&&_--;var h={pos:e.getStartPositionOfLine(T-1,d),end:_+1};return O(h,d,B,2)}c.formatOnEnter=p;function I(w,d,B){var T=j(w,26,d);return X(te(T),d,B,3)}c.formatOnSemicolon=I;function V(w,d,B){var T=j(w,18,d);if(!T)return[];var _=T.parent,h=te(_),R={pos:e.getLineStartPositionForPosition(h.getStart(d),d),end:w};return O(R,d,B,4)}c.formatOnOpeningCurly=V;function L(w,d,B){var T=j(w,19,d);return X(te(T),d,B,5)}c.formatOnClosingCurly=L;function m(w,d){var B={pos:0,end:w.text.length};return O(B,w,d,0)}c.formatDocument=m;function y(w,d,B,T){var _={pos:e.getLineStartPositionForPosition(w,B),end:d};return O(_,B,T,1)}c.formatSelection=y;function j(w,d,B){var T=e.findPrecedingToken(w,B);return T&&T.kind===d&&w===T.getEnd()?T:void 0}function te(w){for(var d=w;d&&d.parent&&d.parent.end===w.end&&!E(d.parent,d);)d=d.parent;return d}function E(w,d){switch(w.kind){case 256:case 257:return e.rangeContainsRange(w.members,d);case 260:var B=w.body;return!!B&&B.kind===261&&e.rangeContainsRange(B.statements,d);case 303:case 234:case 261:return e.rangeContainsRange(w.statements,d);case 291:return e.rangeContainsRange(w.block.statements,d)}return!1}function F(w,d){return B(d);function B(T){var _=e.forEachChild(T,function(R){return e.startEndContainsRange(R.getStart(d),R.end,w)&&R});if(_){var h=B(_);if(h)return h}return T}}function $(w,d){if(!w.length)return _;var B=w.filter(function(h){return e.rangeOverlapsWithStartEnd(d,h.start,h.start+h.length)}).sort(function(h,R){return h.start-R.start});if(!B.length)return _;var T=0;return function(h){for(;;){if(T>=B.length)return!1;var R=B[T];if(h.end<=R.start)return!1;if(e.startEndOverlapsWithStartEnd(h.pos,h.end,R.start,R.start+R.length))return!0;T++}};function _(){return!1}}function C(w,d,B){var T=w.getStart(B);if(T===d.pos&&w.end===d.end)return T;var _=e.findPrecedingToken(d.pos,B);return!_||_.end>=d.pos?w.pos:_.end}function K(w,d,B){for(var T=-1,_;w;){var h=B.getLineAndCharacterOfPosition(w.getStart(B)).line;if(T!==-1&&h!==T)break;if(c.SmartIndenter.shouldIndentChildNode(d,w,_,B))return d.indentSize;T=h,_=w,w=w.parent}return 0}function k(w,d,B,T,_,h){var R={pos:0,end:d.text.length};return c.getFormattingScanner(d.text,B,R.pos,R.end,function(b){return x(R,w,T,_,b,h,1,function(G){return!1},d)})}c.formatNodeGivenIndentation=k;function X(w,d,B,T){if(!w)return[];var _={pos:e.getLineStartPositionForPosition(w.getStart(d),d),end:w.end};return O(_,d,B,T)}function O(w,d,B,T){var _=F(w,d);return c.getFormattingScanner(d.text,d.languageVariant,C(_,w,d),w.end,function(h){return x(w,_,c.SmartIndenter.getIndentationForNode(_,w,d,B.options),K(_,B.options,d),h,B,T,$(d.parseDiagnostics,w),d)})}function x(w,d,B,T,_,h,R,b,G){var Y=h.options,pe=h.getRules,A=h.host,_e=new c.FormattingContext(G,R,Y),Se,ae,D,be,ne=-1,J=[];if(_.advance(),_.isOnToken()){var le=G.getLineAndCharacterOfPosition(d.getStart(G)).line,Te=le;d.decorators&&(Te=G.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(d,G)).line),Re(d,d,le,Te,B,T)}if(!_.isOnToken()){var Me=c.SmartIndenter.nodeWillIndentChild(Y,d,void 0,G,!1)?B+Y.indentSize:B,Ke=_.getCurrentLeadingTrivia();Ke&&(ce(Ke,Me,!1,function(de){return We(de,G.getLineAndCharacterOfPosition(de.pos),d,d,void 0)}),Y.trimTrailingWhitespace!==!1&&xr(Ke))}return J;function Ae(de,we,qe,Cr,kr){if(e.rangeOverlapsWithStartEnd(Cr,de,we)||e.rangeContainsStartEnd(Cr,de,we)){if(kr!==-1)return kr}else{var He=G.getLineAndCharacterOfPosition(de).line,lr=e.getLineStartPositionForPosition(de,G),Hr=c.SmartIndenter.findFirstNonWhitespaceColumn(lr,de,G,Y);if(He!==qe||de===Hr){var Je=c.SmartIndenter.getBaseIndentation(Y);return Je>Hr?Je:Hr}}return-1}function Ge(de,we,qe,Cr,kr,He){var lr=c.SmartIndenter.shouldIndentChildNode(Y,de)?Y.indentSize:0;return He===we?{indentation:we===be?ne:kr.getIndentation(),delta:Math.min(Y.indentSize,kr.getDelta(de)+lr)}:qe===-1?de.kind===20&&we===be?{indentation:ne,delta:kr.getDelta(de)}:c.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(Cr,de,we,G)||c.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(Cr,de,we,G)||c.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(Cr,de,we,G)?{indentation:kr.getIndentation(),delta:lr}:{indentation:kr.getIndentation()+kr.getDelta(de),delta:lr}:{indentation:qe,delta:lr}}function se(de){if(de.modifiers&&de.modifiers.length)return de.modifiers[0].kind;switch(de.kind){case 256:return 84;case 257:return 118;case 255:return 98;case 259:return 259;case 171:return 136;case 172:return 148;case 168:if(de.asteriskToken)return 41;case 166:case 163:var we=e.getNameOfDeclaration(de);if(we)return we.kind}}function xe(de,we,qe,Cr){return{getIndentationForComment:function(lr,Hr,Je){switch(lr){case 19:case 23:case 21:return qe+He(Je)}return Hr!==-1?Hr:qe},getIndentationForToken:function(lr,Hr,Je,Sr){return!Sr&&kr(lr,Hr,Je)?qe+He(Je):qe},getIndentation:function(){return qe},getDelta:He,recomputeIndentation:function(lr,Hr){c.SmartIndenter.shouldIndentChildNode(Y,Hr,de,G)&&(qe+=lr?Y.indentSize:-Y.indentSize,Cr=c.SmartIndenter.shouldIndentChildNode(Y,de)?Y.indentSize:0)}};function kr(lr,Hr,Je){switch(Hr){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(Je.kind){case 279:case 280:case 278:case 227:return!1}break;case 22:case 23:if(Je.kind!==194)return!1;break}return we!==lr&&!(de.decorators&&Hr===se(de))}function He(lr){return c.SmartIndenter.nodeWillIndentChild(Y,de,lr,G,!0)?Cr:0}}function Re(de,we,qe,Cr,kr,He){if(!e.rangeOverlapsWithStartEnd(w,de.getStart(G),de.getEnd()))return;var lr=xe(de,qe,kr,He),Hr=we;for(e.forEachChild(de,function(kt){Yr(kt,-1,de,lr,qe,Cr,!1)},function(kt){ot(kt,de,qe,lr)});_.isOnToken();){var Je=_.readTokenInfo(de);if(Je.token.end>de.end)break;_t(Je,de,lr,de)}if(!de.parent&&_.isOnEOF()){var Sr=_.readEOFTokenRange();Sr.end<=de.end&&Se&&Ne(Sr,G.getLineAndCharacterOfPosition(Sr.pos).line,de,Se,D,ae,we,lr)}function Yr(kt,Yt,vn,Mn,qn,nr,Zr,ir){var ge=kt.getStart(G),rr=G.getLineAndCharacterOfPosition(ge).line,pr=rr;kt.decorators&&(pr=G.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(kt,G)).line);var Lr=-1;if(Zr&&e.rangeContainsRange(w,vn)&&(Lr=Ae(ge,kt.end,qn,w,Yt),Lr!==-1&&(Yt=Lr)),!e.rangeOverlapsWithStartEnd(w,kt.pos,kt.end))return kt.end<w.pos&&_.skipToEndOf(kt),Yt;if(kt.getFullWidth()===0)return Yt;for(;_.isOnToken();){var Ce=_.readTokenInfo(de);if(Ce.token.end>ge){Ce.token.pos>ge&&_.skipToStartOf(kt);break}_t(Ce,de,Mn,de)}if(!_.isOnToken())return Yt;if(e.isToken(kt)){var Ce=_.readTokenInfo(kt);if(kt.kind!==11)return e.Debug.assert(Ce.token.end===kt.end,"Token end is child end"),_t(Ce,de,Mn,kt),Yt}var cr=kt.kind===164?rr:nr,$e=Ge(kt,rr,Lr,de,Mn,cr);return Re(kt,Hr,rr,pr,$e.indentation,$e.delta),Hr=de,ir&&vn.kind===203&&Yt===-1&&(Yt=$e.indentation),Yt}function ot(kt,Yt,vn,Mn){e.Debug.assert(e.isNodeArray(kt));var qn=re(Yt,kt),nr=Mn,Zr=vn;if(qn!==0)for(;_.isOnToken();){var ir=_.readTokenInfo(Yt);if(ir.token.end>kt.pos)break;if(ir.token.kind===qn){Zr=G.getLineAndCharacterOfPosition(ir.token.pos).line,_t(ir,Yt,Mn,Yt);var ge=void 0;if(ne!==-1)ge=ne;else{var rr=e.getLineStartPositionForPosition(ir.token.pos,G);ge=c.SmartIndenter.findFirstNonWhitespaceColumn(rr,ir.token.pos,G,Y)}nr=xe(Yt,vn,ge,Y.indentSize)}else _t(ir,Yt,Mn,Yt)}for(var pr=-1,Lr=0;Lr<kt.length;Lr++){var Ce=kt[Lr];pr=Yr(Ce,pr,de,nr,Zr,Zr,!0,Lr===0)}var cr=q(qn);if(cr!==0&&_.isOnToken()){var ir=_.readTokenInfo(Yt);if(ir.token.kind===27&&e.isCallLikeExpression(Yt)){var $e=G.getLineAndCharacterOfPosition(ir.token.pos).line;Zr!==$e&&(_.advance(),ir=_.isOnToken()?_.readTokenInfo(Yt):void 0)}ir&&ir.token.kind===cr&&e.rangeContainsRange(Yt,ir.token)&&_t(ir,Yt,nr,Yt,!0)}}function _t(kt,Yt,vn,Mn,qn){e.Debug.assert(e.rangeContainsRange(Yt,kt.token));var nr=_.lastTrailingTriviaWasNewLine(),Zr=!1;kt.leadingTrivia&&Ue(kt.leadingTrivia,Yt,Hr,vn);var ir=0,ge=e.rangeContainsRange(w,kt.token),rr=G.getLineAndCharacterOfPosition(kt.token.pos);if(ge){var pr=b(kt.token),Lr=Se;if(ir=We(kt.token,rr,Yt,Hr,vn),!pr)if(ir===0){var Ce=Lr&&G.getLineAndCharacterOfPosition(Lr.end).line;Zr=nr&&rr.line!==Ce}else Zr=ir===1}if(kt.trailingTrivia&&Ue(kt.trailingTrivia,Yt,Hr,vn),Zr){var cr=ge&&!b(kt.token)?vn.getIndentationForToken(rr.line,kt.token.kind,Mn,!!qn):-1,$e=!0;if(kt.leadingTrivia){var De=vn.getIndentationForComment(kt.token.kind,cr,Mn);$e=ce(kt.leadingTrivia,De,$e,function(z){return ve(z.pos,De,!1)})}cr!==-1&&$e&&(ve(kt.token.pos,cr,ir===1),be=rr.line,ne=cr)}_.advance(),Hr=Yt}}function ce(de,we,qe,Cr){for(var kr=0,He=de;kr<He.length;kr++){var lr=He[kr],Hr=e.rangeContainsRange(w,lr);switch(lr.kind){case 3:Hr&&Er(lr,we,!qe),qe=!1;break;case 2:qe&&Hr&&Cr(lr),qe=!1;break;case 4:qe=!0;break}}return qe}function Ue(de,we,qe,Cr){for(var kr=0,He=de;kr<He.length;kr++){var lr=He[kr];if(e.isComment(lr.kind)&&e.rangeContainsRange(w,lr)){var Hr=G.getLineAndCharacterOfPosition(lr.pos);We(lr,Hr,we,qe,Cr)}}}function We(de,we,qe,Cr,kr){var He=b(de),lr=0;if(!He)if(Se)lr=Ne(de,we.line,qe,Se,D,ae,Cr,kr);else{var Hr=G.getLineAndCharacterOfPosition(w.pos);Nr(Hr.line,we.line)}return Se=de,ae=qe,D=we.line,lr}function Ne(de,we,qe,Cr,kr,He,lr,Hr){_e.updateContext(Cr,He,de,qe,lr);var Je=pe(_e),Sr=_e.options.trimTrailingWhitespace!==!1,Yr=0;return Je?e.forEachRight(Je,function(ot){switch(Yr=Ar(ot,Cr,kr,de,we),Yr){case 2:qe.getStart(G)===de.pos&&Hr.recomputeIndentation(!1,lr);break;case 1:qe.getStart(G)===de.pos&&Hr.recomputeIndentation(!0,lr);break;default:e.Debug.assert(Yr===0)}Sr=Sr&&!(ot.action&16)&&ot.flags!==1}):Sr=Sr&&de.kind!==1,we!==kr&&Sr&&Nr(kr,we,Cr),Yr}function ve(de,we,qe){var Cr=H(we,Y);if(qe)Mr(de,0,Cr);else{var kr=G.getLineAndCharacterOfPosition(de),He=e.getStartPositionOfLine(kr.line,G);(we!==Ve(He,kr.character)||gr(Cr,He))&&Mr(He,kr.character,Cr)}}function Ve(de,we){for(var qe=0,Cr=0;Cr<we;Cr++)G.text.charCodeAt(de+Cr)===9?qe+=Y.tabSize-qe%Y.tabSize:qe++;return qe}function gr(de,we){return de!==G.text.substr(we,de.length)}function Er(de,we,qe,Cr){Cr===void 0&&(Cr=!0);var kr=G.getLineAndCharacterOfPosition(de.pos).line,He=G.getLineAndCharacterOfPosition(de.end).line;if(kr===He){qe||ve(de.pos,we,!1);return}for(var lr=[],Hr=de.pos,Je=kr;Je<He;Je++){var Sr=e.getEndLinePosition(Je,G);lr.push({pos:Hr,end:Sr}),Hr=e.getStartPositionOfLine(Je+1,G)}if(Cr&&lr.push({pos:Hr,end:de.end}),lr.length!==0){var Yr=e.getStartPositionOfLine(kr,G),ot=c.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(Yr,lr[0].pos,G,Y),_t=0;qe&&(_t=1,kr++);for(var kt=we-ot.column,Yt=_t;Yt<lr.length;Yt++,kr++){var vn=e.getStartPositionOfLine(kr,G),Mn=Yt===0?ot:c.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(lr[Yt].pos,lr[Yt].end,G,Y),qn=Mn.column+kt;if(qn>0){var nr=H(qn,Y);Mr(vn,Mn.character,nr)}else i(vn,Mn.character)}}}function Nr(de,we,qe){for(var Cr=de;Cr<we;Cr++){var kr=e.getStartPositionOfLine(Cr,G),He=e.getEndLinePosition(Cr,G);if(!(qe&&(e.isComment(qe.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(qe.kind))&&qe.pos<=He&&qe.end>He)){var lr=ur(kr,He);lr!==-1&&(e.Debug.assert(lr===kr||!e.isWhiteSpaceSingleLine(G.text.charCodeAt(lr-1))),i(lr,He+1-lr))}}}function ur(de,we){for(var qe=we;qe>=de&&e.isWhiteSpaceSingleLine(G.text.charCodeAt(qe));)qe--;return qe!==we?qe+1:-1}function xr(de){for(var we=Se?Se.end:w.pos,qe=0,Cr=de;qe<Cr.length;qe++){var kr=Cr[qe];e.isComment(kr.kind)&&(we<kr.pos&&sr(we,kr.pos-1,Se),we=kr.end+1)}we<w.end&&sr(we,w.end,Se)}function sr(de,we,qe){var Cr=G.getLineAndCharacterOfPosition(de).line,kr=G.getLineAndCharacterOfPosition(we).line;Nr(Cr,kr+1,qe)}function i(de,we){we&&J.push(e.createTextChangeFromStartLength(de,we,""))}function Mr(de,we,qe){(we||qe)&&J.push(e.createTextChangeFromStartLength(de,we,qe))}function fr(de,we){we&&J.push(e.createTextChangeFromStartLength(de,0,we))}function Ar(de,we,qe,Cr,kr){var He=kr!==qe;switch(de.action){case 1:return 0;case 16:if(we.end!==Cr.pos)return i(we.end,Cr.pos-we.end),He?2:0;break;case 32:i(we.pos,we.end-we.pos);break;case 8:if(de.flags!==1&&qe!==kr)return 0;var lr=kr-qe;if(lr!==1)return Mr(we.end,Cr.pos-we.end,e.getNewLineOrDefaultFromHost(A,Y)),He?0:1;break;case 4:if(de.flags!==1&&qe!==kr)return 0;var Hr=Cr.pos-we.end;if(Hr!==1||G.text.charCodeAt(we.end)!==32)return Mr(we.end,Cr.pos-we.end," "),He?2:0;break;case 64:fr(we.end,";")}return 0}}var ie;(function(w){w[w.None=0]="None",w[w.LineAdded=1]="LineAdded",w[w.LineRemoved=2]="LineRemoved"})(ie||(ie={}));function Z(w,d,B,T){T===void 0&&(T=e.getTokenAtPosition(w,d));var _=e.findAncestor(T,e.isJSDoc);_&&(T=_.parent);var h=T.getStart(w);if(!(h<=d&&d<T.getEnd())){B=B===null?void 0:B===void 0?e.findPrecedingToken(d,w):B;var R=B&&e.getTrailingCommentRanges(w.text,B.end),b=e.getLeadingCommentRangesOfNode(T,w),G=e.concatenate(R,b);return G&&e.find(G,function(Y){return e.rangeContainsPositionExclusive(Y,d)||d===Y.end&&(Y.kind===2||d===w.getFullWidth())})}}c.getRangeOfEnclosingComment=Z;function re(w,d){switch(w.kind){case 170:case 255:case 212:case 168:case 167:case 213:if(w.typeParameters===d)return 29;if(w.parameters===d)return 20;break;case 207:case 208:if(w.typeArguments===d)return 29;if(w.arguments===d)return 20;break;case 177:if(w.typeArguments===d)return 29;break;case 181:return 18}return 0}function q(w){switch(w){case 20:return 21;case 29:return 31;case 18:return 19}return 0}var P,M,Q;function H(w,d){var B=!P||P.tabSize!==d.tabSize||P.indentSize!==d.indentSize;if(B&&(P={tabSize:d.tabSize,indentSize:d.indentSize},M=Q=void 0),d.convertTabsToSpaces){var R=void 0,b=Math.floor(w/d.indentSize),G=w%d.indentSize;return Q||(Q=[]),Q[b]===void 0?(R=e.repeatString(" ",d.indentSize*b),Q[b]=R):R=Q[b],G?R+e.repeatString(" ",G):R}else{var T=Math.floor(w/d.tabSize),_=w-T*d.tabSize,h=void 0;return M||(M=[]),M[T]===void 0?M[T]=h=e.repeatString(" ",T):h=M[T],_?h+e.repeatString(" ",_):h}}c.getIndentationString=H})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p;(function(b){b[b.Unknown=-1]="Unknown"})(p||(p={}));function I(b,G,Y,pe){if(pe===void 0&&(pe=!1),b>G.text.length)return j(Y);if(Y.indentStyle===e.IndentStyle.None)return 0;var A=e.findPrecedingToken(b,G,void 0,!0),_e=c.getRangeOfEnclosingComment(G,b,A||null);if(_e&&_e.kind===3)return V(G,b,Y,_e);if(!A)return j(Y);var Se=e.isStringOrRegularExpressionOrTemplateLiteral(A.kind);if(Se&&A.getStart(G)<=b&&b<A.end)return 0;var ae=G.getLineAndCharacterOfPosition(b).line;if(Y.indentStyle===e.IndentStyle.Block)return L(G,b,Y);if(A.kind===27&&A.parent.kind!==220){var D=F(A,G,Y);if(D!==-1)return D}var be=re(b,A.parent,G);return be&&!e.rangeContainsRange(be,A)?M(be,G,Y)+Y.indentSize:m(G,b,A,ae,pe,Y)}g.getIndentation=I;function V(b,G,Y,pe){var A=e.getLineAndCharacterOfPosition(b,G).line-1,_e=e.getLineAndCharacterOfPosition(b,pe.pos).line;if(e.Debug.assert(_e>=0),A<=_e)return B(e.getStartPositionOfLine(_e,b),G,b,Y);var Se=e.getStartPositionOfLine(A,b),ae=d(Se,G,b,Y),D=ae.column,be=ae.character;if(D===0)return D;var ne=b.text.charCodeAt(Se+be);return ne===42?D-1:D}function L(b,G,Y){for(var pe=G;pe>0;){var A=b.text.charCodeAt(pe);if(!e.isWhiteSpaceLike(A))break;pe--}var _e=e.getLineStartPositionForPosition(pe,b);return B(_e,pe,b,Y)}function m(b,G,Y,pe,A,_e){for(var Se,ae=Y;ae;){if(e.positionBelongsToNode(ae,G,b)&&h(_e,ae,Se,b,!0)){var D=k(ae,b),be=K(Y,ae,pe,b),ne=be!==0?A&&be===2?_e.indentSize:0:pe!==D.line?_e.indentSize:0;return te(ae,D,void 0,ne,b,!0,_e)}var J=Q(ae,b,_e,!0);if(J!==-1)return J;Se=ae,ae=ae.parent}return j(_e)}function y(b,G,Y,pe){var A=Y.getLineAndCharacterOfPosition(b.getStart(Y));return te(b,A,G,0,Y,!1,pe)}g.getIndentationForNode=y;function j(b){return b.baseIndentSize||0}g.getBaseIndentation=j;function te(b,G,Y,pe,A,_e,Se){for(var ae,D=b.parent;D;){var be=!0;if(Y){var ne=b.getStart(A);be=ne<Y.pos||ne>Y.end}var J=E(D,b,A),le=J.line===G.line||O(D,b,G.line,A);if(be){var Te=(ae=Z(b,A))===null||ae===void 0?void 0:ae[0],Me=!!Te&&k(Te,A).line>J.line,Ke=Q(b,A,Se,Me);if(Ke!==-1||(Ke=$(b,D,G,le,A,Se),Ke!==-1))return Ke+pe}h(Se,D,b,A,_e)&&!le&&(pe+=Se.indentSize);var Ae=X(D,b,G.line,A);b=D,D=b.parent,G=Ae?A.getLineAndCharacterOfPosition(b.getStart(A)):J}return pe+j(Se)}function E(b,G,Y){var pe=Z(G,Y),A=pe?pe.pos:b.getStart(Y);return Y.getLineAndCharacterOfPosition(A)}function F(b,G,Y){var pe=e.findListItemInfo(b);return pe&&pe.listItemIndex>0?H(pe.list.getChildren(),pe.listItemIndex-1,G,Y):-1}function $(b,G,Y,pe,A,_e){var Se=(e.isDeclaration(b)||e.isStatementButNotDeclaration(b))&&(G.kind===303||!pe);return Se?w(Y,A,_e):-1}var C;(function(b){b[b.Unknown=0]="Unknown",b[b.OpenBrace=1]="OpenBrace",b[b.CloseBrace=2]="CloseBrace"})(C||(C={}));function K(b,G,Y,pe){var A=e.findNextToken(b,G,pe);if(!A)return 0;if(A.kind===18)return 1;if(A.kind===19){var _e=k(A,pe).line;return Y===_e?2:0}return 0}function k(b,G){return G.getLineAndCharacterOfPosition(b.getStart(G))}function X(b,G,Y,pe){if(!(e.isCallExpression(b)&&e.contains(b.arguments,G)))return!1;var A=b.expression.getEnd(),_e=e.getLineAndCharacterOfPosition(pe,A).line;return _e===Y}g.isArgumentAndStartLineOverlapsExpressionBeingCalled=X;function O(b,G,Y,pe){if(b.kind===238&&b.elseStatement===G){var A=e.findChildOfKind(b,91,pe);e.Debug.assert(A!==void 0);var _e=k(A,pe).line;return _e===Y}return!1}g.childStartsOnTheSameLineWithElseInIfStatement=O;function x(b,G,Y,pe){if(e.isConditionalExpression(b)&&(G===b.whenTrue||G===b.whenFalse)){var A=e.getLineAndCharacterOfPosition(pe,b.condition.end).line;if(G===b.whenTrue)return Y===A;var _e=k(b.whenTrue,pe).line,Se=e.getLineAndCharacterOfPosition(pe,b.whenTrue.end).line;return A===_e&&Se===Y}return!1}g.childIsUnindentedBranchOfConditionalExpression=x;function ie(b,G,Y,pe){if(e.isCallOrNewExpression(b)){if(!b.arguments)return!1;var A=e.find(b.arguments,function(D){return D.pos===G.pos});if(!A)return!1;var _e=b.arguments.indexOf(A);if(_e===0)return!1;var Se=b.arguments[_e-1],ae=e.getLineAndCharacterOfPosition(pe,Se.getEnd()).line;if(Y===ae)return!0}return!1}g.argumentStartsOnSameLineAsPreviousArgument=ie;function Z(b,G){return b.parent&&q(b.getStart(G),b.getEnd(),b.parent,G)}g.getContainingList=Z;function re(b,G,Y){return G&&q(b,b,G,Y)}function q(b,G,Y,pe){switch(Y.kind){case 177:return A(Y.typeArguments);case 204:return A(Y.properties);case 203:return A(Y.elements);case 181:return A(Y.members);case 255:case 212:case 213:case 168:case 167:case 173:case 170:case 179:case 174:return A(Y.typeParameters)||A(Y.parameters);case 256:case 225:case 257:case 258:case 342:return A(Y.typeParameters);case 208:case 207:return A(Y.typeArguments)||A(Y.arguments);case 254:return A(Y.declarations);case 268:case 272:return A(Y.elements);case 200:case 201:return A(Y.elements)}function A(_e){return _e&&e.rangeContainsStartEnd(P(Y,_e,pe),b,G)?_e:void 0}}function P(b,G,Y){for(var pe=b.getChildren(Y),A=1;A<pe.length-1;A++)if(pe[A].pos===G.pos&&pe[A].end===G.end)return{pos:pe[A-1].end,end:pe[A+1].getStart(Y)};return G}function M(b,G,Y){return b?w(G.getLineAndCharacterOfPosition(b.pos),G,Y):-1}function Q(b,G,Y,pe){if(b.parent&&b.parent.kind===254)return-1;var A=Z(b,G);if(A){var _e=A.indexOf(b);if(_e!==-1){var Se=H(A,_e,G,Y);if(Se!==-1)return Se}return M(A,G,Y)+(pe?Y.indentSize:0)}return-1}function H(b,G,Y,pe){e.Debug.assert(G>=0&&G<b.length);for(var A=b[G],_e=k(A,Y),Se=G-1;Se>=0;Se--)if(b[Se].kind!==27){var ae=Y.getLineAndCharacterOfPosition(b[Se].end).line;if(ae!==_e.line)return w(_e,Y,pe);_e=k(b[Se],Y)}return-1}function w(b,G,Y){var pe=G.getPositionOfLineAndCharacter(b.line,0);return B(pe,pe+b.character,G,Y)}function d(b,G,Y,pe){for(var A=0,_e=0,Se=b;Se<G;Se++){var ae=Y.text.charCodeAt(Se);if(!e.isWhiteSpaceSingleLine(ae))break;ae===9?_e+=pe.tabSize+_e%pe.tabSize:_e++,A++}return{column:_e,character:A}}g.findFirstNonWhitespaceCharacterAndColumn=d;function B(b,G,Y,pe){return d(b,G,Y,pe).column}g.findFirstNonWhitespaceColumn=B;function T(b,G,Y,pe,A){var _e=Y?Y.kind:0;switch(G.kind){case 237:case 256:case 225:case 257:case 259:case 258:case 203:case 234:case 261:case 204:case 181:case 194:case 183:case 262:case 289:case 288:case 211:case 205:case 207:case 208:case 236:case 270:case 246:case 221:case 201:case 200:case 279:case 282:case 278:case 287:case 167:case 173:case 174:case 163:case 178:case 179:case 190:case 209:case 217:case 272:case 268:case 274:case 269:case 166:return!0;case 253:case 294:case 220:if(!b.indentMultiLineObjectLiteralBeginningOnBlankLine&&pe&&_e===204)return R(pe,Y);if(G.kind===220&&pe&&Y&&_e===277){var Se=pe.getLineAndCharacterOfPosition(e.skipTrivia(pe.text,G.pos)).line,ae=pe.getLineAndCharacterOfPosition(e.skipTrivia(pe.text,Y.pos)).line;return Se!==ae}if(G.kind!==220)return!0;break;case 239:case 240:case 242:case 243:case 241:case 238:case 255:case 212:case 168:case 170:case 171:case 172:return _e!==234;case 213:return pe&&_e===211?R(pe,Y):_e!==234;case 271:return _e!==272;case 265:return _e!==266||!!Y.namedBindings&&Y.namedBindings.kind!==268;case 277:return _e!==280;case 281:return _e!==283;case 187:case 186:if(_e===181||_e===183)return!1;break}return A}g.nodeWillIndentChild=T;function _(b,G){switch(b){case 246:case 250:case 244:case 245:return G.kind!==234;default:return!1}}function h(b,G,Y,pe,A){return A===void 0&&(A=!1),T(b,G,Y,pe,!1)&&!(A&&Y&&_(Y.kind,G))}g.shouldIndentChildNode=h;function R(b,G){var Y=e.skipTrivia(b.text,G.pos),pe=b.getLineAndCharacterOfPosition(Y).line,A=b.getLineAndCharacterOfPosition(G.end).line;return pe===A}})(u=c.SmartIndenter||(c.SmartIndenter={}))})(n=e.formatting||(e.formatting={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(R){var b=R.__pos;return e.Debug.assert(typeof b=="number"),b}function g(R,b){e.Debug.assert(typeof b=="number"),R.__pos=b}function p(R){var b=R.__end;return e.Debug.assert(typeof b=="number"),b}function I(R,b){e.Debug.assert(typeof b=="number"),R.__end=b}var V;(function(R){R[R.Exclude=0]="Exclude",R[R.IncludeAll=1]="IncludeAll",R[R.JSDoc=2]="JSDoc",R[R.StartLine=3]="StartLine"})(V=c.LeadingTriviaOption||(c.LeadingTriviaOption={}));var L;(function(R){R[R.Exclude=0]="Exclude",R[R.ExcludeWhitespace=1]="ExcludeWhitespace",R[R.Include=2]="Include"})(L=c.TrailingTriviaOption||(c.TrailingTriviaOption={}));function m(R,b){return e.skipTrivia(R,b,!1,!0)}function y(R,b){for(var G=b;G<R.length;){var Y=R.charCodeAt(G);if(e.isWhiteSpaceSingleLine(Y)){G++;continue}return Y===47}return!1}var j={leadingTriviaOption:V.Exclude,trailingTriviaOption:L.Exclude},te;(function(R){R[R.Remove=0]="Remove",R[R.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",R[R.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",R[R.Text=3]="Text"})(te||(te={}));function E(R,b,G,Y){return{pos:F(R,b,Y),end:C(R,G,Y)}}function F(R,b,G,Y){var pe,A;Y===void 0&&(Y=!1);var _e=G.leadingTriviaOption;if(_e===V.Exclude)return b.getStart(R);if(_e===V.StartLine){var Se=b.getStart(R),ae=e.getLineStartPositionForPosition(Se,R);return e.rangeContainsPosition(b,ae)?ae:Se}if(_e===V.JSDoc){var D=e.getJSDocCommentRanges(b,R.text);if(D!=null&&D.length)return e.getLineStartPositionForPosition(D[0].pos,R)}var be=b.getFullStart(),ne=b.getStart(R);if(be===ne)return ne;var J=e.getLineStartPositionForPosition(be,R),le=e.getLineStartPositionForPosition(ne,R);if(le===J)return _e===V.IncludeAll?be:ne;if(Y){var Te=((pe=e.getLeadingCommentRanges(R.text,be))===null||pe===void 0?void 0:pe[0])||((A=e.getTrailingCommentRanges(R.text,be))===null||A===void 0?void 0:A[0]);if(Te)return e.skipTrivia(R.text,Te.end,!0,!0)}var Me=be>0?1:0,Ke=e.getStartPositionOfLine(e.getLineOfLocalPosition(R,J)+Me,R);return Ke=m(R.text,Ke),e.getStartPositionOfLine(e.getLineOfLocalPosition(R,Ke),R)}function $(R,b,G){var Y=b.end,pe=G.trailingTriviaOption;if(pe===L.Include){var A=e.getTrailingCommentRanges(R.text,Y);if(A)for(var _e=e.getLineOfLocalPosition(R,b.end),Se=0,ae=A;Se<ae.length;Se++){var D=ae[Se];if(D.kind===2||e.getLineOfLocalPosition(R,D.pos)>_e)break;var be=e.getLineOfLocalPosition(R,D.end);if(be>_e)return e.skipTrivia(R.text,D.end,!0,!0)}}}function C(R,b,G){var Y,pe=b.end,A=G.trailingTriviaOption;if(A===L.Exclude)return pe;if(A===L.ExcludeWhitespace){var _e=e.concatenate(e.getTrailingCommentRanges(R.text,pe),e.getLeadingCommentRanges(R.text,pe)),Se=(Y=_e==null?void 0:_e[_e.length-1])===null||Y===void 0?void 0:Y.end;return Se||pe}var ae=$(R,b,G);if(ae)return ae;var D=e.skipTrivia(R.text,pe,!0);return D!==pe&&(A===L.Include||e.isLineBreak(R.text.charCodeAt(D-1)))?D:pe}function K(R,b){return!!b&&!!R.parent&&(b.kind===27||b.kind===26&&R.parent.kind===204)}function k(R){return e.isFunctionExpression(R)||e.isFunctionDeclaration(R)}c.isThisTypeAnnotatable=k;var X=function(){function R(b,G){this.newLineCharacter=b,this.formatContext=G,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return R.fromContext=function(b){return new R(e.getNewLineOrDefaultFromHost(b.host,b.formatContext.options),b.formatContext)},R.with=function(b,G){var Y=R.fromContext(b);return G(Y),Y.getChanges()},R.prototype.pushRaw=function(b,G){e.Debug.assertEqual(b.fileName,G.fileName);for(var Y=0,pe=G.textChanges;Y<pe.length;Y++){var A=pe[Y];this.changes.push({kind:te.Text,sourceFile:b,text:A.newText,range:e.createTextRangeFromSpan(A.span)})}},R.prototype.deleteRange=function(b,G){this.changes.push({kind:te.Remove,sourceFile:b,range:G})},R.prototype.delete=function(b,G){this.deletedNodes.push({sourceFile:b,node:G})},R.prototype.deleteNode=function(b,G,Y){Y===void 0&&(Y={leadingTriviaOption:V.IncludeAll}),this.deleteRange(b,E(b,G,G,Y))},R.prototype.deleteNodes=function(b,G,Y,pe){Y===void 0&&(Y={leadingTriviaOption:V.IncludeAll});for(var A=0,_e=G;A<_e.length;A++){var Se=_e[A],ae=F(b,Se,Y,pe),D=C(b,Se,Y);this.deleteRange(b,{pos:ae,end:D}),pe=!!$(b,Se,Y)}},R.prototype.deleteModifier=function(b,G){this.deleteRange(b,{pos:G.getStart(b),end:e.skipTrivia(b.text,G.end,!0)})},R.prototype.deleteNodeRange=function(b,G,Y,pe){pe===void 0&&(pe={leadingTriviaOption:V.IncludeAll});var A=F(b,G,pe),_e=C(b,Y,pe);this.deleteRange(b,{pos:A,end:_e})},R.prototype.deleteNodeRangeExcludingEnd=function(b,G,Y,pe){pe===void 0&&(pe={leadingTriviaOption:V.IncludeAll});var A=F(b,G,pe),_e=Y===void 0?b.text.length:F(b,Y,pe);this.deleteRange(b,{pos:A,end:_e})},R.prototype.replaceRange=function(b,G,Y,pe){pe===void 0&&(pe={}),this.changes.push({kind:te.ReplaceWithSingleNode,sourceFile:b,range:G,options:pe,node:Y})},R.prototype.replaceNode=function(b,G,Y,pe){pe===void 0&&(pe=j),this.replaceRange(b,E(b,G,G,pe),Y,pe)},R.prototype.replaceNodeRange=function(b,G,Y,pe,A){A===void 0&&(A=j),this.replaceRange(b,E(b,G,Y,A),pe,A)},R.prototype.replaceRangeWithNodes=function(b,G,Y,pe){pe===void 0&&(pe={}),this.changes.push({kind:te.ReplaceWithMultipleNodes,sourceFile:b,range:G,options:pe,nodes:Y})},R.prototype.replaceNodeWithNodes=function(b,G,Y,pe){pe===void 0&&(pe=j),this.replaceRangeWithNodes(b,E(b,G,G,pe),Y,pe)},R.prototype.replaceNodeWithText=function(b,G,Y){this.replaceRangeWithText(b,E(b,G,G,j),Y)},R.prototype.replaceNodeRangeWithNodes=function(b,G,Y,pe,A){A===void 0&&(A=j),this.replaceRangeWithNodes(b,E(b,G,Y,A),pe,A)},R.prototype.nodeHasTrailingComment=function(b,G,Y){return Y===void 0&&(Y=j),!!$(b,G,Y)},R.prototype.nextCommaToken=function(b,G){var Y=e.findNextToken(G,G.parent,b);return Y&&Y.kind===27?Y:void 0},R.prototype.replacePropertyAssignment=function(b,G,Y){var pe=this.nextCommaToken(b,G)?"":","+this.newLineCharacter;this.replaceNode(b,G,Y,{suffix:pe})},R.prototype.insertNodeAt=function(b,G,Y,pe){pe===void 0&&(pe={}),this.replaceRange(b,e.createRange(G),Y,pe)},R.prototype.insertNodesAt=function(b,G,Y,pe){pe===void 0&&(pe={}),this.replaceRangeWithNodes(b,e.createRange(G),Y,pe)},R.prototype.insertNodeAtTopOfFile=function(b,G,Y){this.insertAtTopOfFile(b,G,Y)},R.prototype.insertNodesAtTopOfFile=function(b,G,Y){this.insertAtTopOfFile(b,G,Y)},R.prototype.insertAtTopOfFile=function(b,G,Y){var pe=w(b),A={prefix:pe===0?void 0:this.newLineCharacter,suffix:(e.isLineBreak(b.text.charCodeAt(pe))?"":this.newLineCharacter)+(Y?this.newLineCharacter:"")};e.isArray(G)?this.insertNodesAt(b,pe,G,A):this.insertNodeAt(b,pe,G,A)},R.prototype.insertFirstParameter=function(b,G,Y){var pe=e.firstOrUndefined(G);pe?this.insertNodeBefore(b,pe,Y):this.insertNodeAt(b,G.pos,Y)},R.prototype.insertNodeBefore=function(b,G,Y,pe,A){pe===void 0&&(pe=!1),A===void 0&&(A={}),this.insertNodeAt(b,F(b,G,A),Y,this.getOptionsForInsertNodeBefore(G,Y,pe))},R.prototype.insertModifierAt=function(b,G,Y,pe){pe===void 0&&(pe={}),this.insertNodeAt(b,G,e.factory.createToken(Y),pe)},R.prototype.insertModifierBefore=function(b,G,Y){return this.insertModifierAt(b,Y.getStart(b),G,{suffix:" "})},R.prototype.insertCommentBeforeLine=function(b,G,Y,pe){var A=e.getStartPositionOfLine(G,b),_e=e.getFirstNonSpaceCharacterPosition(b.text,A),Se=d(b,_e),ae=e.getTouchingToken(b,Se?_e:Y),D=b.text.slice(A,_e),be="".concat(Se?"":this.newLineCharacter,"//").concat(pe).concat(this.newLineCharacter).concat(D);this.insertText(b,ae.getStart(b),be)},R.prototype.insertJsdocCommentBefore=function(b,G,Y){var pe=G.getStart(b);if(G.jsDoc)for(var A=0,_e=G.jsDoc;A<_e.length;A++){var Se=_e[A];this.deleteRange(b,{pos:e.getLineStartPositionForPosition(Se.getStart(b),b),end:C(b,Se,{})})}var ae=e.getPrecedingNonSpaceCharacterPosition(b.text,pe-1),D=b.text.slice(ae,pe);this.insertNodeAt(b,pe,Y,{preserveLeadingWhitespace:!1,suffix:this.newLineCharacter+D})},R.prototype.replaceRangeWithText=function(b,G,Y){this.changes.push({kind:te.Text,sourceFile:b,range:G,text:Y})},R.prototype.insertText=function(b,G,Y){this.replaceRangeWithText(b,e.createRange(G),Y)},R.prototype.tryInsertTypeAnnotation=function(b,G,Y){var pe,A;if(e.isFunctionLike(G)){if(A=e.findChildOfKind(G,21,b),!A){if(!e.isArrowFunction(G))return!1;A=e.first(G.parameters)}}else A=(pe=G.kind===253?G.exclamationToken:G.questionToken)!==null&&pe!==void 0?pe:G.name;return this.insertNodeAt(b,A.end,Y,{prefix:": "}),!0},R.prototype.tryInsertThisTypeAnnotation=function(b,G,Y){var pe=e.findChildOfKind(G,20,b).getStart(b)+1,A=G.parameters.length?", ":"";this.insertNodeAt(b,pe,Y,{prefix:"this: ",suffix:A})},R.prototype.insertTypeParameters=function(b,G,Y){var pe=(e.findChildOfKind(G,20,b)||e.first(G.parameters)).getStart(b);this.insertNodesAt(b,pe,Y,{prefix:"<",suffix:">",joiner:", "})},R.prototype.getOptionsForInsertNodeBefore=function(b,G,Y){return e.isStatement(b)||e.isClassElement(b)?{suffix:Y?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(b)?{suffix:", "}:e.isParameter(b)?e.isParameter(G)?{suffix:", "}:{}:e.isStringLiteral(b)&&e.isImportDeclaration(b.parent)||e.isNamedImports(b)?{suffix:", "}:e.isImportSpecifier(b)?{suffix:","+(Y?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(b)},R.prototype.insertNodeAtConstructorStart=function(b,G,Y){var pe=e.firstOrUndefined(G.body.statements);!pe||!G.body.multiLine?this.replaceConstructorBody(b,G,Bt([Y],G.body.statements,!0)):this.insertNodeBefore(b,pe,Y)},R.prototype.insertNodeAtConstructorStartAfterSuperCall=function(b,G,Y){var pe=e.find(G.body.statements,function(A){return e.isExpressionStatement(A)&&e.isSuperCall(A.expression)});!pe||!G.body.multiLine?this.replaceConstructorBody(b,G,Bt(Bt([],G.body.statements,!0),[Y],!1)):this.insertNodeAfter(b,pe,Y)},R.prototype.insertNodeAtConstructorEnd=function(b,G,Y){var pe=e.lastOrUndefined(G.body.statements);!pe||!G.body.multiLine?this.replaceConstructorBody(b,G,Bt(Bt([],G.body.statements,!0),[Y],!1)):this.insertNodeAfter(b,pe,Y)},R.prototype.replaceConstructorBody=function(b,G,Y){this.replaceNode(b,G.body,e.factory.createBlock(Y,!0))},R.prototype.insertNodeAtEndOfScope=function(b,G,Y){var pe=F(b,G.getLastToken(),{});this.insertNodeAt(b,pe,Y,{prefix:e.isLineBreak(b.text.charCodeAt(G.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},R.prototype.insertNodeAtClassStart=function(b,G,Y){this.insertNodeAtStartWorker(b,G,Y)},R.prototype.insertNodeAtObjectStart=function(b,G,Y){this.insertNodeAtStartWorker(b,G,Y)},R.prototype.insertNodeAtStartWorker=function(b,G,Y){var pe,A=(pe=this.guessIndentationFromExistingMembers(b,G))!==null&&pe!==void 0?pe:this.computeIndentationForNewMember(b,G);this.insertNodeAt(b,ie(G).pos,Y,this.getInsertNodeAtStartInsertOptions(b,G,A))},R.prototype.guessIndentationFromExistingMembers=function(b,G){for(var Y,pe=G,A=0,_e=ie(G);A<_e.length;A++){var Se=_e[A];if(e.rangeStartPositionsAreOnSameLine(pe,Se,b))return;var ae=Se.getStart(b),D=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(ae,b),ae,b,this.formatContext.options);if(Y===void 0)Y=D;else if(D!==Y)return;pe=Se}return Y},R.prototype.computeIndentationForNewMember=function(b,G){var Y,pe=G.getStart(b);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(pe,b),pe,b,this.formatContext.options)+((Y=this.formatContext.options.indentSize)!==null&&Y!==void 0?Y:4)},R.prototype.getInsertNodeAtStartInsertOptions=function(b,G,Y){var pe=ie(G),A=pe.length===0,_e=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(G),{node:G,sourceFile:b}),Se=e.isObjectLiteralExpression(G)&&(!e.isJsonSourceFile(b)||!A),ae=e.isObjectLiteralExpression(G)&&e.isJsonSourceFile(b)&&A&&!_e;return{indentation:Y,prefix:(ae?",":"")+this.newLineCharacter,suffix:Se?",":""}},R.prototype.insertNodeAfterComma=function(b,G,Y){var pe=this.insertNodeAfterWorker(b,this.nextCommaToken(b,G)||G,Y);this.insertNodeAt(b,pe,Y,this.getInsertNodeAfterOptions(b,G))},R.prototype.insertNodeAfter=function(b,G,Y){var pe=this.insertNodeAfterWorker(b,G,Y);this.insertNodeAt(b,pe,Y,this.getInsertNodeAfterOptions(b,G))},R.prototype.insertNodeAtEndOfList=function(b,G,Y){this.insertNodeAt(b,G.end,Y,{prefix:", "})},R.prototype.insertNodesAfter=function(b,G,Y){var pe=this.insertNodeAfterWorker(b,G,e.first(Y));this.insertNodesAt(b,pe,Y,this.getInsertNodeAfterOptions(b,G))},R.prototype.insertNodeAfterWorker=function(b,G,Y){B(G,Y)&&b.text.charCodeAt(G.end-1)!==59&&this.replaceRange(b,e.createRange(G.end),e.factory.createToken(26));var pe=C(b,G,{});return pe},R.prototype.getInsertNodeAfterOptions=function(b,G){var Y=this.getInsertNodeAfterOptionsWorker(G);return kn(kn({},Y),{prefix:G.end===b.end&&e.isStatement(G)?Y.prefix?`
`.concat(Y.prefix):`
`:Y.prefix})},R.prototype.getInsertNodeAfterOptionsWorker=function(b){switch(b.kind){case 256:case 260:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 253:case 10:case 79:return{prefix:", "};case 294:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 163:return{};default:return e.Debug.assert(e.isStatement(b)||e.isClassOrTypeElement(b)),{suffix:this.newLineCharacter}}},R.prototype.insertName=function(b,G,Y){if(e.Debug.assert(!G.name),G.kind===213){var pe=e.findChildOfKind(G,38,b),A=e.findChildOfKind(G,20,b);A?(this.insertNodesAt(b,A.getStart(b),[e.factory.createToken(98),e.factory.createIdentifier(Y)],{joiner:" "}),_(this,b,pe)):(this.insertText(b,e.first(G.parameters).getStart(b),"function ".concat(Y,"(")),this.replaceRange(b,pe,e.factory.createToken(21))),G.body.kind!==234&&(this.insertNodesAt(b,G.body.getStart(b),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(b,G.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var _e=e.findChildOfKind(G,G.kind===212?98:84,b).end;this.insertNodeAt(b,_e,e.factory.createIdentifier(Y),{prefix:" "})}},R.prototype.insertExportModifier=function(b,G){this.insertText(b,G.getStart(b),"export ")},R.prototype.insertNodeInListAfter=function(b,G,Y,pe){if(pe===void 0&&(pe=e.formatting.SmartIndenter.getContainingList(G,b)),!pe){e.Debug.fail("node is not a list element");return}var A=e.indexOfNode(pe,G);if(!(A<0)){var _e=G.getEnd();if(A!==pe.length-1){var Se=e.getTokenAtPosition(b,G.end);if(Se&&K(G,Se)){var ae=pe[A+1],D=m(b.text,ae.getFullStart()),be="".concat(e.tokenToString(Se.kind)).concat(b.text.substring(Se.end,D));this.insertNodesAt(b,D,[Y],{suffix:be})}}else{var ne=G.getStart(b),J=e.getLineStartPositionForPosition(ne,b),le=void 0,Te=!1;if(pe.length===1)le=27;else{var Me=e.findPrecedingToken(G.pos,b);le=K(G,Me)?Me.kind:27;var Ke=e.getLineStartPositionForPosition(pe[A-1].getStart(b),b);Te=Ke!==J}if(y(b.text,G.end)&&(Te=!0),Te){this.replaceRange(b,e.createRange(_e),e.factory.createToken(le));for(var Ae=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(J,ne,b,this.formatContext.options),Ge=e.skipTrivia(b.text,_e,!0,!1);Ge!==_e&&e.isLineBreak(b.text.charCodeAt(Ge-1));)Ge--;this.replaceRange(b,e.createRange(Ge),Y,{indentation:Ae,prefix:this.newLineCharacter})}else this.replaceRange(b,e.createRange(_e),Y,{prefix:"".concat(e.tokenToString(le)," ")})}}},R.prototype.parenthesizeExpression=function(b,G){this.replaceRange(b,e.rangeOfNode(G),e.factory.createParenthesizedExpression(G))},R.prototype.finishClassesWithNodesInsertedAtStart=function(){var b=this;this.classesWithNodesInsertedAtStart.forEach(function(G){var Y=G.node,pe=G.sourceFile,A=x(Y,pe),_e=A[0],Se=A[1];if(_e!==void 0&&Se!==void 0){var ae=ie(Y).length===0,D=e.positionsAreOnSameLine(_e,Se,pe);ae&&D&&_e!==Se-1&&b.deleteRange(pe,e.createRange(_e,Se-1)),D&&b.insertText(pe,Se-1,b.newLineCharacter)}})},R.prototype.finishDeleteDeclarations=function(){for(var b=this,G=new e.Set,Y=function(be,ne){pe.deletedNodes.some(function(J){return J.sourceFile===be&&e.rangeContainsRangeExclusive(J.node,ne)})||(e.isArray(ne)?pe.deleteRange(be,e.rangeOfTypeParameters(be,ne)):T.deleteDeclaration(pe,G,be,ne))},pe=this,A=0,_e=this.deletedNodes;A<_e.length;A++){var Se=_e[A],ae=Se.sourceFile,D=Se.node;Y(ae,D)}G.forEach(function(be){var ne=be.getSourceFile(),J=e.formatting.SmartIndenter.getContainingList(be,ne);if(be===e.last(J)){var le=e.findLastIndex(J,function(Te){return!G.has(Te)},J.length-2);le!==-1&&b.deleteRange(ne,{pos:J[le].end,end:O(ne,J[le+1])})}})},R.prototype.getChanges=function(b){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var G=re.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,b),Y=0,pe=this.newFiles;Y<pe.length;Y++){var A=pe[Y],_e=A.oldFile,Se=A.fileName,ae=A.statements;G.push(re.newFileChanges(_e,Se,ae,this.newLineCharacter,this.formatContext))}return G},R.prototype.createNewFile=function(b,G,Y){this.newFiles.push({oldFile:b,fileName:G,statements:Y})},R}();c.ChangeTracker=X;function O(R,b){return e.skipTrivia(R.text,F(R,b,{leadingTriviaOption:V.IncludeAll}),!1,!0)}function x(R,b){var G=e.findChildOfKind(R,18,b),Y=e.findChildOfKind(R,19,b);return[G==null?void 0:G.end,Y==null?void 0:Y.end]}function ie(R){return e.isObjectLiteralExpression(R)?R.properties:R.members}function Z(R,b,G,Y){return re.newFileChangesWorker(void 0,b,R,G,Y)}c.getNewFileText=Z;var re;(function(R){function b(ae,D,be,ne){return e.mapDefined(e.group(ae,function(J){return J.sourceFile.path}),function(J){for(var le=J[0].sourceFile,Te=e.stableSort(J,function(Ge,se){return Ge.range.pos-se.range.pos||Ge.range.end-se.range.end}),Me=function(Ge){e.Debug.assert(Te[Ge].range.end<=Te[Ge+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(Te[Ge].range)," and ").concat(JSON.stringify(Te[Ge+1].range))})},Ke=0;Ke<Te.length-1;Ke++)Me(Ke);var Ae=e.mapDefined(Te,function(Ge){var se=e.createTextSpanFromRange(Ge.range),xe=pe(Ge,le,D,be,ne);if(!(se.length===xe.length&&e.stringContainsAt(le.text,xe,se.start)))return e.createTextChange(se,xe)});return Ae.length>0?{fileName:le.fileName,textChanges:Ae}:void 0})}R.getTextChangesFromChanges=b;function G(ae,D,be,ne,J){var le=Y(ae,e.getScriptKindFromFileName(D),be,ne,J);return{fileName:D,textChanges:[e.createTextChange(e.createTextSpan(0,0),le)],isNewFile:!0}}R.newFileChanges=G;function Y(ae,D,be,ne,J){var le=be.map(function(Ke){return Ke===4?"":Se(Ke,ae,ne).text}).join(ne),Te=e.createSourceFile("any file name",le,99,!0,D),Me=e.formatting.formatDocument(Te,J);return q(le,Me)+ne}R.newFileChangesWorker=Y;function pe(ae,D,be,ne,J){var le;if(ae.kind===te.Remove)return"";if(ae.kind===te.Text)return ae.text;var Te=ae.options,Me=Te===void 0?{}:Te,Ke=ae.range.pos,Ae=function(xe){return _e(xe,D,Ke,Me,be,ne,J)},Ge=ae.kind===te.ReplaceWithMultipleNodes?ae.nodes.map(function(xe){return e.removeSuffix(Ae(xe),be)}).join(((le=ae.options)===null||le===void 0?void 0:le.joiner)||be):Ae(ae.node),se=Me.preserveLeadingWhitespace||Me.indentation!==void 0||e.getLineStartPositionForPosition(Ke,D)===Ke?Ge:Ge.replace(/^\s+/,"");return(Me.prefix||"")+se+(!Me.suffix||e.endsWith(se,Me.suffix)?"":Me.suffix)}function A(ae,D){var be=ae.options,ne=!be.semicolons||be.semicolons===e.SemicolonPreference.Ignore,J=be.semicolons===e.SemicolonPreference.Remove||ne&&!e.probablyUsesSemicolons(D);return kn(kn({},be),{semicolons:J?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function _e(ae,D,be,ne,J,le,Te){var Me=ne.indentation,Ke=ne.prefix,Ae=ne.delta,Ge=Se(ae,D,J),se=Ge.node,xe=Ge.text;Te&&Te(se,xe);var Re=A(le,D),ce=Me!==void 0?Me:e.formatting.SmartIndenter.getIndentation(be,D,Re,Ke===J||e.getLineStartPositionForPosition(be,D)===be);Ae===void 0&&(Ae=e.formatting.SmartIndenter.shouldIndentChildNode(Re,ae)&&Re.indentSize||0);var Ue={text:xe,getLineAndCharacterOfPosition:function(Ne){return e.getLineAndCharacterOfPosition(this,Ne)}},We=e.formatting.formatNodeGivenIndentation(se,Ue,D.languageVariant,ce,Ae,kn(kn({},le),{options:Re}));return q(xe,We)}function Se(ae,D,be){var ne=H(be),J=e.getNewLineKind(be);return e.createPrinter({newLine:J,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},ne).writeNode(4,ae,D,ne),{text:ne.getText(),node:M(ae)}}R.getNonformattedText=Se})(re||(re={}));function q(R,b){for(var G=b.length-1;G>=0;G--){var Y=b[G],pe=Y.span,A=Y.newText;R="".concat(R.substring(0,pe.start)).concat(A).concat(R.substring(e.textSpanEnd(pe)))}return R}c.applyChanges=q;function P(R){return e.skipTrivia(R,0)===R.length}function M(R){var b=e.visitEachChild(R,M,e.nullTransformationContext,Q,M),G=e.nodeIsSynthesized(b)?b:Object.create(b);return e.setTextRangePosEnd(G,u(R),p(R)),G}function Q(R,b,G,Y,pe){var A=e.visitNodes(R,b,G,Y,pe);if(!A)return A;var _e=A===R?e.factory.createNodeArray(A.slice(0)):A;return e.setTextRangePosEnd(_e,u(R),p(R)),_e}function H(R){var b=0,G=e.createTextWriter(R),Y=function(sr){sr&&g(sr,b)},pe=function(sr){sr&&I(sr,b)},A=function(sr){sr&&g(sr,b)},_e=function(sr){sr&&I(sr,b)},Se=function(sr){sr&&g(sr,b)},ae=function(sr){sr&&I(sr,b)};function D(sr,i){if(i||!P(sr)){b=G.getTextPos();for(var Mr=0;e.isWhiteSpaceLike(sr.charCodeAt(sr.length-Mr-1));)Mr++;b-=Mr}}function be(sr){G.write(sr),D(sr,!1)}function ne(sr){G.writeComment(sr)}function J(sr){G.writeKeyword(sr),D(sr,!1)}function le(sr){G.writeOperator(sr),D(sr,!1)}function Te(sr){G.writePunctuation(sr),D(sr,!1)}function Me(sr){G.writeTrailingSemicolon(sr),D(sr,!1)}function Ke(sr){G.writeParameter(sr),D(sr,!1)}function Ae(sr){G.writeProperty(sr),D(sr,!1)}function Ge(sr){G.writeSpace(sr),D(sr,!1)}function se(sr){G.writeStringLiteral(sr),D(sr,!1)}function xe(sr,i){G.writeSymbol(sr,i),D(sr,!1)}function Re(sr){G.writeLine(sr)}function ce(){G.increaseIndent()}function Ue(){G.decreaseIndent()}function We(){return G.getText()}function Ne(sr){G.rawWrite(sr),D(sr,!1)}function ve(sr){G.writeLiteral(sr),D(sr,!0)}function Ve(){return G.getTextPos()}function gr(){return G.getLine()}function Er(){return G.getColumn()}function Nr(){return G.getIndent()}function ur(){return G.isAtStartOfLine()}function xr(){G.clear(),b=0}return{onBeforeEmitNode:Y,onAfterEmitNode:pe,onBeforeEmitNodeArray:A,onAfterEmitNodeArray:_e,onBeforeEmitToken:Se,onAfterEmitToken:ae,write:be,writeComment:ne,writeKeyword:J,writeOperator:le,writePunctuation:Te,writeTrailingSemicolon:Me,writeParameter:Ke,writeProperty:Ae,writeSpace:Ge,writeStringLiteral:se,writeSymbol:xe,writeLine:Re,increaseIndent:ce,decreaseIndent:Ue,getText:We,rawWrite:Ne,writeLiteral:ve,getTextPos:Ve,getLine:gr,getColumn:Er,getIndent:Nr,isAtStartOfLine:ur,hasTrailingComment:function(){return G.hasTrailingComment()},hasTrailingWhitespace:function(){return G.hasTrailingWhitespace()},clear:xr}}function w(R){for(var b,G=0,Y=R.statements;G<Y.length;G++){var pe=Y[G];if(e.isPrologueDirective(pe))b=pe;else break}var A=0,_e=R.text;if(b)return A=b.end,Ae(),A;var Se=e.getShebang(_e);Se!==void 0&&(A=Se.length,Ae());var ae=e.getLeadingCommentRanges(_e,A);if(!ae)return A;for(var D,be,ne=0,J=ae;ne<J.length;ne++){var le=J[ne];if(le.kind===3){if(e.isPinnedComment(_e,le.pos)){D={range:le,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(_e,le.pos,le.end)){D={range:le,pinnedOrTripleSlash:!0};continue}if(D){if(D.pinnedOrTripleSlash)break;var Te=R.getLineAndCharacterOfPosition(le.pos).line,Me=R.getLineAndCharacterOfPosition(D.range.end).line;if(Te>=Me+2)break}if(R.statements.length){be===void 0&&(be=R.getLineAndCharacterOfPosition(R.statements[0].getStart()).line);var Ke=R.getLineAndCharacterOfPosition(le.end).line;if(be<Ke+2)break}D={range:le,pinnedOrTripleSlash:!1}}return D&&(A=D.range.end,Ae()),A;function Ae(){if(A<_e.length){var Ge=_e.charCodeAt(A);e.isLineBreak(Ge)&&(A++,A<_e.length&&Ge===13&&_e.charCodeAt(A)===10&&A++)}}}function d(R,b){return!e.isInComment(R,b)&&!e.isInString(R,b)&&!e.isInTemplateString(R,b)&&!e.isInJSXText(R,b)}c.isValidLocationToAddComment=d;function B(R,b){return(e.isPropertySignature(R)||e.isPropertyDeclaration(R))&&e.isClassOrTypeElement(b)&&b.name.kind===161||e.isStatementButNotDeclaration(R)&&e.isStatementButNotDeclaration(b)}var T;(function(R){function b(A,_e,Se,ae){switch(ae.kind){case 163:{var D=ae.parent;e.isArrowFunction(D)&&D.parameters.length===1&&!e.findChildOfKind(D,20,Se)?A.replaceNodeWithText(Se,ae,"()"):h(A,_e,Se,ae);break}case 265:case 264:var be=Se.imports.length&&ae===e.first(Se.imports).parent||ae===e.find(Se.statements,e.isAnyImportSyntax);_(A,Se,ae,{leadingTriviaOption:be?V.Exclude:e.hasJSDocNodes(ae)?V.JSDoc:V.StartLine});break;case 202:var ne=ae.parent,J=ne.kind===201&&ae!==e.last(ne.elements);J?_(A,Se,ae):h(A,_e,Se,ae);break;case 253:pe(A,_e,Se,ae);break;case 162:h(A,_e,Se,ae);break;case 269:var le=ae.parent;le.elements.length===1?Y(A,Se,le):h(A,_e,Se,ae);break;case 267:Y(A,Se,ae);break;case 26:_(A,Se,ae,{trailingTriviaOption:L.Exclude});break;case 98:_(A,Se,ae,{leadingTriviaOption:V.Exclude});break;case 256:case 255:_(A,Se,ae,{leadingTriviaOption:e.hasJSDocNodes(ae)?V.JSDoc:V.StartLine});break;default:ae.parent?e.isImportClause(ae.parent)&&ae.parent.name===ae?G(A,Se,ae.parent):e.isCallExpression(ae.parent)&&e.contains(ae.parent.arguments,ae)?h(A,_e,Se,ae):_(A,Se,ae):_(A,Se,ae)}}R.deleteDeclaration=b;function G(A,_e,Se){if(!Se.namedBindings)_(A,_e,Se.parent);else{var ae=Se.name.getStart(_e),D=e.getTokenAtPosition(_e,Se.name.end);if(D&&D.kind===27){var be=e.skipTrivia(_e.text,D.end,!1,!0);A.deleteRange(_e,{pos:ae,end:be})}else _(A,_e,Se.name)}}function Y(A,_e,Se){if(Se.parent.name){var ae=e.Debug.checkDefined(e.getTokenAtPosition(_e,Se.pos-1));A.deleteRange(_e,{pos:ae.getStart(_e),end:Se.end})}else{var D=e.getAncestor(Se,265);_(A,_e,D)}}function pe(A,_e,Se,ae){var D=ae.parent;if(D.kind===291){A.deleteNodeRange(Se,e.findChildOfKind(D,20,Se),e.findChildOfKind(D,21,Se));return}if(D.declarations.length!==1){h(A,_e,Se,ae);return}var be=D.parent;switch(be.kind){case 243:case 242:A.replaceNode(Se,ae,e.factory.createObjectLiteralExpression());break;case 241:_(A,Se,D);break;case 236:_(A,Se,be,{leadingTriviaOption:e.hasJSDocNodes(be)?V.JSDoc:V.StartLine});break;default:e.Debug.assertNever(be)}}})(T||(T={}));function _(R,b,G,Y){Y===void 0&&(Y={leadingTriviaOption:V.IncludeAll});var pe=F(b,G,Y),A=C(b,G,Y);R.deleteRange(b,{pos:pe,end:A})}c.deleteNode=_;function h(R,b,G,Y){var pe=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(Y,G)),A=e.indexOfNode(pe,Y);if(e.Debug.assert(A!==-1),pe.length===1){_(R,G,Y);return}e.Debug.assert(!b.has(Y),"Deleting a node twice"),b.add(Y),R.deleteRange(G,{pos:O(G,Y),end:A===pe.length-1?C(G,Y,{}):O(G,pe[A+1])})}})(n=e.textChanges||(e.textChanges={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=e.createMultiMap(),g=new e.Map;function p(X,O,x){return L(X,e.diagnosticToString(x),O,void 0,void 0)}c.createCodeFixActionWithoutFixAll=p;function I(X,O,x,ie,Z,re){return L(X,e.diagnosticToString(x),O,ie,e.diagnosticToString(Z),re)}c.createCodeFixAction=I;function V(X,O,x,ie,Z,re){return L(X,e.diagnosticToString(x),O,ie,Z&&e.diagnosticToString(Z),re)}c.createCodeFixActionMaybeFixAll=V;function L(X,O,x,ie,Z,re){return{fixName:X,description:O,changes:x,fixId:ie,fixAllDescription:Z,commands:re?[re]:void 0}}function m(X){for(var O=0,x=X.errorCodes;O<x.length;O++){var ie=x[O];u.add(String(ie),X)}if(X.fixIds)for(var Z=0,re=X.fixIds;Z<re.length;Z++){var q=re[Z];e.Debug.assert(!g.has(q)),g.set(q,X)}}c.registerCodeFix=m;function y(){return e.arrayFrom(u.keys())}c.getSupportedErrorCodes=y;function j(X,O){for(var x=X.errorCodes,ie=0,Z=0,re=O;Z<re.length;Z++){var q=re[Z];if(e.contains(x,q.code)&&ie++,ie>1)break}var P=ie<2;return function(M){var Q=M.fixId,H=M.fixAllDescription,w=TL(M,["fixId","fixAllDescription"]);return P?w:kn(kn({},w),{fixId:Q,fixAllDescription:H})}}function te(X){var O=k(X),x=u.get(String(X.errorCode));return e.flatMap(x,function(ie){return e.map(ie.getCodeActions(X),j(ie,O))})}c.getFixes=te;function E(X){return g.get(e.cast(X.fixId,e.isString)).getAllCodeActions(X)}c.getAllFixes=E;function F(X,O){return{changes:X,commands:O}}c.createCombinedCodeActions=F;function $(X,O){return{fileName:X,textChanges:O}}c.createFileTextChanges=$;function C(X,O,x){var ie=[],Z=e.textChanges.ChangeTracker.with(X,function(re){return K(X,O,function(q){return x(re,q,ie)})});return F(Z,ie.length===0?void 0:ie)}c.codeFixAll=C;function K(X,O,x){for(var ie=0,Z=k(X);ie<Z.length;ie++){var re=Z[ie];e.contains(O,re.code)&&x(re)}}c.eachDiagnostic=K;function k(X){var O=X.program,x=X.sourceFile,ie=X.cancellationToken;return Bt(Bt(Bt([],O.getSemanticDiagnostics(x,ie),!0),O.getSyntacticDiagnostics(x,ie),!0),e.computeSuggestionDiagnostics(x,O,ie),!0)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=new e.Map;function g(V,L){u.set(V,L)}c.registerRefactor=g;function p(V){return e.arrayFrom(e.flatMapIterator(u.values(),function(L){var m;return V.cancellationToken&&V.cancellationToken.isCancellationRequested()||!(!((m=L.kinds)===null||m===void 0)&&m.some(function(y){return c.refactorKindBeginsWith(y,V.kind)}))?void 0:L.getAvailableActions(V)}))}c.getApplicableRefactors=p;function I(V,L,m){var y=u.get(L);return y&&y.getEditsForAction(V,m)}c.getEditsForRefactor=I})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addConvertToUnknownForNonOverlappingTypes",g=[e.Diagnostics.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];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span.start)});return[c.createCodeFixAction(u,V,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,u,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){return p(V,L.file,L.start)})}});function p(I,V,L){var m=e.getTokenAtPosition(V,L),y=e.Debug.checkDefined(e.findAncestor(m,function(te){return e.isAsExpression(te)||e.isTypeAssertionExpression(te)}),"Expected to find an assertion expression"),j=e.isAsExpression(y)?e.factory.createAsExpression(y.expression,e.factory.createKeywordTypeNode(154)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(154),y.expression);I.replaceNode(V,y.expression,j)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.registerCodeFix({errorCodes:[e.Diagnostics.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,e.Diagnostics.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(u){var g=u.sourceFile,p=e.textChanges.ChangeTracker.with(u,function(I){var V=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);I.insertNodeAtEndOfScope(g,g,V)});return[c.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",p,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addMissingAsync",g=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];c.registerCodeFix({fixIds:[u],errorCodes:g,getCodeActions:function(m){var y=m.sourceFile,j=m.errorCode,te=m.cancellationToken,E=m.program,F=m.span,$=e.find(E.getDiagnosticsProducingTypeChecker().getDiagnostics(y,te),L(F,j)),C=$&&$.relatedInformation&&e.find($.relatedInformation,function(X){return X.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),K=V(y,C);if(!!K){var k=function(X){return e.textChanges.ChangeTracker.with(m,X)};return[p(m,K,k)]}},getAllCodeActions:function(m){var y=m.sourceFile,j=new e.Set;return c.codeFixAll(m,g,function(te,E){var F=E.relatedInformation&&e.find(E.relatedInformation,function(K){return K.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),$=V(y,F);if(!!$){var C=function(K){return K(te),[]};return p(m,$,C,j)}})}});function p(m,y,j,te){var E=j(function(F){return I(F,m.sourceFile,y,te)});return c.createCodeFixAction(u,E,e.Diagnostics.Add_async_modifier_to_containing_function,u,e.Diagnostics.Add_all_missing_async_modifiers)}function I(m,y,j,te){if(!(te&&te.has(e.getNodeId(j)))){te==null||te.add(e.getNodeId(j));var E=e.factory.updateModifiers(e.getSynthesizedDeepClone(j,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(e.getSyntacticModifierFlags(j)|256)));m.replaceNode(y,j,E)}}function V(m,y){if(!!y){var j=e.getTokenAtPosition(m,y.start),te=e.findAncestor(j,function(E){return E.getStart(m)<y.start||E.getEnd()>e.textSpanEnd(y)?"quit":(e.isArrowFunction(E)||e.isMethodDeclaration(E)||e.isFunctionExpression(E)||e.isFunctionDeclaration(E))&&e.textSpansEqual(y,e.createTextSpanFromNode(E,m))});return te}}function L(m,y){return function(j){var te=j.start,E=j.length,F=j.relatedInformation,$=j.code;return e.isNumber(te)&&e.isNumber(E)&&e.textSpansEqual({start:te,length:E},m)&&$===y&&!!F&&e.some(F,function(C){return C.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addMissingAwait",g=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,p=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],I=Bt([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,g],p,!0);c.registerCodeFix({fixIds:[u],errorCodes:I,getCodeActions:function(K){var k=K.sourceFile,X=K.errorCode,O=K.span,x=K.cancellationToken,ie=K.program,Z=V(k,X,O,x,ie);if(!!Z){var re=K.program.getTypeChecker(),q=function(P){return e.textChanges.ChangeTracker.with(K,P)};return e.compact([L(K,Z,X,re,q),m(K,Z,X,re,q)])}},getAllCodeActions:function(K){var k=K.sourceFile,X=K.program,O=K.cancellationToken,x=K.program.getTypeChecker(),ie=new e.Set;return c.codeFixAll(K,I,function(Z,re){var q=V(k,re.code,re,O,X);if(!!q){var P=function(M){return M(Z),[]};return L(K,q,re.code,x,P,ie)||m(K,q,re.code,x,P,ie)}})}});function V(K,k,X,O,x){var ie=e.getFixableErrorSpanExpression(K,X);return ie&&y(K,k,X,O,x)&&F(ie)?ie:void 0}function L(K,k,X,O,x,ie){var Z=K.sourceFile,re=K.program,q=K.cancellationToken,P=j(k,Z,q,re,O);if(P){var M=x(function(Q){e.forEach(P.initializers,function(H){var w=H.expression;return $(Q,X,Z,O,w,ie)}),ie&&P.needsSecondPassForFixAll&&$(Q,X,Z,O,k,ie)});return c.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",M,P.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,P.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function m(K,k,X,O,x,ie){var Z=x(function(re){return $(re,X,K.sourceFile,O,k,ie)});return c.createCodeFixAction(u,Z,e.Diagnostics.Add_await,u,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function y(K,k,X,O,x){var ie=x.getDiagnosticsProducingTypeChecker(),Z=ie.getDiagnostics(K,O);return e.some(Z,function(re){var q=re.start,P=re.length,M=re.relatedInformation,Q=re.code;return e.isNumber(q)&&e.isNumber(P)&&e.textSpansEqual({start:q,length:P},X)&&Q===k&&!!M&&e.some(M,function(H){return H.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function j(K,k,X,O,x){var ie=te(K,x);if(!!ie){for(var Z=ie.isCompleteFix,re,q=function(H){var w=x.getSymbolAtLocation(H);if(!w)return"continue";var d=e.tryCast(w.valueDeclaration,e.isVariableDeclaration),B=d&&e.tryCast(d.name,e.isIdentifier),T=e.getAncestor(d,236);if(!d||!T||d.type||!d.initializer||T.getSourceFile()!==k||e.hasSyntacticModifier(T,1)||!B||!F(d.initializer))return Z=!1,"continue";var _=O.getSemanticDiagnostics(k,X),h=e.FindAllReferences.Core.eachSymbolReferenceInFile(B,x,k,function(R){return H!==R&&!E(R,_,k,x)});if(h)return Z=!1,"continue";(re||(re=[])).push({expression:d.initializer,declarationSymbol:w})},P=0,M=ie.identifiers;P<M.length;P++){var Q=M[P];q(Q)}return re&&{initializers:re,needsSecondPassForFixAll:!Z}}}function te(K,k){if(e.isPropertyAccessExpression(K.parent)&&e.isIdentifier(K.parent.expression))return{identifiers:[K.parent.expression],isCompleteFix:!0};if(e.isIdentifier(K))return{identifiers:[K],isCompleteFix:!0};if(e.isBinaryExpression(K)){for(var X=void 0,O=!0,x=0,ie=[K.left,K.right];x<ie.length;x++){var Z=ie[x],re=k.getTypeAtLocation(Z);if(k.getPromisedTypeOfPromise(re)){if(!e.isIdentifier(Z)){O=!1;continue}(X||(X=[])).push(Z)}}return X&&{identifiers:X,isCompleteFix:O}}}function E(K,k,X,O){var x=e.isPropertyAccessExpression(K.parent)?K.parent.name:e.isBinaryExpression(K.parent)?K.parent:K,ie=e.find(k,function(Z){return Z.start===x.getStart(X)&&Z.start+Z.length===x.getEnd()});return ie&&e.contains(I,ie.code)||O.getTypeAtLocation(x).flags&1}function F(K){return K.kind&32768||!!e.findAncestor(K,function(k){return k.parent&&e.isArrowFunction(k.parent)&&k.parent.body===k||e.isBlock(k)&&(k.parent.kind===255||k.parent.kind===212||k.parent.kind===213||k.parent.kind===168)})}function $(K,k,X,O,x,ie){if(e.isBinaryExpression(x))for(var Z=0,re=[x.left,x.right];Z<re.length;Z++){var q=re[Z];if(ie&&e.isIdentifier(q)){var P=O.getSymbolAtLocation(q);if(P&&ie.has(e.getSymbolId(P)))continue}var M=O.getTypeAtLocation(q),Q=O.getPromisedTypeOfPromise(M)?e.factory.createAwaitExpression(q):q;K.replaceNode(X,q,Q)}else if(k===g&&e.isPropertyAccessExpression(x.parent)){if(ie&&e.isIdentifier(x.parent.expression)){var P=O.getSymbolAtLocation(x.parent.expression);if(P&&ie.has(e.getSymbolId(P)))return}K.replaceNode(X,x.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x.parent.expression))),C(K,x.parent.expression,X)}else if(e.contains(p,k)&&e.isCallOrNewExpression(x.parent)){if(ie&&e.isIdentifier(x)){var P=O.getSymbolAtLocation(x);if(P&&ie.has(e.getSymbolId(P)))return}K.replaceNode(X,x,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(x))),C(K,x,X)}else{if(ie&&e.isVariableDeclaration(x.parent)&&e.isIdentifier(x.parent.name)){var P=O.getSymbolAtLocation(x.parent.name);if(P&&!e.tryAddToSet(ie,e.getSymbolId(P)))return}K.replaceNode(X,x,e.factory.createAwaitExpression(x))}}function C(K,k,X){var O=e.findPrecedingToken(k.pos,X);O&&e.positionIsASICandidate(O.end,O.parent,X)&&K.insertText(X,k.getStart(X),";")}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addMissingConst",g=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(j){var te=e.textChanges.ChangeTracker.with(j,function(E){return p(E,j.sourceFile,j.span.start,j.program)});if(te.length>0)return[c.createCodeFixAction(u,te,e.Diagnostics.Add_const_to_unresolved_variable,u,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[u],getAllCodeActions:function(j){var te=new e.Set;return c.codeFixAll(j,g,function(E,F){return p(E,F.file,F.start,j.program,te)})}});function p(j,te,E,F,$){var C=e.getTokenAtPosition(te,E),K=e.findAncestor(C,function(ie){return e.isForInOrOfStatement(ie.parent)?ie.parent.initializer===ie:V(ie)?!1:"quit"});if(K)return I(j,K,te,$);var k=C.parent;if(e.isBinaryExpression(k)&&k.operatorToken.kind===63&&e.isExpressionStatement(k.parent))return I(j,C,te,$);if(e.isArrayLiteralExpression(k)){var X=F.getTypeChecker();return e.every(k.elements,function(ie){return L(ie,X)})?I(j,k,te,$):void 0}var O=e.findAncestor(C,function(ie){return e.isExpressionStatement(ie.parent)?!0:m(ie)?!1:"quit"});if(O){var x=F.getTypeChecker();return y(O,x)?I(j,O,te,$):void 0}}function I(j,te,E,F){(!F||e.tryAddToSet(F,te))&&j.insertModifierBefore(E,85,te)}function V(j){switch(j.kind){case 79:case 203:case 204:case 294:case 295:return!0;default:return!1}}function L(j,te){var E=e.isIdentifier(j)?j:e.isAssignmentExpression(j,!0)&&e.isIdentifier(j.left)?j.left:void 0;return!!E&&!te.getSymbolAtLocation(E)}function m(j){switch(j.kind){case 79:case 220:case 27:return!0;default:return!1}}function y(j,te){return e.isBinaryExpression(j)?j.operatorToken.kind===27?e.every([j.left,j.right],function(E){return y(E,te)}):j.operatorToken.kind===63&&e.isIdentifier(j.left)&&!te.getSymbolAtLocation(j.left):!1}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addMissingDeclareProperty",g=[e.Diagnostics.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];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span.start)});if(V.length>0)return[c.createCodeFixAction(u,V,e.Diagnostics.Prefix_with_declare,u,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[u],getAllCodeActions:function(I){var V=new e.Set;return c.codeFixAll(I,g,function(L,m){return p(L,m.file,m.start,V)})}});function p(I,V,L,m){var y=e.getTokenAtPosition(V,L);if(!!e.isIdentifier(y)){var j=y.parent;j.kind===166&&(!m||e.tryAddToSet(m,j))&&I.insertModifierBefore(V,135,j)}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addMissingInvocationForDecorator",g=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span.start)});return[c.createCodeFixAction(u,V,e.Diagnostics.Call_decorator_expression,u,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){return p(V,L.file,L.start)})}});function p(I,V,L){var m=e.getTokenAtPosition(V,L),y=e.findAncestor(m,e.isDecorator);e.Debug.assert(!!y,"Expected position to be owned by a decorator.");var j=e.factory.createCallExpression(y.expression,void 0,void 0);I.replaceNode(V,y.expression,j)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addNameToNamelessParameter",g=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span.start)});return[c.createCodeFixAction(u,V,e.Diagnostics.Add_parameter_name,u,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){return p(V,L.file,L.start)})}});function p(I,V,L){var m=e.getTokenAtPosition(V,L),y=m.parent;if(!e.isParameter(y))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(m.kind));var j=y.parent.parameters.indexOf(y);e.Debug.assert(!y.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(j>-1,"Parameter not found in parent parameter list.");var te=e.factory.createTypeReferenceNode(y.name,void 0),E=e.factory.createParameterDeclaration(void 0,y.modifiers,y.dotDotDotToken,"arg"+j,y.questionToken,y.dotDotDotToken?e.factory.createArrayTypeNode(te):te,y.initializer);I.replaceNode(V,y,E)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addOptionalPropertyUndefined",g=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.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];c.registerCodeFix({errorCodes:g,getCodeActions:function(m){var y=m.program.getTypeChecker(),j=p(m.sourceFile,m.span,y);if(!!j.length){var te=e.textChanges.ChangeTracker.with(m,function(E){return L(E,j)});return[c.createCodeFixActionWithoutFixAll(u,te,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[u]});function p(m,y,j){var te,E,F=V(e.getFixableErrorSpanExpression(m,y),j);if(!F)return e.emptyArray;var $=F.source,C=F.target,K=I($,C,j)?j.getTypeAtLocation(C.expression):j.getTypeAtLocation(C);return!((E=(te=K.symbol)===null||te===void 0?void 0:te.declarations)===null||E===void 0)&&E.some(function(k){return e.getSourceFileOfNode(k).fileName.match(/\.d\.ts$/)})?e.emptyArray:j.getExactOptionalProperties(K)}function I(m,y,j){return e.isPropertyAccessExpression(y)&&!!j.getExactOptionalProperties(j.getTypeAtLocation(y.expression)).length&&j.getTypeAtLocation(m)===j.getUndefinedType()}function V(m,y){var j;if(m){if(e.isBinaryExpression(m.parent)&&m.parent.operatorToken.kind===63)return{source:m.parent.right,target:m.parent.left};if(e.isVariableDeclaration(m.parent)&&m.parent.initializer)return{source:m.parent.initializer,target:m.parent.name};if(e.isCallExpression(m.parent)){var te=y.getSymbolAtLocation(m.parent.expression);if(!(te!=null&&te.valueDeclaration)||!e.isFunctionLikeKind(te.valueDeclaration.kind)||!e.isExpression(m))return;var E=m.parent.arguments.indexOf(m);if(E===-1)return;var F=te.valueDeclaration.parameters[E].name;if(e.isIdentifier(F))return{source:m,target:F}}else if(e.isPropertyAssignment(m.parent)&&e.isIdentifier(m.parent.name)||e.isShorthandPropertyAssignment(m.parent)){var $=V(m.parent.parent,y);if(!$)return;var C=y.getPropertyOfType(y.getTypeAtLocation($.target),m.parent.name.text),K=(j=C==null?void 0:C.declarations)===null||j===void 0?void 0:j[0];return K?{source:e.isPropertyAssignment(m.parent)?m.parent.initializer:m.parent.name,target:K}:void 0}}else return}function L(m,y){for(var j=0,te=y;j<te.length;j++){var E=te[j],F=E.valueDeclaration;if(F&&(e.isPropertySignature(F)||e.isPropertyDeclaration(F))&&F.type){var $=e.factory.createUnionTypeNode(Bt(Bt([],F.type.kind===186?F.type.types:[F.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));m.replaceNode(F.getSourceFile(),F.type,$)}}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="annotateWithTypeFromJSDoc",g=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(k){var X=p(k.sourceFile,k.span.start);if(!!X){var O=e.textChanges.ChangeTracker.with(k,function(x){return L(x,k.sourceFile,X)});return[c.createCodeFixAction(u,O,e.Diagnostics.Annotate_with_type_from_JSDoc,u,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[u],getAllCodeActions:function(k){return c.codeFixAll(k,g,function(X,O){var x=p(O.file,O.start);x&&L(X,O.file,x)})}});function p(k,X){var O=e.getTokenAtPosition(k,X);return e.tryCast(e.isParameter(O.parent)?O.parent.parent:O.parent,I)}function I(k){return m(k)&&V(k)}c.parameterShouldGetTypeFromJSDoc=I;function V(k){return e.isFunctionLikeDeclaration(k)?k.parameters.some(V)||!k.type&&!!e.getJSDocReturnType(k):!k.type&&!!e.getJSDocType(k)}function L(k,X,O){if(e.isFunctionLikeDeclaration(O)&&(e.getJSDocReturnType(O)||O.parameters.some(function(H){return!!e.getJSDocType(H)}))){if(!O.typeParameters){var x=e.getJSDocTypeParameterDeclarations(O);x.length&&k.insertTypeParameters(X,O,x)}var ie=e.isArrowFunction(O)&&!e.findChildOfKind(O,20,X);ie&&k.insertNodeBefore(X,e.first(O.parameters),e.factory.createToken(20));for(var Z=0,re=O.parameters;Z<re.length;Z++){var q=re[Z];if(!q.type){var P=e.getJSDocType(q);P&&k.tryInsertTypeAnnotation(X,q,y(P))}}if(ie&&k.insertNodeAfter(X,e.last(O.parameters),e.factory.createToken(21)),!O.type){var M=e.getJSDocReturnType(O);M&&k.tryInsertTypeAnnotation(X,O,y(M))}}else{var Q=e.Debug.checkDefined(e.getJSDocType(O),"A JSDocType for this declaration should exist");e.Debug.assert(!O.type,"The JSDocType decl should have a type"),k.tryInsertTypeAnnotation(X,O,y(Q))}}function m(k){return e.isFunctionLikeDeclaration(k)||k.kind===253||k.kind===165||k.kind===166}function y(k){switch(k.kind){case 310:case 311:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 314:return j(k);case 313:return y(k.type);case 312:return te(k);case 316:return E(k);case 315:return F(k);case 177:return C(k);default:var X=e.visitEachChild(k,y,e.nullTransformationContext);return e.setEmitFlags(X,1),X}}function j(k){return e.factory.createUnionTypeNode([e.visitNode(k.type,y),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}function te(k){return e.factory.createUnionTypeNode([e.visitNode(k.type,y),e.factory.createTypeReferenceNode("null",e.emptyArray)])}function E(k){return e.factory.createArrayTypeNode(e.visitNode(k.type,y))}function F(k){var X;return e.factory.createFunctionTypeNode(e.emptyArray,k.parameters.map($),(X=k.type)!==null&&X!==void 0?X:e.factory.createKeywordTypeNode(130))}function $(k){var X=k.parent.parameters.indexOf(k),O=k.type.kind===316&&X===k.parent.parameters.length-1,x=k.name||(O?"rest":"arg"+X),ie=O?e.factory.createToken(25):k.dotDotDotToken;return e.factory.createParameterDeclaration(k.decorators,k.modifiers,ie,x,k.questionToken,e.visitNode(k.type,y),k.initializer)}function C(k){var X=k.typeName,O=k.typeArguments;if(e.isIdentifier(k.typeName)){if(e.isJSDocIndexSignature(k))return K(k);var x=k.typeName.text;switch(k.typeName.text){case"String":case"Boolean":case"Object":case"Number":x=x.toLowerCase();break;case"array":case"date":case"promise":x=x[0].toUpperCase()+x.slice(1);break}X=e.factory.createIdentifier(x),(x==="Array"||x==="Promise")&&!k.typeArguments?O=e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)]):O=e.visitNodes(k.typeArguments,y)}return e.factory.createTypeReferenceNode(X,O)}function K(k){var X=e.factory.createParameterDeclaration(void 0,void 0,void 0,k.typeArguments[0].kind===146?"n":"s",void 0,e.factory.createTypeReferenceNode(k.typeArguments[0].kind===146?"number":"string",[]),void 0),O=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[X],k.typeArguments[1])]);return e.setEmitFlags(O,1),O}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="convertFunctionToEs6Class",g=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(m){var y=e.textChanges.ChangeTracker.with(m,function(j){return p(j,m.sourceFile,m.span.start,m.program.getTypeChecker(),m.preferences,m.program.getCompilerOptions())});return[c.createCodeFixAction(u,y,e.Diagnostics.Convert_function_to_an_ES2015_class,u,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[u],getAllCodeActions:function(m){return c.codeFixAll(m,g,function(y,j){return p(y,j.file,j.start,m.program.getTypeChecker(),m.preferences,m.program.getCompilerOptions())})}});function p(m,y,j,te,E,F){var $=te.getSymbolAtLocation(e.getTokenAtPosition(y,j));if(!$||!$.valueDeclaration||!($.flags&19))return;var C=$.valueDeclaration;if(e.isFunctionDeclaration(C))m.replaceNode(y,C,x(C));else if(e.isVariableDeclaration(C)){var K=O(C);if(!K)return;var k=C.parent.parent;e.isVariableDeclarationList(C.parent)&&C.parent.declarations.length>1?(m.delete(y,C),m.insertNodeAfter(y,k,K)):m.replaceNode(y,k,K)}function X(ie){var Z=[];return ie.members&&ie.members.forEach(function(P,M){if(M==="constructor"&&P.valueDeclaration){m.delete(y,P.valueDeclaration.parent);return}var Q=q(P,void 0);Q&&Z.push.apply(Z,Q)}),ie.exports&&ie.exports.forEach(function(P){if(P.name==="prototype"&&P.declarations){var M=P.declarations[0];if(P.declarations.length===1&&e.isPropertyAccessExpression(M)&&e.isBinaryExpression(M.parent)&&M.parent.operatorToken.kind===63&&e.isObjectLiteralExpression(M.parent.right)){var Q=M.parent.right,H=q(Q.symbol,void 0);H&&Z.push.apply(Z,H)}}else{var H=q(P,[e.factory.createToken(124)]);H&&Z.push.apply(Z,H)}}),Z;function re(P,M){return e.isAccessExpression(P)?e.isPropertyAccessExpression(P)&&V(P)?!0:e.isFunctionLike(M):e.every(P.properties,function(Q){return!!(e.isMethodDeclaration(Q)||e.isGetOrSetAccessorDeclaration(Q)||e.isPropertyAssignment(Q)&&e.isFunctionExpression(Q.initializer)&&!!Q.name||V(Q))})}function q(P,M){var Q=[];if(!(P.flags&8192)&&!(P.flags&4096))return Q;var H=P.valueDeclaration,w=H.parent,d=w.right;if(!re(H,d))return Q;var B=w.parent&&w.parent.kind===237?w.parent:w;if(m.delete(y,B),!d)return Q.push(e.factory.createPropertyDeclaration([],M,P.name,void 0,void 0,void 0)),Q;if(e.isAccessExpression(H)&&(e.isFunctionExpression(d)||e.isArrowFunction(d))){var T=e.getQuotePreference(y,E),_=L(H,F,T);return _?R(Q,d,_):Q}else{if(e.isObjectLiteralExpression(d))return e.flatMap(d.properties,function(Y){return e.isMethodDeclaration(Y)||e.isGetOrSetAccessorDeclaration(Y)?Q.concat(Y):e.isPropertyAssignment(Y)&&e.isFunctionExpression(Y.initializer)?R(Q,Y.initializer,Y.name):V(Y)?Q:[]});if(e.isSourceFileJS(y)||!e.isPropertyAccessExpression(H))return Q;var h=e.factory.createPropertyDeclaration(void 0,M,H.name,void 0,void 0,d);return e.copyLeadingComments(w.parent,h,y),Q.push(h),Q}function R(Y,pe,A){return e.isFunctionExpression(pe)?b(Y,pe,A):G(Y,pe,A)}function b(Y,pe,A){var _e=e.concatenate(M,I(pe,131)),Se=e.factory.createMethodDeclaration(void 0,_e,void 0,A,void 0,void 0,pe.parameters,void 0,pe.body);return e.copyLeadingComments(w,Se,y),Y.concat(Se)}function G(Y,pe,A){var _e=pe.body,Se;_e.kind===234?Se=_e:Se=e.factory.createBlock([e.factory.createReturnStatement(_e)]);var ae=e.concatenate(M,I(pe,131)),D=e.factory.createMethodDeclaration(void 0,ae,void 0,A,void 0,void 0,pe.parameters,void 0,Se);return e.copyLeadingComments(w,D,y),Y.concat(D)}}}function O(ie){var Z=ie.initializer;if(!(!Z||!e.isFunctionExpression(Z)||!e.isIdentifier(ie.name))){var re=X(ie.symbol);Z.body&&re.unshift(e.factory.createConstructorDeclaration(void 0,void 0,Z.parameters,Z.body));var q=I(ie.parent.parent,93),P=e.factory.createClassDeclaration(void 0,q,ie.name,void 0,void 0,re);return P}}function x(ie){var Z=X($);ie.body&&Z.unshift(e.factory.createConstructorDeclaration(void 0,void 0,ie.parameters,ie.body));var re=I(ie,93),q=e.factory.createClassDeclaration(void 0,re,ie.name,void 0,void 0,Z);return q}}function I(m,y){return e.filter(m.modifiers,function(j){return j.kind===y})}function V(m){return m.name?!!(e.isIdentifier(m.name)&&m.name.text==="constructor"):!1}function L(m,y,j){if(e.isPropertyAccessExpression(m))return m.name;var te=m.argumentExpression;if(e.isNumericLiteral(te))return te;if(e.isStringLiteralLike(te))return e.isIdentifierText(te.text,e.getEmitScriptTarget(y))?e.factory.createIdentifier(te.text):e.isNoSubstitutionTemplateLiteral(te)?e.factory.createStringLiteral(te.text,j===0):te}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="convertToAsyncFunction",g=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],p=!0;c.registerCodeFix({errorCodes:g,getCodeActions:function(D){p=!0;var be=e.textChanges.ChangeTracker.with(D,function(ne){return V(ne,D.sourceFile,D.span.start,D.program.getTypeChecker())});return p?[c.createCodeFixAction(u,be,e.Diagnostics.Convert_to_async_function,u,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[u],getAllCodeActions:function(D){return c.codeFixAll(D,g,function(be,ne){return V(be,ne.file,ne.start,D.program.getTypeChecker())})}});var I;(function(D){D[D.Identifier=0]="Identifier",D[D.BindingPattern=1]="BindingPattern"})(I||(I={}));function V(D,be,ne,J){var le=e.getTokenAtPosition(be,ne),Te;if(e.isIdentifier(le)&&e.isVariableDeclaration(le.parent)&&le.parent.initializer&&e.isFunctionLikeDeclaration(le.parent.initializer)?Te=le.parent.initializer:Te=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(be,ne)),e.canBeConvertedToAsync),!!Te){var Me=new e.Map,Ke=e.isInJSFile(Te),Ae=m(Te,J),Ge=F(Te,J,Me);if(!!e.returnsPromise(Ge,J)){var se=Ge.body&&e.isBlock(Ge.body)?L(Ge.body,J):e.emptyArray,xe={checker:J,synthNamesMap:Me,setOfExpressionsToReturn:Ae,isInJSFile:Ke};if(!!se.length){var Re=Te.modifiers?Te.modifiers.end:Te.decorators?e.skipTrivia(be.text,Te.decorators.end):Te.getStart(be),ce=Te.modifiers?{prefix:" "}:{suffix:" "};D.insertModifierAt(be,Re,131,ce);for(var Ue=function(gr){if(e.forEachChild(gr,function Er(Nr){if(e.isCallExpression(Nr)){var ur=k(Nr,Nr,xe,!1);if(C())return!0;D.replaceNodeWithNodes(be,gr,ur)}else if(!e.isFunctionLike(Nr)&&(e.forEachChild(Nr,Er),C()))return!0}),C())return{value:void 0}},We=0,Ne=se;We<Ne.length;We++){var ve=Ne[We],Ve=Ue(ve);if(typeof Ve=="object")return Ve.value}}}}}function L(D,be){var ne=[];return e.forEachReturnStatement(D,function(J){e.isReturnStatementWithFixablePromiseHandler(J,be)&&ne.push(J)}),ne}function m(D,be){if(!D.body)return new e.Set;var ne=new e.Set;return e.forEachChild(D.body,function J(le){y(le,be,"then")?(ne.add(e.getNodeId(le)),e.forEach(le.arguments,J)):y(le,be,"catch")||y(le,be,"finally")?(ne.add(e.getNodeId(le)),e.forEachChild(le,J)):E(le,be)?ne.add(e.getNodeId(le)):e.forEachChild(le,J)}),ne}function y(D,be,ne){if(!e.isCallExpression(D))return!1;var J=e.hasPropertyAccessExpressionWithName(D,ne),le=J&&be.getTypeAtLocation(D);return!!(le&&be.getPromisedTypeOfPromise(le))}function j(D,be){return(e.getObjectFlags(D)&4)!==0&&D.target===be}function te(D,be,ne){if(D.expression.name.escapedText!=="finally"){var J=ne.getTypeAtLocation(D.expression.expression);if(j(J,ne.getPromiseType())||j(J,ne.getPromiseLikeType()))if(D.expression.name.escapedText==="then"){if(be===e.elementAt(D.arguments,0))return e.elementAt(D.typeArguments,0);if(be===e.elementAt(D.arguments,1))return e.elementAt(D.typeArguments,1)}else return e.elementAt(D.typeArguments,0)}}function E(D,be){return e.isExpression(D)?!!be.getPromisedTypeOfPromise(be.getTypeAtLocation(D)):!1}function F(D,be,ne){var J=new e.Map,le=e.createMultiMap();return e.forEachChild(D,function Te(Me){if(!e.isIdentifier(Me)){e.forEachChild(Me,Te);return}var Ke=be.getSymbolAtLocation(Me);if(Ke){var Ae=be.getTypeAtLocation(Me),Ge=d(Ae,be),se=e.getSymbolId(Ke).toString();if(Ge&&!e.isParameter(Me.parent)&&!e.isFunctionLikeDeclaration(Me.parent)&&!ne.has(se)){var xe=e.firstOrUndefined(Ge.parameters),Re=(xe==null?void 0:xe.valueDeclaration)&&e.isParameter(xe.valueDeclaration)&&e.tryCast(xe.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),ce=$(Re,le);ne.set(se,ce),le.add(Re.text,Ke)}else if(Me.parent&&(e.isParameter(Me.parent)||e.isVariableDeclaration(Me.parent)||e.isBindingElement(Me.parent))){var Ue=Me.text,We=le.get(Ue);if(We&&We.some(function(Ve){return Ve!==Ke})){var Ne=$(Me,le);J.set(se,Ne.identifier),ne.set(se,Ne),le.add(Ue,Ke)}else{var ve=e.getSynthesizedDeepClone(Me);ne.set(se,R(ve)),le.add(Ue,Ke)}}}}),e.getSynthesizedDeepCloneWithReplacements(D,!0,function(Te){if(e.isBindingElement(Te)&&e.isIdentifier(Te.name)&&e.isObjectBindingPattern(Te.parent)){var Me=be.getSymbolAtLocation(Te.name),Ke=Me&&J.get(String(e.getSymbolId(Me)));if(Ke&&Ke.text!==(Te.name||Te.propertyName).getText())return e.factory.createBindingElement(Te.dotDotDotToken,Te.propertyName||Te.name,Ke,Te.initializer)}else if(e.isIdentifier(Te)){var Me=be.getSymbolAtLocation(Te),Ke=Me&&J.get(String(e.getSymbolId(Me)));if(Ke)return e.factory.createIdentifier(Ke.text)}})}function $(D,be){var ne=(be.get(D.text)||e.emptyArray).length,J=ne===0?D:e.factory.createIdentifier(D.text+"_"+ne);return R(J)}function C(){return!p}function K(){return p=!1,e.emptyArray}function k(D,be,ne,J,le){if(y(be,ne.checker,"then"))return q(be,e.elementAt(be.arguments,0),e.elementAt(be.arguments,1),ne,J,le);if(y(be,ne.checker,"catch"))return re(be,e.elementAt(be.arguments,0),ne,J,le);if(y(be,ne.checker,"finally"))return Z(be,e.elementAt(be.arguments,0),ne,J,le);if(e.isPropertyAccessExpression(be))return k(D,be.expression,ne,J,le);var Te=ne.checker.getTypeAtLocation(be);return Te&&ne.checker.getPromisedTypeOfPromise(Te)?(e.Debug.assertNode(e.getOriginalNode(be).parent,e.isPropertyAccessExpression),P(D,be,ne,J,le)):K()}function X(D,be){var ne=D.checker;if(be.kind===104)return!0;if(e.isIdentifier(be)&&!e.isGeneratedIdentifier(be)&&e.idText(be)==="undefined"){var J=ne.getSymbolAtLocation(be);return!J||ne.isUndefinedSymbol(J)}return!1}function O(D){var be=e.factory.createUniqueName(D.identifier.text,16);return R(be)}function x(D,be,ne){var J;return ne&&!ae(D,be)&&(_e(ne)?(J=ne,be.synthNamesMap.forEach(function(le,Te){if(le.identifier.text===ne.identifier.text){var Me=O(ne);be.synthNamesMap.set(Te,Me)}})):J=R(e.factory.createUniqueName("result",16),ne.types),A(J)),J}function ie(D,be,ne,J,le){var Te=[],Me;if(J&&!ae(D,be)){Me=e.getSynthesizedDeepClone(A(J));var Ke=J.types,Ae=be.checker.getUnionType(Ke,2),Ge=be.isInJSFile?void 0:be.checker.typeToTypeNode(Ae,void 0,void 0),se=[e.factory.createVariableDeclaration(Me,void 0,Ge)],xe=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(se,1));Te.push(xe)}return Te.push(ne),le&&Me&&Se(le)&&Te.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(pe(le)),void 0,void 0,Me)],2))),Te}function Z(D,be,ne,J,le){if(!be||X(ne,be))return k(D,D.expression.expression,ne,J,le);var Te=x(D,ne,le),Me=k(D,D.expression.expression,ne,!0,Te);if(C())return K();var Ke=H(be,J,void 0,void 0,D,ne);if(C())return K();var Ae=e.factory.createBlock(Me),Ge=e.factory.createBlock(Ke),se=e.factory.createTryStatement(Ae,void 0,Ge);return ie(D,ne,se,Te,le)}function re(D,be,ne,J,le){if(!be||X(ne,be))return k(D,D.expression.expression,ne,J,le);var Te=_(be,ne),Me=x(D,ne,le),Ke=k(D,D.expression.expression,ne,!0,Me);if(C())return K();var Ae=H(be,J,Me,Te,D,ne);if(C())return K();var Ge=e.factory.createBlock(Ke),se=e.factory.createCatchClause(Te&&e.getSynthesizedDeepClone(Y(Te)),e.factory.createBlock(Ae)),xe=e.factory.createTryStatement(Ge,se,void 0);return ie(D,ne,xe,Me,le)}function q(D,be,ne,J,le,Te){if(!be||X(J,be))return re(D,ne,J,le,Te);if(ne&&!X(J,ne))return K();var Me=_(be,J),Ke=k(D.expression.expression,D.expression.expression,J,!0,Me);if(C())return K();var Ae=H(be,le,Te,Me,D,J);return C()?K():e.concatenate(Ke,Ae)}function P(D,be,ne,J,le){if(ae(D,ne)){var Te=e.getSynthesizedDeepClone(be);return J&&(Te=e.factory.createAwaitExpression(Te)),[e.factory.createReturnStatement(Te)]}return M(le,e.factory.createAwaitExpression(be),void 0)}function M(D,be,ne){return!D||h(D)?[e.factory.createExpressionStatement(be)]:_e(D)&&D.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(G(D)),be))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Y(D)),void 0,ne,be)],2))]}function Q(D,be){if(be&&D){var ne=e.factory.createUniqueName("result",16);return Bt(Bt([],M(R(ne),D,be),!0),[e.factory.createReturnStatement(ne)],!1)}return[e.factory.createReturnStatement(D)]}function H(D,be,ne,J,le,Te){var Me;switch(D.kind){case 104:break;case 205:case 79:if(!J)break;var Ke=e.factory.createCallExpression(e.getSynthesizedDeepClone(D),void 0,_e(J)?[G(J)]:[]);if(ae(le,Te))return Q(Ke,te(le,D,Te.checker));var Ae=Te.checker.getTypeAtLocation(D),Ge=Te.checker.getSignaturesOfType(Ae,0);if(!Ge.length)return K();var se=Ge[0].getReturnType(),xe=M(ne,e.factory.createAwaitExpression(Ke),te(le,D,Te.checker));return ne&&ne.types.push(Te.checker.getAwaitedType(se)||se),xe;case 212:case 213:{var Re=D.body,ce=(Me=d(Te.checker.getTypeAtLocation(D),Te.checker))===null||Me===void 0?void 0:Me.getReturnType();if(e.isBlock(Re)){for(var Ue=[],We=!1,Ne=0,ve=Re.statements;Ne<ve.length;Ne++){var Ve=ve[Ne];if(e.isReturnStatement(Ve))if(We=!0,e.isReturnStatementWithFixablePromiseHandler(Ve,Te.checker))Ue=Ue.concat(T(Te,Ve,be,ne));else{var gr=ce&&Ve.expression?w(Te.checker,ce,Ve.expression):Ve.expression;Ue.push.apply(Ue,Q(gr,te(le,D,Te.checker)))}else{if(be&&e.forEachReturnStatement(Ve,e.returnTrue))return K();Ue.push(Ve)}}return ae(le,Te)?Ue.map(function(ur){return e.getSynthesizedDeepClone(ur)}):B(Ue,ne,Te,We)}else{var Er=e.isFixablePromiseHandler(Re,Te.checker)?T(Te,e.factory.createReturnStatement(Re),be,ne):e.emptyArray;if(Er.length>0)return Er;if(ce){var gr=w(Te.checker,ce,Re);if(ae(le,Te))return Q(gr,te(le,D,Te.checker));var Nr=M(ne,gr,void 0);return ne&&ne.types.push(Te.checker.getAwaitedType(ce)||ce),Nr}else return K()}}default:return K()}return e.emptyArray}function w(D,be,ne){var J=e.getSynthesizedDeepClone(ne);return D.getPromisedTypeOfPromise(be)?e.factory.createAwaitExpression(J):J}function d(D,be){var ne=be.getSignaturesOfType(D,0);return e.lastOrUndefined(ne)}function B(D,be,ne,J){for(var le=[],Te=0,Me=D;Te<Me.length;Te++){var Ke=Me[Te];if(e.isReturnStatement(Ke)){if(Ke.expression){var Ae=E(Ke.expression,ne.checker)?e.factory.createAwaitExpression(Ke.expression):Ke.expression;be===void 0?le.push(e.factory.createExpressionStatement(Ae)):_e(be)&&be.hasBeenDeclared?le.push(e.factory.createExpressionStatement(e.factory.createAssignment(G(be),Ae))):le.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Y(be),void 0,void 0,Ae)],2)))}}else le.push(e.getSynthesizedDeepClone(Ke))}return!J&&be!==void 0&&le.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Y(be),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),le}function T(D,be,ne,J){var le=[];return e.forEachChild(be,function Te(Me){if(e.isCallExpression(Me)){var Ke=k(Me,Me,D,ne,J);if(le=le.concat(Ke),le.length>0)return}else e.isFunctionLike(Me)||e.forEachChild(Me,Te)}),le}function _(D,be){var ne=[],J;if(e.isFunctionLikeDeclaration(D)){if(D.parameters.length>0){var le=D.parameters[0].name;J=Te(le)}}else e.isIdentifier(D)?J=Me(D):e.isPropertyAccessExpression(D)&&e.isIdentifier(D.name)&&(J=Me(D.name));if(!J||"identifier"in J&&J.identifier.text==="undefined")return;return J;function Te(Ge){if(e.isIdentifier(Ge))return Me(Ge);var se=e.flatMap(Ge.elements,function(xe){return e.isOmittedExpression(xe)?[]:[Te(xe.name)]});return b(Ge,se)}function Me(Ge){var se=Ae(Ge),xe=Ke(se);if(!xe)return R(Ge,ne);var Re=be.synthNamesMap.get(e.getSymbolId(xe).toString());return Re||R(Ge,ne)}function Ke(Ge){return Ge.symbol?Ge.symbol:be.checker.getSymbolAtLocation(Ge)}function Ae(Ge){return Ge.original?Ge.original:Ge}}function h(D){return D?_e(D)?!D.identifier.text:e.every(D.elements,h):!0}function R(D,be){return be===void 0&&(be=[]),{kind:0,identifier:D,types:be,hasBeenDeclared:!1,hasBeenReferenced:!1}}function b(D,be,ne){return be===void 0&&(be=e.emptyArray),ne===void 0&&(ne=[]),{kind:1,bindingPattern:D,elements:be,types:ne}}function G(D){return D.hasBeenReferenced=!0,D.identifier}function Y(D){return _e(D)?A(D):pe(D)}function pe(D){for(var be=0,ne=D.elements;be<ne.length;be++){var J=ne[be];Y(J)}return D.bindingPattern}function A(D){return D.hasBeenDeclared=!0,D.identifier}function _e(D){return D.kind===0}function Se(D){return D.kind===1}function ae(D,be){return!!D.original&&be.setOfExpressionsToReturn.has(e.getNodeId(D.original))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(T){var _=T.sourceFile,h=T.program,R=T.preferences,b=e.textChanges.ChangeTracker.with(T,function(G){var Y=g(_,h.getTypeChecker(),G,e.getEmitScriptTarget(h.getCompilerOptions()),e.getQuotePreference(_,R));if(Y)for(var pe=0,A=h.getSourceFiles();pe<A.length;pe++){var _e=A[pe];u(_e,_,G,e.getQuotePreference(_e,R))}});return[c.createCodeFixActionWithoutFixAll("convertToEsModule",b,e.Diagnostics.Convert_to_ES_module)]}});function u(T,_,h,R){for(var b=0,G=T.imports;b<G.length;b++){var Y=G[b],pe=e.getResolvedModule(T,Y.text,e.getModeForUsageLocation(T,Y));if(!(!pe||pe.resolvedFileName!==_.fileName)){var A=e.importFromModuleSpecifier(Y);switch(A.kind){case 264:h.replaceNode(T,A,e.makeImport(A.name,void 0,Y,R));break;case 207:e.isRequireCall(A,!1)&&h.replaceNode(T,A,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(A),"default"));break}}}}function g(T,_,h,R,b){var G={original:Z(T),additional:new e.Set},Y=p(T,_,G);I(T,Y,h);for(var pe=!1,A,_e=0,Se=e.filter(T.statements,e.isVariableStatement);_e<Se.length;_e++){var ae=Se[_e],D=m(T,ae,h,_,G,R,b);D&&e.copyEntries(D,A!=null?A:A=new e.Map)}for(var be=0,ne=e.filter(T.statements,function(le){return!e.isVariableStatement(le)});be<ne.length;be++){var ae=ne[be],J=L(T,ae,_,h,G,R,Y,A,b);pe=pe||J}return A==null||A.forEach(function(le,Te){h.replaceNode(T,Te,le)}),pe}function p(T,_,h){var R=new e.Map;return V(T,function(b){var G=b.name,Y=G.text,pe=G.originalKeywordKind;!R.has(Y)&&(pe!==void 0&&e.isNonContextualKeyword(pe)||_.resolveName(Y,b,111551,!0))&&R.set(Y,ie("_".concat(Y),h))}),R}function I(T,_,h){V(T,function(R,b){if(!b){var G=R.name.text;h.replaceNode(T,R,e.factory.createIdentifier(_.get(G)||G))}})}function V(T,_){T.forEachChild(function h(R){if(e.isPropertyAccessExpression(R)&&e.isExportsOrModuleExportsOrAlias(T,R.expression)&&e.isIdentifier(R.name)){var b=R.parent;_(R,e.isBinaryExpression(b)&&b.left===R&&b.operatorToken.kind===63)}R.forEachChild(h)})}function L(T,_,h,R,b,G,Y,pe,A){switch(_.kind){case 236:return m(T,_,R,h,b,G,A),!1;case 237:{var _e=_.expression;switch(_e.kind){case 207:return e.isRequireCall(_e,!0)&&R.replaceNode(T,_,e.makeImport(void 0,void 0,_e.arguments[0],A)),!1;case 220:{var Se=_e.operatorToken;return Se.kind===63&&j(T,h,_e,R,Y,pe)}}}default:return!1}}function m(T,_,h,R,b,G,Y){var pe=_.declarationList,A=!1,_e=e.map(pe.declarations,function(ae){var D=ae.name,be=ae.initializer;if(be){if(e.isExportsOrModuleExportsOrAlias(T,be))return A=!0,B([]);if(e.isRequireCall(be,!0))return A=!0,O(D,be.arguments[0],R,b,G,Y);if(e.isPropertyAccessExpression(be)&&e.isRequireCall(be.expression,!0))return A=!0,y(D,be.name.text,be.expression.arguments[0],b,Y)}return B([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([ae],pe.flags))])});if(A){h.replaceNodeWithNodes(T,_,e.flatMap(_e,function(ae){return ae.newImports}));var Se;return e.forEach(_e,function(ae){ae.useSitesToUnqualify&&e.copyEntries(ae.useSitesToUnqualify,Se!=null?Se:Se=new e.Map)}),Se}}function y(T,_,h,R,b){switch(T.kind){case 200:case 201:{var G=ie(_,R);return B([Q(G,_,h,b),w(void 0,T,e.factory.createIdentifier(G))])}case 79:return B([Q(T.text,_,h,b)]);default:return e.Debug.assertNever(T,"Convert to ES module got invalid syntax form ".concat(T.kind))}}function j(T,_,h,R,b,G){var Y=h.left,pe=h.right;if(!e.isPropertyAccessExpression(Y))return!1;if(e.isExportsOrModuleExportsOrAlias(T,Y))if(e.isExportsOrModuleExportsOrAlias(T,pe))R.delete(T,h.parent);else{var A=e.isObjectLiteralExpression(pe)?te(pe,G):e.isRequireCall(pe,!0)?F(pe.arguments[0],_):void 0;return A?(R.replaceNodeWithNodes(T,h.parent,A[0]),A[1]):(R.replaceRangeWithText(T,e.createRange(Y.getStart(T),pe.pos),"export default"),!0)}else e.isExportsOrModuleExportsOrAlias(T,Y.expression)&&E(T,h,R,b);return!1}function te(T,_){var h=e.mapAllOrFail(T.properties,function(R){switch(R.kind){case 171:case 172:case 295:case 296:return;case 294:return e.isIdentifier(R.name)?k(R.name.text,R.initializer,_):void 0;case 168:return e.isIdentifier(R.name)?P(R.name.text,[e.factory.createToken(93)],R,_):void 0;default:e.Debug.assertNever(R,"Convert to ES6 got invalid prop kind ".concat(R.kind))}});return h&&[h,!1]}function E(T,_,h,R){var b=_.left.name.text,G=R.get(b);if(G!==void 0){var Y=[w(void 0,G,_.right),d([e.factory.createExportSpecifier(!1,G,b)])];h.replaceNodeWithNodes(T,_.parent,Y)}else K(_,T,h)}function F(T,_){var h=T.text,R=_.getSymbolAtLocation(T),b=R?R.exports:e.emptyMap;return b.has("export=")?[[C(h)],!0]:b.has("default")?b.size>1?[[$(h),C(h)],!0]:[[C(h)],!0]:[[$(h)],!1]}function $(T){return d(void 0,T)}function C(T){return d([e.factory.createExportSpecifier(!1,void 0,"default")],T)}function K(T,_,h){var R=T.left,b=T.right,G=T.parent,Y=R.name.text;if((e.isFunctionExpression(b)||e.isArrowFunction(b)||e.isClassExpression(b))&&(!b.name||b.name.text===Y)){h.replaceRange(_,{pos:R.getStart(_),end:b.getStart(_)},e.factory.createToken(93),{suffix:" "}),b.name||h.insertName(_,b,Y);var pe=e.findChildOfKind(G,26,_);pe&&h.delete(_,pe)}else h.replaceNodeRangeWithNodes(_,R.expression,e.findChildOfKind(R,24,_),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "})}function k(T,_,h){var R=[e.factory.createToken(93)];switch(_.kind){case 212:{var b=_.name;if(b&&b.text!==T)return G()}case 213:return P(T,R,_,h);case 225:return M(T,R,_,h);default:return G()}function G(){return w(R,e.factory.createIdentifier(T),X(_,h))}}function X(T,_){if(!_||!e.some(e.arrayFrom(_.keys()),function(R){return e.rangeContainsRange(T,R)}))return T;return e.isArray(T)?e.getSynthesizedDeepClonesWithReplacements(T,!0,h):e.getSynthesizedDeepCloneWithReplacements(T,!0,h);function h(R){if(R.kind===205){var b=_.get(R);return _.delete(R),b}}}function O(T,_,h,R,b,G){switch(T.kind){case 200:{var Y=e.mapAllOrFail(T.elements,function(A){return A.dotDotDotToken||A.initializer||A.propertyName&&!e.isIdentifier(A.propertyName)||!e.isIdentifier(A.name)?void 0:H(A.propertyName&&A.propertyName.text,A.name.text)});if(Y)return B([e.makeImport(void 0,Y,_,G)])}case 201:{var pe=ie(c.moduleSpecifierToValidIdentifier(_.text,b),R);return B([e.makeImport(e.factory.createIdentifier(pe),void 0,_,G),w(void 0,e.getSynthesizedDeepClone(T),e.factory.createIdentifier(pe))])}case 79:return x(T,_,h,R,G);default:return e.Debug.assertNever(T,"Convert to ES module got invalid name kind ".concat(T.kind))}}function x(T,_,h,R,b){for(var G=h.getSymbolAtLocation(T),Y=new e.Map,pe=!1,A,_e=0,Se=R.original.get(T.text);_e<Se.length;_e++){var ae=Se[_e];if(!(h.getSymbolAtLocation(ae)!==G||ae===T)){var D=ae.parent;if(e.isPropertyAccessExpression(D)){var be=D.name.text;if(be==="default"){pe=!0;var ne=ae.getText();(A!=null?A:A=new e.Map).set(D,e.factory.createIdentifier(ne))}else{e.Debug.assert(D.expression===ae,"Didn't expect expression === use");var J=Y.get(be);J===void 0&&(J=ie(be,R),Y.set(be,J)),(A!=null?A:A=new e.Map).set(D,e.factory.createIdentifier(J))}}else pe=!0}}var le=Y.size===0?void 0:e.arrayFrom(e.mapIterator(Y.entries(),function(Te){var Me=Te[0],Ke=Te[1];return e.factory.createImportSpecifier(!1,Me===Ke?void 0:e.factory.createIdentifier(Me),e.factory.createIdentifier(Ke))}));return le||(pe=!0),B([e.makeImport(pe?e.getSynthesizedDeepClone(T):void 0,le,_,b)],A)}function ie(T,_){for(;_.original.has(T)||_.additional.has(T);)T="_".concat(T);return _.additional.add(T),T}function Z(T){var _=e.createMultiMap();return re(T,function(h){return _.add(h.text,h)}),_}function re(T,_){e.isIdentifier(T)&&q(T)&&_(T),T.forEachChild(function(h){return re(h,_)})}function q(T){var _=T.parent;switch(_.kind){case 205:return _.name!==T;case 202:return _.propertyName!==T;case 269:return _.propertyName!==T;default:return!0}}function P(T,_,h,R){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(h.decorators),e.concatenate(_,e.getSynthesizedDeepClones(h.modifiers)),e.getSynthesizedDeepClone(h.asteriskToken),T,e.getSynthesizedDeepClones(h.typeParameters),e.getSynthesizedDeepClones(h.parameters),e.getSynthesizedDeepClone(h.type),e.factory.converters.convertToFunctionBlock(X(h.body,R)))}function M(T,_,h,R){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(h.decorators),e.concatenate(_,e.getSynthesizedDeepClones(h.modifiers)),T,e.getSynthesizedDeepClones(h.typeParameters),e.getSynthesizedDeepClones(h.heritageClauses),X(h.members,R))}function Q(T,_,h,R){return _==="default"?e.makeImport(e.factory.createIdentifier(T),void 0,h,R):e.makeImport(void 0,[H(_,T)],h,R)}function H(T,_){return e.factory.createImportSpecifier(!1,T!==void 0&&T!==_?e.factory.createIdentifier(T):void 0,e.factory.createIdentifier(_))}function w(T,_,h){return e.factory.createVariableStatement(T,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(_,void 0,void 0,h)],2))}function d(T,_){return e.factory.createExportDeclaration(void 0,void 0,!1,T&&e.factory.createNamedExports(T),_===void 0?void 0:e.factory.createStringLiteral(_))}function B(T,_){return{newImports:T,useSitesToUnqualify:_}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="correctQualifiedNameToIndexedAccessType",g=[e.Diagnostics.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];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=p(V.sourceFile,V.span.start);if(!!L){var m=e.textChanges.ChangeTracker.with(V,function(j){return I(j,V.sourceFile,L)}),y="".concat(L.left.text,'["').concat(L.right.text,'"]');return[c.createCodeFixAction(u,m,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,y],u,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){var y=p(m.file,m.start);y&&I(L,m.file,y)})}});function p(V,L){var m=e.findAncestor(e.getTokenAtPosition(V,L),e.isQualifiedName);return e.Debug.assert(!!m,"Expected position to be owned by a qualified name."),e.isIdentifier(m.left)?m:void 0}function I(V,L,m){var y=m.right.text,j=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(m.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(y)));V.replaceNode(L,m,j)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],g="convertToTypeOnlyExport";c.registerCodeFix({errorCodes:u,getCodeActions:function(L){var m=e.textChanges.ChangeTracker.with(L,function(y){return I(y,p(L.span,L.sourceFile),L)});if(m.length)return[c.createCodeFixAction(g,m,e.Diagnostics.Convert_to_type_only_export,g,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[g],getAllCodeActions:function(L){var m=new e.Map;return c.codeFixAll(L,u,function(y,j){var te=p(j,L.sourceFile);te&&e.addToSeen(m,e.getNodeId(te.parent.parent))&&I(y,te,L)})}});function p(L,m){return e.tryCast(e.getTokenAtPosition(m,L.start).parent,e.isExportSpecifier)}function I(L,m,y){if(!!m){var j=m.parent,te=j.parent,E=V(m,y);if(E.length===j.elements.length)L.insertModifierBefore(y.sourceFile,151,j);else{var F=e.factory.updateExportDeclaration(te,te.decorators,te.modifiers,!1,e.factory.updateNamedExports(j,e.filter(j.elements,function(C){return!e.contains(E,C)})),te.moduleSpecifier,void 0),$=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(E),te.moduleSpecifier,void 0);L.replaceNode(y.sourceFile,te,F,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),L.insertNodeAfter(y.sourceFile,te,$)}}}function V(L,m){var y=L.parent;if(y.elements.length===1)return y.elements;var j=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(y),m.program.getSemanticDiagnostics(m.sourceFile,m.cancellationToken));return e.filter(y.elements,function(te){var E;return te===L||((E=e.findDiagnosticForNode(te,j))===null||E===void 0?void 0:E.code)===u[0]})}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],g="convertToTypeOnlyImport";c.registerCodeFix({errorCodes:u,getCodeActions:function(V){var L=e.textChanges.ChangeTracker.with(V,function(m){var y=p(V.span,V.sourceFile);I(m,y,V)});if(L.length)return[c.createCodeFixAction(g,L,e.Diagnostics.Convert_to_type_only_import,g,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[g],getAllCodeActions:function(V){return c.codeFixAll(V,u,function(L,m){var y=p(m,V.sourceFile);I(L,y,V)})}});function p(V,L){return e.tryCast(e.getTokenAtPosition(L,V.start).parent,e.isImportDeclaration)}function I(V,L,m){if(!!(L!=null&&L.importClause)){var y=L.importClause;V.insertText(m.sourceFile,L.getStart()+6," type"),y.name&&y.namedBindings&&(V.deleteNodeRangeExcludingEnd(m.sourceFile,y.name,L.importClause.namedBindings),V.insertNodeBefore(m.sourceFile,L,e.factory.updateImportDeclaration(L,void 0,void 0,e.factory.createImportClause(!0,y.name,void 0),L.moduleSpecifier,void 0)))}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="convertLiteralTypeToMappedType",g=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=p(L,m.start);if(!!y){var j=y.name,te=y.constraint,E=e.textChanges.ChangeTracker.with(V,function(F){return I(F,L,y)});return[c.createCodeFixAction(u,E,[e.Diagnostics.Convert_0_to_1_in_0,te,j],u,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){var y=p(m.file,m.start);y&&I(L,m.file,y)})}});function p(V,L){var m=e.getTokenAtPosition(V,L);if(e.isIdentifier(m)){var y=e.cast(m.parent.parent,e.isPropertySignature),j=m.getText(V);return{container:e.cast(y.parent,e.isTypeLiteralNode),typeNode:y.type,constraint:j,name:j==="K"?"P":"K"}}}function I(V,L,m){var y=m.container,j=m.typeNode,te=m.constraint,E=m.name;V.replaceNode(L,y,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(E,e.factory.createTypeReferenceNode(te)),void 0,void 0,j,void 0))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],g="fixClassIncorrectlyImplementsInterface";c.registerCodeFix({errorCodes:u,getCodeActions:function(m){var y=m.sourceFile,j=m.span,te=p(y,j.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(te),function(E){var F=e.textChanges.ChangeTracker.with(m,function($){return V(m,E,y,te,$,m.preferences)});return F.length===0?void 0:c.createCodeFixAction(g,F,[e.Diagnostics.Implement_interface_0,E.getText(y)],g,e.Diagnostics.Implement_all_unimplemented_interfaces)})},fixIds:[g],getAllCodeActions:function(m){var y=new e.Map;return c.codeFixAll(m,u,function(j,te){var E=p(te.file,te.start);if(e.addToSeen(y,e.getNodeId(E)))for(var F=0,$=e.getEffectiveImplementsTypeNodes(E);F<$.length;F++){var C=$[F];V(m,C,te.file,E,j,m.preferences)}})}});function p(m,y){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(m,y)),"There should be a containing class")}function I(m){return!m.valueDeclaration||!(e.getEffectiveModifierFlags(m.valueDeclaration)&8)}function V(m,y,j,te,E,F){var $=m.program.getTypeChecker(),C=L(te,$),K=$.getTypeAtLocation(y),k=$.getPropertiesOfType(K),X=k.filter(e.and(I,function(q){return!C.has(q.escapedName)})),O=$.getTypeAtLocation(te),x=e.find(te.members,function(q){return e.isConstructorDeclaration(q)});O.getNumberIndexType()||Z(K,1),O.getStringIndexType()||Z(K,0);var ie=c.createImportAdder(j,m.program,F,m.host);c.createMissingMemberNodes(te,X,j,m,F,ie,function(q){return re(j,te,q)}),ie.writeFixes(E);function Z(q,P){var M=$.getIndexInfoOfType(q,P);M&&re(j,te,$.indexInfoToIndexSignatureDeclaration(M,te,void 0,c.getNoopSymbolTrackerWithResolver(m)))}function re(q,P,M){x?E.insertNodeAfter(q,x,M):E.insertNodeAtClassStart(q,P,M)}}function L(m,y){var j=e.getEffectiveBaseTypeNode(m);if(!j)return e.createSymbolTable();var te=y.getTypeAtLocation(j),E=y.getPropertiesOfType(te);return e.createSymbolTable(E.filter(I))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.importFixName="import";var u="fixMissingImport",g=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(Ae){var Ge=Ae.errorCode,se=Ae.preferences,xe=Ae.sourceFile,Re=Ae.span,ce=Ae.program,Ue=P(Ae,Ge,Re.start,!0);if(!!Ue){var We=Ue.fixes,Ne=Ue.symbolName,ve=e.getQuotePreference(xe,se);return We.map(function(Ve){return pe(Ae,xe,Ne,Ve,ve,ce.getCompilerOptions())})}},fixIds:[u],getAllCodeActions:function(Ae){var Ge=Ae.sourceFile,se=Ae.program,xe=Ae.preferences,Re=Ae.host,ce=I(Ge,se,!0,xe,Re);return c.eachDiagnostic(Ae,g,function(Ue){return ce.addImportFromDiagnostic(Ue,Ae)}),c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(Ae,ce.writeFixes))}});function p(Ae,Ge,se,xe){return I(Ae,Ge,!1,se,xe)}c.createImportAdder=p;function I(Ae,Ge,se,xe,Re){var ce=Ge.getCompilerOptions(),Ue=[],We=[],Ne=new e.Map,ve=new e.Map;return{addImportFromDiagnostic:Ve,addImportFromExportedSymbol:gr,writeFixes:Nr,hasFixes:ur};function Ve(xr,sr){var i=P(sr,xr.code,xr.start,se);!i||!i.fixes.length||Er(i)}function gr(xr,sr){var i=e.Debug.checkDefined(xr.parent),Mr=e.getNameForExportedSymbol(xr,e.getEmitScriptTarget(ce)),fr=Ge.getTypeChecker(),Ar=fr.getMergedSymbol(e.skipAlias(xr,fr)),de=E(Ae,Ar,i,Mr,Re,Ge,xe,se),we=ie(Ae,Ge),qe=y(Ae,de,i,Mr,Ge,void 0,!!sr,we,Re,xe);qe&&Er({fixes:[qe],symbolName:Mr})}function Er(xr){var sr,i,Mr=xr.fixes,fr=xr.symbolName,Ar=e.first(Mr);switch(Ar.kind){case 0:Ue.push(Ar);break;case 1:We.push(Ar);break;case 2:{var de=Ar.importClauseOrBindingPattern,we=Ar.importKind,qe=Ar.addAsTypeOnly,Cr=String(e.getNodeId(de)),kr=Ne.get(Cr);if(kr||Ne.set(Cr,kr={importClauseOrBindingPattern:de,defaultImport:void 0,namedImports:new e.Map}),we===0){var He=kr==null?void 0:kr.namedImports.get(fr);kr.namedImports.set(fr,Je(He,qe))}else e.Debug.assert(kr.defaultImport===void 0||kr.defaultImport.name===fr,"(Add to Existing) Default import should be missing or match symbolName"),kr.defaultImport={name:fr,addAsTypeOnly:Je((sr=kr.defaultImport)===null||sr===void 0?void 0:sr.addAsTypeOnly,qe)};break}case 3:{var lr=Ar.moduleSpecifier,we=Ar.importKind,Hr=Ar.useRequire,qe=Ar.addAsTypeOnly,kr=Sr(lr,we,Hr,qe);switch(e.Debug.assert(kr.useRequire===Hr,"(Add new) Tried to add an `import` and a `require` for the same module"),we){case 1:e.Debug.assert(kr.defaultImport===void 0||kr.defaultImport.name===fr,"(Add new) Default import should be missing or match symbolName"),kr.defaultImport={name:fr,addAsTypeOnly:Je((i=kr.defaultImport)===null||i===void 0?void 0:i.addAsTypeOnly,qe)};break;case 0:var He=(kr.namedImports||(kr.namedImports=new e.Map)).get(fr);kr.namedImports.set(fr,Je(He,qe));break;case 3:case 2:e.Debug.assert(kr.namespaceLikeImport===void 0||kr.namespaceLikeImport.name===fr,"Namespacelike import shoudl be missing or match symbolName"),kr.namespaceLikeImport={importKind:we,name:fr,addAsTypeOnly:qe};break}break}default:e.Debug.assertNever(Ar,"fix wasn't never - got kind ".concat(Ar.kind))}function Je(ot,_t){return Math.max(ot!=null?ot:0,_t)}function Sr(ot,_t,kt,Yt){var vn=Yr(ot,!0),Mn=Yr(ot,!1),qn=ve.get(vn),nr=ve.get(Mn),Zr={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:kt};return _t===1&&Yt===2?qn||(ve.set(vn,Zr),Zr):Yt===1&&(qn||nr)?qn||nr:nr||(ve.set(Mn,Zr),Zr)}function Yr(ot,_t){return"".concat(_t?1:0,"|").concat(ot)}}function Nr(xr){for(var sr=e.getQuotePreference(Ae,xe),i=0,Mr=Ue;i<Mr.length;i++){var fr=Mr[i];Se(xr,Ae,fr)}for(var Ar=0,de=We;Ar<de.length;Ar++){var fr=de[Ar];ae(xr,Ae,fr,sr)}Ne.forEach(function(qe){var Cr=qe.importClauseOrBindingPattern,kr=qe.defaultImport,He=qe.namedImports;_e(xr,Ae,Cr,kr,e.arrayFrom(He.entries(),function(lr){var Hr=lr[0],Je=lr[1];return{addAsTypeOnly:Je,name:Hr}}),ce)});var we;ve.forEach(function(qe,Cr){var kr=qe.useRequire,He=qe.defaultImport,lr=qe.namedImports,Hr=qe.namespaceLikeImport,Je=Cr.slice(2),Sr=kr?J:ne,Yr=Sr(Je,sr,He,lr&&e.arrayFrom(lr.entries(),function(ot){var _t=ot[0],kt=ot[1];return{addAsTypeOnly:kt,name:_t}}),Hr);we=e.combine(we,Yr)}),we&&e.insertImports(xr,Ae,we,!0)}function ur(){return Ue.length>0||We.length>0||Ne.size>0||ve.size>0}}var V;(function(Ae){Ae[Ae.UseNamespace=0]="UseNamespace",Ae[Ae.JsdocTypeImport=1]="JsdocTypeImport",Ae[Ae.AddToExisting=2]="AddToExisting",Ae[Ae.AddNew=3]="AddNew"})(V||(V={}));var L;(function(Ae){Ae[Ae.Allowed=1]="Allowed",Ae[Ae.Required=2]="Required",Ae[Ae.NotAllowed=4]="NotAllowed"})(L||(L={}));function m(Ae,Ge,se,xe,Re,ce,Ue,We,Ne){var ve=ce.getCompilerOptions(),Ve=e.pathIsBareSpecifier(e.stripQuotes(Ge.name))?[te(Ae,Ge,ce,Re)]:E(se,Ae,Ge,xe,Re,ce,Ne,!0),gr=ie(se,ce),Er=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(se,We)),Nr=e.Debug.checkDefined(y(se,Ve,Ge,xe,ce,We,Er,gr,Re,Ne));return{moduleSpecifier:Nr.moduleSpecifier,codeAction:j(pe({host:Re,formatContext:Ue,preferences:Ne},se,xe,Nr,e.getQuotePreference(se,Ne),ve))}}c.getImportCompletionAction=m;function y(Ae,Ge,se,xe,Re,ce,Ue,We,Ne,ve){return e.Debug.assert(Ge.some(function(Ve){return Ve.moduleSymbol===se||Ve.symbol.parent===se}),"Some exportInfo should match the specified moduleSymbol"),Q($(Ge,xe,ce,Ue,We,Re,Ae,Ne,ve),Ae,Re,Ne,ve)}function j(Ae){var Ge=Ae.description,se=Ae.changes,xe=Ae.commands;return{description:Ge,changes:se,commands:xe}}function te(Ae,Ge,se,xe){var Re,ce,Ue=se.getCompilerOptions(),We=ve(se.getTypeChecker(),!1);if(We)return We;var Ne=(ce=(Re=xe.getPackageJsonAutoImportProvider)===null||Re===void 0?void 0:Re.call(xe))===null||ce===void 0?void 0:ce.getTypeChecker();return e.Debug.checkDefined(Ne&&ve(Ne,!0),"Could not find symbol in specified module for code actions");function ve(Ve,gr){var Er=e.getDefaultLikeExportInfo(Ge,Ve,Ue);if(Er&&e.skipAlias(Er.symbol,Ve)===Ae)return{symbol:Er.symbol,moduleSymbol:Ge,moduleFileName:void 0,exportKind:Er.exportKind,targetFlags:e.skipAlias(Ae,Ve).flags,isFromPackageJson:gr};var Nr=Ve.tryGetMemberInModuleExportsAndProperties(Ae.name,Ge);if(Nr&&e.skipAlias(Nr,Ve)===Ae)return{symbol:Nr,moduleSymbol:Ge,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(Ae,Ve).flags,isFromPackageJson:gr}}}function E(Ae,Ge,se,xe,Re,ce,Ue,We){var Ne=[],ve=ce.getCompilerOptions(),Ve=e.memoizeOne(function(Er){return e.createModuleSpecifierResolutionHost(Er?Re.getPackageJsonAutoImportProvider():ce,Re)});return e.forEachExternalModuleToImportFrom(ce,Re,We,function(Er,Nr,ur,xr){var sr=ur.getTypeChecker();if(!(Nr&&Er!==se&&e.startsWith(Ae.fileName,e.getDirectoryPath(Nr.fileName)))){var i=e.getDefaultLikeExportInfo(Er,sr,ve);i&&(i.name===xe||Me(Er,e.getEmitScriptTarget(ve))===xe)&&e.skipAlias(i.symbol,sr)===Ge&&gr(ur,Nr,xr)&&Ne.push({symbol:i.symbol,moduleSymbol:Er,moduleFileName:Nr==null?void 0:Nr.fileName,exportKind:i.exportKind,targetFlags:e.skipAlias(i.symbol,sr).flags,isFromPackageJson:xr});for(var Mr=0,fr=sr.getExportsAndPropertiesOfModule(Er);Mr<fr.length;Mr++){var Ar=fr[Mr];Ar.name===xe&&sr.getMergedSymbol(e.skipAlias(Ar,sr))===Ge&&gr(ur,Nr,xr)&&Ne.push({symbol:Ar,moduleSymbol:Er,moduleFileName:Nr==null?void 0:Nr.fileName,exportKind:0,targetFlags:e.skipAlias(Ar,sr).flags,isFromPackageJson:xr})}}}),Ne;function gr(Er,Nr,ur){var xr;return!Nr||e.isImportableFile(Er,Ae,Nr,Ue,void 0,Ve(ur),(xr=Re.getModuleSpecifierCache)===null||xr===void 0?void 0:xr.call(Re))}}function F(Ae,Ge,se,xe,Re,ce){var Ue=Z(se,Ge,void 0,!1,!1,Ae,xe,Re,ce),We=Ue.fixes,Ne=Ue.computedWithoutCacheCount,ve=Q(We,Ge,se,xe,Re);return ve&&kn(kn({},ve),{computedWithoutCacheCount:Ne})}c.getModuleSpecifierForBestExportInfo=F;function $(Ae,Ge,se,xe,Re,ce,Ue,We,Ne){var ve=ce.getTypeChecker(),Ve=e.flatMap(Ae,function(ur){return x(ur,ve,Ue,ce.getCompilerOptions())}),gr=se===void 0?void 0:C(Ve,Ge,se,ve),Er=O(Ve,xe,ve,ce.getCompilerOptions()),Nr=Er?[Er]:re(Ae,Ve,ce,Ue,se,xe,Re,We,Ne);return Bt(Bt([],gr?[gr]:e.emptyArray,!0),Nr,!0)}function C(Ae,Ge,se,xe){return e.firstDefined(Ae,function(Re){var ce=Re.declaration,Ue=k(ce),We=e.tryGetModuleSpecifierFromDeclaration(ce);if(Ue&&We){var Ne=K(ce,xe);if(Ne&&Ne.exports.has(e.escapeLeadingUnderscores(Ge)))return{kind:0,namespacePrefix:Ue,position:se,moduleSpecifier:We}}})}function K(Ae,Ge){var se;switch(Ae.kind){case 253:return Ge.resolveExternalModuleName(Ae.initializer.arguments[0]);case 264:return Ge.getAliasedSymbol(Ae.symbol);case 265:var xe=e.tryCast((se=Ae.importClause)===null||se===void 0?void 0:se.namedBindings,e.isNamespaceImport);return xe&&Ge.getAliasedSymbol(xe.symbol);default:return e.Debug.assertNever(Ae)}}function k(Ae){var Ge,se,xe;switch(Ae.kind){case 253:return(Ge=e.tryCast(Ae.name,e.isIdentifier))===null||Ge===void 0?void 0:Ge.text;case 264:return Ae.name.text;case 265:return(xe=e.tryCast((se=Ae.importClause)===null||se===void 0?void 0:se.namedBindings,e.isNamespaceImport))===null||xe===void 0?void 0:xe.name.text;default:return e.Debug.assertNever(Ae)}}function X(Ae,Ge,se,xe,Re,ce){return Ae?Ge&&ce.importsNotUsedAsValues===2||ce.isolatedModules&&ce.preserveValueImports&&(!(xe&111551)||!!Re.getTypeOnlyAliasDeclaration(se))?2:1:4}function O(Ae,Ge,se,xe){return e.firstDefined(Ae,function(Re){var ce=Re.declaration,Ue=Re.importKind,We=Re.symbol,Ne=Re.targetFlags;if(!(Ue===3||Ue===2||ce.kind===264)){if(ce.kind===253)return(Ue===0||Ue===1)&&ce.name.kind===200?{kind:2,importClauseOrBindingPattern:ce.name,importKind:Ue,moduleSpecifier:ce.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;var ve=ce.importClause;if(!(!ve||!e.isStringLiteralLike(ce.moduleSpecifier))){var Ve=ve.name,gr=ve.namedBindings;if(!(ve.isTypeOnly&&!(Ue===0&&gr))){var Er=X(Ge,!1,We,Ne,se,xe);if(!(Ue===1&&(Ve||Er===2&&gr))&&!(Ue===0&&(gr==null?void 0:gr.kind)===267))return{kind:2,importClauseOrBindingPattern:ve,importKind:Ue,moduleSpecifier:ce.moduleSpecifier.text,addAsTypeOnly:Er}}}}})}function x(Ae,Ge,se,xe){var Re=Ae.moduleSymbol,ce=Ae.exportKind,Ue=Ae.targetFlags,We=Ae.symbol;if(!(Ue&111551)&&e.isSourceFileJS(se))return e.emptyArray;var Ne=T(se,ce,xe);return e.mapDefined(se.imports,function(ve){var Ve=e.importFromModuleSpecifier(ve);if(e.isVariableDeclarationInitializedToRequire(Ve.parent))return Ge.resolveExternalModuleName(ve)===Re?{declaration:Ve.parent,importKind:Ne,symbol:We,targetFlags:Ue}:void 0;if(Ve.kind===265||Ve.kind===264)return Ge.getSymbolAtLocation(ve)===Re?{declaration:Ve,importKind:Ne,symbol:We,targetFlags:Ue}:void 0})}function ie(Ae,Ge){if(!e.isSourceFileJS(Ae))return!1;if(Ae.commonJsModuleIndicator&&!Ae.externalModuleIndicator)return!0;if(Ae.externalModuleIndicator&&!Ae.commonJsModuleIndicator)return!1;var se=Ge.getCompilerOptions();if(se.configFile)return e.getEmitModuleKind(se)<e.ModuleKind.ES2015;for(var xe=0,Re=Ge.getSourceFiles();xe<Re.length;xe++){var ce=Re[xe];if(!(ce===Ae||!e.isSourceFileJS(ce)||Ge.isSourceFileFromExternalLibrary(ce))){if(ce.commonJsModuleIndicator&&!ce.externalModuleIndicator)return!0;if(ce.externalModuleIndicator&&!ce.commonJsModuleIndicator)return!1}}return!0}function Z(Ae,Ge,se,xe,Re,ce,Ue,We,Ne){var ve=e.isSourceFileJS(Ge),Ve=Ae.getCompilerOptions(),gr=e.createModuleSpecifierResolutionHost(Ae,Ue),Er=e.memoizeOne(function(sr){return sr?Ue.getPackageJsonAutoImportProvider().getTypeChecker():Ae.getTypeChecker()}),Nr=Ne?function(sr){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(sr,Ge,gr,We),computedWithoutCache:!1}}:function(sr,i){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(sr,i,Ve,Ge,gr,We)},ur=0,xr=e.flatMap(ce,function(sr){var i=Er(sr.isFromPackageJson),Mr=Nr(sr.moduleSymbol,i),fr=Mr.computedWithoutCache,Ar=Mr.moduleSpecifiers,de=!!(sr.targetFlags&111551),we=X(xe,!0,sr.symbol,sr.targetFlags,i,Ve);return ur+=fr?1:0,Ar==null?void 0:Ar.map(function(qe){return!de&&ve&&se!==void 0?{kind:1,moduleSpecifier:qe,position:se,exportInfo:sr}:{kind:3,moduleSpecifier:qe,importKind:T(Ge,sr.exportKind,Ve),useRequire:Re,addAsTypeOnly:we,exportInfo:sr}})});return{computedWithoutCacheCount:ur,fixes:xr}}function re(Ae,Ge,se,xe,Re,ce,Ue,We,Ne){var ve=e.firstDefined(Ge,function(Ve){return q(Ve,ce,Ue,se.getTypeChecker(),se.getCompilerOptions())});return ve?[ve]:Z(se,xe,Re,ce,Ue,Ae,We,Ne).fixes}function q(Ae,Ge,se,xe,Re){var ce=Ae.declaration,Ue=Ae.importKind,We=Ae.symbol,Ne=Ae.targetFlags,ve=e.tryGetModuleSpecifierFromDeclaration(ce);if(ve){var Ve=se?4:X(Ge,!0,We,Ne,xe,Re);return{kind:3,moduleSpecifier:ve,importKind:Ue,addAsTypeOnly:Ve,useRequire:se}}}function P(Ae,Ge,se,xe){var Re=e.getTokenAtPosition(Ae.sourceFile,se),ce=Ge===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code?d(Ae,Re):e.isIdentifier(Re)?h(Ae,Re,xe):void 0;return ce&&kn(kn({},ce),{fixes:M(ce.fixes,Ae.sourceFile,Ae.program,Ae.host,Ae.preferences)})}function M(Ae,Ge,se,xe,Re){var ce=e.createPackageJsonImportFilter(Ge,Re,xe).allowsImportingSpecifier;return e.sort(Ae,function(Ue,We){return e.compareValues(Ue.kind,We.kind)||H(Ue,We,Ge,se,ce)})}function Q(Ae,Ge,se,xe,Re){if(!!e.some(Ae)){if(Ae[0].kind===0||Ae[0].kind===2)return Ae[0];var ce=e.createPackageJsonImportFilter(Ge,Re,xe).allowsImportingSpecifier;return Ae.reduce(function(Ue,We){return H(We,Ue,Ge,se,ce)===-1?We:Ue})}}function H(Ae,Ge,se,xe,Re){return Ae.kind!==0&&Ge.kind!==0?e.compareBooleans(Re(Ge.moduleSpecifier),Re(Ae.moduleSpecifier))||w(Ae.moduleSpecifier,Ge.moduleSpecifier,se,xe)||e.compareNumberOfDirectorySeparators(Ae.moduleSpecifier,Ge.moduleSpecifier):0}function w(Ae,Ge,se,xe){return e.startsWith(Ae,"node:")&&!e.startsWith(Ge,"node:")?e.shouldUseUriStyleNodeCoreModules(se,xe)?-1:1:e.startsWith(Ge,"node:")&&!e.startsWith(Ae,"node:")?e.shouldUseUriStyleNodeCoreModules(se,xe)?1:-1:0}function d(Ae,Ge){var se=Ae.sourceFile,xe=Ae.program,Re=Ae.host,ce=Ae.preferences,Ue=xe.getTypeChecker(),We=B(Ge,Ue);if(!!We){var Ne=Ue.getAliasedSymbol(We),ve=We.name,Ve=[{symbol:We,moduleSymbol:Ne,moduleFileName:void 0,exportKind:3,targetFlags:Ne.flags,isFromPackageJson:!1}],gr=ie(se,xe),Er=$(Ve,ve,e.isIdentifier(Ge)?Ge.getStart(se):void 0,!1,gr,xe,se,Re,ce);return{fixes:Er,symbolName:ve}}}function B(Ae,Ge){var se=e.isIdentifier(Ae)?Ge.getSymbolAtLocation(Ae):void 0;if(e.isUMDExportSymbol(se))return se;var xe=Ae.parent;return e.isJsxOpeningLikeElement(xe)&&xe.tagName===Ae||e.isJsxOpeningFragment(xe)?e.tryCast(Ge.resolveName(Ge.getJsxNamespace(xe),e.isJsxOpeningLikeElement(xe)?Ae:xe,111551,!1),e.isUMDExportSymbol):void 0}function T(Ae,Ge,se,xe){switch(Ge){case 0:return 0;case 1:return 1;case 2:return Y(Ae,se,!!xe);case 3:return _(Ae,se,!!xe);default:return e.Debug.assertNever(Ge)}}c.getImportKind=T;function _(Ae,Ge,se){if(e.getAllowSyntheticDefaultImports(Ge))return 1;var xe=e.getEmitModuleKind(Ge);switch(xe){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(Ae)&&(e.isExternalModule(Ae)||se)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node12:case e.ModuleKind.NodeNext:return Ae.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(xe,"Unexpected moduleKind ".concat(xe))}}function h(Ae,Ge,se){var xe=Ae.sourceFile,Re=Ae.program,ce=Ae.cancellationToken,Ue=Ae.host,We=Ae.preferences,Ne=Re.getTypeChecker(),ve=Re.getCompilerOptions(),Ve=b(xe,Ne,Ge,ve);e.Debug.assert(Ve!=="default","'default' isn't a legal identifier and couldn't occur here");var gr=e.isValidTypeOnlyAliasUseSite(Ge),Er=ie(xe,Re),Nr=G(Ve,e.getMeaningFromLocation(Ge),ce,xe,Re,se,Ue,We),ur=e.arrayFrom(e.flatMapIterator(Nr.entries(),function(xr){var sr=xr[0],i=xr[1];return $(i,Ve,Ge.getStart(xe),gr,Er,Re,xe,Ue,We)}));return{fixes:ur,symbolName:Ve}}function R(Ae){return Ae===2||Ae===3}function b(Ae,Ge,se,xe){var Re=se.parent;if((e.isJsxOpeningLikeElement(Re)||e.isJsxClosingElement(Re))&&Re.tagName===se&&R(xe.jsx)){var ce=Ge.getJsxNamespace(Ae);if(e.isIntrinsicJsxName(se.text)||!Ge.resolveName(ce,Re,111551,!0))return ce}return se.text}function G(Ae,Ge,se,xe,Re,ce,Ue,We){var Ne,ve=e.createMultiMap(),Ve=e.createPackageJsonImportFilter(xe,We,Ue),gr=(Ne=Ue.getModuleSpecifierCache)===null||Ne===void 0?void 0:Ne.call(Ue),Er=e.memoizeOne(function(ur){return e.createModuleSpecifierResolutionHost(ur?Ue.getPackageJsonAutoImportProvider():Re,Ue)});function Nr(ur,xr,sr,i,Mr,fr){var Ar=Er(fr);if(xr&&e.isImportableFile(Mr,xe,xr,We,Ve,Ar,gr)||!xr&&Ve.allowsImportingAmbientModule(ur,Ar)){var de=Mr.getTypeChecker();ve.add(e.getUniqueSymbolId(sr,de).toString(),{symbol:sr,moduleSymbol:ur,moduleFileName:xr==null?void 0:xr.fileName,exportKind:i,targetFlags:e.skipAlias(sr,de).flags,isFromPackageJson:fr})}}return e.forEachExternalModuleToImportFrom(Re,Ue,ce,function(ur,xr,sr,i){var Mr=sr.getTypeChecker();se.throwIfCancellationRequested();var fr=sr.getCompilerOptions(),Ar=e.getDefaultLikeExportInfo(ur,Mr,fr);Ar&&(Ar.name===Ae||Me(ur,e.getEmitScriptTarget(fr))===Ae)&&Te(Ar.symbolForMeaning,Ge)&&Nr(ur,xr,Ar.symbol,Ar.exportKind,sr,i);var de=Mr.tryGetMemberInModuleExportsAndProperties(Ae,ur);de&&Te(de,Ge)&&Nr(ur,xr,de,0,sr,i)}),ve}function Y(Ae,Ge,se){var xe=e.getAllowSyntheticDefaultImports(Ge),Re=e.isInJSFile(Ae);if(!Re&&e.getEmitModuleKind(Ge)>=e.ModuleKind.ES2015)return xe?1:2;if(Re)return e.isExternalModule(Ae)||se?xe?1:2:3;for(var ce=0,Ue=Ae.statements;ce<Ue.length;ce++){var We=Ue[ce];if(e.isImportEqualsDeclaration(We)&&!e.nodeIsMissing(We.moduleReference))return 3}return xe?1:3}function pe(Ae,Ge,se,xe,Re,ce){var Ue,We=e.textChanges.ChangeTracker.with(Ae,function(Ne){Ue=A(Ne,Ge,se,xe,Re,ce)});return c.createCodeFixAction(c.importFixName,We,Ue,u,e.Diagnostics.Add_all_missing_imports)}function A(Ae,Ge,se,xe,Re,ce){switch(xe.kind){case 0:return Se(Ae,Ge,xe),[e.Diagnostics.Change_0_to_1,se,"".concat(xe.namespacePrefix,".").concat(se)];case 1:return ae(Ae,Ge,xe,Re),[e.Diagnostics.Change_0_to_1,se,D(xe.moduleSpecifier,Re)+se];case 2:{var Ue=xe.importClauseOrBindingPattern,We=xe.importKind,Ne=xe.addAsTypeOnly,ve=xe.moduleSpecifier;_e(Ae,Ge,Ue,We===1?{name:se,addAsTypeOnly:Ne}:void 0,We===0?[{name:se,addAsTypeOnly:Ne}]:e.emptyArray,ce);var Ve=e.stripQuotes(ve);return[We===1?e.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1:e.Diagnostics.Add_0_to_existing_import_declaration_from_1,se,Ve]}case 3:{var We=xe.importKind,ve=xe.moduleSpecifier,Ne=xe.addAsTypeOnly,gr=xe.useRequire,Er=gr?J:ne,Nr=We===1?{name:se,addAsTypeOnly:Ne}:void 0,ur=We===0?[{name:se,addAsTypeOnly:Ne}]:void 0,xr=We===2||We===3?{importKind:We,name:se,addAsTypeOnly:Ne}:void 0;return e.insertImports(Ae,Ge,Er(ve,Re,Nr,ur,xr),!0),[We===1?e.Diagnostics.Import_default_0_from_module_1:e.Diagnostics.Import_0_from_module_1,se,ve]}default:return e.Debug.assertNever(xe,"Unexpected fix kind ".concat(xe.kind))}}function _e(Ae,Ge,se,xe,Re,ce){var Ue;if(se.kind===200){xe&&Cr(se,xe.name,"default");for(var We=0,Ne=Re;We<Ne.length;We++){var ve=Ne[We];Cr(se,ve.name,void 0)}return}var Ve=se.isTypeOnly&&e.some(Bt([xe],Re,!0),function(kr){return(kr==null?void 0:kr.addAsTypeOnly)===4}),gr=se.namedBindings&&((Ue=e.tryCast(se.namedBindings,e.isNamedImports))===null||Ue===void 0?void 0:Ue.elements),Er=Ve&&ce.preserveValueImports&&ce.isolatedModules;if(xe&&(e.Debug.assert(!se.name,"Cannot add a default import to an import clause that already has one"),Ae.insertNodeAt(Ge,se.getStart(Ge),e.factory.createIdentifier(xe.name),{suffix:", "})),Re.length){var Nr=e.stableSort(Re.map(function(kr){return e.factory.createImportSpecifier((!se.isTypeOnly||Ve)&&be(kr),void 0,e.factory.createIdentifier(kr.name))}),e.OrganizeImports.compareImportOrExportSpecifiers);if((gr==null?void 0:gr.length)&&e.OrganizeImports.importSpecifiersAreSorted(gr))for(var ur=0,xr=Nr;ur<xr.length;ur++){var sr=xr[ur],i=Er&&!sr.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(gr,sr),Mr=se.namedBindings.elements[i-1];Mr?Ae.insertNodeInListAfter(Ge,Mr,sr):Ae.insertNodeBefore(Ge,gr[0],sr,!e.positionsAreOnSameLine(gr[0].getStart(),se.parent.getStart(),Ge))}else if(gr!=null&&gr.length)for(var fr=0,Ar=Nr;fr<Ar.length;fr++){var sr=Ar[fr];Ae.insertNodeInListAfter(Ge,e.last(gr),sr,gr)}else if(Nr.length){var de=e.factory.createNamedImports(Nr);se.namedBindings?Ae.replaceNode(Ge,se.namedBindings,de):Ae.insertNodeAfter(Ge,e.Debug.checkDefined(se.name,"Import clause must have either named imports or a default import"),de)}}if(Ve&&(Ae.delete(Ge,e.getTypeKeywordOfTypeOnlyImport(se,Ge)),Er&&gr))for(var we=0,qe=gr;we<qe.length;we++){var ve=qe[we];Ae.insertModifierBefore(Ge,151,ve)}function Cr(kr,He,lr){var Hr=e.factory.createBindingElement(void 0,lr,He);kr.elements.length?Ae.insertNodeInListAfter(Ge,e.last(kr.elements),Hr):Ae.replaceNode(Ge,kr,e.factory.createObjectBindingPattern([Hr]))}}function Se(Ae,Ge,se){var xe=se.namespacePrefix,Re=se.position;Ae.insertText(Ge,Re,xe+".")}function ae(Ae,Ge,se,xe){var Re=se.moduleSpecifier,ce=se.position;Ae.insertText(Ge,ce,D(Re,xe))}function D(Ae,Ge){var se=e.getQuoteFromPreference(Ge);return"import(".concat(se).concat(Ae).concat(se,").")}function be(Ae){var Ge=Ae.addAsTypeOnly;return Ge===2}function ne(Ae,Ge,se,xe,Re){var ce=e.makeStringLiteral(Ae,Ge),Ue;if(se!==void 0||(xe==null?void 0:xe.length)){var We=(!se||be(se))&&e.every(xe,be);Ue=e.combine(Ue,e.makeImport(se&&e.factory.createIdentifier(se.name),xe==null?void 0:xe.map(function(ve){var Ve=ve.addAsTypeOnly,gr=ve.name;return e.factory.createImportSpecifier(!We&&Ve===2,void 0,e.factory.createIdentifier(gr))}),Ae,Ge,We))}if(Re){var Ne=Re.importKind===3?e.factory.createImportEqualsDeclaration(void 0,void 0,be(Re),e.factory.createIdentifier(Re.name),e.factory.createExternalModuleReference(ce)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(be(Re),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(Re.name))),ce,void 0);Ue=e.combine(Ue,Ne)}return e.Debug.checkDefined(Ue)}function J(Ae,Ge,se,xe,Re){var ce=e.makeStringLiteral(Ae,Ge),Ue;if(se||(xe==null?void 0:xe.length)){var We=(xe==null?void 0:xe.map(function(ve){var Ve=ve.name;return e.factory.createBindingElement(void 0,void 0,Ve)}))||[];se&&We.unshift(e.factory.createBindingElement(void 0,"default",se.name));var Ne=le(e.factory.createObjectBindingPattern(We),ce);Ue=e.combine(Ue,Ne)}if(Re){var Ne=le(Re.name,ce);Ue=e.combine(Ue,Ne)}return e.Debug.checkDefined(Ue)}function le(Ae,Ge){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(typeof Ae=="string"?e.factory.createIdentifier(Ae):Ae,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[Ge]))],2))}function Te(Ae,Ge){var se=Ae.declarations;return e.some(se,function(xe){return!!(e.getMeaningFromDeclaration(xe)&Ge)})}function Me(Ae,Ge){return Ke(e.removeFileExtension(e.stripQuotes(Ae.name)),Ge)}c.moduleSymbolToValidIdentifier=Me;function Ke(Ae,Ge){var se=e.getBaseFileName(e.removeSuffix(Ae,"/index")),xe="",Re=!0,ce=se.charCodeAt(0);e.isIdentifierStart(ce,Ge)?xe+=String.fromCharCode(ce):Re=!1;for(var Ue=1;Ue<se.length;Ue++){var We=se.charCodeAt(Ue),Ne=e.isIdentifierPart(We,Ge);if(Ne){var ve=String.fromCharCode(We);Re||(ve=ve.toUpperCase()),xe+=ve}Re=Ne}return e.isStringANonContextualKeyword(xe)?"_".concat(xe):xe||"_"}c.moduleSpecifierToValidIdentifier=Ke})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u,g="fixOverrideModifier",p="fixAddOverrideModifier",I="fixRemoveOverrideModifier",V=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code],L=(u={},u[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,p,e.Diagnostics.Add_all_missing_override_modifiers],u[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]=[e.Diagnostics.Remove_override_modifier,I,e.Diagnostics.Remove_all_unnecessary_override_modifiers],u[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]=[e.Diagnostics.Add_override_modifier,p,e.Diagnostics.Add_all_missing_override_modifiers],u[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]=[e.Diagnostics.Add_override_modifier,p,e.Diagnostics.Remove_all_unnecessary_override_modifiers],u[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]=[e.Diagnostics.Remove_override_modifier,I,e.Diagnostics.Remove_all_unnecessary_override_modifiers],u);c.registerCodeFix({errorCodes:V,getCodeActions:function(F){var $=F.errorCode,C=F.span,K=F.sourceFile,k=L[$];if(!k)return e.emptyArray;var X=k[0],O=k[1],x=k[2];if(e.isSourceFileJS(K))return e.emptyArray;var ie=e.textChanges.ChangeTracker.with(F,function(Z){return m(Z,F,$,C.start)});return[c.createCodeFixActionMaybeFixAll(g,ie,X,O,x)]},fixIds:[g,p,I],getAllCodeActions:function(F){return c.codeFixAll(F,V,function($,C){var K=C.code,k=C.start,X=C.file,O=L[K];!O||O[1]!==F.fixId||e.isSourceFileJS(X)||m($,F,K,k)})}});function m(F,$,C,K){switch(C){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:return y(F,$.sourceFile,K);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:return j(F,$.sourceFile,K);default:e.Debug.fail("Unexpected error code: "+C)}}function y(F,$,C){var K=E($,C),k=K.modifiers||e.emptyArray,X=e.find(k,e.isStaticModifier),O=e.find(k,e.isAbstractModifier),x=e.find(k,function(re){return e.isAccessibilityModifier(re.kind)}),ie=O?O.end:X?X.end:x?x.end:K.decorators?e.skipTrivia($.text,K.decorators.end):K.getStart($),Z=x||X||O?{prefix:" "}:{suffix:" "};F.insertModifierAt($,ie,158,Z)}function j(F,$,C){var K=E($,C),k=K.modifiers&&e.find(K.modifiers,function(X){return X.kind===158});e.Debug.assertIsDefined(k),F.deleteModifier($,k)}function te(F){switch(F.kind){case 170:case 166:case 168:case 171:case 172:return!0;case 163:return e.isParameterPropertyDeclaration(F,F.parent);default:return!1}}function E(F,$){var C=e.getTokenAtPosition(F,$),K=e.findAncestor(C,function(k){return e.isClassLike(k)?"quit":te(k)});return e.Debug.assert(K&&te(K)),K}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixNoPropertyAccessFromIndexSignature",g=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];c.registerCodeFix({errorCodes:g,fixIds:[u],getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=V.preferences,j=I(L,m.start),te=e.textChanges.ChangeTracker.with(V,function(E){return p(E,V.sourceFile,j,y)});return[c.createCodeFixAction(u,te,[e.Diagnostics.Use_element_access_for_0,j.name.text],u,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){return p(L,m.file,I(m.file,m.start),V.preferences)})}});function p(V,L,m,y){var j=e.getQuotePreference(L,y),te=e.factory.createStringLiteral(m.name.text,j===0);V.replaceNode(L,m,e.isPropertyAccessChain(m)?e.factory.createElementAccessChain(m.expression,m.questionDotToken,te):e.factory.createElementAccessExpression(m.expression,te))}function I(V,L){return e.cast(e.getTokenAtPosition(V,L).parent,e.isPropertyAccessExpression)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixImplicitThis",g=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=I.sourceFile,L=I.program,m=I.span,y,j=e.textChanges.ChangeTracker.with(I,function(te){y=p(te,V,m.start,L.getTypeChecker())});return y?[c.createCodeFixAction(u,j,y,u,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){p(V,L.file,L.start,I.program.getTypeChecker())})}});function p(I,V,L,m){var y=e.getTokenAtPosition(V,L);e.Debug.assert(y.kind===108);var j=e.getThisContainer(y,!1);if(!(!e.isFunctionDeclaration(j)&&!e.isFunctionExpression(j))&&!e.isSourceFile(e.getThisContainer(j,!1))){var te=e.Debug.assertDefined(e.findChildOfKind(j,98,V)),E=j.name,F=e.Debug.assertDefined(j.body);return e.isFunctionExpression(j)?E&&e.FindAllReferences.Core.isSymbolReferencedInFile(E,m,V,F)?void 0:(I.delete(V,te),E&&I.delete(V,E),I.insertText(V,F.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,E?E.text:e.ANONYMOUS]):(I.replaceNode(V,te,e.factory.createToken(85)),I.insertText(V,E.end," = "),I.insertText(V,F.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,E.text])}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixIncorrectNamedTupleSyntax",g=[e.Diagnostics.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,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=p(L,m.start),j=e.textChanges.ChangeTracker.with(V,function(te){return I(te,L,y)});return[c.createCodeFixAction(u,j,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,u,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[u]});function p(V,L){var m=e.getTokenAtPosition(V,L);return e.findAncestor(m,function(y){return y.kind===196})}function I(V,L,m){if(!!m){for(var y=m.type,j=!1,te=!1;y.kind===184||y.kind===185||y.kind===190;)y.kind===184?j=!0:y.kind===185&&(te=!0),y=y.type;var E=e.factory.updateNamedTupleMember(m,m.dotDotDotToken||(te?e.factory.createToken(25):void 0),m.name,m.questionToken||(j?e.factory.createToken(57):void 0),y);E!==m&&V.replaceNode(L,m,E)}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixSpelling",g=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.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,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(m){var y=m.sourceFile,j=m.errorCode,te=p(y,m.span.start,m,j);if(!!te){var E=te.node,F=te.suggestedSymbol,$=e.getEmitScriptTarget(m.host.getCompilationSettings()),C=e.textChanges.ChangeTracker.with(m,function(K){return I(K,y,E,F,$)});return[c.createCodeFixAction("spelling",C,[e.Diagnostics.Change_spelling_to_0,e.symbolName(F)],u,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[u],getAllCodeActions:function(m){return c.codeFixAll(m,g,function(y,j){var te=p(j.file,j.start,m,j.code),E=e.getEmitScriptTarget(m.host.getCompilationSettings());te&&I(y,m.sourceFile,te.node,te.suggestedSymbol,E)})}});function p(m,y,j,te){var E=e.getTokenAtPosition(m,y),F=E.parent;if(!((te===e.Diagnostics.No_overload_matches_this_call.code||te===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(F))){var $=j.program.getTypeChecker(),C;if(e.isPropertyAccessExpression(F)&&F.name===E){e.Debug.assert(e.isMemberName(E),"Expected an identifier for spelling (property access)");var K=$.getTypeAtLocation(F.expression);F.flags&32&&(K=$.getNonNullableType(K)),C=$.getSuggestedSymbolForNonexistentProperty(E,K)}else if(e.isBinaryExpression(F)&&F.operatorToken.kind===101&&F.left===E&&e.isPrivateIdentifier(E)){var k=$.getTypeAtLocation(F.right);C=$.getSuggestedSymbolForNonexistentProperty(E,k)}else if(e.isQualifiedName(F)&&F.right===E){var X=$.getSymbolAtLocation(F.left);X&&X.flags&1536&&(C=$.getSuggestedSymbolForNonexistentModule(F.right,X))}else if(e.isImportSpecifier(F)&&F.name===E){e.Debug.assertNode(E,e.isIdentifier,"Expected an identifier for spelling (import)");var O=e.findAncestor(E,e.isImportDeclaration),x=L(m,j,O);x&&x.symbol&&(C=$.getSuggestedSymbolForNonexistentModule(E,x.symbol))}else if(e.isJsxAttribute(F)&&F.name===E){e.Debug.assertNode(E,e.isIdentifier,"Expected an identifier for JSX attribute");var ie=e.findAncestor(E,e.isJsxOpeningLikeElement),Z=$.getContextualTypeForArgumentAtIndex(ie,0);C=$.getSuggestedSymbolForNonexistentJSXAttribute(E,Z)}else if(e.hasSyntacticModifier(F,16384)&&e.isClassElement(F)&&F.name===E){var re=e.findAncestor(E,e.isClassLike),q=re?e.getEffectiveBaseTypeNode(re):void 0,P=q?$.getTypeAtLocation(q):void 0;P&&(C=$.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(E),P))}else{var M=e.getMeaningFromLocation(E),Q=e.getTextOfNode(E);e.Debug.assert(Q!==void 0,"name should be defined"),C=$.getSuggestedSymbolForNonexistentSymbol(E,Q,V(M))}return C===void 0?void 0:{node:E,suggestedSymbol:C}}}function I(m,y,j,te,E){var F=e.symbolName(te);if(!e.isIdentifierText(F,E)&&e.isPropertyAccessExpression(j.parent)){var $=te.valueDeclaration;$&&e.isNamedDeclaration($)&&e.isPrivateIdentifier($.name)?m.replaceNode(y,j,e.factory.createIdentifier(F)):m.replaceNode(y,j.parent,e.factory.createElementAccessExpression(j.parent.expression,e.factory.createStringLiteral(F)))}else m.replaceNode(y,j,e.factory.createIdentifier(F))}function V(m){var y=0;return m&4&&(y|=1920),m&2&&(y|=788968),m&1&&(y|=111551),y}function L(m,y,j){if(!(!j||!e.isStringLiteralLike(j.moduleSpecifier))){var te=e.getResolvedModule(m,j.moduleSpecifier.text,e.getModeForUsageLocation(m,j.moduleSpecifier));if(!!te)return y.program.getSourceFile(te.resolvedFileName)}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="returnValueCorrect",g="fixAddReturnStatement",p="fixRemoveBracesFromArrowFunctionBody",I="fixWrapTheBlockWithParen",V=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],L;(function(O){O[O.MissingReturnStatement=0]="MissingReturnStatement",O[O.MissingParentheses=1]="MissingParentheses"})(L||(L={})),c.registerCodeFix({errorCodes:V,fixIds:[g,p,I],getCodeActions:function(O){var x=O.program,ie=O.sourceFile,Z=O.span.start,re=O.errorCode,q=te(x.getTypeChecker(),ie,Z,re);if(!!q)return q.kind===L.MissingReturnStatement?e.append([K(O,q.expression,q.statement)],e.isArrowFunction(q.declaration)?k(O,q.declaration,q.expression,q.commentSource):void 0):[X(O,q.declaration,q.expression)]},getAllCodeActions:function(O){return c.codeFixAll(O,V,function(x,ie){var Z=te(O.program.getTypeChecker(),ie.file,ie.start,ie.code);if(!!Z)switch(O.fixId){case g:F(x,ie.file,Z.expression,Z.statement);break;case p:if(!e.isArrowFunction(Z.declaration))return;$(x,ie.file,Z.declaration,Z.expression,Z.commentSource,!1);break;case I:if(!e.isArrowFunction(Z.declaration))return;C(x,ie.file,Z.declaration,Z.expression);break;default:e.Debug.fail(JSON.stringify(O.fixId))}})}});function m(O,x,ie){var Z=O.createSymbol(4,x.escapedText);Z.type=O.getTypeAtLocation(ie);var re=e.createSymbolTable([Z]);return O.createAnonymousType(void 0,re,[],[],[])}function y(O,x,ie,Z){if(!(!x.body||!e.isBlock(x.body)||e.length(x.body.statements)!==1)){var re=e.first(x.body.statements);if(e.isExpressionStatement(re)&&j(O,x,O.getTypeAtLocation(re.expression),ie,Z))return{declaration:x,kind:L.MissingReturnStatement,expression:re.expression,statement:re,commentSource:re.expression};if(e.isLabeledStatement(re)&&e.isExpressionStatement(re.statement)){var q=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(re.label,re.statement.expression)]),P=m(O,re.label,re.statement.expression);if(j(O,x,P,ie,Z))return e.isArrowFunction(x)?{declaration:x,kind:L.MissingParentheses,expression:q,statement:re,commentSource:re.statement.expression}:{declaration:x,kind:L.MissingReturnStatement,expression:q,statement:re,commentSource:re.statement.expression}}else if(e.isBlock(re)&&e.length(re.statements)===1){var M=e.first(re.statements);if(e.isLabeledStatement(M)&&e.isExpressionStatement(M.statement)){var q=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(M.label,M.statement.expression)]),P=m(O,M.label,M.statement.expression);if(j(O,x,P,ie,Z))return{declaration:x,kind:L.MissingReturnStatement,expression:q,statement:re,commentSource:M}}}}}function j(O,x,ie,Z,re){if(re){var q=O.getSignatureFromDeclaration(x);if(q){e.hasSyntacticModifier(x,256)&&(ie=O.createPromiseType(ie));var P=O.createSignature(x,q.typeParameters,q.thisParameter,q.parameters,ie,void 0,q.minArgumentCount,q.flags);ie=O.createAnonymousType(void 0,e.createSymbolTable(),[P],[],[])}else ie=O.getAnyType()}return O.isTypeAssignableTo(ie,Z)}function te(O,x,ie,Z){var re=e.getTokenAtPosition(x,ie);if(!!re.parent){var q=e.findAncestor(re.parent,e.isFunctionLikeDeclaration);switch(Z){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!q||!q.body||!q.type||!e.rangeContainsRange(q.type,re)?void 0:y(O,q,O.getTypeFromTypeNode(q.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!q||!e.isCallExpression(q.parent)||!q.body)return;var P=q.parent.arguments.indexOf(q),M=O.getContextualTypeForArgumentAtIndex(q.parent,P);return M?y(O,q,M,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(re)||!e.isVariableLike(re.parent)&&!e.isJsxAttribute(re.parent))return;var Q=E(re.parent);return!Q||!e.isFunctionLikeDeclaration(Q)||!Q.body?void 0:y(O,Q,O.getTypeAtLocation(re.parent),!0)}}}function E(O){switch(O.kind){case 253:case 163:case 202:case 166:case 294:return O.initializer;case 284:return O.initializer&&(e.isJsxExpression(O.initializer)?O.initializer.expression:void 0);case 295:case 165:case 297:case 345:case 338:return}}function F(O,x,ie,Z){e.suppressLeadingAndTrailingTrivia(ie);var re=e.probablyUsesSemicolons(x);O.replaceNode(x,Z,e.factory.createReturnStatement(ie),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:re?";":void 0})}function $(O,x,ie,Z,re,q){var P=q||e.needsParentheses(Z)?e.factory.createParenthesizedExpression(Z):Z;e.suppressLeadingAndTrailingTrivia(re),e.copyComments(re,P),O.replaceNode(x,ie.body,P)}function C(O,x,ie,Z){O.replaceNode(x,ie.body,e.factory.createParenthesizedExpression(Z))}function K(O,x,ie){var Z=e.textChanges.ChangeTracker.with(O,function(re){return F(re,O.sourceFile,x,ie)});return c.createCodeFixAction(u,Z,e.Diagnostics.Add_a_return_statement,g,e.Diagnostics.Add_all_missing_return_statement)}function k(O,x,ie,Z){var re=e.textChanges.ChangeTracker.with(O,function(q){return $(q,O.sourceFile,x,ie,Z,!1)});return c.createCodeFixAction(u,re,e.Diagnostics.Remove_braces_from_arrow_function_body,p,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function X(O,x,ie){var Z=e.textChanges.ChangeTracker.with(O,function(re){return C(re,O.sourceFile,x,ie)});return c.createCodeFixAction(u,Z,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,I,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixMissingMember",g="fixMissingProperties",p="fixMissingAttributes",I="fixMissingFunctionDeclaration",V=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];c.registerCodeFix({errorCodes:V,getCodeActions:function(w){var d=w.program.getTypeChecker(),B=m(w.sourceFile,w.span.start,w.errorCode,d,w.program);if(!!B){if(B.kind===3){var T=e.textChanges.ChangeTracker.with(w,function(_){return q(_,w,B)});return[c.createCodeFixAction(g,T,e.Diagnostics.Add_missing_properties,g,e.Diagnostics.Add_all_missing_properties)]}if(B.kind===4){var T=e.textChanges.ChangeTracker.with(w,function(h){return re(h,w,B)});return[c.createCodeFixAction(p,T,e.Diagnostics.Add_missing_attributes,p,e.Diagnostics.Add_all_missing_attributes)]}if(B.kind===2){var T=e.textChanges.ChangeTracker.with(w,function(h){return Z(h,w,B)});return[c.createCodeFixAction(I,T,[e.Diagnostics.Add_missing_function_declaration_0,B.token.text],I,e.Diagnostics.Add_all_missing_function_declarations)]}if(B.kind===0){var T=e.textChanges.ChangeTracker.with(w,function(h){return ie(h,w.program.getTypeChecker(),B)});return[c.createCodeFixAction(u,T,[e.Diagnostics.Add_missing_enum_member_0,B.token.text],u,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(O(w,B),j(w,B))}},fixIds:[u,I,g,p],getAllCodeActions:function(w){var d=w.program,B=w.fixId,T=d.getTypeChecker(),_=new e.Map,h=new e.Map;return c.createCombinedCodeActions(e.textChanges.ChangeTracker.with(w,function(R){c.eachDiagnostic(w,V,function(b){var G=m(b.file,b.start,b.code,T,w.program);if(!(!G||!e.addToSeen(_,e.getNodeId(G.parentDeclaration)+"#"+G.token.text))){if(B===I&&G.kind===2)Z(R,w,G);else if(B===g&&G.kind===3)q(R,w,G);else if(B===p&&G.kind===4)re(R,w,G);else if(G.kind===0&&ie(R,T,G),G.kind===1){var Y=G.parentDeclaration,pe=G.token,A=e.getOrUpdate(h,Y,function(){return[]});A.some(function(_e){return _e.token.text===pe.text})||A.push(G)}}}),h.forEach(function(b,G){for(var Y=c.getAllSupers(G,T),pe=function(ae){if(Y.some(function(Ke){var Ae=h.get(Ke);return!!Ae&&Ae.some(function(Ge){var se=Ge.token;return se.text===ae.token.text})}))return"continue";var D=ae.parentDeclaration,be=ae.declSourceFile,ne=ae.modifierFlags,J=ae.token,le=ae.call,Te=ae.isJSFile;if(le&&!e.isPrivateIdentifier(J))x(w,R,le,J,ne&32,D,be);else if(Te&&!e.isInterfaceDeclaration(D))E(R,be,D,J,!!(ne&32));else{var Me=C(d.getTypeChecker(),D,J);K(R,be,D,J.text,Me,ne&32)}},A=0,_e=b;A<_e.length;A++){var Se=_e[A];pe(Se)}})}))}});var L;(function(w){w[w.Enum=0]="Enum",w[w.ClassOrInterface=1]="ClassOrInterface",w[w.Function=2]="Function",w[w.ObjectLiteral=3]="ObjectLiteral",w[w.JsxAttributes=4]="JsxAttributes"})(L||(L={}));function m(w,d,B,T,_){var h=e.getTokenAtPosition(w,d),R=h.parent;if(B===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(h.kind===18&&e.isObjectLiteralExpression(R)&&e.isCallExpression(R.parent)))return;var b=e.findIndex(R.parent.arguments,function(se){return se===R});if(b<0)return;var G=e.singleOrUndefined(T.getSignaturesOfType(T.getTypeAtLocation(R.parent.expression),0));if(!(G&&G.declaration&&G.parameters[b]))return;var Y=G.parameters[b].valueDeclaration;if(!(Y&&e.isParameter(Y)&&e.isIdentifier(Y.name)))return;var pe=e.arrayFrom(T.getUnmatchedProperties(T.getTypeAtLocation(R),T.getTypeAtLocation(Y),!1,!1));return e.length(pe)?{kind:3,token:Y.name,properties:pe,indentation:0,parentDeclaration:R}:void 0}if(!!e.isMemberName(h)){if(e.isIdentifier(h)&&e.hasInitializer(R)&&R.initializer&&e.isObjectLiteralExpression(R.initializer)){var pe=e.arrayFrom(T.getUnmatchedProperties(T.getTypeAtLocation(R.initializer),T.getTypeAtLocation(h),!1,!1));return e.length(pe)?{kind:3,token:h,properties:pe,indentation:void 0,parentDeclaration:R.initializer}:void 0}if(e.isIdentifier(h)&&e.isJsxOpeningLikeElement(h.parent)){var A=H(T,h.parent);return e.length(A)?{kind:4,token:h,attributes:A,parentDeclaration:h.parent}:void 0}if(e.isIdentifier(h)&&e.isCallExpression(R))return{kind:2,token:h,call:R,sourceFile:w,modifierFlags:0,parentDeclaration:w};if(!!e.isPropertyAccessExpression(R)){var _e=e.skipConstraint(T.getTypeAtLocation(R.expression)),Se=_e.symbol;if(!(!Se||!Se.declarations)){if(e.isIdentifier(h)&&e.isCallExpression(R.parent)){var ae=e.find(Se.declarations,e.isModuleDeclaration),D=ae==null?void 0:ae.getSourceFile();if(ae&&D&&!y(_,D))return{kind:2,token:h,call:R.parent,sourceFile:w,modifierFlags:1,parentDeclaration:ae};var be=e.find(Se.declarations,e.isSourceFile);if(w.commonJsModuleIndicator)return;if(be&&!y(_,be))return{kind:2,token:h,call:R.parent,sourceFile:be,modifierFlags:1,parentDeclaration:be}}var ne=e.find(Se.declarations,e.isClassLike);if(!(!ne&&e.isPrivateIdentifier(h))){var J=ne||e.find(Se.declarations,e.isInterfaceDeclaration);if(J&&!y(_,J.getSourceFile())){var le=(_e.target||_e)!==T.getDeclaredTypeOfSymbol(Se);if(le&&(e.isPrivateIdentifier(h)||e.isInterfaceDeclaration(J)))return;var Te=J.getSourceFile(),Me=(le?32:0)|(e.startsWithUnderscore(h.text)?8:0),Ke=e.isSourceFileJS(Te),Ae=e.tryCast(R.parent,e.isCallExpression);return{kind:1,token:h,call:Ae,modifierFlags:Me,parentDeclaration:J,declSourceFile:Te,isJSFile:Ke}}var Ge=e.find(Se.declarations,e.isEnumDeclaration);if(Ge&&!e.isPrivateIdentifier(h)&&!y(_,Ge.getSourceFile()))return{kind:0,token:h,parentDeclaration:Ge}}}}}}function y(w,d){return w.isSourceFileFromExternalLibrary(d)||w.isSourceFileDefaultLibrary(d)}function j(w,d){return d.isJSFile?e.singleElementArray(te(w,d)):$(w,d)}function te(w,d){var B=d.parentDeclaration,T=d.declSourceFile,_=d.modifierFlags,h=d.token;if(!e.isInterfaceDeclaration(B)){var R=e.textChanges.ChangeTracker.with(w,function(G){return E(G,T,B,h,!!(_&32))});if(R.length!==0){var b=_&32?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(h)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return c.createCodeFixAction(u,R,[b,h.text],u,e.Diagnostics.Add_all_missing_members)}}}function E(w,d,B,T,_){var h=T.text;if(_){if(B.kind===225)return;var R=B.name.getText(),b=F(e.factory.createIdentifier(R),h);w.insertNodeAfter(d,B,b)}else if(e.isPrivateIdentifier(T)){var G=e.factory.createPropertyDeclaration(void 0,void 0,h,void 0,void 0,void 0),Y=k(B);Y?w.insertNodeAfter(d,Y,G):w.insertNodeAtClassStart(d,B,G)}else{var pe=e.getFirstConstructorWithBody(B);if(!pe)return;var A=F(e.factory.createThis(),h);w.insertNodeAtConstructorEnd(d,pe,A)}}function F(w,d){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(w,d),M()))}function $(w,d){var B=d.parentDeclaration,T=d.declSourceFile,_=d.modifierFlags,h=d.token,R=h.text,b=_&32,G=C(w.program.getTypeChecker(),B,h),Y=function(A){return e.textChanges.ChangeTracker.with(w,function(_e){return K(_e,T,B,R,G,A)})},pe=[c.createCodeFixAction(u,Y(_&32),[b?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,R],u,e.Diagnostics.Add_all_missing_members)];return b||e.isPrivateIdentifier(h)||(_&8&&pe.unshift(c.createCodeFixActionWithoutFixAll(u,Y(8),[e.Diagnostics.Declare_private_property_0,R])),pe.push(X(w,T,B,h.text,G))),pe}function C(w,d,B){var T;if(B.parent.parent.kind===220){var _=B.parent.parent,h=B.parent===_.left?_.right:_.left,R=w.getWidenedType(w.getBaseTypeOfLiteralType(w.getTypeAtLocation(h)));T=w.typeToTypeNode(R,d,1)}else{var b=w.getContextualType(B.parent);T=b?w.typeToTypeNode(b,void 0,1):void 0}return T||e.factory.createKeywordTypeNode(130)}function K(w,d,B,T,_,h){var R=e.factory.createPropertyDeclaration(void 0,h?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(h)):void 0,T,void 0,_,void 0),b=k(B);b?w.insertNodeAfter(d,b,R):w.insertNodeAtClassStart(d,B,R)}function k(w){for(var d,B=0,T=w.members;B<T.length;B++){var _=T[B];if(!e.isPropertyDeclaration(_))break;d=_}return d}function X(w,d,B,T,_){var h=e.factory.createKeywordTypeNode(149),R=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.factory.createIndexSignature(void 0,void 0,[R],_),G=e.textChanges.ChangeTracker.with(w,function(Y){return Y.insertNodeAtClassStart(d,B,b)});return c.createCodeFixActionWithoutFixAll(u,G,[e.Diagnostics.Add_index_signature_for_property_0,T])}function O(w,d){var B=d.parentDeclaration,T=d.declSourceFile,_=d.modifierFlags,h=d.token,R=d.call;if(R!==void 0&&!e.isPrivateIdentifier(h)){var b=h.text,G=function(pe){return e.textChanges.ChangeTracker.with(w,function(A){return x(w,A,R,h,pe,B,T)})},Y=[c.createCodeFixAction(u,G(_&32),[_&32?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,b],u,e.Diagnostics.Add_all_missing_members)];return _&8&&Y.unshift(c.createCodeFixActionWithoutFixAll(u,G(8),[e.Diagnostics.Declare_private_method_0,b])),Y}}function x(w,d,B,T,_,h,R){var b=c.createImportAdder(R,w.program,w.preferences,w.host),G=c.createSignatureDeclarationFromCallExpression(168,w,b,B,T,_,h),Y=e.findAncestor(B,function(pe){return e.isMethodDeclaration(pe)||e.isConstructorDeclaration(pe)});Y&&Y.parent===h?d.insertNodeAfter(R,Y,G):d.insertNodeAtClassStart(R,h,G),b.writeFixes(d)}function ie(w,d,B){var T=B.token,_=B.parentDeclaration,h=e.some(_.members,function(b){var G=d.getTypeAtLocation(b);return!!(G&&G.flags&402653316)}),R=e.factory.createEnumMember(T,h?e.factory.createStringLiteral(T.text):void 0);w.replaceNode(_.getSourceFile(),_,e.factory.updateEnumDeclaration(_,_.decorators,_.modifiers,_.name,e.concatenate(_.members,e.singleElementArray(R))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function Z(w,d,B){var T=c.createImportAdder(d.sourceFile,d.program,d.preferences,d.host),_=c.createSignatureDeclarationFromCallExpression(255,d,T,B.call,e.idText(B.token),B.modifierFlags,B.parentDeclaration);w.insertNodeAtEndOfScope(B.sourceFile,B.parentDeclaration,_)}function re(w,d,B){var T=c.createImportAdder(d.sourceFile,d.program,d.preferences,d.host),_=e.getQuotePreference(d.sourceFile,d.preferences),h=d.program.getTypeChecker(),R=B.parentDeclaration.attributes,b=e.some(R.properties,e.isJsxSpreadAttribute),G=e.map(B.attributes,function(A){var _e=A.valueDeclaration?P(d,h,T,_,h.getTypeAtLocation(A.valueDeclaration)):M();return e.factory.createJsxAttribute(e.factory.createIdentifier(A.name),e.factory.createJsxExpression(void 0,_e))}),Y=e.factory.createJsxAttributes(b?Bt(Bt([],G,!0),R.properties,!0):Bt(Bt([],R.properties,!0),G,!0)),pe={prefix:R.pos===R.end?" ":void 0};w.replaceNode(d.sourceFile,R,Y,pe)}function q(w,d,B){var T=c.createImportAdder(d.sourceFile,d.program,d.preferences,d.host),_=e.getQuotePreference(d.sourceFile,d.preferences),h=d.program.getTypeChecker(),R=e.map(B.properties,function(G){var Y=G.valueDeclaration?P(d,h,T,_,h.getTypeAtLocation(G.valueDeclaration)):M();return e.factory.createPropertyAssignment(G.name,Y)}),b={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:B.indentation};w.replaceNode(d.sourceFile,B.parentDeclaration,e.factory.createObjectLiteralExpression(Bt(Bt([],B.parentDeclaration.properties,!0),R,!0),!0),b)}function P(w,d,B,T,_){if(_.flags&3)return M();if(_.flags&134217732)return e.factory.createStringLiteral("",T===0);if(_.flags&8)return e.factory.createNumericLiteral(0);if(_.flags&64)return e.factory.createBigIntLiteral("0n");if(_.flags&16)return e.factory.createFalse();if(_.flags&1056){var h=_.symbol.exports?e.firstOrUndefined(e.arrayFrom(_.symbol.exports.values())):_.symbol,R=d.symbolToExpression(_.symbol.parent?_.symbol.parent:_.symbol,111551,void 0,void 0);return h===void 0||R===void 0?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(R,d.symbolToString(h))}if(_.flags&256)return e.factory.createNumericLiteral(_.value);if(_.flags&2048)return e.factory.createBigIntLiteral(_.value);if(_.flags&128)return e.factory.createStringLiteral(_.value,T===0);if(_.flags&512)return _===d.getFalseType()||_===d.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(_.flags&65536)return e.factory.createNull();if(_.flags&1048576){var b=e.firstDefined(_.types,function(ae){return P(w,d,B,T,ae)});return b!=null?b:M()}if(d.isArrayLikeType(_))return e.factory.createArrayLiteralExpression();if(Q(_)){var G=e.map(d.getPropertiesOfType(_),function(ae){var D=ae.valueDeclaration?P(w,d,B,T,d.getTypeAtLocation(ae.valueDeclaration)):M();return e.factory.createPropertyAssignment(ae.name,D)});return e.factory.createObjectLiteralExpression(G,!0)}if(e.getObjectFlags(_)&16){var Y=e.find(_.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration));if(Y===void 0)return M();var pe=d.getSignaturesOfType(_,0);if(pe===void 0)return M();var A=c.createSignatureDeclarationFromSignature(212,w,T,pe[0],c.createStubbedBody(e.Diagnostics.Function_not_implemented.message,T),void 0,void 0,void 0,void 0,B);return A!=null?A:M()}if(e.getObjectFlags(_)&1){var _e=e.getClassLikeDeclarationOfSymbol(_.symbol);if(_e===void 0||e.hasAbstractModifier(_e))return M();var Se=e.getFirstConstructorWithBody(_e);return Se&&e.length(Se.parameters)?M():e.factory.createNewExpression(e.factory.createIdentifier(_.symbol.name),void 0,void 0)}return M()}function M(){return e.factory.createIdentifier("undefined")}function Q(w){return w.flags&524288&&(e.getObjectFlags(w)&128||w.symbol&&e.tryCast(e.singleOrUndefined(w.symbol.declarations),e.isTypeLiteralNode))}function H(w,d){var B=w.getContextualType(d.attributes);if(B===void 0)return e.emptyArray;var T=B.getProperties();if(!e.length(T))return e.emptyArray;for(var _=new e.Set,h=0,R=d.attributes.properties;h<R.length;h++){var b=R[h];if(e.isJsxAttribute(b)&&_.add(b.name.escapedText),e.isJsxSpreadAttribute(b))for(var G=w.getTypeAtLocation(b.expression),Y=0,pe=G.getProperties();Y<pe.length;Y++){var A=pe[Y];_.add(A.escapedName)}}return e.filter(T,function(_e){return!(_e.flags&16777216||e.getCheckFlags(_e)&48||_.has(_e.escapedName))})}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addMissingNewOperator",g=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=e.textChanges.ChangeTracker.with(V,function(j){return p(j,L,m)});return[c.createCodeFixAction(u,y,e.Diagnostics.Add_missing_new_operator_to_call,u,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){return p(L,V.sourceFile,m)})}});function p(V,L,m){var y=e.cast(I(L,m),e.isCallExpression),j=e.factory.createNewExpression(y.expression,y.typeArguments,y.arguments);V.replaceNode(L,y,j)}function I(V,L){for(var m=e.getTokenAtPosition(V,L.start),y=e.textSpanEnd(L);m.end<y;)m=m.parent;return m}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixCannotFindModule",g="installTypesPackage",p=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,I=[p,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];c.registerCodeFix({errorCodes:I,getCodeActions:function(y){var j=y.host,te=y.sourceFile,E=y.span.start,F=L(te,E);if(F!==void 0){var $=m(F,j,y.errorCode);return $===void 0?[]:[c.createCodeFixAction(u,[],[e.Diagnostics.Install_0,$],g,e.Diagnostics.Install_all_missing_types_packages,V(te.fileName,$))]}},fixIds:[g],getAllCodeActions:function(y){return c.codeFixAll(y,I,function(j,te,E){var F=L(te.file,te.start);if(F!==void 0)switch(y.fixId){case g:{var $=m(F,y.host,te.code);$&&E.push(V(te.file.fileName,$));break}default:e.Debug.fail("Bad fixId: ".concat(y.fixId))}})}});function V(y,j){return{type:"install package",file:y,packageName:j}}function L(y,j){var te=e.tryCast(e.getTokenAtPosition(y,j),e.isStringLiteral);if(!!te){var E=te.text,F=e.parsePackageName(E).packageName;return e.isExternalModuleNameRelative(F)?void 0:F}}function m(y,j,te){var E;return te===p?e.JsTyping.nodeCoreModules.has(y)?"@types/node":void 0:!((E=j.isKnownTypesPackageName)===null||E===void 0)&&E.call(j,y)?e.getTypesPackageName(y):void 0}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],g="fixClassDoesntImplementInheritedAbstractMember";c.registerCodeFix({errorCodes:u,getCodeActions:function(L){var m=L.sourceFile,y=L.span,j=e.textChanges.ChangeTracker.with(L,function(te){return I(p(m,y.start),m,L,te,L.preferences)});return j.length===0?void 0:[c.createCodeFixAction(g,j,e.Diagnostics.Implement_inherited_abstract_class,g,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[g],getAllCodeActions:function(L){var m=new e.Map;return c.codeFixAll(L,u,function(y,j){var te=p(j.file,j.start);e.addToSeen(m,e.getNodeId(te))&&I(te,L.sourceFile,L,y,L.preferences)})}});function p(L,m){var y=e.getTokenAtPosition(L,m);return e.cast(y.parent,e.isClassLike)}function I(L,m,y,j,te){var E=e.getEffectiveBaseTypeNode(L),F=y.program.getTypeChecker(),$=F.getTypeAtLocation(E),C=F.getPropertiesOfType($).filter(V),K=c.createImportAdder(m,y.program,te,y.host);c.createMissingMemberNodes(L,C,m,y,te,K,function(k){return j.insertNodeAtClassStart(m,L,k)}),K.writeFixes(j)}function V(L){var m=e.getSyntacticModifierFlags(e.first(L.getDeclarations()));return!(m&8)&&!!(m&128)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="classSuperMustPrecedeThisAccess",g=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(L){var m=L.sourceFile,y=L.span,j=I(m,y.start);if(!!j){var te=j.constructor,E=j.superCall,F=e.textChanges.ChangeTracker.with(L,function($){return p($,m,te,E)});return[c.createCodeFixAction(u,F,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,u,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[u],getAllCodeActions:function(L){var m=L.sourceFile,y=new e.Map;return c.codeFixAll(L,g,function(j,te){var E=I(te.file,te.start);if(!!E){var F=E.constructor,$=E.superCall;e.addToSeen(y,e.getNodeId(F.parent))&&p(j,m,F,$)}})}});function p(L,m,y,j){L.insertNodeAtConstructorStart(m,y,j),L.delete(m,j)}function I(L,m){var y=e.getTokenAtPosition(L,m);if(y.kind===108){var j=e.getContainingFunction(y),te=V(j.body);return te&&!te.expression.arguments.some(function(E){return e.isPropertyAccessExpression(E)&&E.expression===y})?{constructor:j,superCall:te}:void 0}}function V(L){return e.isExpressionStatement(L)&&e.isSuperCall(L.expression)?L:e.isFunctionLike(L)?void 0:e.forEachChild(L,V)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="constructorForDerivedNeedSuperCall",g=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=p(L,m.start),j=e.textChanges.ChangeTracker.with(V,function(te){return I(te,L,y)});return[c.createCodeFixAction(u,j,e.Diagnostics.Add_missing_super_call,u,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){return I(L,V.sourceFile,p(m.file,m.start))})}});function p(V,L){var m=e.getTokenAtPosition(V,L);return e.Debug.assert(e.isConstructorDeclaration(m.parent),"token should be at the constructor declaration"),m.parent}function I(V,L,m){var y=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));V.insertNodeAtConstructorStart(L,m,y)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="enableExperimentalDecorators",g=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=I.program.getCompilerOptions().configFile;if(V!==void 0){var L=e.textChanges.ChangeTracker.with(I,function(m){return p(m,V)});return[c.createCodeFixActionWithoutFixAll(u,L,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V){var L=I.program.getCompilerOptions().configFile;L!==void 0&&p(V,L)})}});function p(I,V){c.setJsonCompilerOptionValue(I,V,"experimentalDecorators",e.factory.createTrue())}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixEnableJsxFlag",g=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=I.program.getCompilerOptions().configFile;if(V!==void 0){var L=e.textChanges.ChangeTracker.with(I,function(m){return p(m,V)});return[c.createCodeFixActionWithoutFixAll(u,L,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V){var L=I.program.getCompilerOptions().configFile;L!==void 0&&p(V,L)})}});function p(I,V){c.setJsonCompilerOptionValue(I,V,"jsx",e.factory.createStringLiteral("react"))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){c.registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(u){var g=u.program.getCompilerOptions(),p=g.configFile;if(p!==void 0){var I=[],V=e.getEmitModuleKind(g),L=V>=e.ModuleKind.ES2015&&V<e.ModuleKind.ESNext;if(L){var m=e.textChanges.ChangeTracker.with(u,function(te){c.setJsonCompilerOptionValue(te,p,"module",e.factory.createStringLiteral("esnext"))});I.push(c.createCodeFixActionWithoutFixAll("fixModuleOption",m,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var y=e.getEmitScriptTarget(g),j=y<4||y>99;if(j){var m=e.textChanges.ChangeTracker.with(u,function(E){var F=e.getTsConfigObjectLiteralExpression(p);if(!!F){var $=[["target",e.factory.createStringLiteral("es2017")]];V===e.ModuleKind.CommonJS&&$.push(["module",e.factory.createStringLiteral("commonjs")]),c.setJsonCompilerOptionValues(E,p,$)}});I.push(c.createCodeFixActionWithoutFixAll("fixTargetOption",m,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return I.length?I:void 0}}})})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixPropertyAssignment",g=[e.Diagnostics.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];c.registerCodeFix({errorCodes:g,fixIds:[u],getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=I(L,m.start),j=e.textChanges.ChangeTracker.with(V,function(te){return p(te,V.sourceFile,y)});return[c.createCodeFixAction(u,j,[e.Diagnostics.Change_0_to_1,"=",":"],u,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){return p(L,m.file,I(m.file,m.start))})}});function p(V,L,m){V.replaceNode(L,m,e.factory.createPropertyAssignment(m.name,m.objectAssignmentInitializer))}function I(V,L){return e.cast(e.getTokenAtPosition(V,L).parent,e.isShorthandPropertyAssignment)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="extendsInterfaceBecomesImplements",g=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=p(L,V.span.start);if(!!m){var y=m.extendsToken,j=m.heritageClauses,te=e.textChanges.ChangeTracker.with(V,function(E){return I(E,L,y,j)});return[c.createCodeFixAction(u,te,e.Diagnostics.Change_extends_to_implements,u,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){var y=p(m.file,m.start);y&&I(L,m.file,y.extendsToken,y.heritageClauses)})}});function p(V,L){var m=e.getTokenAtPosition(V,L),y=e.getContainingClass(m).heritageClauses,j=y[0].getFirstToken();return j.kind===94?{extendsToken:j,heritageClauses:y}:void 0}function I(V,L,m,y){if(V.replaceNode(L,m,e.factory.createToken(117)),y.length===2&&y[0].token===94&&y[1].token===117){var j=y[1].getFirstToken(),te=j.getFullStart();V.replaceRange(L,{pos:te,end:te},e.factory.createToken(27));for(var E=L.text,F=j.end;F<E.length&&e.isWhiteSpaceSingleLine(E.charCodeAt(F));)F++;V.deleteRange(L,{pos:j.getStart(),end:F})}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="forgottenThisPropertyAccess",g=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,p=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.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,g];c.registerCodeFix({errorCodes:p,getCodeActions:function(L){var m=L.sourceFile,y=I(m,L.span.start,L.errorCode);if(!!y){var j=e.textChanges.ChangeTracker.with(L,function(te){return V(te,m,y)});return[c.createCodeFixAction(u,j,[e.Diagnostics.Add_0_to_unresolved_variable,y.className||"this"],u,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[u],getAllCodeActions:function(L){return c.codeFixAll(L,p,function(m,y){var j=I(y.file,y.start,y.code);j&&V(m,L.sourceFile,j)})}});function I(L,m,y){var j=e.getTokenAtPosition(L,m);if(e.isIdentifier(j)||e.isPrivateIdentifier(j))return{node:j,className:y===g?e.getContainingClass(j).name.text:void 0}}function V(L,m,y){var j=y.node,te=y.className;e.suppressLeadingAndTrailingTrivia(j),L.replaceNode(m,j,e.factory.createPropertyAccessExpression(te?e.factory.createIdentifier(te):e.factory.createThis(),j))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixInvalidJsxCharacters_expression",g="fixInvalidJsxCharacters_htmlEntity",p=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];c.registerCodeFix({errorCodes:p,fixIds:[u,g],getCodeActions:function(m){var y=m.sourceFile,j=m.preferences,te=m.span,E=e.textChanges.ChangeTracker.with(m,function($){return L($,j,y,te.start,!1)}),F=e.textChanges.ChangeTracker.with(m,function($){return L($,j,y,te.start,!0)});return[c.createCodeFixAction(u,E,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,u,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),c.createCodeFixAction(g,F,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,g,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(m){return c.codeFixAll(m,p,function(y,j){return L(y,m.preferences,j.file,j.start,m.fixId===g)})}});var I={">":"&gt;","}":"&rbrace;"};function V(m){return e.hasProperty(I,m)}function L(m,y,j,te,E){var F=j.getText()[te];if(!!V(F)){var $=E?I[F]:"{".concat(e.quote(j,y,F),"}");m.replaceRangeWithText(j,{pos:te,end:te+1},$)}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="unusedIdentifier",g="unusedIdentifier_prefix",p="unusedIdentifier_delete",I="unusedIdentifier_deleteImports",V="unusedIdentifier_infer",L=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];c.registerCodeFix({errorCodes:L,getCodeActions:function(M){var Q=M.errorCode,H=M.sourceFile,w=M.program,d=M.cancellationToken,B=w.getTypeChecker(),T=w.getSourceFiles(),_=e.getTokenAtPosition(H,M.span.start);if(e.isJSDocTemplateTag(_))return[y(e.textChanges.ChangeTracker.with(M,function(Se){return Se.delete(H,_)}),e.Diagnostics.Remove_template_tag)];if(_.kind===29){var h=e.textChanges.ChangeTracker.with(M,function(Se){return j(Se,H,_)});return[y(h,e.Diagnostics.Remove_type_parameters)]}var R=E(_);if(R){var h=e.textChanges.ChangeTracker.with(M,function(ae){return ae.delete(H,R)});return[c.createCodeFixAction(u,h,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(R)],I,e.Diagnostics.Delete_all_unused_imports)]}else if(te(_)){var b=e.textChanges.ChangeTracker.with(M,function(Se){return X(H,_,Se,B,T,w,d,!1)});if(b.length)return[c.createCodeFixAction(u,b,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,_.getText(H)],I,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(_.parent)||e.isArrayBindingPattern(_.parent)){if(e.isParameter(_.parent.parent)){var G=_.parent.elements,Y=[G.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(G,function(Se){return Se.getText(H)}).join(", ")];return[y(e.textChanges.ChangeTracker.with(M,function(Se){return C(Se,H,_.parent)}),Y)]}return[y(e.textChanges.ChangeTracker.with(M,function(Se){return Se.delete(H,_.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(F(H,_))return[y(e.textChanges.ChangeTracker.with(M,function(Se){return $(Se,H,_.parent)}),e.Diagnostics.Remove_variable_statement)];var pe=[];if(_.kind===137){var h=e.textChanges.ChangeTracker.with(M,function(ae){return m(ae,H,_)}),A=e.cast(_.parent,e.isInferTypeNode).typeParameter.name.text;pe.push(c.createCodeFixAction(u,h,[e.Diagnostics.Replace_infer_0_with_unknown,A],V,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var b=e.textChanges.ChangeTracker.with(M,function(ae){return X(H,_,ae,B,T,w,d,!1)});if(b.length){var A=e.isComputedPropertyName(_.parent)?_.parent:_;pe.push(y(b,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,A.getText(H)]))}}var _e=e.textChanges.ChangeTracker.with(M,function(Se){return K(Se,Q,H,_)});return _e.length&&pe.push(c.createCodeFixAction(u,_e,[e.Diagnostics.Prefix_0_with_an_underscore,_.getText(H)],g,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),pe},fixIds:[g,p,I,V],getAllCodeActions:function(M){var Q=M.sourceFile,H=M.program,w=M.cancellationToken,d=H.getTypeChecker(),B=H.getSourceFiles();return c.codeFixAll(M,L,function(T,_){var h=e.getTokenAtPosition(Q,_.start);switch(M.fixId){case g:K(T,_.code,Q,h);break;case I:{var R=E(h);R?T.delete(Q,R):te(h)&&X(Q,h,T,d,B,H,w,!0);break}case p:{if(h.kind===137||te(h))break;if(e.isJSDocTemplateTag(h))T.delete(Q,h);else if(h.kind===29)j(T,Q,h);else if(e.isObjectBindingPattern(h.parent)){if(h.parent.parent.initializer)break;(!e.isParameter(h.parent.parent)||ie(h.parent.parent,d,B))&&T.delete(Q,h.parent.parent)}else{if(e.isArrayBindingPattern(h.parent.parent)&&h.parent.parent.parent.initializer)break;F(Q,h)?$(T,Q,h.parent):X(Q,h,T,d,B,H,w,!0)}break}case V:h.kind===137&&m(T,Q,h);break;default:e.Debug.fail(JSON.stringify(M.fixId))}})}});function m(M,Q,H){M.replaceNode(Q,H.parent,e.factory.createKeywordTypeNode(154))}function y(M,Q){return c.createCodeFixAction(u,M,Q,p,e.Diagnostics.Delete_all_unused_declarations)}function j(M,Q,H){M.delete(Q,e.Debug.checkDefined(e.cast(H.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function te(M){return M.kind===100||M.kind===79&&(M.parent.kind===269||M.parent.kind===266)}function E(M){return M.kind===100?e.tryCast(M.parent,e.isImportDeclaration):void 0}function F(M,Q){return e.isVariableDeclarationList(Q.parent)&&e.first(Q.parent.getChildren(M))===Q}function $(M,Q,H){M.delete(Q,H.parent.kind===236?H.parent:H)}function C(M,Q,H){e.forEach(H.elements,function(w){return M.delete(Q,w)})}function K(M,Q,H,w){Q!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(w.kind===137&&(w=e.cast(w.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(w)&&k(w)&&(M.replaceNode(H,w,e.factory.createIdentifier("_".concat(w.text))),e.isParameter(w.parent)&&e.getJSDocParameterTags(w.parent).forEach(function(d){e.isIdentifier(d.name)&&M.replaceNode(H,d.name,e.factory.createIdentifier("_".concat(d.name.text)))})))}function k(M){switch(M.parent.kind){case 163:case 162:return!0;case 253:{var Q=M.parent;switch(Q.parent.parent.kind){case 243:case 242:return!0}}}return!1}function X(M,Q,H,w,d,B,T,_){O(Q,H,M,w,d,B,T,_),e.isIdentifier(Q)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(Q,w,M,function(h){e.isPropertyAccessExpression(h.parent)&&h.parent.name===h&&(h=h.parent),!_&&P(h)&&H.delete(M,h.parent.parent)})}function O(M,Q,H,w,d,B,T,_){var h=M.parent;if(e.isParameter(h))x(Q,H,h,w,d,B,T,_);else if(!(_&&e.isIdentifier(M)&&e.FindAllReferences.Core.isSymbolReferencedInFile(M,w,H))){var R=e.isImportClause(h)?M:e.isComputedPropertyName(h)?h.parent:h;e.Debug.assert(R!==H,"should not delete whole source file"),Q.delete(H,R)}}function x(M,Q,H,w,d,B,T,_){_===void 0&&(_=!1),Z(w,Q,H,d,B,T,_)&&(H.modifiers&&H.modifiers.length>0&&(!e.isIdentifier(H.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(H.name,w,Q))?H.modifiers.forEach(function(h){return M.deleteModifier(Q,h)}):!H.initializer&&ie(H,w,d)&&M.delete(Q,H))}function ie(M,Q,H){var w=M.parent.parameters.indexOf(M);return!e.FindAllReferences.Core.someSignatureUsage(M.parent,H,Q,function(d,B){return!B||B.arguments.length>w})}function Z(M,Q,H,w,d,B,T){var _=H.parent;switch(_.kind){case 168:case 170:var h=_.parameters.indexOf(H),R=e.isMethodDeclaration(_)?_.name:_,b=e.FindAllReferences.Core.getReferencedSymbolsForNode(_.pos,R,d,w,B);if(b)for(var G=0,Y=b;G<Y.length;G++)for(var pe=Y[G],A=0,_e=pe.references;A<_e.length;A++){var Se=_e[A];if(Se.kind===1){var ae=e.isSuperKeyword(Se.node)&&e.isCallExpression(Se.node.parent)&&Se.node.parent.arguments.length>h,D=e.isPropertyAccessExpression(Se.node.parent)&&e.isSuperKeyword(Se.node.parent.expression)&&e.isCallExpression(Se.node.parent.parent)&&Se.node.parent.parent.arguments.length>h,be=(e.isMethodDeclaration(Se.node.parent)||e.isMethodSignature(Se.node.parent))&&Se.node.parent!==H.parent&&Se.node.parent.parameters.length>h;if(ae||D||be)return!1}}return!0;case 255:return _.name&&re(M,Q,_.name)?q(_,H,T):!0;case 212:case 213:return q(_,H,T);case 172:return!1;default:return e.Debug.failBadSyntaxKind(_)}}function re(M,Q,H){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(H,M,Q,function(w){return e.isIdentifier(w)&&e.isCallExpression(w.parent)&&w.parent.arguments.indexOf(w)>=0})}function q(M,Q,H){var w=M.parameters,d=w.indexOf(Q);return e.Debug.assert(d!==-1,"The parameter should already be in the list"),H?w.slice(d+1).every(function(B){return e.isIdentifier(B.name)&&!B.symbol.isReferenced}):d===w.length-1}function P(M){return(e.isBinaryExpression(M.parent)&&M.parent.left===M||(e.isPostfixUnaryExpression(M.parent)||e.isPrefixUnaryExpression(M.parent))&&M.parent.operand===M)&&e.isExpressionStatement(M.parent.parent)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixUnreachableCode",g=[e.Diagnostics.Unreachable_code_detected.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=e.textChanges.ChangeTracker.with(V,function(m){return p(m,V.sourceFile,V.span.start,V.span.length,V.errorCode)});return[c.createCodeFixAction(u,L,e.Diagnostics.Remove_unreachable_code,u,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){return p(L,m.file,m.start,m.length,m.code)})}});function p(V,L,m,y,j){var te=e.getTokenAtPosition(L,m),E=e.findAncestor(te,e.isStatement);if(E.getStart(L)!==te.getStart(L)){var F=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(E.kind),tokenKind:e.Debug.formatSyntaxKind(te.kind),errorCode:j,start:m,length:y});e.Debug.fail("Token and statement should start at the same point. "+F)}var $=(e.isBlock(E.parent)?E.parent:E).parent;if(!e.isBlock(E.parent)||E===e.first(E.parent.statements))switch($.kind){case 238:if($.elseStatement){if(e.isBlock(E.parent))break;V.replaceNode(L,E,e.factory.createBlock(e.emptyArray));return}case 240:case 241:V.delete(L,$);return}if(e.isBlock(E.parent)){var C=m+y,K=e.Debug.checkDefined(I(e.sliceAfter(E.parent.statements,E),function(k){return k.pos<C}),"Some statement should be last");V.deleteNodeRange(L,E,K)}else V.delete(L,E)}function I(V,L){for(var m,y=0,j=V;y<j.length;y++){var te=j[y];if(!L(te))break;m=te}return m}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixUnusedLabel",g=[e.Diagnostics.Unused_label.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span.start)});return[c.createCodeFixAction(u,V,e.Diagnostics.Remove_unused_label,u,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){return p(V,L.file,L.start)})}});function p(I,V,L){var m=e.getTokenAtPosition(V,L),y=e.cast(m.parent,e.isLabeledStatement),j=m.getStart(V),te=y.statement.getStart(V),E=e.positionsAreOnSameLine(j,te,V)?te:e.skipTrivia(V.text,e.findChildOfKind(y,58,V).end,!0);I.deleteRange(V,{pos:j,end:E})}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixJSDocTypes_plain",g="fixJSDocTypes_nullable",p=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];c.registerCodeFix({errorCodes:p,getCodeActions:function(m){var y=m.sourceFile,j=m.program.getTypeChecker(),te=V(y,m.span.start,j);if(!te)return;var E=te.typeNode,F=te.type,$=E.getText(y),C=[K(F,u,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return E.kind===312&&C.push(K(j.getNullableType(F,32768),g,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),C;function K(k,X,O){var x=e.textChanges.ChangeTracker.with(m,function(ie){return I(ie,y,E,k,j)});return c.createCodeFixAction("jdocTypes",x,[e.Diagnostics.Change_0_to_1,$,j.typeToString(k)],X,O)}},fixIds:[u,g],getAllCodeActions:function(m){var y=m.fixId,j=m.program,te=m.sourceFile,E=j.getTypeChecker();return c.codeFixAll(m,p,function(F,$){var C=V($.file,$.start,E);if(!!C){var K=C.typeNode,k=C.type,X=K.kind===312&&y===g?E.getNullableType(k,32768):k;I(F,te,K,X,E)}})}});function I(m,y,j,te,E){m.replaceNode(y,j,E.typeToTypeNode(te,j,void 0))}function V(m,y,j){var te=e.findAncestor(e.getTokenAtPosition(m,y),L),E=te&&te.type;return E&&{typeNode:E,type:j.getTypeFromTypeNode(E)}}function L(m){switch(m.kind){case 228:case 173:case 174:case 255:case 171:case 175:case 194:case 168:case 167:case 163:case 166:case 165:case 172:case 258:case 210:case 253:return!0;default:return!1}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixMissingCallParentheses",g=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];c.registerCodeFix({errorCodes:g,fixIds:[u],getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=I(L,m.start);if(!!y){var j=e.textChanges.ChangeTracker.with(V,function(te){return p(te,V.sourceFile,y)});return[c.createCodeFixAction(u,j,e.Diagnostics.Add_missing_call_parentheses,u,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){var y=I(m.file,m.start);y&&p(L,m.file,y)})}});function p(V,L,m){V.replaceNodeWithText(L,m,"".concat(m.text,"()"))}function I(V,L){var m=e.getTokenAtPosition(V,L);if(e.isPropertyAccessExpression(m.parent)){for(var y=m.parent;e.isPropertyAccessExpression(y.parent);)y=y.parent;return y.name}if(e.isIdentifier(m))return m}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixAwaitInSyncFunction",g=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(L){var m=L.sourceFile,y=L.span,j=I(m,y.start);if(!!j){var te=e.textChanges.ChangeTracker.with(L,function(E){return V(E,m,j)});return[c.createCodeFixAction(u,te,e.Diagnostics.Add_async_modifier_to_containing_function,u,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[u],getAllCodeActions:function(L){var m=new e.Map;return c.codeFixAll(L,g,function(y,j){var te=I(j.file,j.start);!te||!e.addToSeen(m,e.getNodeId(te.insertBefore))||V(y,L.sourceFile,te)})}});function p(L){if(L.type)return L.type;if(e.isVariableDeclaration(L.parent)&&L.parent.type&&e.isFunctionTypeNode(L.parent.type))return L.parent.type.type}function I(L,m){var y=e.getTokenAtPosition(L,m),j=e.getContainingFunction(y);if(!!j){var te;switch(j.kind){case 168:te=j.name;break;case 255:case 212:te=e.findChildOfKind(j,98,L);break;case 213:var E=j.typeParameters?29:20;te=e.findChildOfKind(j,E,L)||e.first(j.parameters);break;default:return}return te&&{insertBefore:te,returnType:p(j)}}}function V(L,m,y){var j=y.insertBefore,te=y.returnType;if(te){var E=e.getEntityNameFromTypeNode(te);(!E||E.kind!==79||E.text!=="Promise")&&L.replaceNode(m,te,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([te])))}L.insertModifierBefore(m,131,j)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],g="fixPropertyOverrideAccessor";c.registerCodeFix({errorCodes:u,getCodeActions:function(I){var V=p(I.sourceFile,I.span.start,I.span.length,I.errorCode,I);if(V)return[c.createCodeFixAction(g,V,e.Diagnostics.Generate_get_and_set_accessors,g,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[g],getAllCodeActions:function(I){return c.codeFixAll(I,u,function(V,L){var m=p(L.file,L.start,L.length,L.code,I);if(m)for(var y=0,j=m;y<j.length;y++){var te=j[y];V.pushRaw(I.sourceFile,te)}})}});function p(I,V,L,m,y){var j,te;if(m===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)j=V,te=V+L;else if(m===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var E=y.program.getTypeChecker(),F=e.getTokenAtPosition(I,V).parent;e.Debug.assert(e.isAccessor(F),"error span of fixPropertyOverrideAccessor should only be on an accessor");var $=F.parent;e.Debug.assert(e.isClassLike($),"erroneous accessors should only be inside classes");var C=e.singleOrUndefined(c.getAllSupers($,E));if(!C)return[];var K=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(F.name)),k=E.getPropertyOfType(E.getTypeAtLocation(C),K);if(!k||!k.valueDeclaration)return[];j=k.valueDeclaration.pos,te=k.valueDeclaration.end,I=e.getSourceFileOfNode(k.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+m);return c.generateAccessorFromProperty(I,y.program,j,te,y,e.Diagnostics.Generate_get_and_set_accessors.message)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="inferFromUsage",g=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(re){var q=re.sourceFile,P=re.program,M=re.span.start,Q=re.errorCode,H=re.cancellationToken,w=re.host,d=re.preferences,B=e.getTokenAtPosition(q,M),T,_=e.textChanges.ChangeTracker.with(re,function(R){T=V(R,q,B,Q,P,H,e.returnTrue,w,d)}),h=T&&e.getNameOfDeclaration(T);return!h||_.length===0?void 0:[c.createCodeFixAction(u,_,[p(Q,B),h.getText(q)],u,e.Diagnostics.Infer_all_types_from_usage)]},fixIds:[u],getAllCodeActions:function(re){var q=re.sourceFile,P=re.program,M=re.cancellationToken,Q=re.host,H=re.preferences,w=e.nodeSeenTracker();return c.codeFixAll(re,g,function(d,B){V(d,q,e.getTokenAtPosition(B.file,B.start),B.code,P,M,w,Q,H)})}});function p(re,q){switch(re){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(q))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function I(re){switch(re){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return re}function V(re,q,P,M,Q,H,w,d,B){if(!(!e.isParameterPropertyModifier(P.kind)&&P.kind!==79&&P.kind!==25&&P.kind!==108)){var T=P.parent,_=c.createImportAdder(q,Q,B,d);switch(M=I(M),M){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(T)&&w(T)||e.isPropertyDeclaration(T)||e.isPropertySignature(T))return L(re,_,q,T,Q,d,H),_.writeFixes(re),T;if(e.isPropertyAccessExpression(T)){var h=O(T.name,Q,H),R=e.getTypeNodeIfAccessible(h,T,Q,d);if(R){var b=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(R),void 0);C(re,q,e.cast(T.parent.parent,e.isExpressionStatement),[b])}return _.writeFixes(re),T}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:{var G=Q.getTypeChecker().getSymbolAtLocation(P);return G&&G.valueDeclaration&&e.isVariableDeclaration(G.valueDeclaration)&&w(G.valueDeclaration)?(L(re,_,q,G.valueDeclaration,Q,d,H),_.writeFixes(re),G.valueDeclaration):void 0}}var Y=e.getContainingFunction(P);if(Y!==void 0){var pe;switch(M){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(Y)){te(re,_,q,Y,Q,d,H),pe=Y;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(w(Y)){var A=e.cast(T,e.isParameter);m(re,_,q,A,Y,Q,d,H),pe=A}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(Y)&&e.isIdentifier(Y.name)&&(E(re,_,q,Y,O(Y.name,Q,H),Q,d),pe=Y);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(Y)&&(te(re,_,q,Y,Q,d,H),pe=Y);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(Y)&&w(Y)&&(y(re,q,Y,Q,d,H),pe=Y);break;default:return e.Debug.fail(String(M))}return _.writeFixes(re),pe}}}function L(re,q,P,M,Q,H,w){e.isIdentifier(M.name)&&E(re,q,P,M,O(M.name,Q,w),Q,H)}function m(re,q,P,M,Q,H,w,d){if(!!e.isIdentifier(M.name)){var B=x(Q,P,H,d);if(e.Debug.assert(Q.parameters.length===B.length,"Parameter count and inference count should match"),e.isInJSFile(Q))$(re,P,B,H,w);else{var T=e.isArrowFunction(Q)&&!e.findChildOfKind(Q,20,P);T&&re.insertNodeBefore(P,e.first(Q.parameters),e.factory.createToken(20));for(var _=0,h=B;_<h.length;_++){var R=h[_],b=R.declaration,G=R.type;b&&!b.type&&!b.initializer&&E(re,q,P,b,G,H,w)}T&&re.insertNodeAfter(P,e.last(Q.parameters),e.factory.createToken(21))}}}function y(re,q,P,M,Q,H){var w=ie(P,q,M,H);if(!(!w||!w.length)){var d=Z(M,w,H).thisParameter(),B=e.getTypeNodeIfAccessible(d,P,M,Q);!B||(e.isInJSFile(P)?j(re,q,P,B):re.tryInsertThisTypeAnnotation(q,P,B))}}function j(re,q,P,M){C(re,q,P,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(M))])}function te(re,q,P,M,Q,H,w){var d=e.firstOrUndefined(M.parameters);if(d&&e.isIdentifier(M.name)&&e.isIdentifier(d.name)){var B=O(M.name,Q,w);B===Q.getTypeChecker().getAnyType()&&(B=O(d.name,Q,w)),e.isInJSFile(M)?$(re,P,[{declaration:d,type:B}],Q,H):E(re,q,P,d,B,Q,H)}}function E(re,q,P,M,Q,H,w){var d=e.getTypeNodeIfAccessible(Q,M,H,w);if(d)if(e.isInJSFile(P)&&M.kind!==165){var B=e.isVariableDeclaration(M)?e.tryCast(M.parent.parent,e.isVariableStatement):M;if(!B)return;var T=e.factory.createJSDocTypeExpression(d),_=e.isGetAccessorDeclaration(M)?e.factory.createJSDocReturnTag(void 0,T,void 0):e.factory.createJSDocTypeTag(void 0,T,void 0);C(re,P,B,[_])}else F(d,M,P,re,q,e.getEmitScriptTarget(H.getCompilerOptions()))||re.tryInsertTypeAnnotation(P,M,d)}function F(re,q,P,M,Q,H){var w=c.tryGetAutoImportableReferenceFromTypeNode(re,H);return w&&M.tryInsertTypeAnnotation(P,q,w.typeNode)?(e.forEach(w.symbols,function(d){return Q.addImportFromExportedSymbol(d,!0)}),!0):!1}function $(re,q,P,M,Q){var H=P.length&&P[0].declaration.parent;if(!!H){var w=e.mapDefined(P,function(T){var _=T.declaration;if(!(_.initializer||e.getJSDocType(_)||!e.isIdentifier(_.name))){var h=T.type&&e.getTypeNodeIfAccessible(T.type,_,M,Q);if(h){var R=e.factory.cloneNode(_.name);return e.setEmitFlags(R,3584),{name:e.factory.cloneNode(_.name),param:_,isOptional:!!T.isOptional,typeNode:h}}}});if(!!w.length)if(e.isArrowFunction(H)||e.isFunctionExpression(H)){var d=e.isArrowFunction(H)&&!e.findChildOfKind(H,20,q);d&&re.insertNodeBefore(q,e.first(H.parameters),e.factory.createToken(20)),e.forEach(w,function(T){var _=T.typeNode,h=T.param,R=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(_)),b=e.factory.createJSDocComment(void 0,[R]);re.insertNodeAt(q,h.getStart(q),b,{suffix:" "})}),d&&re.insertNodeAfter(q,e.last(H.parameters),e.factory.createToken(21))}else{var B=e.map(w,function(T){var _=T.name,h=T.typeNode,R=T.isOptional;return e.factory.createJSDocParameterTag(void 0,_,!!R,e.factory.createJSDocTypeExpression(h),!1,void 0)});C(re,q,H,B)}}}function C(re,q,P,M){var Q=e.flatMap(P.jsDoc,function(T){return typeof T.comment=="string"?e.factory.createJSDocText(T.comment):T.comment}),H=e.flatMapToMutable(P.jsDoc,function(T){return T.tags}),w=M.filter(function(T){return!H||!H.some(function(_,h){var R=k(_,T);return R&&(H[h]=R),!!R})}),d=e.factory.createJSDocComment(e.factory.createNodeArray(e.intersperse(Q,e.factory.createJSDocText(`
`))),e.factory.createNodeArray(Bt(Bt([],H||e.emptyArray,!0),w,!0))),B=P.kind===213?K(P):P;B.jsDoc=P.jsDoc,B.jsDocCache=P.jsDocCache,re.insertJsdocCommentBefore(q,B,d)}c.addJSDocTags=C;function K(re){return re.parent.kind===166?re.parent:re.parent.parent}function k(re,q){if(re.kind===q.kind)switch(re.kind){case 338:{var P=re,M=q;return e.isIdentifier(P.name)&&e.isIdentifier(M.name)&&P.name.escapedText===M.name.escapedText?e.factory.createJSDocParameterTag(void 0,M.name,!1,M.typeExpression,M.isNameFirst,P.comment):void 0}case 339:return e.factory.createJSDocReturnTag(void 0,q.typeExpression,re.comment)}}function X(re,q,P){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,re,q,q.getSourceFiles(),P),function(M){return M.kind!==0?e.tryCast(M.node,e.isIdentifier):void 0})}function O(re,q,P){var M=X(re,q,P);return Z(q,M,P).single()}function x(re,q,P,M){var Q=ie(re,q,P,M);return Q&&Z(P,Q,M).parameters(re)||re.parameters.map(function(H){return{declaration:H,type:e.isIdentifier(H.name)?O(H.name,P,M):P.getTypeChecker().getAnyType()}})}function ie(re,q,P,M){var Q;switch(re.kind){case 170:Q=e.findChildOfKind(re,134,q);break;case 213:case 212:var H=re.parent;Q=(e.isVariableDeclaration(H)||e.isPropertyDeclaration(H))&&e.isIdentifier(H.name)?H.name:re.name;break;case 255:case 168:case 167:Q=re.name;break}if(!!Q)return X(Q,P,M)}function Z(re,q,P){var M=re.getTypeChecker(),Q={string:function(){return M.getStringType()},number:function(){return M.getNumberType()},Array:function(ve){return M.createArrayType(ve)},Promise:function(ve){return M.createPromiseType(ve)}},H=[M.getStringType(),M.getNumberType(),M.createArrayType(M.getAnyType()),M.createPromiseType(M.getAnyType())];return{single:B,parameters:T,thisParameter:_};function w(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function d(ve){for(var Ve=new e.Map,gr=0,Er=ve;gr<Er.length;gr++){var Nr=Er[gr];Nr.properties&&Nr.properties.forEach(function(xr,sr){Ve.has(sr)||Ve.set(sr,[]),Ve.get(sr).push(xr)})}var ur=new e.Map;return Ve.forEach(function(xr,sr){ur.set(sr,d(xr))}),{isNumber:ve.some(function(xr){return xr.isNumber}),isString:ve.some(function(xr){return xr.isString}),isNumberOrString:ve.some(function(xr){return xr.isNumberOrString}),candidateTypes:e.flatMap(ve,function(xr){return xr.candidateTypes}),properties:ur,calls:e.flatMap(ve,function(xr){return xr.calls}),constructs:e.flatMap(ve,function(xr){return xr.constructs}),numberIndex:e.forEach(ve,function(xr){return xr.numberIndex}),stringIndex:e.forEach(ve,function(xr){return xr.stringIndex}),candidateThisTypes:e.flatMap(ve,function(xr){return xr.candidateThisTypes}),inferredTypes:void 0}}function B(){return le(h(q))}function T(ve){if(!(q.length===0||!ve.parameters)){for(var Ve=w(),gr=0,Er=q;gr<Er.length;gr++){var Nr=Er[gr];P.throwIfCancellationRequested(),R(Nr,Ve)}var ur=Bt(Bt([],Ve.constructs||[],!0),Ve.calls||[],!0);return ve.parameters.map(function(xr,sr){for(var i=[],Mr=e.isRestParameter(xr),fr=!1,Ar=0,de=ur;Ar<de.length;Ar++){var we=de[Ar];if(we.argumentTypes.length<=sr)fr=e.isInJSFile(ve),i.push(M.getUndefinedType());else if(Mr)for(var qe=sr;qe<we.argumentTypes.length;qe++)i.push(M.getBaseTypeOfLiteralType(we.argumentTypes[qe]));else i.push(M.getBaseTypeOfLiteralType(we.argumentTypes[sr]))}if(e.isIdentifier(xr.name)){var Cr=h(X(xr.name,re,P));i.push.apply(i,Mr?e.mapDefined(Cr,M.getElementTypeOfArrayType):Cr)}var kr=le(i);return{type:Mr?M.createArrayType(kr):kr,isOptional:fr&&!Mr,declaration:xr}})}}function _(){for(var ve=w(),Ve=0,gr=q;Ve<gr.length;Ve++){var Er=gr[Ve];P.throwIfCancellationRequested(),R(Er,ve)}return le(ve.candidateThisTypes||e.emptyArray)}function h(ve){for(var Ve=w(),gr=0,Er=ve;gr<Er.length;gr++){var Nr=Er[gr];P.throwIfCancellationRequested(),R(Nr,Ve)}return Me(Ve)}function R(ve,Ve){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(ve);)ve=ve.parent;switch(ve.parent.kind){case 237:G(ve,Ve);break;case 219:Ve.isNumber=!0;break;case 218:Y(ve.parent,Ve);break;case 220:pe(ve,ve.parent,Ve);break;case 288:case 289:A(ve.parent,Ve);break;case 207:case 208:ve.parent.expression===ve?_e(ve.parent,Ve):b(ve,Ve);break;case 205:Se(ve.parent,Ve);break;case 206:ae(ve.parent,ve,Ve);break;case 294:case 295:D(ve.parent,Ve);break;case 166:be(ve.parent,Ve);break;case 253:{var gr=ve.parent,Er=gr.name,Nr=gr.initializer;if(ve===Er){Nr&&We(Ve,M.getTypeAtLocation(Nr));break}}default:return b(ve,Ve)}}function b(ve,Ve){e.isExpressionNode(ve)&&We(Ve,M.getContextualType(ve))}function G(ve,Ve){We(Ve,e.isCallExpression(ve)?M.getVoidType():M.getAnyType())}function Y(ve,Ve){switch(ve.operator){case 45:case 46:case 40:case 54:Ve.isNumber=!0;break;case 39:Ve.isNumberOrString=!0;break}}function pe(ve,Ve,gr){switch(Ve.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var Er=M.getTypeAtLocation(Ve.left===ve?Ve.right:Ve.left);Er.flags&1056?We(gr,Er):gr.isNumber=!0;break;case 64:case 39:var Nr=M.getTypeAtLocation(Ve.left===ve?Ve.right:Ve.left);Nr.flags&1056?We(gr,Nr):Nr.flags&296?gr.isNumber=!0:Nr.flags&402653316?gr.isString=!0:Nr.flags&1||(gr.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:We(gr,M.getTypeAtLocation(Ve.left===ve?Ve.right:Ve.left));break;case 101:ve===Ve.left&&(gr.isString=!0);break;case 56:case 60:ve===Ve.left&&(ve.parent.parent.kind===253||e.isAssignmentExpression(ve.parent.parent,!0))&&We(gr,M.getTypeAtLocation(Ve.right));break;case 55:case 27:case 102:break}}function A(ve,Ve){We(Ve,M.getTypeAtLocation(ve.parent.parent.expression))}function _e(ve,Ve){var gr={argumentTypes:[],return_:w()};if(ve.arguments)for(var Er=0,Nr=ve.arguments;Er<Nr.length;Er++){var ur=Nr[Er];gr.argumentTypes.push(M.getTypeAtLocation(ur))}R(ve,gr.return_),ve.kind===207?(Ve.calls||(Ve.calls=[])).push(gr):(Ve.constructs||(Ve.constructs=[])).push(gr)}function Se(ve,Ve){var gr=e.escapeLeadingUnderscores(ve.name.text);Ve.properties||(Ve.properties=new e.Map);var Er=Ve.properties.get(gr)||w();R(ve,Er),Ve.properties.set(gr,Er)}function ae(ve,Ve,gr){if(Ve===ve.argumentExpression){gr.isNumberOrString=!0;return}else{var Er=M.getTypeAtLocation(ve.argumentExpression),Nr=w();R(ve,Nr),Er.flags&296?gr.numberIndex=Nr:gr.stringIndex=Nr}}function D(ve,Ve){var gr=e.isVariableDeclaration(ve.parent.parent)?ve.parent.parent:ve.parent;Ne(Ve,M.getTypeAtLocation(gr))}function be(ve,Ve){Ne(Ve,M.getTypeAtLocation(ve.parent))}function ne(ve,Ve){for(var gr=[],Er=0,Nr=ve;Er<Nr.length;Er++)for(var ur=Nr[Er],xr=0,sr=Ve;xr<sr.length;xr++){var i=sr[xr],Mr=i.high,fr=i.low;Mr(ur)&&(e.Debug.assert(!fr(ur),"Priority can't have both low and high"),gr.push(fr))}return ve.filter(function(Ar){return gr.every(function(de){return!de(Ar)})})}function J(ve){return le(Me(ve))}function le(ve){if(!ve.length)return M.getAnyType();var Ve=M.getUnionType([M.getStringType(),M.getNumberType()]),gr=[{high:function(ur){return ur===M.getStringType()||ur===M.getNumberType()},low:function(ur){return ur===Ve}},{high:function(ur){return!(ur.flags&16385)},low:function(ur){return!!(ur.flags&16385)}},{high:function(ur){return!(ur.flags&114689)&&!(e.getObjectFlags(ur)&16)},low:function(ur){return!!(e.getObjectFlags(ur)&16)}}],Er=ne(ve,gr),Nr=Er.filter(function(ur){return e.getObjectFlags(ur)&16});return Nr.length&&(Er=Er.filter(function(ur){return!(e.getObjectFlags(ur)&16)}),Er.push(Te(Nr))),M.getWidenedType(M.getUnionType(Er.map(M.getBaseTypeOfLiteralType),2))}function Te(ve){if(ve.length===1)return ve[0];for(var Ve=[],gr=[],Er=[],Nr=[],ur=!1,xr=!1,sr=e.createMultiMap(),i=0,Mr=ve;i<Mr.length;i++){for(var fr=Mr[i],Ar=0,de=M.getPropertiesOfType(fr);Ar<de.length;Ar++){var we=de[Ar];sr.add(we.name,we.valueDeclaration?M.getTypeOfSymbolAtLocation(we,we.valueDeclaration):M.getAnyType())}Ve.push.apply(Ve,M.getSignaturesOfType(fr,0)),gr.push.apply(gr,M.getSignaturesOfType(fr,1));var qe=M.getIndexInfoOfType(fr,0);qe&&(Er.push(qe.type),ur=ur||qe.isReadonly);var Cr=M.getIndexInfoOfType(fr,1);Cr&&(Nr.push(Cr.type),xr=xr||Cr.isReadonly)}var kr=e.mapEntries(sr,function(lr,Hr){var Je=Hr.length<ve.length?16777216:0,Sr=M.createSymbol(4|Je,lr);return Sr.type=M.getUnionType(Hr),[lr,Sr]}),He=[];return Er.length&&He.push(M.createIndexInfo(M.getStringType(),M.getUnionType(Er),ur)),Nr.length&&He.push(M.createIndexInfo(M.getNumberType(),M.getUnionType(Nr),xr)),M.createAnonymousType(ve[0].symbol,kr,Ve,gr,He)}function Me(ve){var Ve,gr,Er,Nr=[];return ve.isNumber&&Nr.push(M.getNumberType()),ve.isString&&Nr.push(M.getStringType()),ve.isNumberOrString&&Nr.push(M.getUnionType([M.getStringType(),M.getNumberType()])),ve.numberIndex&&Nr.push(M.createArrayType(J(ve.numberIndex))),(((Ve=ve.properties)===null||Ve===void 0?void 0:Ve.size)||((gr=ve.calls)===null||gr===void 0?void 0:gr.length)||((Er=ve.constructs)===null||Er===void 0?void 0:Er.length)||ve.stringIndex)&&Nr.push(Ke(ve)),Nr.push.apply(Nr,(ve.candidateTypes||[]).map(function(ur){return M.getBaseTypeOfLiteralType(ur)})),Nr.push.apply(Nr,Ae(ve)),Nr}function Ke(ve){var Ve=new e.Map;ve.properties&&ve.properties.forEach(function(ur,xr){var sr=M.createSymbol(4,xr);sr.type=J(ur),Ve.set(xr,sr)});var gr=ve.calls?[Ue(ve.calls)]:[],Er=ve.constructs?[Ue(ve.constructs)]:[],Nr=ve.stringIndex?[M.createIndexInfo(M.getStringType(),J(ve.stringIndex),!1)]:[];return M.createAnonymousType(void 0,Ve,gr,Er,Nr)}function Ae(ve){if(!ve.properties||!ve.properties.size)return[];var Ve=H.filter(function(gr){return Ge(gr,ve)});return 0<Ve.length&&Ve.length<3?Ve.map(function(gr){return se(gr,ve)}):[]}function Ge(ve,Ve){return Ve.properties?!e.forEachEntry(Ve.properties,function(gr,Er){var Nr=M.getTypeOfPropertyOfType(ve,Er);if(!Nr)return!0;if(gr.calls){var ur=M.getSignaturesOfType(Nr,0);return!ur.length||!M.isTypeAssignableTo(Nr,ce(gr.calls))}else return!M.isTypeAssignableTo(Nr,J(gr))}):!1}function se(ve,Ve){if(!(e.getObjectFlags(ve)&4)||!Ve.properties)return ve;var gr=ve.target,Er=e.singleOrUndefined(gr.typeParameters);if(!Er)return ve;var Nr=[];return Ve.properties.forEach(function(ur,xr){var sr=M.getTypeOfPropertyOfType(gr,xr);e.Debug.assert(!!sr,"generic should have all the properties of its reference."),Nr.push.apply(Nr,xe(sr,J(ur),Er))}),Q[ve.symbol.escapedName](le(Nr))}function xe(ve,Ve,gr){if(ve===gr)return[Ve];if(ve.flags&3145728)return e.flatMap(ve.types,function(Mr){return xe(Mr,Ve,gr)});if(e.getObjectFlags(ve)&4&&e.getObjectFlags(Ve)&4){var Er=M.getTypeArguments(ve),Nr=M.getTypeArguments(Ve),ur=[];if(Er&&Nr)for(var xr=0;xr<Er.length;xr++)Nr[xr]&&ur.push.apply(ur,xe(Er[xr],Nr[xr],gr));return ur}var sr=M.getSignaturesOfType(ve,0),i=M.getSignaturesOfType(Ve,0);return sr.length===1&&i.length===1?Re(sr[0],i[0],gr):[]}function Re(ve,Ve,gr){for(var Er=[],Nr=0;Nr<ve.parameters.length;Nr++){var ur=ve.parameters[Nr],xr=Ve.parameters[Nr],sr=ve.declaration&&e.isRestParameter(ve.declaration.parameters[Nr]);if(!xr)break;var i=ur.valueDeclaration?M.getTypeOfSymbolAtLocation(ur,ur.valueDeclaration):M.getAnyType(),Mr=sr&&M.getElementTypeOfArrayType(i);Mr&&(i=Mr);var fr=xr.type||(xr.valueDeclaration?M.getTypeOfSymbolAtLocation(xr,xr.valueDeclaration):M.getAnyType());Er.push.apply(Er,xe(i,fr,gr))}var Ar=M.getReturnTypeOfSignature(ve),de=M.getReturnTypeOfSignature(Ve);return Er.push.apply(Er,xe(Ar,de,gr)),Er}function ce(ve){return M.createAnonymousType(void 0,e.createSymbolTable(),[Ue(ve)],e.emptyArray,e.emptyArray)}function Ue(ve){for(var Ve=[],gr=Math.max.apply(Math,ve.map(function(xr){return xr.argumentTypes.length})),Er=function(xr){var sr=M.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(xr)));sr.type=le(ve.map(function(i){return i.argumentTypes[xr]||M.getUndefinedType()})),ve.some(function(i){return i.argumentTypes[xr]===void 0})&&(sr.flags|=16777216),Ve.push(sr)},Nr=0;Nr<gr;Nr++)Er(Nr);var ur=J(d(ve.map(function(xr){return xr.return_})));return M.createSignature(void 0,void 0,void 0,Ve,ur,void 0,gr,0)}function We(ve,Ve){Ve&&!(Ve.flags&1)&&!(Ve.flags&131072)&&(ve.candidateTypes||(ve.candidateTypes=[])).push(Ve)}function Ne(ve,Ve){Ve&&!(Ve.flags&1)&&!(Ve.flags&131072)&&(ve.candidateThisTypes||(ve.candidateThisTypes=[])).push(Ve)}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixReturnTypeInAsyncFunction",g=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];c.registerCodeFix({errorCodes:g,fixIds:[u],getCodeActions:function(V){var L=V.sourceFile,m=V.program,y=V.span,j=m.getTypeChecker(),te=p(L,m.getTypeChecker(),y.start);if(!!te){var E=te.returnTypeNode,F=te.returnType,$=te.promisedTypeNode,C=te.promisedType,K=e.textChanges.ChangeTracker.with(V,function(k){return I(k,L,E,$)});return[c.createCodeFixAction(u,K,[e.Diagnostics.Replace_0_with_Promise_1,j.typeToString(F),j.typeToString(C)],u,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){var y=p(m.file,V.program.getTypeChecker(),m.start);y&&I(L,m.file,y.returnTypeNode,y.promisedTypeNode)})}});function p(V,L,m){if(!e.isInJSFile(V)){var y=e.getTokenAtPosition(V,m),j=e.findAncestor(y,e.isFunctionLikeDeclaration),te=j==null?void 0:j.type;if(!!te){var E=L.getTypeFromTypeNode(te),F=L.getAwaitedType(E)||L.getVoidType(),$=L.typeToTypeNode(F,te,void 0);if($)return{returnTypeNode:te,returnType:E,promisedTypeNode:$,promisedType:F}}}}function I(V,L,m,y){V.replaceNode(L,m,e.factory.createTypeReferenceNode("Promise",[y]))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="disableJsDiagnostics",g="disableJsDiagnostics",p=e.mapDefined(Object.keys(e.Diagnostics),function(V){var L=e.Diagnostics[V];return L.category===e.DiagnosticCategory.Error?L.code:void 0});c.registerCodeFix({errorCodes:p,getCodeActions:function(V){var L=V.sourceFile,m=V.program,y=V.span,j=V.host,te=V.formatContext;if(!(!e.isInJSFile(L)||!e.isCheckJsEnabledForFile(L,m.getCompilerOptions()))){var E=L.checkJsDirective?"":e.getNewLineOrDefaultFromHost(j,te.options),F=[c.createCodeFixActionWithoutFixAll(u,[c.createFileTextChanges(L.fileName,[e.createTextChange(L.checkJsDirective?e.createTextSpanFromBounds(L.checkJsDirective.pos,L.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(E))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(L,y.start)&&F.unshift(c.createCodeFixAction(u,e.textChanges.ChangeTracker.with(V,function($){return I($,L,y.start)}),e.Diagnostics.Ignore_this_error_message,g,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),F}},fixIds:[g],getAllCodeActions:function(V){var L=new e.Set;return c.codeFixAll(V,p,function(m,y){e.textChanges.isValidLocationToAddComment(y.file,y.start)&&I(m,y.file,y.start,L)})}});function I(V,L,m,y){var j=e.getLineAndCharacterOfPosition(L,m).line;(!y||e.tryAddToSet(y,j))&&V.insertCommentBeforeLine(L,j,m," @ts-ignore")}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(re,q,P,M,Q,H,w){for(var d=re.symbol.members,B=0,T=q;B<T.length;B++){var _=T[B];d.has(_.escapedName)||I(_,re,P,M,Q,H,w,void 0)}}c.createMissingMemberNodes=u;function g(re){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(re.program,re.host)}}c.getNoopSymbolTrackerWithResolver=g;var p;(function(re){re[re.Method=1]="Method",re[re.Property=2]="Property",re[re.All=3]="All"})(p=c.PreserveOptionalFlags||(c.PreserveOptionalFlags={}));function I(re,q,P,M,Q,H,w,d,B,T){B===void 0&&(B=3),T===void 0&&(T=!1);var _=re.getDeclarations();if(!(_&&_.length))return;var h=M.program.getTypeChecker(),R=e.getEmitScriptTarget(M.program.getCompilerOptions()),b=_[0],G=e.getSynthesizedDeepClone(e.getNameOfDeclaration(b),!1),Y=C(e.getEffectiveModifierFlags(b)),pe=Y?e.factory.createNodeArray([Y]):void 0,A=h.getWidenedType(h.getTypeOfSymbolAtLocation(re,q)),_e=!!(re.flags&16777216),Se=!!(q.flags&8388608)||T,ae=e.getQuotePreference(P,Q);switch(b.kind){case 165:case 166:var D=ae===0?268435456:void 0,be=h.typeToTypeNode(A,q,D,g(M));if(H){var ne=x(be,R);ne&&(be=ne.typeNode,Z(H,ne.symbols))}w(e.factory.createPropertyDeclaration(void 0,pe,G,_e&&B&2?e.factory.createToken(57):void 0,be,void 0));break;case 171:case 172:{var J=h.typeToTypeNode(A,q,void 0,g(M)),le=e.getAllAccessorDeclarations(_,b),Te=le.secondAccessor?[le.firstAccessor,le.secondAccessor]:[le.firstAccessor];if(H){var ne=x(J,R);ne&&(J=ne.typeNode,Z(H,ne.symbols))}for(var Me=0,Ke=Te;Me<Ke.length;Me++){var Ae=Ke[Me];if(e.isGetAccessorDeclaration(Ae))w(e.factory.createGetAccessorDeclaration(void 0,pe,G,e.emptyArray,J,Se?void 0:d||F(ae)));else{e.Debug.assertNode(Ae,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var Ge=e.getSetAccessorValueParameter(Ae),se=Ge&&e.isIdentifier(Ge.name)?e.idText(Ge.name):void 0;w(e.factory.createSetAccessorDeclaration(void 0,pe,G,y(1,[se],[J],1,!1),Se?void 0:d||F(ae)))}}break}case 167:case 168:var xe=h.getSignaturesOfType(A,0);if(!e.some(xe))break;if(_.length===1){e.Debug.assert(xe.length===1,"One declaration implies one signature");var Re=xe[0];We(ae,Re,pe,G,Se?void 0:d||F(ae));break}for(var ce=0,Ue=xe;ce<Ue.length;ce++){var Re=Ue[ce];We(ae,Re,e.getSynthesizedDeepClones(pe,!1),e.getSynthesizedDeepClone(G,!1))}if(!Se)if(_.length>xe.length){var Re=h.getSignatureFromDeclaration(_[_.length-1]);We(ae,Re,pe,G,d||F(ae))}else e.Debug.assert(_.length===xe.length,"Declarations and signatures should match count"),w(j(h,M,q,xe,G,_e&&!!(B&1),pe,ae,d));break}function We(Ne,ve,Ve,gr,Er){var Nr=V(168,M,Ne,ve,Er,gr,Ve,_e&&!!(B&1),q,H);Nr&&w(Nr)}}c.addNewNodeForMemberSymbol=I;function V(re,q,P,M,Q,H,w,d,B,T){var _=q.program,h=_.getTypeChecker(),R=e.getEmitScriptTarget(_.getCompilerOptions()),b=1073742081|(P===0?268435456:0),G=h.signatureToSignatureDeclaration(M,re,B,b,g(q));if(!!G){var Y=G.typeParameters,pe=G.parameters,A=G.type;if(T){if(Y){var _e=e.sameMap(Y,function(ne){var J=ne.constraint,le=ne.default;if(J){var Te=x(J,R);Te&&(J=Te.typeNode,Z(T,Te.symbols))}if(le){var Te=x(le,R);Te&&(le=Te.typeNode,Z(T,Te.symbols))}return e.factory.updateTypeParameterDeclaration(ne,ne.name,J,le)});Y!==_e&&(Y=e.setTextRange(e.factory.createNodeArray(_e,Y.hasTrailingComma),Y))}var Se=e.sameMap(pe,function(ne){var J=x(ne.type,R),le=ne.type;return J&&(le=J.typeNode,Z(T,J.symbols)),e.factory.updateParameterDeclaration(ne,ne.decorators,ne.modifiers,ne.dotDotDotToken,ne.name,ne.questionToken,le,ne.initializer)});if(pe!==Se&&(pe=e.setTextRange(e.factory.createNodeArray(Se,pe.hasTrailingComma),pe)),A){var ae=x(A,R);ae&&(A=ae.typeNode,Z(T,ae.symbols))}}var D=d?e.factory.createToken(57):void 0,be=G.asteriskToken;if(e.isFunctionExpression(G))return e.factory.updateFunctionExpression(G,w,G.asteriskToken,e.tryCast(H,e.isIdentifier),Y,pe,A,Q!=null?Q:G.body);if(e.isArrowFunction(G))return e.factory.updateArrowFunction(G,w,Y,pe,A,G.equalsGreaterThanToken,Q!=null?Q:G.body);if(e.isMethodDeclaration(G))return e.factory.updateMethodDeclaration(G,void 0,w,be,H!=null?H:e.factory.createIdentifier(""),D,Y,pe,A,Q)}}c.createSignatureDeclarationFromSignature=V;function L(re,q,P,M,Q,H,w){var d=e.getQuotePreference(q.sourceFile,q.preferences),B=e.getEmitScriptTarget(q.program.getCompilerOptions()),T=g(q),_=q.program.getTypeChecker(),h=e.isInJSFile(w),R=M.typeArguments,b=M.arguments,G=M.parent,Y=h?void 0:_.getContextualType(M),pe=e.map(b,function(ne){return e.isIdentifier(ne)?ne.text:e.isPropertyAccessExpression(ne)&&e.isIdentifier(ne.name)?ne.name.text:void 0}),A=h?[]:e.map(b,function(ne){return m(_,P,_.getBaseTypeOfLiteralType(_.getTypeAtLocation(ne)),w,B,void 0,T)}),_e=H?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(H)):void 0,Se=e.isYieldExpression(G)?e.factory.createToken(41):void 0,ae=h||R===void 0?void 0:e.map(R,function(ne,J){return e.factory.createTypeParameterDeclaration(84+R.length-1<=90?String.fromCharCode(84+J):"T".concat(J))}),D=y(b.length,pe,A,void 0,h),be=h||Y===void 0?void 0:_.typeToTypeNode(Y,w,void 0,T);return re===168?e.factory.createMethodDeclaration(void 0,_e,Se,Q,void 0,ae,D,be,e.isInterfaceDeclaration(w)?void 0:F(d)):e.factory.createFunctionDeclaration(void 0,_e,Se,Q,ae,D,be,$(e.Diagnostics.Function_not_implemented.message,d))}c.createSignatureDeclarationFromCallExpression=L;function m(re,q,P,M,Q,H,w){var d=re.typeToTypeNode(P,M,H,w);if(d&&e.isImportTypeNode(d)){var B=x(d,Q);B&&(Z(q,B.symbols),d=B.typeNode)}return e.getSynthesizedDeepClone(d)}c.typeToAutoImportableTypeNode=m;function y(re,q,P,M,Q){for(var H=[],w=0;w<re;w++){var d=e.factory.createParameterDeclaration(void 0,void 0,void 0,q&&q[w]||"arg".concat(w),M!==void 0&&w>=M?e.factory.createToken(57):void 0,Q?void 0:P&&P[w]||e.factory.createKeywordTypeNode(130),void 0);H.push(d)}return H}function j(re,q,P,M,Q,H,w,d,B){for(var T=M[0],_=M[0].minArgumentCount,h=!1,R=0,b=M;R<b.length;R++){var G=b[R];_=Math.min(G.minArgumentCount,_),e.signatureHasRestParameter(G)&&(h=!0),G.parameters.length>=T.parameters.length&&(!e.signatureHasRestParameter(G)||e.signatureHasRestParameter(T))&&(T=G)}var Y=T.parameters.length-(e.signatureHasRestParameter(T)?1:0),pe=T.parameters.map(function(ae){return ae.name}),A=y(Y,pe,void 0,_,!1);if(h){var _e=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(130)),Se=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),pe[Y]||"rest",Y>=_?e.factory.createToken(57):void 0,_e,void 0);A.push(Se)}return E(w,Q,H,void 0,A,te(M,re,q,P),d,B)}function te(re,q,P,M){if(e.length(re)){var Q=q.getUnionType(e.map(re,q.getReturnTypeOfSignature));return q.typeToTypeNode(Q,M,void 0,g(P))}}function E(re,q,P,M,Q,H,w,d){return e.factory.createMethodDeclaration(void 0,re,void 0,q,P?e.factory.createToken(57):void 0,M,Q,H,d||F(w))}function F(re){return $(e.Diagnostics.Method_not_implemented.message,re)}function $(re,q){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(re,q===0)]))],!0)}c.createStubbedBody=$;function C(re){if(re&4)return e.factory.createToken(123);if(re&16)return e.factory.createToken(122)}function K(re,q,P){var M=e.getTsConfigObjectLiteralExpression(q);if(!!M){var Q=O(M,"compilerOptions");if(Q===void 0){re.insertNodeAtObjectStart(q,M,X("compilerOptions",e.factory.createObjectLiteralExpression(P.map(function(R){var b=R[0],G=R[1];return X(b,G)}),!0)));return}var H=Q.initializer;if(!!e.isObjectLiteralExpression(H))for(var w=0,d=P;w<d.length;w++){var B=d[w],T=B[0],_=B[1],h=O(H,T);h===void 0?re.insertNodeAtObjectStart(q,H,X(T,_)):re.replaceNode(q,h.initializer,_)}}}c.setJsonCompilerOptionValues=K;function k(re,q,P,M){K(re,q,[[P,M]])}c.setJsonCompilerOptionValue=k;function X(re,q){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(re),q)}c.createJsonPropertyAssignment=X;function O(re,q){return e.find(re.properties,function(P){return e.isPropertyAssignment(P)&&!!P.name&&e.isStringLiteral(P.name)&&P.name.text===q})}c.findJsonProperty=O;function x(re,q){var P,M=e.visitNode(re,Q);if(P&&M)return{typeNode:M,symbols:P};function Q(H){var w;if(e.isLiteralImportTypeNode(H)&&H.qualifier){var d=e.getFirstIdentifier(H.qualifier),B=e.getNameForExportedSymbol(d.symbol,q),T=B!==d.text?ie(H.qualifier,e.factory.createIdentifier(B)):H.qualifier;P=e.append(P,d.symbol);var _=(w=H.typeArguments)===null||w===void 0?void 0:w.map(Q);return e.factory.createTypeReferenceNode(T,_)}return e.visitEachChild(H,Q,e.nullTransformationContext)}}c.tryGetAutoImportableReferenceFromTypeNode=x;function ie(re,q){return re.kind===79?q:e.factory.createQualifiedName(ie(re.left,q),re.right)}function Z(re,q){q.forEach(function(P){return re.addImportFromExportedSymbol(P,!0)})}c.importSymbols=Z})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(O,x,ie,Z,re,q){var P=y(O,x,ie,Z);if(!(!P||e.refactor.isRefactorErrorInfo(P))){var M=e.textChanges.ChangeTracker.fromContext(re),Q=P.isStatic,H=P.isReadonly,w=P.fieldName,d=P.accessorName,B=P.originalName,T=P.type,_=P.container,h=P.declaration;e.suppressLeadingAndTrailingTrivia(w),e.suppressLeadingAndTrailingTrivia(d),e.suppressLeadingAndTrailingTrivia(h),e.suppressLeadingAndTrailingTrivia(_);var R,b;if(e.isClassLike(_)){var G=e.getEffectiveModifierFlags(h);if(e.isSourceFileJS(O)){var Y=e.createModifiers(G);R=Y,b=Y}else R=e.createModifiers(L(G)),b=e.createModifiers(m(G))}$(M,O,h,T,w,b);var pe=j(w,d,T,R,Q,_);if(e.suppressLeadingAndTrailingTrivia(pe),C(M,O,pe,h,_),H){var A=e.getFirstConstructorWithBody(_);A&&K(M,O,A,w.text,B)}else{var _e=te(w,d,T,R,Q,_);e.suppressLeadingAndTrailingTrivia(_e),C(M,O,_e,h,_)}return M.getChanges()}}c.generateAccessorFromProperty=u;function g(O){return e.isIdentifier(O)||e.isStringLiteral(O)}function p(O){return e.isParameterPropertyDeclaration(O,O.parent)||e.isPropertyDeclaration(O)||e.isPropertyAssignment(O)}function I(O,x){return e.isIdentifier(x)?e.factory.createIdentifier(O):e.factory.createStringLiteral(O)}function V(O,x,ie){var Z=x?ie.name:e.factory.createThis();return e.isIdentifier(O)?e.factory.createPropertyAccessExpression(Z,O):e.factory.createElementAccessExpression(Z,e.factory.createStringLiteralFromNode(O))}function L(O){return O&=-65,O&=-9,O&16||(O|=4),O}function m(O){return O&=-5,O&=-17,O|=8,O}function y(O,x,ie,Z,re){re===void 0&&(re=!0);var q=e.getTokenAtPosition(O,ie),P=ie===Z&&re,M=e.findAncestor(q.parent,p),Q=124;if(!M||!(e.nodeOverlapsWithStartEnd(M.name,O,ie,Z)||P))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!g(M.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if((e.getEffectiveModifierFlags(M)|Q)!==Q)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var H=M.name.text,w=e.startsWithUnderscore(H),d=I(w?H:e.getUniqueName("_".concat(H),O),M.name),B=I(w?e.getUniqueName(H.substring(1),O):H,M.name);return{isStatic:e.hasStaticModifier(M),isReadonly:e.hasEffectiveReadonlyModifier(M),type:k(M,x),container:M.kind===163?M.parent.parent:M.parent,originalName:M.name.text,declaration:M,fieldName:d,accessorName:B,renameAccessor:w}}c.getAccessorConvertiblePropertyAtPosition=y;function j(O,x,ie,Z,re,q){return e.factory.createGetAccessorDeclaration(void 0,Z,x,void 0,ie,e.factory.createBlock([e.factory.createReturnStatement(V(O,re,q))],!0))}function te(O,x,ie,Z,re,q){return e.factory.createSetAccessorDeclaration(void 0,Z,x,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,ie)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(V(O,re,q),e.factory.createIdentifier("value")))],!0))}function E(O,x,ie,Z,re,q){var P=e.factory.updatePropertyDeclaration(ie,ie.decorators,q,re,ie.questionToken||ie.exclamationToken,Z,ie.initializer);O.replaceNode(x,ie,P)}function F(O,x,ie,Z){var re=e.factory.updatePropertyAssignment(ie,Z,ie.initializer);O.replacePropertyAssignment(x,ie,re)}function $(O,x,ie,Z,re,q){e.isPropertyDeclaration(ie)?E(O,x,ie,Z,re,q):e.isPropertyAssignment(ie)?F(O,x,ie,re):O.replaceNode(x,ie,e.factory.updateParameterDeclaration(ie,ie.decorators,q,ie.dotDotDotToken,e.cast(re,e.isIdentifier),ie.questionToken,ie.type,ie.initializer))}function C(O,x,ie,Z,re){e.isParameterPropertyDeclaration(Z,Z.parent)?O.insertNodeAtClassStart(x,re,ie):e.isPropertyAssignment(Z)?O.insertNodeAfterComma(x,Z,ie):O.insertNodeAfter(x,Z,ie)}function K(O,x,ie,Z,re){!ie.body||ie.body.forEachChild(function q(P){e.isElementAccessExpression(P)&&P.expression.kind===108&&e.isStringLiteral(P.argumentExpression)&&P.argumentExpression.text===re&&e.isWriteAccess(P)&&O.replaceNode(x,P.argumentExpression,e.factory.createStringLiteral(Z)),e.isPropertyAccessExpression(P)&&P.expression.kind===108&&P.name.text===re&&e.isWriteAccess(P)&&O.replaceNode(x,P.name,e.factory.createIdentifier(Z)),!e.isFunctionLike(P)&&!e.isClassLike(P)&&P.forEachChild(q)})}function k(O,x){var ie=e.getTypeAnnotationNode(O);if(e.isPropertyDeclaration(O)&&ie&&O.questionToken){var Z=x.getTypeChecker(),re=Z.getTypeFromTypeNode(ie);if(!Z.isTypeAssignableTo(Z.getUndefinedType(),re)){var q=e.isUnionTypeNode(ie)?ie.types:[ie];return e.factory.createUnionTypeNode(Bt(Bt([],q,!0),[e.factory.createKeywordTypeNode(152)],!1))}}return ie}function X(O,x){for(var ie=[];O;){var Z=e.getClassExtendsHeritageElement(O),re=Z&&x.getSymbolAtLocation(Z.expression);if(!re)break;var q=re.flags&2097152?x.getAliasedSymbol(re):re,P=q.declarations&&e.find(q.declarations,e.isClassLike);if(!P)break;ie.push(P),O=P}return ie}c.getAllSupers=X})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="invalidImportSyntax";function g(m,y){var j=e.getSourceFileOfNode(y),te=e.getNamespaceDeclarationNode(y),E=m.program.getCompilerOptions(),F=[];return F.push(p(m,j,y,e.makeImport(te.name,void 0,y.moduleSpecifier,e.getQuotePreference(j,m.preferences)))),e.getEmitModuleKind(E)===e.ModuleKind.CommonJS&&F.push(p(m,j,y,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,te.name,e.factory.createExternalModuleReference(y.moduleSpecifier)))),F}function p(m,y,j,te){var E=e.textChanges.ChangeTracker.with(m,function(F){return F.replaceNode(y,j,te)});return c.createCodeFixActionWithoutFixAll(u,E,[e.Diagnostics.Replace_import_with_0,E[0].textChanges[0].newText])}c.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:I});function I(m){var y=m.sourceFile,j=e.Diagnostics.This_expression_is_not_callable.code===m.errorCode?207:208,te=e.findAncestor(e.getTokenAtPosition(y,m.span.start),function(F){return F.kind===j});if(!te)return[];var E=te.expression;return L(m,E)}c.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:V});function V(m){var y=m.sourceFile,j=e.findAncestor(e.getTokenAtPosition(y,m.span.start),function(te){return te.getStart()===m.span.start&&te.getEnd()===m.span.start+m.span.length});return j?L(m,j):[]}function L(m,y){var j=m.program.getTypeChecker().getTypeAtLocation(y);if(!(j.symbol&&j.symbol.originatingImport))return[];var te=[],E=j.symbol.originatingImport;if(e.isImportCall(E)||e.addRange(te,g(m,E)),e.isExpression(y)&&!(e.isNamedDeclaration(y.parent)&&y.parent.name===y)){var F=m.sourceFile,$=e.textChanges.ChangeTracker.with(m,function(C){return C.replaceNode(F,y,e.factory.createPropertyAccessExpression(y,"default"),{})});te.push(c.createCodeFixActionWithoutFixAll(u,$,e.Diagnostics.Use_synthetic_default_member))}return te}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="strictClassInitialization",g="addMissingPropertyDefiniteAssignmentAssertions",p="addMissingPropertyUndefinedType",I="addMissingPropertyInitializer",V=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];c.registerCodeFix({errorCodes:V,getCodeActions:function(K){var k=L(K.sourceFile,K.span.start);if(!!k){var X=[j(K,k),m(K,k)];return e.append(X,E(K,k)),X}},fixIds:[g,p,I],getAllCodeActions:function(K){return c.codeFixAll(K,V,function(k,X){var O=L(X.file,X.start);if(!!O)switch(K.fixId){case g:y(k,X.file,O);break;case p:te(k,X.file,O);break;case I:var x=K.program.getTypeChecker(),ie=$(x,O);if(!ie)return;F(k,X.file,O,ie);break;default:e.Debug.fail(JSON.stringify(K.fixId))}})}});function L(K,k){var X=e.getTokenAtPosition(K,k);return e.isIdentifier(X)?e.cast(X.parent,e.isPropertyDeclaration):void 0}function m(K,k){var X=e.textChanges.ChangeTracker.with(K,function(O){return y(O,K.sourceFile,k)});return c.createCodeFixAction(u,X,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,k.getText()],g,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function y(K,k,X){var O=e.factory.updatePropertyDeclaration(X,X.decorators,X.modifiers,X.name,e.factory.createToken(53),X.type,X.initializer);K.replaceNode(k,X,O)}function j(K,k){var X=e.textChanges.ChangeTracker.with(K,function(O){return te(O,K.sourceFile,k)});return c.createCodeFixAction(u,X,[e.Diagnostics.Add_undefined_type_to_property_0,k.name.getText()],p,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}function te(K,k,X){var O=e.factory.createKeywordTypeNode(152),x=X.type,ie=e.isUnionTypeNode(x)?x.types.concat(O):[x,O];K.replaceNode(k,x,e.factory.createUnionTypeNode(ie))}function E(K,k){var X=K.program.getTypeChecker(),O=$(X,k);if(!!O){var x=e.textChanges.ChangeTracker.with(K,function(ie){return F(ie,K.sourceFile,k,O)});return c.createCodeFixAction(u,x,[e.Diagnostics.Add_initializer_to_property_0,k.name.getText()],I,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}function F(K,k,X,O){var x=e.factory.updatePropertyDeclaration(X,X.decorators,X.modifiers,X.name,X.questionToken,X.type,O);K.replaceNode(k,X,x)}function $(K,k){return C(K,K.getTypeFromTypeNode(k.type))}function C(K,k){if(k.flags&512)return k===K.getFalseType()||k===K.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(k.isStringLiteral())return e.factory.createStringLiteral(k.value);if(k.isNumberLiteral())return e.factory.createNumericLiteral(k.value);if(k.flags&2048)return e.factory.createBigIntLiteral(k.value);if(k.isUnion())return e.firstDefined(k.types,function(x){return C(K,x)});if(k.isClass()){var X=e.getClassLikeDeclarationOfSymbol(k.symbol);if(!X||e.hasSyntacticModifier(X,128))return;var O=e.getFirstConstructorWithBody(X);return O&&O.parameters.length?void 0:e.factory.createNewExpression(e.factory.createIdentifier(k.symbol.name),void 0,void 0)}else if(K.isArrayLikeType(k))return e.factory.createArrayLiteralExpression()}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="requireInTs",g=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(L){var m=I(L.sourceFile,L.program,L.span.start);if(!!m){var y=e.textChanges.ChangeTracker.with(L,function(j){return p(j,L.sourceFile,m)});return[c.createCodeFixAction(u,y,e.Diagnostics.Convert_require_to_import,u,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[u],getAllCodeActions:function(L){return c.codeFixAll(L,g,function(m,y){var j=I(y.file,L.program,y.start);j&&p(m,L.sourceFile,j)})}});function p(L,m,y){var j=y.allowSyntheticDefaults,te=y.defaultImportName,E=y.namedImports,F=y.statement,$=y.required;L.replaceNode(m,F,te&&!j?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,te,e.factory.createExternalModuleReference($)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,te,E),$,void 0))}function I(L,m,y){var j=e.getTokenAtPosition(L,y).parent;if(!e.isRequireCall(j,!0))throw e.Debug.failBadSyntaxKind(j);var te=e.cast(j.parent,e.isVariableDeclaration),E=e.tryCast(te.name,e.isIdentifier),F=e.isObjectBindingPattern(te.name)?V(te.name):void 0;if(E||F)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(m.getCompilerOptions()),defaultImportName:E,namedImports:F,statement:e.cast(te.parent.parent,e.isVariableStatement),required:e.first(j.arguments)}}function V(L){for(var m=[],y=0,j=L.elements;y<j.length;y++){var te=j[y];if(!e.isIdentifier(te.name)||te.initializer)return;m.push(e.factory.createImportSpecifier(!1,e.tryCast(te.propertyName,e.isIdentifier),te.name))}if(m.length)return e.factory.createNamedImports(m)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="useDefaultImport",g=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=V.span.start,y=p(L,m);if(!!y){var j=e.textChanges.ChangeTracker.with(V,function(te){return I(te,L,y,V.preferences)});return[c.createCodeFixAction(u,j,e.Diagnostics.Convert_to_default_import,u,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[u],getAllCodeActions:function(V){return c.codeFixAll(V,g,function(L,m){var y=p(m.file,m.start);y&&I(L,m.file,y,V.preferences)})}});function p(V,L){var m=e.getTokenAtPosition(V,L);if(!!e.isIdentifier(m)){var y=m.parent;if(e.isImportEqualsDeclaration(y)&&e.isExternalModuleReference(y.moduleReference))return{importNode:y,name:m,moduleSpecifier:y.moduleReference.expression};if(e.isNamespaceImport(y)){var j=y.parent.parent;return{importNode:j,name:m,moduleSpecifier:j.moduleSpecifier}}}}function I(V,L,m,y){V.replaceNode(L,m.importNode,e.makeImport(m.name,void 0,m.moduleSpecifier,e.getQuotePreference(L,y)))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="useBigintLiteral",g=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span)});if(V.length>0)return[c.createCodeFixAction(u,V,e.Diagnostics.Convert_to_a_bigint_numeric_literal,u,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){return p(V,L.file,L)})}});function p(I,V,L){var m=e.tryCast(e.getTokenAtPosition(V,L.start),e.isNumericLiteral);if(!!m){var y=m.getText(V)+"n";I.replaceNode(V,m,e.factory.createBigIntLiteral(y))}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixAddModuleReferTypeMissingTypeof",g=u,p=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];c.registerCodeFix({errorCodes:p,getCodeActions:function(L){var m=L.sourceFile,y=L.span,j=I(m,y.start),te=e.textChanges.ChangeTracker.with(L,function(E){return V(E,m,j)});return[c.createCodeFixAction(g,te,e.Diagnostics.Add_missing_typeof,g,e.Diagnostics.Add_missing_typeof)]},fixIds:[g],getAllCodeActions:function(L){return c.codeFixAll(L,p,function(m,y){return V(m,L.sourceFile,I(y.file,y.start))})}});function I(L,m){var y=e.getTokenAtPosition(L,m);return e.Debug.assert(y.kind===100,"This token should be an ImportKeyword"),e.Debug.assert(y.parent.kind===199,"Token parent should be an ImportType"),y.parent}function V(L,m,y){var j=e.factory.updateImportTypeNode(y,y.argument,y.qualifier,y.typeArguments,!0);L.replaceNode(m,y,j)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="wrapJsxInFragment",g=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(L){var m=L.sourceFile,y=L.span,j=p(m,y.start);if(!!j){var te=e.textChanges.ChangeTracker.with(L,function(E){return I(E,m,j)});return[c.createCodeFixAction(u,te,e.Diagnostics.Wrap_in_JSX_fragment,u,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[u],getAllCodeActions:function(L){return c.codeFixAll(L,g,function(m,y){var j=p(L.sourceFile,y.start);!j||I(m,L.sourceFile,j)})}});function p(L,m){var y=e.getTokenAtPosition(L,m),j=y.parent,te=j.parent;if(!(!e.isBinaryExpression(te)&&(te=te.parent,!e.isBinaryExpression(te)))&&!!e.nodeIsMissing(te.operatorToken))return te}function I(L,m,y){var j=V(y);j&&L.replaceNode(m,y,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),j,e.factory.createJsxJsxClosingFragment()))}function V(L){for(var m=[],y=L;;)if(e.isBinaryExpression(y)&&e.nodeIsMissing(y.operatorToken)&&y.operatorToken.kind===27){if(m.push(y.left),e.isJsxChild(y.right))return m.push(y.right),m;if(e.isBinaryExpression(y.right)){y=y.right;continue}else return}else return}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixConvertToMappedObjectType",g=u,p=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];c.registerCodeFix({errorCodes:p,getCodeActions:function(m){var y=m.sourceFile,j=m.span,te=I(y,j.start);if(!!te){var E=e.textChanges.ChangeTracker.with(m,function($){return L($,y,te)}),F=e.idText(te.container.name);return[c.createCodeFixAction(g,E,[e.Diagnostics.Convert_0_to_mapped_object_type,F],g,[e.Diagnostics.Convert_0_to_mapped_object_type,F])]}},fixIds:[g],getAllCodeActions:function(m){return c.codeFixAll(m,p,function(y,j){var te=I(j.file,j.start);te&&L(y,j.file,te)})}});function I(m,y){var j=e.getTokenAtPosition(m,y),te=e.cast(j.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(te.parent)){var E=e.isInterfaceDeclaration(te.parent)?te.parent:e.cast(te.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:te,container:E}}}function V(m,y){return e.factory.createTypeAliasDeclaration(m.decorators,m.modifiers,m.name,m.typeParameters,y)}function L(m,y,j){var te=j.indexSignature,E=j.container,F=e.isInterfaceDeclaration(E)?E.members:E.type.members,$=F.filter(function(O){return!e.isIndexSignatureDeclaration(O)}),C=e.first(te.parameters),K=e.factory.createTypeParameterDeclaration(e.cast(C.name,e.isIdentifier),C.type),k=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(te)?e.factory.createModifier(144):void 0,K,void 0,te.questionToken,te.type,void 0),X=e.factory.createIntersectionTypeNode(Bt(Bt(Bt([],e.getAllSuperTypeNodes(E),!0),[k],!1),$.length?[e.factory.createTypeLiteralNode($)]:e.emptyArray,!0));m.replaceNode(y,E,V(E,X))}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="removeAccidentalCallParentheses",g=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(p){var I=e.findAncestor(e.getTokenAtPosition(p.sourceFile,p.span.start),e.isCallExpression);if(!!I){var V=e.textChanges.ChangeTracker.with(p,function(L){L.deleteRange(p.sourceFile,{pos:I.expression.end,end:I.end})});return[c.createCodeFixActionWithoutFixAll(u,V,e.Diagnostics.Remove_parentheses)]}},fixIds:[u]})})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="removeUnnecessaryAwait",g=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(I){var V=e.textChanges.ChangeTracker.with(I,function(L){return p(L,I.sourceFile,I.span)});if(V.length>0)return[c.createCodeFixAction(u,V,e.Diagnostics.Remove_unnecessary_await,u,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[u],getAllCodeActions:function(I){return c.codeFixAll(I,g,function(V,L){return p(V,L.file,L)})}});function p(I,V,L){var m=e.tryCast(e.getTokenAtPosition(V,L.start),function($){return $.kind===132}),y=m&&e.tryCast(m.parent,e.isAwaitExpression);if(!!y){var j=y,te=e.isParenthesizedExpression(y.parent);if(te){var E=e.getLeftmostExpression(y.expression,!1);if(e.isIdentifier(E)){var F=e.findPrecedingToken(y.parent.pos,V);F&&F.kind!==103&&(j=y.parent)}}I.replaceNode(V,j,y.expression)}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],g="splitTypeOnlyImport";c.registerCodeFix({errorCodes:u,fixIds:[g],getCodeActions:function(V){var L=e.textChanges.ChangeTracker.with(V,function(m){return I(m,p(V.sourceFile,V.span),V)});if(L.length)return[c.createCodeFixAction(g,L,e.Diagnostics.Split_into_two_separate_import_declarations,g,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(V){return c.codeFixAll(V,u,function(L,m){I(L,p(V.sourceFile,m),V)})}});function p(V,L){return e.findAncestor(e.getTokenAtPosition(V,L.start),e.isImportDeclaration)}function I(V,L,m){if(!!L){var y=e.Debug.checkDefined(L.importClause);V.replaceNode(m.sourceFile,L,e.factory.updateImportDeclaration(L,L.decorators,L.modifiers,e.factory.updateImportClause(y,y.isTypeOnly,y.name,void 0),L.moduleSpecifier,L.assertClause)),V.insertNodeAfter(m.sourceFile,L,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(y,y.isTypeOnly,void 0,y.namedBindings),L.moduleSpecifier,L.assertClause))}}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixConvertConstToLet",g=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];c.registerCodeFix({errorCodes:g,getCodeActions:function(V){var L=V.sourceFile,m=V.span,y=V.program,j=p(L,m.start,y);if(j!==void 0){var te=e.textChanges.ChangeTracker.with(V,function(E){return I(E,L,j)});return[c.createCodeFixAction(u,te,e.Diagnostics.Convert_const_to_let,u,e.Diagnostics.Convert_const_to_let)]}},fixIds:[u]});function p(V,L,m){var y,j=m.getTypeChecker(),te=j.getSymbolAtLocation(e.getTokenAtPosition(V,L)),E=e.tryCast((y=te==null?void 0:te.valueDeclaration)===null||y===void 0?void 0:y.parent,e.isVariableDeclarationList);if(E!==void 0){var F=e.findChildOfKind(E,85,V);if(F!==void 0)return e.createRange(F.pos,F.end)}}function I(V,L,m){V.replaceRangeWithText(L,m,"let")}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="fixExpectedComma",g=e.Diagnostics._0_expected.code,p=[g];c.registerCodeFix({errorCodes:p,getCodeActions:function(L){var m=L.sourceFile,y=I(m,L.span.start,L.errorCode);if(!!y){var j=e.textChanges.ChangeTracker.with(L,function(te){return V(te,m,y)});return[c.createCodeFixAction(u,j,[e.Diagnostics.Change_0_to_1,";",","],u,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[u],getAllCodeActions:function(L){return c.codeFixAll(L,p,function(m,y){var j=I(y.file,y.start,y.code);j&&V(m,L.sourceFile,j)})}});function I(L,m,y){var j=e.getTokenAtPosition(L,m);return j.kind===26&&j.parent&&(e.isObjectLiteralExpression(j.parent)||e.isArrayLiteralExpression(j.parent))?{node:j}:void 0}function V(L,m,y){var j=y.node,te=e.factory.createToken(27);L.replaceNode(m,j,te)}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="addVoidToPromise",g="addVoidToPromise",p=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];c.registerCodeFix({errorCodes:p,fixIds:[g],getCodeActions:function(L){var m=e.textChanges.ChangeTracker.with(L,function(y){return I(y,L.sourceFile,L.span,L.program)});if(m.length>0)return[c.createCodeFixAction(u,m,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,g,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(L){return c.codeFixAll(L,p,function(m,y){return I(m,y.file,y,L.program,new e.Set)})}});function I(L,m,y,j,te){var E=e.getTokenAtPosition(m,y.start);if(!(!e.isIdentifier(E)||!e.isCallExpression(E.parent)||E.parent.expression!==E||E.parent.arguments.length!==0)){var F=j.getTypeChecker(),$=F.getSymbolAtLocation(E),C=$==null?void 0:$.valueDeclaration;if(!(!C||!e.isParameter(C)||!e.isNewExpression(C.parent.parent))&&!(te!=null&&te.has(C))){te==null||te.add(C);var K=V(C.parent.parent);if(e.some(K)){var k=K[0],X=!e.isUnionTypeNode(k)&&!e.isParenthesizedTypeNode(k)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([k,e.factory.createKeywordTypeNode(114)]).types[0]);X&&L.insertText(m,k.pos,"("),L.insertText(m,k.end,X?") | void":" | void")}else{var O=F.getResolvedSignature(E.parent),x=O==null?void 0:O.parameters[0],ie=x&&F.getTypeOfSymbolAtLocation(x,C.parent.parent);e.isInJSFile(C)?(!ie||ie.flags&3)&&(L.insertText(m,C.parent.parent.end,")"),L.insertText(m,e.skipTrivia(m.text,C.parent.parent.pos),"/** @type {Promise<void>} */(")):(!ie||ie.flags&2)&&L.insertText(m,C.parent.parent.expression.end,"<void>")}}}}function V(L){var m;if(e.isInJSFile(L)){if(e.isParenthesizedExpression(L.parent)){var y=(m=e.getJSDocTypeTag(L.parent))===null||m===void 0?void 0:m.typeExpression.type;if(y&&e.isTypeReferenceNode(y)&&e.isIdentifier(y.typeName)&&e.idText(y.typeName)==="Promise")return y.typeArguments}}else return L.typeArguments}})(n=e.codefix||(e.codefix={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="Convert export",g={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},p={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};c.registerRefactor(u,{kinds:[g.kind,p.kind],getAvailableActions:function(F){var $=I(F,F.triggerReason==="invoked");if(!$)return e.emptyArray;if(!c.isRefactorErrorInfo($)){var C=$.wasDefault?g:p;return[{name:u,description:C.description,actions:[C]}]}return F.preferences.provideRefactorNotApplicableReason?[{name:u,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[kn(kn({},g),{notApplicableReason:$.error}),kn(kn({},p),{notApplicableReason:$.error})]}]:e.emptyArray},getEditsForAction:function(F,$){e.Debug.assert($===g.name||$===p.name,"Unexpected action name");var C=I(F);e.Debug.assert(C&&!c.isRefactorErrorInfo(C),"Expected applicable refactor info");var K=e.textChanges.ChangeTracker.with(F,function(k){return V(F.file,F.program,C,k,F.cancellationToken)});return{edits:K,renameFilename:void 0,renameLocation:void 0}}});function I(F,$){$===void 0&&($=!0);var C=F.file,K=F.program,k=e.getRefactorContextSpan(F),X=e.getTokenAtPosition(C,k.start),O=!!(X.parent&&e.getSyntacticModifierFlags(X.parent)&1)&&$?X.parent:e.getParentNodeInSpan(X,C,k);if(!O||!e.isSourceFile(O.parent)&&!(e.isModuleBlock(O.parent)&&e.isAmbientModule(O.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var x=e.isSourceFile(O.parent)?O.parent.symbol:O.parent.parent.symbol,ie=e.getSyntacticModifierFlags(O)||(e.isExportAssignment(O)&&!O.isExportEquals?513:0),Z=!!(ie&512);if(!(ie&1)||!Z&&x.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var re=K.getTypeChecker(),q=function(H){return e.isIdentifier(H)&&re.getSymbolAtLocation(H)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(O.kind){case 255:case 256:case 257:case 259:case 258:case 260:{var P=O;return P.name?q(P.name)||{exportNode:P,exportName:P.name,wasDefault:Z,exportingModuleSymbol:x}:void 0}case 236:{var M=O;if(!(M.declarationList.flags&2)||M.declarationList.declarations.length!==1)return;var Q=e.first(M.declarationList.declarations);return Q.initializer?(e.Debug.assert(!Z,"Can't have a default flag here"),q(Q.name)||{exportNode:M,exportName:Q.name,wasDefault:Z,exportingModuleSymbol:x}):void 0}case 270:{var P=O;return P.isExportEquals?void 0:q(P.expression)||{exportNode:P,exportName:P.expression,wasDefault:Z,exportingModuleSymbol:x}}default:return}}function V(F,$,C,K,k){L(F,C,K,$.getTypeChecker()),m($,C,K,k)}function L(F,$,C,K){var k=$.wasDefault,X=$.exportNode,O=$.exportName;if(k)if(e.isExportAssignment(X)&&!X.isExportEquals){var x=X.expression,ie=E(x.text,x.text);C.replaceNode(F,X,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([ie])))}else C.delete(F,e.Debug.checkDefined(e.findModifier(X,88),"Should find a default keyword in modifier list"));else{var Z=e.Debug.checkDefined(e.findModifier(X,93),"Should find an export keyword in modifier list");switch(X.kind){case 255:case 256:case 257:C.insertNodeAfter(F,Z,e.factory.createToken(88));break;case 236:var re=e.first(X.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(O,K,F)&&!re.type){C.replaceNode(F,X,e.factory.createExportDefault(e.Debug.checkDefined(re.initializer,"Initializer was previously known to be present")));break}case 259:case 258:case 260:C.deleteModifier(F,Z),C.insertNodeAfter(F,X,e.factory.createExportDefault(e.factory.createIdentifier(O.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(X.kind))}}}function m(F,$,C,K){var k=$.wasDefault,X=$.exportName,O=$.exportingModuleSymbol,x=F.getTypeChecker(),ie=e.Debug.checkDefined(x.getSymbolAtLocation(X),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(F.getSourceFiles(),x,K,ie,O,X.text,k,function(Z){var re=Z.getSourceFile();k?y(re,Z,C,X.text):j(re,Z,C)})}function y(F,$,C,K){var k=$.parent;switch(k.kind){case 205:C.replaceNode(F,$,e.factory.createIdentifier(K));break;case 269:case 274:{var X=k;C.replaceNode(F,X,te(K,X.name.text));break}case 266:{var O=k;e.Debug.assert(O.name===$,"Import clause name should match provided ref");var X=te(K,$.text),x=O.namedBindings;if(!x)C.replaceNode(F,$,e.factory.createNamedImports([X]));else if(x.kind===267){C.deleteRange(F,{pos:$.getStart(F),end:x.getStart(F)});var ie=e.isStringLiteral(O.parent.moduleSpecifier)?e.quotePreferenceFromString(O.parent.moduleSpecifier,F):1,Z=e.makeImport(void 0,[te(K,$.text)],O.parent.moduleSpecifier,ie);C.insertNodeAfter(F,O.parent,Z)}else C.delete(F,$),C.insertNodeAtEndOfList(F,x.elements,X);break}default:e.Debug.failBadSyntaxKind(k)}}function j(F,$,C){var K=$.parent;switch(K.kind){case 205:C.replaceNode(F,$,e.factory.createIdentifier("default"));break;case 269:{var k=e.factory.createIdentifier(K.name.text);K.parent.elements.length===1?C.replaceNode(F,K.parent,k):(C.delete(F,K),C.insertNodeBefore(F,K.parent,k));break}case 274:{C.replaceNode(F,K,E("default",K.name.text));break}default:e.Debug.assertNever(K,"Unexpected parent kind ".concat(K.kind))}}function te(F,$){return e.factory.createImportSpecifier(!1,F===$?void 0:e.factory.createIdentifier(F),e.factory.createIdentifier($))}function E(F,$){return e.factory.createExportSpecifier(!1,F===$?void 0:e.factory.createIdentifier(F),e.factory.createIdentifier($))}})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="Convert import",g={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},p={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};c.registerRefactor(u,{kinds:[g.kind,p.kind],getAvailableActions:function(E){var F=I(E,E.triggerReason==="invoked");if(!F)return e.emptyArray;if(!c.isRefactorErrorInfo(F)){var $=F.kind===267,C=$?g:p;return[{name:u,description:C.description,actions:[C]}]}return E.preferences.provideRefactorNotApplicableReason?[{name:u,description:g.description,actions:[kn(kn({},g),{notApplicableReason:F.error})]},{name:u,description:p.description,actions:[kn(kn({},p),{notApplicableReason:F.error})]}]:e.emptyArray},getEditsForAction:function(E,F){e.Debug.assert(F===g.name||F===p.name,"Unexpected action name");var $=I(E);e.Debug.assert($&&!c.isRefactorErrorInfo($),"Expected applicable refactor info");var C=e.textChanges.ChangeTracker.with(E,function(K){return V(E.file,E.program,K,$)});return{edits:C,renameFilename:void 0,renameLocation:void 0}}});function I(E,F){F===void 0&&(F=!0);var $=E.file,C=e.getRefactorContextSpan(E),K=e.getTokenAtPosition($,C.start),k=F?e.findAncestor(K,e.isImportDeclaration):e.getParentNodeInSpan(K,$,C);if(!k||!e.isImportDeclaration(k))return{error:"Selection is not an import declaration."};var X=C.start+C.length,O=e.findNextToken(k,k.parent,$);if(!(O&&X>O.getStart())){var x=k.importClause;return x?x.namedBindings?x.namedBindings:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function V(E,F,$,C){var K=F.getTypeChecker();C.kind===267?L(E,K,$,C,e.getAllowSyntheticDefaultImports(F.getCompilerOptions())):j(E,K,$,C)}function L(E,F,$,C,K){var k=!1,X=[],O=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(C.name,F,E,function(H){if(!e.isPropertyAccessOrQualifiedName(H.parent))k=!0;else{var w=m(H.parent).text;F.resolveName(w,H,67108863,!0)&&O.set(w,!0),e.Debug.assert(y(H.parent)===H,"Parent expression should match id"),X.push(H.parent)}});for(var x=new e.Map,ie=0,Z=X;ie<Z.length;ie++){var re=Z[ie],q=m(re).text,P=x.get(q);P===void 0&&x.set(q,P=O.has(q)?e.getUniqueName(q,E):q),$.replaceNode(E,re,e.factory.createIdentifier(P))}var M=[];x.forEach(function(H,w){M.push(e.factory.createImportSpecifier(!1,H===w?void 0:e.factory.createIdentifier(w),e.factory.createIdentifier(H)))});var Q=C.parent.parent;k&&!K?$.insertNodeAfter(E,Q,te(Q,void 0,M)):$.replaceNode(E,Q,te(Q,k?e.factory.createIdentifier(C.name.text):void 0,M))}function m(E){return e.isPropertyAccessExpression(E)?E.name:E.right}function y(E){return e.isPropertyAccessExpression(E)?E.expression:E.left}function j(E,F,$,C){var K=C.parent.parent,k=K.moduleSpecifier,X=new e.Set;C.elements.forEach(function(w){var d=F.getSymbolAtLocation(w.name);d&&X.add(d)});var O=k&&e.isStringLiteral(k)?e.codefix.moduleSpecifierToValidIdentifier(k.text,99):"module";function x(w){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(w.name,F,E,function(d){var B=F.resolveName(O,d,67108863,!0);return B?X.has(B)?e.isExportSpecifier(d.parent):!0:!1})}for(var ie=C.elements.some(x),Z=ie?e.getUniqueName(O,E):O,re=new e.Set,q=function(w){var d=(w.propertyName||w.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(w.name,F,E,function(B){var T=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(Z),d);e.isShorthandPropertyAssignment(B.parent)?$.replaceNode(E,B.parent,e.factory.createPropertyAssignment(B.text,T)):e.isExportSpecifier(B.parent)?re.add(w):$.replaceNode(E,B,T)})},P=0,M=C.elements;P<M.length;P++){var Q=M[P];q(Q)}if($.replaceNode(E,C,e.factory.createNamespaceImport(e.factory.createIdentifier(Z))),re.size){var H=e.arrayFrom(re.values()).map(function(w){return e.factory.createImportSpecifier(w.isTypeOnly,w.propertyName&&e.factory.createIdentifier(w.propertyName.text),e.factory.createIdentifier(w.name.text))});$.insertNodeAfter(E,C.parent.parent,te(K,void 0,H))}}function te(E,F,$){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,F,$&&$.length?e.factory.createNamedImports($):void 0),E.moduleSpecifier,void 0)}})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Convert to optional chain expression",I=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),V={name:p,description:I,kind:"refactor.rewrite.expression.optionalChain"};c.registerRefactor(p,{kinds:[V.kind],getAvailableActions:L,getEditsForAction:m});function L(P){var M=E(P,P.triggerReason==="invoked");return M?c.isRefactorErrorInfo(M)?P.preferences.provideRefactorNotApplicableReason?[{name:p,description:I,actions:[kn(kn({},V),{notApplicableReason:M.error})]}]:e.emptyArray:[{name:p,description:I,actions:[V]}]:e.emptyArray}function m(P,M){var Q=E(P);e.Debug.assert(Q&&!c.isRefactorErrorInfo(Q),"Expected applicable refactor info");var H=e.textChanges.ChangeTracker.with(P,function(w){return q(P.file,P.program.getTypeChecker(),w,Q,M)});return{edits:H,renameFilename:void 0,renameLocation:void 0}}function y(P){return e.isBinaryExpression(P)||e.isConditionalExpression(P)}function j(P){return e.isExpressionStatement(P)||e.isReturnStatement(P)||e.isVariableStatement(P)}function te(P){return y(P)||j(P)}function E(P,M){M===void 0&&(M=!0);var Q=P.file,H=P.program,w=e.getRefactorContextSpan(P),d=w.length===0;if(!(d&&!M)){var B=e.getTokenAtPosition(Q,w.start),T=e.findTokenOnLeftOfPosition(Q,w.start+w.length),_=e.createTextSpanFromBounds(B.pos,T&&T.end>=B.pos?T.getEnd():B.getEnd()),h=d?x(B):O(B,_),R=h&&te(h)?ie(h):void 0;if(!R)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var b=H.getTypeChecker();return e.isConditionalExpression(R)?F(R,b):$(R)}}function F(P,M){var Q=P.condition,H=Z(P.whenTrue);if(!H||M.isNullableType(M.getTypeAtLocation(H)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(Q)||e.isIdentifier(Q))&&K(Q,H.expression))return{finalExpression:H,occurrences:[Q],expression:P};if(e.isBinaryExpression(Q)){var w=C(H.expression,Q);return w?{finalExpression:H,occurrences:w,expression:P}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function $(P){if(P.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var M=Z(P.right);if(!M)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var Q=C(M.expression,P.left);return Q?{finalExpression:M,occurrences:Q,expression:P}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function C(P,M){for(var Q=[];e.isBinaryExpression(M)&&M.operatorToken.kind===55;){var H=K(e.skipParentheses(P),e.skipParentheses(M.right));if(!H)break;Q.push(H),P=H,M=M.left}var w=K(P,M);return w&&Q.push(w),Q.length>0?Q:void 0}function K(P,M){if(!(!e.isIdentifier(M)&&!e.isPropertyAccessExpression(M)&&!e.isElementAccessExpression(M)))return k(P,M)?M:void 0}function k(P,M){for(;(e.isCallExpression(P)||e.isPropertyAccessExpression(P)||e.isElementAccessExpression(P))&&X(P)!==X(M);)P=P.expression;for(;e.isPropertyAccessExpression(P)&&e.isPropertyAccessExpression(M)||e.isElementAccessExpression(P)&&e.isElementAccessExpression(M);){if(X(P)!==X(M))return!1;P=P.expression,M=M.expression}return e.isIdentifier(P)&&e.isIdentifier(M)&&P.getText()===M.getText()}function X(P){if(e.isIdentifier(P)||e.isStringOrNumericLiteralLike(P))return P.getText();if(e.isPropertyAccessExpression(P))return X(P.name);if(e.isElementAccessExpression(P))return X(P.argumentExpression)}function O(P,M){for(;P.parent;){if(te(P)&&M.length!==0&&P.end>=M.start+M.length)return P;P=P.parent}}function x(P){for(;P.parent;){if(te(P)&&!te(P.parent))return P;P=P.parent}}function ie(P){if(y(P))return P;if(e.isVariableStatement(P)){var M=e.getSingleVariableOfVariableStatement(P),Q=M==null?void 0:M.initializer;return Q&&y(Q)?Q:void 0}return P.expression&&y(P.expression)?P.expression:void 0}function Z(P){if(P=e.skipParentheses(P),e.isBinaryExpression(P))return Z(P.left);if((e.isPropertyAccessExpression(P)||e.isElementAccessExpression(P)||e.isCallExpression(P))&&!e.isOptionalChain(P))return P}function re(P,M,Q){if(e.isPropertyAccessExpression(M)||e.isElementAccessExpression(M)||e.isCallExpression(M)){var H=re(P,M.expression,Q),w=Q.length>0?Q[Q.length-1]:void 0,d=(w==null?void 0:w.getText())===M.expression.getText();if(d&&Q.pop(),e.isCallExpression(M))return d?e.factory.createCallChain(H,e.factory.createToken(28),M.typeArguments,M.arguments):e.factory.createCallChain(H,M.questionDotToken,M.typeArguments,M.arguments);if(e.isPropertyAccessExpression(M))return d?e.factory.createPropertyAccessChain(H,e.factory.createToken(28),M.name):e.factory.createPropertyAccessChain(H,M.questionDotToken,M.name);if(e.isElementAccessExpression(M))return d?e.factory.createElementAccessChain(H,e.factory.createToken(28),M.argumentExpression):e.factory.createElementAccessChain(H,M.questionDotToken,M.argumentExpression)}return M}function q(P,M,Q,H,w){var d=H.finalExpression,B=H.occurrences,T=H.expression,_=B[B.length-1],h=re(M,d,B);h&&(e.isPropertyAccessExpression(h)||e.isElementAccessExpression(h)||e.isCallExpression(h))&&(e.isBinaryExpression(T)?Q.replaceNodeRange(P,_,d,h):e.isConditionalExpression(T)&&Q.replaceNode(P,T,e.factory.createBinaryExpression(h,e.factory.createToken(60),T.whenFalse)))}})(u=c.convertToOptionalChainExpression||(c.convertToOptionalChainExpression={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Convert overload list to single signature",I=e.Diagnostics.Convert_overload_list_to_single_signature.message,V={name:p,description:I,kind:"refactor.rewrite.function.overloadList"};c.registerRefactor(p,{kinds:[V.kind],getEditsForAction:m,getAvailableActions:L});function L(te){var E=te.file,F=te.startPosition,$=te.program,C=j(E,F,$);return C?[{name:p,description:I,actions:[V]}]:e.emptyArray}function m(te){var E=te.file,F=te.startPosition,$=te.program,C=j(E,F,$);if(!C)return;var K=$.getTypeChecker(),k=C[C.length-1],X=k;switch(k.kind){case 167:{X=e.factory.updateMethodSignature(k,k.modifiers,k.name,k.questionToken,k.typeParameters,x(C),k.type);break}case 168:{X=e.factory.updateMethodDeclaration(k,k.decorators,k.modifiers,k.asteriskToken,k.name,k.questionToken,k.typeParameters,x(C),k.type,k.body);break}case 173:{X=e.factory.updateCallSignature(k,k.typeParameters,x(C),k.type);break}case 170:{X=e.factory.updateConstructorDeclaration(k,k.decorators,k.modifiers,x(C),k.body);break}case 174:{X=e.factory.updateConstructSignature(k,k.typeParameters,x(C),k.type);break}case 255:{X=e.factory.updateFunctionDeclaration(k,k.decorators,k.modifiers,k.asteriskToken,k.name,k.typeParameters,x(C),k.type,k.body);break}default:return e.Debug.failBadSyntaxKind(k,"Unhandled signature kind in overload list conversion refactoring")}if(X===k)return;var O=e.textChanges.ChangeTracker.with(te,function(re){re.replaceNodeRange(E,C[0],C[C.length-1],X)});return{renameFilename:void 0,renameLocation:void 0,edits:O};function x(re){var q=re[re.length-1];return e.isFunctionLikeDeclaration(q)&&q.body&&(re=re.slice(0,re.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(re,ie)))])}function ie(re){var q=e.map(re.parameters,Z);return e.setEmitFlags(e.factory.createTupleTypeNode(q),e.some(q,function(P){return!!e.length(e.getSyntheticLeadingComments(P))})?0:1)}function Z(re){e.Debug.assert(e.isIdentifier(re.name));var q=e.setTextRange(e.factory.createNamedTupleMember(re.dotDotDotToken,re.name,re.questionToken,re.type||e.factory.createKeywordTypeNode(130)),re),P=re.symbol&&re.symbol.getDocumentationComment(K);if(P){var M=e.displayPartsToString(P);M.length&&e.setSyntheticLeadingComments(q,[{text:`*
`.concat(M.split(`
`).map(function(Q){return" * ".concat(Q)}).join(`
`),`
`),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return q}}function y(te){switch(te.kind){case 167:case 168:case 173:case 170:case 174:case 255:return!0}return!1}function j(te,E,F){var $=e.getTokenAtPosition(te,E),C=e.findAncestor($,y);if(!!C){var K=F.getTypeChecker(),k=C.symbol;if(!!k){var X=k.declarations;if(!(e.length(X)<=1)&&!!e.every(X,function(re){return e.getSourceFileOfNode(re)===te})&&!!y(X[0])){var O=X[0].kind;if(!!e.every(X,function(re){return re.kind===O})){var x=X;if(!e.some(x,function(re){return!!re.typeParameters||e.some(re.parameters,function(q){return!!q.decorators||!!q.modifiers||!e.isIdentifier(q.name)})})){var ie=e.mapDefined(x,function(re){return K.getSignatureFromDeclaration(re)});if(e.length(ie)===e.length(X)){var Z=K.getReturnTypeOfSignature(ie[0]);if(!!e.every(ie,function(re){return K.getReturnTypeOfSignature(re)===Z}))return x}}}}}}}})(u=c.addOrRemoveBracesToArrowFunction||(c.addOrRemoveBracesToArrowFunction={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Extract Symbol",I={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},V={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};c.registerRefactor(p,{kinds:[I.kind,V.kind],getAvailableActions:L,getEditsForAction:m});function L(J){var le=J.kind,Te=te(J.file,e.getRefactorContextSpan(J),J.triggerReason==="invoked"),Me=Te.targetRange;if(Me===void 0){if(!Te.errors||Te.errors.length===0||!J.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var Ke=[];return c.refactorKindBeginsWith(V.kind,le)&&Ke.push({name:p,description:V.description,actions:[kn(kn({},V),{notApplicableReason:sr(Te.errors)})]}),c.refactorKindBeginsWith(I.kind,le)&&Ke.push({name:p,description:I.description,actions:[kn(kn({},I),{notApplicableReason:sr(Te.errors)})]}),Ke}var Ae=X(Me,J);if(Ae===void 0)return e.emptyArray;for(var Ge=[],se=new e.Map,xe,Re=[],ce=new e.Map,Ue,We=0,Ne=0,ve=Ae;Ne<ve.length;Ne++){var Ve=ve[Ne],gr=Ve.functionExtraction,Er=Ve.constantExtraction,Nr=gr.description;if(c.refactorKindBeginsWith(V.kind,le)&&(gr.errors.length===0?se.has(Nr)||(se.set(Nr,!0),Ge.push({description:Nr,name:"function_scope_".concat(We),kind:V.kind})):xe||(xe={description:Nr,name:"function_scope_".concat(We),notApplicableReason:sr(gr.errors),kind:V.kind})),c.refactorKindBeginsWith(I.kind,le))if(Er.errors.length===0){var ur=Er.description;ce.has(ur)||(ce.set(ur,!0),Re.push({description:ur,name:"constant_scope_".concat(We),kind:I.kind}))}else Ue||(Ue={description:Nr,name:"constant_scope_".concat(We),notApplicableReason:sr(Er.errors),kind:I.kind});We++}var xr=[];return Ge.length?xr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:Ge}):J.preferences.provideRefactorNotApplicableReason&&xe&&xr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[xe]}),Re.length?xr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:Re}):J.preferences.provideRefactorNotApplicableReason&&Ue&&xr.push({name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[Ue]}),xr.length?xr:e.emptyArray;function sr(i){var Mr=i[0].messageText;return typeof Mr!="string"&&(Mr=Mr.messageText),Mr}}g.getAvailableActions=L;function m(J,le){var Te=te(J.file,e.getRefactorContextSpan(J)),Me=Te.targetRange,Ke=/^function_scope_(\d+)$/.exec(le);if(Ke){var Ae=+Ke[1];return e.Debug.assert(isFinite(Ae),"Expected to parse a finite number from the function scope index"),K(Me,J,Ae)}var Ge=/^constant_scope_(\d+)$/.exec(le);if(Ge){var Ae=+Ge[1];return e.Debug.assert(isFinite(Ae),"Expected to parse a finite number from the constant scope index"),k(Me,J,Ae)}e.Debug.fail("Unrecognized action name")}g.getEditsForAction=m;var y;(function(J){function le(Te){return{message:Te,code:0,category:e.DiagnosticCategory.Message,key:Te}}J.cannotExtractRange=le("Cannot extract range."),J.cannotExtractImport=le("Cannot extract import statement."),J.cannotExtractSuper=le("Cannot extract super call."),J.cannotExtractJSDoc=le("Cannot extract JSDoc."),J.cannotExtractEmpty=le("Cannot extract empty range."),J.expressionExpected=le("expression expected."),J.uselessConstantType=le("No reason to extract constant of type."),J.statementOrExpressionExpected=le("Statement or expression expected."),J.cannotExtractRangeContainingConditionalBreakOrContinueStatements=le("Cannot extract range containing conditional break or continue statements."),J.cannotExtractRangeContainingConditionalReturnStatement=le("Cannot extract range containing conditional return statement."),J.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=le("Cannot extract range containing labeled break or continue with target outside of the range."),J.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=le("Cannot extract range containing writes to references located outside of the target range in generators."),J.typeWillNotBeVisibleInTheNewScope=le("Type will not visible in the new scope."),J.functionWillNotBeVisibleInTheNewScope=le("Function will not visible in the new scope."),J.cannotExtractIdentifier=le("Select more than a single identifier."),J.cannotExtractExportedEntity=le("Cannot extract exported declaration"),J.cannotWriteInExpression=le("Cannot write back side-effects when extracting an expression"),J.cannotExtractReadonlyPropertyInitializerOutsideConstructor=le("Cannot move initialization of read-only class property outside of the constructor"),J.cannotExtractAmbientBlock=le("Cannot extract code from ambient contexts"),J.cannotAccessVariablesFromNestedScopes=le("Cannot access variables from nested scopes"),J.cannotExtractToJSClass=le("Cannot extract constant to a class scope in JS"),J.cannotExtractToExpressionArrowFunction=le("Cannot extract constant to an arrow function without a block")})(y=g.Messages||(g.Messages={}));var j;(function(J){J[J.None=0]="None",J[J.HasReturn=1]="HasReturn",J[J.IsGenerator=2]="IsGenerator",J[J.IsAsyncFunction=4]="IsAsyncFunction",J[J.UsesThis=8]="UsesThis",J[J.InStaticRegion=16]="InStaticRegion"})(j||(j={}));function te(J,le,Te){Te===void 0&&(Te=!0);var Me=le.length;if(Me===0&&!Te)return{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractEmpty)]};var Ke=Me===0&&Te,Ae=e.findFirstNonJsxWhitespaceToken(J,le.start),Ge=e.findTokenOnLeftOfPosition(J,e.textSpanEnd(le)),se=Ae&&Ge&&Te?E(Ae,Ge,J):le,xe=Ke?ae(Ae):e.getParentNodeInSpan(Ae,J,se),Re=Ke?xe:e.getParentNodeInSpan(Ge,J,se),ce=[],Ue=j.None;if(!xe||!Re)return{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractRange)]};if(e.isJSDoc(xe))return{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractJSDoc)]};if(xe.parent!==Re.parent)return{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractRange)]};if(xe!==Re){if(!be(xe.parent))return{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractRange)]};for(var We=[],Ne=xe,ve=0,Ve=Ne.parent.statements;ve<Ve.length;ve++){var gr=Ve[ve];if(gr===xe||We.length){var Er=Mr(gr);if(Er)return{errors:Er};We.push(gr)}if(gr===Re)break}return We.length?{targetRange:{range:We,facts:Ue,declarations:ce}}:{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractRange)]}}if(e.isReturnStatement(xe)&&!xe.expression)return{errors:[e.createFileDiagnostic(J,le.start,Me,y.cannotExtractRange)]};var Nr=xr(xe),ur=sr(Nr)||Mr(Nr);if(ur)return{errors:ur};return{targetRange:{range:F(Nr),facts:Ue,declarations:ce}};function xr(fr){if(e.isReturnStatement(fr)){if(fr.expression)return fr.expression}else if(e.isVariableStatement(fr)){for(var Ar=0,de=void 0,we=0,qe=fr.declarationList.declarations;we<qe.length;we++){var Cr=qe[we];Cr.initializer&&(Ar++,de=Cr.initializer)}if(Ar===1)return de}else if(e.isVariableDeclaration(fr)&&fr.initializer)return fr.initializer;return fr}function sr(fr){if(e.isIdentifier(e.isExpressionStatement(fr)?fr.expression:fr))return[e.createDiagnosticForNode(fr,y.cannotExtractIdentifier)]}function i(fr,Ar){for(var de=fr;de!==Ar;){if(de.kind===166){e.isStatic(de)&&(Ue|=j.InStaticRegion);break}else if(de.kind===163){var we=e.getContainingFunction(de);we.kind===170&&(Ue|=j.InStaticRegion);break}else de.kind===168&&e.isStatic(de)&&(Ue|=j.InStaticRegion);de=de.parent}}function Mr(fr){var Ar;if(function(He){He[He.None=0]="None",He[He.Break=1]="Break",He[He.Continue=2]="Continue",He[He.Return=4]="Return"}(Ar||(Ar={})),e.Debug.assert(fr.pos<=fr.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(fr.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!e.isStatement(fr)&&!(e.isExpressionNode(fr)&&D(fr)))return[e.createDiagnosticForNode(fr,y.statementOrExpressionExpected)];if(fr.flags&8388608)return[e.createDiagnosticForNode(fr,y.cannotExtractAmbientBlock)];var de=e.getContainingClass(fr);de&&i(fr,de);var we,qe=4,Cr;return kr(fr),we;function kr(He){if(we)return!0;if(e.isDeclaration(He)){var lr=He.kind===253?He.parent.parent:He;if(e.hasSyntacticModifier(lr,1))return(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractExportedEntity)),!0;ce.push(He.symbol)}switch(He.kind){case 265:return(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractImport)),!0;case 270:return(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractExportedEntity)),!0;case 106:if(He.parent.kind===207){var Hr=e.getContainingClass(He);if(Hr.pos<le.start||Hr.end>=le.start+le.length)return(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractSuper)),!0}else Ue|=j.UsesThis;break;case 213:e.forEachChild(He,function Yr(ot){if(e.isThis(ot))Ue|=j.UsesThis;else{if(e.isClassLike(ot)||e.isFunctionLike(ot)&&!e.isArrowFunction(ot))return!1;e.forEachChild(ot,Yr)}});case 256:case 255:e.isSourceFile(He.parent)&&He.parent.externalModuleIndicator===void 0&&(we||(we=[])).push(e.createDiagnosticForNode(He,y.functionWillNotBeVisibleInTheNewScope));case 225:case 212:case 168:case 170:case 171:case 172:return!1}var Je=qe;switch(He.kind){case 238:qe=0;break;case 251:qe=0;break;case 234:He.parent&&He.parent.kind===251&&He.parent.finallyBlock===He&&(qe=4);break;case 289:case 288:qe|=1;break;default:e.isIterationStatement(He,!1)&&(qe|=3);break}switch(He.kind){case 191:case 108:Ue|=j.UsesThis;break;case 249:{var Sr=He.label;(Cr||(Cr=[])).push(Sr.escapedText),e.forEachChild(He,kr),Cr.pop();break}case 245:case 244:{var Sr=He.label;Sr?e.contains(Cr,Sr.escapedText)||(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):qe&(He.kind===245?1:2)||(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 217:Ue|=j.IsAsyncFunction;break;case 223:Ue|=j.IsGenerator;break;case 246:qe&4?Ue|=j.HasReturn:(we||(we=[])).push(e.createDiagnosticForNode(He,y.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(He,kr);break}qe=Je}}}g.getRangeToExtract=te;function E(J,le,Te){var Me=J.getStart(Te),Ke=le.getEnd();return Te.text.charCodeAt(Ke)===59&&Ke++,{start:Me,length:Ke-Me}}function F(J){if(e.isStatement(J))return[J];if(e.isExpressionNode(J))return e.isExpressionStatement(J.parent)?[J.parent]:J}function $(J){return e.isFunctionLikeDeclaration(J)||e.isSourceFile(J)||e.isModuleBlock(J)||e.isClassLike(J)}function C(J){var le=pe(J.range)?e.first(J.range):J.range;if(J.facts&j.UsesThis){var Te=e.getContainingClass(le);if(Te){var Me=e.findAncestor(le,e.isFunctionLikeDeclaration);return Me?[Me,Te]:[Te]}}for(var Ke=[];;)if(le=le.parent,le.kind===163&&(le=e.findAncestor(le,function(Ae){return e.isFunctionLikeDeclaration(Ae)}).parent),$(le)&&(Ke.push(le),le.kind===303))return Ke}function K(J,le,Te){var Me=O(J,le),Ke=Me.scopes,Ae=Me.readsAndWrites,Ge=Ae.target,se=Ae.usagesPerScope,xe=Ae.functionErrorsPerScope,Re=Ae.exposedVariableDeclarations;return e.Debug.assert(!xe[Te].length,"The extraction went missing? How?"),le.cancellationToken.throwIfCancellationRequested(),M(Ge,Ke[Te],se[Te],Re,J,le)}function k(J,le,Te){var Me=O(J,le),Ke=Me.scopes,Ae=Me.readsAndWrites,Ge=Ae.target,se=Ae.usagesPerScope,xe=Ae.constantErrorsPerScope,Re=Ae.exposedVariableDeclarations;e.Debug.assert(!xe[Te].length,"The extraction went missing? How?"),e.Debug.assert(Re.length===0,"Extract constant accepted a range containing a variable declaration?"),le.cancellationToken.throwIfCancellationRequested();var ce=e.isExpression(Ge)?Ge:Ge.statements[0].expression;return Q(ce,Ke[Te],se[Te],J.facts,le)}function X(J,le){var Te=O(J,le),Me=Te.scopes,Ke=Te.readsAndWrites,Ae=Ke.functionErrorsPerScope,Ge=Ke.constantErrorsPerScope,se=Me.map(function(xe,Re){var ce=x(xe),Ue=ie(xe),We=e.isFunctionLikeDeclaration(xe)?Z(xe):e.isClassLike(xe)?re(xe):q(xe),Ne,ve;return We===1?(Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[ce,"global"]),ve=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ue,"global"])):We===0?(Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[ce,"module"]),ve=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[Ue,"module"])):(Ne=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[ce,We]),ve=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[Ue,We])),Re===0&&!e.isClassLike(xe)&&(ve=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[Ue])),{functionExtraction:{description:Ne,errors:Ae[Re]},constantExtraction:{description:ve,errors:Ge[Re]}}});return se}function O(J,le){var Te=le.file,Me=C(J),Ke=A(J,Te),Ae=Se(J,Me,Ke,Te,le.program.getTypeChecker(),le.cancellationToken);return{scopes:Me,readsAndWrites:Ae}}function x(J){return e.isFunctionLikeDeclaration(J)?"inner function":e.isClassLike(J)?"method":"function"}function ie(J){return e.isClassLike(J)?"readonly field":"constant"}function Z(J){switch(J.kind){case 170:return"constructor";case 212:case 255:return J.name?"function '".concat(J.name.text,"'"):e.ANONYMOUS;case 213:return"arrow function";case 168:return"method '".concat(J.name.getText(),"'");case 171:return"'get ".concat(J.name.getText(),"'");case 172:return"'set ".concat(J.name.getText(),"'");default:throw e.Debug.assertNever(J,"Unexpected scope kind ".concat(J.kind))}}function re(J){return J.kind===256?J.name?"class '".concat(J.name.text,"'"):"anonymous class declaration":J.name?"class expression '".concat(J.name.text,"'"):"anonymous class expression"}function q(J){return J.kind===261?"namespace '".concat(J.parent.name.getText(),"'"):J.externalModuleIndicator?0:1}var P;(function(J){J[J.Module=0]="Module",J[J.Global=1]="Global"})(P||(P={}));function M(J,le,Te,Me,Ke,Ae){var Ge=Te.usages,se=Te.typeParameterUsages,xe=Te.substitutions,Re=Ae.program.getTypeChecker(),ce=e.getEmitScriptTarget(Ae.program.getCompilerOptions()),Ue=e.codefix.createImportAdder(Ae.file,Ae.program,Ae.preferences,Ae.host),We=le.getSourceFile(),Ne=e.getUniqueName(e.isClassLike(le)?"newMethod":"newFunction",We),ve=e.isInJSFile(le),Ve=e.factory.createIdentifier(Ne),gr,Er=[],Nr=[],ur;Ge.forEach(function(De,z){var ke;if(!ve){var dr=Re.getTypeOfSymbolAtLocation(De.symbol,De.node);dr=Re.getBaseTypeOfLiteralType(dr),ke=e.codefix.typeToAutoImportableTypeNode(Re,Ue,dr,le,ce,1)}var Xe=e.factory.createParameterDeclaration(void 0,void 0,void 0,z,void 0,ke);Er.push(Xe),De.usage===2&&(ur||(ur=[])).push(De),Nr.push(e.factory.createIdentifier(z))});var xr=e.arrayFrom(se.values()).map(function(De){return{type:De,declaration:w(De)}}),sr=xr.sort(d),i=sr.length===0?void 0:sr.map(function(De){return De.declaration}),Mr=i!==void 0?i.map(function(De){return e.factory.createTypeReferenceNode(De.name,void 0)}):void 0;if(e.isExpression(J)&&!ve){var fr=Re.getContextualType(J);gr=Re.typeToTypeNode(fr,le,1)}var Ar=T(J,Me,ur,xe,!!(Ke.facts&j.HasReturn)),de=Ar.body,we=Ar.returnValueProperty;e.suppressLeadingAndTrailingTrivia(de);var qe;if(e.isClassLike(le)){var Cr=ve?[]:[e.factory.createModifier(121)];Ke.facts&j.InStaticRegion&&Cr.push(e.factory.createModifier(124)),Ke.facts&j.IsAsyncFunction&&Cr.push(e.factory.createModifier(131)),qe=e.factory.createMethodDeclaration(void 0,Cr.length?Cr:void 0,Ke.facts&j.IsGenerator?e.factory.createToken(41):void 0,Ve,void 0,i,Er,gr,de)}else qe=e.factory.createFunctionDeclaration(void 0,Ke.facts&j.IsAsyncFunction?[e.factory.createToken(131)]:void 0,Ke.facts&j.IsGenerator?e.factory.createToken(41):void 0,Ve,i,Er,gr,de);var kr=e.textChanges.ChangeTracker.fromContext(Ae),He=(pe(Ke.range)?e.last(Ke.range):Ke.range).end,lr=R(He,le);lr?kr.insertNodeBefore(Ae.file,lr,qe,!0):kr.insertNodeAtEndOfScope(Ae.file,le,qe),Ue.writeFixes(kr);var Hr=[],Je=B(le,Ke,Ne),Sr=e.factory.createCallExpression(Je,Mr,Nr);if(Ke.facts&j.IsGenerator&&(Sr=e.factory.createYieldExpression(e.factory.createToken(41),Sr)),Ke.facts&j.IsAsyncFunction&&(Sr=e.factory.createAwaitExpression(Sr)),ne(J)&&(Sr=e.factory.createJsxExpression(void 0,Sr)),Me.length&&!ur)if(e.Debug.assert(!we,"Expected no returnValueProperty"),e.Debug.assert(!(Ke.facts&j.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Me.length===1){var Yr=Me[0];Hr.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(Yr.name),void 0,e.getSynthesizedDeepClone(Yr.type),Sr)],Yr.parent.flags)))}else{for(var ot=[],_t=[],kt=Me[0].parent.flags,Yt=!1,vn=0,Mn=Me;vn<Mn.length;vn++){var Yr=Mn[vn];ot.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(Yr.name)));var qn=Re.typeToTypeNode(Re.getBaseTypeOfLiteralType(Re.getTypeAtLocation(Yr)),le,1);_t.push(e.factory.createPropertySignature(void 0,Yr.symbol.name,void 0,qn)),Yt=Yt||Yr.type!==void 0,kt=kt&Yr.parent.flags}var nr=Yt?e.factory.createTypeLiteralNode(_t):void 0;nr&&e.setEmitFlags(nr,1),Hr.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(ot),void 0,nr,Sr)],kt)))}else if(Me.length||ur){if(Me.length)for(var Zr=0,ir=Me;Zr<ir.length;Zr++){var Yr=ir[Zr],ge=Yr.parent.flags;ge&2&&(ge=ge&-3|1),Hr.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(Yr.symbol.name,void 0,$e(Yr.type))],ge)))}we&&Hr.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(we,void 0,$e(gr))],1)));var rr=Y(Me,ur);we&&rr.unshift(e.factory.createShorthandPropertyAssignment(we)),rr.length===1?(e.Debug.assert(!we,"Shouldn't have returnValueProperty here"),Hr.push(e.factory.createExpressionStatement(e.factory.createAssignment(rr[0].name,Sr))),Ke.facts&j.HasReturn&&Hr.push(e.factory.createReturnStatement())):(Hr.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(rr),Sr))),we&&Hr.push(e.factory.createReturnStatement(e.factory.createIdentifier(we))))}else Ke.facts&j.HasReturn?Hr.push(e.factory.createReturnStatement(Sr)):pe(Ke.range)?Hr.push(e.factory.createExpressionStatement(Sr)):Hr.push(Sr);pe(Ke.range)?kr.replaceNodeRangeWithNodes(Ae.file,e.first(Ke.range),e.last(Ke.range),Hr):kr.replaceNodeWithNodes(Ae.file,Ke.range,Hr);var pr=kr.getChanges(),Lr=pe(Ke.range)?e.first(Ke.range):Ke.range,Ce=Lr.getSourceFile().fileName,cr=e.getRenameLocation(pr,Ce,Ne,!1);return{renameFilename:Ce,renameLocation:cr,edits:pr};function $e(De){if(De!==void 0){for(var z=e.getSynthesizedDeepClone(De),ke=z;e.isParenthesizedTypeNode(ke);)ke=ke.type;return e.isUnionTypeNode(ke)&&e.find(ke.types,function(dr){return dr.kind===152})?z:e.factory.createUnionTypeNode([z,e.factory.createKeywordTypeNode(152)])}}}function Q(J,le,Te,Me,Ke){var Ae,Ge=Te.substitutions,se=Ke.program.getTypeChecker(),xe=le.getSourceFile(),Re=e.getUniqueName(e.isClassLike(le)?"newProperty":"newLocal",xe),ce=e.isInJSFile(le),Ue=ce||!se.isContextSensitive(J)?void 0:se.typeToTypeNode(se.getContextualType(J),le,1),We=_(e.skipParentheses(J),Ge);Ae=Ar(Ue,We),Ue=Ae.variableType,We=Ae.initializer,e.suppressLeadingAndTrailingTrivia(We);var Ne=e.textChanges.ChangeTracker.fromContext(Ke);if(e.isClassLike(le)){e.Debug.assert(!ce,"Cannot extract to a JS class");var ve=[];ve.push(e.factory.createModifier(121)),Me&j.InStaticRegion&&ve.push(e.factory.createModifier(124)),ve.push(e.factory.createModifier(144));var Ve=e.factory.createPropertyDeclaration(void 0,ve,Re,void 0,Ue,We),gr=e.factory.createPropertyAccessExpression(Me&j.InStaticRegion?e.factory.createIdentifier(le.name.getText()):e.factory.createThis(),e.factory.createIdentifier(Re));ne(J)&&(gr=e.factory.createJsxExpression(void 0,gr));var Er=J.pos,Nr=b(Er,le);Ne.insertNodeBefore(Ke.file,Nr,Ve,!0),Ne.replaceNode(Ke.file,J,gr)}else{var ur=e.factory.createVariableDeclaration(Re,void 0,Ue,We),xr=H(J,le);if(xr){Ne.insertNodeBefore(Ke.file,xr,ur);var gr=e.factory.createIdentifier(Re);Ne.replaceNode(Ke.file,J,gr)}else if(J.parent.kind===237&&le===e.findAncestor(J,$)){var sr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([ur],2));Ne.replaceNode(Ke.file,J.parent,sr)}else{var sr=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([ur],2)),Nr=G(J,le);if(Nr.pos===0?Ne.insertNodeAtTopOfFile(Ke.file,sr,!1):Ne.insertNodeBefore(Ke.file,Nr,sr,!1),J.parent.kind===237)Ne.delete(Ke.file,J.parent);else{var gr=e.factory.createIdentifier(Re);ne(J)&&(gr=e.factory.createJsxExpression(void 0,gr)),Ne.replaceNode(Ke.file,J,gr)}}}var i=Ne.getChanges(),Mr=J.getSourceFile().fileName,fr=e.getRenameLocation(i,Mr,Re,!0);return{renameFilename:Mr,renameLocation:fr,edits:i};function Ar(de,we){if(de===void 0)return{variableType:de,initializer:we};if(!e.isFunctionExpression(we)&&!e.isArrowFunction(we)||!!we.typeParameters)return{variableType:de,initializer:we};var qe=se.getTypeAtLocation(J),Cr=e.singleOrUndefined(se.getSignaturesOfType(qe,0));if(!Cr)return{variableType:de,initializer:we};if(Cr.getTypeParameters())return{variableType:de,initializer:we};for(var kr=[],He=!1,lr=0,Hr=we.parameters;lr<Hr.length;lr++){var Je=Hr[lr];if(Je.type)kr.push(Je);else{var Sr=se.getTypeAtLocation(Je);Sr===se.getAnyType()&&(He=!0),kr.push(e.factory.updateParameterDeclaration(Je,Je.decorators,Je.modifiers,Je.dotDotDotToken,Je.name,Je.questionToken,Je.type||se.typeToTypeNode(Sr,le,1),Je.initializer))}}if(He)return{variableType:de,initializer:we};if(de=void 0,e.isArrowFunction(we))we=e.factory.updateArrowFunction(we,J.modifiers,we.typeParameters,kr,we.type||se.typeToTypeNode(Cr.getReturnType(),le,1),we.equalsGreaterThanToken,we.body);else{if(Cr&&!!Cr.thisParameter){var Yr=e.firstOrUndefined(kr);if(!Yr||e.isIdentifier(Yr.name)&&Yr.name.escapedText!=="this"){var ot=se.getTypeOfSymbolAtLocation(Cr.thisParameter,J);kr.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,se.typeToTypeNode(ot,le,1)))}}we=e.factory.updateFunctionExpression(we,J.modifiers,we.asteriskToken,we.name,we.typeParameters,kr,we.type||se.typeToTypeNode(Cr.getReturnType(),le,1),we.body)}return{variableType:de,initializer:we}}}function H(J,le){for(var Te;J!==void 0&&J!==le;){if(e.isVariableDeclaration(J)&&J.initializer===Te&&e.isVariableDeclarationList(J.parent)&&J.parent.declarations.length>1)return J;Te=J,J=J.parent}}function w(J){var le,Te=J.symbol;if(Te&&Te.declarations)for(var Me=0,Ke=Te.declarations;Me<Ke.length;Me++){var Ae=Ke[Me];(le===void 0||Ae.pos<le.pos)&&(le=Ae)}return le}function d(J,le){var Te=J.type,Me=J.declaration,Ke=le.type,Ae=le.declaration;return e.compareProperties(Me,Ae,"pos",e.compareValues)||e.compareStringsCaseSensitive(Te.symbol?Te.symbol.getName():"",Ke.symbol?Ke.symbol.getName():"")||e.compareValues(Te.id,Ke.id)}function B(J,le,Te){var Me=e.factory.createIdentifier(Te);if(e.isClassLike(J)){var Ke=le.facts&j.InStaticRegion?e.factory.createIdentifier(J.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(Ke,Me)}else return Me}function T(J,le,Te,Me,Ke){var Ae=Te!==void 0||le.length>0;if(e.isBlock(J)&&!Ae&&Me.size===0)return{body:e.factory.createBlock(J.statements,!0),returnValueProperty:void 0};var Ge,se=!1,xe=e.factory.createNodeArray(e.isBlock(J)?J.statements.slice(0):[e.isStatement(J)?J:e.factory.createReturnStatement(e.skipParentheses(J))]);if(Ae||Me.size){var Re=e.visitNodes(xe,Ue).slice();if(Ae&&!Ke&&e.isStatement(J)){var ce=Y(le,Te);ce.length===1?Re.push(e.factory.createReturnStatement(ce[0].name)):Re.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(ce)))}return{body:e.factory.createBlock(Re,!0),returnValueProperty:Ge}}else return{body:e.factory.createBlock(xe,!0),returnValueProperty:void 0};function Ue(We){if(!se&&e.isReturnStatement(We)&&Ae){var Ne=Y(le,Te);return We.expression&&(Ge||(Ge="__return"),Ne.unshift(e.factory.createPropertyAssignment(Ge,e.visitNode(We.expression,Ue)))),Ne.length===1?e.factory.createReturnStatement(Ne[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(Ne))}else{var ve=se;se=se||e.isFunctionLikeDeclaration(We)||e.isClassLike(We);var Ve=Me.get(e.getNodeId(We).toString()),gr=Ve?e.getSynthesizedDeepClone(Ve):e.visitEachChild(We,Ue,e.nullTransformationContext);return se=ve,gr}}}function _(J,le){return le.size?Te(J):J;function Te(Me){var Ke=le.get(e.getNodeId(Me).toString());return Ke?e.getSynthesizedDeepClone(Ke):e.visitEachChild(Me,Te,e.nullTransformationContext)}}function h(J){if(e.isFunctionLikeDeclaration(J)){var le=J.body;if(e.isBlock(le))return le.statements}else{if(e.isModuleBlock(J)||e.isSourceFile(J))return J.statements;if(e.isClassLike(J))return J.members;e.assertType(J)}return e.emptyArray}function R(J,le){return e.find(h(le),function(Te){return Te.pos>=J&&e.isFunctionLikeDeclaration(Te)&&!e.isConstructorDeclaration(Te)})}function b(J,le){var Te=le.members;e.Debug.assert(Te.length>0,"Found no members");for(var Me,Ke=!0,Ae=0,Ge=Te;Ae<Ge.length;Ae++){var se=Ge[Ae];if(se.pos>J)return Me||Te[0];if(Ke&&!e.isPropertyDeclaration(se)){if(Me!==void 0)return se;Ke=!1}Me=se}return Me===void 0?e.Debug.fail():Me}function G(J,le){e.Debug.assert(!e.isClassLike(le));for(var Te,Me=J;Me!==le;Me=Me.parent)$(Me)&&(Te=Me);for(var Me=(Te||J).parent;;Me=Me.parent){if(be(Me)){for(var Ke=void 0,Ae=0,Ge=Me.statements;Ae<Ge.length;Ae++){var se=Ge[Ae];if(se.pos>J.pos)break;Ke=se}return!Ke&&e.isCaseClause(Me)?(e.Debug.assert(e.isSwitchStatement(Me.parent.parent),"Grandparent isn't a switch statement"),Me.parent.parent):e.Debug.checkDefined(Ke,"prevStatement failed to get set")}e.Debug.assert(Me!==le,"Didn't encounter a block-like before encountering scope")}}function Y(J,le){var Te=e.map(J,function(Ke){return e.factory.createShorthandPropertyAssignment(Ke.symbol.name)}),Me=e.map(le,function(Ke){return e.factory.createShorthandPropertyAssignment(Ke.symbol.name)});return Te===void 0?Me:Me===void 0?Te:Te.concat(Me)}function pe(J){return e.isArray(J)}function A(J,le){return pe(J.range)?{pos:e.first(J.range).getStart(le),end:e.last(J.range).getEnd()}:J.range}var _e;(function(J){J[J.Read=1]="Read",J[J.Write=2]="Write"})(_e||(_e={}));function Se(J,le,Te,Me,Ke,Ae){var Ge=new e.Map,se=[],xe=[],Re=[],ce=[],Ue=[],We=new e.Map,Ne=[],ve,Ve=pe(J.range)?J.range.length===1&&e.isExpressionStatement(J.range[0])?J.range[0].expression:void 0:J.range,gr;if(Ve===void 0){var Er=J.range,Nr=e.first(Er).getStart(),ur=e.last(Er).end;gr=e.createFileDiagnostic(Me,Nr,ur-Nr,y.expressionExpected)}else Ke.getTypeAtLocation(Ve).flags&147456&&(gr=e.createDiagnosticForNode(Ve,y.uselessConstantType));for(var xr=0,sr=le;xr<sr.length;xr++){var i=sr[xr];se.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),xe.push(new e.Map),Re.push([]);var Mr=[];gr&&Mr.push(gr),e.isClassLike(i)&&e.isInJSFile(i)&&Mr.push(e.createDiagnosticForNode(i,y.cannotExtractToJSClass)),e.isArrowFunction(i)&&!e.isBlock(i.body)&&Mr.push(e.createDiagnosticForNode(i,y.cannotExtractToExpressionArrowFunction)),ce.push(Mr)}var fr=new e.Map,Ar=pe(J.range)?e.factory.createBlock(J.range):J.range,de=pe(J.range)?e.first(J.range):J.range,we=kt(de);if(vn(Ar),we&&!pe(J.range)){var qe=Ke.getContextualType(J.range);Yt(qe)}if(Ge.size>0){for(var Cr=new e.Map,kr=0,He=de;He!==void 0&&kr<le.length;He=He.parent)if(He===le[kr]&&(Cr.forEach(function(ge,rr){se[kr].typeParameterUsages.set(rr,ge)}),kr++),e.isDeclarationWithTypeParameters(He))for(var lr=0,Hr=e.getEffectiveTypeParameterDeclarations(He);lr<Hr.length;lr++){var Je=Hr[lr],Sr=Ke.getTypeAtLocation(Je);Ge.has(Sr.id.toString())&&Cr.set(Sr.id.toString(),Sr)}e.Debug.assert(kr===le.length,"Should have iterated all scopes")}if(Ue.length){var Yr=e.isBlockScope(le[0],le[0].parent)?le[0]:e.getEnclosingBlockScopeContainer(le[0]);e.forEachChild(Yr,nr)}for(var ot=function(ge){var rr=se[ge];if(ge>0&&(rr.usages.size>0||rr.typeParameterUsages.size>0)){var pr=pe(J.range)?J.range[0]:J.range;ce[ge].push(e.createDiagnosticForNode(pr,y.cannotAccessVariablesFromNestedScopes))}var Lr=!1,Ce;if(se[ge].usages.forEach(function($e){$e.usage===2&&(Lr=!0,$e.symbol.flags&106500&&$e.symbol.valueDeclaration&&e.hasEffectiveModifier($e.symbol.valueDeclaration,64)&&(Ce=$e.symbol.valueDeclaration))}),e.Debug.assert(pe(J.range)||Ne.length===0,"No variable declarations expected if something was extracted"),Lr&&!pe(J.range)){var cr=e.createDiagnosticForNode(J.range,y.cannotWriteInExpression);Re[ge].push(cr),ce[ge].push(cr)}else if(Ce&&ge>0){var cr=e.createDiagnosticForNode(Ce,y.cannotExtractReadonlyPropertyInitializerOutsideConstructor);Re[ge].push(cr),ce[ge].push(cr)}else if(ve){var cr=e.createDiagnosticForNode(ve,y.cannotExtractExportedEntity);Re[ge].push(cr),ce[ge].push(cr)}},_t=0;_t<le.length;_t++)ot(_t);return{target:Ar,usagesPerScope:se,functionErrorsPerScope:Re,constantErrorsPerScope:ce,exposedVariableDeclarations:Ne};function kt(ge){return!!e.findAncestor(ge,function(rr){return e.isDeclarationWithTypeParameters(rr)&&e.getEffectiveTypeParameterDeclarations(rr).length!==0})}function Yt(ge){for(var rr=Ke.getSymbolWalker(function(){return Ae.throwIfCancellationRequested(),!0}),pr=rr.walkType(ge).visitedTypes,Lr=0,Ce=pr;Lr<Ce.length;Lr++){var cr=Ce[Lr];cr.isTypeParameter()&&Ge.set(cr.id.toString(),cr)}}function vn(ge,rr){if(rr===void 0&&(rr=1),we){var pr=Ke.getTypeAtLocation(ge);Yt(pr)}if(e.isDeclaration(ge)&&ge.symbol&&Ue.push(ge),e.isAssignmentExpression(ge))vn(ge.left,2),vn(ge.right);else if(e.isUnaryExpressionWithWrite(ge))vn(ge.operand,2);else if(e.isPropertyAccessExpression(ge)||e.isElementAccessExpression(ge))e.forEachChild(ge,vn);else if(e.isIdentifier(ge)){if(!ge.parent||e.isQualifiedName(ge.parent)&&ge!==ge.parent.left||e.isPropertyAccessExpression(ge.parent)&&ge!==ge.parent.expression)return;Mn(ge,rr,e.isPartOfTypeNode(ge))}else e.forEachChild(ge,vn)}function Mn(ge,rr,pr){var Lr=qn(ge,rr,pr);if(Lr)for(var Ce=0;Ce<le.length;Ce++){var cr=xe[Ce].get(Lr);cr&&se[Ce].substitutions.set(e.getNodeId(ge).toString(),cr)}}function qn(ge,rr,pr){var Lr=Zr(ge);if(!!Lr){var Ce=e.getSymbolId(Lr).toString(),cr=fr.get(Ce);if(cr&&cr>=rr)return Ce;if(fr.set(Ce,rr),cr){for(var $e=0,De=se;$e<De.length;$e++){var z=De[$e],ke=z.usages.get(ge.text);ke&&z.usages.set(ge.text,{usage:rr,symbol:Lr,node:ge})}return Ce}var dr=Lr.getDeclarations(),Xe=dr&&e.find(dr,function(Lt){return Lt.getSourceFile()===Me});if(!!Xe&&!e.rangeContainsStartEnd(Te,Xe.getStart(),Xe.end)){if(J.facts&j.IsGenerator&&rr===2){for(var Qe=e.createDiagnosticForNode(ge,y.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),Ir=0,Jr=Re;Ir<Jr.length;Ir++){var Or=Jr[Ir];Or.push(Qe)}for(var Be=0,yr=ce;Be<yr.length;Be++){var Or=yr[Be];Or.push(Qe)}}for(var Rr=0;Rr<le.length;Rr++){var zr=le[Rr],ut=Ke.resolveName(Lr.name,zr,Lr.flags,!1);if(ut!==Lr&&!xe[Rr].has(Ce)){var mt=ir(Lr.exportSymbol||Lr,zr,pr);if(mt)xe[Rr].set(Ce,mt);else if(pr){if(!(Lr.flags&262144)){var Qe=e.createDiagnosticForNode(ge,y.typeWillNotBeVisibleInTheNewScope);Re[Rr].push(Qe),ce[Rr].push(Qe)}}else se[Rr].usages.set(ge.text,{usage:rr,symbol:Lr,node:ge})}}return Ce}}}function nr(ge){if(!(ge===J.range||pe(J.range)&&J.range.indexOf(ge)>=0)){var rr=e.isIdentifier(ge)?Zr(ge):Ke.getSymbolAtLocation(ge);if(rr){var pr=e.find(Ue,function(Ce){return Ce.symbol===rr});if(pr)if(e.isVariableDeclaration(pr)){var Lr=pr.symbol.id.toString();We.has(Lr)||(Ne.push(pr),We.set(Lr,!0))}else ve=ve||pr}e.forEachChild(ge,nr)}}function Zr(ge){return ge.parent&&e.isShorthandPropertyAssignment(ge.parent)&&ge.parent.name===ge?Ke.getShorthandAssignmentValueSymbol(ge.parent):Ke.getSymbolAtLocation(ge)}function ir(ge,rr,pr){if(!!ge){var Lr=ge.getDeclarations();if(Lr&&Lr.some(function(cr){return cr.parent===rr}))return e.factory.createIdentifier(ge.name);var Ce=ir(ge.parent,rr,pr);if(Ce!==void 0)return pr?e.factory.createQualifiedName(Ce,e.factory.createIdentifier(ge.name)):e.factory.createPropertyAccessExpression(Ce,ge.name)}}}function ae(J){return e.findAncestor(J,function(le){return le.parent&&D(le)&&!e.isBinaryExpression(le.parent)})}function D(J){var le=J.parent;switch(le.kind){case 297:return!1}switch(J.kind){case 10:return le.kind!==265&&le.kind!==269;case 224:case 200:case 202:return!1;case 79:return le.kind!==202&&le.kind!==269&&le.kind!==274}return!0}function be(J){switch(J.kind){case 234:case 303:case 261:case 288:return!0;default:return!1}}function ne(J){return(e.isJsxElement(J)||e.isJsxSelfClosingElement(J)||e.isJsxFragment(J))&&(e.isJsxElement(J.parent)||e.isJsxFragment(J.parent))}})(u=c.extractSymbol||(c.extractSymbol={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="Extract type",g={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},p={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},I={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};c.registerRefactor(u,{kinds:[g.kind,p.kind,I.kind],getAvailableActions:function(F){var $=V(F,F.triggerReason==="invoked");return $?c.isRefactorErrorInfo($)?F.preferences.provideRefactorNotApplicableReason?[{name:u,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[kn(kn({},I),{notApplicableReason:$.error}),kn(kn({},g),{notApplicableReason:$.error}),kn(kn({},p),{notApplicableReason:$.error})]}]:e.emptyArray:[{name:u,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:$.isJS?[I]:e.append([g],$.typeElements&&p)}]:e.emptyArray},getEditsForAction:function(F,$){var C=F.file,K=V(F);e.Debug.assert(K&&!c.isRefactorErrorInfo(K),"Expected to find a range to extract");var k=e.getUniqueName("NewType",C),X=e.textChanges.ChangeTracker.with(F,function(ie){switch($){case g.name:return e.Debug.assert(!K.isJS,"Invalid actionName/JS combo"),j(ie,C,k,K);case I.name:return e.Debug.assert(K.isJS,"Invalid actionName/JS combo"),E(ie,C,k,K);case p.name:return e.Debug.assert(!K.isJS&&!!K.typeElements,"Invalid actionName/JS combo"),te(ie,C,k,K);default:e.Debug.fail("Unexpected action name")}}),O=C.fileName,x=e.getRenameLocation(X,O,k,!1);return{edits:X,renameFilename:O,renameLocation:x}}});function V(F,$){$===void 0&&($=!0);var C=F.file,K=F.startPosition,k=e.isSourceFileJS(C),X=e.getTokenAtPosition(C,K),O=e.createTextRangeFromSpan(e.getRefactorContextSpan(F)),x=O.pos===O.end&&$,ie=e.findAncestor(X,function(M){return M.parent&&e.isTypeNode(M)&&!m(O,M.parent,C)&&(x||e.nodeOverlapsWithStartEnd(X,C,O.pos,O.end))});if(!ie||!e.isTypeNode(ie))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var Z=F.program.getTypeChecker(),re=e.Debug.checkDefined(e.findAncestor(ie,e.isStatement),"Should find a statement"),q=y(Z,ie,re,C);if(!q)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var P=L(Z,ie);return{isJS:k,selection:ie,firstStatement:re,typeParameters:q,typeElements:P}}function L(F,$){if(!!$)if(e.isIntersectionTypeNode($)){for(var C=[],K=new e.Map,k=0,X=$.types;k<X.length;k++){var O=X[k],x=L(F,O);if(!x||!x.every(function(ie){return ie.name&&e.addToSeen(K,e.getNameFromPropertyName(ie.name))}))return;e.addRange(C,x)}return C}else{if(e.isParenthesizedTypeNode($))return L(F,$.type);if(e.isTypeLiteralNode($))return $.members}}function m(F,$,C){return e.rangeContainsStartEnd(F,e.skipTrivia(C.text,$.pos),$.end)}function y(F,$,C,K){var k=[];return X($)?void 0:k;function X(O){var x;if(e.isTypeReferenceNode(O)){if(e.isIdentifier(O.typeName)){var ie=F.resolveName(O.typeName.text,O.typeName,262144,!0),Z=e.tryCast((x=ie==null?void 0:ie.declarations)===null||x===void 0?void 0:x[0],e.isTypeParameterDeclaration);Z&&m(C,Z,K)&&!m($,Z,K)&&e.pushIfUnique(k,Z)}}else if(e.isInferTypeNode(O)){var re=e.findAncestor(O,function(P){return e.isConditionalTypeNode(P)&&m(P.extendsType,O,K)});if(!re||!m($,re,K))return!0}else if(e.isTypePredicateNode(O)||e.isThisTypeNode(O)){var q=e.findAncestor(O.parent,e.isFunctionLike);if(q&&q.type&&m(q.type,O,K)&&!m($,q,K))return!0}else if(e.isTypeQueryNode(O)){if(e.isIdentifier(O.exprName)){var ie=F.resolveName(O.exprName.text,O.exprName,111551,!1);if((ie==null?void 0:ie.valueDeclaration)&&m(C,ie.valueDeclaration,K)&&!m($,ie.valueDeclaration,K))return!0}else if(e.isThisIdentifier(O.exprName.left)&&!m($,O.parent,K))return!0}return K&&e.isTupleTypeNode(O)&&e.getLineAndCharacterOfPosition(K,O.pos).line===e.getLineAndCharacterOfPosition(K,O.end).line&&e.setEmitFlags(O,1),e.forEachChild(O,X)}}function j(F,$,C,K){var k=K.firstStatement,X=K.selection,O=K.typeParameters,x=e.factory.createTypeAliasDeclaration(void 0,void 0,C,O.map(function(ie){return e.factory.updateTypeParameterDeclaration(ie,ie.name,ie.constraint,void 0)}),X);F.insertNodeBefore($,k,e.ignoreSourceNewlines(x),!0),F.replaceNode($,X,e.factory.createTypeReferenceNode(C,O.map(function(ie){return e.factory.createTypeReferenceNode(ie.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function te(F,$,C,K){var k,X=K.firstStatement,O=K.selection,x=K.typeParameters,ie=K.typeElements,Z=e.factory.createInterfaceDeclaration(void 0,void 0,C,x,void 0,ie);e.setTextRange(Z,(k=ie[0])===null||k===void 0?void 0:k.parent),F.insertNodeBefore($,X,e.ignoreSourceNewlines(Z),!0),F.replaceNode($,O,e.factory.createTypeReferenceNode(C,x.map(function(re){return e.factory.createTypeReferenceNode(re.name,void 0)})),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}function E(F,$,C,K){var k=K.firstStatement,X=K.selection,O=K.typeParameters,x=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(X),e.factory.createIdentifier(C)),ie=[];e.forEach(O,function(Z){var re=e.getEffectiveConstraintOfTypeParameter(Z),q=e.factory.createTypeParameterDeclaration(Z.name),P=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),re&&e.cast(re,e.isJSDocTypeExpression),[q]);ie.push(P)}),F.insertNodeBefore($,k,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(ie,[x]))),!0),F.replaceNode($,X,e.factory.createTypeReferenceNode(C,O.map(function(Z){return e.factory.createTypeReferenceNode(Z.name,void 0)})))}})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Generate 'get' and 'set' accessors",I=e.Diagnostics.Generate_get_and_set_accessors.message,V={name:p,description:I,kind:"refactor.rewrite.property.generateAccessors"};c.registerRefactor(p,{kinds:[V.kind],getEditsForAction:function(L,m){if(!!L.endPosition){var y=e.codefix.getAccessorConvertiblePropertyAtPosition(L.file,L.program,L.startPosition,L.endPosition);e.Debug.assert(y&&!c.isRefactorErrorInfo(y),"Expected applicable refactor info");var j=e.codefix.generateAccessorFromProperty(L.file,L.program,L.startPosition,L.endPosition,L,m);if(!!j){var te=L.file.fileName,E=y.renameAccessor?y.accessorName:y.fieldName,F=e.isIdentifier(E)?0:-1,$=F+e.getRenameLocation(j,te,E.text,e.isParameter(y.declaration));return{renameFilename:te,renameLocation:$,edits:j}}}},getAvailableActions:function(L){if(!L.endPosition)return e.emptyArray;var m=e.codefix.getAccessorConvertiblePropertyAtPosition(L.file,L.program,L.startPosition,L.endPosition,L.triggerReason==="invoked");return m?c.isRefactorErrorInfo(m)?L.preferences.provideRefactorNotApplicableReason?[{name:p,description:I,actions:[kn(kn({},V),{notApplicableReason:m.error})]}]:e.emptyArray:[{name:p,description:I,actions:[V]}]:e.emptyArray}})})(u=c.generateGetAccessorAndSetAccessor||(c.generateGetAccessorAndSetAccessor={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(p){return p.error!==void 0}c.isRefactorErrorInfo=u;function g(p,I){return I?p.substr(0,I.length)===I:!0}c.refactorKindBeginsWith=g})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u="Move to a new file",g=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),p={name:u,description:g,kind:"refactor.move.newFile"};c.registerRefactor(u,{kinds:[p.kind],getAvailableActions:function(se){var xe=L(se);return se.preferences.allowTextChangesInNewFiles&&xe?[{name:u,description:g,actions:[p]}]:se.preferences.provideRefactorNotApplicableReason?[{name:u,description:g,actions:[kn(kn({},p),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(se,xe){e.Debug.assert(xe===u,"Wrong refactor invoked");var Re=e.Debug.checkDefined(L(se)),ce=e.textChanges.ChangeTracker.with(se,function(Ue){return V(se.file,se.program,Re,Ue,se.host,se.preferences)});return{edits:ce,renameFilename:void 0,renameLocation:void 0}}});function I(se){var xe=se.file,Re=e.createTextRangeFromSpan(e.getRefactorContextSpan(se)),ce=xe.statements,Ue=e.findIndex(ce,function(ve){return ve.end>Re.pos});if(Ue!==-1){var We=ce[Ue];if(e.isNamedDeclaration(We)&&We.name&&e.rangeContainsRange(We.name,Re))return{toMove:[ce[Ue]],afterLast:ce[Ue+1]};if(!(Re.pos>We.getStart(xe))){var Ne=e.findIndex(ce,function(ve){return ve.end>Re.end},Ue);if(!(Ne!==-1&&(Ne===0||ce[Ne].getStart(xe)<Re.end)))return{toMove:ce.slice(Ue,Ne===-1?ce.length:Ne),afterLast:Ne===-1?void 0:ce[Ne]}}}}function V(se,xe,Re,ce,Ue,We){var Ne=xe.getTypeChecker(),ve=B(se,Re.all,Ne),Ve=e.getDirectoryPath(se.fileName),gr=e.extensionFromPath(se.fileName),Er=w(d(ve.movedSymbols),gr,Ve,Ue),Nr=Er+gr;ce.createNewFile(se,e.combinePaths(Ve,Nr),te(se,ve,ce,Re,xe,Er,We)),j(xe,ce,se.fileName,Nr,e.hostGetCanonicalFileName(Ue))}function L(se){var xe=I(se);if(xe!==void 0){var Re=[],ce=[],Ue=xe.toMove,We=xe.afterLast;return e.getRangesWhere(Ue,m,function(Ne,ve){for(var Ve=Ne;Ve<ve;Ve++)Re.push(Ue[Ve]);ce.push({first:Ue[Ne],afterLast:We})}),Re.length===0?void 0:{all:Re,ranges:ce}}}function m(se){return!y(se)&&!e.isPrologueDirective(se)}function y(se){switch(se.kind){case 265:return!0;case 264:return!e.hasSyntacticModifier(se,1);case 236:return se.declarationList.declarations.every(function(xe){return!!xe.initializer&&e.isRequireCall(xe.initializer,!0)});default:return!1}}function j(se,xe,Re,ce,Ue){var We=se.getCompilerOptions().configFile;if(!!We){var Ne=e.normalizePath(e.combinePaths(Re,"..",ce)),ve=e.getRelativePathFromFile(We.fileName,Ne,Ue),Ve=We.statements[0]&&e.tryCast(We.statements[0].expression,e.isObjectLiteralExpression),gr=Ve&&e.find(Ve.properties,function(Er){return e.isPropertyAssignment(Er)&&e.isStringLiteral(Er.name)&&Er.name.text==="files"});gr&&e.isArrayLiteralExpression(gr.initializer)&&xe.insertNodeInListAfter(We,e.last(gr.initializer.elements),e.factory.createStringLiteral(ve),gr.initializer.elements)}}function te(se,xe,Re,ce,Ue,We,Ne){var ve=Ue.getTypeChecker(),Ve=e.takeWhile(se.statements,e.isPrologueDirective);if(!se.externalModuleIndicator&&!se.commonJsModuleIndicator)return E(se,ce.ranges,Re),Bt(Bt([],Ve,!0),ce.all,!0);var gr=!!se.externalModuleIndicator,Er=e.getQuotePreference(se,Ne),Nr=x(xe.oldFileImportsFromNewFile,We,gr,Er);Nr&&e.insertImports(Re,se,Nr,!0),F(se,ce.all,Re,xe.unusedImportsFromOldFile,ve),E(se,ce.ranges,Re),$(Re,Ue,se,xe.movedSymbols,We);var ur=H(se,xe.oldImportsNeededByNewFile,xe.newFileImportsFromOldFile,Re,ve,gr,Er),xr=q(se,ce.all,xe.oldFileImportsFromNewFile,gr);return ur.length&&xr.length?Bt(Bt(Bt(Bt([],Ve,!0),ur,!0),[4],!1),xr,!0):Bt(Bt(Bt([],Ve,!0),ur,!0),xr,!0)}function E(se,xe,Re){for(var ce=0,Ue=xe;ce<Ue.length;ce++){var We=Ue[ce],Ne=We.first,ve=We.afterLast;Re.deleteNodeRangeExcludingEnd(se,Ne,ve)}}function F(se,xe,Re,ce,Ue){for(var We=0,Ne=se.statements;We<Ne.length;We++){var ve=Ne[We];e.contains(xe,ve)||O(ve,function(Ve){return P(se,Ve,Re,function(gr){return ce.has(Ue.getSymbolAtLocation(gr))})})}}function $(se,xe,Re,ce,Ue){for(var We=xe.getTypeChecker(),Ne=function(Er){if(Er===Re)return"continue";for(var Nr=function(i){O(i,function(Mr){if(We.getSymbolAtLocation(X(Mr))===Re.symbol){var fr=function(qe){var Cr=e.isBindingElement(qe.parent)?e.getPropertySymbolFromBindingElement(We,qe.parent):e.skipAlias(We.getSymbolAtLocation(qe),We);return!!Cr&&ce.has(Cr)};P(Er,Mr,se,fr);var Ar=e.combinePaths(e.getDirectoryPath(X(Mr).text),Ue),de=h(Mr,e.factory.createStringLiteral(Ar),fr);de&&se.insertNodeAfter(Er,i,de);var we=C(Mr);we&&K(se,Er,We,ce,Ue,Ar,we,Mr)}})},ur=0,xr=Er.statements;ur<xr.length;ur++){var sr=xr[ur];Nr(sr)}},ve=0,Ve=xe.getSourceFiles();ve<Ve.length;ve++){var gr=Ve[ve];Ne(gr)}}function C(se){switch(se.kind){case 265:return se.importClause&&se.importClause.namedBindings&&se.importClause.namedBindings.kind===267?se.importClause.namedBindings.name:void 0;case 264:return se.name;case 253:return e.tryCast(se.name,e.isIdentifier);default:return e.Debug.assertNever(se,"Unexpected node kind ".concat(se.kind))}}function K(se,xe,Re,ce,Ue,We,Ne,ve){var Ve=e.codefix.moduleSpecifierToValidIdentifier(Ue,99),gr=!1,Er=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(Ne,Re,xe,function(i){!e.isPropertyAccessExpression(i.parent)||(gr=gr||!!Re.resolveName(Ve,i,67108863,!0),ce.has(Re.getSymbolAtLocation(i.parent.name))&&Er.push(i))}),Er.length){for(var Nr=gr?e.getUniqueName(Ve,xe):Ve,ur=0,xr=Er;ur<xr.length;ur++){var sr=xr[ur];se.replaceNode(xe,sr,e.factory.createIdentifier(Nr))}se.insertNodeAfter(xe,ve,k(ve,Ue,We))}}function k(se,xe,Re){var ce=e.factory.createIdentifier(xe),Ue=e.factory.createStringLiteral(Re);switch(se.kind){case 265:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(ce)),Ue,void 0);case 264:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,ce,e.factory.createExternalModuleReference(Ue));case 253:return e.factory.createVariableDeclaration(ce,void 0,void 0,re(Ue));default:return e.Debug.assertNever(se,"Unexpected node kind ".concat(se.kind))}}function X(se){return se.kind===265?se.moduleSpecifier:se.kind===264?se.moduleReference.expression:se.initializer.arguments[0]}function O(se,xe){if(e.isImportDeclaration(se))e.isStringLiteral(se.moduleSpecifier)&&xe(se);else if(e.isImportEqualsDeclaration(se))e.isExternalModuleReference(se.moduleReference)&&e.isStringLiteralLike(se.moduleReference.expression)&&xe(se);else if(e.isVariableStatement(se))for(var Re=0,ce=se.declarationList.declarations;Re<ce.length;Re++){var Ue=ce[Re];Ue.initializer&&e.isRequireCall(Ue.initializer,!0)&&xe(Ue)}}function x(se,xe,Re,ce){var Ue,We=[];return se.forEach(function(Ne){Ne.escapedName==="default"?Ue=e.factory.createIdentifier(e.symbolNameNoDefault(Ne)):We.push(Ne.name)}),ie(Ue,We,xe,Re,ce)}function ie(se,xe,Re,ce,Ue){if(Re=e.ensurePathIsNonModuleName(Re),ce){var We=xe.map(function(ve){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(ve))});return e.makeImportIfNecessary(se,We,Re,Ue)}else{e.Debug.assert(!se,"No default import should exist");var Ne=xe.map(function(ve){return e.factory.createBindingElement(void 0,void 0,ve)});return Ne.length?Z(e.factory.createObjectBindingPattern(Ne),void 0,re(e.factory.createStringLiteral(Re))):void 0}}function Z(se,xe,Re,ce){return ce===void 0&&(ce=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(se,void 0,xe,Re)],ce))}function re(se){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[se])}function q(se,xe,Re,ce){return e.flatMap(xe,function(Ue){if(_e(Ue)&&!le(se,Ue,ce)&&ae(Ue,function(Ne){return Re.has(e.Debug.checkDefined(Ne.symbol))})){var We=Te(Ue,ce);if(We)return We}return Ue})}function P(se,xe,Re,ce){switch(xe.kind){case 265:M(se,xe,Re,ce);break;case 264:ce(xe.name)&&Re.delete(se,xe);break;case 253:Q(se,xe,Re,ce);break;default:e.Debug.assertNever(xe,"Unexpected import decl kind ".concat(xe.kind))}}function M(se,xe,Re,ce){if(!!xe.importClause){var Ue=xe.importClause,We=Ue.name,Ne=Ue.namedBindings,ve=!We||ce(We),Ve=!Ne||(Ne.kind===267?ce(Ne.name):Ne.elements.length!==0&&Ne.elements.every(function(ur){return ce(ur.name)}));if(ve&&Ve)Re.delete(se,xe);else if(We&&ve&&Re.delete(se,We),Ne){if(Ve)Re.replaceNode(se,xe.importClause,e.factory.updateImportClause(xe.importClause,xe.importClause.isTypeOnly,We,void 0));else if(Ne.kind===268)for(var gr=0,Er=Ne.elements;gr<Er.length;gr++){var Nr=Er[gr];ce(Nr.name)&&Re.delete(se,Nr)}}}}function Q(se,xe,Re,ce){var Ue=xe.name;switch(Ue.kind){case 79:ce(Ue)&&Re.delete(se,Ue);break;case 201:break;case 200:if(Ue.elements.every(function(Ve){return e.isIdentifier(Ve.name)&&ce(Ve.name)}))Re.delete(se,e.isVariableDeclarationList(xe.parent)&&xe.parent.declarations.length===1?xe.parent.parent:xe);else for(var We=0,Ne=Ue.elements;We<Ne.length;We++){var ve=Ne[We];e.isIdentifier(ve.name)&&ce(ve.name)&&Re.delete(se,ve.name)}break}}function H(se,xe,Re,ce,Ue,We,Ne){for(var ve=[],Ve=0,gr=se.statements;Ve<gr.length;Ve++){var Er=gr[Ve];O(Er,function(sr){e.append(ve,h(sr,X(sr),function(i){return xe.has(Ue.getSymbolAtLocation(i))}))})}var Nr,ur=[],xr=e.nodeSeenTracker();return Re.forEach(function(sr){if(!!sr.declarations)for(var i=0,Mr=sr.declarations;i<Mr.length;i++){var fr=Mr[i];if(!!pe(fr)){var Ar=be(fr);if(!!Ar){var de=ne(fr);xr(de)&&J(se,de,Ar,ce,We),e.hasSyntacticModifier(fr,512)?Nr=Ar:ur.push(Ar.text)}}}}),e.append(ve,ie(Nr,ur,e.removeFileExtension(e.getBaseFileName(se.fileName)),We,Ne)),ve}function w(se,xe,Re,ce){for(var Ue=se,We=1;;We++){var Ne=e.combinePaths(Re,Ue+xe);if(!ce.fileExists(Ne))return Ue;Ue="".concat(se,".").concat(We)}}function d(se){return se.forEachEntry(e.symbolNameNoDefault)||"newFile"}function B(se,xe,Re){var ce=new Y,Ue=new Y,We=new Y,Ne=e.find(xe,function(Ar){return!!(Ar.transformFlags&2)}),ve=fr(Ne);ve&&Ue.add(ve);for(var Ve=0,gr=xe;Ve<gr.length;Ve++){var Er=gr[Ve];ae(Er,function(Ar){ce.add(e.Debug.checkDefined(e.isExpressionStatement(Ar)?Re.getSymbolAtLocation(Ar.expression.left):Ar.symbol,"Need a symbol here"))})}for(var Nr=0,ur=xe;Nr<ur.length;Nr++){var Er=ur[Nr];G(Er,Re,function(de){if(!!de.declarations)for(var we=0,qe=de.declarations;we<qe.length;we++){var Cr=qe[we];T(Cr)?Ue.add(de):pe(Cr)&&A(Cr)===se&&!ce.has(de)&&We.add(de)}})}for(var xr=Ue.clone(),sr=new Y,i=0,Mr=se.statements;i<Mr.length;i++){var Er=Mr[i];e.contains(xe,Er)||(ve&&!!(Er.transformFlags&2)&&xr.delete(ve),G(Er,Re,function(de){ce.has(de)&&sr.add(de),xr.delete(de)}))}return{movedSymbols:ce,newFileImportsFromOldFile:We,oldFileImportsFromNewFile:sr,oldImportsNeededByNewFile:Ue,unusedImportsFromOldFile:xr};function fr(Ar){if(Ar!==void 0){var de=Re.getJsxNamespace(Ar),we=Re.resolveName(de,Ar,1920,!0);return!!we&&e.some(we.declarations,T)?we:void 0}}}function T(se){switch(se.kind){case 264:case 269:case 266:case 267:return!0;case 253:return _(se);case 202:return e.isVariableDeclaration(se.parent.parent)&&_(se.parent.parent);default:return!1}}function _(se){return e.isSourceFile(se.parent.parent.parent)&&!!se.initializer&&e.isRequireCall(se.initializer,!0)}function h(se,xe,Re){switch(se.kind){case 265:{var ce=se.importClause;if(!ce)return;var Ue=ce.name&&Re(ce.name)?ce.name:void 0,We=ce.namedBindings&&R(ce.namedBindings,Re);return Ue||We?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,Ue,We),xe,void 0):void 0}case 264:return Re(se.name)?se:void 0;case 253:{var Ne=b(se.name,Re);return Ne?Z(Ne,se.type,re(xe),se.parent.flags):void 0}default:return e.Debug.assertNever(se,"Unexpected import kind ".concat(se.kind))}}function R(se,xe){if(se.kind===267)return xe(se.name)?se:void 0;var Re=se.elements.filter(function(ce){return xe(ce.name)});return Re.length?e.factory.createNamedImports(Re):void 0}function b(se,xe){switch(se.kind){case 79:return xe(se)?se:void 0;case 201:return se;case 200:{var Re=se.elements.filter(function(ce){return ce.propertyName||!e.isIdentifier(ce.name)||xe(ce.name)});return Re.length?e.factory.createObjectBindingPattern(Re):void 0}}}function G(se,xe,Re){se.forEachChild(function ce(Ue){if(e.isIdentifier(Ue)&&!e.isDeclarationName(Ue)){var We=xe.getSymbolAtLocation(Ue);We&&Re(We)}else Ue.forEachChild(ce)})}var Y=function(){function se(){this.map=new e.Map}return se.prototype.add=function(xe){this.map.set(String(e.getSymbolId(xe)),xe)},se.prototype.has=function(xe){return this.map.has(String(e.getSymbolId(xe)))},se.prototype.delete=function(xe){this.map.delete(String(e.getSymbolId(xe)))},se.prototype.forEach=function(xe){this.map.forEach(xe)},se.prototype.forEachEntry=function(xe){return e.forEachEntry(this.map,xe)},se.prototype.clone=function(){var xe=new se;return e.copyEntries(this.map,xe.map),xe},se}();function pe(se){return Se(se)&&e.isSourceFile(se.parent)||e.isVariableDeclaration(se)&&e.isSourceFile(se.parent.parent.parent)}function A(se){return e.isVariableDeclaration(se)?se.parent.parent.parent:se.parent}function _e(se){return e.Debug.assert(e.isSourceFile(se.parent),"Node parent should be a SourceFile"),Se(se)||e.isVariableStatement(se)}function Se(se){switch(se.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return!0;default:return!1}}function ae(se,xe){switch(se.kind){case 255:case 256:case 260:case 259:case 258:case 257:case 264:return xe(se);case 236:return e.firstDefined(se.declarationList.declarations,function(ce){return D(ce.name,xe)});case 237:{var Re=se.expression;return e.isBinaryExpression(Re)&&e.getAssignmentDeclarationKind(Re)===1?xe(se):void 0}}}function D(se,xe){switch(se.kind){case 79:return xe(e.cast(se.parent,function(Re){return e.isVariableDeclaration(Re)||e.isBindingElement(Re)}));case 201:case 200:return e.firstDefined(se.elements,function(Re){return e.isOmittedExpression(Re)?void 0:D(Re.name,xe)});default:return e.Debug.assertNever(se,"Unexpected name kind ".concat(se.kind))}}function be(se){return e.isExpressionStatement(se)?e.tryCast(se.expression.left.name,e.isIdentifier):e.tryCast(se.name,e.isIdentifier)}function ne(se){switch(se.kind){case 253:return se.parent.parent;case 202:return ne(e.cast(se.parent.parent,function(xe){return e.isVariableDeclaration(xe)||e.isBindingElement(xe)}));default:return se}}function J(se,xe,Re,ce,Ue){if(!le(se,xe,Ue,Re))if(Ue)e.isExpressionStatement(xe)||ce.insertExportModifier(se,xe);else{var We=Ae(xe);We.length!==0&&ce.insertNodesAfter(se,xe,We.map(Ge))}}function le(se,xe,Re,ce){var Ue;return Re?!e.isExpressionStatement(xe)&&e.hasSyntacticModifier(xe,1)||!!(ce&&((Ue=se.symbol.exports)===null||Ue===void 0?void 0:Ue.has(ce.escapedText))):Ae(xe).some(function(We){return se.symbol.exports.has(e.escapeLeadingUnderscores(We))})}function Te(se,xe){return xe?[Me(se)]:Ke(se)}function Me(se){var xe=e.concatenate([e.factory.createModifier(93)],se.modifiers);switch(se.kind){case 255:return e.factory.updateFunctionDeclaration(se,se.decorators,xe,se.asteriskToken,se.name,se.typeParameters,se.parameters,se.type,se.body);case 256:return e.factory.updateClassDeclaration(se,se.decorators,xe,se.name,se.typeParameters,se.heritageClauses,se.members);case 236:return e.factory.updateVariableStatement(se,xe,se.declarationList);case 260:return e.factory.updateModuleDeclaration(se,se.decorators,xe,se.name,se.body);case 259:return e.factory.updateEnumDeclaration(se,se.decorators,xe,se.name,se.members);case 258:return e.factory.updateTypeAliasDeclaration(se,se.decorators,xe,se.name,se.typeParameters,se.type);case 257:return e.factory.updateInterfaceDeclaration(se,se.decorators,xe,se.name,se.typeParameters,se.heritageClauses,se.members);case 264:return e.factory.updateImportEqualsDeclaration(se,se.decorators,xe,se.isTypeOnly,se.name,se.moduleReference);case 237:return e.Debug.fail();default:return e.Debug.assertNever(se,"Unexpected declaration kind ".concat(se.kind))}}function Ke(se){return Bt([se],Ae(se).map(Ge),!0)}function Ae(se){switch(se.kind){case 255:case 256:return[se.name.text];case 236:return e.mapDefined(se.declarationList.declarations,function(xe){return e.isIdentifier(xe.name)?xe.name.text:void 0});case 260:case 259:case 258:case 257:case 264:return e.emptyArray;case 237:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(se,"Unexpected decl kind ".concat(se.kind))}}function Ge(se){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(se)),63,e.factory.createIdentifier(se)))}})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Add or remove braces in an arrow function",I=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,V={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},L={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};c.registerRefactor(p,{kinds:[L.kind],getEditsForAction:y,getAvailableActions:m});function m(te){var E=te.file,F=te.startPosition,$=te.triggerReason,C=j(E,F,$==="invoked");return C?c.isRefactorErrorInfo(C)?te.preferences.provideRefactorNotApplicableReason?[{name:p,description:I,actions:[kn(kn({},V),{notApplicableReason:C.error}),kn(kn({},L),{notApplicableReason:C.error})]}]:e.emptyArray:[{name:p,description:I,actions:[C.addBraces?V:L]}]:e.emptyArray}function y(te,E){var F=te.file,$=te.startPosition,C=j(F,$);e.Debug.assert(C&&!c.isRefactorErrorInfo(C),"Expected applicable refactor info");var K=C.expression,k=C.returnStatement,X=C.func,O;if(E===V.name){var x=e.factory.createReturnStatement(K);O=e.factory.createBlock([x],!0),e.copyLeadingComments(K,x,F,3,!0)}else if(E===L.name&&k){var ie=K||e.factory.createVoidZero();O=e.needsParentheses(ie)?e.factory.createParenthesizedExpression(ie):ie,e.copyTrailingAsLeadingComments(k,O,F,3,!1),e.copyLeadingComments(k,O,F,3,!1),e.copyTrailingComments(k,O,F,3,!1)}else e.Debug.fail("invalid action");var Z=e.textChanges.ChangeTracker.with(te,function(re){re.replaceNode(F,X.body,O)});return{renameFilename:void 0,renameLocation:void 0,edits:Z}}function j(te,E,F,$){F===void 0&&(F=!0);var C=e.getTokenAtPosition(te,E),K=e.getContainingFunction(C);if(!K)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(K))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(!(!e.rangeContainsRange(K,C)||e.rangeContainsRange(K.body,C)&&!F)){if(c.refactorKindBeginsWith(V.kind,$)&&e.isExpression(K.body))return{func:K,addBraces:!0,expression:K.body};if(c.refactorKindBeginsWith(L.kind,$)&&e.isBlock(K.body)&&K.body.statements.length===1){var k=e.first(K.body.statements);if(e.isReturnStatement(k))return{func:K,addBraces:!1,expression:k.expression,returnStatement:k}}}}})(u=c.addOrRemoveBracesToArrowFunction||(c.addOrRemoveBracesToArrowFunction={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Convert parameters to destructured object",I=2,V=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),L={name:p,description:V,kind:"refactor.rewrite.parameters.toDestructured"};c.registerRefactor(p,{kinds:[L.kind],getEditsForAction:y,getAvailableActions:m});function m(b){var G=b.file,Y=b.startPosition,pe=e.isSourceFileJS(G);if(pe)return e.emptyArray;var A=X(G,Y,b.program.getTypeChecker());return A?[{name:p,description:V,actions:[L]}]:e.emptyArray}function y(b,G){e.Debug.assert(G===p,"Unexpected action name");var Y=b.file,pe=b.startPosition,A=b.program,_e=b.cancellationToken,Se=b.host,ae=X(Y,pe,A.getTypeChecker());if(!(!ae||!_e)){var D=te(ae,A,_e);if(D.valid){var be=e.textChanges.ChangeTracker.with(b,function(ne){return j(Y,A,Se,ne,ae,D)});return{renameFilename:void 0,renameLocation:void 0,edits:be}}return{edits:[]}}}function j(b,G,Y,pe,A,_e){var Se=_e.signature,ae=e.map(T(A,G,Y),function(Ke){return e.getSynthesizedDeepClone(Ke)});if(Se){var D=e.map(T(Se,G,Y),function(Ke){return e.getSynthesizedDeepClone(Ke)});Me(Se,D)}Me(A,ae);for(var be=e.sortAndDeduplicate(_e.functionCalls,function(Ke,Ae){return e.compareValues(Ke.pos,Ae.pos)}),ne=0,J=be;ne<J.length;ne++){var le=J[ne];if(le.arguments&&le.arguments.length){var Te=e.getSynthesizedDeepClone(B(A,le.arguments),!0);pe.replaceNodeRange(e.getSourceFileOfNode(le),e.first(le.arguments),e.last(le.arguments),Te,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function Me(Ke,Ae){pe.replaceNodeRangeWithNodes(b,e.first(Ke.parameters),e.last(Ke.parameters),Ae,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function te(b,G,Y){var pe=R(b),A=e.isConstructorDeclaration(b)?h(b):[],_e=e.deduplicate(Bt(Bt([],pe,!0),A,!0),e.equateValues),Se=G.getTypeChecker(),ae=e.flatMap(_e,function(J){return e.FindAllReferences.getReferenceEntriesForNode(-1,J,G,G.getSourceFiles(),Y)}),D=be(ae);return e.every(D.declarations,function(J){return e.contains(_e,J)})||(D.valid=!1),D;function be(J){for(var le={accessExpressions:[],typeUsages:[]},Te={functionCalls:[],declarations:[],classReferences:le,valid:!0},Me=e.map(pe,ne),Ke=e.map(A,ne),Ae=e.isConstructorDeclaration(b),Ge=e.map(pe,function(gr){return E(gr,Se)}),se=0,xe=J;se<xe.length;se++){var Re=xe[se];if(Re.kind===0){Te.valid=!1;continue}if(e.contains(Ge,ne(Re.node))){if(x(Re.node.parent)){Te.signature=Re.node.parent;continue}var ce=C(Re);if(ce){Te.functionCalls.push(ce);continue}}var Ue=E(Re.node,Se);if(Ue&&e.contains(Ge,Ue)){var We=$(Re);if(We){Te.declarations.push(We);continue}}if(e.contains(Me,ne(Re.node))||e.isNewExpressionTarget(Re.node)){var Ne=F(Re);if(Ne)continue;var We=$(Re);if(We){Te.declarations.push(We);continue}var ce=C(Re);if(ce){Te.functionCalls.push(ce);continue}}if(Ae&&e.contains(Ke,ne(Re.node))){var Ne=F(Re);if(Ne)continue;var We=$(Re);if(We){Te.declarations.push(We);continue}var ve=K(Re);if(ve){le.accessExpressions.push(ve);continue}if(e.isClassDeclaration(b.parent)){var Ve=k(Re);if(Ve){le.typeUsages.push(Ve);continue}}}Te.valid=!1}return Te}function ne(J){var le=Se.getSymbolAtLocation(J);return le&&e.getSymbolTarget(le,Se)}}function E(b,G){var Y=e.getContainingObjectLiteralElement(b);if(Y){var pe=G.getContextualTypeForObjectLiteralElement(Y),A=pe==null?void 0:pe.getSymbol();if(A&&!(e.getCheckFlags(A)&6))return A}}function F(b){var G=b.node;if(e.isImportSpecifier(G.parent)||e.isImportClause(G.parent)||e.isImportEqualsDeclaration(G.parent)||e.isNamespaceImport(G.parent)||e.isExportSpecifier(G.parent)||e.isExportAssignment(G.parent))return G}function $(b){if(e.isDeclaration(b.node.parent))return b.node}function C(b){if(b.node.parent){var G=b.node,Y=G.parent;switch(Y.kind){case 207:case 208:var pe=e.tryCast(Y,e.isCallOrNewExpression);if(pe&&pe.expression===G)return pe;break;case 205:var A=e.tryCast(Y,e.isPropertyAccessExpression);if(A&&A.parent&&A.name===G){var _e=e.tryCast(A.parent,e.isCallOrNewExpression);if(_e&&_e.expression===A)return _e}break;case 206:var Se=e.tryCast(Y,e.isElementAccessExpression);if(Se&&Se.parent&&Se.argumentExpression===G){var ae=e.tryCast(Se.parent,e.isCallOrNewExpression);if(ae&&ae.expression===Se)return ae}break}}}function K(b){if(b.node.parent){var G=b.node,Y=G.parent;switch(Y.kind){case 205:var pe=e.tryCast(Y,e.isPropertyAccessExpression);if(pe&&pe.expression===G)return pe;break;case 206:var A=e.tryCast(Y,e.isElementAccessExpression);if(A&&A.expression===G)return A;break}}}function k(b){var G=b.node;if(e.getMeaningFromLocation(G)===2||e.isExpressionWithTypeArgumentsInClassExtendsClause(G.parent))return G}function X(b,G,Y){var pe=e.getTouchingToken(b,G),A=e.getContainingFunctionDeclaration(pe);if(!O(pe)&&A&&ie(A,Y)&&e.rangeContainsRange(A,pe)&&!(A.body&&e.rangeContainsRange(A.body,pe)))return A}function O(b){var G=e.findAncestor(b,e.isJSDocNode);if(G){var Y=e.findAncestor(G,function(pe){return!e.isJSDocNode(pe)});return!!Y&&e.isFunctionLikeDeclaration(Y)}return!1}function x(b){return e.isMethodSignature(b)&&(e.isInterfaceDeclaration(b.parent)||e.isTypeLiteralNode(b.parent))}function ie(b,G){var Y;if(!q(b.parameters,G))return!1;switch(b.kind){case 255:return re(b)&&Z(b,G);case 168:if(e.isObjectLiteralExpression(b.parent)){var pe=E(b.name,G);return((Y=pe==null?void 0:pe.declarations)===null||Y===void 0?void 0:Y.length)===1&&Z(b,G)}return Z(b,G);case 170:return e.isClassDeclaration(b.parent)?re(b.parent)&&Z(b,G):M(b.parent.parent)&&Z(b,G);case 212:case 213:return M(b.parent)}return!1}function Z(b,G){return!!b.body&&!G.isImplementationOfOverload(b)}function re(b){if(!b.name){var G=e.findModifier(b,88);return!!G}return!0}function q(b,G){return H(b)>=I&&e.every(b,function(Y){return P(Y,G)})}function P(b,G){if(e.isRestParameter(b)){var Y=G.getTypeAtLocation(b);if(!G.isArrayType(Y)&&!G.isTupleType(Y))return!1}return!b.modifiers&&!b.decorators&&e.isIdentifier(b.name)}function M(b){return e.isVariableDeclaration(b)&&e.isVarConst(b)&&e.isIdentifier(b.name)&&!b.type}function Q(b){return b.length>0&&e.isThis(b[0].name)}function H(b){return Q(b)?b.length-1:b.length}function w(b){return Q(b)&&(b=e.factory.createNodeArray(b.slice(1),b.hasTrailingComma)),b}function d(b,G){return e.isIdentifier(G)&&e.getTextOfIdentifierOrLiteral(G)===b?e.factory.createShorthandPropertyAssignment(b):e.factory.createPropertyAssignment(b,G)}function B(b,G){var Y=w(b.parameters),pe=e.isRestParameter(e.last(Y)),A=pe?G.slice(0,Y.length-1):G,_e=e.map(A,function(be,ne){var J=_(Y[ne]),le=d(J,be);return e.suppressLeadingAndTrailingTrivia(le.name),e.isPropertyAssignment(le)&&e.suppressLeadingAndTrailingTrivia(le.initializer),e.copyComments(be,le),le});if(pe&&G.length>=Y.length){var Se=G.slice(Y.length-1),ae=e.factory.createPropertyAssignment(_(e.last(Y)),e.factory.createArrayLiteralExpression(Se));_e.push(ae)}var D=e.factory.createObjectLiteralExpression(_e,!1);return D}function T(b,G,Y){var pe=G.getTypeChecker(),A=w(b.parameters),_e=e.map(A,le),Se=e.factory.createObjectBindingPattern(_e),ae=Te(A),D;e.every(A,Ae)&&(D=e.factory.createObjectLiteralExpression());var be=e.factory.createParameterDeclaration(void 0,void 0,void 0,Se,void 0,ae,D);if(Q(b.parameters)){var ne=b.parameters[0],J=e.factory.createParameterDeclaration(void 0,void 0,void 0,ne.name,void 0,ne.type);return e.suppressLeadingAndTrailingTrivia(J.name),e.copyComments(ne.name,J.name),ne.type&&(e.suppressLeadingAndTrailingTrivia(J.type),e.copyComments(ne.type,J.type)),e.factory.createNodeArray([J,be])}return e.factory.createNodeArray([be]);function le(Ge){var se=e.factory.createBindingElement(void 0,void 0,_(Ge),e.isRestParameter(Ge)&&Ae(Ge)?e.factory.createArrayLiteralExpression():Ge.initializer);return e.suppressLeadingAndTrailingTrivia(se),Ge.initializer&&se.initializer&&e.copyComments(Ge.initializer,se.initializer),se}function Te(Ge){var se=e.map(Ge,Me),xe=e.addEmitFlags(e.factory.createTypeLiteralNode(se),1);return xe}function Me(Ge){var se=Ge.type;!se&&(Ge.initializer||e.isRestParameter(Ge))&&(se=Ke(Ge));var xe=e.factory.createPropertySignature(void 0,_(Ge),Ae(Ge)?e.factory.createToken(57):Ge.questionToken,se);return e.suppressLeadingAndTrailingTrivia(xe),e.copyComments(Ge.name,xe.name),Ge.type&&xe.type&&e.copyComments(Ge.type,xe.type),xe}function Ke(Ge){var se=pe.getTypeAtLocation(Ge);return e.getTypeNodeIfAccessible(se,Ge,G,Y)}function Ae(Ge){if(e.isRestParameter(Ge)){var se=pe.getTypeAtLocation(Ge);return!pe.isTupleType(se)}return pe.isOptionalParameter(Ge)}}function _(b){return e.getTextOfIdentifierOrLiteral(b.name)}function h(b){switch(b.parent.kind){case 256:var G=b.parent;if(G.name)return[G.name];var Y=e.Debug.checkDefined(e.findModifier(G,88),"Nameless class declaration should be a default export");return[Y];case 225:var pe=b.parent,A=b.parent.parent,_e=pe.name;return _e?[_e,A.name]:[A.name]}}function R(b){switch(b.kind){case 255:if(b.name)return[b.name];var G=e.Debug.checkDefined(e.findModifier(b,88),"Nameless function declaration should be a default export");return[G];case 168:return[b.name];case 170:var Y=e.Debug.checkDefined(e.findChildOfKind(b,134,b.getSourceFile()),"Constructor declaration should have constructor keyword");if(b.parent.kind===225){var pe=b.parent.parent;return[pe.name,Y]}return[Y];case 213:return[b.parent.name];case 212:return b.name?[b.name,b.parent.name]:[b.parent.name];default:return e.Debug.assertNever(b,"Unexpected function declaration kind ".concat(b.kind))}}})(u=c.convertParamsToDestructuredObject||(c.convertParamsToDestructuredObject={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Convert to template string",I=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),V={name:p,description:I,kind:"refactor.rewrite.string"};c.registerRefactor(p,{kinds:[V.kind],getEditsForAction:y,getAvailableActions:L});function L(Z){var re=Z.file,q=Z.startPosition,P=m(re,q),M=E(P),Q={name:p,description:I,actions:[]};return e.isBinaryExpression(M)&&F(M).isValidConcatenation?(Q.actions.push(V),[Q]):Z.preferences.provideRefactorNotApplicableReason?(Q.actions.push(kn(kn({},V),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[Q]):e.emptyArray}function m(Z,re){var q=e.getTokenAtPosition(Z,re),P=E(q),M=!F(P).isValidConcatenation;return M&&e.isParenthesizedExpression(P.parent)&&e.isBinaryExpression(P.parent.parent)?P.parent.parent:q}function y(Z,re){var q=Z.file,P=Z.startPosition,M=m(q,P);switch(re){case I:return{edits:j(Z,M)};default:return e.Debug.fail("invalid action")}}function j(Z,re){var q=E(re),P=Z.file,M=O(F(q),P),Q=e.getTrailingCommentRanges(P.text,q.end);if(Q){var H=Q[Q.length-1],w={pos:Q[0].pos,end:H.end};return e.textChanges.ChangeTracker.with(Z,function(d){d.deleteRange(P,w),d.replaceNode(P,q,M)})}else return e.textChanges.ChangeTracker.with(Z,function(d){return d.replaceNode(P,q,M)})}function te(Z){return Z.operatorToken.kind!==63}function E(Z){var re=e.findAncestor(Z.parent,function(q){switch(q.kind){case 205:case 206:return!1;case 222:case 220:return!(e.isBinaryExpression(q.parent)&&te(q.parent));default:return"quit"}});return re||Z}function F(Z){var re=function(w){if(!e.isBinaryExpression(w))return{nodes:[w],operators:[],validOperators:!0,hasString:e.isStringLiteral(w)||e.isNoSubstitutionTemplateLiteral(w)};var d=re(w.left),B=d.nodes,T=d.operators,_=d.hasString,h=d.validOperators;if(!(_||e.isStringLiteral(w.right)||e.isTemplateExpression(w.right)))return{nodes:[w],operators:[],hasString:!1,validOperators:!0};var R=w.operatorToken.kind===39,b=h&&R;return B.push(w.right),T.push(w.operatorToken),{nodes:B,operators:T,hasString:!0,validOperators:b}},q=re(Z),P=q.nodes,M=q.operators,Q=q.validOperators,H=q.hasString;return{nodes:P,operators:M,isValidConcatenation:Q&&H}}var $=function(Z,re){return function(q,P){q<Z.length&&e.copyTrailingComments(Z[q],P,re,3,!1)}},C=function(Z,re,q){return function(P,M){for(;P.length>0;){var Q=P.shift();e.copyTrailingComments(Z[Q],M,re,3,!1),q(Q,M)}}};function K(Z){return Z.replace(/\\.|[$`]/g,function(re){return re[0]==="\\"?re:"\\"+re})}function k(Z){var re=e.isTemplateHead(Z)||e.isTemplateMiddle(Z)?-2:-1;return e.getTextOfNode(Z).slice(1,re)}function X(Z,re){for(var q=[],P="",M="";Z<re.length;){var Q=re[Z];if(e.isStringLiteralLike(Q))P+=Q.text,M+=K(e.getTextOfNode(Q).slice(1,-1)),q.push(Z),Z++;else if(e.isTemplateExpression(Q)){P+=Q.head.text,M+=k(Q.head);break}else break}return[Z,P,M,q]}function O(Z,re){var q=Z.nodes,P=Z.operators,M=$(P,re),Q=C(q,re,M),H=X(0,q),w=H[0],d=H[1],B=H[2],T=H[3];if(w===q.length){var _=e.factory.createNoSubstitutionTemplateLiteral(d,B);return Q(T,_),_}var h=[],R=e.factory.createTemplateHead(d,B);Q(T,R);for(var b=function(pe){var A=ie(q[pe]);M(pe,A);var _e=X(pe+1,q),Se=_e[0],ae=_e[1],D=_e[2],be=_e[3];pe=Se-1;var ne=pe===q.length-1;if(e.isTemplateExpression(A)){var J=e.map(A.templateSpans,function(Te,Me){x(Te);var Ke=Me===A.templateSpans.length-1,Ae=Te.literal.text+(Ke?ae:""),Ge=k(Te.literal)+(Ke?D:"");return e.factory.createTemplateSpan(Te.expression,ne?e.factory.createTemplateTail(Ae,Ge):e.factory.createTemplateMiddle(Ae,Ge))});h.push.apply(h,J)}else{var le=ne?e.factory.createTemplateTail(ae,D):e.factory.createTemplateMiddle(ae,D);Q(be,le),h.push(e.factory.createTemplateSpan(A,le))}G=pe},G,Y=w;Y<q.length;Y++)b(Y),Y=G;return e.factory.createTemplateExpression(R,h)}function x(Z){var re=Z.getSourceFile();e.copyTrailingComments(Z,Z.expression,re,3,!1),e.copyTrailingAsLeadingComments(Z.expression,Z.expression,re,3,!1)}function ie(Z){return e.isParenthesizedExpression(Z)&&(x(Z),Z=Z.expression),Z}})(u=c.convertStringOrTemplateLiteral||(c.convertStringOrTemplateLiteral={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Convert arrow function or function expression",I=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),V={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},L={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},m={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};c.registerRefactor(p,{kinds:[V.kind,L.kind,m.kind],getEditsForAction:j,getAvailableActions:y});function y(Z){var re=Z.file,q=Z.startPosition,P=Z.program,M=Z.kind,Q=E(re,q,P);if(!Q)return e.emptyArray;var H=Q.selectedVariableDeclaration,w=Q.func,d=[],B=[];if(c.refactorKindBeginsWith(L.kind,M)){var T=H||e.isArrowFunction(w)&&e.isVariableDeclaration(w.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function);T?B.push(kn(kn({},L),{notApplicableReason:T})):d.push(L)}if(c.refactorKindBeginsWith(V.kind,M)){var T=!H&&e.isArrowFunction(w)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function);T?B.push(kn(kn({},V),{notApplicableReason:T})):d.push(V)}if(c.refactorKindBeginsWith(m.kind,M)){var T=e.isFunctionExpression(w)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function);T?B.push(kn(kn({},m),{notApplicableReason:T})):d.push(m)}return[{name:p,description:I,actions:d.length===0&&Z.preferences.provideRefactorNotApplicableReason?B:d}]}function j(Z,re){var q=Z.file,P=Z.startPosition,M=Z.program,Q=E(q,P,M);if(!!Q){var H=Q.func,w=[];switch(re){case V.name:w.push.apply(w,k(Z,H));break;case L.name:var d=K(H);if(!d)return;w.push.apply(w,X(Z,H,d));break;case m.name:if(!e.isFunctionExpression(H))return;w.push.apply(w,O(Z,H));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:w}}}function te(Z){var re=!1;return Z.forEachChild(function q(P){if(e.isThis(P)){re=!0;return}!e.isClassLike(P)&&!e.isFunctionDeclaration(P)&&!e.isFunctionExpression(P)&&e.forEachChild(P,q)}),re}function E(Z,re,q){var P=e.getTokenAtPosition(Z,re),M=q.getTypeChecker(),Q=$(Z,M,P.parent);if(Q&&!te(Q.body)&&!M.containsArgumentsReference(Q))return{selectedVariableDeclaration:!0,func:Q};var H=e.getContainingFunction(P);if(H&&(e.isFunctionExpression(H)||e.isArrowFunction(H))&&!e.rangeContainsRange(H.body,P)&&!te(H.body)&&!M.containsArgumentsReference(H))return e.isFunctionExpression(H)&&ie(Z,M,H)?void 0:{selectedVariableDeclaration:!1,func:H}}function F(Z){return e.isVariableDeclaration(Z)||e.isVariableDeclarationList(Z)&&Z.declarations.length===1}function $(Z,re,q){if(!!F(q)){var P=e.isVariableDeclaration(q)?q:e.first(q.declarations),M=P.initializer;if(M&&(e.isArrowFunction(M)||e.isFunctionExpression(M)&&!ie(Z,re,M)))return M}}function C(Z){if(e.isExpression(Z)){var re=e.factory.createReturnStatement(Z),q=Z.getSourceFile();return e.suppressLeadingAndTrailingTrivia(re),e.copyTrailingAsLeadingComments(Z,re,q,void 0,!0),e.factory.createBlock([re],!0)}else return Z}function K(Z){var re=Z.parent;if(!(!e.isVariableDeclaration(re)||!e.isVariableDeclarationInVariableStatement(re))){var q=re.parent,P=q.parent;if(!(!e.isVariableDeclarationList(q)||!e.isVariableStatement(P)||!e.isIdentifier(re.name)))return{variableDeclaration:re,variableDeclarationList:q,statement:P,name:re.name}}}function k(Z,re){var q=Z.file,P=C(re.body),M=e.factory.createFunctionExpression(re.modifiers,re.asteriskToken,void 0,re.typeParameters,re.parameters,re.type,P);return e.textChanges.ChangeTracker.with(Z,function(Q){return Q.replaceNode(q,re,M)})}function X(Z,re,q){var P=Z.file,M=C(re.body),Q=q.variableDeclaration,H=q.variableDeclarationList,w=q.statement,d=q.name;e.suppressLeadingTrivia(w);var B=e.getCombinedModifierFlags(Q)&1|e.getEffectiveModifierFlags(re),T=e.factory.createModifiersFromModifierFlags(B),_=e.factory.createFunctionDeclaration(re.decorators,e.length(T)?T:void 0,re.asteriskToken,d,re.typeParameters,re.parameters,re.type,M);return H.declarations.length===1?e.textChanges.ChangeTracker.with(Z,function(h){return h.replaceNode(P,w,_)}):e.textChanges.ChangeTracker.with(Z,function(h){h.delete(P,Q),h.insertNodeAfter(P,w,_)})}function O(Z,re){var q=Z.file,P=re.body.statements,M=P[0],Q;x(re.body,M)?(Q=M.expression,e.suppressLeadingAndTrailingTrivia(Q),e.copyComments(M,Q)):Q=re.body;var H=e.factory.createArrowFunction(re.modifiers,re.typeParameters,re.parameters,re.type,e.factory.createToken(38),Q);return e.textChanges.ChangeTracker.with(Z,function(w){return w.replaceNode(q,re,H)})}function x(Z,re){return Z.statements.length===1&&e.isReturnStatement(re)&&!!re.expression}function ie(Z,re,q){return!!q.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(q.name,re,Z)}})(u=c.convertArrowFunctionOrFunctionExpression||(c.convertArrowFunctionOrFunctionExpression={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){var n;(function(c){var u;(function(g){var p="Infer function return type",I=e.Diagnostics.Infer_function_return_type.message,V={name:p,description:I,kind:"refactor.rewrite.function.returnType"};c.registerRefactor(p,{kinds:[V.kind],getEditsForAction:L,getAvailableActions:m});function L(F){var $=j(F);if($&&!c.isRefactorErrorInfo($)){var C=e.textChanges.ChangeTracker.with(F,function(K){return y(F.file,K,$.declaration,$.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:C}}}function m(F){var $=j(F);return $?c.isRefactorErrorInfo($)?F.preferences.provideRefactorNotApplicableReason?[{name:p,description:I,actions:[kn(kn({},V),{notApplicableReason:$.error})]}]:e.emptyArray:[{name:p,description:I,actions:[V]}]:e.emptyArray}function y(F,$,C,K){var k=e.findChildOfKind(C,21,F),X=e.isArrowFunction(C)&&k===void 0,O=X?e.first(C.parameters):k;O&&(X&&($.insertNodeBefore(F,O,e.factory.createToken(20)),$.insertNodeAfter(F,O,e.factory.createToken(21))),$.insertNodeAt(F,O.end,K,{prefix:": "}))}function j(F){if(!(e.isInJSFile(F.file)||!c.refactorKindBeginsWith(V.kind,F.kind))){var $=e.getTokenAtPosition(F.file,F.startPosition),C=e.findAncestor($,function(O){return e.isBlock(O)||O.parent&&e.isArrowFunction(O.parent)&&(O.kind===38||O.parent.body===O)?"quit":te(O)});if(!C||!C.body||C.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var K=F.program.getTypeChecker(),k=E(K,C);if(!k)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var X=K.typeToTypeNode(k,C,1);if(X)return{declaration:C,returnTypeNode:X}}}function te(F){switch(F.kind){case 255:case 212:case 213:case 168:return!0;default:return!1}}function E(F,$){if(F.isImplementationOfOverload($)){var C=F.getTypeAtLocation($).getCallSignatures();if(C.length>1)return F.getUnionType(e.mapDefined(C,function(k){return k.getReturnType()}))}var K=F.getSignatureFromDeclaration($);if(K)return F.getReturnTypeOfSignature(K)}})(u=c.inferFunctionReturnType||(c.inferFunctionReturnType={}))})(n=e.refactor||(e.refactor={}))})(mr||(mr={}));var mr;(function(e){e.servicesVersion="0.8";function n(D,be,ne,J){var le=e.isNodeKind(D)?new c(D,be,ne):D===79?new m(79,be,ne):D===80?new y(80,be,ne):new L(D,be,ne);return le.parent=J,le.flags=J.flags&25358336,le}var c=function(){function D(be,ne,J){this.pos=ne,this.end=J,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=be}return D.prototype.assertHasRealPosition=function(be){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),be||"Node must have a real position for this operation")},D.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},D.prototype.getStart=function(be,ne){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,be,ne)},D.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},D.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},D.prototype.getWidth=function(be){return this.assertHasRealPosition(),this.getEnd()-this.getStart(be)},D.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},D.prototype.getLeadingTriviaWidth=function(be){return this.assertHasRealPosition(),this.getStart(be)-this.pos},D.prototype.getFullText=function(be){return this.assertHasRealPosition(),(be||this.getSourceFile()).text.substring(this.pos,this.end)},D.prototype.getText=function(be){return this.assertHasRealPosition(),be||(be=this.getSourceFile()),be.text.substring(this.getStart(be),this.getEnd())},D.prototype.getChildCount=function(be){return this.getChildren(be).length},D.prototype.getChildAt=function(be,ne){return this.getChildren(ne)[be]},D.prototype.getChildren=function(be){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=u(this,be))},D.prototype.getFirstToken=function(be){this.assertHasRealPosition();var ne=this.getChildren(be);if(!!ne.length){var J=e.find(ne,function(le){return le.kind<307||le.kind>345});return J.kind<160?J:J.getFirstToken(be)}},D.prototype.getLastToken=function(be){this.assertHasRealPosition();var ne=this.getChildren(be),J=e.lastOrUndefined(ne);if(!!J)return J.kind<160?J:J.getLastToken(be)},D.prototype.forEachChild=function(be,ne){return e.forEachChild(this,be,ne)},D}();function u(D,be){if(!e.isNodeKind(D.kind))return e.emptyArray;var ne=[];if(e.isJSDocCommentContainingNode(D))return D.forEachChild(function(Me){ne.push(Me)}),ne;e.scanner.setText((be||D.getSourceFile()).text);var J=D.pos,le=function(Me){g(ne,J,Me.pos,D),ne.push(Me),J=Me.end},Te=function(Me){g(ne,J,Me.pos,D),ne.push(p(Me,D)),J=Me.end};return e.forEach(D.jsDoc,le),J=D.pos,D.forEachChild(le,Te),g(ne,J,D.end,D),e.scanner.setText(void 0),ne}function g(D,be,ne,J){for(e.scanner.setTextPos(be);be<ne;){var le=e.scanner.scan(),Te=e.scanner.getTextPos();if(Te<=ne&&(le===79&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(J.kind)," to have an Identifier in its trivia")),D.push(n(le,be,Te,J))),be=Te,le===1)break}}function p(D,be){var ne=n(346,D.pos,D.end,be);ne._children=[];for(var J=D.pos,le=0,Te=D;le<Te.length;le++){var Me=Te[le];g(ne._children,J,Me.pos,be),ne._children.push(Me),J=Me.end}return g(ne._children,J,D.end,be),ne}var I=function(){function D(be,ne){this.pos=be,this.end=ne,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return D.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},D.prototype.getStart=function(be,ne){return e.getTokenPosOfNode(this,be,ne)},D.prototype.getFullStart=function(){return this.pos},D.prototype.getEnd=function(){return this.end},D.prototype.getWidth=function(be){return this.getEnd()-this.getStart(be)},D.prototype.getFullWidth=function(){return this.end-this.pos},D.prototype.getLeadingTriviaWidth=function(be){return this.getStart(be)-this.pos},D.prototype.getFullText=function(be){return(be||this.getSourceFile()).text.substring(this.pos,this.end)},D.prototype.getText=function(be){return be||(be=this.getSourceFile()),be.text.substring(this.getStart(be),this.getEnd())},D.prototype.getChildCount=function(){return this.getChildren().length},D.prototype.getChildAt=function(be){return this.getChildren()[be]},D.prototype.getChildren=function(){return this.kind===1&&this.jsDoc||e.emptyArray},D.prototype.getFirstToken=function(){},D.prototype.getLastToken=function(){},D.prototype.forEachChild=function(){},D}(),V=function(){function D(be,ne){this.flags=be,this.escapedName=ne}return D.prototype.getFlags=function(){return this.flags},Object.defineProperty(D.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!1,configurable:!0}),D.prototype.getEscapedName=function(){return this.escapedName},D.prototype.getName=function(){return this.name},D.prototype.getDeclarations=function(){return this.declarations},D.prototype.getDocumentationComment=function(be){if(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var ne=this.target.tupleLabelDeclaration;this.documentationComment=$([ne],be)}else this.documentationComment=$(this.declarations,be);return this.documentationComment},D.prototype.getContextualDocumentationComment=function(be,ne){switch(be==null?void 0:be.kind){case 171:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=e.emptyArray,this.contextualGetAccessorDocumentationComment=$(e.filter(this.declarations,e.isGetAccessor),ne)),this.contextualGetAccessorDocumentationComment;case 172:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=e.emptyArray,this.contextualSetAccessorDocumentationComment=$(e.filter(this.declarations,e.isSetAccessor),ne)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(ne)}},D.prototype.getJsDocTags=function(be){return this.tags===void 0&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations,be)),this.tags},D}(),L=function(D){zm(be,D);function be(ne,J,le){var Te=D.call(this,J,le)||this;return Te.kind=ne,Te}return be}(I),m=function(D){zm(be,D);function be(ne,J,le){var Te=D.call(this,J,le)||this;return Te.kind=79,Te}return Object.defineProperty(be.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),be}(I);m.prototype.kind=79;var y=function(D){zm(be,D);function be(ne,J,le){return D.call(this,J,le)||this}return Object.defineProperty(be.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),be}(I);y.prototype.kind=80;var j=function(){function D(be,ne){this.checker=be,this.flags=ne}return D.prototype.getFlags=function(){return this.flags},D.prototype.getSymbol=function(){return this.symbol},D.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},D.prototype.getProperty=function(be){return this.checker.getPropertyOfType(this,be)},D.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},D.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},D.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},D.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},D.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},D.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},D.prototype.isNullableType=function(){return this.checker.isNullableType(this)},D.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},D.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},D.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},D.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},D.prototype.isUnion=function(){return!!(this.flags&1048576)},D.prototype.isIntersection=function(){return!!(this.flags&2097152)},D.prototype.isUnionOrIntersection=function(){return!!(this.flags&3145728)},D.prototype.isLiteral=function(){return!!(this.flags&384)},D.prototype.isStringLiteral=function(){return!!(this.flags&128)},D.prototype.isNumberLiteral=function(){return!!(this.flags&256)},D.prototype.isTypeParameter=function(){return!!(this.flags&262144)},D.prototype.isClassOrInterface=function(){return!!(e.getObjectFlags(this)&3)},D.prototype.isClass=function(){return!!(e.getObjectFlags(this)&1)},Object.defineProperty(D.prototype,"typeArguments",{get:function(){if(e.getObjectFlags(this)&4)return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),D}(),te=function(){function D(be,ne){this.checker=be,this.flags=ne}return D.prototype.getDeclaration=function(){return this.declaration},D.prototype.getTypeParameters=function(){return this.typeParameters},D.prototype.getParameters=function(){return this.parameters},D.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},D.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=$(e.singleElementArray(this.declaration),this.checker))},D.prototype.getJsDocTags=function(){return this.jsDocTags===void 0&&(this.jsDocTags=this.declaration?F(this.declaration,this.checker):[]),this.jsDocTags},D}();function E(D){return e.getJSDocTags(D).some(function(be){return be.tagName.text==="inheritDoc"})}function F(D,be){var ne=e.JsDoc.getJsDocTagsFromDeclarations([D],be);if(ne.length===0||E(D)){var J=C(be,D,function(le){var Te;return((Te=le.declarations)===null||Te===void 0?void 0:Te.length)===1?le.getJsDocTags():void 0});J&&(ne=Bt(Bt([],J,!0),ne,!0))}return ne}function $(D,be){if(!D)return e.emptyArray;var ne=e.JsDoc.getJsDocCommentsFromDeclarations(D,be);if(be&&(ne.length===0||D.some(E)))for(var J=new e.Set,le=0,Te=D;le<Te.length;le++){var Me=Te[le],Ke=C(be,Me,function(Ae){if(!J.has(Ae))return J.add(Ae),Ae.getDocumentationComment(be)});Ke&&(ne=ne.length===0?Ke.slice():Ke.concat(e.lineBreakPart(),ne))}return ne}function C(D,be,ne){var J,le=((J=be.parent)===null||J===void 0?void 0:J.kind)===170?be.parent.parent:be.parent;if(!!le)return e.firstDefined(e.getAllSuperTypeNodes(le),function(Te){var Me=D.getPropertyOfType(D.getTypeAtLocation(Te),be.symbol.name);return Me?ne(Me):void 0})}var K=function(D){zm(be,D);function be(ne,J,le){var Te=D.call(this,ne,J,le)||this;return Te.kind=303,Te}return be.prototype.update=function(ne,J){return e.updateSourceFile(this,ne,J)},be.prototype.getLineAndCharacterOfPosition=function(ne){return e.getLineAndCharacterOfPosition(this,ne)},be.prototype.getLineStarts=function(){return e.getLineStarts(this)},be.prototype.getPositionOfLineAndCharacter=function(ne,J,le){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),ne,J,this.text,le)},be.prototype.getLineEndOfPosition=function(ne){var J=this.getLineAndCharacterOfPosition(ne).line,le=this.getLineStarts(),Te;J+1>=le.length&&(Te=this.getEnd()),Te||(Te=le[J+1]-1);var Me=this.getFullText();return Me[Te]===`
`&&Me[Te-1]==="\r"?Te-1:Te},be.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},be.prototype.computeNamedDeclarations=function(){var ne=e.createMultiMap();return this.forEachChild(Me),ne;function J(Ke){var Ae=Te(Ke);Ae&&ne.add(Ae,Ke)}function le(Ke){var Ae=ne.get(Ke);return Ae||ne.set(Ke,Ae=[]),Ae}function Te(Ke){var Ae=e.getNonAssignedNameOfDeclaration(Ke);return Ae&&(e.isComputedPropertyName(Ae)&&e.isPropertyAccessExpression(Ae.expression)?Ae.expression.name.text:e.isPropertyName(Ae)?e.getNameFromPropertyName(Ae):void 0)}function Me(Ke){switch(Ke.kind){case 255:case 212:case 168:case 167:var Ae=Ke,Ge=Te(Ae);if(Ge){var se=le(Ge),xe=e.lastOrUndefined(se);xe&&Ae.parent===xe.parent&&Ae.symbol===xe.symbol?Ae.body&&!xe.body&&(se[se.length-1]=Ae):se.push(Ae)}e.forEachChild(Ke,Me);break;case 256:case 225:case 257:case 258:case 259:case 260:case 264:case 274:case 269:case 266:case 267:case 171:case 172:case 181:J(Ke),e.forEachChild(Ke,Me);break;case 163:if(!e.hasSyntacticModifier(Ke,16476))break;case 253:case 202:{var Re=Ke;if(e.isBindingPattern(Re.name)){e.forEachChild(Re.name,Me);break}Re.initializer&&Me(Re.initializer)}case 297:case 166:case 165:J(Ke);break;case 271:var ce=Ke;ce.exportClause&&(e.isNamedExports(ce.exportClause)?e.forEach(ce.exportClause.elements,Me):Me(ce.exportClause.name));break;case 265:var Ue=Ke.importClause;Ue&&(Ue.name&&J(Ue.name),Ue.namedBindings&&(Ue.namedBindings.kind===267?J(Ue.namedBindings):e.forEach(Ue.namedBindings.elements,Me)));break;case 220:e.getAssignmentDeclarationKind(Ke)!==0&&J(Ke);default:e.forEachChild(Ke,Me)}}},be}(c),k=function(){function D(be,ne,J){this.fileName=be,this.text=ne,this.skipTrivia=J}return D.prototype.getLineAndCharacterOfPosition=function(be){return e.getLineAndCharacterOfPosition(this,be)},D}();function X(){return{getNodeConstructor:function(){return c},getTokenConstructor:function(){return L},getIdentifierConstructor:function(){return m},getPrivateIdentifierConstructor:function(){return y},getSourceFileConstructor:function(){return K},getSymbolConstructor:function(){return V},getTypeConstructor:function(){return j},getSignatureConstructor:function(){return te},getSourceMapSourceConstructor:function(){return k}}}function O(D){var be=!0;for(var ne in D)if(e.hasProperty(D,ne)&&!x(ne)){be=!1;break}if(be)return D;var J={};for(var ne in D)if(e.hasProperty(D,ne)){var le=x(ne)?ne:ne.charAt(0).toLowerCase()+ne.substr(1);J[le]=D[ne]}return J}e.toEditorSettings=O;function x(D){return!D.length||D.charAt(0)===D.charAt(0).toLowerCase()}function ie(D){return D?e.map(D,function(be){return be.text}).join(""):""}e.displayPartsToString=ie;function Z(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=Z;function re(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=re;var q=function(){function D(be,ne){this.host=be,this.currentDirectory=be.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var J=be.getScriptFileNames(),le=0,Te=J;le<Te.length;le++){var Me=Te[le];this.createEntry(Me,e.toPath(Me,this.currentDirectory,ne))}}return D.prototype.createEntry=function(be,ne){var J,le=this.host.getScriptSnapshot(be);return le?J={hostFileName:be,version:this.host.getScriptVersion(be),scriptSnapshot:le,scriptKind:e.getScriptKind(be,this.host)}:J=be,this.fileNameToEntry.set(ne,J),J},D.prototype.getEntryByPath=function(be){return this.fileNameToEntry.get(be)},D.prototype.getHostFileInformation=function(be){var ne=this.fileNameToEntry.get(be);return e.isString(ne)?void 0:ne},D.prototype.getOrCreateEntryByPath=function(be,ne){var J=this.getEntryByPath(ne)||this.createEntry(be,ne);return e.isString(J)?void 0:J},D.prototype.getRootFileNames=function(){var be=[];return this.fileNameToEntry.forEach(function(ne){e.isString(ne)?be.push(ne):be.push(ne.hostFileName)}),be},D.prototype.getScriptSnapshot=function(be){var ne=this.getHostFileInformation(be);return ne&&ne.scriptSnapshot},D}(),P=function(){function D(be){this.host=be}return D.prototype.getCurrentSourceFile=function(be){var ne=this.host.getScriptSnapshot(be);if(!ne)throw new Error("Could not find file: '"+be+"'.");var J=e.getScriptKind(be,this.host),le=this.host.getScriptVersion(be),Te;if(this.currentFileName!==be)Te=Q(be,ne,99,le,!0,J);else if(this.currentFileVersion!==le){var Me=ne.getChangeRange(this.currentFileScriptSnapshot);Te=H(this.currentSourceFile,ne,le,Me)}return Te&&(this.currentFileVersion=le,this.currentFileName=be,this.currentFileScriptSnapshot=ne,this.currentSourceFile=Te),this.currentSourceFile},D}();function M(D,be,ne){D.version=ne,D.scriptSnapshot=be}function Q(D,be,ne,J,le,Te){var Me=e.createSourceFile(D,e.getSnapshotText(be),ne,le,Te);return M(Me,be,J),Me}e.createLanguageServiceSourceFile=Q;function H(D,be,ne,J,le){if(J&&ne!==D.version){var Te=void 0,Me=J.span.start!==0?D.text.substr(0,J.span.start):"",Ke=e.textSpanEnd(J.span)!==D.text.length?D.text.substr(e.textSpanEnd(J.span)):"";if(J.newLength===0)Te=Me&&Ke?Me+Ke:Me||Ke;else{var Ae=be.getText(J.span.start,J.span.start+J.newLength);Te=Me&&Ke?Me+Ae+Ke:Me?Me+Ae:Ae+Ke}var Ge=e.updateSourceFile(D,Te,J,le);return M(Ge,be,ne),Ge.nameTable=void 0,D!==Ge&&D.scriptSnapshot&&(D.scriptSnapshot.dispose&&D.scriptSnapshot.dispose(),D.scriptSnapshot=void 0),Ge}return Q(D.fileName,be,D.languageVersion,ne,!0,D.scriptKind)}e.updateLanguageServiceSourceFile=H;var w={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},d=function(){function D(be){this.cancellationToken=be}return D.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},D.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},D}(),B=function(){function D(be,ne){ne===void 0&&(ne=20),this.hostCancellationToken=be,this.throttleWaitMilliseconds=ne,this.lastCancellationCheckTime=0}return D.prototype.isCancellationRequested=function(){var be=e.timestamp(),ne=Math.abs(be-this.lastCancellationCheckTime);return ne>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=be,this.hostCancellationToken.isCancellationRequested()):!1},D.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},D}();e.ThrottledCancellationToken=B;var T=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],_=Bt(Bt([],T,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function h(D,be,ne){var J;be===void 0&&(be=e.createDocumentRegistry(D.useCaseSensitiveFileNames&&D.useCaseSensitiveFileNames(),D.getCurrentDirectory()));var le;ne===void 0?le=e.LanguageServiceMode.Semantic:typeof ne=="boolean"?le=ne?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:le=ne;var Te=new P(D),Me,Ke,Ae=0,Ge=D.getCancellationToken?new d(D.getCancellationToken()):w,se=D.getCurrentDirectory();!e.localizedDiagnosticMessages&&D.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(D.getLocalizedDiagnosticMessages());function xe(ft){D.log&&D.log(ft)}var Re=e.hostUsesCaseSensitiveFileNames(D),ce=e.createGetCanonicalFileName(Re),Ue=e.getSourceMapper({useCaseSensitiveFileNames:function(){return Re},getCurrentDirectory:function(){return se},getProgram:ve,fileExists:e.maybeBind(D,D.fileExists),readFile:e.maybeBind(D,D.readFile),getDocumentPositionMapper:e.maybeBind(D,D.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(D,D.getSourceFileLike),log:xe});function We(ft){var Ct=Me.getSourceFile(ft);if(!Ct){var Pt=new Error("Could not find source file: '".concat(ft,"'."));throw Pt.ProgramFiles=Me.getSourceFiles().map(function(Et){return Et.fileName}),Pt}return Ct}function Ne(){var ft,Ct,Pt;if(e.Debug.assert(le!==e.LanguageServiceMode.Syntactic),D.getProjectVersion){var Et=D.getProjectVersion();if(Et){if(Ke===Et&&!(!((ft=D.hasChangedAutomaticTypeDirectiveNames)===null||ft===void 0)&&ft.call(D)))return;Ke=Et}}var et=D.getTypeRootsVersion?D.getTypeRootsVersion():0;Ae!==et&&(xe("TypeRoots version has changed; provide new program"),Me=void 0,Ae=et);var hn=new q(D,ce),Qn=hn.getRootFileNames(),Ra=D.getCompilationSettings()||Z(),Ki=D.hasInvalidatedResolution||e.returnFalse,di=e.maybeBind(D,D.hasChangedAutomaticTypeDirectiveNames),ya=(Ct=D.getProjectReferences)===null||Ct===void 0?void 0:Ct.call(D),$a,ao={useCaseSensitiveFileNames:Re,fileExists:Eo,readFile:lo,readDirectory:So,trace:e.maybeBind(D,D.trace),getCurrentDirectory:function(){return se},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(Me,Qn,Ra,function(Pa,Ti){return D.getScriptVersion(Ti)},Eo,Ki,di,Wo,ya))return;var ei={getSourceFile:ja,getSourceFileByPath:Do,getCancellationToken:function(){return Ge},getCanonicalFileName:ce,useCaseSensitiveFileNames:function(){return Re},getNewLine:function(){return e.getNewLineCharacter(Ra,function(){return e.getNewLineOrDefaultFromHost(D)})},getDefaultLibFileName:function(Pa){return D.getDefaultLibFileName(Pa)},writeFile:e.noop,getCurrentDirectory:function(){return se},fileExists:Eo,readFile:lo,getSymlinkCache:e.maybeBind(D,D.getSymlinkCache),realpath:e.maybeBind(D,D.realpath),directoryExists:function(Pa){return e.directoryProbablyExists(Pa,D)},getDirectories:function(Pa){return D.getDirectories?D.getDirectories(Pa):[]},readDirectory:So,onReleaseOldSourceFile:ts,onReleaseParsedCommandLine:Ni,hasInvalidatedResolution:Ki,hasChangedAutomaticTypeDirectiveNames:di,trace:ao.trace,resolveModuleNames:e.maybeBind(D,D.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(D,D.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(D,D.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Wo};(Pt=D.setCompilerHost)===null||Pt===void 0||Pt.call(D,ei);var Fi=be.getKeyForCompilationSettings(Ra),eo={rootNames:Qn,options:Ra,host:ei,oldProgram:Me,projectReferences:ya};Me=e.createProgram(eo),hn=void 0,$a=void 0,Ue.clearCache(),Me.getTypeChecker();return;function Wo(Pa){var Ti=e.toPath(Pa,se,ce),mo=$a==null?void 0:$a.get(Ti);if(mo!==void 0)return mo||void 0;var No=D.getParsedCommandLine?D.getParsedCommandLine(Pa):Yi(Pa);return($a||($a=new e.Map)).set(Ti,No||!1),No}function Yi(Pa){var Ti=ja(Pa,100);if(!!Ti)return Ti.path=e.toPath(Pa,se,ce),Ti.resolvedPath=Ti.path,Ti.originalFileName=Ti.fileName,e.parseJsonSourceFileConfigFileContent(Ti,ao,e.getNormalizedAbsolutePath(e.getDirectoryPath(Pa),se),void 0,e.getNormalizedAbsolutePath(Pa,se))}function Ni(Pa,Ti,mo){var No;D.getParsedCommandLine?(No=D.onReleaseParsedCommandLine)===null||No===void 0||No.call(D,Pa,Ti,mo):Ti&&ts(Ti.sourceFile,mo)}function Eo(Pa){var Ti=e.toPath(Pa,se,ce),mo=hn&&hn.getEntryByPath(Ti);return mo?!e.isString(mo):!!D.fileExists&&D.fileExists(Pa)}function lo(Pa){var Ti=e.toPath(Pa,se,ce),mo=hn&&hn.getEntryByPath(Ti);return mo?e.isString(mo)?void 0:e.getSnapshotText(mo.scriptSnapshot):D.readFile&&D.readFile(Pa)}function So(Pa,Ti,mo,No,ko){return e.Debug.checkDefined(D.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),D.readDirectory(Pa,Ti,mo,No,ko)}function ts(Pa,Ti){var mo=be.getKeyForCompilationSettings(Ti);be.releaseDocumentWithKey(Pa.resolvedPath,mo,Pa.scriptKind)}function ja(Pa,Ti,mo,No){return Do(Pa,e.toPath(Pa,se,ce),Ti,mo,No)}function Do(Pa,Ti,mo,No,ko){e.Debug.assert(hn!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var Oo=hn&&hn.getOrCreateEntryByPath(Pa,Ti);if(!!Oo){if(!ko){var Po=Me&&Me.getSourceFileByPath(Ti);if(Po){if(Oo.scriptKind===Po.scriptKind)return be.updateDocumentWithKey(Pa,Ti,Ra,Fi,Oo.scriptSnapshot,Oo.version,Oo.scriptKind);be.releaseDocumentWithKey(Po.resolvedPath,be.getKeyForCompilationSettings(Me.getCompilerOptions()),Po.scriptKind)}}return be.acquireDocumentWithKey(Pa,Ti,Ra,Fi,Oo.scriptSnapshot,Oo.version,Oo.scriptKind)}}}function ve(){if(le===e.LanguageServiceMode.Syntactic){e.Debug.assert(Me===void 0);return}return Ne(),Me}function Ve(){var ft;return(ft=D.getPackageJsonAutoImportProvider)===null||ft===void 0?void 0:ft.call(D)}function gr(){Me=void 0}function Er(){if(Me){var ft=be.getKeyForCompilationSettings(Me.getCompilerOptions());e.forEach(Me.getSourceFiles(),function(Ct){return be.releaseDocumentWithKey(Ct.resolvedPath,ft,Ct.scriptKind)}),Me=void 0}D=void 0}function Nr(ft){return Ne(),Me.getSyntacticDiagnostics(We(ft),Ge).slice()}function ur(ft){Ne();var Ct=We(ft),Pt=Me.getSemanticDiagnostics(Ct,Ge);if(!e.getEmitDeclarations(Me.getCompilerOptions()))return Pt.slice();var Et=Me.getDeclarationDiagnostics(Ct,Ge);return Bt(Bt([],Pt,!0),Et,!0)}function xr(ft){return Ne(),e.computeSuggestionDiagnostics(We(ft),Me,Ge)}function sr(){return Ne(),Bt(Bt([],Me.getOptionsDiagnostics(Ge),!0),Me.getGlobalDiagnostics(Ge),!0)}function i(ft,Ct,Pt){Pt===void 0&&(Pt=e.emptyOptions);var Et=kn(kn({},e.identity(Pt)),{includeCompletionsForModuleExports:Pt.includeCompletionsForModuleExports||Pt.includeExternalModuleExports,includeCompletionsWithInsertText:Pt.includeCompletionsWithInsertText||Pt.includeInsertTextCompletions});return Ne(),e.Completions.getCompletionsAtPosition(D,Me,xe,We(ft),Ct,Et,Pt.triggerCharacter,Pt.triggerKind,Ge)}function Mr(ft,Ct,Pt,Et,et,hn,Qn){return hn===void 0&&(hn=e.emptyOptions),Ne(),e.Completions.getCompletionEntryDetails(Me,xe,We(ft),Ct,{name:Pt,source:et,data:Qn},D,Et&&e.formatting.getFormatContext(Et,D),hn,Ge)}function fr(ft,Ct,Pt,Et,et){return et===void 0&&(et=e.emptyOptions),Ne(),e.Completions.getCompletionEntrySymbol(Me,xe,We(ft),Ct,{name:Pt,source:Et},D,et)}function Ar(ft,Ct){Ne();var Pt=We(ft),Et=e.getTouchingPropertyName(Pt,Ct);if(Et!==Pt){var et=Me.getTypeChecker(),hn=de(Et),Qn=A(hn,et);if(!Qn||et.isUnknownSymbol(Qn)){var Ra=we(Pt,hn,Ct)?et.getTypeAtLocation(hn):void 0;return Ra&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(hn,Pt),displayParts:et.runWithCancellationToken(Ge,function(ei){return e.typeToDisplayParts(ei,Ra,e.getContainerNode(hn))}),documentation:Ra.symbol?Ra.symbol.getDocumentationComment(et):void 0,tags:Ra.symbol?Ra.symbol.getJsDocTags(et):void 0}}var Ki=et.runWithCancellationToken(Ge,function(ei){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(ei,Qn,Pt,e.getContainerNode(hn),hn)}),di=Ki.symbolKind,ya=Ki.displayParts,$a=Ki.documentation,ao=Ki.tags;return{kind:di,kindModifiers:e.SymbolDisplay.getSymbolModifiers(et,Qn),textSpan:e.createTextSpanFromNode(hn,Pt),displayParts:ya,documentation:$a,tags:ao}}}function de(ft){return e.isNewExpression(ft.parent)&&ft.pos===ft.parent.pos?ft.parent.expression:e.isNamedTupleMember(ft.parent)&&ft.pos===ft.parent.pos?ft.parent:ft}function we(ft,Ct,Pt){switch(Ct.kind){case 79:return!e.isLabelName(Ct)&&!e.isTagName(Ct)&&!e.isConstTypeReference(Ct.parent);case 205:case 160:return!e.isInComment(ft,Pt);case 108:case 191:case 106:case 196:return!0;default:return!1}}function qe(ft,Ct){return Ne(),e.GoToDefinition.getDefinitionAtPosition(Me,We(ft),Ct)}function Cr(ft,Ct){return Ne(),e.GoToDefinition.getDefinitionAndBoundSpan(Me,We(ft),Ct)}function kr(ft,Ct){return Ne(),e.GoToDefinition.getTypeDefinitionAtPosition(Me.getTypeChecker(),We(ft),Ct)}function He(ft,Ct){return Ne(),e.FindAllReferences.getImplementationsAtPosition(Me,Ge,Me.getSourceFiles(),We(ft),Ct)}function lr(ft,Ct){return e.flatMap(Hr(ft,Ct,[ft]),function(Pt){return Pt.highlightSpans.map(function(Et){return kn(kn({fileName:Pt.fileName,textSpan:Et.textSpan,isWriteAccess:Et.kind==="writtenReference",isDefinition:!1},Et.isInString&&{isInString:!0}),Et.contextSpan&&{contextSpan:Et.contextSpan})})})}function Hr(ft,Ct,Pt){var Et=e.normalizePath(ft);e.Debug.assert(Pt.some(function(Qn){return e.normalizePath(Qn)===Et})),Ne();var et=e.mapDefined(Pt,function(Qn){return Me.getSourceFile(Qn)}),hn=We(ft);return e.DocumentHighlights.getDocumentHighlights(Me,Ge,hn,Ct,et)}function Je(ft,Ct,Pt,Et,et){Ne();var hn=We(ft),Qn=e.getAdjustedRenameLocation(e.getTouchingPropertyName(hn,Ct));if(!!e.Rename.nodeIsEligibleForRename(Qn))if(e.isIdentifier(Qn)&&(e.isJsxOpeningElement(Qn.parent)||e.isJsxClosingElement(Qn.parent))&&e.isIntrinsicJsxName(Qn.escapedText)){var Ra=Qn.parent.parent,Ki=Ra.openingElement,di=Ra.closingElement;return[Ki,di].map(function(ya){var $a=e.createTextSpanFromNode(ya.tagName,hn);return kn({fileName:hn.fileName,textSpan:$a},e.FindAllReferences.toContextSpan($a,hn,ya.parent))})}else return Yr(Qn,Ct,{findInStrings:Pt,findInComments:Et,providePrefixAndSuffixTextForRename:et,use:2},function(ya,$a,ao){return e.FindAllReferences.toRenameLocation(ya,$a,ao,et||!1)})}function Sr(ft,Ct){return Ne(),Yr(e.getTouchingPropertyName(We(ft),Ct),Ct,{use:1},function(Pt,Et,et){return e.FindAllReferences.toReferenceEntry(Pt,et.getSymbolAtLocation(Et))})}function Yr(ft,Ct,Pt,Et){Ne();var et=Pt&&Pt.use===2?Me.getSourceFiles().filter(function(hn){return!Me.isSourceFileDefaultLibrary(hn)}):Me.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(Me,Ge,et,ft,Ct,Pt,Et)}function ot(ft,Ct){return Ne(),e.FindAllReferences.findReferencedSymbols(Me,Ge,Me.getSourceFiles(),We(ft),Ct)}function _t(ft){var Ct;Ne();var Pt=(Ct=Me.getSourceFile(ft))===null||Ct===void 0?void 0:Ct.symbol;return e.FindAllReferences.Core.getReferencesForFileName(ft,Me,Me.getSourceFiles()).map(function(Et){return e.FindAllReferences.toReferenceEntry(Et,Pt)})}function kt(ft,Ct,Pt,Et){Et===void 0&&(Et=!1),Ne();var et=Pt?[We(Pt)]:Me.getSourceFiles();return e.NavigateTo.getNavigateToItems(et,Me.getTypeChecker(),Ge,ft,Ct,Et)}function Yt(ft,Ct,Pt){Ne();var Et=We(ft),et=D.getCustomTransformers&&D.getCustomTransformers();return e.getFileEmitOutput(Me,Et,!!Ct,Ge,et,Pt)}function vn(ft,Ct,Pt){var Et=Pt===void 0?e.emptyOptions:Pt,et=Et.triggerReason;Ne();var hn=We(ft);return e.SignatureHelp.getSignatureHelpItems(Me,hn,Ct,et,Ge)}function Mn(ft){return Te.getCurrentSourceFile(ft)}function qn(ft,Ct,Pt){var Et=Te.getCurrentSourceFile(ft),et=e.getTouchingPropertyName(Et,Ct);if(et!==Et){switch(et.kind){case 205:case 160:case 10:case 95:case 110:case 104:case 106:case 108:case 191:case 79:break;default:return}for(var hn=et;;)if(e.isRightSideOfPropertyAccess(hn)||e.isRightSideOfQualifiedName(hn))hn=hn.parent;else if(e.isNameOfModuleDeclaration(hn))if(hn.parent.parent.kind===260&&hn.parent.parent.body===hn.parent)hn=hn.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(hn.getStart(),et.getEnd())}}function nr(ft,Ct){var Pt=Te.getCurrentSourceFile(ft);return e.BreakpointResolver.spanInSourceFileAtLocation(Pt,Ct)}function Zr(ft){return e.NavigationBar.getNavigationBarItems(Te.getCurrentSourceFile(ft),Ge)}function ir(ft){return e.NavigationBar.getNavigationTree(Te.getCurrentSourceFile(ft),Ge)}function ge(ft,Ct,Pt){Ne();var Et=Pt||"original";return Et==="2020"?e.classifier.v2020.getSemanticClassifications(Me,Ge,We(ft),Ct):e.getSemanticClassifications(Me.getTypeChecker(),Ge,We(ft),Me.getClassifiableNames(),Ct)}function rr(ft,Ct,Pt){Ne();var Et=Pt||"original";return Et==="original"?e.getEncodedSemanticClassifications(Me.getTypeChecker(),Ge,We(ft),Me.getClassifiableNames(),Ct):e.classifier.v2020.getEncodedSemanticClassifications(Me,Ge,We(ft),Ct)}function pr(ft,Ct){return e.getSyntacticClassifications(Ge,Te.getCurrentSourceFile(ft),Ct)}function Lr(ft,Ct){return e.getEncodedSyntacticClassifications(Ge,Te.getCurrentSourceFile(ft),Ct)}function Ce(ft){var Ct=Te.getCurrentSourceFile(ft);return e.OutliningElementsCollector.collectElements(Ct,Ge)}var cr=new e.Map(e.getEntries((J={},J[18]=19,J[20]=21,J[22]=23,J[31]=29,J)));cr.forEach(function(ft,Ct){return cr.set(ft.toString(),Number(Ct))});function $e(ft,Ct){var Pt=Te.getCurrentSourceFile(ft),Et=e.getTouchingToken(Pt,Ct),et=Et.getStart(Pt)===Ct?cr.get(Et.kind.toString()):void 0,hn=et&&e.findChildOfKind(Et.parent,et,Pt);return hn?[e.createTextSpanFromNode(Et,Pt),e.createTextSpanFromNode(hn,Pt)].sort(function(Qn,Ra){return Qn.start-Ra.start}):e.emptyArray}function De(ft,Ct,Pt){var Et=e.timestamp(),et=O(Pt),hn=Te.getCurrentSourceFile(ft);xe("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-Et)),Et=e.timestamp();var Qn=e.formatting.SmartIndenter.getIndentation(Ct,hn,et);return xe("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-Et)),Qn}function z(ft,Ct,Pt,Et){var et=Te.getCurrentSourceFile(ft);return e.formatting.formatSelection(Ct,Pt,et,e.formatting.getFormatContext(O(Et),D))}function ke(ft,Ct){return e.formatting.formatDocument(Te.getCurrentSourceFile(ft),e.formatting.getFormatContext(O(Ct),D))}function dr(ft,Ct,Pt,Et){var et=Te.getCurrentSourceFile(ft),hn=e.formatting.getFormatContext(O(Et),D);if(!e.isInComment(et,Ct))switch(Pt){case"{":return e.formatting.formatOnOpeningCurly(Ct,et,hn);case"}":return e.formatting.formatOnClosingCurly(Ct,et,hn);case";":return e.formatting.formatOnSemicolon(Ct,et,hn);case`
`:return e.formatting.formatOnEnter(Ct,et,hn)}return[]}function Xe(ft,Ct,Pt,Et,et,hn){hn===void 0&&(hn=e.emptyOptions),Ne();var Qn=We(ft),Ra=e.createTextSpanFromBounds(Ct,Pt),Ki=e.formatting.getFormatContext(et,D);return e.flatMap(e.deduplicate(Et,e.equateValues,e.compareValues),function(di){return Ge.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:di,sourceFile:Qn,span:Ra,program:Me,host:D,cancellationToken:Ge,formatContext:Ki,preferences:hn})})}function Qe(ft,Ct,Pt,Et){Et===void 0&&(Et=e.emptyOptions),Ne(),e.Debug.assert(ft.type==="file");var et=We(ft.fileName),hn=e.formatting.getFormatContext(Pt,D);return e.codefix.getAllFixes({fixId:Ct,sourceFile:et,program:Me,host:D,cancellationToken:Ge,formatContext:hn,preferences:Et})}function Ir(ft,Ct,Pt){Pt===void 0&&(Pt=e.emptyOptions),Ne(),e.Debug.assert(ft.type==="file");var Et=We(ft.fileName),et=e.formatting.getFormatContext(Ct,D);return e.OrganizeImports.organizeImports(Et,et,D,Me,Pt,ft.skipDestructiveCodeActions)}function Jr(ft,Ct,Pt,Et){return Et===void 0&&(Et=e.emptyOptions),e.getEditsForFileRename(ve(),ft,Ct,D,e.formatting.getFormatContext(Pt,D),Et,Ue)}function Or(ft,Ct){var Pt=typeof ft=="string"?Ct:ft;return e.isArray(Pt)?Promise.all(Pt.map(function(Et){return Be(Et)})):Be(Pt)}function Be(ft){var Ct=function(Pt){return e.toPath(Pt,se,ce)};return e.Debug.assertEqual(ft.type,"install package"),D.installPackage?D.installPackage({fileName:Ct(ft.file),packageName:ft.packageName}):Promise.reject("Host does not implement `installPackage`")}function yr(ft,Ct,Pt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(D),Te.getCurrentSourceFile(ft),Ct,Pt)}function Rr(ft,Ct,Pt){if(Pt===60)return!1;var Et=Te.getCurrentSourceFile(ft);if(e.isInString(Et,Ct))return!1;if(e.isInsideJsxElementOrAttribute(Et,Ct))return Pt===123;if(e.isInTemplateString(Et,Ct))return!1;switch(Pt){case 39:case 34:case 96:return!e.isInComment(Et,Ct)}return!0}function zr(ft,Ct){var Pt=Te.getCurrentSourceFile(ft),Et=e.findPrecedingToken(Ct,Pt);if(!!Et){var et=Et.kind===31&&e.isJsxOpeningElement(Et.parent)?Et.parent.parent:e.isJsxText(Et)&&e.isJsxElement(Et.parent)?Et.parent:void 0;if(et&&Nt(et))return{newText:"</".concat(et.openingElement.tagName.getText(Pt),">")};var hn=Et.kind===31&&e.isJsxOpeningFragment(Et.parent)?Et.parent.parent:e.isJsxText(Et)&&e.isJsxFragment(Et.parent)?Et.parent:void 0;if(hn&&Xt(hn))return{newText:"</>"}}}function ut(ft,Ct){return{lineStarts:ft.getLineStarts(),firstLine:ft.getLineAndCharacterOfPosition(Ct.pos).line,lastLine:ft.getLineAndCharacterOfPosition(Ct.end).line}}function mt(ft,Ct,Pt){for(var Et=Te.getCurrentSourceFile(ft),et=[],hn=ut(Et,Ct),Qn=hn.lineStarts,Ra=hn.firstLine,Ki=hn.lastLine,di=Pt||!1,ya=Number.MAX_VALUE,$a=new e.Map,ao=new RegExp(/\S/),ei=e.isInsideJsxElement(Et,Qn[Ra]),Fi=ei?"{/*":"//",eo=Ra;eo<=Ki;eo++){var Wo=Et.text.substring(Qn[eo],Et.getLineEndOfPosition(Qn[eo])),Yi=ao.exec(Wo);Yi&&(ya=Math.min(ya,Yi.index),$a.set(eo.toString(),Yi.index),Wo.substr(Yi.index,Fi.length)!==Fi&&(di=Pt===void 0||Pt))}for(var eo=Ra;eo<=Ki;eo++)if(!(Ra!==Ki&&Qn[eo]===Ct.end)){var Ni=$a.get(eo.toString());Ni!==void 0&&(ei?et.push.apply(et,Lt(ft,{pos:Qn[eo]+ya,end:Et.getLineEndOfPosition(Qn[eo])},di,ei)):di?et.push({newText:Fi,span:{length:0,start:Qn[eo]+ya}}):Et.text.substr(Qn[eo]+Ni,Fi.length)===Fi&&et.push({newText:"",span:{length:Fi.length,start:Qn[eo]+Ni}}))}return et}function Lt(ft,Ct,Pt,Et){for(var et,hn=Te.getCurrentSourceFile(ft),Qn=[],Ra=hn.text,Ki=!1,di=Pt||!1,ya=[],$a=Ct.pos,ao=Et!==void 0?Et:e.isInsideJsxElement(hn,$a),ei=ao?"{/*":"/*",Fi=ao?"*/}":"*/",eo=ao?"\\{\\/\\*":"\\/\\*",Wo=ao?"\\*\\/\\}":"\\*\\/";$a<=Ct.end;){var Yi=Ra.substr($a,ei.length)===ei?ei.length:0,Ni=e.isInComment(hn,$a+Yi);if(Ni)ao&&(Ni.pos--,Ni.end++),ya.push(Ni.pos),Ni.kind===3&&ya.push(Ni.end),Ki=!0,$a=Ni.end+1;else{var Eo=Ra.substring($a,Ct.end).search("(".concat(eo,")|(").concat(Wo,")"));di=Pt!==void 0?Pt:di||!e.isTextWhiteSpaceLike(Ra,$a,Eo===-1?Ct.end:$a+Eo),$a=Eo===-1?Ct.end+1:$a+Eo+Fi.length}}if(di||!Ki){((et=e.isInComment(hn,Ct.pos))===null||et===void 0?void 0:et.kind)!==2&&e.insertSorted(ya,Ct.pos,e.compareValues),e.insertSorted(ya,Ct.end,e.compareValues);var lo=ya[0];Ra.substr(lo,ei.length)!==ei&&Qn.push({newText:ei,span:{length:0,start:lo}});for(var So=1;So<ya.length-1;So++)Ra.substr(ya[So]-Fi.length,Fi.length)!==Fi&&Qn.push({newText:Fi,span:{length:0,start:ya[So]}}),Ra.substr(ya[So],ei.length)!==ei&&Qn.push({newText:ei,span:{length:0,start:ya[So]}});Qn.length%2!==0&&Qn.push({newText:Fi,span:{length:0,start:ya[ya.length-1]}})}else for(var ts=0,ja=ya;ts<ja.length;ts++){var Do=ja[ts],Pa=Do-Fi.length>0?Do-Fi.length:0,Yi=Ra.substr(Pa,Fi.length)===Fi?Fi.length:0;Qn.push({newText:"",span:{length:ei.length,start:Do-Yi}})}return Qn}function vt(ft,Ct){var Pt=Te.getCurrentSourceFile(ft),Et=ut(Pt,Ct),et=Et.firstLine,hn=Et.lastLine;return et===hn&&Ct.pos!==Ct.end?Lt(ft,Ct,!0):mt(ft,Ct,!0)}function pt(ft,Ct){var Pt=Te.getCurrentSourceFile(ft),Et=[],et=Ct.pos,hn=Ct.end;et===hn&&(hn+=e.isInsideJsxElement(Pt,et)?2:1);for(var Qn=et;Qn<=hn;Qn++){var Ra=e.isInComment(Pt,Qn);if(Ra){switch(Ra.kind){case 2:Et.push.apply(Et,mt(ft,{end:Ra.end,pos:Ra.pos+1},!1));break;case 3:Et.push.apply(Et,Lt(ft,{end:Ra.end,pos:Ra.pos+1},!1))}Qn=Ra.end+1}}return Et}function Nt(ft){var Ct=ft.openingElement,Pt=ft.closingElement,Et=ft.parent;return!e.tagNamesAreEquivalent(Ct.tagName,Pt.tagName)||e.isJsxElement(Et)&&e.tagNamesAreEquivalent(Ct.tagName,Et.openingElement.tagName)&&Nt(Et)}function Xt(ft){var Ct=ft.closingFragment,Pt=ft.parent;return!!(Ct.flags&65536)||e.isJsxFragment(Pt)&&Xt(Pt)}function st(ft,Ct,Pt){var Et=Te.getCurrentSourceFile(ft),et=e.formatting.getRangeOfEnclosingComment(Et,Ct);return et&&(!Pt||et.kind===3)?e.createTextSpanFromRange(et):void 0}function $t(ft,Ct){Ne();var Pt=We(ft);Ge.throwIfCancellationRequested();var Et=Pt.text,et=[];if(Ct.length>0&&!Wo(Pt.fileName))for(var hn=Fi(),Qn=void 0;Qn=hn.exec(Et);){Ge.throwIfCancellationRequested();var Ra=3;e.Debug.assert(Qn.length===Ct.length+Ra);var Ki=Qn[1],di=Qn.index+Ki.length;if(!!e.isInComment(Pt,di)){for(var ya=void 0,$a=0;$a<Ct.length;$a++)Qn[$a+Ra]&&(ya=Ct[$a]);if(ya===void 0)return e.Debug.fail();if(!eo(Et.charCodeAt(di+ya.text.length))){var ao=Qn[2];et.push({descriptor:ya,message:ao,position:di})}}}return et;function ei(Yi){return Yi.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Fi(){var Yi=/(?:\/\/+\s*)/.source,Ni=/(?:\/\*+\s*)/.source,Eo=/(?:^(?:\s|\*)*)/.source,lo="("+Eo+"|"+Yi+"|"+Ni+")",So="(?:"+e.map(Ct,function(Ti){return"("+ei(Ti.text)+")"}).join("|")+")",ts=/(?:$|\*\/)/.source,ja=/(?:.*?)/.source,Do="("+So+ja+")",Pa=lo+Do+ts;return new RegExp(Pa,"gim")}function eo(Yi){return Yi>=97&&Yi<=122||Yi>=65&&Yi<=90||Yi>=48&&Yi<=57}function Wo(Yi){return e.stringContains(Yi,"/node_modules/")}}function Pn(ft,Ct,Pt){return Ne(),e.Rename.getRenameInfo(Me,We(ft),Ct,Pt)}function Ea(ft,Ct,Pt,Et,et,hn){var Qn=typeof Ct=="number"?[Ct,void 0]:[Ct.pos,Ct.end],Ra=Qn[0],Ki=Qn[1];return{file:ft,startPosition:Ra,endPosition:Ki,program:ve(),host:D,formatContext:e.formatting.getFormatContext(Et,D),cancellationToken:Ge,preferences:Pt,triggerReason:et,kind:hn}}function ia(ft,Ct,Pt){return{file:ft,program:ve(),host:D,span:Ct,preferences:Pt,cancellationToken:Ge}}function pa(ft,Ct){return e.SmartSelectionRange.getSmartSelectionRange(Ct,Te.getCurrentSourceFile(ft))}function Gn(ft,Ct,Pt,Et,et){Pt===void 0&&(Pt=e.emptyOptions),Ne();var hn=We(ft);return e.refactor.getApplicableRefactors(Ea(hn,Ct,Pt,e.emptyOptions,Et,et))}function nn(ft,Ct,Pt,Et,et,hn){hn===void 0&&(hn=e.emptyOptions),Ne();var Qn=We(ft);return e.refactor.getEditsForRefactor(Ea(Qn,Pt,hn,Ct),Et,et)}function bt(ft,Ct){return Ct===0?{line:0,character:0}:Ue.toLineColumnOffset(ft,Ct)}function Ut(ft,Ct){Ne();var Pt=e.CallHierarchy.resolveCallHierarchyDeclaration(Me,e.getTouchingPropertyName(We(ft),Ct));return Pt&&e.mapOneOrMany(Pt,function(Et){return e.CallHierarchy.createCallHierarchyItem(Me,Et)})}function Kt(ft,Ct){Ne();var Pt=We(ft),Et=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Me,Ct===0?Pt:e.getTouchingPropertyName(Pt,Ct)));return Et?e.CallHierarchy.getIncomingCalls(Me,Et,Ge):[]}function bn(ft,Ct){Ne();var Pt=We(ft),Et=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(Me,Ct===0?Pt:e.getTouchingPropertyName(Pt,Ct)));return Et?e.CallHierarchy.getOutgoingCalls(Me,Et):[]}function wn(ft,Ct,Pt){Pt===void 0&&(Pt=e.emptyOptions),Ne();var Et=We(ft);return e.InlayHints.provideInlayHints(ia(Et,Ct,Pt))}var ra={dispose:Er,cleanupSemanticCache:gr,getSyntacticDiagnostics:Nr,getSemanticDiagnostics:ur,getSuggestionDiagnostics:xr,getCompilerOptionsDiagnostics:sr,getSyntacticClassifications:pr,getSemanticClassifications:ge,getEncodedSyntacticClassifications:Lr,getEncodedSemanticClassifications:rr,getCompletionsAtPosition:i,getCompletionEntryDetails:Mr,getCompletionEntrySymbol:fr,getSignatureHelpItems:vn,getQuickInfoAtPosition:Ar,getDefinitionAtPosition:qe,getDefinitionAndBoundSpan:Cr,getImplementationAtPosition:He,getTypeDefinitionAtPosition:kr,getReferencesAtPosition:Sr,findReferences:ot,getFileReferences:_t,getOccurrencesAtPosition:lr,getDocumentHighlights:Hr,getNameOrDottedNameSpan:qn,getBreakpointStatementAtPosition:nr,getNavigateToItems:kt,getRenameInfo:Pn,getSmartSelectionRange:pa,findRenameLocations:Je,getNavigationBarItems:Zr,getNavigationTree:ir,getOutliningSpans:Ce,getTodoComments:$t,getBraceMatchingAtPosition:$e,getIndentationAtPosition:De,getFormattingEditsForRange:z,getFormattingEditsForDocument:ke,getFormattingEditsAfterKeystroke:dr,getDocCommentTemplateAtPosition:yr,isValidBraceCompletionAtPosition:Rr,getJsxClosingTagAtPosition:zr,getSpanOfEnclosingComment:st,getCodeFixesAtPosition:Xe,getCombinedCodeFix:Qe,applyCodeActionCommand:Or,organizeImports:Ir,getEditsForFileRename:Jr,getEmitOutput:Yt,getNonBoundSourceFile:Mn,getProgram:ve,getAutoImportProvider:Ve,getApplicableRefactors:Gn,getEditsForRefactor:nn,toLineColumnOffset:bt,getSourceMapper:function(){return Ue},clearSourceMapperCache:function(){return Ue.clearCache()},prepareCallHierarchy:Ut,provideCallHierarchyIncomingCalls:Kt,provideCallHierarchyOutgoingCalls:bn,toggleLineComment:mt,toggleMultilineComment:Lt,commentSelection:vt,uncommentSelection:pt,provideInlayHints:wn};switch(le){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:T.forEach(function(ft){return ra[ft]=function(){throw new Error("LanguageService Operation: ".concat(ft," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:_.forEach(function(ft){return ra[ft]=function(){throw new Error("LanguageService Operation: ".concat(ft," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(le)}return ra}e.createLanguageService=h;function R(D){return D.nameTable||b(D),D.nameTable}e.getNameTable=R;function b(D){var be=D.nameTable=new e.Map;D.forEachChild(function ne(J){if(e.isIdentifier(J)&&!e.isTagName(J)&&J.escapedText||e.isStringOrNumericLiteralLike(J)&&G(J)){var le=e.getEscapedTextOfIdentifierOrLiteral(J);be.set(le,be.get(le)===void 0?J.pos:-1)}else if(e.isPrivateIdentifier(J)){var le=J.escapedText;be.set(le,be.get(le)===void 0?J.pos:-1)}if(e.forEachChild(J,ne),e.hasJSDocNodes(J))for(var Te=0,Me=J.jsDoc;Te<Me.length;Te++){var Ke=Me[Te];e.forEachChild(Ke,ne)}})}function G(D){return e.isDeclarationName(D)||D.parent.kind===276||Se(D)||e.isLiteralComputedPropertyDeclarationName(D)}function Y(D){var be=pe(D);return be&&(e.isObjectLiteralExpression(be.parent)||e.isJsxAttributes(be.parent))?be:void 0}e.getContainingObjectLiteralElement=Y;function pe(D){switch(D.kind){case 10:case 14:case 8:if(D.parent.kind===161)return e.isObjectLiteralElement(D.parent.parent)?D.parent.parent:void 0;case 79:return e.isObjectLiteralElement(D.parent)&&(D.parent.parent.kind===204||D.parent.parent.kind===285)&&D.parent.name===D?D.parent:void 0}}function A(D,be){var ne=Y(D);if(ne){var J=be.getContextualType(ne.parent),le=J&&_e(ne,be,J,!1);if(le&&le.length===1)return e.first(le)}return be.getSymbolAtLocation(D)}function _e(D,be,ne,J){var le=e.getNameFromPropertyName(D.name);if(!le)return e.emptyArray;if(!ne.isUnion()){var Te=ne.getProperty(le);return Te?[Te]:e.emptyArray}var Me=e.mapDefined(ne.types,function(Ke){return(e.isObjectLiteralExpression(D.parent)||e.isJsxAttributes(D.parent))&&be.isTypeInvalidDueToUnionDiscriminant(Ke,D.parent)?void 0:Ke.getProperty(le)});if(J&&(Me.length===0||Me.length===ne.types.length)){var Te=ne.getProperty(le);if(Te)return[Te]}return Me.length===0?e.mapDefined(ne.types,function(Ke){return Ke.getProperty(le)}):Me}e.getPropertySymbolsFromContextualType=_e;function Se(D){return D&&D.parent&&D.parent.kind===206&&D.parent.argumentExpression===D}function ae(D){return aR+e.directorySeparator+e.getDefaultLibFileName(D)}e.getDefaultLibFilePath=ae,e.setObjectAllocator(X())})(mr||(mr={}));var mr;(function(e){var n;(function(c){function u(g,p){if(g.isDeclarationFile)return;var I=e.getTokenAtPosition(g,p),V=g.getLineAndCharacterOfPosition(p).line;if(g.getLineAndCharacterOfPosition(I.getStart(g)).line>V){var L=e.findPrecedingToken(I.pos,g);if(!L||g.getLineAndCharacterOfPosition(L.getEnd()).line!==V)return;I=L}if(I.flags&8388608)return;return $(I);function m(C,K){var k=C.decorators?e.skipTrivia(g.text,C.decorators.end):C.getStart(g);return e.createTextSpanFromBounds(k,(K||C).getEnd())}function y(C,K){return m(C,e.findNextToken(K,K.parent,g))}function j(C,K){return C&&V===g.getLineAndCharacterOfPosition(C.getStart(g)).line?$(C):$(K)}function te(C){return e.createTextSpanFromBounds(e.skipTrivia(g.text,C.pos),C.end)}function E(C){return $(e.findPrecedingToken(C.pos,g))}function F(C){return $(e.findNextToken(C,C.parent,g))}function $(C){if(C){var K=C.parent;switch(C.kind){case 236:return q(C.declarationList.declarations[0]);case 253:case 166:case 165:return q(C);case 163:return M(C);case 255:case 168:case 167:case 171:case 172:case 170:case 212:case 213:return H(C);case 234:if(e.isFunctionBlock(C))return w(C);case 261:return d(C);case 291:return d(C.block);case 237:return m(C.expression);case 246:return m(C.getChildAt(0),C.expression);case 240:return y(C,C.expression);case 239:return $(C.statement);case 252:return m(C.getChildAt(0));case 238:return y(C,C.expression);case 249:return $(C.statement);case 245:case 244:return m(C.getChildAt(0),C.label);case 241:return T(C);case 242:return y(C,C.expression);case 243:return B(C);case 248:return y(C,C.expression);case 288:case 289:return $(C.statements[0]);case 251:return d(C.tryBlock);case 250:return m(C,C.expression);case 270:return m(C,C.expression);case 264:return m(C,C.moduleReference);case 265:return m(C,C.moduleSpecifier);case 271:return m(C,C.moduleSpecifier);case 260:if(e.getModuleInstanceState(C)!==1)return;case 256:case 259:case 297:case 202:return m(C);case 247:return $(C.statement);case 164:return te(K.decorators);case 200:case 201:return _(C);case 257:case 258:return;case 26:case 1:return j(e.findPrecedingToken(C.pos,g));case 27:return E(C);case 18:return R(C);case 19:return b(C);case 23:return G(C);case 20:return Y(C);case 21:return pe(C);case 58:return A(C);case 31:case 29:return _e(C);case 115:return Se(C);case 91:case 83:case 96:return F(C);case 159:return ae(C);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C))return h(C);if((C.kind===79||C.kind===224||C.kind===294||C.kind===295)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(K))return m(C);if(C.kind===220){var k=C,X=k.left,O=k.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(X))return h(X);if(O.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent))return m(C);if(O.kind===27)return $(X)}if(e.isExpressionNode(C))switch(K.kind){case 239:return E(C);case 164:return $(C.parent);case 241:case 243:return m(C);case 220:if(C.parent.operatorToken.kind===27)return m(C);break;case 213:if(C.parent.body===C)return m(C);break}switch(C.parent.kind){case 294:if(C.parent.name===C&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent.parent))return $(C.parent.initializer);break;case 210:if(C.parent.type===C)return F(C.parent.type);break;case 253:case 163:{var x=C.parent,ie=x.initializer,Z=x.type;if(ie===C||Z===C||e.isAssignmentOperator(C.kind))return E(C);break}case 220:{var X=C.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(X)&&C!==X)return E(C);break}default:if(e.isFunctionLike(C.parent)&&C.parent.type===C)return E(C)}return $(C.parent)}}function re(D){return e.isVariableDeclarationList(D.parent)&&D.parent.declarations[0]===D?m(e.findPrecedingToken(D.pos,g,D.parent),D):m(D)}function q(D){if(D.parent.parent.kind===242)return $(D.parent.parent);var be=D.parent;if(e.isBindingPattern(D.name))return _(D.name);if(D.initializer||e.hasSyntacticModifier(D,1)||be.parent.kind===243)return re(D);if(e.isVariableDeclarationList(D.parent)&&D.parent.declarations[0]!==D)return $(e.findPrecedingToken(D.pos,g,D.parent))}function P(D){return!!D.initializer||D.dotDotDotToken!==void 0||e.hasSyntacticModifier(D,12)}function M(D){if(e.isBindingPattern(D.name))return _(D.name);if(P(D))return m(D);var be=D.parent,ne=be.parameters.indexOf(D);return e.Debug.assert(ne!==-1),ne!==0?M(be.parameters[ne-1]):$(be.body)}function Q(D){return e.hasSyntacticModifier(D,1)||D.parent.kind===256&&D.kind!==170}function H(D){if(!!D.body)return Q(D)?m(D):$(D.body)}function w(D){var be=D.statements.length?D.statements[0]:D.getLastToken();return Q(D.parent)?j(D.parent,be):$(be)}function d(D){switch(D.parent.kind){case 260:if(e.getModuleInstanceState(D.parent)!==1)return;case 240:case 238:case 242:return j(D.parent,D.statements[0]);case 241:case 243:return j(e.findPrecedingToken(D.pos,g,D.parent),D.statements[0])}return $(D.statements[0])}function B(D){if(D.initializer.kind===254){var be=D.initializer;if(be.declarations.length>0)return $(be.declarations[0])}else return $(D.initializer)}function T(D){if(D.initializer)return B(D);if(D.condition)return m(D.condition);if(D.incrementor)return m(D.incrementor)}function _(D){var be=e.forEach(D.elements,function(ne){return ne.kind!==226?ne:void 0});return be?$(be):D.parent.kind===202?m(D.parent):re(D.parent)}function h(D){e.Debug.assert(D.kind!==201&&D.kind!==200);var be=D.kind===203?D.elements:D.properties,ne=e.forEach(be,function(J){return J.kind!==226?J:void 0});return ne?$(ne):m(D.parent.kind===220?D.parent:D)}function R(D){switch(D.parent.kind){case 259:var be=D.parent;return j(e.findPrecedingToken(D.pos,g,D.parent),be.members.length?be.members[0]:be.getLastToken(g));case 256:var ne=D.parent;return j(e.findPrecedingToken(D.pos,g,D.parent),ne.members.length?ne.members[0]:ne.getLastToken(g));case 262:return j(D.parent.parent,D.parent.clauses[0])}return $(D.parent)}function b(D){switch(D.parent.kind){case 261:if(e.getModuleInstanceState(D.parent.parent)!==1)return;case 259:case 256:return m(D);case 234:if(e.isFunctionBlock(D.parent))return m(D);case 291:return $(e.lastOrUndefined(D.parent.statements));case 262:var be=D.parent,ne=e.lastOrUndefined(be.clauses);return ne?$(e.lastOrUndefined(ne.statements)):void 0;case 200:var J=D.parent;return $(e.lastOrUndefined(J.elements)||J);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent)){var le=D.parent;return m(e.lastOrUndefined(le.properties)||le)}return $(D.parent)}}function G(D){switch(D.parent.kind){case 201:var be=D.parent;return m(e.lastOrUndefined(be.elements)||be);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent)){var ne=D.parent;return m(e.lastOrUndefined(ne.elements)||ne)}return $(D.parent)}}function Y(D){return D.parent.kind===239||D.parent.kind===207||D.parent.kind===208?E(D):D.parent.kind===211?F(D):$(D.parent)}function pe(D){switch(D.parent.kind){case 212:case 255:case 213:case 168:case 167:case 171:case 172:case 170:case 240:case 239:case 241:case 243:case 207:case 208:case 211:return E(D);default:return $(D.parent)}}function A(D){return e.isFunctionLike(D.parent)||D.parent.kind===294||D.parent.kind===163?E(D):$(D.parent)}function _e(D){return D.parent.kind===210?F(D):$(D.parent)}function Se(D){return D.parent.kind===239?y(D,D.parent.expression):$(D.parent)}function ae(D){return D.parent.kind===243?F(D):$(D.parent)}}}c.spanInSourceFileAtLocation=u})(n=e.BreakpointResolver||(e.BreakpointResolver={}))})(mr||(mr={}));var mr;(function(e){function n(c,u,g){var p=[];g=e.fixupCompilerOptions(g,p);var I=e.isArray(c)?c:[c],V=e.transformNodes(void 0,void 0,e.factory,g,I,u,!0);return V.diagnostics=e.concatenate(V.diagnostics,p),V}e.transform=n})(mr||(mr={}));var p0=function(){return this}(),mr;(function(e){function n(C,K){C&&C.log("*INTERNAL ERROR* - Exception in typescript services: "+K.message)}var c=function(){function C(K){this.scriptSnapshotShim=K}return C.prototype.getText=function(K,k){return this.scriptSnapshotShim.getText(K,k)},C.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},C.prototype.getChangeRange=function(K){var k=K,X=this.scriptSnapshotShim.getChangeRange(k.scriptSnapshotShim);if(X===null)return null;var O=JSON.parse(X);return e.createTextChangeRange(e.createTextSpan(O.span.start,O.span.length),O.newLength)},C.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},C}(),u=function(){function C(K){var k=this;this.shimHost=K,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(X,O){var x=JSON.parse(k.shimHost.getModuleResolutionsForFile(O));return e.map(X,function(ie){var Z=e.getProperty(x,ie);return Z?{resolvedFileName:Z,extension:e.extensionFromPath(Z),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(X){return k.shimHost.directoryExists(X)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(X,O){var x=JSON.parse(k.shimHost.getTypeReferenceDirectiveResolutionsForFile(O));return e.map(X,function(ie){return e.getProperty(x,ie)})})}return C.prototype.log=function(K){this.loggingEnabled&&this.shimHost.log(K)},C.prototype.trace=function(K){this.tracingEnabled&&this.shimHost.trace(K)},C.prototype.error=function(K){this.shimHost.error(K)},C.prototype.getProjectVersion=function(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},C.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},C.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},C.prototype.getCompilationSettings=function(){var K=this.shimHost.getCompilationSettings();if(K===null||K==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var k=JSON.parse(K);return k.allowNonTsExtensions=!0,k},C.prototype.getScriptFileNames=function(){var K=this.shimHost.getScriptFileNames();return JSON.parse(K)},C.prototype.getScriptSnapshot=function(K){var k=this.shimHost.getScriptSnapshot(K);return k&&new c(k)},C.prototype.getScriptKind=function(K){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(K):0},C.prototype.getScriptVersion=function(K){return this.shimHost.getScriptVersion(K)},C.prototype.getLocalizedDiagnosticMessages=function(){var K=this.shimHost.getLocalizedDiagnosticMessages();if(K===null||K==="")return null;try{return JSON.parse(K)}catch(k){return this.log(k.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},C.prototype.getCancellationToken=function(){var K=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(K)},C.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},C.prototype.getDirectories=function(K){return JSON.parse(this.shimHost.getDirectories(K))},C.prototype.getDefaultLibFileName=function(K){return this.shimHost.getDefaultLibFileName(JSON.stringify(K))},C.prototype.readDirectory=function(K,k,X,O,x){var ie=e.getFileMatcherPatterns(K,X,O,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(K,JSON.stringify(k),JSON.stringify(ie.basePaths),ie.excludePattern,ie.includeFilePattern,ie.includeDirectoryPattern,x))},C.prototype.readFile=function(K,k){return this.shimHost.readFile(K,k)},C.prototype.fileExists=function(K){return this.shimHost.fileExists(K)},C}();e.LanguageServiceShimHostAdapter=u;var g=function(){function C(K){var k=this;this.shimHost=K,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(X){return k.shimHost.directoryExists(X)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(X){return k.shimHost.realpath(X)}:this.realpath=void 0}return C.prototype.readDirectory=function(K,k,X,O,x){var ie=e.getFileMatcherPatterns(K,X,O,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(K,JSON.stringify(k),JSON.stringify(ie.basePaths),ie.excludePattern,ie.includeFilePattern,ie.includeDirectoryPattern,x))},C.prototype.fileExists=function(K){return this.shimHost.fileExists(K)},C.prototype.readFile=function(K){return this.shimHost.readFile(K)},C.prototype.getDirectories=function(K){return JSON.parse(this.shimHost.getDirectories(K))},C}();e.CoreServicesShimHostAdapter=g;function p(C,K,k,X){var O;X&&(C.log(K),O=e.timestamp());var x=k();if(X){var ie=e.timestamp();if(C.log("".concat(K," completed in ").concat(ie-O," msec")),e.isString(x)){var Z=x;Z.length>128&&(Z=Z.substring(0,128)+"..."),C.log(" result.length=".concat(Z.length,", result='").concat(JSON.stringify(Z),"'"))}}return x}function I(C,K,k,X){return V(C,K,!0,k,X)}function V(C,K,k,X,O){try{var x=p(C,K,X,O);return k?JSON.stringify({result:x}):x}catch(ie){return ie instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(C,ie),ie.description=K,JSON.stringify({error:ie}))}}var L=function(){function C(K){this.factory=K,K.registerShim(this)}return C.prototype.dispose=function(K){this.factory.unregisterShim(this)},C}();function m(C,K){return C.map(function(k){return y(k,K)})}e.realizeDiagnostics=m;function y(C,K){return{message:e.flattenDiagnosticMessageText(C.messageText,K),start:C.start,length:C.length,category:e.diagnosticCategoryName(C),code:C.code,reportsUnnecessary:C.reportsUnnecessary,reportsDeprecated:C.reportsDeprecated}}var j=function(C){zm(K,C);function K(k,X,O){var x=C.call(this,k)||this;return x.host=X,x.languageService=O,x.logPerformance=!1,x.logger=x.host,x}return K.prototype.forwardJSONCall=function(k,X){return I(this.logger,k,X,this.logPerformance)},K.prototype.dispose=function(k){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p0&&p0.CollectGarbage&&(p0.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,C.prototype.dispose.call(this,k)},K.prototype.refresh=function(k){this.forwardJSONCall("refresh(".concat(k,")"),function(){return null})},K.prototype.cleanupSemanticCache=function(){var k=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return k.languageService.cleanupSemanticCache(),null})},K.prototype.realizeDiagnostics=function(k){var X=e.getNewLineOrDefaultFromHost(this.host);return m(k,X)},K.prototype.getSyntacticClassifications=function(k,X,O){var x=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return x.languageService.getSyntacticClassifications(k,e.createTextSpan(X,O))})},K.prototype.getSemanticClassifications=function(k,X,O){var x=this;return this.forwardJSONCall("getSemanticClassifications('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return x.languageService.getSemanticClassifications(k,e.createTextSpan(X,O))})},K.prototype.getEncodedSyntacticClassifications=function(k,X,O){var x=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return te(x.languageService.getEncodedSyntacticClassifications(k,e.createTextSpan(X,O)))})},K.prototype.getEncodedSemanticClassifications=function(k,X,O){var x=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return te(x.languageService.getEncodedSemanticClassifications(k,e.createTextSpan(X,O)))})},K.prototype.getSyntacticDiagnostics=function(k){var X=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(k,"')"),function(){var O=X.languageService.getSyntacticDiagnostics(k);return X.realizeDiagnostics(O)})},K.prototype.getSemanticDiagnostics=function(k){var X=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(k,"')"),function(){var O=X.languageService.getSemanticDiagnostics(k);return X.realizeDiagnostics(O)})},K.prototype.getSuggestionDiagnostics=function(k){var X=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(k,"')"),function(){return X.realizeDiagnostics(X.languageService.getSuggestionDiagnostics(k))})},K.prototype.getCompilerOptionsDiagnostics=function(){var k=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var X=k.languageService.getCompilerOptionsDiagnostics();return k.realizeDiagnostics(X)})},K.prototype.getQuickInfoAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getQuickInfoAtPosition(k,X)})},K.prototype.getNameOrDottedNameSpan=function(k,X,O){var x=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return x.languageService.getNameOrDottedNameSpan(k,X,O)})},K.prototype.getBreakpointStatementAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getBreakpointStatementAtPosition(k,X)})},K.prototype.getSignatureHelpItems=function(k,X,O){var x=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(k,"', ").concat(X,")"),function(){return x.languageService.getSignatureHelpItems(k,X,O)})},K.prototype.getDefinitionAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getDefinitionAtPosition(k,X)})},K.prototype.getDefinitionAndBoundSpan=function(k,X){var O=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getDefinitionAndBoundSpan(k,X)})},K.prototype.getTypeDefinitionAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getTypeDefinitionAtPosition(k,X)})},K.prototype.getImplementationAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getImplementationAtPosition(k,X)})},K.prototype.getRenameInfo=function(k,X,O){var x=this;return this.forwardJSONCall("getRenameInfo('".concat(k,"', ").concat(X,")"),function(){return x.languageService.getRenameInfo(k,X,O)})},K.prototype.getSmartSelectionRange=function(k,X){var O=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getSmartSelectionRange(k,X)})},K.prototype.findRenameLocations=function(k,X,O,x,ie){var Z=this;return this.forwardJSONCall("findRenameLocations('".concat(k,"', ").concat(X,", ").concat(O,", ").concat(x,", ").concat(ie,")"),function(){return Z.languageService.findRenameLocations(k,X,O,x,ie)})},K.prototype.getBraceMatchingAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getBraceMatchingAtPosition(k,X)})},K.prototype.isValidBraceCompletionAtPosition=function(k,X,O){var x=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return x.languageService.isValidBraceCompletionAtPosition(k,X,O)})},K.prototype.getSpanOfEnclosingComment=function(k,X,O){var x=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(k,"', ").concat(X,")"),function(){return x.languageService.getSpanOfEnclosingComment(k,X,O)})},K.prototype.getIndentationAtPosition=function(k,X,O){var x=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(k,"', ").concat(X,")"),function(){var ie=JSON.parse(O);return x.languageService.getIndentationAtPosition(k,X,ie)})},K.prototype.getReferencesAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getReferencesAtPosition(k,X)})},K.prototype.findReferences=function(k,X){var O=this;return this.forwardJSONCall("findReferences('".concat(k,"', ").concat(X,")"),function(){return O.languageService.findReferences(k,X)})},K.prototype.getFileReferences=function(k){var X=this;return this.forwardJSONCall("getFileReferences('".concat(k,")"),function(){return X.languageService.getFileReferences(k)})},K.prototype.getOccurrencesAtPosition=function(k,X){var O=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(k,"', ").concat(X,")"),function(){return O.languageService.getOccurrencesAtPosition(k,X)})},K.prototype.getDocumentHighlights=function(k,X,O){var x=this;return this.forwardJSONCall("getDocumentHighlights('".concat(k,"', ").concat(X,")"),function(){var ie=x.languageService.getDocumentHighlights(k,X,JSON.parse(O)),Z=e.toFileNameLowerCase(e.normalizeSlashes(k));return e.filter(ie,function(re){return e.toFileNameLowerCase(e.normalizeSlashes(re.fileName))===Z})})},K.prototype.getCompletionsAtPosition=function(k,X,O){var x=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return x.languageService.getCompletionsAtPosition(k,X,O)})},K.prototype.getCompletionEntryDetails=function(k,X,O,x,ie,Z,re){var q=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(k,"', ").concat(X,", '").concat(O,"')"),function(){var P=x===void 0?void 0:JSON.parse(x);return q.languageService.getCompletionEntryDetails(k,X,O,P,ie,Z,re)})},K.prototype.getFormattingEditsForRange=function(k,X,O,x){var ie=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){var Z=JSON.parse(x);return ie.languageService.getFormattingEditsForRange(k,X,O,Z)})},K.prototype.getFormattingEditsForDocument=function(k,X){var O=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(k,"')"),function(){var x=JSON.parse(X);return O.languageService.getFormattingEditsForDocument(k,x)})},K.prototype.getFormattingEditsAfterKeystroke=function(k,X,O,x){var ie=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(k,"', ").concat(X,", '").concat(O,"')"),function(){var Z=JSON.parse(x);return ie.languageService.getFormattingEditsAfterKeystroke(k,X,O,Z)})},K.prototype.getDocCommentTemplateAtPosition=function(k,X,O){var x=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(k,"', ").concat(X,")"),function(){return x.languageService.getDocCommentTemplateAtPosition(k,X,O)})},K.prototype.getNavigateToItems=function(k,X,O){var x=this;return this.forwardJSONCall("getNavigateToItems('".concat(k,"', ").concat(X,", ").concat(O,")"),function(){return x.languageService.getNavigateToItems(k,X,O)})},K.prototype.getNavigationBarItems=function(k){var X=this;return this.forwardJSONCall("getNavigationBarItems('".concat(k,"')"),function(){return X.languageService.getNavigationBarItems(k)})},K.prototype.getNavigationTree=function(k){var X=this;return this.forwardJSONCall("getNavigationTree('".concat(k,"')"),function(){return X.languageService.getNavigationTree(k)})},K.prototype.getOutliningSpans=function(k){var X=this;return this.forwardJSONCall("getOutliningSpans('".concat(k,"')"),function(){return X.languageService.getOutliningSpans(k)})},K.prototype.getTodoComments=function(k,X){var O=this;return this.forwardJSONCall("getTodoComments('".concat(k,"')"),function(){return O.languageService.getTodoComments(k,JSON.parse(X))})},K.prototype.prepareCallHierarchy=function(k,X){var O=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(k,"', ").concat(X,")"),function(){return O.languageService.prepareCallHierarchy(k,X)})},K.prototype.provideCallHierarchyIncomingCalls=function(k,X){var O=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(k,"', ").concat(X,")"),function(){return O.languageService.provideCallHierarchyIncomingCalls(k,X)})},K.prototype.provideCallHierarchyOutgoingCalls=function(k,X){var O=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(k,"', ").concat(X,")"),function(){return O.languageService.provideCallHierarchyOutgoingCalls(k,X)})},K.prototype.provideInlayHints=function(k,X,O){var x=this;return this.forwardJSONCall("provideInlayHints('".concat(k,"', '").concat(JSON.stringify(X),"', ").concat(JSON.stringify(O),")"),function(){return x.languageService.provideInlayHints(k,X,O)})},K.prototype.getEmitOutput=function(k){var X=this;return this.forwardJSONCall("getEmitOutput('".concat(k,"')"),function(){var O=X.languageService.getEmitOutput(k),x=O.diagnostics,ie=TL(O,["diagnostics"]);return kn(kn({},ie),{diagnostics:X.realizeDiagnostics(x)})})},K.prototype.getEmitOutputObject=function(k){var X=this;return V(this.logger,"getEmitOutput('".concat(k,"')"),!1,function(){return X.languageService.getEmitOutput(k)},this.logPerformance)},K.prototype.toggleLineComment=function(k,X){var O=this;return this.forwardJSONCall("toggleLineComment('".concat(k,"', '").concat(JSON.stringify(X),"')"),function(){return O.languageService.toggleLineComment(k,X)})},K.prototype.toggleMultilineComment=function(k,X){var O=this;return this.forwardJSONCall("toggleMultilineComment('".concat(k,"', '").concat(JSON.stringify(X),"')"),function(){return O.languageService.toggleMultilineComment(k,X)})},K.prototype.commentSelection=function(k,X){var O=this;return this.forwardJSONCall("commentSelection('".concat(k,"', '").concat(JSON.stringify(X),"')"),function(){return O.languageService.commentSelection(k,X)})},K.prototype.uncommentSelection=function(k,X){var O=this;return this.forwardJSONCall("uncommentSelection('".concat(k,"', '").concat(JSON.stringify(X),"')"),function(){return O.languageService.uncommentSelection(k,X)})},K}(L);function te(C){return{spans:C.spans.join(","),endOfLineState:C.endOfLineState}}var E=function(C){zm(K,C);function K(k,X){var O=C.call(this,k)||this;return O.logger=X,O.logPerformance=!1,O.classifier=e.createClassifier(),O}return K.prototype.getEncodedLexicalClassifications=function(k,X,O){var x=this;return O===void 0&&(O=!1),I(this.logger,"getEncodedLexicalClassifications",function(){return te(x.classifier.getEncodedLexicalClassifications(k,X,O))},this.logPerformance)},K.prototype.getClassificationsForLine=function(k,X,O){O===void 0&&(O=!1);for(var x=this.classifier.getClassificationsForLine(k,X,O),ie="",Z=0,re=x.entries;Z<re.length;Z++){var q=re[Z];ie+=q.length+`
`,ie+=q.classification+`
`}return ie+=x.finalLexState,ie},K}(L),F=function(C){zm(K,C);function K(k,X,O){var x=C.call(this,k)||this;return x.logger=X,x.host=O,x.logPerformance=!1,x}return K.prototype.forwardJSONCall=function(k,X){return I(this.logger,k,X,this.logPerformance)},K.prototype.resolveModuleName=function(k,X,O){var x=this;return this.forwardJSONCall("resolveModuleName('".concat(k,"')"),function(){var ie=JSON.parse(O),Z=e.resolveModuleName(X,e.normalizeSlashes(k),ie,x.host),re=Z.resolvedModule?Z.resolvedModule.resolvedFileName:void 0;return Z.resolvedModule&&Z.resolvedModule.extension!==".ts"&&Z.resolvedModule.extension!==".tsx"&&Z.resolvedModule.extension!==".d.ts"&&(re=void 0),{resolvedFileName:re,failedLookupLocations:Z.failedLookupLocations}})},K.prototype.resolveTypeReferenceDirective=function(k,X,O){var x=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(k,")"),function(){var ie=JSON.parse(O),Z=e.resolveTypeReferenceDirective(X,e.normalizeSlashes(k),ie,x.host);return{resolvedFileName:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:Z.failedLookupLocations}})},K.prototype.getPreProcessedFileInfo=function(k,X){var O=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(k,"')"),function(){var x=e.preProcessFile(e.getSnapshotText(X),!0,!0);return{referencedFiles:O.convertFileReferences(x.referencedFiles),importedFiles:O.convertFileReferences(x.importedFiles),ambientExternalModules:x.ambientExternalModules,isLibFile:x.isLibFile,typeReferenceDirectives:O.convertFileReferences(x.typeReferenceDirectives),libReferenceDirectives:O.convertFileReferences(x.libReferenceDirectives)}})},K.prototype.getAutomaticTypeDirectiveNames=function(k){var X=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(k,"')"),function(){var O=JSON.parse(k);return e.getAutomaticTypeDirectiveNames(O,X.host)})},K.prototype.convertFileReferences=function(k){if(!!k){for(var X=[],O=0,x=k;O<x.length;O++){var ie=x[O];X.push({path:e.normalizeSlashes(ie.fileName),position:ie.pos,length:ie.end-ie.pos})}return X}},K.prototype.getTSConfigFileInfo=function(k,X){var O=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(k,"')"),function(){var x=e.parseJsonText(k,e.getSnapshotText(X)),ie=e.normalizeSlashes(k),Z=e.parseJsonSourceFileConfigFileContent(x,O.host,e.getDirectoryPath(ie),{},ie);return{options:Z.options,typeAcquisition:Z.typeAcquisition,files:Z.fileNames,raw:Z.raw,errors:m(Bt(Bt([],x.parseDiagnostics,!0),Z.errors,!0),`\r
`)}})},K.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},K.prototype.discoverTypings=function(k){var X=this,O=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var x=JSON.parse(k);return X.safeList===void 0&&(X.safeList=e.JsTyping.loadSafeList(X.host,e.toPath(x.safeListPath,x.safeListPath,O))),e.JsTyping.discoverTypings(X.host,function(ie){return X.logger.log(ie)},x.fileNames,e.toPath(x.projectRootPath,x.projectRootPath,O),X.safeList,x.packageNameToTypingLocation,x.typeAcquisition,x.unresolvedImports,x.typesRegistry)})},K}(L),$=function(){function C(){this._shims=[]}return C.prototype.getServicesVersion=function(){return e.servicesVersion},C.prototype.createLanguageServiceShim=function(K){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(K.useCaseSensitiveFileNames&&K.useCaseSensitiveFileNames(),K.getCurrentDirectory()));var k=new u(K),X=e.createLanguageService(k,this.documentRegistry,!1);return new j(this,K,X)}catch(O){throw n(K,O),O}},C.prototype.createClassifierShim=function(K){try{return new E(this,K)}catch(k){throw n(K,k),k}},C.prototype.createCoreServicesShim=function(K){try{var k=new g(K);return new F(this,K,k)}catch(X){throw n(K,X),X}},C.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},C.prototype.registerShim=function(K){this._shims.push(K)},C.prototype.unregisterShim=function(K){for(var k=0;k<this._shims.length;k++)if(this._shims[k]===K){delete this._shims[k];return}throw new Error("Invalid operation")},C}();e.TypeScriptServicesFactory=$})(mr||(mr={})),function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis=="undefined"&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),(typeof process=="undefined"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=mr.TypeScriptServicesFactory,globalThis.toolsVersion=mr.versionMajorMinor),gc.exports;var mr;(function(e){var n={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,n),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,n),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,n),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,n),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,n),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,n),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,n),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,n),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,n),e.createSuper=e.Debug.deprecate(e.factory.createSuper,n),e.createThis=e.Debug.deprecate(e.factory.createThis,n),e.createNull=e.Debug.deprecate(e.factory.createNull,n),e.createTrue=e.Debug.deprecate(e.factory.createTrue,n),e.createFalse=e.Debug.deprecate(e.factory.createFalse,n),e.createModifier=e.Debug.deprecate(e.factory.createModifier,n),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,n),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,n),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,n),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,n),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,n),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,n),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,n),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,n),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,n),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,n),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,n),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,n),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,n),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,n),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,n),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,n),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,n),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,n),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,n),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,n),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,n),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,n),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,n),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,n),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,n),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,n),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,n),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,n),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,n),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,n),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,n),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,n),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,n),e.createConstructorTypeNode=e.Debug.deprecate(function(c,u,g){return e.factory.createConstructorTypeNode(void 0,c,u,g)},n),e.updateConstructorTypeNode=e.Debug.deprecate(function(c,u,g,p){return e.factory.updateConstructorTypeNode(c,c.modifiers,u,g,p)},n),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,n),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,n),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,n),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,n),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,n),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,n),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,n),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,n),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,n),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,n),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,n),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,n),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,n),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,n),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,n),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,n),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,n),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,n),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,n),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,n),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,n),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,n),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,n),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,n),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,n),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,n),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,n),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,n),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,n),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,n),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,n),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,n),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,n),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,n),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,n),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,n),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,n),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,n),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,n),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,n),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,n),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,n),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,n),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,n),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,n),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,n),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,n),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,n),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,n),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,n),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,n),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,n),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,n),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,n),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,n),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,n),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,n),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,n),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,n),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,n),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,n),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,n),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,n),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,n),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,n),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,n),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,n),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,n),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,n),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,n),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,n),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,n),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,n),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,n),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,n),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,n),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,n),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,n),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,n),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,n),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,n),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,n),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,n),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,n),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,n),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,n),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,n),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,n),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,n),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,n),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,n),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,n),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,n),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,n),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,n),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,n),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,n),e.createBlock=e.Debug.deprecate(e.factory.createBlock,n),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,n),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,n),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,n),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,n),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,n),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,n),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,n),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,n),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,n),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,n),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,n),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,n),e.createFor=e.Debug.deprecate(e.factory.createForStatement,n),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,n),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,n),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,n),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,n),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,n),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,n),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,n),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,n),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,n),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,n),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,n),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,n),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,n),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,n),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,n),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,n),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,n),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,n),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,n),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,n),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,n),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,n),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,n),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,n),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,n),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,n),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,n),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,n),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,n),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,n),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,n),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,n),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,n),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,n),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,n),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,n),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,n),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,n),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,n),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,n),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,n),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,n),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,n),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,n),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,n),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,n),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,n),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,n),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,n),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,n),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,n),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,n),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,n),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,n),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,n),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,n),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,n),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,n),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,n),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,n),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,n),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,n),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,n),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,n),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,n),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,n),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,n),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,n),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,n),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,n),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,n),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,n),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,n),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,n),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,n),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,n),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,n),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,n),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,n),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,n),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,n),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,n),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,n),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,n),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,n),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,n),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,n),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,n),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,n),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,n),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,n),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,n),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,n),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,n),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,n),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,n),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,n),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,n),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,n),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,n),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,n),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,n),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,n),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,n),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,n),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,n),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,n),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,n),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,n),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,n),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,n),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,n),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,n),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,n),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,n),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,n),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,n),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,n),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,n),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,n),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,n),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,n),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,n),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,n),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,n),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,n),e.createBundle=e.Debug.deprecate(e.factory.createBundle,n),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,n),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,n),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,n),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,n),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,n),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,n),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,n),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,n),e.createToken=e.Debug.deprecate(function(u){return e.factory.createToken(u)},n),e.createIdentifier=e.Debug.deprecate(function(u){return e.factory.createIdentifier(u,void 0,void 0)},n),e.createTempVariable=e.Debug.deprecate(function(u){return e.factory.createTempVariable(u,void 0)},n),e.getGeneratedNameForNode=e.Debug.deprecate(function(u){return e.factory.getGeneratedNameForNode(u,void 0)},n),e.createOptimisticUniqueName=e.Debug.deprecate(function(u){return e.factory.createUniqueName(u,16)},n),e.createFileLevelUniqueName=e.Debug.deprecate(function(u){return e.factory.createUniqueName(u,48)},n),e.createIndexSignature=e.Debug.deprecate(function(u,g,p,I){return e.factory.createIndexSignature(u,g,p,I)},n),e.createTypePredicateNode=e.Debug.deprecate(function(u,g){return e.factory.createTypePredicateNode(void 0,u,g)},n),e.updateTypePredicateNode=e.Debug.deprecate(function(u,g,p){return e.factory.updateTypePredicateNode(u,void 0,g,p)},n),e.createLiteral=e.Debug.deprecate(function(u){return typeof u=="number"?e.factory.createNumericLiteral(u):typeof u=="object"&&"base10Value"in u?e.factory.createBigIntLiteral(u):typeof u=="boolean"?u?e.factory.createTrue():e.factory.createFalse():typeof u=="string"?e.factory.createStringLiteral(u,void 0):e.factory.createStringLiteralFromNode(u)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(u,g,p,I,V){return e.factory.createMethodSignature(void 0,I,V,u,g,p)},n),e.updateMethodSignature=e.Debug.deprecate(function(u,g,p,I,V,L){return e.factory.updateMethodSignature(u,u.modifiers,V,L,g,p,I)},n),e.createTypeOperatorNode=e.Debug.deprecate(function(u,g){var p;return g?p=u:(g=u,p=140),e.factory.createTypeOperatorNode(p,g)},n),e.createTaggedTemplate=e.Debug.deprecate(function(u,g,p){var I;return p?I=g:p=g,e.factory.createTaggedTemplateExpression(u,I,p)},n),e.updateTaggedTemplate=e.Debug.deprecate(function(u,g,p,I){var V;return I?V=p:I=p,e.factory.updateTaggedTemplateExpression(u,g,V,I)},n),e.updateBinary=e.Debug.deprecate(function(u,g,p,I){return I===void 0&&(I=u.operatorToken),typeof I=="number"&&(I=I===u.operatorToken.kind?u.operatorToken:e.factory.createToken(I)),e.factory.updateBinaryExpression(u,g,I,p)},n),e.createConditional=e.Debug.deprecate(function(u,g,p,I,V){return arguments.length===5?e.factory.createConditionalExpression(u,g,p,I,V):arguments.length===3?e.factory.createConditionalExpression(u,e.factory.createToken(57),g,e.factory.createToken(58),p):e.Debug.fail("Argument count mismatch")},n),e.createYield=e.Debug.deprecate(function(u,g){var p;return g?p=u:g=u,e.factory.createYieldExpression(p,g)},n),e.createClassExpression=e.Debug.deprecate(function(u,g,p,I,V){return e.factory.createClassExpression(void 0,u,g,p,I,V)},n),e.updateClassExpression=e.Debug.deprecate(function(u,g,p,I,V,L){return e.factory.updateClassExpression(u,void 0,g,p,I,V,L)},n),e.createPropertySignature=e.Debug.deprecate(function(u,g,p,I,V){var L=e.factory.createPropertySignature(u,g,p,I);return L.initializer=V,L},n),e.updatePropertySignature=e.Debug.deprecate(function(u,g,p,I,V,L){var m=e.factory.updatePropertySignature(u,g,p,I,V);return u.initializer!==L&&(m===u&&(m=e.factory.cloneNode(u)),m.initializer=L),m},n),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(u,g){return e.factory.createExpressionWithTypeArguments(g,u)},n),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(u,g,p){return e.factory.updateExpressionWithTypeArguments(u,p,g)},n),e.createArrowFunction=e.Debug.deprecate(function(u,g,p,I,V,L){return arguments.length===6?e.factory.createArrowFunction(u,g,p,I,V,L):arguments.length===5?e.factory.createArrowFunction(u,g,p,I,void 0,V):e.Debug.fail("Argument count mismatch")},n),e.updateArrowFunction=e.Debug.deprecate(function(u,g,p,I,V,L,m){return arguments.length===7?e.factory.updateArrowFunction(u,g,p,I,V,L,m):arguments.length===6?e.factory.updateArrowFunction(u,g,p,I,V,u.equalsGreaterThanToken,L):e.Debug.fail("Argument count mismatch")},n),e.createVariableDeclaration=e.Debug.deprecate(function(u,g,p,I){return arguments.length===4?e.factory.createVariableDeclaration(u,g,p,I):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(u,void 0,g,p):e.Debug.fail("Argument count mismatch")},n),e.updateVariableDeclaration=e.Debug.deprecate(function(u,g,p,I,V){return arguments.length===5?e.factory.updateVariableDeclaration(u,g,p,I,V):arguments.length===4?e.factory.updateVariableDeclaration(u,g,u.exclamationToken,p,I):e.Debug.fail("Argument count mismatch")},n),e.createImportClause=e.Debug.deprecate(function(u,g,p){return p===void 0&&(p=!1),e.factory.createImportClause(p,u,g)},n),e.updateImportClause=e.Debug.deprecate(function(u,g,p,I){return e.factory.updateImportClause(u,I,g,p)},n),e.createExportDeclaration=e.Debug.deprecate(function(u,g,p,I,V){return V===void 0&&(V=!1),e.factory.createExportDeclaration(u,g,V,p,I)},n),e.updateExportDeclaration=e.Debug.deprecate(function(u,g,p,I,V,L){return e.factory.updateExportDeclaration(u,g,p,L,I,V,u.assertClause)},n),e.createJSDocParamTag=e.Debug.deprecate(function(u,g,p,I){return e.factory.createJSDocParameterTag(void 0,u,g,p,!1,I?e.factory.createNodeArray([e.factory.createJSDocText(I)]):void 0)},n),e.createComma=e.Debug.deprecate(function(u,g){return e.factory.createComma(u,g)},n),e.createLessThan=e.Debug.deprecate(function(u,g){return e.factory.createLessThan(u,g)},n),e.createAssignment=e.Debug.deprecate(function(u,g){return e.factory.createAssignment(u,g)},n),e.createStrictEquality=e.Debug.deprecate(function(u,g){return e.factory.createStrictEquality(u,g)},n),e.createStrictInequality=e.Debug.deprecate(function(u,g){return e.factory.createStrictInequality(u,g)},n),e.createAdd=e.Debug.deprecate(function(u,g){return e.factory.createAdd(u,g)},n),e.createSubtract=e.Debug.deprecate(function(u,g){return e.factory.createSubtract(u,g)},n),e.createLogicalAnd=e.Debug.deprecate(function(u,g){return e.factory.createLogicalAnd(u,g)},n),e.createLogicalOr=e.Debug.deprecate(function(u,g){return e.factory.createLogicalOr(u,g)},n),e.createPostfixIncrement=e.Debug.deprecate(function(u){return e.factory.createPostfixIncrement(u)},n),e.createLogicalNot=e.Debug.deprecate(function(u){return e.factory.createLogicalNot(u)},n),e.createNode=e.Debug.deprecate(function(u,g,p){return g===void 0&&(g=0),p===void 0&&(p=0),e.setTextRangePosEnd(u===303?e.parseBaseNodeFactory.createBaseSourceFileNode(u):u===79?e.parseBaseNodeFactory.createBaseIdentifierNode(u):u===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(u):e.isNodeKind(u)?e.parseBaseNodeFactory.createBaseNode(u):e.parseBaseNodeFactory.createBaseTokenNode(u),g,p)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(u){var g=e.factory.cloneNode(u);return e.setTextRange(g,u),e.setParent(g,u.parent),g},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate(function(u){return u.kind===210},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(u){return e.isMemberName(u)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(mr||(mr={}));var sR=mr.createClassifier,SL=mr.createLanguageService,lR=mr.displayPartsToString,cR=mr.EndOfLineState,uR=mr.flattenDiagnosticMessageText,fR=mr.IndentStyle,qm=mr.ScriptKind,dR=mr.ScriptTarget,pR=mr.TokenClass,DL=mr,Ri={};Ri["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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,Ri["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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: CSSNumberish | null;
timelineTime?: CSSNumberish | null;
}
interface AssignedNodesOptions {
flatten?: boolean;
}
interface AudioBufferOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface AudioBufferSourceOptions {
buffer?: AudioBuffer | null;
detune?: number;
loop?: boolean;
loopEnd?: number;
loopStart?: number;
playbackRate?: number;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AudioContextOptions {
latencyHint?: AudioContextLatencyCategory | number;
sampleRate?: number;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
playbackTime: number;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
appidExclude?: string;
credProps?: boolean;
uvm?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
uvm?: UvmEntries;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit {
data: Blob;
timecode?: DOMHighResTimeStamp;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface 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?: CSSNumberish | null;
startTime?: CSSNumberish;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange extends DoubleRange {
exact?: number;
ideal?: number;
}
interface ConstrainULongRange extends ULongRange {
exact?: number;
ideal?: number;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CryptoKeyPair {
privateKey?: CryptoKey;
publicKey?: CryptoKey;
}
interface CustomEventInit<T = any> 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 DisplayMediaStreamConstraints {
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 | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
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 FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FontFaceDescriptors {
display?: string;
featureSettings?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: 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 GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface 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 ImportMeta {
url: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
threshold?: number | number[];
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface KeyboardEventInit extends EventModifierInit {
/** @deprecated */
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
/** @deprecated */
keyCode?: number;
location?: number;
repeat?: boolean;
}
interface Keyframe {
composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
[property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderErrorEventInit extends EventInit {
error: DOMException;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean | null;
seekOffset?: number | null;
seekTime?: number | null;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
preferCurrentTab?: boolean;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
cursor?: string[];
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
latency?: DoubleRange;
logicalSurface?: boolean;
noiseSuppression?: boolean[];
resizeMode?: string[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
}
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
latency?: ConstrainDouble;
noiseSuppression?: ConstrainBoolean;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
suppressLocalAudioPlayback?: ConstrainBoolean;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
deviceId?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
restrictOwnAudio?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
deviceId?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
noiseSuppression?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
suppressLocalAudioPlayback?: boolean;
width?: boolean;
}
interface MessageEventInit<T = any> 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 NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: DOMTimeStamp;
vibrate?: VibratePattern;
}
interface OfflineAudioCompletionEventInit extends EventInit {
renderedBuffer: AudioBuffer;
}
interface OfflineAudioContextOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface OptionalEffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
interface PannerOptions extends AudioNodeOptions {
coneInnerAngle?: number;
coneOuterAngle?: number;
coneOuterGain?: number;
distanceModel?: DistanceModelType;
maxDistance?: number;
orientationX?: number;
orientationY?: number;
orientationZ?: number;
panningModel?: PanningModelType;
positionX?: number;
positionY?: number;
positionZ?: number;
refDistance?: number;
rolloffFactor?: number;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
paymentMethodErrors?: any;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
methodDetails?: any;
methodName?: string;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PeriodicWaveConstraints {
disableNormalization?: boolean;
}
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
imag?: number[] | Float32Array;
real?: number[] | Float32Array;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PointerEventInit extends MouseEventInit {
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
predictedEvents?: PointerEvent[];
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PropertyIndexedKeyframes {
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PublicKeyCredentialCreationOptions {
attestation?: AttestationConveyancePreference;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: BufferSource;
excludeCredentials?: PublicKeyCredentialDescriptor[];
extensions?: AuthenticationExtensionsClientInputs;
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialEntity {
name: string;
}
interface PublicKeyCredentialParameters {
alg: COSEAlgorithmIdentifier;
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialRequestOptions {
allowCredentials?: PublicKeyCredentialDescriptor[];
challenge: BufferSource;
extensions?: AuthenticationExtensionsClientInputs;
rpId?: string;
timeout?: number;
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: DOMTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
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?: DOMTimeStamp;
}
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 RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string | null;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
currentRoundTripTime?: number;
localCandidateId: string;
nominated?: boolean;
remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
transportId: string;
}
interface RTCIceServer {
credential?: string;
credentialType?: RTCIceCredentialType;
urls: string | string[];
username?: string;
}
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
firCount?: number;
framesDecoded?: number;
nackCount?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
firCount?: number;
framesEncoded?: number;
nackCount?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsDiscarded?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodecCapability[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodecCapability {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecParameters {
channels?: number;
clockRate: number;
mimeType: string;
payloadType: number;
sdpFmtpLine?: string;
}
interface RTCRtpCodingParameters {
rid?: string;
}
interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
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 RTCStats {
id: string;
timestamp: DOMHighResTimeStamp;
type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
remoteCertificateId?: string;
rtcpTransportStatsId?: string;
selectedCandidatePairId?: string;
srtpCipher?: string;
tlsVersion?: string;
}
interface ReadableStreamDefaultReadDoneResult {
done: true;
value?: undefined;
}
interface ReadableStreamDefaultReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* 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<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
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;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResizeObserverOptions {
box?: ResizeObserverBoxOptions;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SVGBoundingBoxOptions {
clipped?: boolean;
fill?: boolean;
markers?: boolean;
stroke?: boolean;
}
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}
interface ScrollOptions {
behavior?: ScrollBehavior;
}
interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
files?: File[];
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
interface SpeechSynthesisEventInit extends EventInit {
charIndex?: number;
charLength?: number;
elapsedTime?: number;
name?: string;
utterance: SpeechSynthesisUtterance;
}
interface StaticRangeInit {
endContainer: Node;
endOffset: number;
startContainer: Node;
startOffset: number;
}
interface StereoPannerOptions extends AudioNodeOptions {
pan?: number;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StorageEventInit extends EventInit {
key?: string | null;
newValue?: string | null;
oldValue?: string | null;
storageArea?: Storage | null;
url?: string;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: any[];
}
interface SubmitEventInit extends EventInit {
submitter?: HTMLElement | null;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
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<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
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 UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: undefined;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
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 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;
}
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
readonly FILTER_ACCEPT: number;
readonly FILTER_REJECT: number;
readonly FILTER_SKIP: number;
readonly SHOW_ALL: number;
readonly SHOW_ATTRIBUTE: number;
readonly SHOW_CDATA_SECTION: number;
readonly SHOW_COMMENT: number;
readonly SHOW_DOCUMENT: number;
readonly SHOW_DOCUMENT_FRAGMENT: number;
readonly SHOW_DOCUMENT_TYPE: number;
readonly SHOW_ELEMENT: number;
readonly SHOW_ENTITY: number;
readonly SHOW_ENTITY_REFERENCE: number;
readonly SHOW_NOTATION: number;
readonly SHOW_PROCESSING_INSTRUCTION: number;
readonly SHOW_TEXT: number;
};
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. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
}
interface ARIAMixin {
ariaAtomic: string;
ariaAutoComplete: string;
ariaBusy: string;
ariaChecked: string;
ariaColCount: string;
ariaColIndex: string;
ariaColSpan: string;
ariaCurrent: string;
ariaDisabled: string;
ariaExpanded: string;
ariaHasPopup: string;
ariaHidden: string;
ariaKeyShortcuts: string;
ariaLabel: string;
ariaLevel: string;
ariaLive: string;
ariaModal: string;
ariaMultiLine: string;
ariaMultiSelectable: string;
ariaOrientation: string;
ariaPlaceholder: string;
ariaPosInSet: string;
ariaPressed: string;
ariaReadOnly: string;
ariaRequired: string;
ariaRoleDescription: string;
ariaRowCount: string;
ariaRowIndex: string;
ariaRowSpan: string;
ariaSelected: string;
ariaSetSize: string;
ariaSort: string;
ariaValueMax: string;
ariaValueMin: string;
ariaValueNow: string;
ariaValueText: string;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/** Returns the AbortSignal object associated with this object. */
readonly signal: AbortSignal;
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
abort(): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(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;
// abort(): AbortSignal; - To be re-added in the future
};
interface AbstractRange {
/** Returns true if range is collapsed, and false otherwise. */
readonly collapsed: boolean;
/** Returns range's end node. */
readonly endContainer: Node;
/** Returns range's end offset. */
readonly endOffset: number;
/** Returns range's start node. */
readonly startContainer: Node;
/** Returns range's start offset. */
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */
interface AnalyserNode extends AudioNode {
fftSize: number;
readonly frequencyBinCount: number;
maxDecibels: number;
minDecibels: number;
smoothingTimeConstant: number;
getByteFrequencyData(array: Uint8Array): void;
getByteTimeDomainData(array: Uint8Array): void;
getFloatFrequencyData(array: Float32Array): void;
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
interface Animation extends EventTarget {
currentTime: CSSNumberish | null;
effect: AnimationEffect | null;
readonly finished: Promise<Animation>;
id: string;
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
onremove: ((this: Animation, ev: Event) => any) | null;
readonly pending: boolean;
readonly playState: AnimationPlayState;
playbackRate: number;
readonly ready: Promise<Animation>;
readonly replaceState: AnimationReplaceState;
startTime: CSSNumberish | null;
timeline: AnimationTimeline | null;
cancel(): void;
commitStyles(): void;
finish(): void;
pause(): void;
persist(): void;
play(): void;
reverse(): void;
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(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;
};
interface AnimationEffect {
getComputedTiming(): ComputedEffectTiming;
getTiming(): EffectTiming;
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/** Events providing information related to animations. */
interface AnimationEvent extends Event {
readonly animationName: string;
readonly elapsedTime: number;
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
interface AnimationPlaybackEvent extends Event {
readonly currentTime: CSSNumberish | null;
readonly timelineTime: CSSNumberish | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
interface AnimationTimeline {
readonly currentTime: number | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */
interface Attr extends Node {
readonly localName: string;
readonly name: string;
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
readonly ownerElement: Element | null;
readonly prefix: string | null;
readonly specified: boolean;
value: string;
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */
interface AudioBuffer {
readonly duration: number;
readonly length: number;
readonly numberOfChannels: number;
readonly sampleRate: number;
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
buffer: AudioBuffer | null;
readonly detune: AudioParam;
loop: boolean;
loopEnd: number;
loopStart: number;
readonly playbackRate: AudioParam;
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};
/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */
interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
getOutputTimestamp(): AudioTimestamp;
resume(): Promise<void>;
suspend(): Promise<void>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioContext: {
prototype: AudioContext;
new(contextOptions?: AudioContextOptions): AudioContext;
};
/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */
interface AudioDestinationNode extends AudioNode {
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */
interface AudioListener {
readonly forwardX: AudioParam;
readonly forwardY: AudioParam;
readonly forwardZ: AudioParam;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
readonly upX: AudioParam;
readonly upY: AudioParam;
readonly upZ: AudioParam;
/** @deprecated */
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
};
/** A generic interface for representing an audio processing module. Examples include: */
interface AudioNode extends EventTarget {
channelCount: number;
channelCountMode: ChannelCountMode;
channelInterpretation: ChannelInterpretation;
readonly context: BaseAudioContext;
readonly numberOfInputs: number;
readonly numberOfOutputs: number;
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
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). */
interface AudioParam {
automationRate: AutomationRate;
readonly defaultValue: number;
readonly maxValue: number;
readonly minValue: number;
value: number;
cancelAndHoldAtTime(cancelTime: number): AudioParam;
cancelScheduledValues(cancelTime: number): AudioParam;
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
setValueAtTime(value: number, startTime: number): AudioParam;
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
interface AudioParamMap {
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}
declare var AudioParamMap: {
prototype: AudioParamMap;
new(): AudioParamMap;
};
/**
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
*/
interface AudioProcessingEvent extends Event {
/** @deprecated */
readonly inputBuffer: AudioBuffer;
/** @deprecated */
readonly outputBuffer: AudioBuffer;
/** @deprecated */
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
interface AudioScheduledSourceNode extends AudioNode {
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
start(when?: number): void;
stop(when?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioScheduledSourceNode: {
prototype: AudioScheduledSourceNode;
new(): AudioScheduledSourceNode;
};
/** Available only in secure contexts. */
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
/** Available only in secure contexts. */
interface AudioWorkletNode extends AudioNode {
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
readonly parameters: AudioParamMap;
readonly port: MessagePort;
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioWorkletNode: {
prototype: AudioWorkletNode;
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
};
/** Available only in secure contexts. */
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
readonly authenticatorData: ArrayBuffer;
readonly signature: ArrayBuffer;
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/** Available only in secure contexts. */
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
readonly attestationObject: ArrayBuffer;
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/** Available only in secure contexts. */
interface AuthenticatorResponse {
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
interface BarProp {
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
interface BaseAudioContext extends EventTarget {
/** Available only in secure contexts. */
readonly audioWorklet: AudioWorklet;
readonly currentTime: number;
readonly destination: AudioDestinationNode;
readonly listener: AudioListener;
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
readonly sampleRate: number;
readonly state: AudioContextState;
createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
createBufferSource(): AudioBufferSourceNode;
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
createConstantSource(): ConstantSourceNode;
createConvolver(): ConvolverNode;
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/** @deprecated */
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BaseAudioContext: {
prototype: BaseAudioContext;
new(): BaseAudioContext;
};
/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */
interface BeforeUnloadEvent extends Event {
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */
interface BiquadFilterNode extends AudioNode {
readonly Q: AudioParam;
readonly detune: AudioParam;
readonly frequency: AudioParam;
readonly gain: AudioParam;
type: BiquadFilterType;
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface BlobEvent extends Event {
readonly data: Blob;
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/** Returns the channel name (as passed to the constructor). */
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
close(): void;
/** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section. */
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
interface CSSAnimation extends Animation {
readonly animationName: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSAnimation: {
prototype: CSSAnimation;
new(): CSSAnimation;
};
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
interface CSSConditionRule extends CSSGroupingRule {
conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
interface CSSCounterStyleRule extends CSSRule {
additiveSymbols: string;
fallback: string;
name: string;
negative: string;
pad: string;
prefix: string;
range: string;
speakAs: string;
suffix: string;
symbols: string;
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
interface CSSFontFaceRule extends CSSRule {
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
/** Any CSS at-rule that contains other rules nested within it. */
interface CSSGroupingRule extends CSSRule {
readonly cssRules: CSSRuleList;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
interface CSSImportRule extends CSSRule {
readonly href: string;
readonly media: MediaList;
readonly styleSheet: CSSStyleSheet;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */
interface CSSKeyframeRule extends CSSRule {
keyText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */
interface CSSKeyframesRule extends CSSRule {
readonly cssRules: CSSRuleList;
name: string;
appendRule(rule: string): void;
deleteRule(select: string): void;
findRule(select: string): CSSKeyframeRule | null;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */
interface CSSMediaRule extends CSSConditionRule {
readonly media: MediaList;
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */
interface CSSNamespaceRule extends CSSRule {
readonly namespaceURI: string;
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */
interface CSSPageRule extends CSSGroupingRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */
interface CSSRule {
cssText: string;
readonly parentRule: CSSRule | null;
readonly parentStyleSheet: CSSStyleSheet | null;
/** @deprecated */
readonly type: number;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly KEYFRAME_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
readonly CHARSET_RULE: number;
readonly FONT_FACE_RULE: number;
readonly IMPORT_RULE: number;
readonly KEYFRAMES_RULE: number;
readonly KEYFRAME_RULE: number;
readonly MEDIA_RULE: number;
readonly NAMESPACE_RULE: number;
readonly PAGE_RULE: number;
readonly STYLE_RULE: number;
readonly SUPPORTS_RULE: number;
};
/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */
interface CSSRuleList {
readonly length: number;
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */
interface CSSStyleDeclaration {
accentColor: string;
alignContent: string;
alignItems: string;
alignSelf: string;
alignmentBaseline: string;
all: string;
animation: string;
animationDelay: string;
animationDirection: string;
animationDuration: string;
animationFillMode: string;
animationIterationCount: string;
animationName: string;
animationPlayState: string;
animationTimingFunction: string;
appearance: string;
aspectRatio: string;
backfaceVisibility: string;
background: string;
backgroundAttachment: string;
backgroundBlendMode: string;
backgroundClip: string;
backgroundColor: string;
backgroundImage: string;
backgroundOrigin: string;
backgroundPosition: string;
backgroundPositionX: string;
backgroundPositionY: string;
backgroundRepeat: string;
backgroundSize: string;
baselineShift: string;
blockSize: string;
border: string;
borderBlock: string;
borderBlockColor: string;
borderBlockEnd: string;
borderBlockEndColor: string;
borderBlockEndStyle: string;
borderBlockEndWidth: string;
borderBlockStart: string;
borderBlockStartColor: string;
borderBlockStartStyle: string;
borderBlockStartWidth: string;
borderBlockStyle: string;
borderBlockWidth: string;
borderBottom: string;
borderBottomColor: string;
borderBottomLeftRadius: string;
borderBottomRightRadius: string;
borderBottomStyle: string;
borderBottomWidth: string;
borderCollapse: string;
borderColor: string;
borderEndEndRadius: string;
borderEndStartRadius: string;
borderImage: string;
borderImageOutset: string;
borderImageRepeat: string;
borderImageSlice: string;
borderImageSource: string;
borderImageWidth: string;
borderInline: string;
borderInlineColor: string;
borderInlineEnd: string;
borderInlineEndColor: string;
borderInlineEndStyle: string;
borderInlineEndWidth: string;
borderInlineStart: string;
borderInlineStartColor: string;
borderInlineStartStyle: string;
borderInlineStartWidth: string;
borderInlineStyle: string;
borderInlineWidth: string;
borderLeft: string;
borderLeftColor: string;
borderLeftStyle: string;
borderLeftWidth: string;
borderRadius: string;
borderRight: string;
borderRightColor: string;
borderRightStyle: string;
borderRightWidth: string;
borderSpacing: string;
borderStartEndRadius: string;
borderStartStartRadius: string;
borderStyle: string;
borderTop: string;
borderTopColor: string;
borderTopLeftRadius: string;
borderTopRightRadius: string;
borderTopStyle: string;
borderTopWidth: string;
borderWidth: string;
bottom: string;
boxShadow: string;
boxSizing: string;
breakAfter: string;
breakBefore: string;
breakInside: string;
captionSide: string;
caretColor: string;
clear: string;
/** @deprecated */
clip: string;
clipPath: string;
clipRule: string;
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
colorScheme: string;
columnCount: string;
columnFill: string;
columnGap: string;
columnRule: string;
columnRuleColor: string;
columnRuleStyle: string;
columnRuleWidth: string;
columnSpan: string;
columnWidth: string;
columns: string;
contain: string;
content: string;
counterIncrement: string;
counterReset: string;
counterSet: string;
cssFloat: string;
cssText: string;
cursor: string;
direction: string;
display: string;
dominantBaseline: string;
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
filter: string;
flex: string;
flexBasis: string;
flexDirection: string;
flexFlow: string;
flexGrow: string;
flexShrink: string;
flexWrap: string;
float: string;
floodColor: string;
floodOpacity: string;
font: string;
fontFamily: string;
fontFeatureSettings: string;
fontKerning: string;
fontOpticalSizing: string;
fontSize: string;
fontSizeAdjust: string;
fontStretch: string;
fontStyle: string;
fontSynthesis: string;
fontVariant: string;
/** @deprecated */
fontVariantAlternates: string;
fontVariantCaps: string;
fontVariantEastAsian: string;
fontVariantLigatures: string;
fontVariantNumeric: string;
fontVariantPosition: string;
fontVariationSettings: string;
fontWeight: string;
gap: string;
grid: string;
gridArea: string;
gridAutoColumns: string;
gridAutoFlow: string;
gridAutoRows: string;
gridColumn: string;
gridColumnEnd: string;
/** @deprecated This is a legacy alias of \`columnGap\`. */
gridColumnGap: string;
gridColumnStart: string;
/** @deprecated This is a legacy alias of \`gap\`. */
gridGap: string;
gridRow: string;
gridRowEnd: string;
/** @deprecated This is a legacy alias of \`rowGap\`. */
gridRowGap: string;
gridRowStart: string;
gridTemplate: string;
gridTemplateAreas: string;
gridTemplateColumns: string;
gridTemplateRows: string;
height: string;
hyphens: string;
/** @deprecated */
imageOrientation: string;
imageRendering: string;
inlineSize: string;
inset: string;
insetBlock: string;
insetBlockEnd: string;
insetBlockStart: string;
insetInline: string;
insetInlineEnd: string;
insetInlineStart: string;
isolation: string;
justifyContent: string;
justifyItems: string;
justifySelf: string;
left: string;
readonly length: number;
letterSpacing: string;
lightingColor: string;
lineBreak: string;
lineHeight: string;
listStyle: string;
listStyleImage: string;
listStylePosition: string;
listStyleType: string;
margin: string;
marginBlock: string;
marginBlockEnd: string;
marginBlockStart: string;
marginBottom: string;
marginInline: string;
marginInlineEnd: string;
marginInlineStart: string;
marginLeft: string;
marginRight: string;
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
mask: string;
maskType: string;
maxBlockSize: string;
maxHeight: string;
maxInlineSize: string;
maxWidth: string;
minBlockSize: string;
minHeight: string;
minInlineSize: string;
minWidth: string;
mixBlendMode: string;
objectFit: string;
objectPosition: string;
offset: string;
offsetAnchor: string;
offsetDistance: string;
offsetPath: string;
offsetRotate: string;
opacity: string;
order: string;
orphans: string;
outline: string;
outlineColor: string;
outlineOffset: string;
outlineStyle: string;
outlineWidth: string;
overflow: string;
overflowAnchor: string;
overflowWrap: string;
overflowX: string;
overflowY: string;
overscrollBehavior: string;
overscrollBehaviorBlock: string;
overscrollBehaviorInline: string;
overscrollBehaviorX: string;
overscrollBehaviorY: string;
padding: string;
paddingBlock: string;
paddingBlockEnd: string;
paddingBlockStart: string;
paddingBottom: string;
paddingInline: string;
paddingInlineEnd: string;
paddingInlineStart: string;
paddingLeft: string;
paddingRight: string;
paddingTop: string;
pageBreakAfter: string;
pageBreakBefore: string;
pageBreakInside: string;
paintOrder: string;
readonly parentRule: CSSRule | null;
perspective: string;
perspectiveOrigin: string;
placeContent: string;
placeItems: string;
placeSelf: string;
pointerEvents: string;
position: string;
quotes: string;
resize: string;
right: string;
rotate: string;
rowGap: string;
rubyPosition: string;
scale: string;
scrollBehavior: string;
scrollMargin: string;
scrollMarginBlock: string;
scrollMarginBlockEnd: string;
scrollMarginBlockStart: string;
scrollMarginBottom: string;
scrollMarginInline: string;
scrollMarginInlineEnd: string;
scrollMarginInlineStart: string;
scrollMarginLeft: string;
scrollMarginRight: string;
scrollMarginTop: string;
scrollPadding: string;
scrollPaddingBlock: string;
scrollPaddingBlockEnd: string;
scrollPaddingBlockStart: string;
scrollPaddingBottom: string;
scrollPaddingInline: string;
scrollPaddingInlineEnd: string;
scrollPaddingInlineStart: string;
scrollPaddingLeft: string;
scrollPaddingRight: string;
scrollPaddingTop: string;
scrollSnapAlign: string;
scrollSnapStop: string;
scrollSnapType: string;
shapeImageThreshold: string;
shapeMargin: string;
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
tabSize: string;
tableLayout: string;
textAlign: string;
textAlignLast: string;
textAnchor: string;
textCombineUpright: string;
textDecoration: string;
textDecorationColor: string;
textDecorationLine: string;
textDecorationSkipInk: string;
textDecorationStyle: string;
textDecorationThickness: string;
textEmphasis: string;
textEmphasisColor: string;
textEmphasisPosition: string;
textEmphasisStyle: string;
textIndent: string;
textOrientation: string;
textOverflow: string;
textRendering: string;
textShadow: string;
textTransform: string;
textUnderlineOffset: string;
textUnderlinePosition: string;
top: string;
touchAction: string;
transform: string;
transformBox: string;
transformOrigin: string;
transformStyle: string;
transition: string;
transitionDelay: string;
transitionDuration: string;
transitionProperty: string;
transitionTimingFunction: string;
translate: string;
unicodeBidi: string;
userSelect: string;
verticalAlign: string;
visibility: string;
/** @deprecated This is a legacy alias of \`alignContent\`. */
webkitAlignContent: string;
/** @deprecated This is a legacy alias of \`alignItems\`. */
webkitAlignItems: string;
/** @deprecated This is a legacy alias of \`alignSelf\`. */
webkitAlignSelf: string;
/** @deprecated This is a legacy alias of \`animation\`. */
webkitAnimation: string;
/** @deprecated This is a legacy alias of \`animationDelay\`. */
webkitAnimationDelay: string;
/** @deprecated This is a legacy alias of \`animationDirection\`. */
webkitAnimationDirection: string;
/** @deprecated This is a legacy alias of \`animationDuration\`. */
webkitAnimationDuration: string;
/** @deprecated This is a legacy alias of \`animationFillMode\`. */
webkitAnimationFillMode: string;
/** @deprecated This is a legacy alias of \`animationIterationCount\`. */
webkitAnimationIterationCount: string;
/** @deprecated This is a legacy alias of \`animationName\`. */
webkitAnimationName: string;
/** @deprecated This is a legacy alias of \`animationPlayState\`. */
webkitAnimationPlayState: string;
/** @deprecated This is a legacy alias of \`animationTimingFunction\`. */
webkitAnimationTimingFunction: string;
/** @deprecated This is a legacy alias of \`appearance\`. */
webkitAppearance: string;
/** @deprecated This is a legacy alias of \`backfaceVisibility\`. */
webkitBackfaceVisibility: string;
/** @deprecated This is a legacy alias of \`backgroundClip\`. */
webkitBackgroundClip: string;
/** @deprecated This is a legacy alias of \`backgroundOrigin\`. */
webkitBackgroundOrigin: string;
/** @deprecated This is a legacy alias of \`backgroundSize\`. */
webkitBackgroundSize: string;
/** @deprecated This is a legacy alias of \`borderBottomLeftRadius\`. */
webkitBorderBottomLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderBottomRightRadius\`. */
webkitBorderBottomRightRadius: string;
/** @deprecated This is a legacy alias of \`borderRadius\`. */
webkitBorderRadius: string;
/** @deprecated This is a legacy alias of \`borderTopLeftRadius\`. */
webkitBorderTopLeftRadius: string;
/** @deprecated This is a legacy alias of \`borderTopRightRadius\`. */
webkitBorderTopRightRadius: string;
/** @deprecated This is a legacy alias of \`boxAlign\`. */
webkitBoxAlign: string;
/** @deprecated This is a legacy alias of \`boxFlex\`. */
webkitBoxFlex: string;
/** @deprecated This is a legacy alias of \`boxOrdinalGroup\`. */
webkitBoxOrdinalGroup: string;
/** @deprecated This is a legacy alias of \`boxOrient\`. */
webkitBoxOrient: string;
/** @deprecated This is a legacy alias of \`boxPack\`. */
webkitBoxPack: string;
/** @deprecated This is a legacy alias of \`boxShadow\`. */
webkitBoxShadow: string;
/** @deprecated This is a legacy alias of \`boxSizing\`. */
webkitBoxSizing: string;
/** @deprecated This is a legacy alias of \`filter\`. */
webkitFilter: string;
/** @deprecated This is a legacy alias of \`flex\`. */
webkitFlex: string;
/** @deprecated This is a legacy alias of \`flexBasis\`. */
webkitFlexBasis: string;
/** @deprecated This is a legacy alias of \`flexDirection\`. */
webkitFlexDirection: string;
/** @deprecated This is a legacy alias of \`flexFlow\`. */
webkitFlexFlow: string;
/** @deprecated This is a legacy alias of \`flexGrow\`. */
webkitFlexGrow: string;
/** @deprecated This is a legacy alias of \`flexShrink\`. */
webkitFlexShrink: string;
/** @deprecated This is a legacy alias of \`flexWrap\`. */
webkitFlexWrap: string;
/** @deprecated This is a legacy alias of \`justifyContent\`. */
webkitJustifyContent: string;
webkitLineClamp: string;
/** @deprecated This is a legacy alias of \`mask\`. */
webkitMask: string;
/** @deprecated This is a legacy alias of \`maskBorder\`. */
webkitMaskBoxImage: string;
/** @deprecated This is a legacy alias of \`maskBorderOutset\`. */
webkitMaskBoxImageOutset: string;
/** @deprecated This is a legacy alias of \`maskBorderRepeat\`. */
webkitMaskBoxImageRepeat: string;
/** @deprecated This is a legacy alias of \`maskBorderSlice\`. */
webkitMaskBoxImageSlice: string;
/** @deprecated This is a legacy alias of \`maskBorderSource\`. */
webkitMaskBoxImageSource: string;
/** @deprecated This is a legacy alias of \`maskBorderWidth\`. */
webkitMaskBoxImageWidth: string;
/** @deprecated This is a legacy alias of \`maskClip\`. */
webkitMaskClip: string;
webkitMaskComposite: string;
/** @deprecated This is a legacy alias of \`maskImage\`. */
webkitMaskImage: string;
/** @deprecated This is a legacy alias of \`maskOrigin\`. */
webkitMaskOrigin: string;
/** @deprecated This is a legacy alias of \`maskPosition\`. */
webkitMaskPosition: string;
/** @deprecated This is a legacy alias of \`maskRepeat\`. */
webkitMaskRepeat: string;
/** @deprecated This is a legacy alias of \`maskSize\`. */
webkitMaskSize: string;
/** @deprecated This is a legacy alias of \`order\`. */
webkitOrder: string;
/** @deprecated This is a legacy alias of \`perspective\`. */
webkitPerspective: string;
/** @deprecated This is a legacy alias of \`perspectiveOrigin\`. */
webkitPerspectiveOrigin: string;
webkitTextFillColor: string;
webkitTextStroke: string;
webkitTextStrokeColor: string;
webkitTextStrokeWidth: string;
/** @deprecated This is a legacy alias of \`transform\`. */
webkitTransform: string;
/** @deprecated This is a legacy alias of \`transformOrigin\`. */
webkitTransformOrigin: string;
/** @deprecated This is a legacy alias of \`transformStyle\`. */
webkitTransformStyle: string;
/** @deprecated This is a legacy alias of \`transition\`. */
webkitTransition: string;
/** @deprecated This is a legacy alias of \`transitionDelay\`. */
webkitTransitionDelay: string;
/** @deprecated This is a legacy alias of \`transitionDuration\`. */
webkitTransitionDuration: string;
/** @deprecated This is a legacy alias of \`transitionProperty\`. */
webkitTransitionProperty: string;
/** @deprecated This is a legacy alias of \`transitionTimingFunction\`. */
webkitTransitionTimingFunction: string;
/** @deprecated This is a legacy alias of \`userSelect\`. */
webkitUserSelect: string;
whiteSpace: string;
widows: string;
width: string;
willChange: string;
wordBreak: string;
wordSpacing: string;
/** @deprecated */
wordWrap: string;
writingMode: string;
zIndex: string;
getPropertyPriority(property: string): string;
getPropertyValue(property: string): string;
item(index: number): string;
removeProperty(property: string): string;
setProperty(property: string, value: string | null, priority?: string): void;
[index: number]: string;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
};
/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */
interface CSSStyleRule extends CSSRule {
selectorText: string;
readonly style: CSSStyleDeclaration;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */
interface CSSStyleSheet extends StyleSheet {
readonly cssRules: CSSRuleList;
readonly ownerRule: CSSRule | null;
/** @deprecated */
readonly rules: CSSRuleList;
/** @deprecated */
addRule(selector?: string, style?: string, index?: number): number;
deleteRule(index: number): void;
insertRule(rule: string, index?: number): number;
/** @deprecated */
removeRule(index?: number): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
interface CSSTransition extends Animation {
readonly transitionProperty: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(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;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*/
interface Cache {
add(request: RequestInfo): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*/
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
globalAlpha: number;
globalCompositeOperation: string;
}
interface CanvasDrawImage {
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 {
beginPath(): void;
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
fillStyle: string | CanvasGradient | CanvasPattern;
strokeStyle: string | CanvasGradient | CanvasPattern;
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
filter: string;
}
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
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 {
imageSmoothingEnabled: boolean;
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
}
interface CanvasPathDrawingStyles {
lineCap: CanvasLineCap;
lineDashOffset: number;
lineJoin: CanvasLineJoin;
lineWidth: number;
miterLimit: number;
getLineDash(): number[];
setLineDash(segments: number[]): void;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
interface CanvasPattern {
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
clearRect(x: number, y: number, w: number, h: number): void;
fillRect(x: number, y: number, w: number, h: number): void;
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. It is used for drawing shapes, text, images, and other objects. */
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
readonly canvas: HTMLCanvasElement;
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
shadowBlur: number;
shadowColor: string;
shadowOffsetX: number;
shadowOffsetY: number;
}
interface CanvasState {
restore(): void;
save(): void;
}
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
direction: CanvasDirection;
font: string;
textAlign: CanvasTextAlign;
textBaseline: CanvasTextBaseline;
}
interface CanvasTransform {
getTransform(): DOMMatrix;
resetTransform(): void;
rotate(angle: number): void;
scale(x: number, y: number): void;
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
}
/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
interface ChannelMergerNode extends AudioNode {
}
declare var ChannelMergerNode: {
prototype: ChannelMergerNode;
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};
/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */
interface ChannelSplitterNode extends AudioNode {
}
declare var ChannelSplitterNode: {
prototype: ChannelSplitterNode;
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};
/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
data: string;
readonly length: number;
readonly ownerDocument: Document;
appendData(data: string): void;
deleteData(offset: number, count: number): void;
insertData(offset: number, data: string): void;
replaceData(offset: number, count: number, data: string): void;
substringData(offset: number, count: number): string;
}
declare var CharacterData: {
prototype: CharacterData;
new(): CharacterData;
};
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
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.
*/
before(...nodes: (Node | string)[]): void;
/** Removes node. */
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.
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
/** Available only in secure contexts. */
interface Clipboard extends EventTarget {
read(): Promise<ClipboardItems>;
readText(): Promise<string>;
write(data: ClipboardItems): Promise<void>;
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */
interface ClipboardEvent extends Event {
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
interface ClipboardItem {
readonly types: ReadonlyArray<string>;
getType(type: string): Promise<Blob>;
}
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, ClipboardItemDataType | PromiseLike<ClipboardItemDataType>>, options?: ClipboardItemOptions): ClipboardItem;
};
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
interface CloseEvent extends Event {
/** Returns the WebSocket connection close code provided by the server. */
readonly code: number;
/** Returns the WebSocket connection close reason provided by the server. */
readonly reason: string;
/** Returns true if the connection closed cleanly; false otherwise. */
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */
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. */
interface CompositionEvent extends UIEvent {
readonly data: string;
/** @deprecated */
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
interface ConstantSourceNode extends AudioScheduledSourceNode {
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ConstantSourceNode: {
prototype: ConstantSourceNode;
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
};
/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */
interface ConvolverNode extends AudioNode {
buffer: AudioBuffer | null;
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Available only in secure contexts. */
interface Credential {
readonly id: string;
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/** Available only in secure contexts. */
interface CredentialsContainer {
create(options?: CredentialCreationOptions): Promise<Credential | null>;
get(options?: CredentialRequestOptions): Promise<Credential | null>;
preventSilentAccess(): Promise<void>;
store(credential: Credential): Promise<Credential>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
/** Available only in secure contexts. */
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*/
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomElementRegistry {
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
get(name: string): CustomElementConstructor | undefined;
upgrade(root: Node): void;
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for synthetic events. */
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException extends Error {
readonly code: number;
readonly message: string;
readonly name: string;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
};
/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */
interface DOMImplementation {
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
createHTMLDocument(title?: string): Document;
/** @deprecated */
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
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;
toString(): string;
};
/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */
interface DOMParser {
/**
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
*
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
*
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
*
* Values other than the above for type will cause a TypeError exception to be thrown.
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
interface DOMRectList {
readonly length: number;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements. */
interface DOMStringMap {
[name: string]: string | undefined;
}
declare var DOMStringMap: {
prototype: DOMStringMap;
new(): DOMStringMap;
};
/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */
interface DOMTokenList {
/** Returns the number of tokens. */
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
add(...tokens: string[]): void;
/** Returns true if token is present, and false otherwise. */
contains(token: string): boolean;
/** Returns the token with index index. */
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
*
* Returns true if token was replaced with newToken, and false otherwise.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*/
replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
* Throws a TypeError if the associated attribute has no supported tokens defined.
*/
supports(token: string): boolean;
/**
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
*
* Returns true if token is now present, and false otherwise.
*
* Throws a "SyntaxError" DOMException if token is empty.
*
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*/
toggle(token: string, force?: boolean): boolean;
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
[index: number]: string;
}
declare var DOMTokenList: {
prototype: DOMTokenList;
new(): DOMTokenList;
};
/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */
interface DataTransfer {
/**
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
*
* Can be set, to change the selected operation.
*
* The possible values are "none", "copy", "link", and "move".
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
*
* Can be set (during the dragstart event), to change the allowed operations.
*
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/** Returns a FileList of the files being dragged, if any. */
readonly files: FileList;
/** Returns a DataTransferItemList object, with the drag data. */
readonly items: DataTransferItemList;
/** Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files". */
readonly types: ReadonlyArray<string>;
/** Removes the data of the specified formats. Removes all data if the argument is omitted. */
clearData(format?: string): void;
/** Returns the specified data. If there is no such data, returns the empty string. */
getData(format: string): string;
/** Adds the specified data. */
setData(format: string, data: string): void;
/** Uses the given element to update the drag feedback, replacing any previously specified feedback. */
setDragImage(image: Element, x: number, y: number): void;
}
declare var DataTransfer: {
prototype: DataTransfer;
new(): DataTransfer;
};
/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */
interface DataTransferItem {
/** Returns the drag data item kind, one of: "string", "file". */
readonly kind: string;
/** Returns the drag data item type string. */
readonly type: string;
/** Returns a File object, if the drag data item kind is File. */
getAsFile(): File | null;
/** Invokes the callback with the string data as the argument, if the drag data item kind is text. */
getAsString(callback: FunctionStringCallback | null): void;
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */
interface DataTransferItemList {
/** Returns the number of items in the drag data store. */
readonly length: number;
/** Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also. */
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/** Removes all the entries in the drag data store. */
clear(): void;
/** Removes the indexth entry in the drag data store. */
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** 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. */
interface DelayNode extends AudioNode {
readonly delayTime: AudioParam;
}
declare var DelayNode: {
prototype: DelayNode;
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
/**
* The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
* Available only in secure contexts.
*/
interface DeviceMotionEvent extends Event {
readonly acceleration: DeviceMotionEventAcceleration | null;
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
readonly interval: number;
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
/** Available only in secure contexts. */
interface DeviceMotionEventAcceleration {
readonly x: number | null;
readonly y: number | null;
readonly z: number | null;
}
/** Available only in secure contexts. */
interface DeviceMotionEventRotationRate {
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
/**
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
* Available only in secure contexts.
*/
interface DeviceOrientationEvent extends Event {
readonly absolute: boolean;
readonly alpha: number | null;
readonly beta: number | null;
readonly gamma: number | null;
}
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": Event;
"visibilitychange": Event;
}
/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */
interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/** Sets or gets the URL for the current document. */
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*/
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
* @deprecated
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*/
bgColor: string;
/** Specifies the beginning and end of the document body. */
body: HTMLElement;
/** Returns document's encoding. */
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly charset: string;
/** Gets a value that indicates whether standards-compliant mode is switched on for the object. */
readonly compatMode: string;
/** Returns document's content type. */
readonly contentType: string;
/**
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
*
* Can be set, to add a new cookie to the element's set of HTTP cookies.
*
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
*/
cookie: string;
/**
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
*
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/** Returns the Window object of the active document. */
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/** Sets or gets a value that indicates whether the document can be edited. */
designMode: string;
/** Sets or retrieves a value that indicates the reading order of the object. */
dir: string;
/** Gets an object representing the document type declaration associated with the current document. */
readonly doctype: DocumentType | null;
/** Gets a reference to the root node of the document. */
readonly documentElement: HTMLElement;
/** Returns document's URL. */
readonly documentURI: string;
/** Sets or gets the security domain of the document. */
domain: string;
/** Retrieves a collection of all embed objects in the document. */
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*/
fgColor: string;
/** Retrieves a collection, in source order, of all form objects in the document. */
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/** @deprecated */
readonly fullscreen: boolean;
/** Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise. */
readonly fullscreenEnabled: boolean;
/** Returns the head element. */
readonly head: HTMLHeadElement;
readonly hidden: boolean;
/** Retrieves a collection, in source order, of img objects in the document. */
readonly images: HTMLCollectionOf<HTMLImageElement>;
/** Gets the implementation object of the current document. */
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
* @deprecated This is a legacy alias of \`characterSet\`.
*/
readonly inputEncoding: string;
/** Gets the date that the page was last modified, if the page supplies one. */
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*/
linkColor: string;
/** Retrieves a collection of all a objects that specify the href property and all area objects in the document. */
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/** Contains information about the current URL. */
get location(): Location;
set location(href: string | Location);
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
readonly pictureInPictureEnabled: boolean;
/** Return an HTMLCollection of the embed elements in the Document. */
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/** Retrieves a value that indicates the current state of the object. */
readonly readyState: DocumentReadyState;
/** Gets the URL of the location that referred the user to the current page. */
readonly referrer: string;
/** @deprecated */
readonly rootElement: SVGSVGElement | null;
/** Retrieves a collection of all script objects in the document. */
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
readonly scrollingElement: Element | null;
readonly timeline: DocumentTimeline;
/** Contains the title of the document. */
title: string;
readonly visibilityState: VisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*/
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*/
adoptNode<T extends Node>(node: T): T;
/** @deprecated */
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/** @deprecated */
clear(): void;
/** Closes an output stream and forces the sent data to display. */
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*/
createAttribute(localName: string): Attr;
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/** Returns a CDATASection node whose data is data. */
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*/
createComment(data: string): Comment;
/** Creates a new document. */
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*/
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
/** @deprecated */
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
/**
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
*
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
*
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
*
* localName does not match the QName production.
* Namespace prefix is not null and namespace is the empty string.
* Namespace prefix is "xml" and namespace is not the XML namespace.
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
*
* When supplied, options's is can be used to create a customized built-in element.
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "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: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
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: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/** Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown. */
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/** Returns an empty range object that has both of its boundary points positioned at the beginning of the document. */
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*/
createTextNode(data: string): Text;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
* @deprecated
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/** Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */
exitFullscreen(): Promise<void>;
exitPictureInPicture(): Promise<void>;
exitPointerLock(): void;
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
*/
getElementById(elementId: string): HTMLElement | null;
/** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* Gets a collection of objects based on the value of the NAME or ID attribute.
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
*
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
*
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
*
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/** Returns an object representing the current selection of the document that is loaded into the object displaying a webpage. */
getSelection(): Selection | null;
/** Gets a value indicating whether the object currently has focus. */
hasFocus(): boolean;
hasStorageAccess(): Promise<boolean>;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*/
importNode<T extends Node>(node: T, deep?: boolean): T;
/**
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
* @param url Specifies a MIME type for the document.
* @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*/
open(unused1?: string, unused2?: string): Document;
open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
* @deprecated
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
*/
queryCommandIndeterm(commandId: string): boolean;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
* @deprecated
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
* @deprecated
*/
queryCommandSupported(commandId: string): boolean;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
*/
queryCommandValue(commandId: string): string;
/** @deprecated */
releaseEvents(): void;
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*/
write(...text: string[]): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*/
writeln(...text: string[]): void;
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(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;
};
interface DocumentAndElementEventHandlersEventMap {
"copy": ClipboardEvent;
"cut": ClipboardEvent;
"paste": ClipboardEvent;
}
interface DocumentAndElementEventHandlers {
oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
addEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentAndElementEventHandlersEventMap>(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
/**
* Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
*
* For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
*
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
*/
readonly activeElement: Element | null;
/** Returns document's fullscreen element. */
readonly fullscreenElement: Element | null;
readonly pictureInPictureElement: Element | null;
readonly pointerLockElement: Element | null;
/** Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document. */
readonly styleSheets: StyleSheetList;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
getAnimations(): Animation[];
}
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/** A Node containing a doctype. */
interface DocumentType extends Node, ChildNode {
readonly name: string;
readonly ownerDocument: Document;
readonly publicId: string;
readonly systemId: string;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */
interface DragEvent extends MouseEvent {
/** Returns the DataTransfer object for the event. */
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/** Inherits properties from its parent, AudioNode. */
interface DynamicsCompressorNode extends AudioNode {
readonly attack: AudioParam;
readonly knee: AudioParam;
readonly ratio: AudioParam;
readonly reduction: number;
readonly release: AudioParam;
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
interface EXT_blend_minmax {
readonly MAX_EXT: GLenum;
readonly MIN_EXT: GLenum;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGB16F_EXT: GLenum;
readonly RGBA16F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
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. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
readonly SRGB8_ALPHA8_EXT: GLenum;
readonly SRGB_ALPHA_EXT: GLenum;
readonly SRGB_EXT: GLenum;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
}
interface ElementEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
}
/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
readonly attributes: NamedNodeMap;
/** Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object. */
readonly classList: DOMTokenList;
/** Returns the value of element's class content attribute. Can be set to change it. */
className: string;
readonly clientHeight: number;
readonly clientLeft: number;
readonly clientTop: number;
readonly clientWidth: number;
/** Returns the value of element's id content attribute. Can be set to change it. */
id: string;
/** Returns the local name. */
readonly localName: string;
/** Returns the namespace. */
readonly namespaceURI: string | null;
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
outerHTML: string;
readonly ownerDocument: Document;
readonly part: DOMTokenList;
/** Returns the namespace prefix. */
readonly prefix: string | null;
readonly scrollHeight: number;
scrollLeft: number;
scrollTop: number;
readonly scrollWidth: number;
/** Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise. */
readonly shadowRoot: ShadowRoot | null;
/** Returns the value of element's slot content attribute. Can be set to change it. */
slot: string;
/** Returns the HTML-uppercased qualified name. */
readonly tagName: string;
/** Creates a shadow root for element and returns it. */
attachShadow(init: ShadowRootInit): ShadowRoot;
/** Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. */
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
closest<E extends Element = Element>(selectors: string): E | null;
/** Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise. */
getAttribute(qualifiedName: string): string | null;
/** Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise. */
getAttributeNS(namespace: string | null, localName: string): string | null;
/** Returns the qualified names of all element's attributes. Can contain duplicates. */
getAttributeNames(): string[];
getAttributeNode(qualifiedName: string): Attr | null;
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
/** Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes. */
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/** Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise. */
hasAttribute(qualifiedName: string): boolean;
/** Returns true if element has an attribute whose namespace is namespace and local name is localName. */
hasAttributeNS(namespace: string | null, localName: string): boolean;
/** Returns true if element has attributes, and false otherwise. */
hasAttributes(): boolean;
hasPointerCapture(pointerId: number): boolean;
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
insertAdjacentHTML(position: InsertPosition, text: string): void;
insertAdjacentText(where: InsertPosition, data: string): void;
/** Returns true if matching selectors against element's root yields element, and false otherwise. */
matches(selectors: string): boolean;
releasePointerCapture(pointerId: number): void;
/** Removes element's first attribute whose qualified name is qualifiedName. */
removeAttribute(qualifiedName: string): void;
/** Removes element's attribute whose namespace is namespace and local name is localName. */
removeAttributeNS(namespace: string | null, localName: string): void;
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
*
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
requestPointerLock(): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/** Sets the value of element's first attribute whose qualified name is qualifiedName to value. */
setAttribute(qualifiedName: string, value: string): void;
/** Sets the value of element's attribute whose namespace is namespace and local name is localName to value. */
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
setAttributeNode(attr: Attr): Attr | null;
setAttributeNodeNS(attr: Attr): Attr | null;
setPointerCapture(pointerId: number): void;
/**
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
*
* Returns true if qualifiedName is now present, and false otherwise.
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/** @deprecated This is a legacy alias of \`matches\`. */
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Element: {
prototype: Element;
new(): Element;
};
interface ElementCSSInlineStyle {
readonly style: CSSStyleDeclaration;
}
interface ElementContentEditable {
contentEditable: string;
enterKeyHint: string;
inputMode: string;
readonly isContentEditable: boolean;
}
interface ElementInternals extends ARIAMixin {
/** Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise. */
readonly shadowRoot: ShadowRoot | null;
}
declare var ElementInternals: {
prototype: ElementInternals;
new(): ElementInternals;
};
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
readonly bubbles: boolean;
cancelBubble: boolean;
/** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
readonly cancelable: boolean;
/** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false otherwise. */
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
readonly timeStamp: DOMHighResTimeStamp;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
readonly type: string;
/** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
composedPath(): EventTarget[];
/** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
preventDefault(): void;
/** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
stopPropagation(): void;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/** Returns the state of this EventSource object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL providing the event stream. */
readonly url: string;
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => 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 CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
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;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** 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. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: number;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(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 DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
};
interface FileSystem {
readonly name: string;
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
interface FileSystemDirectoryEntry extends FileSystemEntry {
createReader(): FileSystemDirectoryReader;
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
interface FileSystemDirectoryReader {
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
interface FileSystemEntry {
readonly filesystem: FileSystem;
readonly fullPath: string;
readonly isDirectory: boolean;
readonly isFile: boolean;
readonly name: string;
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
interface FileSystemFileEntry extends FileSystemEntry {
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/** Focus-related events like focus, blur, focusin, or focusout. */
interface FocusEvent extends UIEvent {
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: string;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
variationSettings: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
readonly fonts: FontFaceSet;
}
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement): FormData;
};
interface FormDataEvent extends Event {
/** Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted. */
readonly formData: FormData;
}
declare var FormDataEvent: {
prototype: FormDataEvent;
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};
/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */
interface GainNode extends AudioNode {
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/**
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
* Available only in secure contexts.
*/
interface Gamepad {
readonly axes: ReadonlyArray<number>;
readonly buttons: ReadonlyArray<GamepadButton>;
readonly connected: boolean;
readonly hapticActuators: ReadonlyArray<GamepadHapticActuator>;
readonly id: string;
readonly index: number;
readonly mapping: GamepadMappingType;
readonly timestamp: DOMHighResTimeStamp;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/**
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
* Available only in secure contexts.
*/
interface GamepadButton {
readonly pressed: boolean;
readonly touched: boolean;
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/**
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
* Available only in secure contexts.
*/
interface GamepadEvent extends Event {
readonly gamepad: Gamepad;
}
declare var GamepadEvent: {
prototype: GamepadEvent;
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};
/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */
interface GamepadHapticActuator {
readonly type: GamepadHapticActuatorType;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */
interface Geolocation {
clearWatch(watchId: number): void;
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
/** Available only in secure contexts. */
interface GeolocationCoordinates {
readonly accuracy: number;
readonly altitude: number | null;
readonly altitudeAccuracy: number | null;
readonly heading: number | null;
readonly latitude: number;
readonly longitude: number;
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/** Available only in secure contexts. */
interface GeolocationPosition {
readonly coords: GeolocationCoordinates;
readonly timestamp: DOMTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
interface GeolocationPositionError {
readonly code: number;
readonly message: string;
readonly PERMISSION_DENIED: number;
readonly POSITION_UNAVAILABLE: number;
readonly TIMEOUT: number;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
readonly PERMISSION_DENIED: number;
readonly POSITION_UNAVAILABLE: number;
readonly TIMEOUT: number;
};
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"blur": FocusEvent;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
"cuechange": Event;
"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;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"stalled": Event;
"submit": SubmitEvent;
"suspend": Event;
"timeupdate": Event;
"toggle": Event;
"touchcancel": TouchEvent;
"touchend": TouchEvent;
"touchmove": TouchEvent;
"touchstart": TouchEvent;
"transitioncancel": TransitionEvent;
"transitionend": TransitionEvent;
"transitionrun": TransitionEvent;
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
"webkitanimationend": Event;
"webkitanimationiteration": Event;
"webkitanimationstart": Event;
"webkittransitionend": Event;
"wheel": WheelEvent;
}
interface GlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationend\`. */
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface HTMLAllCollection {
/** Returns the number of elements in the collection. */
readonly length: number;
/** Returns the item with index index from the collection (determined by tree order). */
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
*
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
*/
namedItem(name: string): HTMLCollection | Element | null;
[index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
};
/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*/
coords: string;
download: string;
/** Sets or retrieves the language code of the object. */
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
name: string;
ping: string;
referrerPolicy: string;
/** Sets or retrieves the relationship between the object and the destination of the link. */
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*/
shape: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new(): HTMLAnchorElement;
};
/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements. */
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/** Sets or retrieves the coordinates of the object. */
coords: string;
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*/
noHref: boolean;
ping: string;
referrerPolicy: string;
rel: string;
readonly relList: DOMTokenList;
/** Sets or retrieves the shape of the object. */
shape: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAreaElement: {
prototype: HTMLAreaElement;
new(): HTMLAreaElement;
};
/** Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface. */
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(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;
};
/** A HTML line break element (<br>). It inherits from HTMLElement. */
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(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;
};
/** Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface. */
interface HTMLBaseElement extends HTMLElement {
/** Gets or sets the baseline URL on which relative links are based. */
href: string;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(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 {
"orientationchange": Event;
}
/** Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements. */
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/** @deprecated */
aLink: string;
/** @deprecated */
background: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
link: string;
/** @deprecated */
onorientationchange: ((this: HTMLBodyElement, ev: Event) => any) | null;
/** @deprecated */
text: string;
/** @deprecated */
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(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;
};
/** Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements. */
interface HTMLButtonElement extends HTMLElement {
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
/** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
/** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
/** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
formNoValidate: boolean;
/** Overrides the target attribute on a form element. */
formTarget: string;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets the classification and default behavior of the button. */
type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Sets or retrieves the default or selected value of the control. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLButtonElement: {
prototype: HTMLButtonElement;
new(): HTMLButtonElement;
};
/** Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface. */
interface HTMLCanvasElement extends HTMLElement {
/** Gets or sets the height of a canvas element on a document. */
height: number;
/** Gets or sets the width of a canvas element on a document. */
width: number;
captureStream(frameRequestRate?: number): MediaStream;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*/
toDataURL(type?: string, quality?: any): string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/** A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list. */
interface HTMLCollectionBase {
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Retrieves an object from various collections. */
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/** Retrieves a select object or an object from an options collection. */
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/** Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements. */
interface HTMLDListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements. */
interface HTMLDataElement extends HTMLElement {
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/** Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content. */
interface HTMLDataListElement extends HTMLElement {
/** Returns an HTMLCollection of the option elements of the datalist element. */
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
interface HTMLDetailsElement extends HTMLElement {
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
/** @deprecated this is not available in most browsers */
interface HTMLDialogElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements. */
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
/** Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it. */
interface HTMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
accessKey: string;
readonly accessKeyLabel: string;
autocapitalize: string;
dir: string;
draggable: boolean;
hidden: boolean;
innerText: string;
lang: string;
readonly offsetHeight: number;
readonly offsetLeft: number;
readonly offsetParent: Element | null;
readonly offsetTop: number;
readonly offsetWidth: number;
outerText: string;
spellcheck: boolean;
title: string;
translate: boolean;
attachInternals(): ElementInternals;
click(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements. */
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
type: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements. */
interface HTMLFieldSetElement extends HTMLElement {
disabled: boolean;
/** Returns an HTMLCollection of the form controls in the element. */
readonly elements: HTMLCollection;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
name: string;
/** Returns the string "fieldset". */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
new(): HTMLFieldSetElement;
};
/**
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
* @deprecated
*/
interface HTMLFontElement extends HTMLElement {
/** @deprecated */
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*/
face: string;
/** @deprecated */
size: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
};
/** A collection of HTML form control elements. */
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/** A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements. */
interface HTMLFormElement extends HTMLElement {
/** Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form. */
acceptCharset: string;
/** Sets or retrieves the URL to which the form content is sent for processing. */
action: string;
/** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: string;
/** Retrieves a collection, in source order, of all controls in a given form. */
readonly elements: HTMLFormControlsCollection;
/** Sets or retrieves the MIME encoding for the form. */
encoding: string;
/** Sets or retrieves the encoding type for the form. */
enctype: string;
/** Sets or retrieves the number of objects in a collection. */
readonly length: number;
/** Sets or retrieves how to send the form data to the server. */
method: string;
/** Sets or retrieves the name of the object. */
name: string;
/** Designates a form that is not validated when submitted. */
noValidate: boolean;
/** Sets or retrieves the window or frame at which to target content. */
target: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
requestSubmit(submitter?: HTMLElement | null): void;
/** Fires when the user resets a form. */
reset(): void;
/** Fires when a FORM is about to be submitted. */
submit(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Element;
[name: string]: any;
}
declare var HTMLFormElement: {
prototype: HTMLFormElement;
new(): HTMLFormElement;
};
/** @deprecated */
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
* @deprecated
*/
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
* @deprecated
*/
cols: string;
/**
* Sets or retrieves the frame heights of the object.
* @deprecated
*/
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
};
/** Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements. */
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
* @deprecated
*/
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHRElement: {
prototype: HTMLHRElement;
new(): HTMLHRElement;
};
/** Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLHeadElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadElement: {
prototype: HTMLHeadElement;
new(): HTMLHeadElement;
};
/** The different heading elements. It inherits methods and properties from the HTMLElement interface. */
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/** Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface. */
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*/
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHtmlElement: {
prototype: HTMLHtmlElement;
new(): HTMLHtmlElement;
};
interface HTMLHyperlinkElementUtils {
/**
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to change the URL's fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to change the URL's host and port.
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*/
href: string;
toString(): string;
/** Returns the hyperlink's URL's origin. */
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*/
protocol: string;
/**
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
*
* Can be set, to change the URL's query (ignores leading "?").
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*/
username: string;
}
/** Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements. */
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
allow: string;
allowFullscreen: boolean;
/** Retrieves the document object of the page or frame. */
readonly contentDocument: Document | null;
/** Retrieves the object of the specified. */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*/
frameBorder: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*/
marginWidth: string;
/** Sets or retrieves the frame name. */
name: string;
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*/
scrolling: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
/** Sets or retrives the content of the page that is to contain. */
srcdoc: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/** Provides special properties and methods for manipulating <img> elements. */
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*/
border: string;
/** Retrieves whether the object is fully loaded. */
readonly complete: boolean;
crossOrigin: string | null;
readonly currentSrc: string;
decoding: "async" | "sync" | "auto";
/** Sets or retrieves the height of the object. */
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
hspace: number;
/** Sets or retrieves whether the image is a server-side image map. */
isMap: boolean;
loading: string;
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*/
longDesc: string;
/** @deprecated */
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** The original height of the image resource before sizing. */
readonly naturalHeight: number;
/** The original width of the image resource before sizing. */
readonly naturalWidth: number;
referrerPolicy: string;
sizes: string;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcset: string;
/** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*/
vspace: number;
/** Sets or retrieves the width of the object. */
width: number;
readonly x: number;
readonly y: number;
decode(): Promise<void>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLImageElement: {
prototype: HTMLImageElement;
new(): HTMLImageElement;
};
/** Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements. */
interface HTMLInputElement extends HTMLElement {
/** Sets or retrieves a comma-separated list of content types. */
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/** Specifies whether autocomplete is applied to an editable text field. */
autocomplete: string;
capture: string;
/** Sets or retrieves the state of the check box or radio button. */
checked: boolean;
/** Sets or retrieves the state of the check box or radio button. */
defaultChecked: boolean;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Returns a FileList object on a file type input object. */
files: FileList | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Overrides the action attribute (where the data on a form is sent) on the parent form element. */
formAction: string;
/** Used to override the encoding (formEnctype attribute) specified on the form element. */
formEnctype: string;
/** Overrides the submit method attribute previously specified on a form element. */
formMethod: string;
/** Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option. */
formNoValidate: boolean;
/** Overrides the target attribute on a form element. */
formTarget: string;
/** Sets or retrieves the height of the object. */
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
readonly labels: NodeListOf<HTMLLabelElement> | null;
/** Specifies the ID of a pre-defined datalist of options for an input element. */
readonly list: HTMLElement | null;
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
max: string;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
/** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
min: string;
minLength: number;
/** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a string containing a regular expression that the user's input must match. */
pattern: string;
/** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
selectionDirection: "forward" | "backward" | "none" | null;
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number | null;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number | null;
size: number;
/** The address or URL of the a media resource that is to be considered. */
src: string;
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
step: string;
/** Returns the content type of the object. */
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
* @deprecated
*/
useMap: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
value: string;
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
valueAsDate: Date | null;
/** Returns the input field value as a number. */
valueAsNumber: number;
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
webkitdirectory: boolean;
/** Sets or retrieves the width of the object. */
width: number;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/** Makes the selection equal to the current object. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
/**
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
* @param n Value to decrement the value by.
*/
stepDown(n?: number): void;
/**
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
* @param n Value to increment the value by.
*/
stepUp(n?: number): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLInputElement: {
prototype: HTMLInputElement;
new(): HTMLInputElement;
};
/** Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements. */
interface HTMLLIElement extends HTMLElement {
/** @deprecated */
type: string;
/** Sets or retrieves the value of a list item. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLIElement: {
prototype: HTMLLIElement;
new(): HTMLLIElement;
};
/** Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface. */
interface HTMLLabelElement extends HTMLElement {
/** Returns the form control that is associated with this element. */
readonly control: HTMLElement | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the object to which the given label object is assigned. */
htmlFor: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLabelElement: {
prototype: HTMLLabelElement;
new(): HTMLLabelElement;
};
/** The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface. */
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLegendElement: {
prototype: HTMLLegendElement;
new(): HTMLLegendElement;
};
/** Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLLinkElement extends HTMLElement, LinkStyle {
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
disabled: boolean;
/** Sets or retrieves a destination URL or an anchor point. */
href: string;
/** Sets or retrieves the language code of the object. */
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/** Sets or retrieves the media type. */
media: string;
referrerPolicy: string;
/** Sets or retrieves the relationship between the object and the destination of the link. */
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLinkElement: {
prototype: HTMLLinkElement;
new(): HTMLLinkElement;
};
/** 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 map elements. */
interface HTMLMapElement extends HTMLElement {
/** Retrieves a collection of the area objects defined for the given map object. */
readonly areas: HTMLCollection;
/** Sets or retrieves the name of the object. */
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMapElement: {
prototype: HTMLMapElement;
new(): HTMLMapElement;
};
/**
* Provides methods to manipulate <marquee> elements.
* @deprecated
*/
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
/** @deprecated */
trueSpeed: boolean;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
/** @deprecated */
start(): void;
/** @deprecated */
stop(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"waitingforkey": Event;
}
/** Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video. */
interface HTMLMediaElement extends HTMLElement {
/** Gets or sets a value that indicates whether to start playing the media automatically. */
autoplay: boolean;
/** Gets a collection of buffered time ranges. */
readonly buffered: TimeRanges;
/** Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player). */
controls: boolean;
crossOrigin: string | null;
/** Gets the address or URL of the current media resource that is selected by IHTMLMediaElement. */
readonly currentSrc: string;
/** Gets or sets the current playback position, in seconds. */
currentTime: number;
defaultMuted: boolean;
/** Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource. */
defaultPlaybackRate: number;
disableRemotePlayback: boolean;
/** Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming. */
readonly duration: number;
/** Gets information about whether the playback has ended or not. */
readonly ended: boolean;
/** Returns an object representing the current error state of the audio or video element. */
readonly error: MediaError | null;
/** Gets or sets a flag to specify whether playback should restart after it completes. */
loop: boolean;
/** Available only in secure contexts. */
readonly mediaKeys: MediaKeys | null;
/** Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted. */
muted: boolean;
/** Gets the current network activity for the element. */
readonly networkState: number;
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/** Gets a flag that specifies whether playback is paused. */
readonly paused: boolean;
/** Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource. */
playbackRate: number;
/** Gets TimeRanges for the current media resource that has been played. */
readonly played: TimeRanges;
/** Gets or sets a value indicating what data should be preloaded, if any. */
preload: "none" | "metadata" | "auto" | "";
readonly readyState: number;
readonly remote: RemotePlayback;
/** Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked. */
readonly seekable: TimeRanges;
/** Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource. */
readonly seeking: boolean;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcObject: MediaProvider | null;
readonly textTracks: TextTrackList;
/** Gets or sets the volume level for audio portions of the media element. */
volume: number;
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/** Returns a string that specifies whether the client can play a given media resource type. */
canPlayType(type: string): CanPlayTypeResult;
fastSeek(time: number): void;
/** Resets the audio or video object and loads a new media resource. */
load(): void;
/** Pauses the current playback and sets paused to TRUE. This can be used to test whether the media is playing or paused. You can also use the pause or play events to tell whether the media is playing or not. */
pause(): void;
/** Loads and starts playback of a media resource. */
play(): Promise<void>;
/** Available only in secure contexts. */
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
readonly HAVE_CURRENT_DATA: number;
readonly HAVE_ENOUGH_DATA: number;
readonly HAVE_FUTURE_DATA: number;
readonly HAVE_METADATA: number;
readonly HAVE_NOTHING: number;
readonly NETWORK_EMPTY: number;
readonly NETWORK_IDLE: number;
readonly NETWORK_LOADING: number;
readonly NETWORK_NO_SOURCE: number;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly HAVE_CURRENT_DATA: number;
readonly HAVE_ENOUGH_DATA: number;
readonly HAVE_FUTURE_DATA: number;
readonly HAVE_METADATA: number;
readonly HAVE_NOTHING: number;
readonly NETWORK_EMPTY: number;
readonly NETWORK_IDLE: number;
readonly NETWORK_LOADING: number;
readonly NETWORK_NO_SOURCE: number;
};
interface HTMLMenuElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/** Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface. */
interface HTMLMetaElement extends HTMLElement {
/** Gets or sets meta-information to associate with httpEquiv or name. */
content: string;
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
httpEquiv: string;
/** Sets or retrieves the value specified in the content attribute of the meta object. */
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
* @deprecated
*/
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/** The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements. */
interface HTMLMeterElement extends HTMLElement {
high: number;
readonly labels: NodeListOf<HTMLLabelElement>;
low: number;
max: number;
min: number;
optimum: number;
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/** Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>. */
interface HTMLModElement extends HTMLElement {
/** Sets or retrieves reference information about the object. */
cite: string;
/** Sets or retrieves the date and time of a modification to the object. */
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements. */
interface HTMLOListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
reversed: boolean;
/** The starting number. */
start: number;
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/** Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources. */
interface HTMLObjectElement extends HTMLElement {
/** @deprecated */
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*/
archive: string;
/** @deprecated */
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*/
codeType: string;
/** Retrieves the document object of the page or frame. */
readonly contentDocument: Document | null;
readonly contentWindow: WindowProxy | null;
/** Sets or retrieves the URL that references the data of the object. */
data: string;
/** @deprecated */
declare: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the height of the object. */
height: string;
/** @deprecated */
hspace: number;
/** Sets or retrieves the name of the object. */
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*/
standby: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
/** Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. */
useMap: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** @deprecated */
vspace: number;
/** Sets or retrieves the width of the object. */
width: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
getSVGDocument(): Document | null;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements. */
interface HTMLOptGroupElement extends HTMLElement {
disabled: boolean;
/** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/** <option> elements and inherits all classes and methods of the HTMLElement interface. */
interface HTMLOptionElement extends HTMLElement {
/** Sets or retrieves the status of an option. */
defaultSelected: boolean;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** Sets or retrieves the ordinal position of an option in a list box. */
readonly index: number;
/** Sets or retrieves a value that you can use to implement your own label functionality for the object. */
label: string;
/** Sets or retrieves whether the option in the list box is the default item. */
selected: boolean;
/** Sets or retrieves the text string specified by the option tag. */
text: string;
/** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/** HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select. */
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/** Removes the item with index index from the collection. */
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
autofocus: boolean;
readonly dataset: DOMStringMap;
nonce?: string;
tabIndex: number;
blur(): void;
focus(options?: FocusOptions): void;
}
/** Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements. */
interface HTMLOutputElement extends HTMLElement {
defaultValue: string;
readonly form: HTMLFormElement | null;
readonly htmlFor: DOMTokenList;
readonly labels: NodeListOf<HTMLLabelElement>;
name: string;
/** Returns the string "output". */
readonly type: string;
readonly validationMessage: string;
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*/
value: string;
readonly willValidate: boolean;
checkValidity(): boolean;
reportValidity(): boolean;
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOutputElement: {
prototype: HTMLOutputElement;
new(): HTMLOutputElement;
};
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements. */
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/** Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element. */
interface HTMLParamElement extends HTMLElement {
/** Sets or retrieves the name of an input parameter for an element. */
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*/
type: string;
/** Sets or retrieves the value of an input parameter for an element. */
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/** A <picture> HTML element. It doesn't implement specific properties or methods. */
interface HTMLPictureElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPictureElement: {
prototype: HTMLPictureElement;
new(): HTMLPictureElement;
};
/** Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>). */
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements. */
interface HTMLProgressElement extends HTMLElement {
readonly labels: NodeListOf<HTMLLabelElement>;
/** Defines the maximum, or "done" value for a progress element. */
max: number;
/** Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar). */
readonly position: number;
/** Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLProgressElement: {
prototype: HTMLProgressElement;
new(): HTMLProgressElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element. */
interface HTMLQuoteElement extends HTMLElement {
/** Sets or retrieves reference information about the object. */
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLQuoteElement: {
prototype: HTMLQuoteElement;
new(): HTMLQuoteElement;
};
/** HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface). */
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
crossOrigin: string | null;
/** Sets or retrieves the status of the script. */
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
referrerPolicy: string;
/** Retrieves the URL to an external file that contains the source code or data. */
src: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
/** Sets or retrieves the MIME type for the associated scripting engine. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLScriptElement: {
prototype: HTMLScriptElement;
new(): HTMLScriptElement;
};
/** A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface. */
interface HTMLSelectElement extends HTMLElement {
autocomplete: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the number of objects in a collection. */
length: number;
/** Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list. */
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/** Returns an HTMLOptionsCollection of the list of options. */
readonly options: HTMLOptionsCollection;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the index of the selected option in a select object. */
selectedIndex: number;
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/** Sets or retrieves the number of rows in the list box. */
size: number;
/** Retrieves the type of select control based on the value of the MULTIPLE attribute. */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Sets or retrieves the value which is returned to the server when the form control is submitted. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/**
* Retrieves a select object or an object from an options collection.
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*/
item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*/
remove(): void;
remove(index: number): void;
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
interface HTMLSlotElement extends HTMLElement {
name: string;
assign(...nodes: (Element | Text)[]): void;
assignedElements(options?: AssignedNodesOptions): Element[];
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/** Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements. */
interface HTMLSourceElement extends HTMLElement {
/** Gets or sets the intended media type of the media source. */
media: string;
sizes: string;
/** The address or URL of the a media resource that is to be considered. */
src: string;
srcset: string;
/** Gets or sets the MIME type of a media resource. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/** A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/** A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle. */
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/** Sets or retrieves the media type. */
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/** Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements. */
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/** Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document. */
interface HTMLTableCellElement extends HTMLElement {
/** Sets or retrieves abbreviated text for the object. */
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*/
axis: string;
/** @deprecated */
bgColor: string;
/** Retrieves the position of the object in the cells collection of a row. */
readonly cellIndex: number;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number columns in the table that the object should span. */
colSpan: number;
/** Sets or retrieves a list of header cells that provide information for the object. */
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*/
noWrap: boolean;
/** Sets or retrieves how many rows in a table the cell should span. */
rowSpan: number;
/** Sets or retrieves the group of cells in a table to which the object's information applies. */
scope: string;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/** Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements. */
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number of columns in the group. */
span: number;
/** @deprecated */
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document. */
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*/
border: string;
/** Retrieves the caption object of a table. */
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*/
frame: string;
/** Sets or retrieves the number of horizontal rows contained in the object. */
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*/
summary: string;
/** Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order. */
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/** Retrieves the tFoot object of the table. */
tFoot: HTMLTableSectionElement | null;
/** Retrieves the tHead object of the table. */
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
/** Creates an empty caption element in the table. */
createCaption(): HTMLTableCaptionElement;
/** Creates an empty tBody element in the table. */
createTBody(): HTMLTableSectionElement;
/** Creates an empty tFoot element in the table. */
createTFoot(): HTMLTableSectionElement;
/** Returns the tHead element object if successful, or null otherwise. */
createTHead(): HTMLTableSectionElement;
/** Deletes the caption element and its contents from the table. */
deleteCaption(): void;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/** Deletes the tFoot element and its contents from the table. */
deleteTFoot(): void;
/** Deletes the tHead element and its contents from the table. */
deleteTHead(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table. */
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
bgColor: string;
/** Retrieves a collection of all cells in the table row. */
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Retrieves the position of the object in the rows collection for the table. */
readonly rowIndex: number;
/** Retrieves the position of the object in the collection. */
readonly sectionRowIndex: number;
/** @deprecated */
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
*/
deleteCell(index: number): void;
/**
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*/
insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new(): HTMLTableRowElement;
};
/** Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table. */
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*/
align: string;
/** @deprecated */
ch: string;
/** @deprecated */
chOff: string;
/** Sets or retrieves the number of horizontal rows contained in the object. */
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/** @deprecated */
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*/
deleteRow(index: number): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new(): HTMLTableSectionElement;
};
/** Enables access to the contents of an HTML <template> element. */
interface HTMLTemplateElement extends HTMLElement {
/** Returns the template contents (a DocumentFragment). */
readonly content: DocumentFragment;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTemplateElement: {
prototype: HTMLTemplateElement;
new(): HTMLTemplateElement;
};
/** Provides special properties and methods for manipulating the layout and presentation of <textarea> elements. */
interface HTMLTextAreaElement extends HTMLElement {
autocomplete: string;
/** Sets or retrieves the width of the object. */
cols: number;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
minLength: number;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
/** Sets or retrieves the value indicated whether the content of the object is read-only. */
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the number of horizontal rows contained in the object. */
rows: number;
selectionDirection: "forward" | "backward" | "none";
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number;
readonly textLength: number;
/** Retrieves the type of control. */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Retrieves or sets the text in the entry field of the textArea element. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Sets or retrieves how to handle wordwrapping in the object. */
wrap: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
reportValidity(): boolean;
/** Highlights the input area of a form element. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTextAreaElement: {
prototype: HTMLTextAreaElement;
new(): HTMLTextAreaElement;
};
/** Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements. */
interface HTMLTimeElement extends HTMLElement {
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTimeElement: {
prototype: HTMLTimeElement;
new(): HTMLTimeElement;
};
/** Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface. */
interface HTMLTitleElement extends HTMLElement {
/** Retrieves or sets the text of the object as a string. */
text: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTitleElement: {
prototype: HTMLTitleElement;
new(): HTMLTitleElement;
};
/** The HTMLTrackElement */
interface HTMLTrackElement extends HTMLElement {
default: boolean;
kind: string;
label: string;
readonly readyState: number;
src: string;
srclang: string;
/** Returns the TextTrack object corresponding to the text track of the track element. */
readonly track: TextTrack;
readonly ERROR: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
readonly ERROR: number;
readonly LOADED: number;
readonly LOADING: number;
readonly NONE: number;
};
/** Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements. */
interface HTMLUListElement extends HTMLElement {
/** @deprecated */
compact: boolean;
/** @deprecated */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/** An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods. */
interface HTMLUnknownElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUnknownElement: {
prototype: HTMLUnknownElement;
new(): HTMLUnknownElement;
};
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
"enterpictureinpicture": Event;
"leavepictureinpicture": Event;
}
/** Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement. */
interface HTMLVideoElement extends HTMLMediaElement {
disablePictureInPicture: boolean;
/** Gets or sets the height of the video element. */
height: number;
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
playsInline: boolean;
/** Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available. */
poster: string;
/** Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known. */
readonly videoHeight: number;
/** Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known. */
readonly videoWidth: number;
/** Gets or sets the width of the video element. */
width: number;
getVideoPlaybackQuality(): VideoPlaybackQuality;
requestPictureInPicture(): Promise<PictureInPictureWindow>;
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLVideoElement: {
prototype: HTMLVideoElement;
new(): HTMLVideoElement;
};
/** Events that fire when the fragment identifier of the URL has changed. */
interface HashChangeEvent extends Event {
/** Returns the URL of the session history entry that is now current. */
readonly newURL: string;
/** Returns the URL of the session history entry that was previously current. */
readonly oldURL: string;
}
declare var HashChangeEvent: {
prototype: HashChangeEvent;
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in. */
interface History {
readonly length: number;
scrollRestoration: ScrollRestoration;
readonly state: any;
back(): void;
forward(): void;
go(delta?: number): void;
pushState(data: any, unused: string, url?: string | URL | null): void;
replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
readonly direction: IDBCursorDirection;
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly key: IDBValidKey;
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
readonly source: IDBObjectStore | IDBIndex;
/** Advances the cursor through the next count records in range. */
advance(count: number): void;
/** Advances the cursor to the next record in range. */
continue(key?: IDBValidKey): void;
/** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
interface IDBCursorWithValue extends IDBCursor {
/** Returns the cursor's current value. */
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
interface IDBDatabase extends EventTarget {
/** Returns the name of the database. */
readonly name: string;
/** Returns a list of the names of object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/** Returns the version of the database. */
readonly version: number;
/** Closes the connection once all running transactions have finished. */
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
deleteDatabase(name: string): IDBOpenDBRequest;
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/** Returns the name of the index. */
name: string;
/** Returns the IDBObjectStore the index belongs to. */
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
interface IDBKeyRange {
/** Returns lower bound, or undefined if none. */
readonly lower: any;
/** Returns true if the lower open flag is set, and false otherwise. */
readonly lowerOpen: boolean;
/** Returns upper bound, or undefined if none. */
readonly upper: any;
/** Returns true if the upper open flag is set, and false otherwise. */
readonly upperOpen: boolean;
/** Returns true if key is included in the range, and false otherwise. */
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange spanning only key. */
only(value: any): IDBKeyRange;
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/** Returns true if the store has a key generator, and false otherwise. */
readonly autoIncrement: boolean;
/** Returns a list of the names of indexes in the store. */
readonly indexNames: DOMStringList;
/** Returns the key path of the store, or null if none. */
readonly keyPath: string | string[];
/** Returns the name of the store. */
name: string;
/** Returns the associated transaction. */
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": Event;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
interface IDBRequest<T = any> extends EventTarget {
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** Returns "pending" until a request is complete, then returns "done". */
readonly readyState: IDBRequestReadyState;
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly result: T;
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/** Returns the transaction's connection. */
readonly db: IDBDatabase;
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
readonly error: DOMException | null;
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
readonly mode: IDBTransactionMode;
/** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
abort(): void;
commit(): void;
/** Returns an IDBObjectStore in the transaction's scope. */
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed. */
interface IIRFilterNode extends AudioNode {
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
interface IdleDeadline {
readonly didTimeout: boolean;
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
interface ImageBitmap {
/** Returns the intrinsic height of the image, in CSS pixels. */
readonly height: number;
/** Returns the intrinsic width of the image, in CSS pixels. */
readonly width: number;
/** Releases imageBitmap's underlying bitmap data. */
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
readonly canvas: HTMLCanvasElement;
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
readonly data: Uint8ClampedArray;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly height: number;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
innerHTML: string;
}
interface InputEvent extends UIEvent {
readonly data: string | null;
readonly dataTransfer: DataTransfer | null;
readonly inputType: string;
readonly isComposing: boolean;
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/** provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. */
interface IntersectionObserver {
readonly root: Element | Document | null;
readonly rootMargin: string;
readonly thresholds: ReadonlyArray<number>;
disconnect(): void;
observe(target: Element): void;
takeRecords(): IntersectionObserverEntry[];
unobserve(target: Element): void;
}
declare var IntersectionObserver: {
prototype: IntersectionObserver;
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};
/** This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition. */
interface IntersectionObserverEntry {
readonly boundingClientRect: DOMRectReadOnly;
readonly intersectionRatio: number;
readonly intersectionRect: DOMRectReadOnly;
readonly isIntersecting: boolean;
readonly rootBounds: DOMRectReadOnly | null;
readonly target: Element;
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: GLenum;
}
/** KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. */
interface KeyboardEvent extends UIEvent {
readonly altKey: boolean;
/** @deprecated */
readonly charCode: number;
readonly code: string;
readonly ctrlKey: boolean;
readonly isComposing: boolean;
readonly key: string;
/** @deprecated */
readonly keyCode: number;
readonly location: number;
readonly metaKey: boolean;
readonly repeat: boolean;
readonly shiftKey: boolean;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_LEFT: number;
readonly DOM_KEY_LOCATION_NUMPAD: number;
readonly DOM_KEY_LOCATION_RIGHT: number;
readonly DOM_KEY_LOCATION_STANDARD: number;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
readonly DOM_KEY_LOCATION_LEFT: number;
readonly DOM_KEY_LOCATION_NUMPAD: number;
readonly DOM_KEY_LOCATION_RIGHT: number;
readonly DOM_KEY_LOCATION_STANDARD: number;
};
interface KeyframeEffect extends AnimationEffect {
composite: CompositeOperation;
iterationComposite: IterationCompositeOperation;
pseudoElement: string | null;
target: Element | null;
getKeyframes(): ComputedKeyframe[];
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}
declare var KeyframeEffect: {
prototype: KeyframeEffect;
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
new(source: KeyframeEffect): KeyframeEffect;
};
interface LinkStyle {
readonly sheet: CSSStyleSheet | null;
}
/** The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively. */
interface Location {
/** Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context. */
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port.
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*/
href: string;
toString(): string;
/** Returns the Location object's URL's origin. */
readonly origin: string;
/**
* Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path.
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*/
search: string;
/** Navigates to the given URL. */
assign(url: string | URL): void;
/** Reloads the current page. */
reload(): void;
/** Removes the current page from the session history and navigates to the given URL. */
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
interface MathMLElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MathMLElement: {
prototype: MathMLElement;
new(): MathMLElement;
};
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The MediaDevicesInfo interface contains information that describes a single media input or output device.
* Available only in secure contexts.
*/
interface MediaDeviceInfo {
readonly deviceId: string;
readonly groupId: string;
readonly kind: MediaDeviceKind;
readonly label: string;
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/**
* Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
* Available only in secure contexts.
*/
interface MediaDevices extends EventTarget {
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
enumerateDevices(): Promise<MediaDeviceInfo[]>;
getDisplayMedia(constraints?: DisplayMediaStreamConstraints): Promise<MediaStream>;
getSupportedConstraints(): MediaTrackSupportedConstraints;
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaDevices: {
prototype: MediaDevices;
new(): MediaDevices;
};
/** A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio. */
interface MediaElementAudioSourceNode extends AudioNode {
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
interface MediaEncryptedEvent extends Event {
readonly initData: ArrayBuffer | null;
readonly initDataType: string;
}
declare var MediaEncryptedEvent: {
prototype: MediaEncryptedEvent;
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};
/** An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>. */
interface MediaError {
readonly code: number;
readonly message: string;
readonly MEDIA_ERR_ABORTED: number;
readonly MEDIA_ERR_DECODE: number;
readonly MEDIA_ERR_NETWORK: number;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
readonly MEDIA_ERR_ABORTED: number;
readonly MEDIA_ERR_DECODE: number;
readonly MEDIA_ERR_NETWORK: number;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: number;
};
/**
* This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
* Available only in secure contexts.
*/
interface MediaKeyMessageEvent extends Event {
readonly message: ArrayBuffer;
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MediaKeyMessageEvent;
}
/**
* This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
* Available only in secure contexts.
*/
interface MediaKeySession extends EventTarget {
readonly closed: Promise<MediaKeySessionClosedReason>;
readonly expiration: number;
readonly keyStatuses: MediaKeyStatusMap;
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
readonly sessionId: string;
close(): Promise<void>;
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
load(sessionId: string): Promise<boolean>;
remove(): Promise<void>;
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/**
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
* Available only in secure contexts.
*/
interface MediaKeyStatusMap {
readonly size: number;
get(keyId: BufferSource): MediaKeyStatus | undefined;
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/**
* This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
* Available only in secure contexts.
*/
interface MediaKeySystemAccess {
readonly keySystem: string;
createMediaKeys(): Promise<MediaKeys>;
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/**
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
* Available only in secure contexts.
*/
interface MediaKeys {
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
interface MediaList {
readonly length: number;
mediaText: string;
toString(): string;
appendMedium(medium: string): void;
deleteMedium(medium: string): void;
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
interface MediaMetadata {
album: string;
artist: string;
artwork: ReadonlyArray<MediaImage>;
title: string;
}
declare var MediaMetadata: {
prototype: MediaMetadata;
new(init?: MediaMetadataInit): MediaMetadata;
};
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
/** Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true). */
interface MediaQueryList extends EventTarget {
readonly matches: boolean;
readonly media: string;
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/** @deprecated */
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/** @deprecated */
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaQueryList: {
prototype: MediaQueryList;
new(): MediaQueryList;
};
interface MediaQueryListEvent extends Event {
readonly matches: boolean;
readonly media: string;
}
declare var MediaQueryListEvent: {
prototype: MediaQueryListEvent;
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
interface MediaRecorderEventMap {
"dataavailable": BlobEvent;
"error": MediaRecorderErrorEvent;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
interface MediaRecorder extends EventTarget {
readonly audioBitsPerSecond: number;
readonly mimeType: string;
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
onerror: ((this: MediaRecorder, ev: MediaRecorderErrorEvent) => any) | null;
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
readonly state: RecordingState;
readonly stream: MediaStream;
readonly videoBitsPerSecond: number;
pause(): void;
requestData(): void;
resume(): void;
start(timeslice?: number): void;
stop(): void;
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaRecorder: {
prototype: MediaRecorder;
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
isTypeSupported(type: string): boolean;
};
interface MediaRecorderErrorEvent extends Event {
readonly error: DOMException;
}
declare var MediaRecorderErrorEvent: {
prototype: MediaRecorderErrorEvent;
new(type: string, eventInitDict: MediaRecorderErrorEventInit): MediaRecorderErrorEvent;
};
interface MediaSession {
metadata: MediaMetadata | null;
playbackState: MediaSessionPlaybackState;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
setPositionState(state?: MediaPositionState): void;
}
declare var MediaSession: {
prototype: MediaSession;
new(): MediaSession;
};
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
"sourceopen": Event;
}
/** This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent. */
interface MediaSource extends EventTarget {
readonly activeSourceBuffers: SourceBufferList;
duration: number;
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
readonly readyState: ReadyState;
readonly sourceBuffers: SourceBufferList;
addSourceBuffer(type: string): SourceBuffer;
clearLiveSeekableRange(): void;
endOfStream(error?: EndOfStreamError): void;
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
setLiveSeekableRange(start: number, end: number): void;
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/** A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack. */
interface MediaStream extends EventTarget {
readonly active: boolean;
readonly id: string;
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
addTrack(track: MediaStreamTrack): void;
clone(): MediaStream;
getAudioTracks(): MediaStreamTrack[];
getTrackById(trackId: string): MediaStreamTrack | null;
getTracks(): MediaStreamTrack[];
getVideoTracks(): MediaStreamTrack[];
removeTrack(track: MediaStreamTrack): void;
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStream: {
prototype: MediaStream;
new(): MediaStream;
new(stream: MediaStream): MediaStream;
new(tracks: MediaStreamTrack[]): MediaStream;
};
interface MediaStreamAudioDestinationNode extends AudioNode {
readonly stream: MediaStream;
}
declare var MediaStreamAudioDestinationNode: {
prototype: MediaStreamAudioDestinationNode;
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};
/** A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs. */
interface MediaStreamAudioSourceNode extends AudioNode {
readonly mediaStream: MediaStream;
}
declare var MediaStreamAudioSourceNode: {
prototype: MediaStreamAudioSourceNode;
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
"unmute": Event;
}
/** A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. */
interface MediaStreamTrack extends EventTarget {
contentHint: string;
enabled: boolean;
readonly id: string;
readonly kind: string;
readonly label: string;
readonly muted: boolean;
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
readonly readyState: MediaStreamTrackState;
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
clone(): MediaStreamTrack;
getCapabilities(): MediaTrackCapabilities;
getConstraints(): MediaTrackConstraints;
getSettings(): MediaTrackSettings;
stop(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStreamTrack: {
prototype: MediaStreamTrack;
new(): MediaStreamTrack;
};
/** Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur. */
interface MediaStreamTrackEvent extends Event {
readonly track: MediaStreamTrack;
}
declare var MediaStreamTrackEvent: {
prototype: MediaStreamTrackEvent;
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/** Returns the first MessagePort object. */
readonly port1: MessagePort;
/** Returns the second MessagePort object. */
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/** Returns the data of the message. */
readonly data: T;
/** Returns the last event ID string, for server-sent events. */
readonly lastEventId: string;
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
readonly origin: string;
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
readonly ports: ReadonlyArray<MessagePort>;
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** Disconnects the port, so that it is no longer active. */
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Begins dispatching messages received on the port. */
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
* @deprecated
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*/
interface MimeTypeArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/** Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown. */
interface MouseEvent extends UIEvent {
readonly altKey: boolean;
readonly button: number;
readonly buttons: number;
readonly clientX: number;
readonly clientY: number;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly movementX: number;
readonly movementY: number;
readonly offsetX: number;
readonly offsetY: number;
readonly pageX: number;
readonly pageY: number;
readonly relatedTarget: EventTarget | null;
readonly screenX: number;
readonly screenY: number;
readonly shiftKey: boolean;
readonly x: number;
readonly y: number;
getModifierState(keyArg: string): boolean;
/** @deprecated */
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}
declare var MouseEvent: {
prototype: MouseEvent;
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
/**
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
*/
interface MutationEvent extends Event {
/** @deprecated */
readonly attrChange: number;
/** @deprecated */
readonly attrName: string;
/** @deprecated */
readonly newValue: string;
/** @deprecated */
readonly prevValue: string;
/** @deprecated */
readonly relatedNode: Node | null;
/** @deprecated */
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
readonly ADDITION: number;
readonly MODIFICATION: number;
readonly REMOVAL: number;
};
/** Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification. */
interface MutationObserver {
/** Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked. */
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
*
* The options argument allows for setting mutation observation options via object members.
*/
observe(target: Node, options?: MutationObserverInit): void;
/** Empties the record queue and returns what was in there. */
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/** A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback. */
interface MutationRecord {
/** Return the nodes added and removed respectively. */
readonly addedNodes: NodeList;
/** Returns the local name of the changed attribute, and null otherwise. */
readonly attributeName: string | null;
/** Returns the namespace of the changed attribute, and null otherwise. */
readonly attributeNamespace: string | null;
/** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
readonly nextSibling: Node | null;
/** The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null. */
readonly oldValue: string | null;
/** Return the previous and next sibling respectively of the added or removed nodes, and null otherwise. */
readonly previousSibling: Node | null;
/** Return the nodes added and removed respectively. */
readonly removedNodes: NodeList;
/** Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed. */
readonly target: Node;
/** Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes. */
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/** A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. */
interface NamedNodeMap {
readonly length: number;
getNamedItem(qualifiedName: string): Attr | null;
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
item(index: number): Attr | null;
removeNamedItem(qualifiedName: string): Attr;
removeNamedItemNS(namespace: string | null, localName: string): Attr;
setNamedItem(attr: Attr): Attr | null;
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
interface Navigator extends NavigatorAutomationInformation, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/** Available only in secure contexts. */
readonly clipboard: Clipboard;
/** Available only in secure contexts. */
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
readonly geolocation: Geolocation;
readonly maxTouchPoints: number;
readonly mediaCapabilities: MediaCapabilities;
/** Available only in secure contexts. */
readonly mediaDevices: MediaDevices;
readonly mediaSession: MediaSession;
readonly permissions: Permissions;
/** Available only in secure contexts. */
readonly serviceWorker: ServiceWorkerContainer;
/** Available only in secure contexts. */
canShare(data?: ShareData): boolean;
getGamepads(): (Gamepad | null)[];
/** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/** Available only in secure contexts. */
share(data?: ShareData): Promise<void>;
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
readonly webdriver: boolean;
}
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
/** Available only in secure contexts. */
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
/** @deprecated */
readonly productSub: string;
readonly userAgent: string;
readonly vendor: string;
/** @deprecated */
readonly vendorSub: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
interface NavigatorNetworkInformation {
readonly connection: NetworkInformation;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
interface NavigatorPlugins {
/** @deprecated */
readonly mimeTypes: MimeTypeArray;
/** @deprecated */
readonly plugins: PluginArray;
/** @deprecated */
javaEnabled(): boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
readonly storage: StorageManager;
}
interface NetworkInformation extends EventTarget {
readonly type: ConnectionType;
}
declare var NetworkInformation: {
prototype: NetworkInformation;
new(): NetworkInformation;
};
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
interface Node extends EventTarget {
/** Returns node's node document's document base URL. */
readonly baseURI: string;
/** Returns the children. */
readonly childNodes: NodeListOf<ChildNode>;
/** Returns the first child. */
readonly firstChild: ChildNode | null;
/** Returns true if node is connected and false otherwise. */
readonly isConnected: boolean;
/** Returns the last child. */
readonly lastChild: ChildNode | null;
/** Returns the next sibling. */
readonly nextSibling: ChildNode | null;
/** Returns a string appropriate for the type of node. */
readonly nodeName: string;
/** Returns the type of node. */
readonly nodeType: number;
nodeValue: string | null;
/** Returns the node document. Returns null for documents. */
readonly ownerDocument: Document | null;
/** Returns the parent element. */
readonly parentElement: HTMLElement | null;
/** Returns the parent. */
readonly parentNode: ParentNode | null;
/** Returns the previous sibling. */
readonly previousSibling: ChildNode | null;
textContent: string | null;
appendChild<T extends Node>(node: T): T;
/** Returns a copy of node. If deep is true, the copy also includes the node's descendants. */
cloneNode(deep?: boolean): Node;
/** Returns a bitmask indicating the position of other relative to node. */
compareDocumentPosition(other: Node): number;
/** Returns true if other is an inclusive descendant of node, and false otherwise. */
contains(other: Node | null): boolean;
/** Returns node's root. */
getRootNode(options?: GetRootNodeOptions): Node;
/** Returns whether node has children. */
hasChildNodes(): boolean;
insertBefore<T extends Node>(node: T, child: Node | null): T;
isDefaultNamespace(namespace: string | null): boolean;
/** Returns whether node and otherNode have the same properties. */
isEqualNode(otherNode: Node | null): boolean;
isSameNode(otherNode: Node | null): boolean;
lookupNamespaceURI(prefix: string | null): string | null;
lookupPrefix(namespace: string | null): string | null;
/** Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes. */
normalize(): void;
removeChild<T extends Node>(child: T): T;
replaceChild<T extends Node>(node: Node, child: T): T;
readonly ATTRIBUTE_NODE: number;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: number;
/** node is a Comment node. */
readonly COMMENT_NODE: number;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: number;
/** node is a document. */
readonly DOCUMENT_NODE: number;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: number;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: number;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: number;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: number;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: number;
/** node is an element. */
readonly ELEMENT_NODE: number;
readonly ENTITY_NODE: number;
readonly ENTITY_REFERENCE_NODE: number;
readonly NOTATION_NODE: number;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: number;
/** node is a Text node. */
readonly TEXT_NODE: number;
}
declare var Node: {
prototype: Node;
new(): Node;
readonly ATTRIBUTE_NODE: number;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: number;
/** node is a Comment node. */
readonly COMMENT_NODE: number;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: number;
/** node is a document. */
readonly DOCUMENT_NODE: number;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: number;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: number;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: number;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: number;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: number;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: number;
/** node is an element. */
readonly ELEMENT_NODE: number;
readonly ENTITY_NODE: number;
readonly ENTITY_REFERENCE_NODE: number;
readonly NOTATION_NODE: number;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: number;
/** node is a Text node. */
readonly TEXT_NODE: number;
};
/** An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order. */
interface NodeIterator {
readonly filter: NodeFilter | null;
readonly pointerBeforeReferenceNode: boolean;
readonly referenceNode: Node;
readonly root: Node;
readonly whatToShow: number;
/** @deprecated */
detach(): void;
nextNode(): Node | null;
previousNode(): Node | null;
}
declare var NodeIterator: {
prototype: NodeIterator;
new(): NodeIterator;
};
/** NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll(). */
interface NodeList {
/** Returns the number of nodes in the collection. */
readonly length: number;
/** Returns the node with index index from the collection. The nodes are sorted in tree order. */
item(index: number): Node | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
[index: number]: Node;
}
declare var NodeList: {
prototype: NodeList;
new(): NodeList;
};
interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
[index: number]: TNode;
}
interface NonDocumentTypeChildNode {
/** Returns the first following sibling that is an element, and null otherwise. */
readonly nextElementSibling: Element | null;
/** Returns the first preceding sibling that is an element, and null otherwise. */
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/** Returns the first element within node's descendants whose ID is elementId. */
getElementById(elementId: string): Element | null;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: GLenum;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
readonly MAX_VIEWS_OVR: GLenum;
}
/** The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface. */
interface OfflineAudioCompletionEvent extends Event {
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/** An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer. */
interface OfflineAudioContext extends BaseAudioContext {
readonly length: number;
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
resume(): Promise<void>;
startRendering(): Promise<AudioBuffer>;
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
/** The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone. */
interface OscillatorNode extends AudioScheduledSourceNode {
readonly detune: AudioParam;
readonly frequency: AudioParam;
type: OscillatorType;
setPeriodicWave(periodicWave: PeriodicWave): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OscillatorNode: {
prototype: OscillatorNode;
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};
interface OverconstrainedError extends Error {
readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(constraint: string, message?: string): OverconstrainedError;
};
/** The PageTransitionEvent is fired when a document is being loaded or unloaded. */
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
*
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
*
* Things that can cause the page to be unsalvageable include:
*
* The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
*/
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};
/** A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels! */
interface PannerNode extends AudioNode {
coneInnerAngle: number;
coneOuterAngle: number;
coneOuterGain: number;
distanceModel: DistanceModelType;
maxDistance: number;
readonly orientationX: AudioParam;
readonly orientationY: AudioParam;
readonly orientationZ: AudioParam;
panningModel: PanningModelType;
readonly positionX: AudioParam;
readonly positionY: AudioParam;
readonly positionZ: AudioParam;
refDistance: number;
rolloffFactor: number;
/** @deprecated */
setOrientation(x: number, y: number, z: number): void;
/** @deprecated */
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
readonly childElementCount: number;
/** Returns the child elements. */
readonly children: HTMLCollection;
/** Returns the first child that is an element, and null otherwise. */
readonly firstElementChild: Element | null;
/** Returns the last child that is an element, and null otherwise. */
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*/
prepend(...nodes: (Node | string)[]): void;
/** Returns the first element that is a descendant of node that matches selectors. */
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
querySelector<E extends Element = Element>(selectors: string): E | null;
/** Returns all element descendants of node that match selectors. */
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
/**
* Replace all children of 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.
*/
replaceChildren(...nodes: (Node | string)[]): void;
}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/** Adds to the path the path given by the argument. */
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/** Available only in secure contexts. */
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
readonly methodDetails: any;
readonly methodName: string;
}
declare var PaymentMethodChangeEvent: {
prototype: PaymentMethodChangeEvent;
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
}
/**
* This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
* Available only in secure contexts.
*/
interface PaymentRequest extends EventTarget {
readonly id: string;
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
abort(): Promise<void>;
canMakePayment(): Promise<boolean>;
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/**
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
* Available only in secure contexts.
*/
interface PaymentRequestUpdateEvent extends Event {
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/**
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
* Available only in secure contexts.
*/
interface PaymentResponse extends EventTarget {
readonly details: any;
readonly methodName: string;
readonly requestId: string;
complete(result?: PaymentComplete): Promise<void>;
retry(errorFields?: PaymentValidationErrors): Promise<void>;
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
interface Performance extends EventTarget {
/** @deprecated */
readonly navigation: PerformanceNavigation;
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
/** @deprecated */
readonly timing: PerformanceTiming;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
interface PerformanceEventTiming extends PerformanceEntry {
readonly cancelable: boolean;
readonly processingEnd: DOMHighResTimeStamp;
readonly processingStart: DOMHighResTimeStamp;
readonly target: Node | null;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceNavigation {
/** @deprecated */
readonly redirectCount: number;
/** @deprecated */
readonly type: number;
/** @deprecated */
toJSON(): any;
readonly TYPE_BACK_FORWARD: number;
readonly TYPE_NAVIGATE: number;
readonly TYPE_RELOAD: number;
readonly TYPE_RESERVED: number;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
readonly TYPE_BACK_FORWARD: number;
readonly TYPE_NAVIGATE: number;
readonly TYPE_RELOAD: number;
readonly TYPE_RESERVED: number;
};
/** Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document. */
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
readonly domComplete: DOMHighResTimeStamp;
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
readonly domInteractive: DOMHighResTimeStamp;
readonly loadEventEnd: DOMHighResTimeStamp;
readonly loadEventStart: DOMHighResTimeStamp;
readonly redirectCount: number;
readonly type: NavigationType;
readonly unloadEventEnd: DOMHighResTimeStamp;
readonly unloadEventStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*/
interface PerformanceTiming {
/** @deprecated */
readonly connectEnd: number;
/** @deprecated */
readonly connectStart: number;
/** @deprecated */
readonly domComplete: number;
/** @deprecated */
readonly domContentLoadedEventEnd: number;
/** @deprecated */
readonly domContentLoadedEventStart: number;
/** @deprecated */
readonly domInteractive: number;
/** @deprecated */
readonly domLoading: number;
/** @deprecated */
readonly domainLookupEnd: number;
/** @deprecated */
readonly domainLookupStart: number;
/** @deprecated */
readonly fetchStart: number;
/** @deprecated */
readonly loadEventEnd: number;
/** @deprecated */
readonly loadEventStart: number;
/** @deprecated */
readonly navigationStart: number;
/** @deprecated */
readonly redirectEnd: number;
/** @deprecated */
readonly redirectStart: number;
/** @deprecated */
readonly requestStart: number;
/** @deprecated */
readonly responseEnd: number;
/** @deprecated */
readonly responseStart: number;
/** @deprecated */
readonly secureConnectionStart: number;
/** @deprecated */
readonly unloadEventEnd: number;
/** @deprecated */
readonly unloadEventStart: number;
/** @deprecated */
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/** PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave(). */
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
interface PictureInPictureWindow extends EventTarget {
readonly height: number;
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
readonly width: number;
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PictureInPictureWindow: {
prototype: PictureInPictureWindow;
new(): PictureInPictureWindow;
};
/**
* Provides information about a browser plugin.
* @deprecated
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*/
item(index: number): MimeType | null;
/** @deprecated */
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
* @deprecated
*/
interface PluginArray {
/** @deprecated */
readonly length: number;
/** @deprecated */
item(index: number): Plugin | null;
/** @deprecated */
namedItem(name: string): Plugin | null;
/** @deprecated */
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/** The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc. */
interface PointerEvent extends MouseEvent {
readonly height: number;
readonly isPrimary: boolean;
readonly pointerId: number;
readonly pointerType: string;
readonly pressure: number;
readonly tangentialPressure: number;
readonly tiltX: number;
readonly tiltY: number;
readonly twist: number;
readonly width: number;
/** Available only in secure contexts. */
getCoalescedEvents(): PointerEvent[];
getPredictedEvents(): PointerEvent[];
}
declare var PointerEvent: {
prototype: PointerEvent;
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};
/** PopStateEvent is an event handler for the popstate event on the window. */
interface PopStateEvent extends Event {
/** Returns a copy of the information that was provided to pushState() or replaceState(). */
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
/** A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them. */
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/** Available only in secure contexts. */
interface PublicKeyCredential extends Credential {
readonly rawId: ArrayBuffer;
readonly response: AuthenticatorResponse;
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*/
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*/
interface PushSubscription {
readonly endpoint: string;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/** Available only in secure contexts. */
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
interface RTCCertificate {
readonly expires: DOMTimeStamp;
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
interface RTCDTMFSender extends EventTarget {
readonly canInsertDTMF: boolean;
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
readonly toneBuffer: string;
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDTMFSender: {
prototype: RTCDTMFSender;
new(): RTCDTMFSender;
};
/** Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event. */
interface RTCDTMFToneChangeEvent extends Event {
readonly tone: string;
}
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface RTCDataChannel extends EventTarget {
binaryType: BinaryType;
readonly bufferedAmount: number;
bufferedAmountLowThreshold: number;
readonly id: number | null;
readonly label: string;
readonly maxPacketLifeTime: number | null;
readonly maxRetransmits: number | null;
readonly negotiated: boolean;
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
readonly ordered: boolean;
readonly protocol: string;
readonly readyState: RTCDataChannelState;
close(): void;
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
interface RTCDataChannelEvent extends Event {
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"statechange": Event;
}
interface RTCDtlsTransport extends EventTarget {
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
readonly state: RTCDtlsTransportState;
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
/** The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection. */
interface RTCIceCandidate {
readonly address: string | null;
readonly candidate: string;
readonly component: RTCIceComponent | null;
readonly foundation: string | null;
readonly port: number | null;
readonly priority: number | null;
readonly protocol: RTCIceProtocol | null;
readonly relatedAddress: string | null;
readonly relatedPort: number | null;
readonly sdpMLineIndex: number | null;
readonly sdpMid: string | null;
readonly tcpType: RTCIceTcpCandidateType | null;
readonly type: RTCIceCandidateType | null;
readonly usernameFragment: string | null;
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
/** Provides access to information about the ICE transport layer over which the data is being sent and received. */
interface RTCIceTransport extends EventTarget {
readonly gatheringState: RTCIceGathererState;
readonly state: RTCIceTransportState;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": Event;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"track": RTCTrackEvent;
}
/** A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed. */
interface RTCPeerConnection extends EventTarget {
readonly canTrickleIceCandidates: boolean | null;
readonly connectionState: RTCPeerConnectionState;
readonly currentLocalDescription: RTCSessionDescription | null;
readonly currentRemoteDescription: RTCSessionDescription | null;
readonly iceConnectionState: RTCIceConnectionState;
readonly iceGatheringState: RTCIceGatheringState;
readonly localDescription: RTCSessionDescription | null;
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
onicecandidateerror: ((this: RTCPeerConnection, ev: Event) => any) | null;
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
readonly pendingLocalDescription: RTCSessionDescription | null;
readonly pendingRemoteDescription: RTCSessionDescription | null;
readonly remoteDescription: RTCSessionDescription | null;
readonly signalingState: RTCSignalingState;
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
close(): void;
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
getConfiguration(): RTCConfiguration;
getReceivers(): RTCRtpReceiver[];
getSenders(): RTCRtpSender[];
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
getTransceivers(): RTCRtpTransceiver[];
removeTrack(sender: RTCRtpSender): void;
restartIce(): void;
setConfiguration(configuration?: RTCConfiguration): void;
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
/** @deprecated */
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
interface RTCPeerConnectionIceErrorEvent extends Event {
readonly address: string | null;
readonly errorCode: number;
readonly errorText: string;
readonly port: number | null;
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/** Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate. */
interface RTCPeerConnectionIceEvent extends Event {
readonly candidate: RTCIceCandidate | null;
}
declare var RTCPeerConnectionIceEvent: {
prototype: RTCPeerConnectionIceEvent;
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};
/** This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection. */
interface RTCRtpReceiver {
readonly track: MediaStreamTrack;
readonly transport: RTCDtlsTransport | null;
getContributingSources(): RTCRtpContributingSource[];
getParameters(): RTCRtpReceiveParameters;
getStats(): Promise<RTCStatsReport>;
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer. */
interface RTCRtpSender {
readonly dtmf: RTCDTMFSender | null;
readonly track: MediaStreamTrack | null;
readonly transport: RTCDtlsTransport | null;
getParameters(): RTCRtpSendParameters;
getStats(): Promise<RTCStatsReport>;
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
setParameters(parameters: RTCRtpSendParameters): Promise<void>;
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
interface RTCRtpTransceiver {
readonly currentDirection: RTCRtpTransceiverDirection | null;
direction: RTCRtpTransceiverDirection;
readonly mid: string | null;
readonly receiver: RTCRtpReceiver;
readonly sender: RTCRtpSender;
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
/** One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session. */
interface RTCSessionDescription {
readonly sdp: string;
readonly type: RTCSdpType;
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
interface RTCTrackEvent extends Event {
readonly receiver: RTCRtpReceiver;
readonly streams: ReadonlyArray<MediaStream>;
readonly track: MediaStreamTrack;
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
interface RadioNodeList extends NodeList {
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/** A fragment of a document that can contain nodes and parts of text nodes. */
interface Range extends AbstractRange {
/** Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node. */
readonly commonAncestorContainer: Node;
cloneContents(): DocumentFragment;
cloneRange(): Range;
collapse(toStart?: boolean): void;
compareBoundaryPoints(how: number, sourceRange: Range): number;
/** Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range. */
comparePoint(node: Node, offset: number): number;
createContextualFragment(fragment: string): DocumentFragment;
deleteContents(): void;
detach(): void;
extractContents(): DocumentFragment;
getBoundingClientRect(): DOMRect;
getClientRects(): DOMRectList;
insertNode(node: Node): void;
/** Returns whether range intersects node. */
intersectsNode(node: Node): boolean;
isPointInRange(node: Node, offset: number): boolean;
selectNode(node: Node): void;
selectNodeContents(node: Node): void;
setEnd(node: Node, offset: number): void;
setEndAfter(node: Node): void;
setEndBefore(node: Node): void;
setStart(node: Node, offset: number): void;
setStartAfter(node: Node): void;
setStartBefore(node: Node): void;
surroundContents(newParent: Node): void;
toString(): string;
readonly END_TO_END: number;
readonly END_TO_START: number;
readonly START_TO_END: number;
readonly START_TO_START: number;
}
declare var Range: {
prototype: Range;
new(): Range;
readonly END_TO_END: number;
readonly END_TO_START: number;
readonly START_TO_END: number;
readonly START_TO_START: number;
toString(): string;
};
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamDefaultReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
interface RemotePlayback extends EventTarget {
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
readonly state: RemotePlaybackState;
cancelWatchAvailability(id?: number): Promise<void>;
prompt(): Promise<void>;
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RemotePlayback: {
prototype: RemotePlayback;
new(): RemotePlayback;
};
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
readonly cache: RequestCache;
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
readonly credentials: RequestCredentials;
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
readonly destination: RequestDestination;
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
readonly headers: Headers;
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
readonly integrity: string;
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/** Returns request's HTTP method, which is "GET" by default. */
readonly method: string;
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
readonly mode: RequestMode;
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
readonly redirect: RequestRedirect;
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
readonly referrer: string;
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
readonly referrerPolicy: ReferrerPolicy;
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
readonly signal: AbortSignal;
/** Returns the URL of request as a string. */
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo, init?: RequestInit): Request;
};
interface ResizeObserver {
disconnect(): void;
observe(target: Element, options?: ResizeObserverOptions): void;
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
interface ResizeObserverEntry {
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
readonly contentRect: DOMRectReadOnly;
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
interface ResizeObserverSize {
readonly blockSize: number;
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Provides access to the properties of <a> element, as well as methods to manipulate them. */
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAElement: {
prototype: SVGAElement;
new(): SVGAElement;
};
/** Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only. */
interface SVGAngle {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_ANGLETYPE_DEG: number;
readonly SVG_ANGLETYPE_GRAD: number;
readonly SVG_ANGLETYPE_RAD: number;
readonly SVG_ANGLETYPE_UNKNOWN: number;
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
readonly SVG_ANGLETYPE_DEG: number;
readonly SVG_ANGLETYPE_GRAD: number;
readonly SVG_ANGLETYPE_RAD: number;
readonly SVG_ANGLETYPE_UNKNOWN: number;
readonly SVG_ANGLETYPE_UNSPECIFIED: number;
};
interface SVGAnimateElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateElement: {
prototype: SVGAnimateElement;
new(): SVGAnimateElement;
};
interface SVGAnimateMotionElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateMotionElement: {
prototype: SVGAnimateMotionElement;
new(): SVGAnimateMotionElement;
};
interface SVGAnimateTransformElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateTransformElement: {
prototype: SVGAnimateTransformElement;
new(): SVGAnimateTransformElement;
};
/** Used for attributes of basic type <angle> which can be animated. */
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/** Used for attributes of type boolean which can be animated. */
interface SVGAnimatedBoolean {
readonly animVal: boolean;
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/** Used for attributes whose value must be a constant from a particular enumeration and which can be animated. */
interface SVGAnimatedEnumeration {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/** Used for attributes of basic type <integer> which can be animated. */
interface SVGAnimatedInteger {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/** Used for attributes of basic type <length> which can be animated. */
interface SVGAnimatedLength {
readonly animVal: SVGLength;
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/** Used for attributes of type SVGLengthList which can be animated. */
interface SVGAnimatedLengthList {
readonly animVal: SVGLengthList;
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/** Used for attributes of basic type <Number> which can be animated. */
interface SVGAnimatedNumber {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/** The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedNumberList {
readonly animVal: SVGNumberList;
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
readonly animatedPoints: SVGPointList;
readonly points: SVGPointList;
}
/** Used for attributes of type SVGPreserveAspectRatio which can be animated. */
interface SVGAnimatedPreserveAspectRatio {
readonly animVal: SVGPreserveAspectRatio;
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/** Used for attributes of basic SVGRect which can be animated. */
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/** The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this. */
interface SVGAnimatedString {
readonly animVal: string;
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/** Used for attributes which take a list of numbers and which can be animated. */
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
interface SVGAnimationElement extends SVGElement, SVGTests {
readonly targetElement: SVGElement | null;
beginElement(): void;
beginElementAt(offset: number): void;
endElement(): void;
endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimationElement: {
prototype: SVGAnimationElement;
new(): SVGAnimationElement;
};
/** An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle. */
interface SVGCircleElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCircleElement: {
prototype: SVGCircleElement;
new(): SVGCircleElement;
};
/** Provides access to the properties of <clipPath> elements, as well as methods to manipulate them. */
interface SVGClipPathElement extends SVGElement {
readonly clipPathUnits: SVGAnimatedEnumeration;
readonly transform: SVGAnimatedTransformList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGClipPathElement: {
prototype: SVGClipPathElement;
new(): SVGClipPathElement;
};
/** A base interface used by the component transfer function interfaces. */
interface SVGComponentTransferFunctionElement extends SVGElement {
readonly amplitude: SVGAnimatedNumber;
readonly exponent: SVGAnimatedNumber;
readonly intercept: SVGAnimatedNumber;
readonly offset: SVGAnimatedNumber;
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: number;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: number;
};
/** Corresponds to the <defs> element. */
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/** Corresponds to the <desc> element. */
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
/** All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface. */
interface SVGElement extends Element, DocumentAndElementEventHandlers, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGElement: {
prototype: SVGElement;
new(): SVGElement;
};
/** Provides access to the properties of <ellipse> elements. */
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGEllipseElement: {
prototype: SVGEllipseElement;
new(): SVGEllipseElement;
};
/** Corresponds to the <feBlend> element. */
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
readonly SVG_FEBLEND_MODE_COLOR: number;
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
readonly SVG_FEBLEND_MODE_DARKEN: number;
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
readonly SVG_FEBLEND_MODE_HUE: number;
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
readonly SVG_FEBLEND_MODE_NORMAL: number;
readonly SVG_FEBLEND_MODE_OVERLAY: number;
readonly SVG_FEBLEND_MODE_SATURATION: number;
readonly SVG_FEBLEND_MODE_SCREEN: number;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
readonly SVG_FEBLEND_MODE_COLOR: number;
readonly SVG_FEBLEND_MODE_COLOR_BURN: number;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: number;
readonly SVG_FEBLEND_MODE_DARKEN: number;
readonly SVG_FEBLEND_MODE_DIFFERENCE: number;
readonly SVG_FEBLEND_MODE_EXCLUSION: number;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: number;
readonly SVG_FEBLEND_MODE_HUE: number;
readonly SVG_FEBLEND_MODE_LIGHTEN: number;
readonly SVG_FEBLEND_MODE_LUMINOSITY: number;
readonly SVG_FEBLEND_MODE_MULTIPLY: number;
readonly SVG_FEBLEND_MODE_NORMAL: number;
readonly SVG_FEBLEND_MODE_OVERLAY: number;
readonly SVG_FEBLEND_MODE_SATURATION: number;
readonly SVG_FEBLEND_MODE_SCREEN: number;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: number;
readonly SVG_FEBLEND_MODE_UNKNOWN: number;
};
/** Corresponds to the <feColorMatrix> element. */
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly type: SVGAnimatedEnumeration;
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: number;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: number;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: number;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: number;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: number;
};
/** Corresponds to the <feComponentTransfer> element. */
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEComponentTransferElement: {
prototype: SVGFEComponentTransferElement;
new(): SVGFEComponentTransferElement;
};
/** Corresponds to the <feComposite> element. */
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly k1: SVGAnimatedNumber;
readonly k2: SVGAnimatedNumber;
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: number;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: number;
readonly SVG_FECOMPOSITE_OPERATOR_IN: number;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: number;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: number;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: number;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: number;
};
/** Corresponds to the <feConvolveMatrix> element. */
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly bias: SVGAnimatedNumber;
readonly divisor: SVGAnimatedNumber;
readonly edgeMode: SVGAnimatedEnumeration;
readonly in1: SVGAnimatedString;
readonly kernelMatrix: SVGAnimatedNumberList;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly orderX: SVGAnimatedInteger;
readonly orderY: SVGAnimatedInteger;
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
readonly SVG_EDGEMODE_DUPLICATE: number;
readonly SVG_EDGEMODE_NONE: number;
readonly SVG_EDGEMODE_UNKNOWN: number;
readonly SVG_EDGEMODE_WRAP: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
readonly SVG_EDGEMODE_DUPLICATE: number;
readonly SVG_EDGEMODE_NONE: number;
readonly SVG_EDGEMODE_UNKNOWN: number;
readonly SVG_EDGEMODE_WRAP: number;
};
/** Corresponds to the <feDiffuseLighting> element. */
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly diffuseConstant: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDiffuseLightingElement: {
prototype: SVGFEDiffuseLightingElement;
new(): SVGFEDiffuseLightingElement;
};
/** Corresponds to the <feDisplacementMap> element. */
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
readonly SVG_CHANNEL_A: number;
readonly SVG_CHANNEL_B: number;
readonly SVG_CHANNEL_G: number;
readonly SVG_CHANNEL_R: number;
readonly SVG_CHANNEL_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
readonly SVG_CHANNEL_A: number;
readonly SVG_CHANNEL_B: number;
readonly SVG_CHANNEL_G: number;
readonly SVG_CHANNEL_R: number;
readonly SVG_CHANNEL_UNKNOWN: number;
};
/** Corresponds to the <feDistantLight> element. */
interface SVGFEDistantLightElement extends SVGElement {
readonly azimuth: SVGAnimatedNumber;
readonly elevation: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDistantLightElement: {
prototype: SVGFEDistantLightElement;
new(): SVGFEDistantLightElement;
};
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDropShadowElement: {
prototype: SVGFEDropShadowElement;
new(): SVGFEDropShadowElement;
};
/** Corresponds to the <feFlood> element. */
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFloodElement: {
prototype: SVGFEFloodElement;
new(): SVGFEFloodElement;
};
/** Corresponds to the <feFuncA> element. */
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncAElement: {
prototype: SVGFEFuncAElement;
new(): SVGFEFuncAElement;
};
/** Corresponds to the <feFuncB> element. */
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncBElement: {
prototype: SVGFEFuncBElement;
new(): SVGFEFuncBElement;
};
/** Corresponds to the <feFuncG> element. */
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncGElement: {
prototype: SVGFEFuncGElement;
new(): SVGFEFuncGElement;
};
/** Corresponds to the <feFuncR> element. */
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncRElement: {
prototype: SVGFEFuncRElement;
new(): SVGFEFuncRElement;
};
/** Corresponds to the <feGaussianBlur> element. */
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEGaussianBlurElement: {
prototype: SVGFEGaussianBlurElement;
new(): SVGFEGaussianBlurElement;
};
/** Corresponds to the <feImage> element. */
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEImageElement: {
prototype: SVGFEImageElement;
new(): SVGFEImageElement;
};
/** Corresponds to the <feMerge> element. */
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeElement: {
prototype: SVGFEMergeElement;
new(): SVGFEMergeElement;
};
/** Corresponds to the <feMergeNode> element. */
interface SVGFEMergeNodeElement extends SVGElement {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeNodeElement: {
prototype: SVGFEMergeNodeElement;
new(): SVGFEMergeNodeElement;
};
/** Corresponds to the <feMorphology> element. */
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: number;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: number;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: number;
};
/** Corresponds to the <feOffset> element. */
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEOffsetElement: {
prototype: SVGFEOffsetElement;
new(): SVGFEOffsetElement;
};
/** Corresponds to the <fePointLight> element. */
interface SVGFEPointLightElement extends SVGElement {
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEPointLightElement: {
prototype: SVGFEPointLightElement;
new(): SVGFEPointLightElement;
};
/** Corresponds to the <feSpecularLighting> element. */
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly specularConstant: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpecularLightingElement: {
prototype: SVGFESpecularLightingElement;
new(): SVGFESpecularLightingElement;
};
/** Corresponds to the <feSpotLight> element. */
interface SVGFESpotLightElement extends SVGElement {
readonly limitingConeAngle: SVGAnimatedNumber;
readonly pointsAtX: SVGAnimatedNumber;
readonly pointsAtY: SVGAnimatedNumber;
readonly pointsAtZ: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpotLightElement: {
prototype: SVGFESpotLightElement;
new(): SVGFESpotLightElement;
};
/** Corresponds to the <feTile> element. */
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETileElement: {
prototype: SVGFETileElement;
new(): SVGFETileElement;
};
/** Corresponds to the <feTurbulence> element. */
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly baseFrequencyX: SVGAnimatedNumber;
readonly baseFrequencyY: SVGAnimatedNumber;
readonly numOctaves: SVGAnimatedInteger;
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
readonly SVG_STITCHTYPE_NOSTITCH: number;
readonly SVG_STITCHTYPE_STITCH: number;
readonly SVG_STITCHTYPE_UNKNOWN: number;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
readonly SVG_STITCHTYPE_NOSTITCH: number;
readonly SVG_STITCHTYPE_STITCH: number;
readonly SVG_STITCHTYPE_UNKNOWN: number;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: number;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: number;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: number;
};
/** Provides access to the properties of <filter> elements, as well as methods to manipulate them. */
interface SVGFilterElement extends SVGElement, SVGURIReference {
readonly filterUnits: SVGAnimatedEnumeration;
readonly height: SVGAnimatedLength;
readonly primitiveUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFilterElement: {
prototype: SVGFilterElement;
new(): SVGFilterElement;
};
interface SVGFilterPrimitiveStandardAttributes {
readonly height: SVGAnimatedLength;
readonly result: SVGAnimatedString;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
}
interface SVGFitToViewBox {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly viewBox: SVGAnimatedRect;
}
/** Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them. */
interface SVGForeignObjectElement extends SVGGraphicsElement {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGForeignObjectElement: {
prototype: SVGForeignObjectElement;
new(): SVGForeignObjectElement;
};
/** Corresponds to the <g> element. */
interface SVGGElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
};
interface SVGGeometryElement extends SVGGraphicsElement {
readonly pathLength: SVGAnimatedNumber;
getPointAtLength(distance: number): DOMPoint;
getTotalLength(): number;
isPointInFill(point?: DOMPointInit): boolean;
isPointInStroke(point?: DOMPointInit): boolean;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGeometryElement: {
prototype: SVGGeometryElement;
new(): SVGGeometryElement;
};
/** The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement. */
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
readonly SVG_SPREADMETHOD_PAD: number;
readonly SVG_SPREADMETHOD_REFLECT: number;
readonly SVG_SPREADMETHOD_REPEAT: number;
readonly SVG_SPREADMETHOD_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
readonly SVG_SPREADMETHOD_PAD: number;
readonly SVG_SPREADMETHOD_REFLECT: number;
readonly SVG_SPREADMETHOD_REPEAT: number;
readonly SVG_SPREADMETHOD_UNKNOWN: number;
};
/** SVG elements whose primary purpose is to directly render graphics into a group. */
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
getCTM(): DOMMatrix | null;
getScreenCTM(): DOMMatrix | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGraphicsElement: {
prototype: SVGGraphicsElement;
new(): SVGGraphicsElement;
};
/** Corresponds to the <image> element. */
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGImageElement: {
prototype: SVGImageElement;
new(): SVGImageElement;
};
/** Correspond to the <length> basic data type. */
interface SVGLength {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_LENGTHTYPE_CM: number;
readonly SVG_LENGTHTYPE_EMS: number;
readonly SVG_LENGTHTYPE_EXS: number;
readonly SVG_LENGTHTYPE_IN: number;
readonly SVG_LENGTHTYPE_MM: number;
readonly SVG_LENGTHTYPE_NUMBER: number;
readonly SVG_LENGTHTYPE_PC: number;
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
readonly SVG_LENGTHTYPE_PT: number;
readonly SVG_LENGTHTYPE_PX: number;
readonly SVG_LENGTHTYPE_UNKNOWN: number;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
readonly SVG_LENGTHTYPE_CM: number;
readonly SVG_LENGTHTYPE_EMS: number;
readonly SVG_LENGTHTYPE_EXS: number;
readonly SVG_LENGTHTYPE_IN: number;
readonly SVG_LENGTHTYPE_MM: number;
readonly SVG_LENGTHTYPE_NUMBER: number;
readonly SVG_LENGTHTYPE_PC: number;
readonly SVG_LENGTHTYPE_PERCENTAGE: number;
readonly SVG_LENGTHTYPE_PT: number;
readonly SVG_LENGTHTYPE_PX: number;
readonly SVG_LENGTHTYPE_UNKNOWN: number;
};
/** The SVGLengthList defines a list of SVGLength objects. */
interface SVGLengthList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGLength): SVGLength;
clear(): void;
getItem(index: number): SVGLength;
initialize(newItem: SVGLength): SVGLength;
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
removeItem(index: number): SVGLength;
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/** Provides access to the properties of <line> elements, as well as methods to manipulate them. */
interface SVGLineElement extends SVGGeometryElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLineElement: {
prototype: SVGLineElement;
new(): SVGLineElement;
};
/** Corresponds to the <linearGradient> element. */
interface SVGLinearGradientElement extends SVGGradientElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLinearGradientElement: {
prototype: SVGLinearGradientElement;
new(): SVGLinearGradientElement;
};
interface SVGMPathElement extends SVGElement, SVGURIReference {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMPathElement: {
prototype: SVGMPathElement;
new(): SVGMPathElement;
};
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
readonly markerHeight: SVGAnimatedLength;
readonly markerUnits: SVGAnimatedEnumeration;
readonly markerWidth: SVGAnimatedLength;
readonly orientAngle: SVGAnimatedAngle;
readonly orientType: SVGAnimatedEnumeration;
readonly refX: SVGAnimatedLength;
readonly refY: SVGAnimatedLength;
setOrientToAngle(angle: SVGAngle): void;
setOrientToAuto(): void;
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
readonly SVG_MARKERUNITS_UNKNOWN: number;
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
readonly SVG_MARKER_ORIENT_ANGLE: number;
readonly SVG_MARKER_ORIENT_AUTO: number;
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
readonly SVG_MARKERUNITS_STROKEWIDTH: number;
readonly SVG_MARKERUNITS_UNKNOWN: number;
readonly SVG_MARKERUNITS_USERSPACEONUSE: number;
readonly SVG_MARKER_ORIENT_ANGLE: number;
readonly SVG_MARKER_ORIENT_AUTO: number;
readonly SVG_MARKER_ORIENT_UNKNOWN: number;
};
/** Provides access to the properties of <mask> elements, as well as methods to manipulate them. */
interface SVGMaskElement extends SVGElement {
readonly height: SVGAnimatedLength;
readonly maskContentUnits: SVGAnimatedEnumeration;
readonly maskUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMaskElement: {
prototype: SVGMaskElement;
new(): SVGMaskElement;
};
/** Corresponds to the <metadata> element. */
interface SVGMetadataElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMetadataElement: {
prototype: SVGMetadataElement;
new(): SVGMetadataElement;
};
/** Corresponds to the <number> basic data type. */
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/** The SVGNumberList defines a list of SVGNumber objects. */
interface SVGNumberList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGNumber): SVGNumber;
clear(): void;
getItem(index: number): SVGNumber;
initialize(newItem: SVGNumber): SVGNumber;
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
removeItem(index: number): SVGNumber;
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/** Corresponds to the <path> element. */
interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
/** Corresponds to the <pattern> element. */
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
readonly patternUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPatternElement: {
prototype: SVGPatternElement;
new(): SVGPatternElement;
};
interface SVGPointList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: DOMPoint): DOMPoint;
clear(): void;
getItem(index: number): DOMPoint;
initialize(newItem: DOMPoint): DOMPoint;
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
removeItem(index: number): DOMPoint;
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
[index: number]: DOMPoint;
}
declare var SVGPointList: {
prototype: SVGPointList;
new(): SVGPointList;
};
/** Provides access to the properties of <polygon> elements, as well as methods to manipulate them. */
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolygonElement: {
prototype: SVGPolygonElement;
new(): SVGPolygonElement;
};
/** Provides access to the properties of <polyline> elements, as well as methods to manipulate them. */
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolylineElement: {
prototype: SVGPolylineElement;
new(): SVGPolylineElement;
};
/** Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements. */
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
readonly SVG_MEETORSLICE_MEET: number;
readonly SVG_MEETORSLICE_SLICE: number;
readonly SVG_MEETORSLICE_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
readonly SVG_MEETORSLICE_MEET: number;
readonly SVG_MEETORSLICE_SLICE: number;
readonly SVG_MEETORSLICE_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_NONE: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: number;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: number;
};
/** Corresponds to the <RadialGradient> element. */
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRadialGradientElement: {
prototype: SVGRadialGradientElement;
new(): SVGRadialGradientElement;
};
/** Provides access to the properties of <rect> elements, as well as methods to manipulate them. */
interface SVGRectElement extends SVGGeometryElement {
readonly height: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRectElement: {
prototype: SVGRectElement;
new(): SVGRectElement;
};
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/** Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices. */
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
/** @deprecated */
unsuspendRedraw(suspendHandleID: number): void;
/** @deprecated */
unsuspendRedrawAll(): void;
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
};
/** Corresponds to the SVG <script> element. */
interface SVGScriptElement extends SVGElement, SVGURIReference {
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGScriptElement: {
prototype: SVGScriptElement;
new(): SVGScriptElement;
};
interface SVGSetElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSetElement: {
prototype: SVGSetElement;
new(): SVGSetElement;
};
/** Corresponds to the <stop> element. */
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStopElement: {
prototype: SVGStopElement;
new(): SVGStopElement;
};
/** The SVGStringList defines a list of DOMString objects. */
interface SVGStringList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: string): string;
clear(): void;
getItem(index: number): string;
initialize(newItem: string): string;
insertItemBefore(newItem: string, index: number): string;
removeItem(index: number): string;
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/** Corresponds to the SVG <style> element. */
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
media: string;
title: string;
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStyleElement: {
prototype: SVGStyleElement;
new(): SVGStyleElement;
};
/** Corresponds to the <switch> element. */
interface SVGSwitchElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSwitchElement: {
prototype: SVGSwitchElement;
new(): SVGSwitchElement;
};
/** Corresponds to the <symbol> element. */
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSymbolElement: {
prototype: SVGSymbolElement;
new(): SVGSymbolElement;
};
/** A <tspan> element. */
interface SVGTSpanElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTSpanElement: {
prototype: SVGTSpanElement;
new(): SVGTSpanElement;
};
interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
}
/** Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement. */
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
readonly LENGTHADJUST_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
readonly LENGTHADJUST_SPACING: number;
readonly LENGTHADJUST_SPACINGANDGLYPHS: number;
readonly LENGTHADJUST_UNKNOWN: number;
};
/** Corresponds to the <text> elements. */
interface SVGTextElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextElement: {
prototype: SVGTextElement;
new(): SVGTextElement;
};
/** Corresponds to the <textPath> element. */
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
readonly TEXTPATH_METHODTYPE_ALIGN: number;
readonly TEXTPATH_METHODTYPE_STRETCH: number;
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
readonly TEXTPATH_METHODTYPE_ALIGN: number;
readonly TEXTPATH_METHODTYPE_STRETCH: number;
readonly TEXTPATH_METHODTYPE_UNKNOWN: number;
readonly TEXTPATH_SPACINGTYPE_AUTO: number;
readonly TEXTPATH_SPACINGTYPE_EXACT: number;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: number;
};
/** Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. */
interface SVGTextPositioningElement extends SVGTextContentElement {
readonly dx: SVGAnimatedLengthList;
readonly dy: SVGAnimatedLengthList;
readonly rotate: SVGAnimatedNumberList;
readonly x: SVGAnimatedLengthList;
readonly y: SVGAnimatedLengthList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPositioningElement: {
prototype: SVGTextPositioningElement;
new(): SVGTextPositioningElement;
};
/** Corresponds to the <title> element. */
interface SVGTitleElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTitleElement: {
prototype: SVGTitleElement;
new(): SVGTitleElement;
};
/** SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute. */
interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
readonly SVG_TRANSFORM_MATRIX: number;
readonly SVG_TRANSFORM_ROTATE: number;
readonly SVG_TRANSFORM_SCALE: number;
readonly SVG_TRANSFORM_SKEWX: number;
readonly SVG_TRANSFORM_SKEWY: number;
readonly SVG_TRANSFORM_TRANSLATE: number;
readonly SVG_TRANSFORM_UNKNOWN: number;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
readonly SVG_TRANSFORM_MATRIX: number;
readonly SVG_TRANSFORM_ROTATE: number;
readonly SVG_TRANSFORM_SCALE: number;
readonly SVG_TRANSFORM_SKEWX: number;
readonly SVG_TRANSFORM_SKEWY: number;
readonly SVG_TRANSFORM_TRANSLATE: number;
readonly SVG_TRANSFORM_UNKNOWN: number;
};
/** The SVGTransformList defines a list of SVGTransform objects. */
interface SVGTransformList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform | null;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
readonly href: SVGAnimatedString;
}
/** A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes. */
interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
readonly SVG_UNIT_TYPE_UNKNOWN: number;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: number;
};
/** Corresponds to the <use> element. */
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGUseElement: {
prototype: SVGUseElement;
new(): SVGUseElement;
};
/** Provides access to the properties of <view> elements, as well as methods to manipulate them. */
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
};
/** A screen, usually the one on which the current window is being rendered, and is obtained using window.screen. */
interface Screen {
readonly availHeight: number;
readonly availWidth: number;
readonly colorDepth: number;
readonly height: number;
readonly orientation: ScreenOrientation;
readonly pixelDepth: number;
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
interface ScreenOrientation extends EventTarget {
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
readonly type: OrientationType;
lock(orientation: OrientationLockType): Promise<void>;
unlock(): void;
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ScreenOrientation: {
prototype: ScreenOrientation;
new(): ScreenOrientation;
};
interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
/**
* Allows the generation, processing, or analyzing of audio using JavaScript.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
*/
interface ScriptProcessorNode extends AudioNode {
/** @deprecated */
readonly bufferSize: number;
/** @deprecated */
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/** A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection(). */
interface Selection {
readonly anchorNode: Node | null;
readonly anchorOffset: number;
readonly focusNode: Node | null;
readonly focusOffset: number;
readonly isCollapsed: boolean;
readonly rangeCount: number;
readonly type: string;
addRange(range: Range): void;
collapse(node: Node | null, offset?: number): void;
collapseToEnd(): void;
collapseToStart(): void;
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
deleteFromDocument(): void;
empty(): void;
extend(node: Node, offset?: number): void;
getRangeAt(index: number): Range;
removeAllRanges(): void;
removeRange(range: Range): void;
selectAllChildren(node: Node): void;
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
toString(): string;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*/
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*/
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
readonly delegatesFocus: boolean;
readonly host: Element;
readonly mode: ShadowRootMode;
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
interface SharedWorker extends EventTarget, AbstractWorker {
/** Returns sharedWorker's MessagePort object which can be used to communicate with the global environment. */
readonly port: MessagePort;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorker: {
prototype: SharedWorker;
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
readonly assignedSlot: HTMLSlotElement | null;
}
interface SourceBufferEventMap {
"abort": Event;
"error": Event;
"update": Event;
"updateend": Event;
"updatestart": Event;
}
/** A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments. */
interface SourceBuffer extends EventTarget {
appendWindowEnd: number;
appendWindowStart: number;
readonly buffered: TimeRanges;
mode: AppendMode;
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
timestampOffset: number;
readonly updating: boolean;
abort(): void;
appendBuffer(data: BufferSource): void;
changeType(type: string): void;
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SourceBuffer: {
prototype: SourceBuffer;
new(): SourceBuffer;
};
interface SourceBufferListEventMap {
"addsourcebuffer": Event;
"removesourcebuffer": Event;
}
/** A simple container list for multiple SourceBuffer objects. */
interface SourceBufferList extends EventTarget {
readonly length: number;
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
interface SpeechRecognitionAlternative {
readonly confidence: number;
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
interface SpeechRecognitionResult {
readonly isFinal: boolean;
readonly length: number;
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
interface SpeechRecognitionResultList {
readonly length: number;
item(index: number): SpeechRecognitionResult;
[index: number]: SpeechRecognitionResult;
}
declare var SpeechRecognitionResultList: {
prototype: SpeechRecognitionResultList;
new(): SpeechRecognitionResultList;
};
interface SpeechSynthesisEventMap {
"voiceschanged": Event;
}
/** This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides. */
interface SpeechSynthesis extends EventTarget {
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
readonly paused: boolean;
readonly pending: boolean;
readonly speaking: boolean;
cancel(): void;
getVoices(): SpeechSynthesisVoice[];
pause(): void;
resume(): void;
speak(utterance: SpeechSynthesisUtterance): void;
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesis: {
prototype: SpeechSynthesis;
new(): SpeechSynthesis;
};
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
readonly error: SpeechSynthesisErrorCode;
}
declare var SpeechSynthesisErrorEvent: {
prototype: SpeechSynthesisErrorEvent;
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};
/** This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service. */
interface SpeechSynthesisEvent extends Event {
readonly charIndex: number;
readonly charLength: number;
readonly elapsedTime: number;
readonly name: string;
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};
interface SpeechSynthesisUtteranceEventMap {
"boundary": SpeechSynthesisEvent;
"end": SpeechSynthesisEvent;
"error": SpeechSynthesisErrorEvent;
"mark": SpeechSynthesisEvent;
"pause": SpeechSynthesisEvent;
"resume": SpeechSynthesisEvent;
"start": SpeechSynthesisEvent;
}
/** This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.) */
interface SpeechSynthesisUtterance extends EventTarget {
lang: string;
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
pitch: number;
rate: number;
text: string;
voice: SpeechSynthesisVoice | null;
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesisUtterance: {
prototype: SpeechSynthesisUtterance;
new(text?: string): SpeechSynthesisUtterance;
};
/** This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI. */
interface SpeechSynthesisVoice {
readonly default: boolean;
readonly lang: string;
readonly localService: boolean;
readonly name: string;
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/** The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode. */
interface StereoPannerNode extends AudioNode {
readonly pan: AudioParam;
}
declare var StereoPannerNode: {
prototype: StereoPannerNode;
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};
/** This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items. */
interface Storage {
/** Returns the number of key/value pairs. */
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
clear(): void;
/** Returns the current value associated with the given key, or null if the given key does not exist. */
getItem(key: string): string | null;
/** Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs. */
key(index: number): string | null;
/**
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*/
setItem(key: string, value: string): void;
[name: string]: any;
}
declare var Storage: {
prototype: Storage;
new(): Storage;
};
/** A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document. */
interface StorageEvent extends Event {
/** Returns the key of the storage item being changed. */
readonly key: string | null;
/** Returns the new value of the key of the storage item whose value is being changed. */
readonly newValue: string | null;
/** Returns the old value of the key of the storage item whose value is being changed. */
readonly oldValue: string | null;
/** Returns the Storage object that was affected. */
readonly storageArea: Storage | null;
/** Returns the URL of the document whose storage item changed. */
readonly url: string;
initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
/** Available only in secure contexts. */
interface StorageManager {
estimate(): Promise<StorageEstimate>;
persist(): Promise<boolean>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
interface StyleSheet {
disabled: boolean;
readonly href: string | null;
readonly media: MediaList;
readonly ownerNode: Element | ProcessingInstruction | null;
readonly parentStyleSheet: CSSStyleSheet | null;
readonly title: string | null;
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/** A list of StyleSheet. */
interface StyleSheetList {
readonly length: number;
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
interface SubmitEvent extends Event {
/** Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button. */
readonly submitter: HTMLElement | null;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*/
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
interface Text extends CharacterData, Slottable {
/** Returns the combined data of all direct Text node siblings. */
readonly wholeText: string;
/** Splits data at the given offset and returns the remainder as Text node. */
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns true if error mode is "fatal", otherwise false. */
readonly fatal: boolean;
/** Returns the value of ignore BOM. */
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/** Returns "utf-8". */
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/** Returns the measurement described below. */
readonly actualBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxLeft: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxRight: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/** This interface also inherits properties from EventTarget. */
interface TextTrack extends EventTarget {
/** Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object. */
readonly activeCues: TextTrackCueList | null;
/** Returns the text track list of cues, as a TextTrackCueList object. */
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
*
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
*
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*/
readonly id: string;
/** Returns the text track in-band metadata track dispatch type string. */
readonly inBandMetadataTrackDispatchType: string;
/** Returns the text track kind string. */
readonly kind: TextTrackKind;
/** Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user). */
readonly label: string;
/** Returns the text track language string. */
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*/
mode: TextTrackMode;
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/** Adds the given cue to textTrack's text track list of cues. */
addCue(cue: TextTrackCue): void;
/** Removes the given cue from textTrack's text track list of cues. */
removeCue(cue: TextTrackCue): void;
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrack: {
prototype: TextTrack;
new(): TextTrack;
};
interface TextTrackCueEventMap {
"enter": Event;
"exit": Event;
}
/** TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used. */
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*/
id: string;
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
*
* Can be set.
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*/
startTime: number;
/** Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise. */
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrackCue: {
prototype: TextTrackCue;
new(): TextTrackCue;
};
interface TextTrackCueList {
/** Returns the number of cues in the list. */
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
*
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
interface TextTrackList extends EventTarget {
readonly length: number;
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
onchange: ((this: TextTrackList, ev: Event) => any) | null;
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
getTrackById(id: string): TextTrack | null;
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: TextTrack;
}
declare var TextTrackList: {
prototype: TextTrackList;
new(): TextTrackList;
};
/** Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements. */
interface TimeRanges {
/** Returns the number of ranges in the object. */
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad. */
interface Touch {
readonly clientX: number;
readonly clientY: number;
readonly force: number;
readonly identifier: number;
readonly pageX: number;
readonly pageY: number;
readonly radiusX: number;
readonly radiusY: number;
readonly rotationAngle: number;
readonly screenX: number;
readonly screenY: number;
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/** An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth. */
interface TouchEvent extends UIEvent {
readonly altKey: boolean;
readonly changedTouches: TouchList;
readonly ctrlKey: boolean;
readonly metaKey: boolean;
readonly shiftKey: boolean;
readonly targetTouches: TouchList;
readonly touches: TouchList;
}
declare var TouchEvent: {
prototype: TouchEvent;
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};
/** A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries. */
interface TouchList {
readonly length: number;
item(index: number): Touch | null;
[index: number]: Touch;
}
declare var TouchList: {
prototype: TouchList;
new(): TouchList;
};
/** The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack. */
interface TrackEvent extends Event {
/** Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates. */
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** Events providing information related to transitions. */
interface TransitionEvent extends Event {
readonly elapsedTime: number;
readonly propertyName: string;
readonly pseudoElement: string;
}
declare var TransitionEvent: {
prototype: TransitionEvent;
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};
/** The nodes of a document subtree and a position within them. */
interface TreeWalker {
currentNode: Node;
readonly filter: NodeFilter | null;
readonly root: Node;
readonly whatToShow: number;
firstChild(): Node | null;
lastChild(): Node | null;
nextNode(): Node | null;
nextSibling(): Node | null;
parentNode(): Node | null;
previousNode(): Node | null;
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/** Simple user interface events. */
interface UIEvent extends Event {
readonly detail: number;
readonly view: Window | null;
/** @deprecated */
readonly which: number;
/** @deprecated */
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
prototype: UIEvent;
new(type: string, eventInitDict?: UIEventInit): UIEvent;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob | MediaSource): string;
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter. */
append(name: string, value: string): void;
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
delete(name: string): void;
/** Returns the first value associated to the given search parameter. */
get(name: string): string | null;
/** Returns all the values association with a given search parameter. */
getAll(name: string): string[];
/** Returns a Boolean indicating if such a search parameter exists. */
has(name: string): boolean;
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
set(name: string, value: string): void;
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface VTTCue extends TextTrackCue {
align: AlignSetting;
line: LineAndPositionSetting;
lineAlign: LineAlignSetting;
position: LineAndPositionSetting;
positionAlign: PositionAlignSetting;
region: VTTRegion | null;
size: number;
snapToLines: boolean;
text: string;
vertical: DirectionSetting;
getCueAsHTML(): DocumentFragment;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VTTCue: {
prototype: VTTCue;
new(startTime: number, endTime: number, text: string): VTTCue;
};
interface VTTRegion {
id: string;
lines: number;
regionAnchorX: number;
regionAnchorY: number;
scroll: ScrollSetting;
viewportAnchorX: number;
viewportAnchorY: number;
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/** The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid. */
interface ValidityState {
readonly badInput: boolean;
readonly customError: boolean;
readonly patternMismatch: boolean;
readonly rangeOverflow: boolean;
readonly rangeUnderflow: boolean;
readonly stepMismatch: boolean;
readonly tooLong: boolean;
readonly tooShort: boolean;
readonly typeMismatch: boolean;
readonly valid: boolean;
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
/** Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video. */
interface VideoPlaybackQuality {
/** @deprecated */
readonly corruptedVideoFrames: number;
readonly creationTime: DOMHighResTimeStamp;
readonly droppedVideoFrames: number;
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
interface VisualViewport extends EventTarget {
readonly height: number;
readonly offsetLeft: number;
readonly offsetTop: number;
onresize: ((this: VisualViewport, ev: Event) => any) | null;
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
readonly pageLeft: number;
readonly pageTop: number;
readonly scale: number;
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};
interface WEBGL_color_buffer_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGBA32F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: GLenum;
readonly COMPRESSED_RG11_EAC: GLenum;
readonly COMPRESSED_RGB8_ETC2: GLenum;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SRGB8_ETC2: GLenum;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
}
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
}
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_RENDERER_WEBGL: GLenum;
readonly UNMASKED_VENDOR_WEBGL: GLenum;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
readonly DRAW_BUFFER0_WEBGL: GLenum;
readonly DRAW_BUFFER10_WEBGL: GLenum;
readonly DRAW_BUFFER11_WEBGL: GLenum;
readonly DRAW_BUFFER12_WEBGL: GLenum;
readonly DRAW_BUFFER13_WEBGL: GLenum;
readonly DRAW_BUFFER14_WEBGL: GLenum;
readonly DRAW_BUFFER15_WEBGL: GLenum;
readonly DRAW_BUFFER1_WEBGL: GLenum;
readonly DRAW_BUFFER2_WEBGL: GLenum;
readonly DRAW_BUFFER3_WEBGL: GLenum;
readonly DRAW_BUFFER4_WEBGL: GLenum;
readonly DRAW_BUFFER5_WEBGL: GLenum;
readonly DRAW_BUFFER6_WEBGL: GLenum;
readonly DRAW_BUFFER7_WEBGL: GLenum;
readonly DRAW_BUFFER8_WEBGL: GLenum;
readonly DRAW_BUFFER9_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
/** A WaveShaperNode always has exactly one input and one output. */
interface WaveShaperNode extends AudioNode {
curve: Float32Array | null;
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGLRenderingContextBase {
readonly canvas: HTMLCanvasElement;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
/** Returns the extensions selected by the server, if any. */
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
readonly protocol: string;
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL that was used to establish the WebSocket connection. */
readonly url: string;
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
close(code?: number, reason?: string): void;
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** Events that occur due to the user moving a mouse wheel or similar input device. */
interface WheelEvent extends MouseEvent {
readonly deltaMode: number;
readonly deltaX: number;
readonly deltaY: number;
readonly deltaZ: number;
readonly DOM_DELTA_LINE: number;
readonly DOM_DELTA_PAGE: number;
readonly DOM_DELTA_PIXEL: number;
}
declare var WheelEvent: {
prototype: WheelEvent;
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
readonly DOM_DELTA_LINE: number;
readonly DOM_DELTA_PAGE: number;
readonly DOM_DELTA_PIXEL: number;
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"orientationchange": Event;
}
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/** @deprecated This is a legacy alias of \`navigator\`. */
readonly clientInformation: Navigator;
/** Returns true if the window has been closed, false otherwise. */
readonly closed: boolean;
/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
readonly customElements: CustomElementRegistry;
readonly devicePixelRatio: number;
readonly document: Document;
/** @deprecated */
readonly event: Event | undefined;
/** @deprecated */
readonly external: External;
readonly frameElement: Element | null;
readonly frames: WindowProxy;
readonly history: History;
readonly innerHeight: number;
readonly innerWidth: number;
readonly length: number;
get location(): Location;
set location(href: string | Location);
/** Returns true if the location bar is visible; otherwise, returns false. */
readonly locationbar: BarProp;
/** Returns true if the menu bar is visible; otherwise, returns false. */
readonly menubar: BarProp;
name: string;
readonly navigator: Navigator;
/** Available only in secure contexts. */
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/** Available only in secure contexts. */
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
onorientationchange: ((this: Window, ev: Event) => any) | null;
opener: any;
/** @deprecated */
readonly orientation: number;
readonly outerHeight: number;
readonly outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
readonly pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
readonly pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
readonly parent: WindowProxy;
/** Returns true if the personal bar is visible; otherwise, returns false. */
readonly personalbar: BarProp;
readonly screen: Screen;
readonly screenLeft: number;
readonly screenTop: number;
readonly screenX: number;
readonly screenY: number;
readonly scrollX: number;
readonly scrollY: number;
/** Returns true if the scrollbars are visible; otherwise, returns false. */
readonly scrollbars: BarProp;
readonly self: Window & typeof globalThis;
readonly speechSynthesis: SpeechSynthesis;
/** @deprecated */
status: string;
/** Returns true if the status bar is visible; otherwise, returns false. */
readonly statusbar: BarProp;
/** Returns true if the toolbar is visible; otherwise, returns false. */
readonly toolbar: BarProp;
readonly top: WindowProxy | null;
readonly visualViewport: VisualViewport;
readonly window: Window & typeof globalThis;
alert(message?: any): void;
blur(): void;
cancelIdleCallback(handle: number): void;
/** @deprecated */
captureEvents(): void;
/** Closes the window. */
close(): void;
confirm(message?: string): boolean;
/** Moves the focus to the window's browsing context, if any. */
focus(): void;
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
getSelection(): Selection | null;
matchMedia(query: string): MediaQueryList;
moveBy(x: number, y: number): void;
moveTo(x: number, y: number): void;
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
print(): void;
prompt(message?: string, _default?: string): string | null;
/** @deprecated */
releaseEvents(): void;
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
resizeBy(x: number, y: number): void;
resizeTo(width: number, height: number): void;
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/** Cancels the document load. */
stop(): void;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Window;
}
declare var Window: {
prototype: Window;
new(): Window;
};
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"hashchange": HashChangeEvent;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
}
interface WindowEventHandlers {
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
/** Available only in secure contexts. */
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(handle?: number): void;
clearTimeout(handle?: number): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
}
interface WindowSessionStorage {
readonly sessionStorage: Storage;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Aborts worker's associated global environment. */
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
/** Available only in secure contexts. */
interface Worklet {
/**
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
*
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
*
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/** An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents. */
interface XMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLDocument: {
prototype: XMLDocument;
new(): XMLDocument;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/** Returns client's state. */
readonly readyState: number;
/** Returns the response body. */
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*/
readonly responseXML: Document | null;
readonly status: number;
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/** Cancels any network activity. */
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/** Provides the serializeToString() method to construct an XML string representing a DOM tree. */
interface XMLSerializer {
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/** The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions. */
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
createNSResolver(nodeResolver: Node): XPathNSResolver;
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}
/** This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree. */
interface XPathExpression {
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}
declare var XPathExpression: {
prototype: XPathExpression;
new(): XPathExpression;
};
/** The results generated by evaluating an XPath expression within the context of a given node. */
interface XPathResult {
readonly booleanValue: boolean;
readonly invalidIteratorState: boolean;
readonly numberValue: number;
readonly resultType: number;
readonly singleNodeValue: Node | null;
readonly snapshotLength: number;
readonly stringValue: string;
iterateNext(): Node | null;
snapshotItem(index: number): Node | null;
readonly ANY_TYPE: number;
readonly ANY_UNORDERED_NODE_TYPE: number;
readonly BOOLEAN_TYPE: number;
readonly FIRST_ORDERED_NODE_TYPE: number;
readonly NUMBER_TYPE: number;
readonly ORDERED_NODE_ITERATOR_TYPE: number;
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
readonly STRING_TYPE: number;
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
}
declare var XPathResult: {
prototype: XPathResult;
new(): XPathResult;
readonly ANY_TYPE: number;
readonly ANY_UNORDERED_NODE_TYPE: number;
readonly BOOLEAN_TYPE: number;
readonly FIRST_ORDERED_NODE_TYPE: number;
readonly NUMBER_TYPE: number;
readonly ORDERED_NODE_ITERATOR_TYPE: number;
readonly ORDERED_NODE_SNAPSHOT_TYPE: number;
readonly STRING_TYPE: number;
readonly UNORDERED_NODE_ITERATOR_TYPE: number;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: number;
};
/** An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents. */
interface XSLTProcessor {
clearParameters(): void;
getParameter(namespaceURI: string | null, localName: string): any;
importStylesheet(style: Node): void;
removeParameter(namespaceURI: string | null, localName: string): void;
reset(): void;
setParameter(namespaceURI: string | null, localName: string, value: any): void;
transformToDocument(source: Node): Document;
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
declare namespace CSS {
function escape(ident: string): string;
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface ErrorCallback {
(err: DOMException): void;
}
interface FileCallback {
(file: File): void;
}
interface FileSystemEntriesCallback {
(entries: FileSystemEntry[]): void;
}
interface FileSystemEntryCallback {
(entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IdleRequestCallback {
(deadline: IdleDeadline): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface MediaSessionActionHandler {
(details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
interface OnBeforeUnloadEventHandlerNonNull {
(event: Event): string | null;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface PositionCallback {
(position: GeolocationPosition): void;
}
interface PositionErrorCallback {
(positionError: GeolocationPositionError): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RemotePlaybackAvailabilityCallback {
(available: boolean): void;
}
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
(): void;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"dir": HTMLDirectoryElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"font": HTMLFontElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"marquee": HTMLMarqueeElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"param": HTMLParamElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
interface HTMLElementDeprecatedTagNameMap {
"listing": HTMLPreElement;
"xmp": HTMLPreElement;
}
interface SVGElementTagNameMap {
"a": SVGAElement;
"animate": SVGAnimateElement;
"animateMotion": SVGAnimateMotionElement;
"animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
"desc": SVGDescElement;
"ellipse": SVGEllipseElement;
"feBlend": SVGFEBlendElement;
"feColorMatrix": SVGFEColorMatrixElement;
"feComponentTransfer": SVGFEComponentTransferElement;
"feComposite": SVGFECompositeElement;
"feConvolveMatrix": SVGFEConvolveMatrixElement;
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
"feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
"feFuncG": SVGFEFuncGElement;
"feFuncR": SVGFEFuncRElement;
"feGaussianBlur": SVGFEGaussianBlurElement;
"feImage": SVGFEImageElement;
"feMerge": SVGFEMergeElement;
"feMergeNode": SVGFEMergeNodeElement;
"feMorphology": SVGFEMorphologyElement;
"feOffset": SVGFEOffsetElement;
"fePointLight": SVGFEPointLightElement;
"feSpecularLighting": SVGFESpecularLightingElement;
"feSpotLight": SVGFESpotLightElement;
"feTile": SVGFETileElement;
"feTurbulence": SVGFETurbulenceElement;
"filter": SVGFilterElement;
"foreignObject": SVGForeignObjectElement;
"g": SVGGElement;
"image": SVGImageElement;
"line": SVGLineElement;
"linearGradient": SVGLinearGradientElement;
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
"mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
"switch": SVGSwitchElement;
"symbol": SVGSymbolElement;
"text": SVGTextElement;
"textPath": SVGTextPathElement;
"title": SVGTitleElement;
"tspan": SVGTSpanElement;
"use": SVGUseElement;
"view": SVGViewElement;
}
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
declare var Audio: {
new(src?: string): HTMLAudioElement;
};
declare var Image: {
new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/** @deprecated This is a legacy alias of \`navigator\`. */
declare var clientInformation: Navigator;
/** Returns true if the window has been closed, false otherwise. */
declare var closed: boolean;
/** Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element. */
declare var customElements: CustomElementRegistry;
declare var devicePixelRatio: number;
declare var document: Document;
/** @deprecated */
declare var event: Event | undefined;
/** @deprecated */
declare var external: External;
declare var frameElement: Element | null;
declare var frames: WindowProxy;
declare var history: History;
declare var innerHeight: number;
declare var innerWidth: number;
declare var length: number;
declare var location: Location;
/** Returns true if the location bar is visible; otherwise, returns false. */
declare var locationbar: BarProp;
/** Returns true if the menu bar is visible; otherwise, returns false. */
declare var menubar: BarProp;
/** @deprecated */
declare const name: void;
declare var navigator: Navigator;
/** Available only in secure contexts. */
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/** Available only in secure contexts. */
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/** @deprecated */
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
declare var opener: any;
/** @deprecated */
declare var orientation: number;
declare var outerHeight: number;
declare var outerWidth: number;
/** @deprecated This is a legacy alias of \`scrollX\`. */
declare var pageXOffset: number;
/** @deprecated This is a legacy alias of \`scrollY\`. */
declare var pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*/
declare var parent: WindowProxy;
/** Returns true if the personal bar is visible; otherwise, returns false. */
declare var personalbar: BarProp;
declare var screen: Screen;
declare var screenLeft: number;
declare var screenTop: number;
declare var screenX: number;
declare var screenY: number;
declare var scrollX: number;
declare var scrollY: number;
/** Returns true if the scrollbars are visible; otherwise, returns false. */
declare var scrollbars: BarProp;
declare var self: Window & typeof globalThis;
declare var speechSynthesis: SpeechSynthesis;
/** @deprecated */
declare var status: string;
/** Returns true if the status bar is visible; otherwise, returns false. */
declare var statusbar: BarProp;
/** Returns true if the toolbar is visible; otherwise, returns false. */
declare var toolbar: BarProp;
declare var top: WindowProxy | null;
declare var visualViewport: VisualViewport;
declare var window: Window & typeof globalThis;
declare function alert(message?: any): void;
declare function blur(): void;
declare function cancelIdleCallback(handle: number): void;
/** @deprecated */
declare function captureEvents(): void;
/** Closes the window. */
declare function close(): void;
declare function confirm(message?: string): boolean;
/** Moves the focus to the window's browsing context, if any. */
declare function focus(): void;
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
declare function getSelection(): Selection | null;
declare function matchMedia(query: string): MediaQueryList;
declare function moveBy(x: number, y: number): void;
declare function moveTo(x: number, y: number): void;
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
declare function print(): void;
declare function prompt(message?: string, _default?: string): string | null;
/** @deprecated */
declare function releaseEvents(): void;
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
declare function resizeBy(x: number, y: number): void;
declare function resizeTo(width: number, height: number): void;
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/** Cancels the document load. */
declare function stop(): void;
declare function toString(): string;
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
declare function dispatchEvent(event: Event): boolean;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
declare var onclose: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*/
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*/
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*/
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*/
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*/
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
declare var oninput: ((this: Window, ev: Event) => any) | null;
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*/
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*/
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*/
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*/
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationend\`. */
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationiteration\`. */
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`onanimationstart\`. */
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/** @deprecated This is a legacy alias of \`ontransitionend\`. */
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
declare var onoffline: ((this: Window, ev: Event) => any) | null;
declare var ononline: ((this: Window, ev: Event) => any) | null;
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
declare var onunload: ((this: Window, ev: Event) => any) | null;
declare var localStorage: Storage;
/** Available only in secure contexts. */
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(handle?: number): void;
declare function clearTimeout(handle?: number): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSNumberish = number;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
type ClipboardItemData = Promise<ClipboardItemDataType>;
type ClipboardItemDataType = string | Blob;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type DOMHighResTimeStamp = number;
type DOMTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = string[][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
type TimerHandler = string | Function;
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
type Uint32List = Uint32Array | GLuint[];
type UvmEntries = UvmEntry[];
type UvmEntry = number[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "running" | "suspended";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
type CredentialMediationRequirement = "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "application" | "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticActuatorType = "vibration";
type GamepadMappingType = "" | "standard" | "xr-standard";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LineAlignSetting = "center" | "end" | "start";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "hangup" | "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop" | "togglecamera" | "togglemicrophone";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type PushPermissionState = "denied" | "granted" | "prompt";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceCredentialType = "password";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "csrc" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "track" | "transport";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,Ri["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Iterable APIs
/////////////////////////////
interface AudioParam {
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPathDrawingStyles {
setLineDash(segments: Iterable<number>): void;
}
interface DOMRectList {
[Symbol.iterator](): IterableIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): IterableIterator<DataTransferItem>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MediaKeyStatusMap {
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
keys(): IterableIterator<BufferSource>;
values(): IterableIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): IterableIterator<string>;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
/** Available only in secure contexts. */
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): IterableIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface TextTrackCueList {
[Symbol.iterator](): IterableIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): IterableIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): IterableIterator<Touch>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`,Ri["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Map<K, V> {
clear(): void;
delete(key: K): boolean;
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
set(key: K, value: V): this;
readonly size: number;
}
interface MapConstructor {
new(): Map<any, any>;
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
interface ReadonlyMap<K, V> {
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
readonly size: number;
}
interface WeakMap<K extends object, V> {
delete(key: K): boolean;
get(key: K): V | undefined;
has(key: K): boolean;
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends object = object, V = any>(entries?: readonly [K, V][] | null): WeakMap<K, V>;
readonly prototype: WeakMap<object, any>;
}
declare var WeakMap: WeakMapConstructor;
interface Set<T> {
add(value: T): this;
clear(): void;
delete(value: T): boolean;
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface SetConstructor {
new <T = any>(values?: readonly T[] | null): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
interface ReadonlySet<T> {
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface WeakSet<T extends object> {
add(value: T): this;
delete(value: T): boolean;
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends object = object>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<object>;
}
declare var WeakSet: WeakSetConstructor;
`,Ri["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (this: void, value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start?: number, end?: number): this;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (this: void, value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @deprecated A legacy feature for browser compatibility
* @param name
*/
anchor(name: string): string;
/**
* Returns a \`<big>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;
/**
* Returns a \`<blink>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;
/**
* Returns a \`<b>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;
/**
* Returns a \`<tt>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;
/**
* Returns a \`<font>\` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;
/**
* Returns an \`<i>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;
/**
* Returns an \`<a>\` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;
/**
* Returns a \`<small>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;
/**
* Returns a \`<strike>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;
/**
* Returns a \`<sub>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;
/**
* Returns a \`<sup>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>}, ...substitutions: any[]): string;
}
`,Ri["lib.es2015.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="es2015.core" />
/// <reference lib="es2015.collection" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.generator" />
/// <reference lib="es2015.promise" />
/// <reference lib="es2015.proxy" />
/// <reference lib="es2015.reflect" />
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
`,Ri["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
throw(e: any): IteratorResult<T, TReturn>;
[Symbol.iterator](): Generator<T, TReturn, TNext>;
}
interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): Generator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: Generator;
}
interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: GeneratorFunction;
}
`,Ri["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TYield;
}
interface IteratorReturnResult<TReturn> {
done: true;
value: TReturn;
}
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
interface Iterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}
interface IterableIterator<T> extends Iterator<T> {
[Symbol.iterator](): IterableIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): IterableIterator<any>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface MapConstructor {
new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
}
interface WeakMap<K extends object, V> { }
interface WeakMapConstructor {
new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface SetConstructor {
new <T>(iterable?: Iterable<T> | null): Set<T>;
}
interface WeakSet<T extends object> { }
interface WeakSetConstructor {
new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
}
interface Promise<T> { }
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
interface String {
/** Iterator */
[Symbol.iterator](): IterableIterator<string>;
}
interface Int8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
}
interface Uint8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
}
interface Uint8ClampedArray {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
interface Int16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
}
interface Uint16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
}
interface Int32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
}
interface Uint32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
}
interface Float32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
}
interface Float64Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
}
`,Ri["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]> }>;
// see: lib.es2015.iterable.d.ts
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
// see: lib.es2015.iterable.d.ts
// race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject<T = never>(reason?: any): Promise<T>;
/**
* Creates a new resolved promise.
* @returns A resolved promise.
*/
resolve(): Promise<void>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<T>;
}
declare var Promise: PromiseConstructor;
`,Ri["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ProxyHandler<T extends object> {
apply?(target: T, thisArg: any, argArray: any[]): any;
construct?(target: T, argArray: any[], newTarget: Function): object;
defineProperty?(target: T, p: string | symbol, attributes: PropertyDescriptor): boolean;
deleteProperty?(target: T, p: string | symbol): boolean;
get?(target: T, p: string | symbol, receiver: any): any;
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
getPrototypeOf?(target: T): object | null;
has?(target: T, p: string | symbol): boolean;
isExtensible?(target: T): boolean;
ownKeys?(target: T): ArrayLike<string | symbol>;
preventExtensions?(target: T): boolean;
set?(target: T, p: string | symbol, value: any, receiver: any): boolean;
setPrototypeOf?(target: T, v: object | null): boolean;
}
interface ProxyConstructor {
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
}
declare var Proxy: ProxyConstructor;
`,Ri["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Reflect {
/**
* Calls the function with the specified object as the this value
* and the elements of specified array as the arguments.
* @param target The function to call.
* @param thisArgument The object to be used as the this object.
* @param argumentsList An array of argument values to be passed to the function.
*/
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
/**
* Constructs the target with the elements of specified array as the arguments
* and the specified constructor as the \`new.target\` value.
* @param target The constructor to invoke.
* @param argumentsList An array of argument values to be passed to the constructor.
* @param newTarget The constructor to be used as the \`new.target\` object.
*/
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param target Object on which to add or modify the property. This can be a native JavaScript object
* (that is, a user-defined object or a built in object) or a DOM object.
* @param propertyKey The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
/**
* Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
* except it won't throw if \`target[propertyKey]\` is non-configurable.
* @param target Object from which to remove the own property.
* @param propertyKey The property name.
*/
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
/**
* Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey The property name.
* @param receiver The reference to use as the \`this\` value in the getter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function get(target: object, propertyKey: PropertyKey, receiver?: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param target Object that contains the property.
* @param propertyKey The property name.
*/
function getOwnPropertyDescriptor(target: object, propertyKey: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the prototype of an object.
* @param target The object that references the prototype.
*/
function getPrototypeOf(target: object): object | null;
/**
* Equivalent to \`propertyKey in target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
*/
function has(target: object, propertyKey: PropertyKey): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param target Object to test.
*/
function isExtensible(target: object): boolean;
/**
* Returns the string and symbol keys of the own properties of an object. The own properties of an object
* are those that are defined directly on that object, and are not inherited from the object's prototype.
* @param target Object that contains the own properties.
*/
function ownKeys(target: object): (string | symbol)[];
/**
* Prevents the addition of new properties to an object.
* @param target Object to make non-extensible.
* @return Whether the object has been made non-extensible.
*/
function preventExtensions(target: object): boolean;
/**
* Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
* @param receiver The reference to use as the \`this\` value in the setter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null.
* @param target The object to change its prototype.
* @param proto The value of the new prototype or null.
* @return Whether setting the prototype was successful.
*/
function setPrototypeOf(target: object, proto: object | null): boolean;
}
`,Ri["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface SymbolConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Symbol;
/**
* Returns a new unique Symbol value.
* @param description Description of the new Symbol object.
*/
(description?: string | number): symbol;
/**
* Returns a Symbol object from the global symbol registry matching the given key if found.
* Otherwise, returns a new symbol with this key.
* @param key key to search for.
*/
for(key: string): symbol;
/**
* Returns a key from the global symbol registry matching the given Symbol if found.
* Otherwise, returns a undefined.
* @param sym Symbol to find the key for.
*/
keyFor(sym: symbol): string | undefined;
}
declare var Symbol: SymbolConstructor;`,Ri["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose own property names are property names that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Returns an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
[Symbol.unscopables](): {
copyWithin: boolean;
entries: boolean;
fill: boolean;
find: boolean;
findIndex: boolean;
keys: boolean;
values: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends object, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends object> {
readonly [Symbol.toStringTag]: string;
}
interface JSON {
readonly [Symbol.toStringTag]: string;
}
interface Function {
/**
* Determines whether the given value inherits from this function if this function was used
* as a constructor function.
*
* A constructor function can control which objects are recognized as its instances by
* 'instanceof' by overriding this method.
*/
[Symbol.hasInstance](value: any): boolean;
}
interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
interface Math {
readonly [Symbol.toStringTag]: string;
}
interface Promise<T> {
readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
readonly [Symbol.species]: PromiseConstructor;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](string: string): RegExpMatchArray | null;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replaceValue A String object or string literal containing the text to replace for every
* successful match of this regular expression.
*/
[Symbol.replace](string: string, replaceValue: string): string;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replacer A function that returns the replacement text.
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* Returns an array of substrings that were delimited by strings in the original input that
* match against this regular expression.
*
* If the regular expression contains capturing parentheses, then each time this
* regular expression matches, the results (including any undefined results) of the
* capturing parentheses are spliced.
*
* @param string string value to split
* @param limit if not undefined, the output array is truncated so that it contains no more
* than 'limit' elements.
*/
[Symbol.split](string: string, limit?: number): string[];
}
interface RegExpConstructor {
readonly [Symbol.species]: RegExpConstructor;
}
interface String {
/**
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* Replaces first match with string or all matches with RegExp.
* @param searchValue A string or RegExp search value.
* @param replaceValue A string containing the text to replace for match.
*/
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replaces text in a string, using an object that supports replacement within a string.
* @param searchValue A object can search for and replace matches within a string.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param searcher An object which supports searching within a string.
*/
search(searcher: { [Symbol.search](string: string): number; }): number;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param splitter An object that can split a string.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}
interface ArrayBuffer {
readonly [Symbol.toStringTag]: string;
}
interface DataView {
readonly [Symbol.toStringTag]: string;
}
interface Int8Array {
readonly [Symbol.toStringTag]: "Int8Array";
}
interface Uint8Array {
readonly [Symbol.toStringTag]: "Uint8Array";
}
interface Uint8ClampedArray {
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}
interface Int16Array {
readonly [Symbol.toStringTag]: "Int16Array";
}
interface Uint16Array {
readonly [Symbol.toStringTag]: "Uint16Array";
}
interface Int32Array {
readonly [Symbol.toStringTag]: "Int32Array";
}
interface Uint32Array {
readonly [Symbol.toStringTag]: "Uint32Array";
}
interface Float32Array {
readonly [Symbol.toStringTag]: "Float32Array";
}
interface Float64Array {
readonly [Symbol.toStringTag]: "Float64Array";
}
interface ArrayConstructor {
readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
`,Ri["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface ReadonlyArray<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface Int8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8ClampedArray {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float64Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}`,Ri["lib.es2016.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />`,Ri["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ri["lib.es2017.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.typedarrays" />
`,Ri["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ri["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
type DateTimeFormatPartTypes = "day" | "dayPeriod" | "era" | "hour" | "literal" | "minute" | "month" | "second" | "timeZoneName" | "weekday" | "year";
interface DateTimeFormatPart {
type: DateTimeFormatPartTypes;
value: string;
}
interface DateTimeFormat {
formatToParts(date?: Date | number): DateTimeFormatPart[];
}
}
`,Ri["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values<T>(o: { [s: string]: T } | ArrayLike<T>): T[];
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values(o: {}): any[];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries<T>(o: { [s: string]: T } | ArrayLike<T>): [string, T][];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries(o: {}): [string, any][];
/**
* Returns an object containing all own property descriptors of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
getOwnPropertyDescriptors<T>(o: T): {[P in keyof T]: TypedPropertyDescriptor<T[P]>} & { [x: string]: PropertyDescriptor };
}
`,Ri["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
interface SharedArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an SharedArrayBuffer.
*/
slice(begin: number, end?: number): SharedArrayBuffer;
readonly [Symbol.species]: SharedArrayBuffer;
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
}
interface SharedArrayBufferConstructor {
readonly prototype: SharedArrayBuffer;
new (byteLength: number): SharedArrayBuffer;
}
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
interface ArrayBufferTypes {
SharedArrayBuffer: SharedArrayBuffer;
}
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Returns a value indicating whether high-performance algorithms can use atomic operations
* (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
* array.
*/
isLockFree(size: number): boolean;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared Int32Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: Int32Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
readonly [Symbol.toStringTag]: "Atomics";
}
declare var Atomics: Atomics;
`,Ri["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the start (left) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padStart(maxLength: number, fillString?: string): string;
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the end (right) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padEnd(maxLength: number, fillString?: string): string;
}
`,Ri["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Int8ArrayConstructor {
new (): Int8Array;
}
interface Uint8ArrayConstructor {
new (): Uint8Array;
}
interface Uint8ClampedArrayConstructor {
new (): Uint8ClampedArray;
}
interface Int16ArrayConstructor {
new (): Int16Array;
}
interface Uint16ArrayConstructor {
new (): Uint16Array;
}
interface Int32ArrayConstructor {
new (): Int32Array;
}
interface Uint32ArrayConstructor {
new (): Uint32Array;
}
interface Float32ArrayConstructor {
new (): Float32Array;
}
interface Float64ArrayConstructor {
new (): Float64Array;
}
`,Ri["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.asynciterable" />
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw(e: any): Promise<IteratorResult<T, TReturn>>;
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
}
interface AsyncGeneratorFunction {
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): AsyncGenerator;
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): AsyncGenerator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGenerator;
}
interface AsyncGeneratorFunctionConstructor {
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): AsyncGeneratorFunction;
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): AsyncGeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGeneratorFunction;
}
`,Ri["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />
interface SymbolConstructor {
/**
* A method that returns the default async iterator for an object. Called by the semantics of
* the for-await-of statement.
*/
readonly asyncIterator: unique symbol;
}
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
interface AsyncIterable<T> {
[Symbol.asyncIterator](): AsyncIterator<T>;
}
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
}`,Ri["lib.es2018.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="es2018.asynciterable" />
/// <reference lib="es2018.asyncgenerator" />
/// <reference lib="es2018.promise" />
/// <reference lib="es2018.regexp" />
/// <reference lib="es2018.intl" />
`,Ri["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ri["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
type PluralRuleType = "cardinal" | "ordinal";
interface PluralRulesOptions {
localeMatcher?: "lookup" | "best fit" | undefined;
type?: PluralRuleType | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedPluralRulesOptions {
locale: string;
pluralCategories: LDMLPluralRule[];
type: PluralRuleType;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface PluralRules {
resolvedOptions(): ResolvedPluralRulesOptions;
select(n: number): LDMLPluralRule;
}
const PluralRules: {
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
};
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`,Ri["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): Promise<T>
}
`,Ri["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
groups?: {
[key: string]: string
}
}
interface RegExpExecArray {
groups?: {
[key: string]: string
}
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
* Default is false. Read-only.
*/
readonly dotAll: boolean;
}`,Ri["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
type FlatArray<Arr, Depth extends number> = {
"done": Arr,
"recur": Arr extends ReadonlyArray<infer InnerArr>
? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
: Arr
}[Depth extends -1 ? "done" : "recur"];
interface ReadonlyArray<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
interface Array<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined> (
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This
): U[]
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D
): FlatArray<A, D>[]
}
`,Ri["lib.es2019.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="es2019.array" />
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
`,Ri["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,Ri["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface ObjectConstructor {
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T };
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries(entries: Iterable<readonly any[]>): any;
}
`,Ri["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/** Removes the trailing white space and line terminator characters from a string. */
trimEnd(): string;
/** Removes the leading white space and line terminator characters from a string. */
trimStart(): string;
/**
* Removes the leading white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
*/
trimLeft(): string;
/**
* Removes the trailing white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
*/
trimRight(): string;
}
`,Ri["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Symbol {
/**
* Expose the [[Description]] internal slot of a symbol directly.
*/
readonly description: string | undefined;
}
`,Ri["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface BigIntToLocaleStringOptions {
/**
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: string, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new(length?: number): BigInt64Array;
new(array: Iterable<bigint>): BigInt64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new(length?: number): BigUint64Array;
new(array: Iterable<bigint>): BigUint64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
declare namespace Intl{
interface NumberFormat {
format(value: number | bigint): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
}
`,Ri["lib.es2020.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.sharedmemory" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />
/// <reference lib="es2020.intl" />
`,Ri["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,Ri["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* [Unicode BCP 47 Locale Identifiers](https://unicode.org/reports/tr35/#Unicode_Language_and_Locale_Identifiers) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
*/
type RelativeTimeFormatUnit =
| "year"
| "years"
| "quarter"
| "quarters"
| "month"
| "months"
| "week"
| "weeks"
| "day"
| "days"
| "hour"
| "hours"
| "minute"
| "minutes"
| "second"
| "seconds";
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
*/
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatNumeric = "always" | "auto";
/**
* The length of the internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
/**
* [BCP 47 language tag](http://tools.ietf.org/html/rfc5646) definition.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type BCP47LanguageTag = string;
/**
* An object with some or all of properties of \`options\` parameter
* of \`Intl.RelativeTimeFormat\` constructor.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
interface RelativeTimeFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: RelativeTimeFormatLocaleMatcher;
/** The format of output message. */
numeric?: RelativeTimeFormatNumeric;
/** The length of the internationalized message. */
style?: RelativeTimeFormatStyle;
}
/**
* An object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intl.RelativeTimeFormat\` object
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
*/
interface ResolvedRelativeTimeFormatOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
}
/**
* An object representing the relative time format in parts
* that can be used for custom locale-aware formatting.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
interface RelativeTimeFormatPart {
type: string;
value: string;
unit?: RelativeTimeFormatUnit;
}
interface RelativeTimeFormat {
/**
* Formats a value and a unit according to the locale
* and formatting options of the given
* [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object.
*
* While this method automatically provides the correct plural forms,
* the grammatical form is otherwise as neutral as possible.
*
* It is the caller's responsibility to handle cut-off logic
* such as deciding between displaying "in 7 days" or "in 1 week".
* This API does not support relative dates involving compound units.
* e.g "in 5 days and 4 hours".
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns {string} Internationalized relative time message as string
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
*/
format(value: number, unit: RelativeTimeFormatUnit): string;
/**
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
*/
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
/**
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
}
/**
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object is a constructor for objects that enable language-sensitive relative time formatting.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*/
const RelativeTimeFormat: {
/**
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of \`RelativeTimeFormatOptions\`.
*
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
*/
new(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
/**
* Returns an array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
*
* @returns An array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*/
supportedLocalesOf(
locales?: UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[],
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: "auto" | "never" | "always" | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact";
signDisplay?: "auto" | "never" | "always";
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
}
interface DateTimeFormatOptions {
calendar?: string | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
}
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
interface LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName?: string;
/** The part of the Locale that indicates the locale's calendar era. */
calendar?: string;
/** Flag that defines whether case is taken into account for the locale's collation rules. */
caseFirst?: LocaleCollationCaseFirst;
/** The collation type used for sorting */
collation?: string;
/** The time keeping format convention used by the locale. */
hourCycle?: LocaleHourCycleKey;
/** The primary language subtag associated with the locale. */
language?: string;
/** The numeral system used by the locale. */
numberingSystem?: string;
/** Flag that defines whether the locale has special collation handling for numeric characters. */
numeric?: boolean;
/** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
region?: string;
/** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
script?: string;
}
interface Locale extends LocaleOptions {
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
maximize(): Locale;
/** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
minimize(): Locale;
/** Returns the locale's full locale identifier string. */
toString(): BCP47LanguageTag;
}
/**
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
* objects
*
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
*
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
*/
const Locale: {
new (tag?: BCP47LanguageTag, options?: LocaleOptions): Locale;
};
interface DisplayNamesOptions {
localeMatcher: RelativeTimeFormatLocaleMatcher;
style: RelativeTimeFormatStyle;
type: "language" | "region" | "script" | "currency";
fallback: "code" | "none";
}
interface DisplayNames {
/**
* Receives a code and returns a string based on the locale and options provided when instantiating
* [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
*
* @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
* - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
* - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
* - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
* subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
* \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
* - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
*/
of(code: string): string;
/**
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
* [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
*/
resolvedOptions(): DisplayNamesOptions;
}
/**
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
* object enables the consistent translation of language, region and script display names.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
*/
const DisplayNames: {
prototype: DisplayNames;
/**
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object for setting up a display name.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
*/
new(locales?: BCP47LanguageTag | BCP47LanguageTag[], options?: Partial<DisplayNamesOptions>): DisplayNames;
/**
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
*
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object with a locale matcher.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
*/
supportedLocalesOf(locales: BCP47LanguageTag | BCP47LanguageTag[], options?: {localeMatcher: RelativeTimeFormatLocaleMatcher}): BCP47LanguageTag[];
};
}
`,Ri["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseFulfilledResult<T> {
status: "fulfilled";
value: T;
}
interface PromiseRejectedResult {
status: "rejected";
reason: any;
}
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>> }>;
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
}
`,Ri["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared BigInt64Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: BigInt64Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
}
`,Ri["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface String {
/**
* Matches a string with a regular expression, and returns an iterable of matches
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpMatchArray>;
}
`,Ri["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.matchAll method.
*/
readonly matchAll: unique symbol;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an iterable of matches
* containing the results of that search.
* @param string A string to search within.
*/
[Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
}
`,Ri["lib.es2021.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="es2021.promise" />
/// <reference lib="es2021.string" />
/// <reference lib="es2021.weakref" />
/// <reference lib="es2021.intl" />
`,Ri["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`,Ri["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
fractionalSecondDigits?: 0 | 1 | 2 | 3 | undefined;
}
interface ResolvedDateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit";
dateStyle?: "full" | "long" | "medium" | "short";
timeStyle?: "full" | "long" | "medium" | "short";
hourCycle?: "h11" | "h12" | "h23" | "h24";
dayPeriod?: "narrow" | "short" | "long";
fractionalSecondDigits?: 0 | 1 | 2 | 3;
}
interface NumberFormat {
formatRange(startDate: number | bigint, endDate: number | bigint): string;
formatRangeToParts(startDate: number | bigint, endDate: number | bigint): NumberFormatPart[];
}
}`,Ri["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[]
}
interface AggregateErrorConstructor {
new(errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>
}
`,Ri["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`,Ri["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: T, unregisterToken?: object): void;
/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new<T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,Ri["lib.es5.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts a string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an encoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an encoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function escape(string: string): string;
/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function unescape(string: string): string;
interface Symbol {
/** Returns a string representation of an object. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): symbol;
}
declare type PropertyKey = string | number | symbol;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
}
interface PropertyDescriptorMap {
[s: string]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: PropertyKey): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: PropertyKey): boolean;
}
interface ObjectConstructor {
new(value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
readonly prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param a Object on which to lock the attributes.
*/
freeze<T>(a: T[]): readonly T[];
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param f Object on which to lock the attributes.
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(o: T): Readonly<T>;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions<T>(o: T): T;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: object): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(this: Function, thisArg: any, ...argArray: any[]): any;
/** Returns a string representation of a function. */
toString(): string;
prototype: any;
readonly length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new(...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
declare var Function: FunctionConstructor;
/**
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
*/
type ThisParameterType<T> = T extends (this: infer U, ...args: any[]) => any ? U : unknown;
/**
* Removes the 'this' parameter from a function type.
*/
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
interface CallableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
bind<T, A0, A extends any[], R>(this: (this: T, arg0: A0, ...args: A) => R, thisArg: T, arg0: A0): (...args: A) => R;
bind<T, A0, A1, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1): (...args: A) => R;
bind<T, A0, A1, A2, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2): (...args: A) => R;
bind<T, A0, A1, A2, A3, A extends any[], R>(this: (this: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: T, arg0: A0, arg1: A1, arg2: A2, arg3: A3): (...args: A) => R;
bind<T, AX, R>(this: (this: T, ...args: AX[]) => R, thisArg: T, ...args: AX[]): (...args: AX[]) => R;
}
interface NewableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T>(this: new () => T, thisArg: T): void;
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T>(this: T, thisArg: any): T;
bind<A0, A extends any[], R>(this: new (arg0: A0, ...args: A) => R, thisArg: any, arg0: A0): new (...args: A) => R;
bind<A0, A1, A extends any[], R>(this: new (arg0: A0, arg1: A1, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1): new (...args: A) => R;
bind<A0, A1, A2, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2): new (...args: A) => R;
bind<A0, A1, A2, A3, A extends any[], R>(this: new (arg0: A0, arg1: A1, arg2: A2, arg3: A3, ...args: A) => R, thisArg: any, arg0: A0, arg1: A1, arg2: A2, arg3: A3): new (...args: A) => R;
bind<AX, R>(this: new (...args: AX[]) => R, thisArg: any, ...args: AX[]): new (...args: AX[]) => R;
}
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
readonly length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @deprecated A legacy feature for browser compatibility
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): string;
readonly [index: number]: string;
}
interface StringConstructor {
new(value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new(value?: any): Boolean;
<T>(value?: T): boolean;
readonly prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): number;
}
interface NumberConstructor {
new(value?: any): Number;
(value?: any): number;
readonly prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
readonly MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
readonly MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
readonly NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
readonly NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
readonly POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray<string> {
readonly raw: readonly string[];
}
/**
* The type of \`import.meta\`.
*
* If you need to declare that a given property exists on \`import.meta\`,
* this type may be augmented via interface merging.
*/
interface ImportMeta {
}
/**
* The type for the optional second argument to \`import()\`.
*
* If your host environment supports additional options, this type may be
* augmented via interface merging.
*/
interface ImportCallOptions {
assert?: ImportAssertions;
}
/**
* The type for the \`assert\` property of the optional second argument to \`import()\`.
*/
interface ImportAssertions {
[key: string]: string;
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
readonly E: number;
/** The natural logarithm of 10. */
readonly LN10: number;
/** The natural logarithm of 2. */
readonly LN2: number;
/** The base-2 logarithm of e. */
readonly LOG2E: number;
/** The base-10 logarithm of e. */
readonly LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
readonly PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
readonly SQRT1_2: number;
/** The square root of 2. */
readonly SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point.
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest integer greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest integer less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Gets the time value in milliseconds. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new(): Date;
new(value: number | string): Date;
new(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param month The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
index?: number;
input?: string;
}
interface RegExpExecArray extends Array<string> {
index: number;
input: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray | null;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
readonly source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
readonly global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
readonly ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
readonly multiline: boolean;
lastIndex: number;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
compile(pattern: string, flags?: string): this;
}
interface RegExpConstructor {
new(pattern: RegExp | string): RegExp;
new(pattern: string, flags?: string): RegExp;
(pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly prototype: RegExp;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
$1: string;
/** @deprecated A legacy feature for browser compatibility */
$2: string;
/** @deprecated A legacy feature for browser compatibility */
$3: string;
/** @deprecated A legacy feature for browser compatibility */
$4: string;
/** @deprecated A legacy feature for browser compatibility */
$5: string;
/** @deprecated A legacy feature for browser compatibility */
$6: string;
/** @deprecated A legacy feature for browser compatibility */
$7: string;
/** @deprecated A legacy feature for browser compatibility */
$8: string;
/** @deprecated A legacy feature for browser compatibility */
$9: string;
/** @deprecated A legacy feature for browser compatibility */
input: string;
/** @deprecated A legacy feature for browser compatibility */
$_: string;
/** @deprecated A legacy feature for browser compatibility */
lastMatch: string;
/** @deprecated A legacy feature for browser compatibility */
"$&": string;
/** @deprecated A legacy feature for browser compatibility */
lastParen: string;
/** @deprecated A legacy feature for browser compatibility */
"$+": string;
/** @deprecated A legacy feature for browser compatibility */
leftContext: string;
/** @deprecated A legacy feature for browser compatibility */
"$\`": string;
/** @deprecated A legacy feature for browser compatibility */
rightContext: string;
/** @deprecated A legacy feature for browser compatibility */
"$'": string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
stack?: string;
}
interface ErrorConstructor {
new(message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor extends ErrorConstructor {
new(message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor extends ErrorConstructor {
new(message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor extends ErrorConstructor {
new(message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor extends ErrorConstructor {
new(message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor extends ErrorConstructor {
new(message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor extends ErrorConstructor {
new(message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface ReadonlyArray<T> {
/**
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
*/
readonly length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): T[];
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
readonly [n: number]: T;
}
interface ConcatArray<T> {
readonly length: number;
readonly [n: number]: T;
join(separator?: string): string;
slice(start?: number, end?: number): T[];
}
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
pop(): T | undefined;
/**
* Appends new elements to the end of an array, and returns the new length of the array.
* @param items New elements to add to the array.
*/
push(...items: T[]): number;
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array into a string, separated by the specified separator string.
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Reverses the elements in an array in place.
* This method mutates the array and returns a reference to the same array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
shift(): T | undefined;
/**
* Returns a copy of a section of an array.
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
* For example, -2 refers to the second to last element of the array.
* @param start The beginning index of the specified portion of the array.
* If start is undefined, then the slice begins at index 0.
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
* If end is undefined, then the slice extends to the end of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array in place.
* This method mutates the array and returns a reference to the same array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: T, b: T) => number): this;
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array, and returns the new length of the array.
* @param items Elements to insert at the start of the array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new(arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
/**
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
*/
type Awaited<T> =
T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
T extends object & { then(onfulfilled: infer F): any } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
F extends ((value: infer V, ...args: any) => any) ? // if the argument to \`then\` is callable, extracts the first argument
Awaited<V> : // recursively unwrap the value
never : // the argument to \`then\` was not callable
T; // non-object or non-thenable
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T extends null | undefined ? never : T;
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
*/
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
/**
* Obtain the return type of a constructor function type
*/
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;
/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;
/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;
/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> { }
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin: number, end?: number): ArrayBuffer;
}
/**
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
*/
interface ArrayBufferTypes {
ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
new(byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;
interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
byteLength: number;
/**
* The offset in bytes of the array.
*/
byteOffset: number;
}
interface DataView {
readonly buffer: ArrayBuffer;
readonly byteLength: number;
readonly byteOffset: number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written,
* otherwise a little-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
readonly prototype: DataView;
new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int8Array;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new(length: number): Int8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
}
declare var Int8Array: Int8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8Array;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new(length: number): Uint8Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
}
declare var Uint8Array: Uint8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
* If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8ClampedArray;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8ClampedArray;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8ClampedArray;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new(length: number): Uint8ClampedArray;
new(array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
/**
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int16Array;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new(length: number): Int16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
}
declare var Int16Array: Int16ArrayConstructor;
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint16Array;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new(length: number): Uint16Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int32Array;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new(length: number): Int32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Int32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
}
declare var Int32Array: Int32ArrayConstructor;
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint32Array;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new(length: number): Uint32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
}
declare var Uint32Array: Uint32ArrayConstructor;
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float32Array;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new(length: number): Float32Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float32Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
}
declare var Float32Array: Float32ArrayConstructor;
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float64Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float64Array;
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float64Array;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new(length: number): Float64Array;
new(array: ArrayLike<number> | ArrayBufferLike): Float64Array;
new(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: string | undefined;
localeMatcher?: string | undefined;
numeric?: boolean | undefined;
caseFirst?: string | undefined;
sensitivity?: string | undefined;
ignorePunctuation?: boolean | undefined;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
var Collator: {
new(locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
};
interface NumberFormatOptions {
localeMatcher?: string | undefined;
style?: string | undefined;
currency?: string | undefined;
currencyDisplay?: string | undefined;
currencySign?: string | undefined;
useGrouping?: boolean | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
currencyDisplay?: string;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
var NumberFormat: {
new(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
};
interface DateTimeFormatOptions {
localeMatcher?: "best fit" | "lookup" | undefined;
weekday?: "long" | "short" | "narrow" | undefined;
era?: "long" | "short" | "narrow" | undefined;
year?: "numeric" | "2-digit" | undefined;
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
day?: "numeric" | "2-digit" | undefined;
hour?: "numeric" | "2-digit" | undefined;
minute?: "numeric" | "2-digit" | undefined;
second?: "numeric" | "2-digit" | undefined;
timeZoneName?: "long" | "short" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
var DateTimeFormat: {
new(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
};
}
interface String {
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`,Ri["lib.es6.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`,Ri["lib.esnext.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="esnext.intl" />
`,Ri["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />`,Ri["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// Empty for now
}
`,Ri["lib.esnext.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[]
}
interface AggregateErrorConstructor {
new(errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: (T | PromiseLike<T>)[] | Iterable<T | PromiseLike<T>>): Promise<T>
}
`,Ri["lib.esnext.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`,Ri["lib.esnext.weakref.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends object> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target object, or undefined if the target object has been
* reclaimed.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target object.
* @param target The target object for the WeakRef instance.
*/
new<T extends object>(target?: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers an object with the registry.
* @param target The target object to register.
* @param heldValue The value to pass to the finalizer for this object. This cannot be the
* target object.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* object. If provided (and not undefined), this must be an object. If not provided, the target
* cannot be unregistered.
*/
register(target: object, heldValue: any, unregisterToken?: object): void;
/**
* Unregisters an object from the registry.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target object.
*/
unregister(unregisterToken: object): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after an object in the registry has been reclaimed.
*/
new(cleanupCallback: (heldValue: any) => void): FinalizationRegistry;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`,Ri["lib.scripthost.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////
interface ActiveXObject {
new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;
interface ITextWriter {
Write(s: string): void;
WriteLine(s: string): void;
Close(): void;
}
interface TextStreamBase {
/**
* The column number of the current character position in an input stream.
*/
Column: number;
/**
* The current line number in an input stream.
*/
Line: number;
/**
* Closes a text stream.
* It is not necessary to close standard streams; they close automatically when the process ends. If
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
*/
Close(): void;
}
interface TextStreamWriter extends TextStreamBase {
/**
* Sends a string to an output stream.
*/
Write(s: string): void;
/**
* Sends a specified number of blank lines (newline characters) to an output stream.
*/
WriteBlankLines(intLines: number): void;
/**
* Sends a string followed by a newline character to an output stream.
*/
WriteLine(s: string): void;
}
interface TextStreamReader extends TextStreamBase {
/**
* Returns a specified number of characters from an input stream, starting at the current pointer position.
* Does not return until the ENTER key is pressed.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
Read(characters: number): string;
/**
* Returns all characters from an input stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadAll(): string;
/**
* Returns an entire line from an input stream.
* Although this method extracts the newline character, it does not add it to the returned string.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadLine(): string;
/**
* Skips a specified number of characters when reading from an input text stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
*/
Skip(characters: number): void;
/**
* Skips the next line when reading from an input text stream.
* Can only be used on a stream in reading mode, not writing or appending mode.
*/
SkipLine(): void;
/**
* Indicates whether the stream pointer position is at the end of a line.
*/
AtEndOfLine: boolean;
/**
* Indicates whether the stream pointer position is at the end of a stream.
*/
AtEndOfStream: boolean;
}
declare var WScript: {
/**
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
* a newline (under CScript.exe).
*/
Echo(s: any): void;
/**
* Exposes the write-only error output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdErr: TextStreamWriter;
/**
* Exposes the write-only output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdOut: TextStreamWriter;
Arguments: { length: number; Item(n: number): string; };
/**
* The full path of the currently running script.
*/
ScriptFullName: string;
/**
* Forces the script to stop immediately, with an optional exit code.
*/
Quit(exitCode?: number): number;
/**
* The Windows Script Host build version number.
*/
BuildVersion: number;
/**
* Fully qualified path of the host executable.
*/
FullName: string;
/**
* Gets/sets the script mode - interactive(true) or batch(false).
*/
Interactive: boolean;
/**
* The name of the host executable (WScript.exe or CScript.exe).
*/
Name: string;
/**
* Path of the directory containing the host executable.
*/
Path: string;
/**
* The filename of the currently running script.
*/
ScriptName: string;
/**
* Exposes the read-only input stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdIn: TextStreamReader;
/**
* Windows Script Host version
*/
Version: string;
/**
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
*/
ConnectObject(objEventSource: any, strPrefix: string): void;
/**
* Creates a COM object.
* @param strProgiID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
CreateObject(strProgID: string, strPrefix?: string): any;
/**
* Disconnects a COM object from its event sources.
*/
DisconnectObject(obj: any): void;
/**
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
* For objects in memory, pass a zero-length string.
* @param strProgID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
/**
* Suspends script execution for a specified length of time, then continues execution.
* @param intTime Interval (in milliseconds) to suspend script execution.
*/
Sleep(intTime: number): void;
};
/**
* WSH is an alias for WScript under Windows Script Host
*/
declare var WSH: typeof WScript;
/**
* Represents an Automation SAFEARRAY
*/
declare class SafeArray<T = any> {
private constructor();
private SafeArray_typekey: SafeArray<T>;
}
/**
* Allows enumerating over a COM collection, which may not have indexed item access.
*/
interface Enumerator<T = any> {
/**
* Returns true if the current item is the last one in the collection, or the collection is empty,
* or the current item is undefined.
*/
atEnd(): boolean;
/**
* Returns the current item in the collection
*/
item(): T;
/**
* Resets the current item in the collection to the first item. If there are no items in the collection,
* the current item is set to undefined.
*/
moveFirst(): void;
/**
* Moves the current item to the next item in the collection. If the enumerator is at the end of
* the collection or the collection is empty, the current item is set to undefined.
*/
moveNext(): void;
}
interface EnumeratorConstructor {
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
new <T = any>(collection: { Item(index: any): T }): Enumerator<T>;
new <T = any>(collection: any): Enumerator<T>;
}
declare var Enumerator: EnumeratorConstructor;
/**
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
*/
interface VBArray<T = any> {
/**
* Returns the number of dimensions (1-based).
*/
dimensions(): number;
/**
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
*/
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
/**
* Returns the smallest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
lbound(dimension?: number): number;
/**
* Returns the largest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
ubound(dimension?: number): number;
/**
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
* each successive dimension is appended to the end of the array.
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
*/
toArray(): T[];
}
interface VBArrayConstructor {
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}
declare var VBArray: VBArrayConstructor;
/**
* Automation date (VT_DATE)
*/
declare class VarDate {
private constructor();
private VarDate_typekey: VarDate;
}
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}
`,Ri["lib.webworker.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CryptoKeyPair {
privateKey?: CryptoKey;
publicKey?: CryptoKey;
}
interface CustomEventInit<T = any> 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 EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
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 EventSourceInit {
withCredentials?: boolean;
}
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: Client | ServiceWorker | MessagePort | null;
}
interface FetchEventInit extends ExtendableEventInit {
clientId?: string;
handled?: Promise<undefined>;
preloadResponse?: Promise<any>;
replacesClientId?: string;
request: Request;
resultingClientId?: string;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FontFaceDescriptors {
display?: string;
featureSettings?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
variant?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface GetNotificationOptions {
tag?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
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 IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImportMeta {
url: string;
}
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 MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface NotificationAction {
action: string;
icon?: string;
title: string;
}
interface NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
actions?: NotificationAction[];
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
image?: string;
lang?: string;
renotify?: boolean;
requireInteraction?: boolean;
silent?: boolean;
tag?: string;
timestamp?: DOMTimeStamp;
vibrate?: VibratePattern;
}
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 PermissionDescriptor {
name: PermissionName;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: DOMTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
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 ReadableStreamDefaultReadDoneResult {
done: true;
value?: undefined;
}
interface ReadableStreamDefaultReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* 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<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
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;
/** 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 ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
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 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 StorageEstimate {
quota?: number;
usage?: number;
}
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?: any[];
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read?: number;
written?: number;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: undefined;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
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 WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
/** 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. */
interface ANGLE_instanced_arrays {
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;
}
/** A controller object that allows you to abort one or more DOM requests as and when desired. */
interface AbortController {
/** Returns the AbortSignal object associated with this object. */
readonly signal: AbortSignal;
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
abort(): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(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;
// abort(): AbortSignal; - To be re-added in the future
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AnimationFrameProvider {
cancelAnimationFrame(handle: number): void;
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream;
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
readonly body: ReadableStream<Uint8Array> | null;
readonly bodyUsed: boolean;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
interface BroadcastChannel extends EventTarget {
/** Returns the channel name (as passed to the constructor). */
readonly name: string;
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** Closes the BroadcastChannel object, opening it up to garbage collection. */
close(): void;
/** Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays. */
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
readonly highWaterMark: number;
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*/
interface Cache {
add(request: RequestInfo): Promise<void>;
addAll(requests: RequestInfo[]): Promise<void>;
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
put(request: RequestInfo, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*/
interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasPath {
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
closePath(): void;
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
lineTo(x: number, y: number): void;
moveTo(x: number, y: number): void;
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
rect(x: number, y: number, w: number, h: number): void;
}
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
interface CanvasPattern {
/** Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation. */
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
/** The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get(). */
interface Client {
readonly frameType: FrameType;
readonly id: string;
readonly type: ClientTypes;
readonly url: string;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/** Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker. */
interface Clients {
claim(): Promise<void>;
get(id: string): Promise<Client | undefined>;
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
openWindow(url: string | URL): Promise<WindowClient | null>;
}
declare var Clients: {
prototype: Clients;
new(): Clients;
};
/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */
interface CloseEvent extends Event {
/** Returns the WebSocket connection close code provided by the server. */
readonly code: number;
/** Returns the WebSocket connection close reason provided by the server. */
readonly reason: string;
/** Returns true if the connection closed cleanly; false otherwise. */
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams. */
interface CountQueuingStrategy extends QueuingStrategy {
readonly highWaterMark: number;
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */
interface Crypto {
/** Available only in secure contexts. */
readonly subtle: SubtleCrypto;
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*/
interface CryptoKey {
readonly algorithm: KeyAlgorithm;
readonly extractable: boolean;
readonly type: KeyType;
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
interface CustomEvent<T = any> extends Event {
/** Returns any custom data event was created with. Typically used for synthetic events. */
readonly detail: T;
/** @deprecated */
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
interface DOMException extends Error {
readonly code: number;
readonly message: string;
readonly name: string;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly ABORT_ERR: number;
readonly DATA_CLONE_ERR: number;
readonly DOMSTRING_SIZE_ERR: number;
readonly HIERARCHY_REQUEST_ERR: number;
readonly INDEX_SIZE_ERR: number;
readonly INUSE_ATTRIBUTE_ERR: number;
readonly INVALID_ACCESS_ERR: number;
readonly INVALID_CHARACTER_ERR: number;
readonly INVALID_MODIFICATION_ERR: number;
readonly INVALID_NODE_TYPE_ERR: number;
readonly INVALID_STATE_ERR: number;
readonly NAMESPACE_ERR: number;
readonly NETWORK_ERR: number;
readonly NOT_FOUND_ERR: number;
readonly NOT_SUPPORTED_ERR: number;
readonly NO_DATA_ALLOWED_ERR: number;
readonly NO_MODIFICATION_ALLOWED_ERR: number;
readonly QUOTA_EXCEEDED_ERR: number;
readonly SECURITY_ERR: number;
readonly SYNTAX_ERR: number;
readonly TIMEOUT_ERR: number;
readonly TYPE_MISMATCH_ERR: number;
readonly URL_MISMATCH_ERR: number;
readonly VALIDATION_ERR: number;
readonly WRONG_DOCUMENT_ERR: number;
};
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
interface DOMMatrixReadOnly {
readonly a: number;
readonly b: number;
readonly c: number;
readonly d: number;
readonly e: number;
readonly f: number;
readonly is2D: boolean;
readonly isIdentity: boolean;
readonly m11: number;
readonly m12: number;
readonly m13: number;
readonly m14: number;
readonly m21: number;
readonly m22: number;
readonly m23: number;
readonly m24: number;
readonly m31: number;
readonly m32: number;
readonly m33: number;
readonly m34: number;
readonly m41: number;
readonly m42: number;
readonly m43: number;
readonly m44: number;
flipX(): DOMMatrix;
flipY(): DOMMatrix;
inverse(): DOMMatrix;
multiply(other?: DOMMatrixInit): DOMMatrix;
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVector(x?: number, y?: number): DOMMatrix;
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** @deprecated */
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
skewX(sx?: number): DOMMatrix;
skewY(sy?: number): DOMMatrix;
toFloat32Array(): Float32Array;
toFloat64Array(): Float64Array;
toJSON(): any;
transformPoint(point?: DOMPointInit): DOMPoint;
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
interface DOMPoint extends DOMPointReadOnly {
w: number;
x: number;
y: number;
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
fromPoint(other?: DOMPointInit): DOMPoint;
};
interface DOMPointReadOnly {
readonly w: number;
readonly x: number;
readonly y: number;
readonly z: number;
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
interface DOMQuad {
readonly p1: DOMPoint;
readonly p2: DOMPoint;
readonly p3: DOMPoint;
readonly p4: DOMPoint;
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
interface DOMRectReadOnly {
readonly bottom: number;
readonly height: number;
readonly left: number;
readonly right: number;
readonly top: number;
readonly width: number;
readonly x: number;
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/** A type returned by some APIs which contains a list of DOMString (strings). */
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers. */
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
readonly name: string;
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts dedicatedWorkerGlobal. */
close(): void;
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DedicatedWorkerGlobalScope: {
prototype: DedicatedWorkerGlobalScope;
new(): DedicatedWorkerGlobalScope;
};
interface EXT_blend_minmax {
readonly MAX_EXT: GLenum;
readonly MIN_EXT: GLenum;
}
interface EXT_color_buffer_float {
}
interface EXT_color_buffer_half_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGB16F_EXT: GLenum;
readonly RGBA16F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
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. */
interface EXT_frag_depth {
}
interface EXT_sRGB {
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;
readonly SRGB8_ALPHA8_EXT: GLenum;
readonly SRGB_ALPHA_EXT: GLenum;
readonly SRGB_EXT: GLenum;
}
interface EXT_shader_texture_lod {
}
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;
}
/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */
interface EXT_texture_filter_anisotropic {
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
}
/** Events providing information related to errors in scripts or in files. */
interface ErrorEvent extends Event {
readonly colno: number;
readonly error: any;
readonly filename: string;
readonly lineno: number;
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/** An event which takes place in the DOM. */
interface Event {
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
readonly bubbles: boolean;
cancelBubble: boolean;
/** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
readonly cancelable: boolean;
/** Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false otherwise. */
readonly isTrusted: boolean;
/** @deprecated */
returnValue: boolean;
/** @deprecated */
readonly srcElement: EventTarget | null;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured relative to the time origin. */
readonly timeStamp: DOMHighResTimeStamp;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
readonly type: string;
/** Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. */
composedPath(): EventTarget[];
/** @deprecated */
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/** If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. */
preventDefault(): void;
/** Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. */
stopPropagation(): void;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
interface EventSource extends EventTarget {
onerror: ((this: EventSource, ev: Event) => any) | null;
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
onopen: ((this: EventSource, ev: Event) => any) | null;
/** Returns the state of this EventSource object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL providing the event stream. */
readonly url: string;
/** Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise. */
readonly withCredentials: boolean;
/** Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED. */
close(): void;
readonly CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => 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 CLOSED: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same type, callback, and options. */
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
interface ExtendableEvent extends Event {
waitUntil(f: any): void;
}
declare var ExtendableEvent: {
prototype: ExtendableEvent;
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};
/** This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events. */
interface ExtendableMessageEvent extends ExtendableEvent {
readonly data: any;
readonly lastEventId: string;
readonly origin: string;
readonly ports: ReadonlyArray<MessagePort>;
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/** This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch. */
interface FetchEvent extends ExtendableEvent {
readonly clientId: string;
readonly handled: Promise<undefined>;
readonly request: Request;
readonly resultingClientId: string;
respondWith(r: Response | PromiseLike<Response>): void;
}
declare var FetchEvent: {
prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};
/** Provides information about files and allows JavaScript in a web page to access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/** An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */
interface FileList {
readonly length: number;
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/** 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. */
interface FileReader extends EventTarget {
readonly error: DOMException | null;
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
readonly readyState: number;
readonly result: string | ArrayBuffer | null;
abort(): void;
readAsArrayBuffer(blob: Blob): void;
readAsBinaryString(blob: Blob): void;
readAsDataURL(blob: Blob): void;
readAsText(blob: Blob, encoding?: string): void;
readonly DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(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 DONE: number;
readonly EMPTY: number;
readonly LOADING: number;
};
/** Allows to read File or Blob objects in a synchronous way. */
interface FileReaderSync {
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/** @deprecated */
readAsBinaryString(blob: Blob): string;
readAsDataURL(blob: Blob): string;
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
interface FontFace {
ascentOverride: string;
descentOverride: string;
display: string;
family: string;
featureSettings: string;
lineGapOverride: string;
readonly loaded: Promise<FontFace>;
readonly status: FontFaceLoadStatus;
stretch: string;
style: string;
unicodeRange: string;
variant: string;
variationSettings: string;
weight: string;
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
interface FontFaceSet extends EventTarget {
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
readonly ready: Promise<FontFaceSet>;
readonly status: FontFaceSetLoadStatus;
check(font: string, text?: string): boolean;
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
interface FontFaceSetLoadEvent extends Event {
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
readonly fonts: FontFaceSet;
}
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
interface FormData {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
readonly readable: ReadableStream;
readonly writable: WritableStream;
}
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. */
interface IDBCursor {
/** Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor. */
readonly direction: IDBCursorDirection;
/** Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly key: IDBValidKey;
/** Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished. */
readonly primaryKey: IDBValidKey;
readonly request: IDBRequest;
/** Returns the IDBObjectStore or IDBIndex the cursor was opened from. */
readonly source: IDBObjectStore | IDBIndex;
/** Advances the cursor through the next count records in range. */
advance(count: number): void;
/** Advances the cursor to the next record in range. */
continue(key?: IDBValidKey): void;
/** Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index. */
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/** This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property. */
interface IDBCursorWithValue extends IDBCursor {
/** Returns the cursor's current value. */
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/** This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database. */
interface IDBDatabase extends EventTarget {
/** Returns the name of the database. */
readonly name: string;
/** Returns a list of the names of object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/** Returns the version of the database. */
readonly version: number;
/** Closes the connection once all running transactions have finished. */
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteObjectStore(name: string): void;
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/** In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.) */
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
cmp(first: any, second: any): number;
databases(): Promise<IDBDatabaseInfo[]>;
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
deleteDatabase(name: string): IDBOpenDBRequest;
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/** IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data. */
interface IDBIndex {
readonly keyPath: string | string[];
readonly multiEntry: boolean;
/** Returns the name of the index. */
name: string;
/** Returns the IDBObjectStore the index belongs to. */
readonly objectStore: IDBObjectStore;
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/** A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs: */
interface IDBKeyRange {
/** Returns lower bound, or undefined if none. */
readonly lower: any;
/** Returns true if the lower open flag is set, and false otherwise. */
readonly lowerOpen: boolean;
/** Returns upper bound, or undefined if none. */
readonly upper: any;
/** Returns true if the upper open flag is set, and false otherwise. */
readonly upperOpen: boolean;
/** Returns true if key is included in the range, and false otherwise. */
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/** Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range. */
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range. */
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/** Returns a new IDBKeyRange spanning only key. */
only(value: any): IDBKeyRange;
/** Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range. */
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/** This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.) */
interface IDBObjectStore {
/** Returns true if the store has a key generator, and false otherwise. */
readonly autoIncrement: boolean;
/** Returns a list of the names of indexes in the store. */
readonly indexNames: DOMStringList;
/** Returns the key path of the store, or null if none. */
readonly keyPath: string | string[];
/** Returns the name of the store. */
name: string;
/** Returns the associated transaction. */
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": Event;
"upgradeneeded": IDBVersionChangeEvent;
}
/** Also inherits methods from its parents IDBRequest and EventTarget. */
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
onblocked: ((this: IDBOpenDBRequest, ev: Event) => any) | null;
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/** The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance. */
interface IDBRequest<T = any> extends EventTarget {
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly error: DOMException | null;
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** Returns "pending" until a request is complete, then returns "done". */
readonly readyState: IDBRequestReadyState;
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
readonly result: T;
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
interface IDBTransaction extends EventTarget {
/** Returns the transaction's connection. */
readonly db: IDBDatabase;
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
readonly error: DOMException | null;
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
readonly mode: IDBTransactionMode;
/** Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database. */
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/** Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted. */
abort(): void;
commit(): void;
/** Returns an IDBObjectStore in the transaction's scope. */
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/** This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function. */
interface IDBVersionChangeEvent extends Event {
readonly newVersion: number | null;
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
interface ImageBitmap {
/** Returns the intrinsic height of the image, in CSS pixels. */
readonly height: number;
/** Returns the intrinsic width of the image, in CSS pixels. */
readonly width: number;
/** Releases imageBitmap's underlying bitmap data. */
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
interface ImageBitmapRenderingContext {
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
interface ImageData {
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
readonly data: Uint8ClampedArray;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly height: number;
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: GLenum;
}
interface MediaCapabilities {
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/** This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties. */
interface MessageChannel {
/** Returns the first MessagePort object. */
readonly port1: MessagePort;
/** Returns the second MessagePort object. */
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/** A message received by a target object. */
interface MessageEvent<T = any> extends Event {
/** Returns the data of the message. */
readonly data: T;
/** Returns the last event ID string, for server-sent events. */
readonly lastEventId: string;
/** Returns the origin of the message, for server-sent events and cross-document messaging. */
readonly origin: string;
/** Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging. */
readonly ports: ReadonlyArray<MessagePort>;
/** Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects. */
readonly source: MessageEventSource | null;
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other. */
interface MessagePort extends EventTarget {
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** Disconnects the port, so that it is no longer active. */
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Begins dispatching messages received on the port. */
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
interface NavigatorConcurrentHardware {
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/** @deprecated */
readonly appCodeName: string;
/** @deprecated */
readonly appName: string;
/** @deprecated */
readonly appVersion: string;
/** @deprecated */
readonly platform: string;
/** @deprecated */
readonly product: string;
readonly userAgent: string;
}
interface NavigatorLanguage {
readonly language: string;
readonly languages: ReadonlyArray<string>;
}
interface NavigatorNetworkInformation {
readonly connection: NetworkInformation;
}
interface NavigatorOnLine {
readonly onLine: boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
readonly storage: StorageManager;
}
interface NetworkInformation extends EventTarget {
readonly type: ConnectionType;
}
declare var NetworkInformation: {
prototype: NetworkInformation;
new(): NetworkInformation;
};
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/** This Notifications API interface is used to configure and display desktop notifications to the user. */
interface Notification extends EventTarget {
readonly body: string;
readonly data: any;
readonly dir: NotificationDirection;
readonly icon: string;
readonly lang: string;
onclick: ((this: Notification, ev: Event) => any) | null;
onclose: ((this: Notification, ev: Event) => any) | null;
onerror: ((this: Notification, ev: Event) => any) | null;
onshow: ((this: Notification, ev: Event) => any) | null;
readonly tag: string;
readonly title: string;
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
readonly permission: NotificationPermission;
};
/** The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker. */
interface NotificationEvent extends ExtendableEvent {
readonly action: string;
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
interface OES_element_index_uint {
}
interface OES_fbo_render_mipmap {
}
/** The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth. */
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: GLenum;
}
/** The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures. */
interface OES_texture_float {
}
/** The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures. */
interface OES_texture_float_linear {
}
/** The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components. */
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: GLenum;
}
/** The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures. */
interface OES_texture_half_float_linear {
}
interface OES_vertex_array_object {
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: GLenum;
}
interface OVR_multiview2 {
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: GLenum;
readonly MAX_VIEWS_OVR: GLenum;
}
/** @deprecated this is not available in most browsers */
interface OffscreenCanvas extends EventTarget {
}
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
interface Path2D extends CanvasPath {
/** Adds to the path the path given by the argument. */
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/** Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API. */
interface Performance extends EventTarget {
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
readonly timeOrigin: DOMHighResTimeStamp;
clearMarks(markName?: string): void;
clearMeasures(measureName?: string): void;
clearResourceTimings(): void;
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
now(): DOMHighResTimeStamp;
setResourceTimingBufferSize(maxSize: number): void;
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/** Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image). */
interface PerformanceEntry {
readonly duration: DOMHighResTimeStamp;
readonly entryType: string;
readonly name: string;
readonly startTime: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline. */
interface PerformanceMark extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/** PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline. */
interface PerformanceMeasure extends PerformanceEntry {
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
interface PerformanceObserver {
disconnect(): void;
observe(options?: PerformanceObserverInit): void;
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
readonly supportedEntryTypes: ReadonlyArray<string>;
};
interface PerformanceObserverEntryList {
getEntries(): PerformanceEntryList;
getEntriesByName(name: string, type?: string): PerformanceEntryList;
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script. */
interface PerformanceResourceTiming extends PerformanceEntry {
readonly connectEnd: DOMHighResTimeStamp;
readonly connectStart: DOMHighResTimeStamp;
readonly decodedBodySize: number;
readonly domainLookupEnd: DOMHighResTimeStamp;
readonly domainLookupStart: DOMHighResTimeStamp;
readonly encodedBodySize: number;
readonly fetchStart: DOMHighResTimeStamp;
readonly initiatorType: string;
readonly nextHopProtocol: string;
readonly redirectEnd: DOMHighResTimeStamp;
readonly redirectStart: DOMHighResTimeStamp;
readonly requestStart: DOMHighResTimeStamp;
readonly responseEnd: DOMHighResTimeStamp;
readonly responseStart: DOMHighResTimeStamp;
readonly secureConnectionStart: DOMHighResTimeStamp;
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
readonly transferSize: number;
readonly workerStart: DOMHighResTimeStamp;
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
interface PerformanceServerTiming {
readonly description: string;
readonly duration: DOMHighResTimeStamp;
readonly name: string;
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
interface PermissionStatus extends EventTarget {
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
interface Permissions {
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
interface PromiseRejectionEvent extends Event {
readonly promise: Promise<any>;
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
* Available only in secure contexts.
*/
interface PushEvent extends ExtendableEvent {
readonly data: PushMessageData | null;
}
declare var PushEvent: {
prototype: PushEvent;
new(type: string, eventInitDict?: PushEventInit): PushEvent;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*/
interface PushManager {
getSubscription(): Promise<PushSubscription | null>;
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
* Available only in secure contexts.
*/
interface PushMessageData {
arrayBuffer(): ArrayBuffer;
blob(): Blob;
json(): any;
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*/
interface PushSubscription {
readonly endpoint: string;
readonly options: PushSubscriptionOptions;
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
toJSON(): PushSubscriptionJSON;
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/** Available only in secure contexts. */
interface PushSubscriptionOptions {
readonly applicationServerKey: ArrayBuffer | null;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk?: R): void;
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
read(): Promise<ReadableStreamDefaultReadResult<R>>;
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
readonly closed: Promise<undefined>;
cancel(reason?: any): Promise<void>;
}
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
readonly cache: RequestCache;
/** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
readonly credentials: RequestCredentials;
/** Returns the kind of resource requested by request, e.g., "document" or "script". */
readonly destination: RequestDestination;
/** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
readonly headers: Headers;
/** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
readonly integrity: string;
/** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
readonly keepalive: boolean;
/** Returns request's HTTP method, which is "GET" by default. */
readonly method: string;
/** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
readonly mode: RequestMode;
/** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
readonly redirect: RequestRedirect;
/** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made. */
readonly referrer: string;
/** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
readonly referrerPolicy: ReferrerPolicy;
/** Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler. */
readonly signal: AbortSignal;
/** Returns the URL of request as a string. */
readonly url: string;
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo, init?: RequestInit): Request;
};
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string | URL, status?: number): Response;
};
/** Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated. */
interface SecurityPolicyViolationEvent extends Event {
readonly blockedURI: string;
readonly columnNumber: number;
readonly disposition: SecurityPolicyViolationEventDisposition;
readonly documentURI: string;
readonly effectiveDirective: string;
readonly lineNumber: number;
readonly originalPolicy: string;
readonly referrer: string;
readonly sample: string;
readonly sourceFile: string;
readonly statusCode: number;
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
readonly scriptURL: string;
readonly state: ServiceWorkerState;
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*/
interface ServiceWorkerContainer extends EventTarget {
readonly controller: ServiceWorker | null;
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
readonly ready: Promise<ServiceWorkerRegistration>;
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
}
/** This ServiceWorker API interface represents the global execution context of a service worker. */
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
readonly clients: Clients;
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
readonly registration: ServiceWorkerRegistration;
skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerGlobalScope: {
prototype: ServiceWorkerGlobalScope;
new(): ServiceWorkerGlobalScope;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*/
interface ServiceWorkerRegistration extends EventTarget {
readonly active: ServiceWorker | null;
readonly installing: ServiceWorker | null;
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
readonly pushManager: PushManager;
readonly scope: string;
readonly updateViaCache: ServiceWorkerUpdateViaCache;
readonly waiting: ServiceWorker | null;
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
showNotification(title: string, options?: NotificationOptions): Promise<void>;
unregister(): Promise<boolean>;
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"connect": MessageEvent;
}
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/** Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name. */
readonly name: string;
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts sharedWorkerGlobal. */
close(): void;
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorkerGlobalScope: {
prototype: SharedWorkerGlobalScope;
new(): SharedWorkerGlobalScope;
};
/** Available only in secure contexts. */
interface StorageManager {
estimate(): Promise<StorageEstimate>;
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*/
interface SubtleCrypto {
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<any>;
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/** A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*/
decode(input?: BufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns true if error mode is "fatal", otherwise false. */
readonly fatal: boolean;
/** Returns the value of ignore BOM. */
readonly ignoreBOM: boolean;
}
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/** TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays. */
interface TextEncoder extends TextEncoderCommon {
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
/** Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination. */
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/** Returns "utf-8". */
readonly encoding: string;
}
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/** The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method. */
interface TextMetrics {
/** Returns the measurement described below. */
readonly actualBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxLeft: number;
/** Returns the measurement described below. */
readonly actualBoundingBoxRight: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxAscent: number;
/** Returns the measurement described below. */
readonly fontBoundingBoxDescent: number;
/** Returns the measurement described below. */
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TransformStream<I = any, O = any> {
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk?: O): void;
error(reason?: any): void;
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/** The URL\xA0interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
createObjectURL(obj: Blob): string;
revokeObjectURL(url: string): void;
};
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter. */
append(name: string, value: string): void;
/** Deletes the given search parameter, and its associated value, from the list of all search parameters. */
delete(name: string): void;
/** Returns the first value associated to the given search parameter. */
get(name: string): string | null;
/** Returns all the values association with a given search parameter. */
getAll(name: string): string[];
/** Returns a Boolean indicating if such a search parameter exists. */
has(name: string): boolean;
/** Sets the value associated to a given search parameter to the given value. If there were several values, delete the others. */
set(name: string, value: string): void;
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
toString(): string;
};
interface WEBGL_color_buffer_float {
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly RGBA32F_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
interface WEBGL_compressed_texture_astc {
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: GLenum;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: GLenum;
readonly COMPRESSED_RG11_EAC: GLenum;
readonly COMPRESSED_RGB8_ETC2: GLenum;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SRGB8_ETC2: GLenum;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
}
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
}
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
}
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: GLenum;
}
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: GLenum;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: GLenum;
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: GLenum;
}
/** The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes. */
interface WEBGL_debug_renderer_info {
readonly UNMASKED_RENDERER_WEBGL: GLenum;
readonly UNMASKED_VENDOR_WEBGL: GLenum;
}
interface WEBGL_debug_shaders {
getTranslatedShaderSource(shader: WebGLShader): string;
}
/** The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures. */
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: GLenum;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: GLenum;
readonly COLOR_ATTACHMENT10_WEBGL: GLenum;
readonly COLOR_ATTACHMENT11_WEBGL: GLenum;
readonly COLOR_ATTACHMENT12_WEBGL: GLenum;
readonly COLOR_ATTACHMENT13_WEBGL: GLenum;
readonly COLOR_ATTACHMENT14_WEBGL: GLenum;
readonly COLOR_ATTACHMENT15_WEBGL: GLenum;
readonly COLOR_ATTACHMENT1_WEBGL: GLenum;
readonly COLOR_ATTACHMENT2_WEBGL: GLenum;
readonly COLOR_ATTACHMENT3_WEBGL: GLenum;
readonly COLOR_ATTACHMENT4_WEBGL: GLenum;
readonly COLOR_ATTACHMENT5_WEBGL: GLenum;
readonly COLOR_ATTACHMENT6_WEBGL: GLenum;
readonly COLOR_ATTACHMENT7_WEBGL: GLenum;
readonly COLOR_ATTACHMENT8_WEBGL: GLenum;
readonly COLOR_ATTACHMENT9_WEBGL: GLenum;
readonly DRAW_BUFFER0_WEBGL: GLenum;
readonly DRAW_BUFFER10_WEBGL: GLenum;
readonly DRAW_BUFFER11_WEBGL: GLenum;
readonly DRAW_BUFFER12_WEBGL: GLenum;
readonly DRAW_BUFFER13_WEBGL: GLenum;
readonly DRAW_BUFFER14_WEBGL: GLenum;
readonly DRAW_BUFFER15_WEBGL: GLenum;
readonly DRAW_BUFFER1_WEBGL: GLenum;
readonly DRAW_BUFFER2_WEBGL: GLenum;
readonly DRAW_BUFFER3_WEBGL: GLenum;
readonly DRAW_BUFFER4_WEBGL: GLenum;
readonly DRAW_BUFFER5_WEBGL: GLenum;
readonly DRAW_BUFFER6_WEBGL: GLenum;
readonly DRAW_BUFFER7_WEBGL: GLenum;
readonly DRAW_BUFFER8_WEBGL: GLenum;
readonly DRAW_BUFFER9_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: GLenum;
readonly MAX_DRAW_BUFFERS_WEBGL: GLenum;
}
interface WEBGL_lose_context {
loseContext(): void;
restoreContext(): void;
}
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGL2RenderingContextBase {
beginQuery(target: GLenum, query: WebGLQuery): void;
beginTransformFeedback(primitiveMode: GLenum): void;
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
bindVertexArray(array: WebGLVertexArrayObject | null): void;
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: GLuint): void;
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createQuery(): WebGLQuery | null;
createSampler(): WebGLSampler | null;
createTransformFeedback(): WebGLTransformFeedback | null;
createVertexArray(): WebGLVertexArrayObject | null;
deleteQuery(query: WebGLQuery | null): void;
deleteSampler(sampler: WebGLSampler | null): void;
deleteSync(sync: WebGLSync | null): void;
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
drawBuffers(buffers: GLenum[]): void;
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
endQuery(target: GLenum): void;
endTransformFeedback(): void;
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: GLuint, length?: GLuint): void;
getFragDataLocation(program: WebGLProgram, name: string): GLint;
getIndexedParameter(target: GLenum, index: GLuint): any;
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
isQuery(query: WebGLQuery | null): GLboolean;
isSampler(sampler: WebGLSampler | null): GLboolean;
isSync(sync: WebGLSync | null): GLboolean;
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
pauseTransformFeedback(): void;
readBuffer(src: GLenum): void;
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
resumeTransformFeedback(): void;
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: GLuint): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
vertexAttribI4iv(index: GLuint, values: Int32List): void;
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly ACTIVE_UNIFORM_BLOCKS: GLenum;
readonly ALREADY_SIGNALED: GLenum;
readonly ANY_SAMPLES_PASSED: GLenum;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: GLenum;
readonly COLOR: GLenum;
readonly COLOR_ATTACHMENT1: GLenum;
readonly COLOR_ATTACHMENT10: GLenum;
readonly COLOR_ATTACHMENT11: GLenum;
readonly COLOR_ATTACHMENT12: GLenum;
readonly COLOR_ATTACHMENT13: GLenum;
readonly COLOR_ATTACHMENT14: GLenum;
readonly COLOR_ATTACHMENT15: GLenum;
readonly COLOR_ATTACHMENT2: GLenum;
readonly COLOR_ATTACHMENT3: GLenum;
readonly COLOR_ATTACHMENT4: GLenum;
readonly COLOR_ATTACHMENT5: GLenum;
readonly COLOR_ATTACHMENT6: GLenum;
readonly COLOR_ATTACHMENT7: GLenum;
readonly COLOR_ATTACHMENT8: GLenum;
readonly COLOR_ATTACHMENT9: GLenum;
readonly COMPARE_REF_TO_TEXTURE: GLenum;
readonly CONDITION_SATISFIED: GLenum;
readonly COPY_READ_BUFFER: GLenum;
readonly COPY_READ_BUFFER_BINDING: GLenum;
readonly COPY_WRITE_BUFFER: GLenum;
readonly COPY_WRITE_BUFFER_BINDING: GLenum;
readonly CURRENT_QUERY: GLenum;
readonly DEPTH: GLenum;
readonly DEPTH24_STENCIL8: GLenum;
readonly DEPTH32F_STENCIL8: GLenum;
readonly DEPTH_COMPONENT24: GLenum;
readonly DEPTH_COMPONENT32F: GLenum;
readonly DRAW_BUFFER0: GLenum;
readonly DRAW_BUFFER1: GLenum;
readonly DRAW_BUFFER10: GLenum;
readonly DRAW_BUFFER11: GLenum;
readonly DRAW_BUFFER12: GLenum;
readonly DRAW_BUFFER13: GLenum;
readonly DRAW_BUFFER14: GLenum;
readonly DRAW_BUFFER15: GLenum;
readonly DRAW_BUFFER2: GLenum;
readonly DRAW_BUFFER3: GLenum;
readonly DRAW_BUFFER4: GLenum;
readonly DRAW_BUFFER5: GLenum;
readonly DRAW_BUFFER6: GLenum;
readonly DRAW_BUFFER7: GLenum;
readonly DRAW_BUFFER8: GLenum;
readonly DRAW_BUFFER9: GLenum;
readonly DRAW_FRAMEBUFFER: GLenum;
readonly DRAW_FRAMEBUFFER_BINDING: GLenum;
readonly DYNAMIC_COPY: GLenum;
readonly DYNAMIC_READ: GLenum;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: GLenum;
readonly FLOAT_MAT2x3: GLenum;
readonly FLOAT_MAT2x4: GLenum;
readonly FLOAT_MAT3x2: GLenum;
readonly FLOAT_MAT3x4: GLenum;
readonly FLOAT_MAT4x2: GLenum;
readonly FLOAT_MAT4x3: GLenum;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: GLenum;
readonly FRAMEBUFFER_DEFAULT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: GLenum;
readonly HALF_FLOAT: GLenum;
readonly INTERLEAVED_ATTRIBS: GLenum;
readonly INT_2_10_10_10_REV: GLenum;
readonly INT_SAMPLER_2D: GLenum;
readonly INT_SAMPLER_2D_ARRAY: GLenum;
readonly INT_SAMPLER_3D: GLenum;
readonly INT_SAMPLER_CUBE: GLenum;
readonly INVALID_INDEX: GLenum;
readonly MAX: GLenum;
readonly MAX_3D_TEXTURE_SIZE: GLenum;
readonly MAX_ARRAY_TEXTURE_LAYERS: GLenum;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: GLenum;
readonly MAX_COLOR_ATTACHMENTS: GLenum;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_COMBINED_UNIFORM_BLOCKS: GLenum;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MAX_DRAW_BUFFERS: GLenum;
readonly MAX_ELEMENTS_INDICES: GLenum;
readonly MAX_ELEMENTS_VERTICES: GLenum;
readonly MAX_ELEMENT_INDEX: GLenum;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: GLenum;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: GLenum;
readonly MAX_PROGRAM_TEXEL_OFFSET: GLenum;
readonly MAX_SAMPLES: GLenum;
readonly MAX_SERVER_WAIT_TIMEOUT: GLenum;
readonly MAX_TEXTURE_LOD_BIAS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: GLenum;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: GLenum;
readonly MAX_UNIFORM_BLOCK_SIZE: GLenum;
readonly MAX_UNIFORM_BUFFER_BINDINGS: GLenum;
readonly MAX_VARYING_COMPONENTS: GLenum;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: GLenum;
readonly MAX_VERTEX_UNIFORM_BLOCKS: GLenum;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: GLenum;
readonly MIN: GLenum;
readonly MIN_PROGRAM_TEXEL_OFFSET: GLenum;
readonly OBJECT_TYPE: GLenum;
readonly PACK_ROW_LENGTH: GLenum;
readonly PACK_SKIP_PIXELS: GLenum;
readonly PACK_SKIP_ROWS: GLenum;
readonly PIXEL_PACK_BUFFER: GLenum;
readonly PIXEL_PACK_BUFFER_BINDING: GLenum;
readonly PIXEL_UNPACK_BUFFER: GLenum;
readonly PIXEL_UNPACK_BUFFER_BINDING: GLenum;
readonly QUERY_RESULT: GLenum;
readonly QUERY_RESULT_AVAILABLE: GLenum;
readonly R11F_G11F_B10F: GLenum;
readonly R16F: GLenum;
readonly R16I: GLenum;
readonly R16UI: GLenum;
readonly R32F: GLenum;
readonly R32I: GLenum;
readonly R32UI: GLenum;
readonly R8: GLenum;
readonly R8I: GLenum;
readonly R8UI: GLenum;
readonly R8_SNORM: GLenum;
readonly RASTERIZER_DISCARD: GLenum;
readonly READ_BUFFER: GLenum;
readonly READ_FRAMEBUFFER: GLenum;
readonly READ_FRAMEBUFFER_BINDING: GLenum;
readonly RED: GLenum;
readonly RED_INTEGER: GLenum;
readonly RENDERBUFFER_SAMPLES: GLenum;
readonly RG: GLenum;
readonly RG16F: GLenum;
readonly RG16I: GLenum;
readonly RG16UI: GLenum;
readonly RG32F: GLenum;
readonly RG32I: GLenum;
readonly RG32UI: GLenum;
readonly RG8: GLenum;
readonly RG8I: GLenum;
readonly RG8UI: GLenum;
readonly RG8_SNORM: GLenum;
readonly RGB10_A2: GLenum;
readonly RGB10_A2UI: GLenum;
readonly RGB16F: GLenum;
readonly RGB16I: GLenum;
readonly RGB16UI: GLenum;
readonly RGB32F: GLenum;
readonly RGB32I: GLenum;
readonly RGB32UI: GLenum;
readonly RGB8: GLenum;
readonly RGB8I: GLenum;
readonly RGB8UI: GLenum;
readonly RGB8_SNORM: GLenum;
readonly RGB9_E5: GLenum;
readonly RGBA16F: GLenum;
readonly RGBA16I: GLenum;
readonly RGBA16UI: GLenum;
readonly RGBA32F: GLenum;
readonly RGBA32I: GLenum;
readonly RGBA32UI: GLenum;
readonly RGBA8: GLenum;
readonly RGBA8I: GLenum;
readonly RGBA8UI: GLenum;
readonly RGBA8_SNORM: GLenum;
readonly RGBA_INTEGER: GLenum;
readonly RGB_INTEGER: GLenum;
readonly RG_INTEGER: GLenum;
readonly SAMPLER_2D_ARRAY: GLenum;
readonly SAMPLER_2D_ARRAY_SHADOW: GLenum;
readonly SAMPLER_2D_SHADOW: GLenum;
readonly SAMPLER_3D: GLenum;
readonly SAMPLER_BINDING: GLenum;
readonly SAMPLER_CUBE_SHADOW: GLenum;
readonly SEPARATE_ATTRIBS: GLenum;
readonly SIGNALED: GLenum;
readonly SIGNED_NORMALIZED: GLenum;
readonly SRGB: GLenum;
readonly SRGB8: GLenum;
readonly SRGB8_ALPHA8: GLenum;
readonly STATIC_COPY: GLenum;
readonly STATIC_READ: GLenum;
readonly STENCIL: GLenum;
readonly STREAM_COPY: GLenum;
readonly STREAM_READ: GLenum;
readonly SYNC_CONDITION: GLenum;
readonly SYNC_FENCE: GLenum;
readonly SYNC_FLAGS: GLenum;
readonly SYNC_FLUSH_COMMANDS_BIT: GLenum;
readonly SYNC_GPU_COMMANDS_COMPLETE: GLenum;
readonly SYNC_STATUS: GLenum;
readonly TEXTURE_2D_ARRAY: GLenum;
readonly TEXTURE_3D: GLenum;
readonly TEXTURE_BASE_LEVEL: GLenum;
readonly TEXTURE_BINDING_2D_ARRAY: GLenum;
readonly TEXTURE_BINDING_3D: GLenum;
readonly TEXTURE_COMPARE_FUNC: GLenum;
readonly TEXTURE_COMPARE_MODE: GLenum;
readonly TEXTURE_IMMUTABLE_FORMAT: GLenum;
readonly TEXTURE_IMMUTABLE_LEVELS: GLenum;
readonly TEXTURE_MAX_LEVEL: GLenum;
readonly TEXTURE_MAX_LOD: GLenum;
readonly TEXTURE_MIN_LOD: GLenum;
readonly TEXTURE_WRAP_R: GLenum;
readonly TIMEOUT_EXPIRED: GLenum;
readonly TIMEOUT_IGNORED: GLint64;
readonly TRANSFORM_FEEDBACK: GLenum;
readonly TRANSFORM_FEEDBACK_ACTIVE: GLenum;
readonly TRANSFORM_FEEDBACK_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: GLenum;
readonly TRANSFORM_FEEDBACK_BUFFER_START: GLenum;
readonly TRANSFORM_FEEDBACK_PAUSED: GLenum;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: GLenum;
readonly TRANSFORM_FEEDBACK_VARYINGS: GLenum;
readonly UNIFORM_ARRAY_STRIDE: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: GLenum;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: GLenum;
readonly UNIFORM_BLOCK_BINDING: GLenum;
readonly UNIFORM_BLOCK_DATA_SIZE: GLenum;
readonly UNIFORM_BLOCK_INDEX: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: GLenum;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: GLenum;
readonly UNIFORM_BUFFER: GLenum;
readonly UNIFORM_BUFFER_BINDING: GLenum;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: GLenum;
readonly UNIFORM_BUFFER_SIZE: GLenum;
readonly UNIFORM_BUFFER_START: GLenum;
readonly UNIFORM_IS_ROW_MAJOR: GLenum;
readonly UNIFORM_MATRIX_STRIDE: GLenum;
readonly UNIFORM_OFFSET: GLenum;
readonly UNIFORM_SIZE: GLenum;
readonly UNIFORM_TYPE: GLenum;
readonly UNPACK_IMAGE_HEIGHT: GLenum;
readonly UNPACK_ROW_LENGTH: GLenum;
readonly UNPACK_SKIP_IMAGES: GLenum;
readonly UNPACK_SKIP_PIXELS: GLenum;
readonly UNPACK_SKIP_ROWS: GLenum;
readonly UNSIGNALED: GLenum;
readonly UNSIGNED_INT_10F_11F_11F_REV: GLenum;
readonly UNSIGNED_INT_24_8: GLenum;
readonly UNSIGNED_INT_2_10_10_10_REV: GLenum;
readonly UNSIGNED_INT_5_9_9_9_REV: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D: GLenum;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: GLenum;
readonly UNSIGNED_INT_SAMPLER_3D: GLenum;
readonly UNSIGNED_INT_SAMPLER_CUBE: GLenum;
readonly UNSIGNED_INT_VEC2: GLenum;
readonly UNSIGNED_INT_VEC3: GLenum;
readonly UNSIGNED_INT_VEC4: GLenum;
readonly UNSIGNED_NORMALIZED: GLenum;
readonly VERTEX_ARRAY_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: GLenum;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: GLenum;
readonly WAIT_FAILED: GLenum;
}
interface WebGL2RenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: BufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: GLuint, length?: GLuint): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: BufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: GLuint, length?: GLuint): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: GLuint, srcLengthOverride?: GLuint): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: GLuint): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: GLuint): void;
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: GLuint, srcLength?: GLuint): void;
}
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods. */
interface WebGLActiveInfo {
readonly name: string;
readonly size: GLint;
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/** Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors. */
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/** The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context. */
interface WebGLContextEvent extends Event {
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/** Part of the WebGL API and represents a collection of buffers that serve as a rendering destination. */
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/** The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL). */
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/** Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation. */
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/** Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element. */
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
};
interface WebGLRenderingContextBase {
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
attachShader(program: WebGLProgram, shader: WebGLShader): void;
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
blendEquation(mode: GLenum): void;
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
checkFramebufferStatus(target: GLenum): GLenum;
clear(mask: GLbitfield): void;
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
clearDepth(depth: GLclampf): void;
clearStencil(s: GLint): void;
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
compileShader(shader: WebGLShader): void;
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
createBuffer(): WebGLBuffer | null;
createFramebuffer(): WebGLFramebuffer | null;
createProgram(): WebGLProgram | null;
createRenderbuffer(): WebGLRenderbuffer | null;
createShader(type: GLenum): WebGLShader | null;
createTexture(): WebGLTexture | null;
cullFace(mode: GLenum): void;
deleteBuffer(buffer: WebGLBuffer | null): void;
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
deleteProgram(program: WebGLProgram | null): void;
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
deleteShader(shader: WebGLShader | null): void;
deleteTexture(texture: WebGLTexture | null): void;
depthFunc(func: GLenum): void;
depthMask(flag: GLboolean): void;
depthRange(zNear: GLclampf, zFar: GLclampf): void;
detachShader(program: WebGLProgram, shader: WebGLShader): void;
disable(cap: GLenum): void;
disableVertexAttribArray(index: GLuint): void;
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
enable(cap: GLenum): void;
enableVertexAttribArray(index: GLuint): void;
finish(): void;
flush(): void;
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
frontFace(mode: GLenum): void;
generateMipmap(target: GLenum): void;
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
getAttribLocation(program: WebGLProgram, name: string): GLint;
getBufferParameter(target: GLenum, pname: GLenum): any;
getContextAttributes(): WebGLContextAttributes | null;
getError(): GLenum;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(name: string): any;
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
getParameter(pname: GLenum): any;
getProgramInfoLog(program: WebGLProgram): string | null;
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
getShaderInfoLog(shader: WebGLShader): string | null;
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
getShaderSource(shader: WebGLShader): string | null;
getSupportedExtensions(): string[] | null;
getTexParameter(target: GLenum, pname: GLenum): any;
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
getVertexAttrib(index: GLuint, pname: GLenum): any;
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
hint(target: GLenum, mode: GLenum): void;
isBuffer(buffer: WebGLBuffer | null): GLboolean;
isContextLost(): boolean;
isEnabled(cap: GLenum): GLboolean;
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
isProgram(program: WebGLProgram | null): GLboolean;
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
isShader(shader: WebGLShader | null): GLboolean;
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
linkProgram(program: WebGLProgram): void;
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
polygonOffset(factor: GLfloat, units: GLfloat): void;
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
sampleCoverage(value: GLclampf, invert: GLboolean): void;
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
shaderSource(shader: WebGLShader, source: string): void;
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
stencilMask(mask: GLuint): void;
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
useProgram(program: WebGLProgram | null): void;
validateProgram(program: WebGLProgram): void;
vertexAttrib1f(index: GLuint, x: GLfloat): void;
vertexAttrib1fv(index: GLuint, values: Float32List): void;
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
vertexAttrib2fv(index: GLuint, values: Float32List): void;
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
vertexAttrib3fv(index: GLuint, values: Float32List): void;
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
vertexAttrib4fv(index: GLuint, values: Float32List): void;
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly ACTIVE_ATTRIBUTES: GLenum;
readonly ACTIVE_TEXTURE: GLenum;
readonly ACTIVE_UNIFORMS: GLenum;
readonly ALIASED_LINE_WIDTH_RANGE: GLenum;
readonly ALIASED_POINT_SIZE_RANGE: GLenum;
readonly ALPHA: GLenum;
readonly ALPHA_BITS: GLenum;
readonly ALWAYS: GLenum;
readonly ARRAY_BUFFER: GLenum;
readonly ARRAY_BUFFER_BINDING: GLenum;
readonly ATTACHED_SHADERS: GLenum;
readonly BACK: GLenum;
readonly BLEND: GLenum;
readonly BLEND_COLOR: GLenum;
readonly BLEND_DST_ALPHA: GLenum;
readonly BLEND_DST_RGB: GLenum;
readonly BLEND_EQUATION: GLenum;
readonly BLEND_EQUATION_ALPHA: GLenum;
readonly BLEND_EQUATION_RGB: GLenum;
readonly BLEND_SRC_ALPHA: GLenum;
readonly BLEND_SRC_RGB: GLenum;
readonly BLUE_BITS: GLenum;
readonly BOOL: GLenum;
readonly BOOL_VEC2: GLenum;
readonly BOOL_VEC3: GLenum;
readonly BOOL_VEC4: GLenum;
readonly BROWSER_DEFAULT_WEBGL: GLenum;
readonly BUFFER_SIZE: GLenum;
readonly BUFFER_USAGE: GLenum;
readonly BYTE: GLenum;
readonly CCW: GLenum;
readonly CLAMP_TO_EDGE: GLenum;
readonly COLOR_ATTACHMENT0: GLenum;
readonly COLOR_BUFFER_BIT: GLenum;
readonly COLOR_CLEAR_VALUE: GLenum;
readonly COLOR_WRITEMASK: GLenum;
readonly COMPILE_STATUS: GLenum;
readonly COMPRESSED_TEXTURE_FORMATS: GLenum;
readonly CONSTANT_ALPHA: GLenum;
readonly CONSTANT_COLOR: GLenum;
readonly CONTEXT_LOST_WEBGL: GLenum;
readonly CULL_FACE: GLenum;
readonly CULL_FACE_MODE: GLenum;
readonly CURRENT_PROGRAM: GLenum;
readonly CURRENT_VERTEX_ATTRIB: GLenum;
readonly CW: GLenum;
readonly DECR: GLenum;
readonly DECR_WRAP: GLenum;
readonly DELETE_STATUS: GLenum;
readonly DEPTH_ATTACHMENT: GLenum;
readonly DEPTH_BITS: GLenum;
readonly DEPTH_BUFFER_BIT: GLenum;
readonly DEPTH_CLEAR_VALUE: GLenum;
readonly DEPTH_COMPONENT: GLenum;
readonly DEPTH_COMPONENT16: GLenum;
readonly DEPTH_FUNC: GLenum;
readonly DEPTH_RANGE: GLenum;
readonly DEPTH_STENCIL: GLenum;
readonly DEPTH_STENCIL_ATTACHMENT: GLenum;
readonly DEPTH_TEST: GLenum;
readonly DEPTH_WRITEMASK: GLenum;
readonly DITHER: GLenum;
readonly DONT_CARE: GLenum;
readonly DST_ALPHA: GLenum;
readonly DST_COLOR: GLenum;
readonly DYNAMIC_DRAW: GLenum;
readonly ELEMENT_ARRAY_BUFFER: GLenum;
readonly ELEMENT_ARRAY_BUFFER_BINDING: GLenum;
readonly EQUAL: GLenum;
readonly FASTEST: GLenum;
readonly FLOAT: GLenum;
readonly FLOAT_MAT2: GLenum;
readonly FLOAT_MAT3: GLenum;
readonly FLOAT_MAT4: GLenum;
readonly FLOAT_VEC2: GLenum;
readonly FLOAT_VEC3: GLenum;
readonly FLOAT_VEC4: GLenum;
readonly FRAGMENT_SHADER: GLenum;
readonly FRAMEBUFFER: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: GLenum;
readonly FRAMEBUFFER_BINDING: GLenum;
readonly FRAMEBUFFER_COMPLETE: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLenum;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: GLenum;
readonly FRAMEBUFFER_UNSUPPORTED: GLenum;
readonly FRONT: GLenum;
readonly FRONT_AND_BACK: GLenum;
readonly FRONT_FACE: GLenum;
readonly FUNC_ADD: GLenum;
readonly FUNC_REVERSE_SUBTRACT: GLenum;
readonly FUNC_SUBTRACT: GLenum;
readonly GENERATE_MIPMAP_HINT: GLenum;
readonly GEQUAL: GLenum;
readonly GREATER: GLenum;
readonly GREEN_BITS: GLenum;
readonly HIGH_FLOAT: GLenum;
readonly HIGH_INT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: GLenum;
readonly IMPLEMENTATION_COLOR_READ_TYPE: GLenum;
readonly INCR: GLenum;
readonly INCR_WRAP: GLenum;
readonly INT: GLenum;
readonly INT_VEC2: GLenum;
readonly INT_VEC3: GLenum;
readonly INT_VEC4: GLenum;
readonly INVALID_ENUM: GLenum;
readonly INVALID_FRAMEBUFFER_OPERATION: GLenum;
readonly INVALID_OPERATION: GLenum;
readonly INVALID_VALUE: GLenum;
readonly INVERT: GLenum;
readonly KEEP: GLenum;
readonly LEQUAL: GLenum;
readonly LESS: GLenum;
readonly LINEAR: GLenum;
readonly LINEAR_MIPMAP_LINEAR: GLenum;
readonly LINEAR_MIPMAP_NEAREST: GLenum;
readonly LINES: GLenum;
readonly LINE_LOOP: GLenum;
readonly LINE_STRIP: GLenum;
readonly LINE_WIDTH: GLenum;
readonly LINK_STATUS: GLenum;
readonly LOW_FLOAT: GLenum;
readonly LOW_INT: GLenum;
readonly LUMINANCE: GLenum;
readonly LUMINANCE_ALPHA: GLenum;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: GLenum;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: GLenum;
readonly MAX_RENDERBUFFER_SIZE: GLenum;
readonly MAX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_TEXTURE_SIZE: GLenum;
readonly MAX_VARYING_VECTORS: GLenum;
readonly MAX_VERTEX_ATTRIBS: GLenum;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: GLenum;
readonly MAX_VERTEX_UNIFORM_VECTORS: GLenum;
readonly MAX_VIEWPORT_DIMS: GLenum;
readonly MEDIUM_FLOAT: GLenum;
readonly MEDIUM_INT: GLenum;
readonly MIRRORED_REPEAT: GLenum;
readonly NEAREST: GLenum;
readonly NEAREST_MIPMAP_LINEAR: GLenum;
readonly NEAREST_MIPMAP_NEAREST: GLenum;
readonly NEVER: GLenum;
readonly NICEST: GLenum;
readonly NONE: GLenum;
readonly NOTEQUAL: GLenum;
readonly NO_ERROR: GLenum;
readonly ONE: GLenum;
readonly ONE_MINUS_CONSTANT_ALPHA: GLenum;
readonly ONE_MINUS_CONSTANT_COLOR: GLenum;
readonly ONE_MINUS_DST_ALPHA: GLenum;
readonly ONE_MINUS_DST_COLOR: GLenum;
readonly ONE_MINUS_SRC_ALPHA: GLenum;
readonly ONE_MINUS_SRC_COLOR: GLenum;
readonly OUT_OF_MEMORY: GLenum;
readonly PACK_ALIGNMENT: GLenum;
readonly POINTS: GLenum;
readonly POLYGON_OFFSET_FACTOR: GLenum;
readonly POLYGON_OFFSET_FILL: GLenum;
readonly POLYGON_OFFSET_UNITS: GLenum;
readonly RED_BITS: GLenum;
readonly RENDERBUFFER: GLenum;
readonly RENDERBUFFER_ALPHA_SIZE: GLenum;
readonly RENDERBUFFER_BINDING: GLenum;
readonly RENDERBUFFER_BLUE_SIZE: GLenum;
readonly RENDERBUFFER_DEPTH_SIZE: GLenum;
readonly RENDERBUFFER_GREEN_SIZE: GLenum;
readonly RENDERBUFFER_HEIGHT: GLenum;
readonly RENDERBUFFER_INTERNAL_FORMAT: GLenum;
readonly RENDERBUFFER_RED_SIZE: GLenum;
readonly RENDERBUFFER_STENCIL_SIZE: GLenum;
readonly RENDERBUFFER_WIDTH: GLenum;
readonly RENDERER: GLenum;
readonly REPEAT: GLenum;
readonly REPLACE: GLenum;
readonly RGB: GLenum;
readonly RGB565: GLenum;
readonly RGB5_A1: GLenum;
readonly RGBA: GLenum;
readonly RGBA4: GLenum;
readonly SAMPLER_2D: GLenum;
readonly SAMPLER_CUBE: GLenum;
readonly SAMPLES: GLenum;
readonly SAMPLE_ALPHA_TO_COVERAGE: GLenum;
readonly SAMPLE_BUFFERS: GLenum;
readonly SAMPLE_COVERAGE: GLenum;
readonly SAMPLE_COVERAGE_INVERT: GLenum;
readonly SAMPLE_COVERAGE_VALUE: GLenum;
readonly SCISSOR_BOX: GLenum;
readonly SCISSOR_TEST: GLenum;
readonly SHADER_TYPE: GLenum;
readonly SHADING_LANGUAGE_VERSION: GLenum;
readonly SHORT: GLenum;
readonly SRC_ALPHA: GLenum;
readonly SRC_ALPHA_SATURATE: GLenum;
readonly SRC_COLOR: GLenum;
readonly STATIC_DRAW: GLenum;
readonly STENCIL_ATTACHMENT: GLenum;
readonly STENCIL_BACK_FAIL: GLenum;
readonly STENCIL_BACK_FUNC: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_BACK_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_BACK_REF: GLenum;
readonly STENCIL_BACK_VALUE_MASK: GLenum;
readonly STENCIL_BACK_WRITEMASK: GLenum;
readonly STENCIL_BITS: GLenum;
readonly STENCIL_BUFFER_BIT: GLenum;
readonly STENCIL_CLEAR_VALUE: GLenum;
readonly STENCIL_FAIL: GLenum;
readonly STENCIL_FUNC: GLenum;
readonly STENCIL_INDEX8: GLenum;
readonly STENCIL_PASS_DEPTH_FAIL: GLenum;
readonly STENCIL_PASS_DEPTH_PASS: GLenum;
readonly STENCIL_REF: GLenum;
readonly STENCIL_TEST: GLenum;
readonly STENCIL_VALUE_MASK: GLenum;
readonly STENCIL_WRITEMASK: GLenum;
readonly STREAM_DRAW: GLenum;
readonly SUBPIXEL_BITS: GLenum;
readonly TEXTURE: GLenum;
readonly TEXTURE0: GLenum;
readonly TEXTURE1: GLenum;
readonly TEXTURE10: GLenum;
readonly TEXTURE11: GLenum;
readonly TEXTURE12: GLenum;
readonly TEXTURE13: GLenum;
readonly TEXTURE14: GLenum;
readonly TEXTURE15: GLenum;
readonly TEXTURE16: GLenum;
readonly TEXTURE17: GLenum;
readonly TEXTURE18: GLenum;
readonly TEXTURE19: GLenum;
readonly TEXTURE2: GLenum;
readonly TEXTURE20: GLenum;
readonly TEXTURE21: GLenum;
readonly TEXTURE22: GLenum;
readonly TEXTURE23: GLenum;
readonly TEXTURE24: GLenum;
readonly TEXTURE25: GLenum;
readonly TEXTURE26: GLenum;
readonly TEXTURE27: GLenum;
readonly TEXTURE28: GLenum;
readonly TEXTURE29: GLenum;
readonly TEXTURE3: GLenum;
readonly TEXTURE30: GLenum;
readonly TEXTURE31: GLenum;
readonly TEXTURE4: GLenum;
readonly TEXTURE5: GLenum;
readonly TEXTURE6: GLenum;
readonly TEXTURE7: GLenum;
readonly TEXTURE8: GLenum;
readonly TEXTURE9: GLenum;
readonly TEXTURE_2D: GLenum;
readonly TEXTURE_BINDING_2D: GLenum;
readonly TEXTURE_BINDING_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: GLenum;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: GLenum;
readonly TEXTURE_MAG_FILTER: GLenum;
readonly TEXTURE_MIN_FILTER: GLenum;
readonly TEXTURE_WRAP_S: GLenum;
readonly TEXTURE_WRAP_T: GLenum;
readonly TRIANGLES: GLenum;
readonly TRIANGLE_FAN: GLenum;
readonly TRIANGLE_STRIP: GLenum;
readonly UNPACK_ALIGNMENT: GLenum;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: GLenum;
readonly UNPACK_FLIP_Y_WEBGL: GLenum;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: GLenum;
readonly UNSIGNED_BYTE: GLenum;
readonly UNSIGNED_INT: GLenum;
readonly UNSIGNED_SHORT: GLenum;
readonly UNSIGNED_SHORT_4_4_4_4: GLenum;
readonly UNSIGNED_SHORT_5_5_5_1: GLenum;
readonly UNSIGNED_SHORT_5_6_5: GLenum;
readonly VALIDATE_STATUS: GLenum;
readonly VENDOR: GLenum;
readonly VERSION: GLenum;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: GLenum;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: GLenum;
readonly VERTEX_ATTRIB_ARRAY_POINTER: GLenum;
readonly VERTEX_ATTRIB_ARRAY_SIZE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: GLenum;
readonly VERTEX_ATTRIB_ARRAY_TYPE: GLenum;
readonly VERTEX_SHADER: GLenum;
readonly VIEWPORT: GLenum;
readonly ZERO: GLenum;
}
interface WebGLRenderingContextOverloads {
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: BufferSource | null, usage: GLenum): void;
bufferSubData(target: GLenum, offset: GLintptr, data: BufferSource): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/** The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders. */
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/** Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method. */
interface WebGLShaderPrecisionFormat {
readonly precision: GLint;
readonly rangeMax: GLint;
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/** Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations. */
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/** Part of the WebGL API and represents the location of a uniform variable in a shader program. */
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection. */
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*/
readonly bufferedAmount: number;
/** Returns the extensions selected by the server, if any. */
readonly extensions: string;
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
onerror: ((this: WebSocket, ev: Event) => any) | null;
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
onopen: ((this: WebSocket, ev: Event) => any) | null;
/** Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation. */
readonly protocol: string;
/** Returns the state of the WebSocket object's connection. It can have the values described below. */
readonly readyState: number;
/** Returns the URL that was used to establish the WebSocket connection. */
readonly url: string;
/** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */
close(code?: number, reason?: string): void;
/** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CLOSED: number;
readonly CLOSING: number;
readonly CONNECTING: number;
readonly OPEN: number;
};
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
interface WindowClient extends Client {
readonly focused: boolean;
readonly visibilityState: VisibilityState;
focus(): Promise<WindowClient>;
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
/** Available only in secure contexts. */
readonly caches: CacheStorage;
readonly crossOriginIsolated: boolean;
readonly crypto: Crypto;
readonly indexedDB: IDBFactory;
readonly isSecureContext: boolean;
readonly origin: string;
readonly performance: Performance;
atob(data: string): string;
btoa(data: string): string;
clearInterval(handle?: number): void;
clearTimeout(handle?: number): void;
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
queueMicrotask(callback: VoidFunction): void;
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread. */
interface Worker extends EventTarget, AbstractWorker {
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/** Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Aborts worker's associated global environment. */
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"languagechange": Event;
"offline": Event;
"online": Event;
"rejectionhandled": PromiseRejectionEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/** This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop. */
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/** Returns workerGlobal's WorkerLocation object. */
readonly location: WorkerLocation;
/** Returns workerGlobal's WorkerNavigator object. */
readonly navigator: WorkerNavigator;
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** Returns workerGlobal. */
readonly self: WorkerGlobalScope & typeof globalThis;
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
importScripts(...urls: (string | URL)[]): void;
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WorkerGlobalScope: {
prototype: WorkerGlobalScope;
new(): WorkerGlobalScope;
};
/** The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location. */
interface WorkerLocation {
readonly hash: string;
readonly host: string;
readonly hostname: string;
readonly href: string;
toString(): string;
readonly origin: string;
readonly pathname: string;
readonly port: string;
readonly protocol: string;
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorNetworkInformation, NavigatorOnLine, NavigatorStorage {
readonly mediaCapabilities: MediaCapabilities;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/** This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing. */
interface WritableStream<W = any> {
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/** This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
interface WritableStreamDefaultController {
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/** This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<undefined>;
readonly desiredSize: number | null;
readonly ready: Promise<undefined>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/** Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing. */
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/** Returns client's state. */
readonly readyState: number;
/** Returns the response body. */
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
responseType: XMLHttpRequestResponseType;
readonly responseURL: string;
readonly status: number;
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*/
timeout: number;
/** Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server. */
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*/
withCredentials: boolean;
/** Cancels any network activity. */
abort(): void;
getAllResponseHeaders(): string;
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*/
setRequestHeader(name: string, value: string): void;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly DONE: number;
readonly HEADERS_RECEIVED: number;
readonly LOADING: number;
readonly OPENED: number;
readonly UNSENT: number;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
interface Console {
assert(condition?: boolean, ...data: any[]): void;
clear(): void;
count(label?: string): void;
countReset(label?: string): void;
debug(...data: any[]): void;
dir(item?: any, options?: any): void;
dirxml(...data: any[]): void;
error(...data: any[]): void;
group(...data: any[]): void;
groupCollapsed(...data: any[]): void;
groupEnd(): void;
info(...data: any[]): void;
log(...data: any[]): void;
table(tabularData?: any, properties?: string[]): void;
time(label?: string): void;
timeEnd(label?: string): void;
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
trace(...data: any[]): void;
warn(...data: any[]): void;
}
declare var console: Console;
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
interface Global {
value: any;
valueOf(): any;
}
var Global: {
prototype: Global;
new(descriptor: GlobalDescriptor, v?: any): Global;
};
interface Instance {
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
interface Memory {
readonly buffer: ArrayBuffer;
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
exports(moduleObject: Module): ModuleExportDescriptor[];
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
interface Table {
readonly length: number;
get(index: number): any;
grow(delta: number, value?: any): number;
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor {
mutable?: boolean;
value: ValueType;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
function compile(bytes: BufferSource): Promise<Module>;
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function validate(bytes: BufferSource): boolean;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VoidFunction {
(): void;
}
/** Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging. */
declare var name: string;
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** Aborts dedicatedWorkerGlobal. */
declare function close(): void;
/** Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned. */
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
declare function dispatchEvent(event: Event): boolean;
/** Returns workerGlobal's WorkerLocation object. */
declare var location: WorkerLocation;
/** Returns workerGlobal's WorkerNavigator object. */
declare var navigator: WorkerNavigator;
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/** Returns workerGlobal. */
declare var self: WorkerGlobalScope & typeof globalThis;
/** Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss). */
declare function importScripts(...urls: (string | URL)[]): void;
/** Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise. */
declare function dispatchEvent(event: Event): boolean;
declare var fonts: FontFaceSet;
/** Available only in secure contexts. */
declare var caches: CacheStorage;
declare var crossOriginIsolated: boolean;
declare var crypto: Crypto;
declare var indexedDB: IDBFactory;
declare var isSecureContext: boolean;
declare var origin: string;
declare var performance: Performance;
declare function atob(data: string): string;
declare function btoa(data: string): string;
declare function clearInterval(handle?: number): void;
declare function clearTimeout(handle?: number): void;
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
declare function queueMicrotask(callback: VoidFunction): void;
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
declare function cancelAnimationFrame(handle: number): void;
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
type DOMHighResTimeStamp = number;
type DOMTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = string[][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T>;
type ReadableStreamDefaultReadResult<T> = ReadableStreamDefaultReadValueResult<T> | ReadableStreamDefaultReadDoneResult;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T>;
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
type TimerHandler = string | Function;
type Transferable = ArrayBuffer | MessagePort | ImageBitmap;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type BinaryType = "arraybuffer" | "blob";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type ConnectionType = "bluetooth" | "cellular" | "ethernet" | "mixed" | "none" | "other" | "unknown" | "wifi";
type EndingType = "native" | "transparent";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "none";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type PushPermissionState = "denied" | "granted" | "prompt";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VisibilityState = "hidden" | "visible";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WorkerType = "classic" | "module";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`,Ri["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// WorkerGlobalScope APIs
/////////////////////////////
// These are only available in a Web Worker
declare function importScripts(...urls: string[]): void;
`,Ri["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
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.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/** @deprecated */
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface SubtleCrypto {
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WebGL2RenderingContextBase {
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: GLuint): void;
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: GLuint): void;
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: GLuint): void;
drawBuffers(buffers: Iterable<GLenum>): void;
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: GLuint, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;function vc(e){return typeof e=="string"?/^file:\/\/\//.test(e)?!!Ri[e.substr(8)]:!1:e.path.indexOf("/lib.")===0?!!Ri[e.path.slice(1)]:!1}var Hg=class{constructor(e,n){Bv(this,"_ctx");Bv(this,"_extraLibs",Object.create(null));Bv(this,"_languageService",SL(this));Bv(this,"_compilerOptions");Bv(this,"_inlayHintsOptions");this._ctx=e,this._compilerOptions=n.compilerOptions,this._extraLibs=n.extraLibs,this._inlayHintsOptions=n.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(c=>c.uri).filter(c=>!vc(c)).map(c=>c.toString(!0)).concat(Object.keys(this._extraLibs))}_getModel(e){let n=this._ctx.getMirrorModels();for(let c=0;c<n.length;c++){const u=n[c].uri;if(u.toString()===e||u.toString(!0)===e)return n[c]}return null}getScriptVersion(e){let n=this._getModel(e);return n?n.version.toString():this.isDefaultLibFileName(e)?"1":e in this._extraLibs?String(this._extraLibs[e].version):""}getScriptText(e){return Bl(this,null,function*(){return this._getScriptText(e)})}_getScriptText(e){let n,c=this._getModel(e);const u="lib."+e+".d.ts";if(c)n=c.getValue();else if(e in Ri)n=Ri[e];else if(u in Ri)n=Ri[u];else if(e in this._extraLibs)n=this._extraLibs[e].content;else return;return n}getScriptSnapshot(e){const n=this._getScriptText(e);if(n!==void 0)return{getText:(c,u)=>n.substring(c,u),getLength:()=>n.length,getChangeRange:()=>{}}}getScriptKind(e){switch(e.substr(e.lastIndexOf(".")+1)){case"ts":return qm.TS;case"tsx":return qm.TSX;case"js":return qm.JS;case"jsx":return qm.JSX;default:return this.getCompilationSettings().allowJs?qm.JS:qm.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(e){switch(e.target){case 99:const n="lib.esnext.full.d.ts";if(n in Ri||n in this._extraLibs)return n;case 7:case 6:case 5:case 4:case 3:case 2:default:const c=`lib.es${2013+(e.target||99)}.full.d.ts`;return c in Ri||c in this._extraLibs?c:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(e){return e===this.getDefaultLibFileName(this._compilerOptions)}readFile(e){return this._getScriptText(e)}fileExists(e){return this._getScriptText(e)!==void 0}getLibFiles(){return Bl(this,null,function*(){return Ri})}static clearFiles(e){const n=[];for(const c of e){const u=ES({},c);if(u.file=u.file?{fileName:u.file.fileName}:void 0,c.relatedInformation){u.relatedInformation=[];for(const g of c.relatedInformation){const p=ES({},g);p.file=p.file?{fileName:p.file.fileName}:void 0,u.relatedInformation.push(p)}}n.push(u)}return n}getSyntacticDiagnostics(e){return Bl(this,null,function*(){if(vc(e))return[];const n=this._languageService.getSyntacticDiagnostics(e);return Hg.clearFiles(n)})}getSemanticDiagnostics(e){return Bl(this,null,function*(){if(vc(e))return[];const n=this._languageService.getSemanticDiagnostics(e);return Hg.clearFiles(n)})}getSuggestionDiagnostics(e){return Bl(this,null,function*(){if(vc(e))return[];const n=this._languageService.getSuggestionDiagnostics(e);return Hg.clearFiles(n)})}getCompilerOptionsDiagnostics(e){return Bl(this,null,function*(){if(vc(e))return[];const n=this._languageService.getCompilerOptionsDiagnostics();return Hg.clearFiles(n)})}getCompletionsAtPosition(e,n){return Bl(this,null,function*(){if(!vc(e))return this._languageService.getCompletionsAtPosition(e,n,void 0)})}getCompletionEntryDetails(e,n,c){return Bl(this,null,function*(){return this._languageService.getCompletionEntryDetails(e,n,c,void 0,void 0,void 0,void 0)})}getSignatureHelpItems(e,n,c){return Bl(this,null,function*(){if(!vc(e))return this._languageService.getSignatureHelpItems(e,n,c)})}getQuickInfoAtPosition(e,n){return Bl(this,null,function*(){if(!vc(e))return this._languageService.getQuickInfoAtPosition(e,n)})}getOccurrencesAtPosition(e,n){return Bl(this,null,function*(){if(!vc(e))return this._languageService.getOccurrencesAtPosition(e,n)})}getDefinitionAtPosition(e,n){return Bl(this,null,function*(){if(!vc(e))return this._languageService.getDefinitionAtPosition(e,n)})}getReferencesAtPosition(e,n){return Bl(this,null,function*(){if(!vc(e))return this._languageService.getReferencesAtPosition(e,n)})}getNavigationBarItems(e){return Bl(this,null,function*(){return vc(e)?[]:this._languageService.getNavigationBarItems(e)})}getFormattingEditsForDocument(e,n){return Bl(this,null,function*(){return vc(e)?[]:this._languageService.getFormattingEditsForDocument(e,n)})}getFormattingEditsForRange(e,n,c,u){return Bl(this,null,function*(){return vc(e)?[]:this._languageService.getFormattingEditsForRange(e,n,c,u)})}getFormattingEditsAfterKeystroke(e,n,c,u){return Bl(this,null,function*(){return vc(e)?[]:this._languageService.getFormattingEditsAfterKeystroke(e,n,c,u)})}findRenameLocations(e,n,c,u,g){return Bl(this,null,function*(){if(!vc(e))return this._languageService.findRenameLocations(e,n,c,u,g)})}getRenameInfo(e,n,c){return Bl(this,null,function*(){return vc(e)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(e,n,c)})}getEmitOutput(e){return Bl(this,null,function*(){return vc(e)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(e)})}getCodeFixesAtPosition(e,n,c,u,g){return Bl(this,null,function*(){if(vc(e))return[];const p={};try{return this._languageService.getCodeFixesAtPosition(e,n,c,u,g,p)}catch(I){return[]}})}updateExtraLibs(e){return Bl(this,null,function*(){this._extraLibs=e})}provideInlayHints(e,n,c){return Bl(this,null,function*(){var p;if(vc(e))return[];const u=(p=this._inlayHintsOptions)!=null?p:{},g={start:n,length:c-n};try{return this._languageService.provideInlayHints(e,g,u)}catch(I){return[]}})}};function _R(e,n){let c=Hg;if(n.customWorkerPath)if(typeof importScripts=="undefined")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{importScripts(n.customWorkerPath);const u=self.customTSWorkerFactory;if(!u)throw new Error(`The script at ${n.customWorkerPath} does not add customTSWorkerFactory to self`);c=u(Hg,bL,Ri)}return new c(e,n)}globalThis.ts=DL,self.onmessage=()=>{yL((e,n)=>_R(e,n))};}},kc={};function Ul(gc){var Uv=kc[gc];if(Uv!==void 0)return Uv.exports;var n_=kc[gc]={id:gc,loaded:!1,exports:{}};return id[gc](n_,n_.exports,Ul),n_.loaded=!0,n_.exports}(function(){Ul.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(gc){if(typeof window=="object")return window}}()})(),function(){Ul.hmd=function(gc){return gc=Object.create(gc),gc.children||(gc.children=[]),Object.defineProperty(gc,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+gc.id)}}),gc}}();var TS=Ul("./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js")})();