(function(){"use strict";class UC{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(a){setTimeout(()=>{throw a.stack?new Error(a.message+` `+a.stack):a},0)}}emit(a){this.listeners.forEach(p=>{p(a)})}onUnexpectedError(a){this.unexpectedErrorHandler(a),this.emit(a)}onUnexpectedExternalError(a){this.unexpectedErrorHandler(a)}}const VC=new UC;function WC(e){jC(e)||VC.onUnexpectedError(e)}function LT(e){if(e instanceof Error){let{name:a,message:p}=e;const g=e.stacktrace||e.stack;return{$isError:!0,name:a,message:p,stack:g}}return e}const AT="Canceled";function jC(e){return e instanceof Error&&e.name===AT&&e.message===AT}var zy;(function(e){function a(L){return L&&typeof L=="object"&&typeof L[Symbol.iterator]=="function"}e.is=a;const p=Object.freeze([]);function g(){return p}e.empty=g;function*t(L){yield L}e.single=t;function m(L){return L||p}e.from=m;function N(L){return!L||L[Symbol.iterator]().next().done===!0}e.isEmpty=N;function D(L){return L[Symbol.iterator]().next().value}e.first=D;function c(L,k){for(const h of L)if(k(h))return!0;return!1}e.some=c;function x(L,k){for(const h of L)if(k(h))return h}e.find=x;function*se(L,k){for(const h of L)k(h)&&(yield h)}e.filter=se;function*z(L,k){let h=0;for(const M of L)yield k(M,h++)}e.map=z;function*ue(...L){for(const k of L)for(const h of k)yield h}e.concat=ue;function*E(L){for(const k of L)for(const h of k)yield h}e.concatNested=E;function C(L,k,h){let M=h;for(const O of L)M=k(M,O);return M}e.reduce=C;function*I(L,k,h=L.length){for(k<0&&(k+=L.length),h<0?h+=L.length:h>L.length&&(h=L.length);kM===O){const M=L[Symbol.iterator](),O=k[Symbol.iterator]();for(;;){const H=M.next(),$=O.next();if(H.done!==$.done)return!1;if(H.done)return!0;if(!h(H.value,$.value))return!1}}e.equals=Y})(zy||(zy={}));function HC(e){}function HG(e){return e}class JC extends Error{constructor(a){super(`Encountered errors while disposing of store. Errors: [${a.join(", ")}]`),this.errors=a}}function DT(e){if(zy.is(e)){let a=[];for(const p of e)if(p)try{p.dispose()}catch(g){a.push(g)}if(a.length===1)throw a[0];if(a.length>1)throw new JC(a);return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function KC(...e){return e.forEach(HC),zC(()=>DT(e))}function zC(e){return{dispose:()=>{e()}}}class Og{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}clear(){try{DT(this._toDispose.values())}finally{this._toDispose.clear()}}add(a){if(!a)return a;if(a===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Og.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(a),a}}Og.DISABLE_DISPOSED_WARNING=!1;class CT{constructor(){this._store=new Og}dispose(){this._store.dispose()}_register(a){if(a===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(a)}}CT.None=Object.freeze({dispose(){}});var qy;const $v="en";let Xy=!1,Yy=!1,Qy=!1,eh,Zy=$v,qC,Wm;const eu=typeof self=="object"?self:typeof global=="object"?global:{};let vl;typeof eu.vscode<"u"&&typeof eu.vscode.process<"u"?vl=eu.vscode.process:typeof process<"u"&&(vl=process);const xT=typeof((qy=vl==null?void 0:vl.versions)===null||qy===void 0?void 0:qy.electron)=="string"&&vl.type==="renderer",XC=xT&&(vl==null?void 0:vl.sandboxed);if((()=>{if(XC)return"bypassHeatCheck";const e=vl==null?void 0:vl.env.VSCODE_BROWSER_CODE_LOADING;if(typeof e=="string")return e==="none"||e==="code"||e==="bypassHeatCheck"||e==="bypassHeatCheckAndEagerCompile"?e:"bypassHeatCheck"})(),typeof navigator=="object"&&!xT)Wm=navigator.userAgent,Xy=Wm.indexOf("Windows")>=0,Yy=Wm.indexOf("Macintosh")>=0,(Wm.indexOf("Macintosh")>=0||Wm.indexOf("iPad")>=0||Wm.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Qy=Wm.indexOf("Linux")>=0,eh=navigator.language,Zy=eh;else if(typeof vl=="object"){Xy=vl.platform==="win32",Yy=vl.platform==="darwin",Qy=vl.platform==="linux",Qy&&vl.env.SNAP&&vl.env.SNAP_REVISION,eh=$v,Zy=$v;const e=vl.env.VSCODE_NLS_CONFIG;if(e)try{const a=JSON.parse(e),p=a.availableLanguages["*"];eh=a.locale,Zy=p||$v,qC=a._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const kg=Xy,YC=Yy,IT=function(){if(eu.setImmediate)return eu.setImmediate.bind(eu);if(typeof eu.postMessage=="function"&&!eu.importScripts){let p=[];eu.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let m=0,N=p.length;m{const m=++g;p.push({id:m,callback:t}),eu.postMessage({vscodeSetImmediateId:m},"*")}}if(typeof(vl==null?void 0:vl.nextTick)=="function")return vl.nextTick.bind(vl);const a=Promise.resolve();return p=>a.then(p)}();function QC(e){let a=[],p=Object.getPrototypeOf(e);for(;Object.prototype!==p;)a=a.concat(Object.getOwnPropertyNames(p)),p=Object.getPrototypeOf(p);return a}function $y(e){const a=[];for(const p of QC(e))typeof e[p]=="function"&&a.push(p);return a}function RT(e,a){const p=t=>function(){const m=Array.prototype.slice.call(arguments,0);return a(t,m)};let g={};for(const t of e)g[t]=p(t);return g}const ZC="$initialize";class $C{constructor(a){this._workerId=-1,this._handler=a,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(a){this._workerId=a}sendMessage(a,p){let g=String(++this._lastSentReq);return new Promise((t,m)=>{this._pendingReplies[g]={resolve:t,reject:m},this._send({vsWorker:this._workerId,req:g,method:a,args:p})})}handleMessage(a){!a||!a.vsWorker||this._workerId!==-1&&a.vsWorker!==this._workerId||this._handleMessage(a)}_handleMessage(a){if(a.seq){let m=a;if(!this._pendingReplies[m.seq]){console.warn("Got reply to unknown seq");return}let N=this._pendingReplies[m.seq];if(delete this._pendingReplies[m.seq],m.err){let D=m.err;m.err.$isError&&(D=new Error,D.name=m.err.name,D.message=m.err.message,D.stack=m.err.stack),N.reject(D);return}N.resolve(m.res);return}let p=a,g=p.req;this._handler.handleMessage(p.method,p.args).then(m=>{this._send({vsWorker:this._workerId,seq:g,res:m,err:void 0})},m=>{m.detail instanceof Error&&(m.detail=LT(m.detail)),this._send({vsWorker:this._workerId,seq:g,res:void 0,err:LT(m)})})}_send(a){let p=[];if(a.req){const g=a;for(let t=0;t{a(g,t)},handleMessage:(g,t)=>this._handleMessage(g,t)})}onmessage(a){this._protocol.handleMessage(a)}_handleMessage(a,p){if(a===ZC)return this.initialize(p[0],p[1],p[2],p[3]);if(!this._requestHandler||typeof this._requestHandler[a]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+a));try{return Promise.resolve(this._requestHandler[a].apply(this._requestHandler,p))}catch(g){return Promise.reject(g)}}initialize(a,p,g,t){this._protocol.setWorkerId(a);const N=RT(t,(D,c)=>this._protocol.sendMessage(D,c));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(N),Promise.resolve($y(this._requestHandler))):(p&&(typeof p.baseUrl<"u"&&delete p.baseUrl,typeof p.paths<"u"&&typeof p.paths.vs<"u"&&delete p.paths.vs,typeof p.trustedTypesPolicy!==void 0&&delete p.trustedTypesPolicy,p.catchError=!0,self.require.config(p)),new Promise((D,c)=>{self.require([g],x=>{if(this._requestHandler=x.create(N),!this._requestHandler){c(new Error("No RequestHandler!"));return}D($y(this._requestHandler))},c)}))}}class fm{constructor(a,p,g,t){this.originalStart=a,this.originalLength=p,this.modifiedStart=g,this.modifiedLength=t}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function nx(e){return e.split(/\r\n|\r|\n/)}function rx(e){for(let a=0,p=e.length;a=0;p--){const g=e.charCodeAt(p);if(g!==32&&g!==9)return p}return-1}function NT(e,a){return(a<<5)-a+e|0}function ax(e,a){a=NT(149417,a);for(let p=0,g=e.length;p0||this.m_modifiedCount>0)&&this.m_changes.push(new fm(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(a,p){this.m_originalStart=Math.min(this.m_originalStart,a),this.m_modifiedStart=Math.min(this.m_modifiedStart,p),this.m_originalCount++}AddModifiedElement(a,p){this.m_originalStart=Math.min(this.m_originalStart,a),this.m_modifiedStart=Math.min(this.m_modifiedStart,p),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 dm{constructor(a,p,g=null){this.ContinueProcessingPredicate=g,this._originalSequence=a,this._modifiedSequence=p;const[t,m,N]=dm._getElements(a),[D,c,x]=dm._getElements(p);this._hasStrings=N&&x,this._originalStringElements=t,this._originalElementsOrHash=m,this._modifiedStringElements=D,this._modifiedElementsOrHash=c,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(a){return a.length>0&&typeof a[0]=="string"}static _getElements(a){const p=a.getElements();if(dm._isStringArray(p)){const g=new Int32Array(p.length);for(let t=0,m=p.length;t=a&&t>=g&&this.ElementsAreEqual(p,t);)p--,t--;if(a>p||g>t){let z;return g<=t?(O_.Assert(a===p+1,"originalStart should only be one more than originalEnd"),z=[new fm(a,0,g,t-g+1)]):a<=p?(O_.Assert(g===t+1,"modifiedStart should only be one more than modifiedEnd"),z=[new fm(a,p-a+1,g,0)]):(O_.Assert(a===p+1,"originalStart should only be one more than originalEnd"),O_.Assert(g===t+1,"modifiedStart should only be one more than modifiedEnd"),z=[]),z}const N=[0],D=[0],c=this.ComputeRecursionPoint(a,p,g,t,N,D,m),x=N[0],se=D[0];if(c!==null)return c;if(!m[0]){const z=this.ComputeDiffRecursive(a,x,g,se,m);let ue=[];return m[0]?ue=[new fm(x+1,p-(x+1)+1,se+1,t-(se+1)+1)]:ue=this.ComputeDiffRecursive(x+1,p,se+1,t,m),this.ConcatenateChanges(z,ue)}return[new fm(a,p-a+1,g,t-g+1)]}WALKTRACE(a,p,g,t,m,N,D,c,x,se,z,ue,E,C,I,j,Y,L){let k=null,h=null,M=new kT,O=p,H=g,$=E[0]-j[0]-t,Z=-1073741824,B=this.m_forwardHistory.length-1;do{const U=$+a;U===O||U=0&&(x=this.m_forwardHistory[B],a=x[0],O=1,H=x.length-1)}while(--B>=-1);if(k=M.getReverseChanges(),L[0]){let U=E[0]+1,K=j[0]+1;if(k!==null&&k.length>0){const T=k[k.length-1];U=Math.max(U,T.getOriginalEnd()),K=Math.max(K,T.getModifiedEnd())}h=[new fm(U,ue-U+1,K,I-K+1)]}else{M=new kT,O=N,H=D,$=E[0]-j[0]-c,Z=1073741824,B=Y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const U=$+m;U===O||U=se[U+1]?(z=se[U+1]-1,C=z-$-c,z>Z&&M.MarkNextChange(),Z=z+1,M.AddOriginalElement(z+1,C+1),$=U+1-m):(z=se[U-1],C=z-$-c,z>Z&&M.MarkNextChange(),Z=z,M.AddModifiedElement(z+1,C+1),$=U-1-m),B>=0&&(se=this.m_reverseHistory[B],m=se[0],O=1,H=se.length-1)}while(--B>=-1);h=M.getChanges()}return this.ConcatenateChanges(k,h)}ComputeRecursionPoint(a,p,g,t,m,N,D){let c=0,x=0,se=0,z=0,ue=0,E=0;a--,g--,m[0]=0,N[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const C=p-a+(t-g),I=C+1,j=new Int32Array(I),Y=new Int32Array(I),L=t-g,k=p-a,h=a-g,M=p-t,H=(k-L)%2===0;j[L]=a,Y[k]=p,D[0]=!1;for(let $=1;$<=C/2+1;$++){let Z=0,B=0;se=this.ClipDiagonalBound(L-$,$,L,I),z=this.ClipDiagonalBound(L+$,$,L,I);for(let K=se;K<=z;K+=2){K===se||KZ+B&&(Z=c,B=x),!H&&Math.abs(K-k)<=$-1&&c>=Y[K])return m[0]=c,N[0]=x,T<=Y[K]&&$<=1448?this.WALKTRACE(L,se,z,h,k,ue,E,M,j,Y,c,p,m,x,t,N,H,D):null}const U=(Z-a+(B-g)-$)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Z,U))return D[0]=!0,m[0]=Z,N[0]=B,U>0&&$<=1448?this.WALKTRACE(L,se,z,h,k,ue,E,M,j,Y,c,p,m,x,t,N,H,D):(a++,g++,[new fm(a,p-a+1,g,t-g+1)]);ue=this.ClipDiagonalBound(k-$,$,k,I),E=this.ClipDiagonalBound(k+$,$,k,I);for(let K=ue;K<=E;K+=2){K===ue||K=Y[K+1]?c=Y[K+1]-1:c=Y[K-1],x=c-(K-k)-M;const T=c;for(;c>a&&x>g&&this.ElementsAreEqual(c,x);)c--,x--;if(Y[K]=c,H&&Math.abs(K-L)<=$&&c<=j[K])return m[0]=c,N[0]=x,T>=j[K]&&$<=1448?this.WALKTRACE(L,se,z,h,k,ue,E,M,j,Y,c,p,m,x,t,N,H,D):null}if($<=1447){let K=new Int32Array(z-se+2);K[0]=L-se+1,k_.Copy2(j,se,K,1,z-se+1),this.m_forwardHistory.push(K),K=new Int32Array(E-ue+2),K[0]=k-ue+1,k_.Copy2(Y,ue,K,1,E-ue+1),this.m_reverseHistory.push(K)}}return this.WALKTRACE(L,se,z,h,k,ue,E,M,j,Y,c,p,m,x,t,N,H,D)}PrettifyChanges(a){for(let p=0;p0,D=g.modifiedLength>0;for(;g.originalStart+g.originalLength=0;p--){const g=a[p];let t=0,m=0;if(p>0){const z=a[p-1];t=z.originalStart+z.originalLength,m=z.modifiedStart+z.modifiedLength}const N=g.originalLength>0,D=g.modifiedLength>0;let c=0,x=this._boundaryScore(g.originalStart,g.originalLength,g.modifiedStart,g.modifiedLength);for(let z=1;;z++){const ue=g.originalStart-z,E=g.modifiedStart-z;if(uex&&(x=I,c=z)}g.originalStart-=c,g.modifiedStart-=c;const se=[null];if(p>0&&this.ChangesOverlap(a[p-1],a[p],se)){a[p-1]=se[0],a.splice(p,1),p++;continue}}if(this._hasStrings)for(let p=1,g=a.length;p0&&E>c&&(c=E,x=z,se=ue)}return c>0?[x,se]:null}_contiguousSequenceScore(a,p,g){let t=0;for(let m=0;m=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[a])}_OriginalRegionIsBoundary(a,p){if(this._OriginalIsBoundary(a)||this._OriginalIsBoundary(a-1))return!0;if(p>0){const g=a+p;if(this._OriginalIsBoundary(g-1)||this._OriginalIsBoundary(g))return!0}return!1}_ModifiedIsBoundary(a){return a<=0||a>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[a])}_ModifiedRegionIsBoundary(a,p){if(this._ModifiedIsBoundary(a)||this._ModifiedIsBoundary(a-1))return!0;if(p>0){const g=a+p;if(this._ModifiedIsBoundary(g-1)||this._ModifiedIsBoundary(g))return!0}return!1}_boundaryScore(a,p,g,t){const m=this._OriginalRegionIsBoundary(a,p)?1:0,N=this._ModifiedRegionIsBoundary(g,t)?1:0;return m+N}ConcatenateChanges(a,p){let g=[];if(a.length===0||p.length===0)return p.length>0?p:a;if(this.ChangesOverlap(a[a.length-1],p[0],g)){const t=new Array(a.length+p.length-1);return k_.Copy(a,0,t,0,a.length-1),t[a.length-1]=g[0],k_.Copy(p,1,t,a.length,p.length-1),t}else{const t=new Array(a.length+p.length);return k_.Copy(a,0,t,0,a.length),k_.Copy(p,0,t,a.length,p.length),t}}ChangesOverlap(a,p,g){if(O_.Assert(a.originalStart<=p.originalStart,"Left change is not less than or equal to right change"),O_.Assert(a.modifiedStart<=p.modifiedStart,"Left change is not less than or equal to right change"),a.originalStart+a.originalLength>=p.originalStart||a.modifiedStart+a.modifiedLength>=p.modifiedStart){const t=a.originalStart;let m=a.originalLength;const N=a.modifiedStart;let D=a.modifiedLength;return a.originalStart+a.originalLength>=p.originalStart&&(m=p.originalStart+p.originalLength-a.originalStart),a.modifiedStart+a.modifiedLength>=p.modifiedStart&&(D=p.modifiedStart+p.modifiedLength-a.modifiedStart),g[0]=new fm(t,m,N,D),!0}else return g[0]=null,!1}ClipDiagonalBound(a,p,g,t){if(a>=0&&a=sx&&e<=cx||e>=lx&&e<=ux}function nh(e,a,p,g){let t="",m=0,N=-1,D=0,c=0;for(let x=0;x<=e.length;++x){if(x2){const se=t.lastIndexOf(p);se===-1?(t="",m=0):(t=t.slice(0,se),m=t.length-1-t.lastIndexOf(p)),N=x,D=0;continue}else if(t.length!==0){t="",m=0,N=x,D=0;continue}}a&&(t+=t.length>0?`${p}..`:"..",m=2)}else t.length>0?t+=`${p}${e.slice(N+1,x)}`:t=e.slice(N+1,x),m=x-N-1;N=x,D=0}else c===pm&&D!==-1?++D:D=-1}return t}function wT(e,a){if(a===null||typeof a!="object")throw new MT("pathObject","Object",a);const p=a.dir||a.root,g=a.base||`${a.name||""}${a.ext||""}`;return p?p===a.root?`${p}${g}`:`${p}${e}${g}`:g}const Tu={resolve(...e){let a="",p="",g=!1;for(let t=e.length-1;t>=-1;t--){let m;if(t>=0){if(m=e[t],jl(m,"path"),m.length===0)continue}else a.length===0?m=eE():(m=ox[`=${a}`]||eE(),(m===void 0||m.slice(0,2).toLowerCase()!==a.toLowerCase()&&m.charCodeAt(2)===Ju)&&(m=`${a}\\`));const N=m.length;let D=0,c="",x=!1;const se=m.charCodeAt(0);if(N===1)Ho(se)&&(D=1,x=!0);else if(Ho(se))if(x=!0,Ho(m.charCodeAt(1))){let z=2,ue=z;for(;z2&&Ho(m.charCodeAt(2))&&(x=!0,D=3));if(c.length>0)if(a.length>0){if(c.toLowerCase()!==a.toLowerCase())continue}else a=c;if(g){if(a.length>0)break}else if(p=`${m.slice(D)}\\${p}`,g=x,x&&a.length>0)break}return p=nh(p,!g,"\\",Ho),g?`${a}\\${p}`:`${a}${p}`||"."},normalize(e){jl(e,"path");const a=e.length;if(a===0)return".";let p=0,g,t=!1;const m=e.charCodeAt(0);if(a===1)return nE(m)?"\\":e;if(Ho(m))if(t=!0,Ho(e.charCodeAt(1))){let D=2,c=D;for(;D2&&Ho(e.charCodeAt(2))&&(t=!0,p=3));let N=p0&&Ho(e.charCodeAt(a-1))&&(N+="\\"),g===void 0?t?`\\${N}`:N:t?`${g}\\${N}`:`${g}${N}`},isAbsolute(e){jl(e,"path");const a=e.length;if(a===0)return!1;const p=e.charCodeAt(0);return Ho(p)||a>2&&_m(p)&&e.charCodeAt(1)===mm&&Ho(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let a,p;for(let m=0;m0&&(a===void 0?a=p=N:a+=`\\${N}`)}if(a===void 0)return".";let g=!0,t=0;if(typeof p=="string"&&Ho(p.charCodeAt(0))){++t;const m=p.length;m>1&&Ho(p.charCodeAt(1))&&(++t,m>2&&(Ho(p.charCodeAt(2))?++t:g=!1))}if(g){for(;t=2&&(a=`\\${a.slice(t)}`)}return Tu.normalize(a)},relative(e,a){if(jl(e,"from"),jl(a,"to"),e===a)return"";const p=Tu.resolve(e),g=Tu.resolve(a);if(p===g||(e=p.toLowerCase(),a=g.toLowerCase(),e===a))return"";let t=0;for(;tt&&e.charCodeAt(m-1)===Ju;)m--;const N=m-t;let D=0;for(;DD&&a.charCodeAt(c-1)===Ju;)c--;const x=c-D,se=Nse){if(a.charCodeAt(D+ue)===Ju)return g.slice(D+ue+1);if(ue===2)return g.slice(D+ue)}N>se&&(e.charCodeAt(t+ue)===Ju?z=ue:ue===2&&(z=3)),z===-1&&(z=0)}let E="";for(ue=t+z+1;ue<=m;++ue)(ue===m||e.charCodeAt(ue)===Ju)&&(E+=E.length===0?"..":"\\..");return D+=z,E.length>0?`${E}${g.slice(D,c)}`:(g.charCodeAt(D)===Ju&&++D,g.slice(D,c))},toNamespacedPath(e){if(typeof e!="string")return e;if(e.length===0)return"";const a=Tu.resolve(e);if(a.length<=2)return e;if(a.charCodeAt(0)===Ju){if(a.charCodeAt(1)===Ju){const p=a.charCodeAt(2);if(p!==fx&&p!==pm)return`\\\\?\\UNC\\${a.slice(2)}`}}else if(_m(a.charCodeAt(0))&&a.charCodeAt(1)===mm&&a.charCodeAt(2)===Ju)return`\\\\?\\${a}`;return e},dirname(e){jl(e,"path");const a=e.length;if(a===0)return".";let p=-1,g=0;const t=e.charCodeAt(0);if(a===1)return Ho(t)?e:".";if(Ho(t)){if(p=g=1,Ho(e.charCodeAt(1))){let D=2,c=D;for(;D2&&Ho(e.charCodeAt(2))?3:2,g=p);let m=-1,N=!0;for(let D=a-1;D>=g;--D)if(Ho(e.charCodeAt(D))){if(!N){m=D;break}}else N=!1;if(m===-1){if(p===-1)return".";m=p}return e.slice(0,m)},basename(e,a){a!==void 0&&jl(a,"ext"),jl(e,"path");let p=0,g=-1,t=!0,m;if(e.length>=2&&_m(e.charCodeAt(0))&&e.charCodeAt(1)===mm&&(p=2),a!==void 0&&a.length>0&&a.length<=e.length){if(a===e)return"";let N=a.length-1,D=-1;for(m=e.length-1;m>=p;--m){const c=e.charCodeAt(m);if(Ho(c)){if(!t){p=m+1;break}}else D===-1&&(t=!1,D=m+1),N>=0&&(c===a.charCodeAt(N)?--N===-1&&(g=m):(N=-1,g=D))}return p===g?g=D:g===-1&&(g=e.length),e.slice(p,g)}for(m=e.length-1;m>=p;--m)if(Ho(e.charCodeAt(m))){if(!t){p=m+1;break}}else g===-1&&(t=!1,g=m+1);return g===-1?"":e.slice(p,g)},extname(e){jl(e,"path");let a=0,p=-1,g=0,t=-1,m=!0,N=0;e.length>=2&&e.charCodeAt(1)===mm&&_m(e.charCodeAt(0))&&(a=g=2);for(let D=e.length-1;D>=a;--D){const c=e.charCodeAt(D);if(Ho(c)){if(!m){g=D+1;break}continue}t===-1&&(m=!1,t=D+1),c===pm?p===-1?p=D:N!==1&&(N=1):p!==-1&&(N=-1)}return p===-1||t===-1||N===0||N===1&&p===t-1&&p===g+1?"":e.slice(p,t)},format:wT.bind(null,"\\"),parse(e){jl(e,"path");const a={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return a;const p=e.length;let g=0,t=e.charCodeAt(0);if(p===1)return Ho(t)?(a.root=a.dir=e,a):(a.base=a.name=e,a);if(Ho(t)){if(g=1,Ho(e.charCodeAt(1))){let z=2,ue=z;for(;z0&&(a.root=e.slice(0,g));let m=-1,N=g,D=-1,c=!0,x=e.length-1,se=0;for(;x>=g;--x){if(t=e.charCodeAt(x),Ho(t)){if(!c){N=x+1;break}continue}D===-1&&(c=!1,D=x+1),t===pm?m===-1?m=x:se!==1&&(se=1):m!==-1&&(se=-1)}return D!==-1&&(m===-1||se===0||se===1&&m===D-1&&m===N+1?a.base=a.name=e.slice(N,D):(a.name=e.slice(N,m),a.base=e.slice(N,D),a.ext=e.slice(m,D))),N>0&&N!==g?a.dir=e.slice(0,N-1):a.dir=a.root,a},sep:"\\",delimiter:";",win32:null,posix:null},Ku={resolve(...e){let a="",p=!1;for(let g=e.length-1;g>=-1&&!p;g--){const t=g>=0?e[g]:eE();jl(t,"path"),t.length!==0&&(a=`${t}/${a}`,p=t.charCodeAt(0)===Fc)}return a=nh(a,!p,"/",nE),p?`/${a}`:a.length>0?a:"."},normalize(e){if(jl(e,"path"),e.length===0)return".";const a=e.charCodeAt(0)===Fc,p=e.charCodeAt(e.length-1)===Fc;return e=nh(e,!a,"/",nE),e.length===0?a?"/":p?"./":".":(p&&(e+="/"),a?`/${e}`:e)},isAbsolute(e){return jl(e,"path"),e.length>0&&e.charCodeAt(0)===Fc},join(...e){if(e.length===0)return".";let a;for(let p=0;p0&&(a===void 0?a=g:a+=`/${g}`)}return a===void 0?".":Ku.normalize(a)},relative(e,a){if(jl(e,"from"),jl(a,"to"),e===a||(e=Ku.resolve(e),a=Ku.resolve(a),e===a))return"";const p=1,g=e.length,t=g-p,m=1,N=a.length-m,D=tD){if(a.charCodeAt(m+x)===Fc)return a.slice(m+x+1);if(x===0)return a.slice(m+x)}else t>D&&(e.charCodeAt(p+x)===Fc?c=x:x===0&&(c=0));let se="";for(x=p+c+1;x<=g;++x)(x===g||e.charCodeAt(x)===Fc)&&(se+=se.length===0?"..":"/..");return`${se}${a.slice(m+c)}`},toNamespacedPath(e){return e},dirname(e){if(jl(e,"path"),e.length===0)return".";const a=e.charCodeAt(0)===Fc;let p=-1,g=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===Fc){if(!g){p=t;break}}else g=!1;return p===-1?a?"/":".":a&&p===1?"//":e.slice(0,p)},basename(e,a){a!==void 0&&jl(a,"ext"),jl(e,"path");let p=0,g=-1,t=!0,m;if(a!==void 0&&a.length>0&&a.length<=e.length){if(a===e)return"";let N=a.length-1,D=-1;for(m=e.length-1;m>=0;--m){const c=e.charCodeAt(m);if(c===Fc){if(!t){p=m+1;break}}else D===-1&&(t=!1,D=m+1),N>=0&&(c===a.charCodeAt(N)?--N===-1&&(g=m):(N=-1,g=D))}return p===g?g=D:g===-1&&(g=e.length),e.slice(p,g)}for(m=e.length-1;m>=0;--m)if(e.charCodeAt(m)===Fc){if(!t){p=m+1;break}}else g===-1&&(t=!1,g=m+1);return g===-1?"":e.slice(p,g)},extname(e){jl(e,"path");let a=-1,p=0,g=-1,t=!0,m=0;for(let N=e.length-1;N>=0;--N){const D=e.charCodeAt(N);if(D===Fc){if(!t){p=N+1;break}continue}g===-1&&(t=!1,g=N+1),D===pm?a===-1?a=N:m!==1&&(m=1):a!==-1&&(m=-1)}return a===-1||g===-1||m===0||m===1&&a===g-1&&a===p+1?"":e.slice(a,g)},format:wT.bind(null,"/"),parse(e){jl(e,"path");const a={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return a;const p=e.charCodeAt(0)===Fc;let g;p?(a.root="/",g=1):g=0;let t=-1,m=0,N=-1,D=!0,c=e.length-1,x=0;for(;c>=g;--c){const se=e.charCodeAt(c);if(se===Fc){if(!D){m=c+1;break}continue}N===-1&&(D=!1,N=c+1),se===pm?t===-1?t=c:x!==1&&(x=1):t!==-1&&(x=-1)}if(N!==-1){const se=m===0&&p?1:m;t===-1||x===0||x===1&&t===N-1&&t===m+1?a.base=a.name=e.slice(se,N):(a.name=e.slice(se,t),a.base=e.slice(se,N),a.ext=e.slice(t,N))}return m>0?a.dir=e.slice(0,m-1):p&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};Ku.win32=Tu.win32=Tu,Ku.posix=Tu.posix=Ku,jm==="win32"?Tu.normalize:Ku.normalize,jm==="win32"?Tu.resolve:Ku.resolve,jm==="win32"?Tu.relative:Ku.relative,jm==="win32"?Tu.dirname:Ku.dirname,jm==="win32"?Tu.basename:Ku.basename,jm==="win32"?Tu.extname:Ku.extname,jm==="win32"?Tu.sep:Ku.sep;const dx=/^\w[\w\d+.-]*$/,px=/^\//,mx=/^\/\//;function GT(e,a){if(!e.scheme&&a)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!dx.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!px.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(mx.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 _x(e,a){return!e&&!a?"file":e}function gx(e,a){switch(e){case"https":case"http":case"file":a?a[0]!==kd&&(a=kd+a):a=kd;break}return a}const Qs="",kd="/",vx=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Hm{constructor(a,p,g,t,m,N=!1){typeof a=="object"?(this.scheme=a.scheme||Qs,this.authority=a.authority||Qs,this.path=a.path||Qs,this.query=a.query||Qs,this.fragment=a.fragment||Qs):(this.scheme=_x(a,N),this.authority=p||Qs,this.path=gx(this.scheme,g||Qs),this.query=t||Qs,this.fragment=m||Qs,GT(this,N))}static isUri(a){return a instanceof Hm?!0:a?typeof a.authority=="string"&&typeof a.fragment=="string"&&typeof a.path=="string"&&typeof a.query=="string"&&typeof a.scheme=="string"&&typeof a.fsPath=="string"&&typeof a.with=="function"&&typeof a.toString=="function":!1}get fsPath(){return rE(this,!1)}with(a){if(!a)return this;let{scheme:p,authority:g,path:t,query:m,fragment:N}=a;return p===void 0?p=this.scheme:p===null&&(p=Qs),g===void 0?g=this.authority:g===null&&(g=Qs),t===void 0?t=this.path:t===null&&(t=Qs),m===void 0?m=this.query:m===null&&(m=Qs),N===void 0?N=this.fragment:N===null&&(N=Qs),p===this.scheme&&g===this.authority&&t===this.path&&m===this.query&&N===this.fragment?this:new M_(p,g,t,m,N)}static parse(a,p=!1){const g=vx.exec(a);return g?new M_(g[2]||Qs,rh(g[4]||Qs),rh(g[5]||Qs),rh(g[7]||Qs),rh(g[9]||Qs),p):new M_(Qs,Qs,Qs,Qs,Qs)}static file(a){let p=Qs;if(kg&&(a=a.replace(/\\/g,kd)),a[0]===kd&&a[1]===kd){const g=a.indexOf(kd,2);g===-1?(p=a.substring(2),a=kd):(p=a.substring(2,g),a=a.substring(g)||kd)}return new M_("file",p,a,Qs,Qs)}static from(a){const p=new M_(a.scheme,a.authority,a.path,a.query,a.fragment);return GT(p,!0),p}static joinPath(a,...p){if(!a.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let g;return kg&&a.scheme==="file"?g=Hm.file(Tu.join(rE(a,!0),...p)).path:g=Ku.join(a.path,...p),a.with({path:g})}toString(a=!1){return tE(this,a)}toJSON(){return this}static revive(a){if(a){if(a instanceof Hm)return a;{const p=new M_(a);return p._formatted=a.external,p._fsPath=a._sep===FT?a.fsPath:null,p}}else return a}}const FT=kg?1:void 0;class M_ extends Hm{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=rE(this,!1)),this._fsPath}toString(a=!1){return a?tE(this,!0):(this._formatted||(this._formatted=tE(this,!1)),this._formatted)}toJSON(){const a={$mid:1};return this._fsPath&&(a.fsPath=this._fsPath,a._sep=FT),this._formatted&&(a.external=this._formatted),this.path&&(a.path=this.path),this.scheme&&(a.scheme=this.scheme),this.authority&&(a.authority=this.authority),this.query&&(a.query=this.query),this.fragment&&(a.fragment=this.fragment),a}}const BT={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 UT(e,a){let p,g=-1;for(let t=0;t=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===45||m===46||m===95||m===126||a&&m===47)g!==-1&&(p+=encodeURIComponent(e.substring(g,t)),g=-1),p!==void 0&&(p+=e.charAt(t));else{p===void 0&&(p=e.substr(0,t));const N=BT[m];N!==void 0?(g!==-1&&(p+=encodeURIComponent(e.substring(g,t)),g=-1),p+=N):g===-1&&(g=t)}}return g!==-1&&(p+=encodeURIComponent(e.substring(g))),p!==void 0?p:e}function hx(e){let a;for(let p=0;p1&&e.scheme==="file"?p=`//${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?a?p=e.path.substr(1):p=e.path[1].toLowerCase()+e.path.substr(2):p=e.path,kg&&(p=p.replace(/\//g,"\\")),p}function tE(e,a){const p=a?hx:UT;let g="",{scheme:t,authority:m,path:N,query:D,fragment:c}=e;if(t&&(g+=t,g+=":"),(m||t==="file")&&(g+=kd,g+=kd),m){let x=m.indexOf("@");if(x!==-1){const se=m.substr(0,x);m=m.substr(x+1),x=se.indexOf(":"),x===-1?g+=p(se,!1):(g+=p(se.substr(0,x),!1),g+=":",g+=p(se.substr(x+1),!1)),g+="@"}m=m.toLowerCase(),x=m.indexOf(":"),x===-1?g+=p(m,!1):(g+=p(m.substr(0,x),!1),g+=m.substr(x))}if(N){if(N.length>=3&&N.charCodeAt(0)===47&&N.charCodeAt(2)===58){const x=N.charCodeAt(1);x>=65&&x<=90&&(N=`/${String.fromCharCode(x+32)}:${N.substr(3)}`)}else if(N.length>=2&&N.charCodeAt(1)===58){const x=N.charCodeAt(0);x>=65&&x<=90&&(N=`${String.fromCharCode(x+32)}:${N.substr(2)}`)}g+=p(N,!0)}return D&&(g+="?",g+=p(D,!1)),c&&(g+="#",g+=a?c:UT(c,!1)),g}function VT(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+VT(e.substr(3)):e}}const WT=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rh(e){return e.match(WT)?e.replace(WT,a=>VT(a)):e}class bf{constructor(a,p){this.lineNumber=a,this.column=p}with(a=this.lineNumber,p=this.column){return a===this.lineNumber&&p===this.column?this:new bf(a,p)}delta(a=0,p=0){return this.with(this.lineNumber+a,this.column+p)}equals(a){return bf.equals(this,a)}static equals(a,p){return!a&&!p?!0:!!a&&!!p&&a.lineNumber===p.lineNumber&&a.column===p.column}isBefore(a){return bf.isBefore(this,a)}static isBefore(a,p){return a.lineNumberg||a===g&&p>t?(this.startLineNumber=g,this.startColumn=t,this.endLineNumber=a,this.endColumn=p):(this.startLineNumber=a,this.startColumn=p,this.endLineNumber=g,this.endColumn=t)}isEmpty(){return hl.isEmpty(this)}static isEmpty(a){return a.startLineNumber===a.endLineNumber&&a.startColumn===a.endColumn}containsPosition(a){return hl.containsPosition(this,a)}static containsPosition(a,p){return!(p.lineNumbera.endLineNumber||p.lineNumber===a.startLineNumber&&p.columna.endColumn)}containsRange(a){return hl.containsRange(this,a)}static containsRange(a,p){return!(p.startLineNumbera.endLineNumber||p.endLineNumber>a.endLineNumber||p.startLineNumber===a.startLineNumber&&p.startColumna.endColumn)}strictContainsRange(a){return hl.strictContainsRange(this,a)}static strictContainsRange(a,p){return!(p.startLineNumbera.endLineNumber||p.endLineNumber>a.endLineNumber||p.startLineNumber===a.startLineNumber&&p.startColumn<=a.startColumn||p.endLineNumber===a.endLineNumber&&p.endColumn>=a.endColumn)}plusRange(a){return hl.plusRange(this,a)}static plusRange(a,p){let g,t,m,N;return p.startLineNumbera.endLineNumber?(m=p.endLineNumber,N=p.endColumn):p.endLineNumber===a.endLineNumber?(m=p.endLineNumber,N=Math.max(p.endColumn,a.endColumn)):(m=a.endLineNumber,N=a.endColumn),new hl(g,t,m,N)}intersectRanges(a){return hl.intersectRanges(this,a)}static intersectRanges(a,p){let g=a.startLineNumber,t=a.startColumn,m=a.endLineNumber,N=a.endColumn,D=p.startLineNumber,c=p.startColumn,x=p.endLineNumber,se=p.endColumn;return gx?(m=x,N=se):m===x&&(N=Math.min(N,se)),g>m||g===m&&t>N?null:new hl(g,t,m,N)}equalsRange(a){return hl.equalsRange(this,a)}static equalsRange(a,p){return!!a&&!!p&&a.startLineNumber===p.startLineNumber&&a.startColumn===p.startColumn&&a.endLineNumber===p.endLineNumber&&a.endColumn===p.endColumn}getEndPosition(){return hl.getEndPosition(this)}static getEndPosition(a){return new bf(a.endLineNumber,a.endColumn)}getStartPosition(){return hl.getStartPosition(this)}static getStartPosition(a){return new bf(a.startLineNumber,a.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(a,p){return new hl(this.startLineNumber,this.startColumn,a,p)}setStartPosition(a,p){return new hl(a,p,this.endLineNumber,this.endColumn)}collapseToStart(){return hl.collapseToStart(this)}static collapseToStart(a){return new hl(a.startLineNumber,a.startColumn,a.startLineNumber,a.startColumn)}static fromPositions(a,p=a){return new hl(a.lineNumber,a.column,p.lineNumber,p.column)}static lift(a){return a?new hl(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn):null}static isIRange(a){return a&&typeof a.startLineNumber=="number"&&typeof a.startColumn=="number"&&typeof a.endLineNumber=="number"&&typeof a.endColumn=="number"}static areIntersectingOrTouching(a,p){return!(a.endLineNumbera.startLineNumber}}const yx=3;function jT(e,a,p,g){return new dm(e,a,p).ComputeDiff(g)}class HT{constructor(a){const p=[],g=[];for(let t=0,m=a.length;t0&&p.originalLength<20&&p.modifiedLength>0&&p.modifiedLength<20&&m()){const E=g.createCharSequence(a,p.originalStart,p.originalStart+p.originalLength-1),C=t.createCharSequence(a,p.modifiedStart,p.modifiedStart+p.modifiedLength-1);let I=jT(E,C,m,!0).changes;D&&(I=bx(I)),ue=[];for(let j=0,Y=I.length;j1&&I>1;){const j=ue.charCodeAt(C-2),Y=E.charCodeAt(I-2);if(j!==Y)break;C--,I--}(C>1||I>1)&&this._pushTrimWhitespaceCharChange(t,m+1,1,C,N+1,1,I)}{let C=iE(ue,1),I=iE(E,1);const j=ue.length+1,Y=E.length+1;for(;C!0;const a=Date.now();return()=>Date.now()-a255?255:e|0}function w_(e){return e<0?0:e>4294967295?4294967295:e|0}class Sx{constructor(a,p){this._prefixSumIndexOfResultBrand=void 0,this.index=a,this.remainder=p}}class Lx{constructor(a){this.values=a,this.prefixSum=new Uint32Array(a.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(a,p){a=w_(a);const g=this.values,t=this.prefixSum,m=p.length;return m===0?!1:(this.values=new Uint32Array(g.length+m),this.values.set(g.subarray(0,a),0),this.values.set(g.subarray(a),a+m),this.values.set(p,a),a-1=0&&this.prefixSum.set(t.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(a,p){return a=w_(a),p=w_(p),this.values[a]===p?!1:(this.values[a]=p,a-1=g.length)return!1;let m=g.length-a;return p>=m&&(p=m),p===0?!1:(this.values=new Uint32Array(g.length-p),this.values.set(g.subarray(0,a),0),this.values.set(g.subarray(a+p),a),this.prefixSum=new Uint32Array(this.values.length),a-1=0&&this.prefixSum.set(t.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(a){return a<0?0:(a=w_(a),this._getPrefixSum(a))}_getPrefixSum(a){if(a<=this.prefixSumValidIndex[0])return this.prefixSum[a];let p=this.prefixSumValidIndex[0]+1;p===0&&(this.prefixSum[0]=this.values[0],p++),a>=this.values.length&&(a=this.values.length-1);for(let g=p;g<=a;g++)this.prefixSum[g]=this.prefixSum[g-1]+this.values[g];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],a),this.prefixSum[a]}getIndexOf(a){a=Math.floor(a),this.getTotalSum();let p=0,g=this.values.length-1,t=0,m=0,N=0;for(;p<=g;)if(t=p+(g-p)/2|0,m=this.prefixSum[t],N=m-this.values[t],a=m)p=t+1;else break;return new Sx(t,a-N)}}class Ax{constructor(a,p,g,t){this._uri=a,this._lines=p,this._eol=g,this._versionId=t,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(a){a.eol&&a.eol!==this._eol&&(this._eol=a.eol,this._lineStarts=null);const p=a.changes;for(const g of p)this._acceptDeleteRange(g.range),this._acceptInsertText(new bf(g.range.startLineNumber,g.range.startColumn),g.text);this._versionId=a.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const a=this._eol.length,p=this._lines.length,g=new Uint32Array(p);for(let t=0;t/?";function Cx(e=""){let a="(-?\\d*\\.\\d\\w*)|([^";for(const p of Dx)e.indexOf(p)>=0||(a+="\\"+p);return a+="\\s]+)",new RegExp(a,"g")}const xx=Cx();function Ix(e){let a=xx;if(e&&e instanceof RegExp)if(e.global)a=e;else{let p="g";e.ignoreCase&&(p+="i"),e.multiline&&(p+="m"),e.unicode&&(p+="u"),a=new RegExp(e.source,p)}return a.lastIndex=0,a}const Rx={maxLen:1e3,windowSize:15,timeBudget:150};function zT(e,a,p,g,t=Rx){if(p.length>t.maxLen){let x=e-t.maxLen/2;return x<0?x=0:g+=x,p=p.substring(x,e+t.maxLen/2),zT(e,a,p,g,t)}const m=Date.now(),N=e-1-g;let D=-1,c=null;for(let x=1;!(Date.now()-m>=t.timeBudget);x++){const se=N-t.windowSize*x;a.lastIndex=Math.max(0,se);const z=Nx(a,p,N,D);if(!z&&c||(c=z,se<=0))break;D=se}if(c){let x={word:c[0],startColumn:g+1+c.index,endColumn:g+1+c.index+c[0].length};return a.lastIndex=0,x}return null}function Nx(e,a,p,g){let t;for(;t=e.exec(a);){const m=t.index||0;if(m<=p&&e.lastIndex>=p)return t;if(g>0&&m>g)return null}return null}class oE{constructor(a){let p=KT(a);this._defaultValue=p,this._asciiMap=oE._createAsciiMap(p),this._map=new Map}static _createAsciiMap(a){let p=new Uint8Array(256);for(let g=0;g<256;g++)p[g]=a;return p}set(a,p){let g=KT(p);a>=0&&a<256?this._asciiMap[a]=g:this._map.set(a,g)}get(a){return a>=0&&a<256?this._asciiMap[a]:this._map.get(a)||this._defaultValue}}class Ox{constructor(a,p,g){const t=new Uint8Array(a*p);for(let m=0,N=a*p;mp&&(p=c),D>g&&(g=D),x>g&&(g=x)}p++,g++;let t=new Ox(g,p,0);for(let m=0,N=a.length;m=this._maxCharCode?0:this._states.get(a,p)}}let sE=null;function Px(){return sE===null&&(sE=new kx([[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]])),sE}let wg=null;function Mx(){if(wg===null){wg=new oE(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let p=0;pt);if(t>0){const D=p.charCodeAt(t-1),c=p.charCodeAt(N);(D===40&&c===41||D===91&&c===93||D===123&&c===125)&&N--}return{range:{startLineNumber:g,startColumn:t+1,endLineNumber:g,endColumn:N+2},url:p.substring(t,N+1)}}static computeLinks(a,p=Px()){const g=Mx();let t=[];for(let m=1,N=a.getLineCount();m<=N;m++){const D=a.getLineContent(m),c=D.length;let x=0,se=0,z=0,ue=1,E=!1,C=!1,I=!1,j=!1;for(;x=0?(t+=g?1:-1,t<0?t=a.length-1:t%=a.length,a[t]):null}}lE.INSTANCE=new lE;class Vs{constructor(a){this.element=a,this.next=Vs.Undefined,this.prev=Vs.Undefined}}Vs.Undefined=new Vs(void 0);class qT{constructor(){this._first=Vs.Undefined,this._last=Vs.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Vs.Undefined}clear(){let a=this._first;for(;a!==Vs.Undefined;){const p=a.next;a.prev=Vs.Undefined,a.next=Vs.Undefined,a=p}this._first=Vs.Undefined,this._last=Vs.Undefined,this._size=0}unshift(a){return this._insert(a,!1)}push(a){return this._insert(a,!0)}_insert(a,p){const g=new Vs(a);if(this._first===Vs.Undefined)this._first=g,this._last=g;else if(p){const m=this._last;this._last=g,g.prev=m,m.next=g}else{const m=this._first;this._first=g,g.next=m,m.prev=g}this._size+=1;let t=!1;return()=>{t||(t=!0,this._remove(g))}}shift(){if(this._first!==Vs.Undefined){const a=this._first.element;return this._remove(this._first),a}}pop(){if(this._last!==Vs.Undefined){const a=this._last.element;return this._remove(this._last),a}}_remove(a){if(a.prev!==Vs.Undefined&&a.next!==Vs.Undefined){const p=a.prev;p.next=a.next,a.next.prev=p}else a.prev===Vs.Undefined&&a.next===Vs.Undefined?(this._first=Vs.Undefined,this._last=Vs.Undefined):a.next===Vs.Undefined?(this._last=this._last.prev,this._last.next=Vs.Undefined):a.prev===Vs.Undefined&&(this._first=this._first.next,this._first.prev=Vs.Undefined);this._size-=1}*[Symbol.iterator](){let a=this._first;for(;a!==Vs.Undefined;)yield a.element,a=a.next}}const Gx=eu.performance&&typeof eu.performance.now=="function";class ah{constructor(a){this._highResolution=Gx&&a,this._startTime=this._now(),this._stopTime=-1}static create(a=!0){return new ah(a)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?eu.performance.now():Date.now()}}var cE;(function(e){e.None=()=>CT.None;function a(L){return(k,h=null,M)=>{let O=!1,H;return H=L($=>{if(!O)return H?H.dispose():O=!0,k.call(h,$)},null,M),O&&H.dispose(),H}}e.once=a;function p(L,k){return c((h,M=null,O)=>L(H=>h.call(M,k(H)),null,O))}e.map=p;function g(L,k){return c((h,M=null,O)=>L(H=>{k(H),h.call(M,H)},null,O))}e.forEach=g;function t(L,k){return c((h,M=null,O)=>L(H=>k(H)&&h.call(M,H),null,O))}e.filter=t;function m(L){return L}e.signal=m;function N(...L){return(k,h=null,M)=>KC(...L.map(O=>O(H=>k.call(h,H),null,M)))}e.any=N;function D(L,k,h){let M=h;return p(L,O=>(M=k(M,O),M))}e.reduce=D;function c(L){let k;const h=new hp({onFirstListenerAdd(){k=L(h.fire,h)},onLastListenerRemove(){k.dispose()}});return h.event}function x(L,k,h=100,M=!1,O){let H,$,Z,B=0;const U=new hp({leakWarningThreshold:O,onFirstListenerAdd(){H=L(K=>{B++,$=k($,K),M&&!Z&&(U.fire($),$=void 0),clearTimeout(Z),Z=setTimeout(()=>{const T=$;$=void 0,Z=void 0,(!M||B>1)&&U.fire(T),B=0},h)})},onLastListenerRemove(){H.dispose()}});return U.event}e.debounce=x;function se(L,k=(h,M)=>h===M){let h=!0,M;return t(L,O=>{const H=h||!k(O,M);return h=!1,M=O,H})}e.latch=se;function z(L,k){return[e.filter(L,k),e.filter(L,h=>!k(h))]}e.split=z;function ue(L,k=!1,h=[]){let M=h.slice(),O=L(Z=>{M?M.push(Z):$.fire(Z)});const H=()=>{M&&M.forEach(Z=>$.fire(Z)),M=null},$=new hp({onFirstListenerAdd(){O||(O=L(Z=>$.fire(Z)))},onFirstListenerDidAdd(){M&&(k?setTimeout(H):H())},onLastListenerRemove(){O&&O.dispose(),O=null}});return $.event}e.buffer=ue;class E{constructor(k){this.event=k}map(k){return new E(p(this.event,k))}forEach(k){return new E(g(this.event,k))}filter(k){return new E(t(this.event,k))}reduce(k,h){return new E(D(this.event,k,h))}latch(){return new E(se(this.event))}debounce(k,h=100,M=!1,O){return new E(x(this.event,k,h,M,O))}on(k,h,M){return this.event(k,h,M)}once(k,h,M){return a(this.event)(k,h,M)}}function C(L){return new E(L)}e.chain=C;function I(L,k,h=M=>M){const M=(...Z)=>$.fire(h(...Z)),O=()=>L.on(k,M),H=()=>L.removeListener(k,M),$=new hp({onFirstListenerAdd:O,onLastListenerRemove:H});return $.event}e.fromNodeEventEmitter=I;function j(L,k,h=M=>M){const M=(...Z)=>$.fire(h(...Z)),O=()=>L.addEventListener(k,M),H=()=>L.removeEventListener(k,M),$=new hp({onFirstListenerAdd:O,onLastListenerRemove:H});return $.event}e.fromDOMEventEmitter=j;function Y(L){return new Promise(k=>a(L)(k))}e.toPromise=Y})(cE||(cE={}));class ih{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${ih._idPool++}`}start(a){this._stopWatch=new ah(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}ih._idPool=0;class hp{constructor(a){var p;this._disposed=!1,this._options=a,this._leakageMon=void 0,this._perfMon=!((p=this._options)===null||p===void 0)&&p._profName?new ih(this._options._profName):void 0}get event(){return this._event||(this._event=(a,p,g)=>{var t;this._listeners||(this._listeners=new qT);const m=this._listeners.isEmpty();m&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const N=this._listeners.push(p?[a,p]:a);m&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,p);const D=(t=this._leakageMon)===null||t===void 0?void 0:t.check(this._listeners.size);let c;return c={dispose:()=>{D&&D(),c.dispose=hp._noop,this._disposed||(N(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))}},g instanceof Og?g.add(c):Array.isArray(g)&&g.push(c),c}),this._event}fire(a){var p,g;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new qT);for(let t of this._listeners)this._deliveryQueue.push([t,a]);for((p=this._perfMon)===null||p===void 0||p.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[t,m]=this._deliveryQueue.shift();try{typeof t=="function"?t.call(void 0,m):t[0].call(t[1],m)}catch(N){WC(N)}}(g=this._perfMon)===null||g===void 0||g.stop()}}dispose(){var a,p,g,t,m;this._disposed||(this._disposed=!0,(a=this._listeners)===null||a===void 0||a.clear(),(p=this._deliveryQueue)===null||p===void 0||p.clear(),(t=(g=this._options)===null||g===void 0?void 0:g.onLastListenerRemove)===null||t===void 0||t.call(g),(m=this._leakageMon)===null||m===void 0||m.dispose())}}hp._noop=function(){};const XT=Object.freeze(function(e,a){const p=setTimeout(e.bind(a),0);return{dispose(){clearTimeout(p)}}});var oh;(function(e){function a(p){return p===e.None||p===e.Cancelled||p instanceof sh?!0:!p||typeof p!="object"?!1:typeof p.isCancellationRequested=="boolean"&&typeof p.onCancellationRequested=="function"}e.isCancellationToken=a,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:cE.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:XT})})(oh||(oh={}));class sh{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?XT:(this._emitter||(this._emitter=new hp),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Fx{constructor(a){this._token=void 0,this._parentListener=void 0,this._parentListener=a&&a.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new sh),this._token}cancel(){this._token?this._token instanceof sh&&this._token.cancel():this._token=oh.Cancelled}dispose(a=!1){a&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof sh&&this._token.dispose():this._token=oh.None}}class uE{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(a,p){this._keyCodeToStr[a]=p,this._strToKeyCode[p.toLowerCase()]=a}keyCodeToStr(a){return this._keyCodeToStr[a]}strToKeyCode(a){return this._strToKeyCode[a.toLowerCase()]||0}}const fE=new uE,dE=new uE,pE=new uE;(function(){function e(a,p,g=p,t=g){fE.define(a,p),dE.define(a,g),pE.define(a,t)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})();var YT;(function(e){function a(N){return fE.keyCodeToStr(N)}e.toString=a;function p(N){return fE.strToKeyCode(N)}e.fromString=p;function g(N){return dE.keyCodeToStr(N)}e.toUserSettingsUS=g;function t(N){return pE.keyCodeToStr(N)}e.toUserSettingsGeneral=t;function m(N){return dE.strToKeyCode(N)||pE.strToKeyCode(N)}e.fromUserSettings=m})(YT||(YT={}));function Bx(e,a){const p=(a&65535)<<16>>>0;return(e|p)>>>0}class Pd extends hl{constructor(a,p,g,t){super(a,p,g,t),this.selectionStartLineNumber=a,this.selectionStartColumn=p,this.positionLineNumber=g,this.positionColumn=t}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(a){return Pd.selectionsEqual(this,a)}static selectionsEqual(a,p){return a.selectionStartLineNumber===p.selectionStartLineNumber&&a.selectionStartColumn===p.selectionStartColumn&&a.positionLineNumber===p.positionLineNumber&&a.positionColumn===p.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(a,p){return this.getDirection()===0?new Pd(this.startLineNumber,this.startColumn,a,p):new Pd(a,p,this.startLineNumber,this.startColumn)}getPosition(){return new bf(this.positionLineNumber,this.positionColumn)}setStartPosition(a,p){return this.getDirection()===0?new Pd(a,p,this.endLineNumber,this.endColumn):new Pd(this.endLineNumber,this.endColumn,a,p)}static fromPositions(a,p=a){return new Pd(a.lineNumber,a.column,p.lineNumber,p.column)}static liftSelection(a){return new Pd(a.selectionStartLineNumber,a.selectionStartColumn,a.positionLineNumber,a.positionColumn)}static selectionsArrEqual(a,p){if(a&&!p||!a&&p)return!1;if(!a&&!p)return!0;if(a.length!==p.length)return!1;for(let g=0,t=a.length;gthis._lines.length)p=this._lines.length,g=this._lines[p-1].length+1,t=!0;else{let m=this._lines[p-1].length+1;g<1?(g=1,t=!0):g>m&&(g=m,t=!0)}return t?{lineNumber:p,column:g}:a}}class F_{constructor(a,p){this._host=a,this._models=Object.create(null),this._foreignModuleFactory=p,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(a){return this._models[a]}_getModels(){let a=[];return Object.keys(this._models).forEach(p=>a.push(this._models[p])),a}acceptNewModel(a){this._models[a.url]=new Wx(Hm.parse(a.url),a.lines,a.EOL,a.versionId)}acceptModelChanged(a,p){if(!this._models[a])return;this._models[a].onEvents(p)}acceptRemovedModel(a){this._models[a]&&delete this._models[a]}computeDiff(a,p,g,t){return G_(this,void 0,void 0,function*(){const m=this._getModel(a),N=this._getModel(p);if(!m||!N)return null;const D=m.getLinesContent(),c=N.getLinesContent(),se=new Tx(D,c,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:g,shouldMakePrettyDiff:!0,maxComputationTime:t}).computeDiff(),z=se.changes.length>0?!1:this._modelsAreIdentical(m,N);return{quitEarly:se.quitEarly,identical:z,changes:se.changes}})}_modelsAreIdentical(a,p){const g=a.getLineCount(),t=p.getLineCount();if(g!==t)return!1;for(let m=1;m<=g;m++){const N=a.getLineContent(m),D=p.getLineContent(m);if(N!==D)return!1}return!0}computeMoreMinimalEdits(a,p){return G_(this,void 0,void 0,function*(){const g=this._getModel(a);if(!g)return p;const t=[];let m;p=p.slice(0).sort((N,D)=>{if(N.range&&D.range)return hl.compareRangesUsingStarts(N.range,D.range);let c=N.range?0:1,x=D.range?0:1;return c-x});for(let{range:N,text:D,eol:c}of p){if(typeof c=="number"&&(m=c),hl.isEmpty(N)&&!D)continue;const x=g.getValueInRange(N);if(D=D.replace(/\r\n|\n|\r/g,g.eol),x===D)continue;if(Math.max(D.length,x.length)>F_._diffLimit){t.push({range:N,text:D});continue}const se=ix(x,D,!1),z=g.offsetAt(hl.lift(N).getStartPosition());for(const ue of se){const E=g.positionAt(z+ue.originalStart),C=g.positionAt(z+ue.originalStart+ue.originalLength),I={text:D.substr(ue.modifiedStart,ue.modifiedLength),range:{startLineNumber:E.lineNumber,startColumn:E.column,endLineNumber:C.lineNumber,endColumn:C.column}};g.getValueInRange(I.range)!==I.text&&t.push(I)}}return typeof m=="number"&&t.push({eol:m,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),t})}computeLinks(a){return G_(this,void 0,void 0,function*(){let p=this._getModel(a);return p?wx(p):null})}textualSuggest(a,p,g,t){return G_(this,void 0,void 0,function*(){const m=new ah(!0),N=new RegExp(g,t),D=new Set;e:for(let c of a){const x=this._getModel(c);if(x){for(let se of x.words(N))if(!(se===p||!isNaN(Number(se)))&&(D.add(se),D.size>F_._suggestionsLimit))break e}}return{words:Array.from(D),duration:m.elapsed()}})}computeWordRanges(a,p,g,t){return G_(this,void 0,void 0,function*(){let m=this._getModel(a);if(!m)return Object.create(null);const N=new RegExp(g,t),D=Object.create(null);for(let c=p.startLineNumber;cthis._host.fhr(D,c)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(N,p),Promise.resolve($y(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(a,p){if(!this._foreignModule||typeof this._foreignModule[a]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+a));try{return Promise.resolve(this._foreignModule[a].apply(this._foreignModule,p))}catch(g){return Promise.reject(g)}}}F_._diffLimit=1e5,F_._suggestionsLimit=1e4,typeof importScripts=="function"&&(eu.monaco=Vx());let hE=!1;function xS(e){if(hE)return;hE=!0;const a=new ex(p=>{self.postMessage(p)},p=>new F_(p,e));self.onmessage=p=>{a.onmessage(p.data)}}self.onmessage=e=>{hE||xS(null)};var jx={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var wr=function(e,a){for(var p=0,g=a.length,t=e.length;p0&&m[m.length-1])&&(x[0]===6||x[0]===2)){p=0;continue}if(x[0]===3&&(!m||x[1]>m[0]&&x[1]=0;qe--){var sn=De(Q[qe],qe);if(sn)return sn}}e.forEachRight=D;function c(Q,De){if(Q!==void 0)for(var qe=0;qe=0;qe--){var sn=Q[qe];if(De(sn,qe))return sn}}e.findLast=Y;function L(Q,De,qe){for(var sn=qe||0;sn=0;sn--)if(De(Q[sn],sn))return sn;return-1}e.findLastIndex=k;function h(Q,De){for(var qe=0;qe0;return!1}e.some=re;function ve(Q,De,qe){for(var sn,Mn=0;Mn0&&e.Debug.assertGreaterThanOrEqual(qe(De[or],De[or-1]),0);n:for(var Ir=Mn;MnIr&&e.Debug.assertGreaterThanOrEqual(qe(Q[Mn],Q[Mn-1]),0),qe(De[or],Q[Mn])){case-1:sn.push(De[or]);continue e;case 0:continue e;case 1:continue n}}return sn}e.relativeComplement=on;function Te(Q,De){for(var qe=0,sn=0,Mn=Q;sn>1),Ft=qe(Q[at],at);switch(sn(Ft,De)){case-1:or=at+1;break;case 0:return at;case 1:Ir=at-1;break}}return~or}e.binarySearchKey=Sn;function Xn(Q,De,qe,sn,Mn){if(Q&&Q.length>0){var or=Q.length;if(or>0){var Ir=sn===void 0||sn<0?0:sn,at=Mn===void 0||Ir+Mn>or-1?or-1:Ir+Mn,Ft=void 0;for(arguments.length<=2?(Ft=Q[Ir],Ir++):Ft=qe;Ir<=at;)Ft=De(Ft,Q[Ir],Ir),Ir++;return Ft}}return qe}e.reduceLeft=Xn;var wn=Object.prototype.hasOwnProperty;function qn(Q,De){return wn.call(Q,De)}e.hasProperty=qn;function yr(Q,De){return wn.call(Q,De)?Q[De]:void 0}e.getProperty=yr;function Vr(Q){var De=[];for(var qe in Q)wn.call(Q,qe)&&De.push(qe);return De}e.getOwnKeys=Vr;function Me(Q){var De=[];do for(var qe=Object.getOwnPropertyNames(Q),sn=0,Mn=qe;snDe?1:0)}e.compareStringsCaseInsensitive=tr;function gr(Q,De){return Mr(Q,De)}e.compareStringsCaseSensitive=gr;function Or(Q){return Q?tr:gr}e.getStringComparer=Or;var mt=function(){var Q,De,qe=at();return Ft;function sn(Da,$a,Za){if(Da===$a)return 0;if(Da===void 0)return-1;if($a===void 0)return 1;var hi=Za(Da,$a);return hi<0?-1:hi>0?1:0}function Mn(Da){var $a=new Intl.Collator(Da,{usage:"sort",sensitivity:"variant"}).compare;return function(Za,hi){return sn(Za,hi,$a)}}function or(Da){if(Da!==void 0)return Ir();return function(Za,hi){return sn(Za,hi,$a)};function $a(Za,hi){return Za.localeCompare(hi)}}function Ir(){return function(Za,hi){return sn(Za,hi,Da)};function Da(Za,hi){return $a(Za.toUpperCase(),hi.toUpperCase())||$a(Za,hi)}function $a(Za,hi){return Zahi?1:0}}function at(){return typeof Intl=="object"&&typeof Intl.Collator=="function"?Mn:typeof String.prototype.localeCompare=="function"&&typeof String.prototype.toLocaleUpperCase=="function"&&"a".localeCompare("B")<0?or:Ir}function Ft(Da){return Da===void 0?Q||(Q=qe(Da)):Da==="en-US"?De||(De=qe(Da)):qe(Da)}}(),ft,Dt;function sa(){return Dt}e.getUILocale=sa;function Wa(Q){Dt!==Q&&(Dt=Q,ft=void 0)}e.setUILocale=Wa;function ii(Q,De){var qe=ft||(ft=mt(Dt));return qe(Q,De)}e.compareStringsCaseSensitiveUI=ii;function ri(Q,De,qe,sn){return Q===De?0:Q===void 0?-1:De===void 0?1:sn(Q[qe],De[qe])}e.compareProperties=ri;function mi(Q,De){return Kr(Q?1:0,De?1:0)}e.compareBooleans=mi;function Ei(Q,De,qe){for(var sn=Math.min(2,Math.floor(Q.length*.34)),Mn=Math.floor(Q.length*.4)+1,or,Ir=0,at=De;Irqe?Ir-qe:1),Da=Math.floor(De.length>qe+Ir?qe+Ir:De.length);Mn[0]=Ir;for(var $a=Ir,Za=1;Zaqe)return;var fs=sn;sn=Mn,Mn=fs}var bs=sn[De.length];return bs>qe?void 0:bs}function yi(Q,De){var qe=Q.length-De.length;return qe>=0&&Q.indexOf(De,qe)===qe}e.endsWith=yi;function Ni(Q,De){return yi(Q,De)?Q.slice(0,Q.length-De.length):Q}e.removeSuffix=Ni;function ja(Q,De){return yi(Q,De)?Q.slice(0,Q.length-De.length):void 0}e.tryRemoveSuffix=ja;function ui(Q,De){return Q.indexOf(De)!==-1}e.stringContains=ui;function Di(Q){var De=/[.-]((min)|(\d+(\.\d+)*))$/;return Q.replace(De,"").replace(De,"")}e.removeMinAndVersionNumbers=Di;function Io(Q,De){for(var qe=0;qeMn&&(Mn=Ft.prefix.length,sn=at)}return sn}e.findBestPatternMatch=gi;function Ji(Q,De){return Q.lastIndexOf(De,0)===0}e.startsWith=Ji;function Ui(Q,De){return Ji(Q,De)?Q.substr(De.length):Q}e.removePrefix=Ui;function go(Q,De,qe){return qe===void 0&&(qe=vt),Ji(qe(Q),qe(De))?Q.substring(De.length):void 0}e.tryRemovePrefix=go;function wo(Q,De){var qe=Q.prefix,sn=Q.suffix;return De.length>=qe.length+sn.length&&Ji(De,qe)&&yi(De,sn)}function oo(Q,De){return function(qe){return Q(qe)&&De(qe)}}e.and=oo;function Go(){for(var Q=[],De=0;Devn)for(var xn=0,Rn=e.getOwnKeys(x);xn=we.level&&(p[Ge]=we,x[Ge]=void 0)}}p.setAssertionLevel=z;function ue(rn){return t>=rn}p.shouldAssert=ue;function E(rn,vn){return ue(rn)?!0:(x[vn]={level:rn,assertion:p[vn]},p[vn]=e.noop,!1)}function C(rn,vn){var xn=new Error(rn?"Debug Failure. "+rn:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(xn,vn||C),xn}p.fail=C;function I(rn,vn,xn){return C((vn||"Unexpected node.")+`\r Node `+w(rn.kind)+" was unexpected.",xn||I)}p.failBadSyntaxKind=I;function j(rn,vn,xn,Rn){rn||(vn=vn?"False expression: "+vn:"False expression.",xn&&(vn+=`\r Verbose Debug Information: `+(typeof xn=="string"?xn:xn())),C(vn,Rn||j))}p.assert=j;function Y(rn,vn,xn,Rn,Ge){if(rn!==vn){var we=xn?Rn?xn+" "+Rn:xn:"";C("Expected "+rn+" === "+vn+". "+we,Ge||Y)}}p.assertEqual=Y;function L(rn,vn,xn,Rn){rn>=vn&&C("Expected "+rn+" < "+vn+". "+(xn||""),Rn||L)}p.assertLessThan=L;function k(rn,vn,xn){rn>vn&&C("Expected "+rn+" <= "+vn,xn||k)}p.assertLessThanOrEqual=k;function h(rn,vn,xn){rn= "+vn,xn||h)}p.assertGreaterThanOrEqual=h;function M(rn,vn,xn){rn==null&&C(vn,xn||M)}p.assertIsDefined=M;function O(rn,vn,xn){return M(rn,vn,xn||O),rn}p.checkDefined=O,p.assertDefined=O;function H(rn,vn,xn){for(var Rn=0,Ge=rn;Rn0&&Rn[0][0]===0?Rn[0][1]:"0";if(xn){for(var Ge="",we=rn,Re=0,yn=Rn;Rern)break;oe!==0&&oe&rn&&(Ge=""+Ge+(Ge?"|":"")+J,we&=~oe)}if(we===0)return Ge}else for(var te=0,me=Rn;te=0;return Ee?on(rn,we,yn,vn.message):oe?Te(rn,we,yn,vn.message):e.noop}function Fe(rn,vn){return function(){return rn(),vn.apply(this,arguments)}}function Ke(rn,vn){var xn=tn(F(rn),vn);return Fe(xn,rn)}p.deprecate=Ke}(e.Debug||(e.Debug={}))})(un||(un={}));var un;(function(e){var a=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,p=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,g=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,t=/^(0|[1-9]\d*)$/,m=function(){function B(U,K,T,G,v){if(K===void 0&&(K=0),T===void 0&&(T=0),G===void 0&&(G=""),v===void 0&&(v=""),typeof U=="string"){var R=e.Debug.checkDefined(N(U),"Invalid version");U=R.major,K=R.minor,T=R.patch,G=R.prerelease,v=R.build}e.Debug.assert(U>=0,"Invalid argument: major"),e.Debug.assert(K>=0,"Invalid argument: minor"),e.Debug.assert(T>=0,"Invalid argument: patch"),e.Debug.assert(!G||p.test(G),"Invalid argument: prerelease"),e.Debug.assert(!v||g.test(v),"Invalid argument: build"),this.major=U,this.minor=K,this.patch=T,this.prerelease=G?G.split("."):e.emptyArray,this.build=v?v.split("."):e.emptyArray}return B.tryParse=function(U){var K=N(U);if(K){var T=K.major,G=K.minor,v=K.patch,R=K.prerelease,F=K.build;return new B(T,G,v,R,F)}},B.prototype.compareTo=function(U){return this===U?0:U===void 0?1:e.compareValues(this.major,U.major)||e.compareValues(this.minor,U.minor)||e.compareValues(this.patch,U.patch)||D(this.prerelease,U.prerelease)},B.prototype.increment=function(U){switch(U){case"major":return new B(this.major+1,0,0);case"minor":return new B(this.major,this.minor+1,0);case"patch":return new B(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(U)}},B.prototype.toString=function(){var U=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(U+="-"+this.prerelease.join(".")),e.some(this.build)&&(U+="+"+this.build.join(".")),U},B.zero=new B(0,0,0),B}();e.Version=m;function N(B){var U=a.exec(B);if(U){var K=U[1],T=U[2],G=T===void 0?"0":T,v=U[3],R=v===void 0?"0":v,F=U[4],_=F===void 0?"":F,u=U[5],b=u===void 0?"":u;if(!(_&&!p.test(_))&&!(b&&!g.test(b)))return{major:parseInt(K,10),minor:parseInt(G,10),patch:parseInt(R,10),prerelease:_,build:b}}}function D(B,U){if(B===U)return 0;if(B.length===0)return U.length===0?0:1;if(U.length===0)return-1;for(var K=Math.min(B.length,U.length),T=0;T|>=|=)?\s*([a-z0-9-+.*]+)$/i;function C(B){for(var U=[],K=0,T=B.trim().split(x);K=",T.version)),L(G.major)||K.push(L(G.minor)?k("<",G.version.increment("major")):L(G.patch)?k("<",G.version.increment("minor")):k("<=",G.version)),!0):!1}function Y(B,U,K){var T=I(U);if(!T)return!1;var G=T.version,v=T.major,R=T.minor,F=T.patch;if(L(v))(B==="<"||B===">")&&K.push(k("<",m.zero));else switch(B){case"~":K.push(k(">=",G)),K.push(k("<",G.increment(L(R)?"major":"minor")));break;case"^":K.push(k(">=",G)),K.push(k("<",G.increment(G.major>0||L(R)?"major":G.minor>0||L(F)?"minor":"patch")));break;case"<":case">=":K.push(k(B,G));break;case"<=":case">":K.push(L(R)?k(B==="<="?"<":">=",G.increment("major")):L(F)?k(B==="<="?"<":">=",G.increment("minor")):k(B,G));break;case"=":case void 0:L(R)||L(F)?(K.push(k(">=",G)),K.push(k("<",G.increment(L(R)?"major":"minor")))):K.push(k("=",G));break;default:return!1}return!0}function L(B){return B==="*"||B==="x"||B==="X"}function k(B,U){return{operator:B,operand:U}}function h(B,U){if(U.length===0)return!0;for(var K=0,T=U;K":return T>0;case">=":return T>=0;case"=":return T===0;default:return e.Debug.assertNever(U)}}function H(B){return e.map(B,$).join(" || ")||"*"}function $(B){return e.map(B,Z).join(" ")}function Z(B){return""+B.operator+B.operand}})(un||(un={}));var un;(function(e){function a(D,c){return typeof D=="object"&&typeof D.timeOrigin=="number"&&typeof D.mark=="function"&&typeof D.measure=="function"&&typeof D.now=="function"&&typeof c=="function"}function p(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&a(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function g(){if(typeof process<"u"&&process.nextTick&&!process.browser&&typeof module=="object"&&typeof require=="function")try{var D,c={},x=c.performance,se=c.PerformanceObserver;if(a(x,se)){D=x;var z=new e.Version(process.versions.node),ue=new e.VersionRange("<12.16.3 || 13 <13.13");return ue.test(z)&&(D={get timeOrigin(){return x.timeOrigin},now:function(){return x.now()},mark:function(E){return x.mark(E)},measure:function(E,C,I){C===void 0&&(C="nodeStart"),I===void 0&&(I="__performance.measure-fix__",x.mark(I)),x.measure(E,C,I),I==="__performance.measure-fix__"&&x.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:D,PerformanceObserver:se}}}catch{}}var t=p()||g(),m=t==null?void 0:t.performance;function N(){return t}e.tryGetNativePerformanceHooks=N,e.timestamp=m?function(){return m.now()}:Date.now?Date.now:function(){return+new Date}})(un||(un={}));var un;(function(e){(function(a){var p,g;function t(k,h,M,O){return k?m(h,M,O):a.nullTimer}a.createTimerIf=t;function m(k,h,M){var O=0;return{enter:H,exit:$};function H(){++O===1&&z(h)}function $(){--O===0?(z(M),ue(k,h,M)):O<0&&e.Debug.fail("enter/exit count does not match.")}}a.createTimer=m,a.nullTimer={enter:e.noop,exit:e.noop};var N=!1,D=e.timestamp(),c=new e.Map,x=new e.Map,se=new e.Map;function z(k){var h;if(N){var M=(h=x.get(k))!==null&&h!==void 0?h:0;x.set(k,M+1),c.set(k,e.timestamp()),g==null||g.mark(k)}}a.mark=z;function ue(k,h,M){var O,H;if(N){var $=(O=M!==void 0?c.get(M):void 0)!==null&&O!==void 0?O:e.timestamp(),Z=(H=h!==void 0?c.get(h):void 0)!==null&&H!==void 0?H:D,B=se.get(k)||0;se.set(k,B+($-Z)),g==null||g.measure(k,h,M)}}a.measure=ue;function E(k){return x.get(k)||0}a.getCount=E;function C(k){return se.get(k)||0}a.getDuration=C;function I(k){se.forEach(function(h,M){return k(M,h)})}a.forEachMeasure=I;function j(){return N}a.isEnabled=j;function Y(k){var h;return k===void 0&&(k=e.sys),N||(N=!0,p||(p=e.tryGetNativePerformanceHooks()),p&&(D=p.performance.timeOrigin,(p.shouldWriteNativeEvents||!((h=k==null?void 0:k.cpuProfilingEnabled)===null||h===void 0)&&h.call(k)||k!=null&&k.debugMode)&&(g=p.performance))),!0}a.enable=Y;function L(){N&&(c.clear(),x.clear(),se.clear(),g=void 0,N=!1)}a.disable=L})(e.performance||(e.performance={}))})(un||(un={}));var un;(function(e){var a,p={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},g;try{var t=(a=jx.TS_ETW_MODULE_PATH)!==null&&a!==void 0?a:"./node_modules/@microsoft/typescript-etw";g=void 0}catch{g=void 0}e.perfLogger=g&&g.logEvent?g:p})(un||(un={}));var un;(function(e){var a;(function(p){var g,t=0,m=0,N,D=[],c,x=[];function se($,Z,B){if(e.Debug.assert(!e.tracing,"Tracing already started"),g===void 0)try{g=void 0}catch(v){throw new Error(`tracing requires having fs (original error: `+(v.message||v)+")")}N=$,D.length=0,c===void 0&&(c=e.combinePaths(Z,"legend.json")),g.existsSync(Z)||g.mkdirSync(Z,{recursive:!0});var U=N==="build"?"."+process.pid+"-"+ ++t:N==="server"?"."+process.pid:"",K=e.combinePaths(Z,"trace"+U+".json"),T=e.combinePaths(Z,"types"+U+".json");x.push({configFilePath:B,tracePath:K,typesPath:T}),m=g.openSync(K,"w"),e.tracing=p;var G={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};g.writeSync(m,`[ `+[Nt({name:"process_name",args:{name:"tsc"}},G),Nt({name:"thread_name",args:{name:"Main"}},G),Nt(Nt({name:"TracingStartedInBrowser"},G),{cat:"disabled-by-default-devtools.timeline"})].map(function(v){return JSON.stringify(v)}).join(`, `))}p.startTracing=se;function z(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!D.length==(N!=="server")),g.writeSync(m,` ] `),g.closeSync(m),e.tracing=void 0,D.length?O(D):x[x.length-1].typesPath=void 0}p.stopTracing=z;function ue($){N!=="server"&&D.push($)}p.recordType=ue,function($){$.Parse="parse",$.Program="program",$.Bind="bind",$.Check="check",$.CheckTypes="checkTypes",$.Emit="emit",$.Session="session"}(p.Phase||(p.Phase={}));function E($,Z,B){h("I",$,Z,B,'"s":"g"')}p.instant=E;var C=[];function I($,Z,B,U){U===void 0&&(U=!1),U&&h("B",$,Z,B),C.push({phase:$,name:Z,args:B,time:1e3*e.timestamp(),separateBeginAndEnd:U})}p.push=I;function j(){e.Debug.assert(C.length>0),k(C.length-1,1e3*e.timestamp()),C.length--}p.pop=j;function Y(){for(var $=1e3*e.timestamp(),Z=C.length-1;Z>=0;Z--)k(Z,$);C.length=0}p.popAll=Y;var L=1e3*10;function k($,Z){var B=C[$],U=B.phase,K=B.name,T=B.args,G=B.time,v=B.separateBeginAndEnd;v?h("E",U,K,T,void 0,Z):L-G%L<=Z-G&&h("X",U,K,T,'"dur":'+(Z-G),G)}function h($,Z,B,U,K,T){T===void 0&&(T=1e3*e.timestamp()),!(N==="server"&&Z==="checkTypes")&&(e.performance.mark("beginTracing"),g.writeSync(m,`, {"pid":1,"tid":1,"ph":"`+$+'","cat":"'+Z+'","ts":'+T+',"name":"'+B+'"'),K&&g.writeSync(m,","+K),U&&g.writeSync(m,',"args":'+JSON.stringify(U)),g.writeSync(m,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function M($){var Z=e.getSourceFileOfNode($);return Z?{path:Z.path,start:B(e.getLineAndCharacterOfPosition(Z,$.pos)),end:B(e.getLineAndCharacterOfPosition(Z,$.end))}:void 0;function B(U){return{line:U.line+1,character:U.character+1}}}function O($){var Z,B,U,K,T,G,v,R,F,_,u,b,w,ee,le,ie,W,ge,fe,A,X,re;e.performance.mark("beginDumpTypes");var ve=x[x.length-1].typesPath,ke=g.openSync(ve,"w"),Ie=new e.Map;g.writeSync(ke,"[");for(var Je=$.length,je=0;je0}e.isRootedDiskPath=m;function N(Ne){var be=j(Ne);return be>0&&be===Ne.length}e.isDiskPathRoot=N;function D(Ne){return j(Ne)!==0}e.pathIsAbsolute=D;function c(Ne){return/^\.\.?($|[\\/])/.test(Ne)}e.pathIsRelative=c;function x(Ne){return!D(Ne)&&!c(Ne)}e.pathIsBareSpecifier=x;function se(Ne){return e.stringContains(k(Ne),".")}e.hasExtension=se;function z(Ne,be){return Ne.length>be.length&&e.endsWith(Ne,be)}e.fileExtensionIs=z;function ue(Ne,be){for(var de=0,Ce=be;de0&&g(Ne.charCodeAt(Ne.length-1))}e.hasTrailingDirectorySeparator=E;function C(Ne){return Ne>=97&&Ne<=122||Ne>=65&&Ne<=90}function I(Ne,be){var de=Ne.charCodeAt(be);if(de===58)return be+1;if(de===37&&Ne.charCodeAt(be+1)===51){var Ce=Ne.charCodeAt(be+2);if(Ce===97||Ce===65)return be+3}return-1}function j(Ne){if(!Ne)return 0;var be=Ne.charCodeAt(0);if(be===47||be===92){if(Ne.charCodeAt(1)!==be)return 1;var de=Ne.indexOf(be===47?e.directorySeparator:e.altDirectorySeparator,2);return de<0?Ne.length:de+1}if(C(be)&&Ne.charCodeAt(1)===58){var Ce=Ne.charCodeAt(2);if(Ce===47||Ce===92)return 3;if(Ne.length===2)return 2}var ye=Ne.indexOf(a);if(ye!==-1){var on=ye+a.length,Te=Ne.indexOf(e.directorySeparator,on);if(Te!==-1){var tn=Ne.slice(0,ye),Fe=Ne.slice(on,Te);if(tn==="file"&&(Fe===""||Fe==="localhost")&&C(Ne.charCodeAt(Te+1))){var Ke=I(Ne,Te+2);if(Ke!==-1){if(Ne.charCodeAt(Ke)===47)return~(Ke+1);if(Ke===Ne.length)return~Ke}}return~(Te+1)}return~Ne.length}return 0}function Y(Ne){var be=j(Ne);return be<0?~be:be}e.getRootLength=Y;function L(Ne){Ne=B(Ne);var be=Y(Ne);return be===Ne.length?Ne:(Ne=w(Ne),Ne.slice(0,Math.max(be,Ne.lastIndexOf(e.directorySeparator))))}e.getDirectoryPath=L;function k(Ne,be,de){Ne=B(Ne);var Ce=Y(Ne);if(Ce===Ne.length)return"";Ne=w(Ne);var ye=Ne.slice(Math.max(Y(Ne),Ne.lastIndexOf(e.directorySeparator)+1)),on=be!==void 0&&de!==void 0?O(ye,be,de):void 0;return on?ye.slice(0,ye.length-on.length):ye}e.getBaseFileName=k;function h(Ne,be,de){if(e.startsWith(be,".")||(be="."+be),Ne.length>=be.length&&Ne.charCodeAt(Ne.length-be.length)===46){var Ce=Ne.slice(Ne.length-be.length);if(de(Ce,be))return Ce}}function M(Ne,be,de){if(typeof be=="string")return h(Ne,be,de)||"";for(var Ce=0,ye=be;Ce=0?Ce.substring(ye):""}e.getAnyExtensionFromPath=O;function H(Ne,be){var de=Ne.substring(0,be),Ce=Ne.substring(be).split(e.directorySeparator);return Ce.length&&!e.lastOrUndefined(Ce)&&Ce.pop(),wr([de],Ce)}function $(Ne,be){return be===void 0&&(be=""),Ne=K(be,Ne),H(Ne,Y(Ne))}e.getPathComponents=$;function Z(Ne){if(Ne.length===0)return"";var be=Ne[0]&&ee(Ne[0]);return be+Ne.slice(1).join(e.directorySeparator)}e.getPathFromPathComponents=Z;function B(Ne){return Ne.replace(p,e.directorySeparator)}e.normalizeSlashes=B;function U(Ne){if(!e.some(Ne))return[];for(var be=[Ne[0]],de=1;de1){if(be[be.length-1]!==".."){be.pop();continue}}else if(be[0])continue}be.push(Ce)}}return be}e.reducePathComponents=U;function K(Ne){for(var be=[],de=1;de0==Y(be)>0,"Paths must either both be absolute or both be relative");var Ce=typeof de=="function"?de:e.identity,ye=typeof de=="boolean"?de:!1,on=ke(Ne,be,ye?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,Ce);return Z(on)}e.getRelativePathFromDirectory=Ie;function Je(Ne,be,de){return m(Ne)?fn(be,Ne,be,de,!1):Ne}e.convertToRelativePath=Je;function je(Ne,be,de){return le(Ie(L(Ne),be,de))}e.getRelativePathFromFile=je;function fn(Ne,be,de,Ce,ye){var on=ke(T(de,Ne),T(de,be),e.equateStringsCaseSensitive,Ce),Te=on[0];if(ye&&m(Te)){var tn=Te.charAt(0)===e.directorySeparator?"file://":"file:///";on[0]=tn+Te}return Z(on)}e.getRelativePathToDirectoryOrUrl=fn;function ze(Ne,be){for(;;){var de=be(Ne);if(de!==void 0)return de;var Ce=L(Ne);if(Ce===Ne)return;Ne=Ce}}e.forEachAncestorDirectory=ze;function Ve(Ne){return e.endsWith(Ne,"/node_modules")}e.isNodeModulesDirectory=Ve})(un||(un={}));var un;(function(e){function a(B){for(var U=5381,K=0;K"u")){var B=process.version;if(B){var U=B.indexOf(".");if(U!==-1)return parseInt(B.substring(1,U))}}}e.getNodeMajorVersion=Z,e.sys=void 0,e.sys&&e.sys.getEnvironmentVariable&&(x(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)})(un||(un={}));var un;(function(e){function a(p,g,t,m,N,D,c){return{code:p,category:g,key:t,message:m,reportsUnnecessary:N,elidedInCompatabilityPyramid:D,reportsDeprecated:c}}e.Diagnostics={Unterminated_string_literal:a(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:a(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:a(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:a(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:a(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:a(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:a(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:a(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:a(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_either_string_or_number:a(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_either_string_or_number_1023","An index signature parameter type must be either 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:a(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:a(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:a(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:a(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:a(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:a(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:a(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:a(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:a(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:a(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:a(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:a(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_with_a_class_declaration:a(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:a(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:a(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:a(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."),A_0_modifier_cannot_be_used_with_an_interface_declaration:a(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:a(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:a(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:a(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:a(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:a(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:a(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:a(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:a(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:a(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:a(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 type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:a(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:a(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:a(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:a(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:a(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:a(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:a(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:a(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."),Jump_target_cannot_cross_function_boundary:a(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:a(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:a(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:a(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:a(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:a(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:a(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:a(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:a(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:a(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:a(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:a(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:a(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:a(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:a(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:a(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:a(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:a(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:a(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:a(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:a(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:a(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:a(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:a(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:a(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:a(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:a(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:a(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:a(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:a(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:a(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:a(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:a(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:a(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:a(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:a(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:a(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:a(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:a(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:a(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:a(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:a(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:a(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:a(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:a(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:a(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:a(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:a(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:a(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:a(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:a(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:a(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:a(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:a(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:a(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:a(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:a(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:a(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:a(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:a(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_only_available_when_targeting_ECMAScript_2015_or_higher:a(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:a(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:a(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:a(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:a(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:a(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:a(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),with_statements_are_not_allowed_in_an_async_function_block:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_esnext_commonjs_amd_system_or_umd:a(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:a(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:a(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:a(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:a(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:a(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:a(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:a(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:a(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:a(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_esnext_or_system:a(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:a(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:a(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:a(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:a(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:a(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:a(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Did_you_mean_to_parenthesize_this_function_type:a(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:a(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:a(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:a(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:a(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:a(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:a(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:a(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:a(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),Did_you_mean_0:a(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:a(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:a(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:a(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:a(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:a(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:a(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_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:a(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:a(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:a(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:a(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:a(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:a(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:a(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:a(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:a(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:a(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:a(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:a(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:a(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:a(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:a(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:a(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:a(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:a(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:a(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:a(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:a(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:a(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:a(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:a(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_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:a(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:a(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),The_types_of_0_are_incompatible_between_these_types:a(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:a(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:a(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:a(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:a(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:a(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),Duplicate_identifier_0:a(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:a(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:a(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:a(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:a(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:a(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:a(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:a(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:a(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:a(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:a(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:a(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:a(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:a(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:a(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:a(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:a(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:a(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:a(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:a(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_of_type_any_string_number_or_symbol:a(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:a(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:a(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:a(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:a(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:a(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:a(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:a(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"),A_signature_with_an_implementation_cannot_use_a_string_literal_type:a(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:a(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:a(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:a(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:a(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:a(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:a(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:a(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:a(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:a(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:a(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:a(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:a(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:a(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:a(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:a(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:a(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:a(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:a(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:a(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:a(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:a(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:a(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:a(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:a(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:a(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:a(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:a(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:a(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:a(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:a(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:a(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:a(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:a(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:a(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:a(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:a(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:a(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:a(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:a(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:a(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:a(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:a(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:a(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:a(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:a(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:a(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:a(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'."),Property_0_does_not_exist_on_const_enum_1:a(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Classes_containing_abstract_methods_must_be_marked_abstract:a(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:a(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:a(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:a(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:a(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:a(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:a(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."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:a(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses 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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:a(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:a(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:a(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:a(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."),Object_is_of_type_unknown:a(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:a(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:a(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:a(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:a(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:a(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:a(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),Enum_type_0_circularly_references_itself:a(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:a(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_attributes_type_0_may_not_be_a_union_type:a(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:a(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:a(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:a(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:a(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."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:a(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:a(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:a(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:a(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:a(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}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:a(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:a(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:a(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:a(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:a(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:a(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:a(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:a(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:a(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:a(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:a(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:a(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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'."),Import_declaration_0_is_using_private_name_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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}'."),The_current_host_does_not_support_the_0_option:a(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:a(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:a(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:a(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:a(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:a(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:a(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:a(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:a(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:a(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:a(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:a(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:a(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:a(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:a(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:a(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:a(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:a(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:a(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:a(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:a(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:a(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:a(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:a(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:a(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:a(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:a(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:a(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:a(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:a(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:a(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:a(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_ES2021_or_ESNEXT:a(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_ES_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:a(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),Print_this_message:a(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:a(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:a(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:a(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:a(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:a(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:a(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:a(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:a(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:a(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:a(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:a(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:a(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:a(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:a(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:a(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:a(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:a(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:a(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:a(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:a(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:a(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:a(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:a(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 or -. For example '{0}' or '{1}'."),Unsupported_locale_0:a(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:a(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:a(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:a(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:a(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:a(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:a(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:a(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:a(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:a(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev:a(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev_6080","Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'."),File_0_has_an_unsupported_extension_so_skipping_it:a(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:a(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:a(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:a(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:a(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:a(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:a(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:a(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:a(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:a(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:a(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:a(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:a(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:a(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:a(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:a(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:a(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:a(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:a(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:a(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:a(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:a(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:a(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}'. ========"),Resolving_using_primary_search_paths:a(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:a(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:a(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:a(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:a(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:a(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:a(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:a(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:a(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:a(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:a(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:a(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:a(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:a(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:a(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:a(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:a(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:a(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:a(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:a(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:a(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:a(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:a(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:a(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:a(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:a(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:a(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:a(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:a(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:a(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:a(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:a(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:a(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:a(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:a(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:a(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:a(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:a(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:a(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:a(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:a(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:a(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:a(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:a(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:a(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:a(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:a(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:a(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:a(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:a(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:a(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:a(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:a(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:a(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:a(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'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:a(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:a(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:a(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:a(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:a(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:a(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:a(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:a(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:a(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:a(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:a(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:a(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:a(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:a(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:a(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Projects_to_reference:a(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:a(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:a(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:a(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:a(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:a(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:a(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:a(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:a(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:a(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects"),Enable_verbose_logging:a(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),Show_what_would_be_built_or_deleted_if_specified_with_clean:a(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')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:a(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),Option_build_must_be_the_first_command_line_argument:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:a(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:a(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:a(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:a(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:a(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:a(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."),Include_undefined_in_index_signature_results:a(6800,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6800","Include 'undefined' in index signature results"),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:a(6801,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6801","Ensure overriding members in derived classes are marked with an 'override' modifier."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:a(6802,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6802","Require undeclared properties from index signatures to use element accesses."),Variable_0_implicitly_has_an_1_type:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:a(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:a(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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."),You_cannot_rename_this_element:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:a(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:a(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:a(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:a(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:a(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:a(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:a(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:a(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:a(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:a(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:a(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:a(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_ES6_module:a(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:a(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:a(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:a(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:a(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:a(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:a(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:a(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:a(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:a(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:a(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:a(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013",`Import '{0}' from module "{1}"`),Change_0_to_1:a(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:a(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015",`Add '{0}' to existing import declaration from "{1}"`),Declare_property_0:a(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:a(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:a(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:a(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:a(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:a(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:a(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:a(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:a(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:a(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:a(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:a(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:a(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:a(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:a(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:a(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:a(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:a(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:a(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:a(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:a(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:a(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:a(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:a(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:a(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:a(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:a(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:a(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:a(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:a(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:a(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:a(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:a(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:a(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:a(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:a(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:a(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:a(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:a(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:a(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:a(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:a(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:a(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:a(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:a(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:a(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:a(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:a(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:a(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:a(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:a(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:a(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:a(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:a(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:a(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:a(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:a(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:a(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:a(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:a(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:a(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:a(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:a(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:a(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:a(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:a(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:a(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:a(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:a(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:a(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:a(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:a(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:a(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:a(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:a(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:a(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:a(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:a(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:a(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:a(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:a(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:a(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:a(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:a(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:a(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:a(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:a(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:a(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:a(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:a(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:a(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:a(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:a(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:a(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:a(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:a(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:a(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:a(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:a(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:a(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:a(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Allow_accessing_UMD_globals_from_modules:a(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),Extract_type:a(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:a(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:a(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:a(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:a(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:a(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:a(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:a(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:a(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:a(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:a(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:a(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:a(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:a(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:a(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:a(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:a(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:a(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:a(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:a(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:a(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:a(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:a(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:a(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:a(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:a(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:a(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:a(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:a(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:a(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:a(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:a(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:a(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:a(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:a(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:a(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:a(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:a(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:a(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:a(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:a(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:a(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:a(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:a(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:a(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:a(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:a(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:a(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:a(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:a(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:a(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:a(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:a(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:a(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:a(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:a(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:a(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:a(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:a(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:a(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:a(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:a(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:a(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:a(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:a(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:a(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:a(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:a(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:a(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:a(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:a(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:a(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:a(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:a(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:a(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:a(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:a(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:a(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:a(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:a(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:a(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:a(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:a(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:a(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:a(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:a(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:a(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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:a(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.")}})(un||(un={}));var un;(function(e){var a;function p(Fe){return Fe>=78}e.tokenIsIdentifierOrKeyword=p;function g(Fe){return Fe===31||p(Fe)}e.tokenIsIdentifierOrKeywordOrGreaterThan=g;var t=(a={abstract:125,any:128,as:126,asserts:127,bigint:155,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84},a.constructor=132,a.debugger=86,a.declare=133,a.default=87,a.delete=88,a.do=89,a.else=90,a.enum=91,a.export=92,a.extends=93,a.false=94,a.finally=95,a.for=96,a.from=153,a.function=97,a.get=134,a.if=98,a.implements=116,a.import=99,a.in=100,a.infer=135,a.instanceof=101,a.interface=117,a.intrinsic=136,a.is=137,a.keyof=138,a.let=118,a.module=139,a.namespace=140,a.never=141,a.new=102,a.null=103,a.number=144,a.object=145,a.package=119,a.private=120,a.protected=121,a.public=122,a.override=156,a.readonly=142,a.require=143,a.global=154,a.return=104,a.set=146,a.static=123,a.string=147,a.super=105,a.switch=106,a.symbol=148,a.this=107,a.throw=108,a.true=109,a.try=110,a.type=149,a.typeof=111,a.undefined=150,a.unique=151,a.unknown=152,a.var=112,a.void=113,a.while=114,a.with=115,a.yield=124,a.async=129,a.await=130,a.of=157,a),m=new e.Map(e.getEntries(t)),N=new e.Map(e.getEntries(Nt(Nt({},t),{"{":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,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),D=[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],c=[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],x=[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],se=[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],z=[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],ue=[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],E=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,C=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function I(Fe,Ke){if(Fe=2?I(Fe,z):Ke===1?I(Fe,x):I(Fe,D)}e.isUnicodeIdentifierStart=j;function Y(Fe,Ke){return Ke>=2?I(Fe,ue):Ke===1?I(Fe,se):I(Fe,c)}function L(Fe){var Ke=[];return Fe.forEach(function(rn,vn){Ke[rn]=vn}),Ke}var k=L(N);function h(Fe){return k[Fe]}e.tokenToString=h;function M(Fe){return N.get(Fe)}e.stringToToken=M;function O(Fe){for(var Ke=new Array,rn=0,vn=0;rn127&&R(xn)&&(Ke.push(vn),vn=rn);break}}return Ke.push(vn),Ke}e.computeLineStarts=O;function H(Fe,Ke,rn,vn){return Fe.getPositionOfLineAndCharacter?Fe.getPositionOfLineAndCharacter(Ke,rn,vn):$(Z(Fe),Ke,rn,Fe.text,vn)}e.getPositionOfLineAndCharacter=H;function $(Fe,Ke,rn,vn,xn){(Ke<0||Ke>=Fe.length)&&(xn?Ke=Ke<0?0:Ke>=Fe.length?Fe.length-1:Ke:e.Debug.fail("Bad line number. Line: "+Ke+", lineStarts.length: "+Fe.length+" , line map is correct? "+(vn!==void 0?e.arraysEqual(Fe,O(vn)):"unknown")));var Rn=Fe[Ke]+rn;return xn?Rn>Fe[Ke+1]?Fe[Ke+1]:typeof vn=="string"&&Rn>vn.length?vn.length:Rn:(Ke=8192&&Fe<=8203||Fe===8239||Fe===8287||Fe===12288||Fe===65279}e.isWhiteSpaceSingleLine=v;function R(Fe){return Fe===10||Fe===13||Fe===8232||Fe===8233}e.isLineBreak=R;function F(Fe){return Fe>=48&&Fe<=57}function _(Fe){return F(Fe)||Fe>=65&&Fe<=70||Fe>=97&&Fe<=102}function u(Fe){return Fe<=1114111}function b(Fe){return Fe>=48&&Fe<=55}e.isOctalDigit=b;function w(Fe,Ke){var rn=Fe.charCodeAt(Ke);switch(rn){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 Ke===0;default:return rn>127}}e.couldStartTrivia=w;function ee(Fe,Ke,rn,vn,xn){if(e.positionIsSynthesized(Ke))return Ke;for(var Rn=!1;;){var Ge=Fe.charCodeAt(Ke);switch(Ge){case 13:Fe.charCodeAt(Ke+1)===10&&Ke++;case 10:if(Ke++,rn)return Ke;Rn=!!xn;continue;case 9:case 11:case 12:case 32:Ke++;continue;case 47:if(vn)break;if(Fe.charCodeAt(Ke+1)===47){for(Ke+=2;Ke127&&G(Ge)){Ke++;continue}break}return Ke}}e.skipTrivia=ee;var le=7;function ie(Fe,Ke){if(e.Debug.assert(Ke>=0),Ke===0||R(Fe.charCodeAt(Ke-1))){var rn=Fe.charCodeAt(Ke);if(Ke+le=0&&rn127&&G(xe)){oe&&R(xe)&&(Ee=!0),rn++;continue}break e}}return oe&&(te=xn(we,Re,yn,Ee,Rn,te)),te}function re(Fe,Ke,rn,vn){return X(!1,Fe,Ke,!1,rn,vn)}e.forEachLeadingCommentRange=re;function ve(Fe,Ke,rn,vn){return X(!1,Fe,Ke,!0,rn,vn)}e.forEachTrailingCommentRange=ve;function ke(Fe,Ke,rn,vn,xn){return X(!0,Fe,Ke,!1,rn,vn,xn)}e.reduceEachLeadingCommentRange=ke;function Ie(Fe,Ke,rn,vn,xn){return X(!0,Fe,Ke,!0,rn,vn,xn)}e.reduceEachTrailingCommentRange=Ie;function Je(Fe,Ke,rn,vn,xn,Rn){return Rn||(Rn=[]),Rn.push({kind:rn,pos:Fe,end:Ke,hasTrailingNewLine:vn}),Rn}function je(Fe,Ke){return ke(Fe,Ke,Je,void 0,void 0)}e.getLeadingCommentRanges=je;function fn(Fe,Ke){return Ie(Fe,Ke,Je,void 0,void 0)}e.getTrailingCommentRanges=fn;function ze(Fe){var Ke=ge.exec(Fe);if(Ke)return Ke[0]}e.getShebang=ze;function Ve(Fe,Ke){return Fe>=65&&Fe<=90||Fe>=97&&Fe<=122||Fe===36||Fe===95||Fe>127&&j(Fe,Ke)}e.isIdentifierStart=Ve;function Ne(Fe,Ke,rn){return Fe>=65&&Fe<=90||Fe>=97&&Fe<=122||Fe>=48&&Fe<=57||Fe===36||Fe===95||(rn===1?Fe===45||Fe===58:!1)||Fe>127&&Y(Fe,Ke)}e.isIdentifierPart=Ne;function be(Fe,Ke,rn){var vn=Ce(Fe,0);if(!Ve(vn,Ke))return!1;for(var xn=ye(vn);xn115},isReservedWord:function(){return J>=80&&J<=115},isUnterminated:function(){return(me&4)!==0},getCommentDirectives:function(){return xe},getNumericLiteralFlags:function(){return me&1008},getTokenFlags:function(){return me},reScanGreaterToken:Be,reScanAsteriskEqualsToken:Zn,reScanSlashToken:_r,reScanTemplateToken:Pr,reScanTemplateHeadOrNoSubstitutionTemplate:tt,scanJsxIdentifier:dr,scanJsxAttributeValue:Rr,reScanJsxAttributeValue:qr,reScanJsxToken:mr,reScanLessThanToken:Ln,reScanQuestionToken:jn,reScanInvalidIdentifier:bn,scanJsxToken:ar,scanJsDocToken:br,scan:Bn,getText:Vt,clearCommentDirectives:Yr,setText:Ut,setScriptTarget:ma,setLanguageVariant:Sa,setOnError:ka,setTextPos:qt,setInJSDocType:ga,tryScan:cr,lookAhead:dt,scanRange:vt};return e.Debug.isDebugging&&Object.defineProperty(Se,"__debugShowCurrentPositionInText",{get:function(){var Mr=Se.getText();return Mr.slice(0,Se.getStartPos())+"║"+Mr.slice(Se.getStartPos())}}),Se;function Ye(Mr,Kr,jr){if(Kr===void 0&&(Kr=Re),xn){var En=Re;Re=Kr,xn(Mr,jr||0),Re=En}}function an(){for(var Mr=Re,Kr=!1,jr=!1,En="";;){var tr=we.charCodeAt(Re);if(tr===95){me|=512,Kr?(Kr=!1,jr=!0,En+=we.substring(Mr,Re)):Ye(jr?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Re,1),Re++,Mr=Re;continue}if(F(tr)){Kr=!0,jr=!1,Re++;continue}break}return we.charCodeAt(Re-1)===95&&Ye(e.Diagnostics.Numeric_separators_are_not_allowed_here,Re-1,1),En+we.substring(Mr,Re)}function Sn(){var Mr=Re,Kr=an(),jr,En;we.charCodeAt(Re)===46&&(Re++,jr=an());var tr=Re;if(we.charCodeAt(Re)===69||we.charCodeAt(Re)===101){Re++,me|=16,(we.charCodeAt(Re)===43||we.charCodeAt(Re)===45)&&Re++;var gr=Re,Or=an();Or?(En=we.substring(tr,gr)+Or,tr=Re):Ye(e.Diagnostics.Digit_expected)}var mt;if(me&512?(mt=Kr,jr&&(mt+="."+jr),En&&(mt+=En)):mt=we.substring(Mr,tr),jr!==void 0||me&16)return Xn(Mr,jr===void 0&&!!(me&16)),{type:8,value:""+ +mt};te=mt;var ft=Qe();return Xn(Mr),{type:ft,value:te}}function Xn(Mr,Kr){if(Ve(Ce(we,Re),Fe)){var jr=Re,En=kn().length;En===1&&we[jr]==="n"?Ye(Kr?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,Mr,jr-Mr+1):(Ye(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,jr,En),Re=jr)}}function wn(){for(var Mr=Re;b(we.charCodeAt(Re));)Re++;return+we.substring(Mr,Re)}function qn(Mr,Kr){var jr=Vr(Mr,!1,Kr);return jr?parseInt(jr,16):-1}function yr(Mr,Kr){return Vr(Mr,!0,Kr)}function Vr(Mr,Kr,jr){for(var En=[],tr=!1,gr=!1;En.length=65&&Or<=70)Or+=32;else if(!(Or>=48&&Or<=57||Or>=97&&Or<=102))break;En.push(Or),Re++,gr=!1}return En.length=yn){jr+=we.substring(En,Re),me|=4,Ye(e.Diagnostics.Unterminated_string_literal);break}var tr=we.charCodeAt(Re);if(tr===Kr){jr+=we.substring(En,Re),Re++;break}if(tr===92&&!Mr){jr+=we.substring(En,Re),jr+=Tn(),En=Re;continue}if(R(tr)&&!Mr){jr+=we.substring(En,Re),me|=4,Ye(e.Diagnostics.Unterminated_string_literal);break}Re++}return jr}function We(Mr){var Kr=we.charCodeAt(Re)===96;Re++;for(var jr=Re,En="",tr;;){if(Re>=yn){En+=we.substring(jr,Re),me|=4,Ye(e.Diagnostics.Unterminated_template_literal),tr=Kr?14:17;break}var gr=we.charCodeAt(Re);if(gr===96){En+=we.substring(jr,Re),Re++,tr=Kr?14:17;break}if(gr===36&&Re+1=yn)return Ye(e.Diagnostics.Unexpected_end_of_text),"";var jr=we.charCodeAt(Re);switch(Re++,jr){case 48:return Mr&&Re=0?String.fromCharCode(Kr):(Ye(e.Diagnostics.Hexadecimal_digit_expected),"")}function Vn(){var Mr=yr(1,!1),Kr=Mr?parseInt(Mr,16):-1,jr=!1;return Kr<0?(Ye(e.Diagnostics.Hexadecimal_digit_expected),jr=!0):Kr>1114111&&(Ye(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),jr=!0),Re>=yn?(Ye(e.Diagnostics.Unexpected_end_of_text),jr=!0):we.charCodeAt(Re)===125?Re++:(Ye(e.Diagnostics.Unterminated_Unicode_escape_sequence),jr=!0),jr?"":tn(Kr)}function Hn(){if(Re+5=2&&Ce(we,Re+1)===117&&Ce(we,Re+2)===123){var Mr=Re;Re+=3;var Kr=yr(1,!1),jr=Kr?parseInt(Kr,16):-1;return Re=Mr,jr}return-1}function kn(){for(var Mr="",Kr=Re;Re=0&&Ne(jr,Fe)){Re+=3,me|=8,Mr+=Vn(),Kr=Re;continue}if(jr=Hn(),!(jr>=0&&Ne(jr,Fe)))break;me|=1024,Mr+=we.substring(Kr,Re),Mr+=tn(jr),Re+=6,Kr=Re}else break}return Mr+=we.substring(Kr,Re),Mr}function Sr(){var Mr=te.length;if(Mr>=2&&Mr<=12){var Kr=te.charCodeAt(0);if(Kr>=97&&Kr<=122){var jr=m.get(te);if(jr!==void 0)return J=jr}}return J=78}function Cr(Mr){for(var Kr="",jr=!1,En=!1;;){var tr=we.charCodeAt(Re);if(tr===95){me|=512,jr?(jr=!1,En=!0):Ye(En?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,Re,1),Re++;continue}if(jr=!0,!F(tr)||tr-48>=Mr)break;Kr+=we[Re],Re++,En=!1}return we.charCodeAt(Re-1)===95&&Ye(e.Diagnostics.Numeric_separators_are_not_allowed_here,Re-1,1),Kr}function Qe(){if(we.charCodeAt(Re)===110)return te+="n",me&384&&(te=e.parsePseudoBigInt(te)+"n"),Re++,9;var Mr=me&128?parseInt(te.slice(2),2):me&256?parseInt(te.slice(2),8):+te;return te=""+Mr,8}function Bn(){var Mr;Ee=Re,me=0;for(var Kr=!1;;){if(oe=Re,Re>=yn)return J=1;var jr=Ce(we,Re);if(jr===35&&Re===0&&fe(we,Re)){if(Re=A(we,Re),Ke)continue;return J=6}switch(jr){case 10:case 13:if(me|=1,Ke){Re++;continue}else return jr===13&&Re+1=0&&Ve(Or,Fe))return Re+=3,me|=8,te=Vn()+kn(),J=Sr();var mt=Hn();return mt>=0&&Ve(mt,Fe)?(Re+=6,me|=1024,te=String.fromCharCode(mt)+kn(),J=Sr()):(Ye(e.Diagnostics.Invalid_character),Re++,J=0);case 35:if(Re!==0&&we[Re+1]==="!")return Ye(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),Re++,J=0;if(Re++,Ve(jr=we.charCodeAt(Re),Fe)){for(Re++;Re=yn)return J=1;var Kr=we.charCodeAt(Re);if(Kr===60)return we.charCodeAt(Re+1)===47?(Re+=2,J=30):(Re++,J=29);if(Kr===123)return Re++,J=18;for(var jr=0;Re0)break;G(Kr)||(jr=Re)}Re++}return te=we.substring(Ee,Re),jr===-1?12:11}function dr(){if(p(J)){for(var Mr=!1;Re=yn)return J=1;var Mr=Ce(we,Re);switch(Re+=ye(Mr),Mr){case 9:case 11:case 12:case 32:for(;Re=0&&Ve(Kr,Fe))return Re+=3,me|=8,te=Vn()+kn(),J=Sr();var jr=Hn();return jr>=0&&Ve(jr,Fe)?(Re+=6,me|=1024,te=String.fromCharCode(jr)+kn(),J=Sr()):(Re++,J=0)}if(Ve(Mr,Fe)){for(var En=Mr;Re=0),Re=Mr,Ee=Mr,oe=Mr,J=0,te=void 0,me=0}function ga(Mr){P+=Mr?1:-1}}e.createScanner=de;var Ce=String.prototype.codePointAt?function(Fe,Ke){return Fe.codePointAt(Ke)}:function(Ke,rn){var vn=Ke.length;if(!(rn<0||rn>=vn)){var xn=Ke.charCodeAt(rn);if(xn>=55296&&xn<=56319&&vn>rn+1){var Rn=Ke.charCodeAt(rn+1);if(Rn>=56320&&Rn<=57343)return(xn-55296)*1024+Rn-56320+65536}return xn}};function ye(Fe){return Fe>=65536?2:1}function on(Fe){if(e.Debug.assert(0<=Fe&&Fe<=1114111),Fe<=65535)return String.fromCharCode(Fe);var Ke=Math.floor((Fe-65536)/1024)+55296,rn=(Fe-65536)%1024+56320;return String.fromCharCode(Ke,rn)}var Te=String.fromCodePoint?function(Fe){return String.fromCodePoint(Fe)}:on;function tn(Fe){return Te(Fe)}e.utf16EncodeAsString=tn})(un||(un={}));var un;(function(e){function a(He){return e.pathIsRelative(He)||e.isRootedDiskPath(He)}e.isExternalModuleNameRelative=a;function p(He){return e.sortAndDeduplicate(He,e.compareDiagnostics)}e.sortAndDeduplicateDiagnostics=p;function g(He){switch(He.target){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=g;function t(He){return He.start+He.length}e.textSpanEnd=t;function m(He){return He.length===0}e.textSpanIsEmpty=m;function N(He,ur){return ur>=He.start&&ur=He.pos&&ur<=He.end}e.textRangeContainsPositionInclusive=D;function c(He,ur){return ur.start>=He.start&&t(ur)<=t(He)}e.textSpanContainsTextSpan=c;function x(He,ur){return se(He,ur)!==void 0}e.textSpanOverlapsWith=x;function se(He,ur){var ae=I(He,ur);return ae&&ae.length===0?void 0:ae}e.textSpanOverlap=se;function z(He,ur){return E(He.start,He.length,ur.start,ur.length)}e.textSpanIntersectsWithTextSpan=z;function ue(He,ur,ae){return E(He.start,He.length,ur,ae)}e.textSpanIntersectsWith=ue;function E(He,ur,ae,An){var ir=He+ur,Ur=ae+An;return ae<=ir&&Ur>=He}e.decodedTextSpanIntersectsWith=E;function C(He,ur){return ur<=t(He)&&ur>=He.start}e.textSpanIntersectsWithPosition=C;function I(He,ur){var ae=Math.max(He.start,ur.start),An=Math.min(t(He),t(ur));return ae<=An?Y(ae,An):void 0}e.textSpanIntersection=I;function j(He,ur){if(He<0)throw new Error("start < 0");if(ur<0)throw new Error("length < 0");return{start:He,length:ur}}e.createTextSpan=j;function Y(He,ur){return j(He,ur-He)}e.createTextSpanFromBounds=Y;function L(He){return j(He.span.start,He.newLength)}e.textChangeRangeNewSpan=L;function k(He){return m(He.span)&&He.newLength===0}e.textChangeRangeIsUnchanged=k;function h(He,ur){if(ur<0)throw new Error("newLength < 0");return{span:He,newLength:ur}}e.createTextChangeRange=h,e.unchangedTextChangeRange=h(j(0,0),0);function M(He){if(He.length===0)return e.unchangedTextChangeRange;if(He.length===1)return He[0];for(var ur=He[0],ae=ur.span.start,An=t(ur.span),ir=ae+ur.newLength,Ur=1;Ur=2&&He.charCodeAt(0)===95&&He.charCodeAt(1)===95?"_"+He:He}e.escapeLeadingUnderscores=b;function w(He){var ur=He;return ur.length>=3&&ur.charCodeAt(0)===95&&ur.charCodeAt(1)===95&&ur.charCodeAt(2)===95?ur.substr(1):ur}e.unescapeLeadingUnderscores=w;function ee(He){return w(He.escapedText)}e.idText=ee;function le(He){return He.valueDeclaration&&br(He.valueDeclaration)?ee(He.valueDeclaration.name):w(He.escapedName)}e.symbolName=le;function ie(He){var ur=He.parent.parent;if(ur){if(De(ur))return W(ur);switch(ur.kind){case 233:if(ur.declarationList&&ur.declarationList.declarations[0])return W(ur.declarationList.declarations[0]);break;case 234:var ae=ur.expression;switch(ae.kind===217&&ae.operatorToken.kind===62&&(ae=ae.left),ae.kind){case 202:return ae.name;case 203:var An=ae.argumentExpression;if(e.isIdentifier(An))return An}break;case 208:return W(ur.expression);case 246:{if(De(ur.statement)||bo(ur.statement))return W(ur.statement);break}}}}function W(He){var ur=re(He);return ur&&e.isIdentifier(ur)?ur:void 0}function ge(He,ur){return!!(A(He)&&e.isIdentifier(He.name)&&ee(He.name)===ee(ur)||e.isVariableStatement(He)&&e.some(He.declarationList.declarations,function(ae){return ge(ae,ur)}))}e.nodeHasName=ge;function fe(He){return He.name||ie(He)}e.getNameOfJSDocTypedef=fe;function A(He){return!!He.name}e.isNamedDeclaration=A;function X(He){switch(He.kind){case 78:return He;case 337:case 330:{var ur=He.name;if(ur.kind===158)return ur.right;break}case 204:case 217:{var ae=He;switch(e.getAssignmentDeclarationKind(ae)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(ae.left);case 7:case 8:case 9:return ae.arguments[1];default:return}}case 335:return fe(He);case 329:return ie(He);case 267:{var An=He.expression;return e.isIdentifier(An)?An:void 0}case 203:var ir=He;if(e.isBindableStaticElementAccessExpression(ir))return ir.argumentExpression}return He.name}e.getNonAssignedNameOfDeclaration=X;function re(He){if(He!==void 0)return X(He)||(e.isFunctionExpression(He)||e.isArrowFunction(He)||e.isClassExpression(He)?ve(He):void 0)}e.getNameOfDeclaration=re;function ve(He){if(He.parent){if(e.isPropertyAssignment(He.parent)||e.isBindingElement(He.parent))return He.parent.name;if(e.isBinaryExpression(He.parent)&&He===He.parent.right){if(e.isIdentifier(He.parent.left))return He.parent.left;if(e.isAccessExpression(He.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(He.parent.left)}else if(e.isVariableDeclaration(He.parent)&&e.isIdentifier(He.parent.name))return He.parent.name}else return}e.getAssignedName=ve;function ke(He,ur){if(He.name)if(e.isIdentifier(He.name)){var ae=He.name.escapedText;return te(He.parent,ur).filter(function(Ur){return e.isJSDocParameterTag(Ur)&&e.isIdentifier(Ur.name)&&Ur.name.escapedText===ae})}else{var An=He.parent.parameters.indexOf(He);e.Debug.assert(An>-1,"Parameters should always be in their parents' parameter list");var ir=te(He.parent,ur).filter(e.isJSDocParameterTag);if(An=158}e.isNodeKind=Zn;function _r(He){return He>=0&&He<=157}e.isTokenKind=_r;function zn(He){return _r(He.kind)}e.isToken=zn;function Er(He){return He.hasOwnProperty("pos")&&He.hasOwnProperty("end")}e.isNodeArray=Er;function Pr(He){return 8<=He&&He<=14}e.isLiteralKind=Pr;function tt(He){return Pr(He.kind)}e.isLiteralExpression=tt;function mr(He){return 14<=He&&He<=17}e.isTemplateLiteralKind=mr;function Ln(He){return mr(He.kind)}e.isTemplateLiteralToken=Ln;function jn(He){var ur=He.kind;return ur===16||ur===17}e.isTemplateMiddleOrTemplateTail=jn;function ar(He){return e.isImportSpecifier(He)||e.isExportSpecifier(He)}e.isImportOrExportSpecifier=ar;function dr(He){switch(He.kind){case 266:case 271:return He.parent.parent.isTypeOnly;case 264:return He.parent.isTypeOnly;case 263:case 261:return He.isTypeOnly;default:return!1}}e.isTypeOnlyImportOrExportDeclaration=dr;function Rr(He){return He.kind===10||mr(He.kind)}e.isStringTextContainingNode=Rr;function qr(He){return e.isIdentifier(He)&&(He.autoGenerateFlags&7)>0}e.isGeneratedIdentifier=qr;function br(He){return(e.isPropertyDeclaration(He)||tr(He))&&e.isPrivateIdentifier(He.name)}e.isPrivateIdentifierClassElementDeclaration=br;function Br(He){return e.isPropertyAccessExpression(He)&&e.isPrivateIdentifier(He.name)}e.isPrivateIdentifierPropertyAccessExpression=Br;function vt(He){switch(He){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 142:case 123:case 156:return!0}return!1}e.isModifierKind=vt;function dt(He){return!!(e.modifierToFlag(He)&16476)}e.isParameterPropertyModifier=dt;function cr(He){return dt(He)||He===123||He===156}e.isClassMemberModifier=cr;function Vt(He){return vt(He.kind)}e.isModifier=Vt;function Yr(He){var ur=He.kind;return ur===158||ur===78}e.isEntityName=Yr;function Ut(He){var ur=He.kind;return ur===78||ur===79||ur===10||ur===8||ur===159}e.isPropertyName=Ut;function ka(He){var ur=He.kind;return ur===78||ur===197||ur===198}e.isBindingName=ka;function ma(He){return!!He&&ga(He.kind)}e.isFunctionLike=ma;function Sa(He){return He&&qt(He.kind)}e.isFunctionLikeDeclaration=Sa;function qt(He){switch(He){case 252:case 166:case 167:case 168:case 169:case 209:case 210:return!0;default:return!1}}function ga(He){switch(He){case 165:case 170:case 315:case 171:case 172:case 175:case 309:case 176:return!0;default:return qt(He)}}e.isFunctionLikeKind=ga;function Mr(He){return e.isSourceFile(He)||e.isModuleBlock(He)||e.isBlock(He)&&ma(He.parent)}e.isFunctionOrModuleBlock=Mr;function Kr(He){var ur=He.kind;return ur===167||ur===164||ur===166||ur===168||ur===169||ur===172||ur===230}e.isClassElement=Kr;function jr(He){return He&&(He.kind===253||He.kind===222)}e.isClassLike=jr;function En(He){return He&&(He.kind===168||He.kind===169)}e.isAccessor=En;function tr(He){switch(He.kind){case 166:case 168:case 169:return!0;default:return!1}}e.isMethodOrAccessor=tr;function gr(He){var ur=He.kind;return ur===171||ur===170||ur===163||ur===165||ur===172}e.isTypeElement=gr;function Or(He){return gr(He)||Kr(He)}e.isClassOrTypeElement=Or;function mt(He){var ur=He.kind;return ur===289||ur===290||ur===291||ur===166||ur===168||ur===169}e.isObjectLiteralElementLike=mt;function ft(He){return e.isTypeNodeKind(He.kind)}e.isTypeNode=ft;function Dt(He){switch(He.kind){case 175:case 176:return!0}return!1}e.isFunctionOrConstructorTypeNode=Dt;function sa(He){if(He){var ur=He.kind;return ur===198||ur===197}return!1}e.isBindingPattern=sa;function Wa(He){var ur=He.kind;return ur===200||ur===201}e.isAssignmentPattern=Wa;function ii(He){var ur=He.kind;return ur===199||ur===223}e.isArrayBindingElement=ii;function ri(He){switch(He.kind){case 250:case 161:case 199:return!0}return!1}e.isDeclarationBindingElement=ri;function mi(He){return Ei(He)||_i(He)}e.isBindingOrAssignmentPattern=mi;function Ei(He){switch(He.kind){case 197:case 201:return!0}return!1}e.isObjectBindingOrAssignmentPattern=Ei;function _i(He){switch(He.kind){case 198:case 200:return!0}return!1}e.isArrayBindingOrAssignmentPattern=_i;function yi(He){var ur=He.kind;return ur===202||ur===158||ur===196}e.isPropertyAccessOrQualifiedNameOrImportTypeNode=yi;function Ni(He){var ur=He.kind;return ur===202||ur===158}e.isPropertyAccessOrQualifiedName=Ni;function ja(He){switch(He.kind){case 276:case 275:case 204:case 205:case 206:case 162:return!0;default:return!1}}e.isCallLikeExpression=ja;function ui(He){return He.kind===204||He.kind===205}e.isCallOrNewExpression=ui;function Di(He){var ur=He.kind;return ur===219||ur===14}e.isTemplateLiteral=Di;function Io(He){return _o(kn(He).kind)}e.isLeftHandSideExpression=Io;function _o(He){switch(He){case 202:case 203:case 205:case 204:case 274:case 275:case 278:case 206:case 200:case 208:case 201:case 222:case 209:case 78:case 13:case 8:case 9:case 10:case 14:case 219:case 94:case 103:case 107:case 109:case 105:case 226:case 227:case 99:return!0;default:return!1}}function ro(He){return Zi(kn(He).kind)}e.isUnaryExpression=ro;function Zi(He){switch(He){case 215:case 216:case 211:case 212:case 213:case 214:case 207:return!0;default:return _o(He)}}function Ao(He){switch(He.kind){case 216:return!0;case 215:return He.operator===45||He.operator===46;default:return!1}}e.isUnaryExpressionWithWrite=Ao;function bo(He){return ti(kn(He).kind)}e.isExpression=bo;function ti(He){switch(He){case 218:case 220:case 210:case 217:case 221:case 225:case 223:case 341:case 340:return!0;default:return Zi(He)}}function Xt(He){var ur=He.kind;return ur===207||ur===225}e.isAssertionExpression=Xt;function gi(He){return e.isNotEmittedStatement(He)||e.isPartiallyEmittedExpression(He)}e.isNotEmittedOrPartiallyEmittedNode=gi;function Ji(He,ur){switch(He.kind){case 238:case 239:case 240:case 236:case 237:return!0;case 246:return ur&&Ji(He.statement,ur)}return!1}e.isIterationStatement=Ji;function Ui(He){return e.isExportAssignment(He)||e.isExportDeclaration(He)}e.isScopeMarker=Ui;function go(He){return e.some(He,Ui)}e.hasScopeMarker=go;function wo(He){return!e.isAnyImportOrReExport(He)&&!e.isExportAssignment(He)&&!e.hasSyntacticModifier(He,1)&&!e.isAmbientModule(He)}e.needsScopeMarker=wo;function oo(He){return e.isAnyImportOrReExport(He)||e.isExportAssignment(He)||e.hasSyntacticModifier(He,1)}e.isExternalModuleIndicator=oo;function Go(He){return He.kind===239||He.kind===240}e.isForInOrOfStatement=Go;function Vo(He){return e.isBlock(He)||bo(He)}e.isConciseBody=Vo;function pr(He){return e.isBlock(He)}e.isFunctionBody=pr;function Ot(He){return e.isVariableDeclarationList(He)||bo(He)}e.isForInitializer=Ot;function Xe(He){var ur=He.kind;return ur===258||ur===257||ur===78}e.isModuleBody=Xe;function Jn(He){var ur=He.kind;return ur===258||ur===257}e.isNamespaceBody=Jn;function fr(He){var ur=He.kind;return ur===78||ur===257}e.isJSDocNamespaceBody=fr;function Zr(He){var ur=He.kind;return ur===265||ur===264}e.isNamedImportBindings=Zr;function Ae(He){return He.kind===257||He.kind===256}e.isModuleOrEnumDeclaration=Ae;function Dn(He){return He===210||He===199||He===253||He===222||He===167||He===256||He===292||He===271||He===252||He===209||He===168||He===263||He===261||He===266||He===254||He===281||He===166||He===165||He===257||He===260||He===264||He===270||He===161||He===289||He===164||He===163||He===169||He===290||He===255||He===160||He===250||He===335||He===328||He===337}function pe(He){return He===252||He===272||He===253||He===254||He===255||He===256||He===257||He===262||He===261||He===268||He===267||He===260}function Q(He){return He===242||He===241||He===249||He===236||He===234||He===232||He===239||He===240||He===238||He===235||He===246||He===243||He===245||He===247||He===248||He===233||He===237||He===244||He===339||He===343||He===342}function De(He){return He.kind===160?He.parent&&He.parent.kind!==334||e.isInJSFile(He):Dn(He.kind)}e.isDeclaration=De;function qe(He){return pe(He.kind)}e.isDeclarationStatement=qe;function sn(He){return Q(He.kind)}e.isStatementButNotDeclaration=sn;function Mn(He){var ur=He.kind;return Q(ur)||pe(ur)||or(He)}e.isStatement=Mn;function or(He){return He.kind!==231||He.parent!==void 0&&(He.parent.kind===248||He.parent.kind===288)?!1:!e.isFunctionBlock(He)}function Ir(He){var ur=He.kind;return Q(ur)||pe(ur)||ur===231}e.isStatementOrBlock=Ir;function at(He){var ur=He.kind;return ur===273||ur===158||ur===78}e.isModuleReference=at;function Ft(He){var ur=He.kind;return ur===107||ur===78||ur===202}e.isJsxTagNameExpression=Ft;function Da(He){var ur=He.kind;return ur===274||ur===284||ur===275||ur===11||ur===278}e.isJsxChild=Da;function $a(He){var ur=He.kind;return ur===281||ur===283}e.isJsxAttributeLike=$a;function Za(He){var ur=He.kind;return ur===10||ur===284}e.isStringLiteralOrJsxExpression=Za;function hi(He){var ur=He.kind;return ur===276||ur===275}e.isJsxOpeningLikeElement=hi;function vo(He){var ur=He.kind;return ur===285||ur===286}e.isCaseOrDefaultClause=vo;function fs(He){return He.kind>=302&&He.kind<=337}e.isJSDocNode=fs;function bs(He){return He.kind===312||He.kind===311||He.kind===313||He.kind===316||ds(He)||e.isJSDocTypeLiteral(He)||e.isJSDocSignature(He)}e.isJSDocCommentContainingNode=bs;function ds(He){return He.kind>=317&&He.kind<=337}e.isJSDocTag=ds;function gs(He){return He.kind===169}e.isSetAccessor=gs;function Zo(He){return He.kind===168}e.isGetAccessor=Zo;function ws(He){var ur=He.jsDoc;return!!ur&&ur.length>0}e.hasJSDocNodes=ws;function Ws(He){return!!He.type}e.hasType=Ws;function Ts(He){return!!He.initializer}e.hasInitializer=Ts;function Gs(He){switch(He.kind){case 250:case 161:case 199:case 163:case 164:case 289:case 292:return!0;default:return!1}}e.hasOnlyExpressionInitializer=Gs;function Cs(He){return He.kind===281||He.kind===283||mt(He)}e.isObjectLiteralElement=Cs;function xs(He){return He.kind===174||He.kind===224}e.isTypeReferenceType=xs;var vs=1073741823;function js(He){for(var ur=vs,ae=0,An=He;ae=0),e.getLineStarts(ne)[l]}e.getStartPositionOfLine=T;function G(l){var ne=U(l),$e=e.getLineAndCharacterOfPosition(ne,l.pos);return ne.fileName+"("+($e.line+1)+","+($e.character+1)+")"}e.nodePosToString=G;function v(l,ne){e.Debug.assert(l>=0);var $e=e.getLineStarts(ne),Pn=l,hr=ne.text;if(Pn+1===$e.length)return hr.length-1;var yt=$e[Pn],Mt=$e[Pn+1]-1;for(e.Debug.assert(e.isLineBreak(hr.charCodeAt(Mt)));yt<=Mt&&e.isLineBreak(hr.charCodeAt(Mt));)Mt--;return Mt}e.getEndLinePosition=v;function R(l,ne,$e){return!($e&&$e(ne))&&!l.identifiers.has(ne)}e.isFileLevelUniqueName=R;function F(l){return l===void 0?!0:l.pos===l.end&&l.pos>=0&&l.kind!==1}e.nodeIsMissing=F;function _(l){return!F(l)}e.nodeIsPresent=_;function u(l,ne,$e){if(ne===void 0||ne.length===0)return l;for(var Pn=0;Pn0?X(l._children[0],ne,$e):e.skipTrivia((ne||U(l)).text,l.pos,!1,!1,Zr(l))}e.getTokenPosOfNode=X;function re(l,ne){return F(l)||!l.decorators?X(l,ne):e.skipTrivia((ne||U(l)).text,l.decorators.end)}e.getNonDecoratorTokenPosOfNode=re;function ve(l,ne,$e){return $e===void 0&&($e=!1),Je(l.text,ne,$e)}e.getSourceTextOfNodeFromSourceFile=ve;function ke(l){return!!e.findAncestor(l,e.isJSDocTypeExpression)}function Ie(l){return!!(e.isExportDeclaration(l)&&l.exportClause&&e.isNamespaceExport(l.exportClause)&&l.exportClause.name.escapedText==="default")}e.isExportNamespaceAsDefaultDeclaration=Ie;function Je(l,ne,$e){if($e===void 0&&($e=!1),F(ne))return"";var Pn=l.substring($e?ne.pos:e.skipTrivia(l,ne.pos),ne.end);return ke(ne)&&(Pn=Pn.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),Pn}e.getTextOfNodeFromSourceText=Je;function je(l,ne){return ne===void 0&&(ne=!1),ve(U(l),l,ne)}e.getTextOfNode=je;function fn(l){return l.pos}function ze(l,ne){return e.binarySearch(l,ne,fn,e.compareValues)}e.indexOfNode=ze;function Ve(l){var ne=l.emitNode;return ne&&ne.flags||0}e.getEmitFlags=Ve;function Ne(){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=Ne,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"}(e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}));function be(l,ne,$e){if(de(l,$e))return ve(ne,l);switch(l.kind){case 10:{var Pn=$e&2?Cc:$e&1||Ve(l)&16777216?Cu:td;return l.singleQuote?"'"+Pn(l.text,39)+"'":'"'+Pn(l.text,34)+'"'}case 14:case 15:case 16:case 17:{var Pn=$e&1||Ve(l)&16777216?Cu:td,hr=l.rawText||jd(Pn(l.text,96));switch(l.kind){case 14:return"`"+hr+"`";case 15:return"`"+hr+"${";case 16:return"}"+hr+"${";case 17:return"}"+hr+"`"}break}case 8:case 9:return l.text;case 13:return $e&4&&l.isUnterminated?l.text+(l.text.charCodeAt(l.text.length-1)===92?" /":"/"):l.text}return e.Debug.fail("Literal kind '"+l.kind+"' not accounted for.")}e.getLiteralText=be;function de(l,ne){return Au(l)||!l.parent||ne&4&&l.isUnterminated?!1:e.isNumericLiteral(l)&&l.numericLiteralFlags&512?!!(ne&8):!e.isBigIntLiteral(l)}function Ce(l){return e.isString(l)?'"'+td(l)+'"':""+l}e.getTextOfConstantValue=Ce;function ye(l){return e.getBaseFileName(l).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}e.makeIdentifierFromModuleName=ye;function on(l){return(e.getCombinedNodeFlags(l)&3)!==0||Te(l)}e.isBlockOrCatchScoped=on;function Te(l){var ne=Sf(l);return ne.kind===250&&ne.parent.kind===288}e.isCatchClauseVariableDeclarationOrBindingElement=Te;function tn(l){return e.isModuleDeclaration(l)&&(l.name.kind===10||Ge(l))}e.isAmbientModule=tn;function Fe(l){return e.isModuleDeclaration(l)&&l.name.kind===10}e.isModuleWithStringLiteralName=Fe;function Ke(l){return e.isModuleDeclaration(l)&&e.isStringLiteral(l.name)}e.isNonGlobalAmbientModule=Ke;function rn(l){return e.isModuleDeclaration(l)||e.isIdentifier(l)}e.isEffectiveModuleDeclaration=rn;function vn(l){return xn(l.valueDeclaration)}e.isShorthandAmbientModuleSymbol=vn;function xn(l){return!!l&&l.kind===257&&!l.body}function Rn(l){return l.kind===298||l.kind===257||e.isFunctionLike(l)}e.isBlockScopedContainerTopLevel=Rn;function Ge(l){return!!(l.flags&1024)}e.isGlobalScopeAugmentation=Ge;function we(l){return tn(l)&&Re(l)}e.isExternalModuleAugmentation=we;function Re(l){switch(l.parent.kind){case 298:return e.isExternalModule(l.parent);case 258:return tn(l.parent.parent)&&e.isSourceFile(l.parent.parent.parent)&&!e.isExternalModule(l.parent.parent.parent)}return!1}e.isModuleAugmentationExternal=Re;function yn(l){var ne;return(ne=l.declarations)===null||ne===void 0?void 0:ne.find(function($e){return!we($e)&&!(e.isModuleDeclaration($e)&&Ge($e))})}e.getNonAugmentationDeclaration=yn;function Ee(l,ne){return e.isExternalModule(l)||ne.isolatedModules||vd(ne)===e.ModuleKind.CommonJS&&!!l.commonJsModuleIndicator}e.isEffectiveExternalModule=Ee;function oe(l,ne){switch(l.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return l.isDeclarationFile?!1:zm(ne,"alwaysStrict")||e.startsWithUseStrict(l.statements)?!0:e.isExternalModule(l)||ne.isolatedModules?vd(ne)>=e.ModuleKind.ES2015?!0:!ne.noImplicitUseStrict:!1}e.isEffectiveStrictModeSourceFile=oe;function J(l,ne){switch(l.kind){case 298:case 259:case 288:case 257:case 238:case 239:case 240:case 167:case 166:case 168:case 169:case 252:case 209:case 210:return!0;case 231:return!e.isFunctionLike(ne)}return!1}e.isBlockScope=J;function te(l){switch(l.kind){case 328:case 335:case 315:return!0;default:return e.assertType(l),me(l)}}e.isDeclarationWithTypeParameters=te;function me(l){switch(l.kind){case 170:case 171:case 165:case 172:case 175:case 176:case 309:case 253:case 222:case 254:case 255:case 334:case 252:case 166:case 167:case 168:case 169:case 209:case 210:return!0;default:return e.assertType(l),!1}}e.isDeclarationWithTypeParameterChildren=me;function xe(l){switch(l.kind){case 262:case 261:return!0;default:return!1}}e.isAnyImportSyntax=xe;function P(l){switch(l.kind){case 262:case 261:case 233:case 253:case 252:case 257:case 255:case 254:case 256:return!0;default:return!1}}e.isLateVisibilityPaintedStatement=P;function Se(l){return Ye(l)||e.isModuleDeclaration(l)||e.isImportTypeNode(l)||zn(l)}e.hasPossibleExternalModuleReference=Se;function Ye(l){return xe(l)||e.isExportDeclaration(l)}e.isAnyImportOrReExport=Ye;function an(l){return e.findAncestor(l.parent,function(ne){return J(ne,ne.parent)})}e.getEnclosingBlockScopeContainer=an;function Sn(l){return!l||I(l)===0?"(Missing)":je(l)}e.declarationNameToString=Sn;function Xn(l){return l.declaration?Sn(l.declaration.parameters[0].name):void 0}e.getNameFromIndexInfo=Xn;function wn(l){return l.kind===159&&!os(l.expression)}e.isComputedNonLiteralName=wn;function qn(l){switch(l.kind){case 78:case 79:return l.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(l.text);case 159:return os(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=qn;function yr(l){switch(l.kind){case 107:return"this";case 79:case 78:return I(l)===0?e.idText(l):je(l);case 158:return yr(l.left)+"."+yr(l.right);case 202:return e.isIdentifier(l.name)||e.isPrivateIdentifier(l.name)?yr(l.expression)+"."+yr(l.name):e.Debug.assertNever(l.name);default:return e.Debug.assertNever(l)}}e.entityNameToString=yr;function Vr(l,ne,$e,Pn,hr,yt){var Mt=U(l);return We(Mt,l,ne,$e,Pn,hr,yt)}e.createDiagnosticForNode=Vr;function Me(l,ne,$e,Pn,hr,yt,Mt){var zt=e.skipTrivia(l.text,ne.pos);return Bu(l,zt,ne.end-zt,$e,Pn,hr,yt,Mt)}e.createDiagnosticForNodeArray=Me;function We(l,ne,$e,Pn,hr,yt,Mt){var zt=Cr(l,ne);return Bu(l,zt.start,zt.length,$e,Pn,hr,yt,Mt)}e.createDiagnosticForNodeInSourceFile=We;function Tn(l,ne,$e){var Pn=U(l),hr=Cr(Pn,l);return Vn(Pn,hr.start,hr.length,ne,$e)}e.createDiagnosticForNodeFromMessageChain=Tn;function Nn(l,ne,$e){e.Debug.assertGreaterThanOrEqual(ne,0),e.Debug.assertGreaterThanOrEqual($e,0),l&&(e.Debug.assertLessThanOrEqual(ne,l.text.length),e.Debug.assertLessThanOrEqual(ne+$e,l.text.length))}function Vn(l,ne,$e,Pn,hr){return Nn(l,ne,$e),{file:l,start:ne,length:$e,code:Pn.code,category:Pn.category,messageText:Pn.next?Pn:Pn.messageText,relatedInformation:hr}}e.createFileDiagnosticFromMessageChain=Vn;function Hn(l,ne,$e){return{file:l,start:0,length:0,code:ne.code,category:ne.category,messageText:ne.next?ne:ne.messageText,relatedInformation:$e}}e.createDiagnosticForFileFromMessageChain=Hn;function kr(l,ne,$e){return{file:l,start:ne.pos,length:ne.end-ne.pos,code:$e.code,category:$e.category,messageText:$e.message}}e.createDiagnosticForRange=kr;function kn(l,ne){var $e=e.createScanner(l.languageVersion,!0,l.languageVariant,l.text,void 0,ne);$e.scan();var Pn=$e.getTokenPos();return e.createTextSpanFromBounds(Pn,$e.getTextPos())}e.getSpanOfTokenAtPosition=kn;function Sr(l,ne){var $e=e.skipTrivia(l.text,ne.pos);if(ne.body&&ne.body.kind===231){var Pn=e.getLineAndCharacterOfPosition(l,ne.body.pos).line,hr=e.getLineAndCharacterOfPosition(l,ne.body.end).line;if(Pn0?ne.statements[0].pos:ne.end;return e.createTextSpanFromBounds(hr,yt)}if($e===void 0)return kn(l,ne.pos);e.Debug.assert(!e.isJSDoc($e));var Mt=F($e),zt=Mt||e.isJsxText(ne)?$e.pos:e.skipTrivia(l.text,$e.pos);return Mt?(e.Debug.assert(zt===$e.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(zt===$e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(zt>=$e.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(zt<=$e.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(zt,$e.end)}e.getErrorSpanForNode=Cr;function Qe(l){return(l.externalModuleIndicator||l.commonJsModuleIndicator)!==void 0}e.isExternalOrCommonJsModule=Qe;function Bn(l){return l.scriptKind===6}e.isJsonSourceFile=Bn;function bn(l){return!!(e.getCombinedModifierFlags(l)&2048)}e.isEnumConst=bn;function In(l){return!!(e.getCombinedModifierFlags(l)&64&&!e.isParameterPropertyDeclaration(l,l.parent))}e.isDeclarationReadonly=In;function Be(l){return!!(e.getCombinedNodeFlags(l)&2)}e.isVarConst=Be;function Zn(l){return!!(e.getCombinedNodeFlags(l)&1)}e.isLet=Zn;function _r(l){return l.kind===204&&l.expression.kind===105}e.isSuperCall=_r;function zn(l){return l.kind===204&&l.expression.kind===99}e.isImportCall=zn;function Er(l){return e.isMetaProperty(l)&&l.keywordToken===99&&l.name.escapedText==="meta"}e.isImportMeta=Er;function Pr(l){return e.isImportTypeNode(l)&&e.isLiteralTypeNode(l.argument)&&e.isStringLiteral(l.argument.literal)}e.isLiteralImportTypeNode=Pr;function tt(l){return l.kind===234&&l.expression.kind===10}e.isPrologueDirective=tt;function mr(l){return!!(Ve(l)&1048576)}e.isCustomPrologue=mr;function Ln(l){return mr(l)&&e.isFunctionDeclaration(l)}e.isHoistedFunction=Ln;function jn(l){return e.isIdentifier(l.name)&&!l.initializer}function ar(l){return mr(l)&&e.isVariableStatement(l)&&e.every(l.declarationList.declarations,jn)}e.isHoistedVariableStatement=ar;function dr(l,ne){return l.kind!==11?e.getLeadingCommentRanges(ne.text,l.pos):void 0}e.getLeadingCommentRangesOfNode=dr;function Rr(l,ne){var $e=l.kind===161||l.kind===160||l.kind===209||l.kind===210||l.kind===208||l.kind===250?e.concatenate(e.getTrailingCommentRanges(ne,l.pos),e.getLeadingCommentRanges(ne,l.pos)):e.getLeadingCommentRanges(ne,l.pos);return e.filter($e,function(Pn){return ne.charCodeAt(Pn.pos+1)===42&&ne.charCodeAt(Pn.pos+2)===42&&ne.charCodeAt(Pn.pos+3)!==47})}e.getJSDocCommentRanges=Rr,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var qr=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var br=/^(\/\/\/\s*/;function Br(l){if(173<=l.kind&&l.kind<=196)return!0;switch(l.kind){case 128:case 152:case 144:case 155:case 147:case 131:case 148:case 145:case 150:case 141:return!0;case 113:return l.parent.kind!==213;case 224:return!Ql(l);case 160:return l.parent.kind===191||l.parent.kind===186;case 78:(l.parent.kind===158&&l.parent.right===l||l.parent.kind===202&&l.parent.name===l)&&(l=l.parent),e.Debug.assert(l.kind===78||l.kind===158||l.kind===202,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 158:case 202:case 107:{var ne=l.parent;if(ne.kind===177)return!1;if(ne.kind===196)return!ne.isTypeOf;if(173<=ne.kind&&ne.kind<=196)return!0;switch(ne.kind){case 224:return!Ql(ne);case 160:return l===ne.constraint;case 334:return l===ne.constraint;case 164:case 163:case 161:case 250:return l===ne.type;case 252:case 209:case 210:case 167:case 166:case 165:case 168:case 169:return l===ne.type;case 170:case 171:case 172:return l===ne.type;case 207:return l===ne.type;case 204:case 205:return e.contains(ne.typeArguments,l);case 206:return!1}}}return!1}e.isPartOfTypeNode=Br;function vt(l,ne){for(;l;){if(l.kind===ne)return!0;l=l.parent}return!1}e.isChildOfNodeWithKind=vt;function dt(l,ne){return $e(l);function $e(Pn){switch(Pn.kind){case 243:return ne(Pn);case 259:case 231:case 235:case 236:case 237:case 238:case 239:case 240:case 244:case 245:case 285:case 286:case 246:case 248:case 288:return e.forEachChild(Pn,$e)}}}e.forEachReturnStatement=dt;function cr(l,ne){return $e(l);function $e(Pn){switch(Pn.kind){case 220:ne(Pn);var hr=Pn.expression;hr&&$e(hr);return;case 256:case 254:case 257:case 255:return;default:if(e.isFunctionLike(Pn)){if(Pn.name&&Pn.name.kind===159){$e(Pn.name.expression);return}}else Br(Pn)||e.forEachChild(Pn,$e)}}}e.forEachYieldExpression=cr;function Vt(l){return l&&l.kind===179?l.elementType:l&&l.kind===174?e.singleOrUndefined(l.typeArguments):void 0}e.getRestParameterElementType=Vt;function Yr(l){switch(l.kind){case 254:case 253:case 222:case 178:return l.members;case 201:return l.properties}}e.getMembersOfDeclaration=Yr;function Ut(l){if(l)switch(l.kind){case 199:case 292:case 161:case 289:case 164:case 163:case 290:case 250:return!0}return!1}e.isVariableLike=Ut;function ka(l){return Ut(l)||e.isAccessor(l)}e.isVariableLikeOrAccessor=ka;function ma(l){return l.parent.kind===251&&l.parent.parent.kind===233}e.isVariableDeclarationInVariableStatement=ma;function Sa(l){return e.isVariableDeclaration(l)?Be(l)&&e.isIdentifier(l.name)&&ma(l):e.isPropertyDeclaration(l)?jo(l)&&gc(l):e.isPropertySignature(l)&&jo(l)}e.isValidESSymbolDeclaration=Sa;function qt(l){switch(l.kind){case 166:case 165:case 167:case 168:case 169:case 252:case 209:return!0}return!1}e.introducesArgumentsExoticObject=qt;function ga(l,ne){for(;;){if(ne&&ne(l),l.statement.kind!==246)return l.statement;l=l.statement}}e.unwrapInnermostStatementOfLabel=ga;function Mr(l){return l&&l.kind===231&&e.isFunctionLike(l.parent)}e.isFunctionBlock=Mr;function Kr(l){return l&&l.kind===166&&l.parent.kind===201}e.isObjectLiteralMethod=Kr;function jr(l){return l.kind===166&&(l.parent.kind===201||l.parent.kind===222)}e.isObjectLiteralOrClassExpressionMethod=jr;function En(l){return l&&l.kind===1}e.isIdentifierTypePredicate=En;function tr(l){return l&&l.kind===0}e.isThisTypePredicate=tr;function gr(l,ne,$e){return l.properties.filter(function(Pn){if(Pn.kind===289){var hr=qn(Pn.name);return ne===hr||!!$e&&$e===hr}return!1})}e.getPropertyAssignment=gr;function Or(l,ne,$e){return e.firstDefined(gr(l,ne),function(Pn){return e.isArrayLiteralExpression(Pn.initializer)?e.find(Pn.initializer.elements,function(hr){return e.isStringLiteral(hr)&&hr.text===$e}):void 0})}e.getPropertyArrayElementValue=Or;function mt(l){if(l&&l.statements.length){var ne=l.statements[0].expression;return e.tryCast(ne,e.isObjectLiteralExpression)}}e.getTsConfigObjectLiteralExpression=mt;function ft(l,ne,$e){return e.firstDefined(Dt(l,ne),function(Pn){return e.isArrayLiteralExpression(Pn.initializer)?e.find(Pn.initializer.elements,function(hr){return e.isStringLiteral(hr)&&hr.text===$e}):void 0})}e.getTsConfigPropArrayElementValue=ft;function Dt(l,ne){var $e=mt(l);return $e?gr($e,ne):e.emptyArray}e.getTsConfigPropArray=Dt;function sa(l){return e.findAncestor(l.parent,e.isFunctionLike)}e.getContainingFunction=sa;function Wa(l){return e.findAncestor(l.parent,e.isFunctionLikeDeclaration)}e.getContainingFunctionDeclaration=Wa;function ii(l){return e.findAncestor(l.parent,e.isClassLike)}e.getContainingClass=ii;function ri(l,ne){for(e.Debug.assert(l.kind!==298);;){if(l=l.parent,!l)return e.Debug.fail();switch(l.kind){case 159:if(e.isClassLike(l.parent.parent))return l;l=l.parent;break;case 162:l.parent.kind===161&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break;case 210:if(!ne)continue;case 252:case 209:case 257:case 164:case 163:case 166:case 165:case 167:case 168:case 169:case 170:case 171:case 172:case 256:case 298:return l}}}e.getThisContainer=ri;function mi(l){e.isIdentifier(l)&&(e.isClassDeclaration(l.parent)||e.isFunctionDeclaration(l.parent))&&l.parent.name===l&&(l=l.parent);var ne=ri(l,!0);return e.isSourceFile(ne)}e.isInTopLevelContext=mi;function Ei(l){var ne=ri(l,!1);if(ne)switch(ne.kind){case 167:case 252:case 209:return ne}}e.getNewTargetContainer=Ei;function _i(l,ne){for(;;){if(l=l.parent,!l)return l;switch(l.kind){case 159:l=l.parent;break;case 252:case 209:case 210:if(!ne)continue;case 164:case 163:case 166:case 165:case 167:case 168:case 169:return l;case 162:l.parent.kind===161&&e.isClassElement(l.parent.parent)?l=l.parent.parent:e.isClassElement(l.parent)&&(l=l.parent);break}}}e.getSuperContainer=_i;function yi(l){if(l.kind===209||l.kind===210){for(var ne=l,$e=l.parent;$e.kind===208;)ne=$e,$e=$e.parent;if($e.kind===204&&$e.expression===ne)return $e}}e.getImmediatelyInvokedFunctionExpression=yi;function Ni(l){return l.kind===105||ja(l)}e.isSuperOrSuperProperty=Ni;function ja(l){var ne=l.kind;return(ne===202||ne===203)&&l.expression.kind===105}e.isSuperProperty=ja;function ui(l){var ne=l.kind;return(ne===202||ne===203)&&l.expression.kind===107}e.isThisProperty=ui;function Di(l){var ne;return!!l&&e.isVariableDeclaration(l)&&((ne=l.initializer)===null||ne===void 0?void 0:ne.kind)===107}e.isThisInitializedDeclaration=Di;function Io(l){return!!l&&(e.isShorthandPropertyAssignment(l)||e.isPropertyAssignment(l))&&e.isBinaryExpression(l.parent.parent)&&l.parent.parent.operatorToken.kind===62&&l.parent.parent.right.kind===107}e.isThisInitializedObjectBindingExpression=Io;function _o(l){switch(l.kind){case 174:return l.typeName;case 224:return Rc(l.expression)?l.expression:void 0;case 78:case 158:return l}}e.getEntityNameFromTypeNode=_o;function ro(l){switch(l.kind){case 206:return l.tag;case 276:case 275:return l.tagName;default:return l.expression}}e.getInvokedExpression=ro;function Zi(l,ne,$e){if(e.isNamedDeclaration(l)&&e.isPrivateIdentifier(l.name))return!1;switch(l.kind){case 253:return!0;case 164:return ne.kind===253;case 168:case 169:case 166:return l.body!==void 0&&ne.kind===253;case 161:return ne.body!==void 0&&(ne.kind===167||ne.kind===166||ne.kind===169)&&$e.kind===253}return!1}e.nodeCanBeDecorated=Zi;function Ao(l,ne,$e){return l.decorators!==void 0&&Zi(l,ne,$e)}e.nodeIsDecorated=Ao;function bo(l,ne,$e){return Ao(l,ne,$e)||ti(l,ne)}e.nodeOrChildIsDecorated=bo;function ti(l,ne){switch(l.kind){case 253:return e.some(l.members,function($e){return bo($e,l,ne)});case 166:case 169:return e.some(l.parameters,function($e){return Ao($e,l,ne)});default:return!1}}e.childIsDecorated=ti;function Xt(l){var ne=l.parent;return ne.kind===276||ne.kind===275||ne.kind===277?ne.tagName===l:!1}e.isJSXTagName=Xt;function gi(l){switch(l.kind){case 105:case 103:case 109:case 94:case 13:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 225:case 207:case 226:case 208:case 209:case 222:case 210:case 213:case 211:case 212:case 215:case 216:case 217:case 218:case 221:case 219:case 223:case 274:case 275:case 278:case 220:case 214:case 227:return!0;case 158:for(;l.parent.kind===158;)l=l.parent;return l.parent.kind===177||Xt(l);case 78:if(l.parent.kind===177||Xt(l))return!0;case 8:case 9:case 10:case 14:case 107:return Ji(l);default:return!1}}e.isExpressionNode=gi;function Ji(l){var ne=l.parent;switch(ne.kind){case 250:case 161:case 164:case 163:case 292:case 289:case 199:return ne.initializer===l;case 234:case 235:case 236:case 237:case 243:case 244:case 245:case 285:case 247:return ne.expression===l;case 238:var $e=ne;return $e.initializer===l&&$e.initializer.kind!==251||$e.condition===l||$e.incrementor===l;case 239:case 240:var Pn=ne;return Pn.initializer===l&&Pn.initializer.kind!==251||Pn.expression===l;case 207:case 225:return l===ne.expression;case 229:return l===ne.expression;case 159:return l===ne.expression;case 162:case 284:case 283:case 291:return!0;case 224:return ne.expression===l&&Ql(ne);case 290:return ne.objectAssignmentInitializer===l;default:return gi(ne)}}e.isInExpressionContext=Ji;function Ui(l){for(;l.kind===158||l.kind===78;)l=l.parent;return l.kind===177}e.isPartOfTypeQuery=Ui;function go(l){return e.isNamespaceExport(l)&&!!l.parent.moduleSpecifier}e.isNamespaceReexportDeclaration=go;function wo(l){return l.kind===261&&l.moduleReference.kind===273}e.isExternalModuleImportEqualsDeclaration=wo;function oo(l){return e.Debug.assert(wo(l)),l.moduleReference.expression}e.getExternalModuleImportEqualsDeclarationExpression=oo;function Go(l){return pe(l)&&Ll(l.initializer).arguments[0]}e.getExternalModuleRequireArgument=Go;function Vo(l){return l.kind===261&&l.moduleReference.kind!==273}e.isInternalModuleImportEqualsDeclaration=Vo;function pr(l){return Xe(l)}e.isSourceFileJS=pr;function Ot(l){return!Xe(l)}e.isSourceFileNotJS=Ot;function Xe(l){return!!l&&!!(l.flags&131072)}e.isInJSFile=Xe;function Jn(l){return!!l&&!!(l.flags&33554432)}e.isInJsonFile=Jn;function fr(l){return!Bn(l)}e.isSourceFileNotJson=fr;function Zr(l){return!!l&&!!(l.flags&4194304)}e.isInJSDoc=Zr;function Ae(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)&&l.typeName.escapedText==="Object"&&l.typeArguments&&l.typeArguments.length===2&&(l.typeArguments[0].kind===147||l.typeArguments[0].kind===144)}e.isJSDocIndexSignature=Ae;function Dn(l,ne){if(l.kind!==204)return!1;var $e=l,Pn=$e.expression,hr=$e.arguments;if(Pn.kind!==78||Pn.escapedText!=="require"||hr.length!==1)return!1;var yt=hr[0];return!ne||e.isStringLiteralLike(yt)}e.isRequireCall=Dn;function pe(l){return l.kind===199&&(l=l.parent.parent),e.isVariableDeclaration(l)&&!!l.initializer&&Dn(Ll(l.initializer),!0)}e.isRequireVariableDeclaration=pe;function Q(l){return e.isVariableStatement(l)&&l.declarationList.declarations.length>0&&e.every(l.declarationList.declarations,function(ne){return pe(ne)})}e.isRequireVariableStatement=Q;function De(l){return l===39||l===34}e.isSingleOrDoubleQuote=De;function qe(l,ne){return ve(ne,l).charCodeAt(0)===34}e.isStringDoubleQuoted=qe;function sn(l){return e.isBinaryExpression(l)||Ss(l)||e.isIdentifier(l)||e.isCallExpression(l)}e.isAssignmentDeclaration=sn;function Mn(l){return Xe(l)&&l.initializer&&e.isBinaryExpression(l.initializer)&&(l.initializer.operatorToken.kind===56||l.initializer.operatorToken.kind===60)&&l.name&&Rc(l.name)&&hi(l.name,l.initializer.left)?l.initializer.right:l.initializer}e.getEffectiveInitializer=Mn;function or(l){var ne=Mn(l);return ne&&Ft(ne,lc(l.name))}e.getDeclaredExpandoInitializer=or;function Ir(l,ne){return e.forEach(l.properties,function($e){return e.isPropertyAssignment($e)&&e.isIdentifier($e.name)&&$e.name.escapedText==="value"&&$e.initializer&&Ft($e.initializer,ne)})}function at(l){if(l&&l.parent&&e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===62){var ne=lc(l.parent.left);return Ft(l.parent.right,ne)||Da(l.parent.left,l.parent.right,ne)}if(l&&e.isCallExpression(l)&&Zo(l)){var $e=Ir(l.arguments[2],l.arguments[1].text==="prototype");if($e)return $e}}e.getAssignedExpandoInitializer=at;function Ft(l,ne){if(e.isCallExpression(l)){var $e=pn(l.expression);return $e.kind===209||$e.kind===210?l:void 0}if(l.kind===209||l.kind===222||l.kind===210||e.isObjectLiteralExpression(l)&&(l.properties.length===0||ne))return l}e.getExpandoInitializer=Ft;function Da(l,ne,$e){var Pn=e.isBinaryExpression(ne)&&(ne.operatorToken.kind===56||ne.operatorToken.kind===60)&&Ft(ne.right,$e);if(Pn&&hi(l,ne.left))return Pn}function $a(l){var ne=e.isVariableDeclaration(l.parent)?l.parent.name:e.isBinaryExpression(l.parent)&&l.parent.operatorToken.kind===62?l.parent.left:void 0;return ne&&Ft(l.right,lc(ne))&&Rc(ne)&&hi(ne,l.left)}e.isDefaultedExpandoInitializer=$a;function Za(l){if(e.isBinaryExpression(l.parent)){var ne=(l.parent.operatorToken.kind===56||l.parent.operatorToken.kind===60)&&e.isBinaryExpression(l.parent.parent)?l.parent.parent:l.parent;if(ne.operatorToken.kind===62&&e.isIdentifier(ne.left))return ne.left}else if(e.isVariableDeclaration(l.parent))return l.parent.name}e.getNameOfExpando=Za;function hi(l,ne){if(Zf(l)&&Zf(ne))return zu(l)===zu(ne);if(e.isIdentifier(l)&&ws(ne)&&(ne.expression.kind===107||e.isIdentifier(ne.expression)&&(ne.expression.escapedText==="window"||ne.expression.escapedText==="self"||ne.expression.escapedText==="global"))){var $e=xs(ne);return e.isPrivateIdentifier($e)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),hi(l,$e)}return ws(l)&&ws(ne)?He(l)===He(ne)&&hi(l.expression,ne.expression):!1}e.isSameEntityName=hi;function vo(l){for(;hc(l,!0);)l=l.right;return l}e.getRightMostAssignedExpression=vo;function fs(l){return e.isIdentifier(l)&&l.escapedText==="exports"}e.isExportsIdentifier=fs;function bs(l){return e.isIdentifier(l)&&l.escapedText==="module"}e.isModuleIdentifier=bs;function ds(l){return(e.isPropertyAccessExpression(l)||Ws(l))&&bs(l.expression)&&He(l)==="exports"}e.isModuleExportsAccessExpression=ds;function gs(l){var ne=vs(l);return ne===5||Xe(l)?ne:0}e.getAssignmentDeclarationKind=gs;function Zo(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"&&os(l.arguments[1])&&Cs(l.arguments[0],!0)}e.isBindableObjectDefinePropertyCall=Zo;function ws(l){return e.isPropertyAccessExpression(l)||Ws(l)}e.isLiteralLikeAccess=ws;function Ws(l){return e.isElementAccessExpression(l)&&os(l.argumentExpression)}e.isLiteralLikeElementAccess=Ws;function Ts(l,ne){return e.isPropertyAccessExpression(l)&&(!ne&&l.expression.kind===107||e.isIdentifier(l.name)&&Cs(l.expression,!0))||Gs(l,ne)}e.isBindableStaticAccessExpression=Ts;function Gs(l,ne){return Ws(l)&&(!ne&&l.expression.kind===107||Rc(l.expression)||Ts(l.expression,!0))}e.isBindableStaticElementAccessExpression=Gs;function Cs(l,ne){return Rc(l)||Ts(l,ne)}e.isBindableStaticNameExpression=Cs;function xs(l){return e.isPropertyAccessExpression(l)?l.name:l.argumentExpression}e.getNameOrArgument=xs;function vs(l){if(e.isCallExpression(l)){if(!Zo(l))return 0;var ne=l.arguments[0];return fs(ne)||ds(ne)?8:Ts(ne)&&He(ne)==="prototype"?9:7}return l.operatorToken.kind!==62||!Ss(l.left)||js(vo(l))?0:Cs(l.left.expression,!0)&&He(l.left)==="prototype"&&e.isObjectLiteralExpression(ae(l))?6:ur(l.left)}function js(l){return e.isVoidExpression(l)&&e.isNumericLiteral(l.expression)&&l.expression.text==="0"}function Zs(l){if(e.isPropertyAccessExpression(l))return l.name;var ne=pn(l.argumentExpression);return e.isNumericLiteral(ne)||e.isStringLiteralLike(ne)?ne:l}e.getElementOrPropertyAccessArgumentExpressionOrName=Zs;function He(l){var ne=Zs(l);if(ne){if(e.isIdentifier(ne))return ne.escapedText;if(e.isStringLiteralLike(ne)||e.isNumericLiteral(ne))return e.escapeLeadingUnderscores(ne.text)}}e.getElementOrPropertyAccessName=He;function ur(l){if(l.expression.kind===107)return 4;if(ds(l))return 2;if(Cs(l.expression,!0)){if(lc(l.expression))return 3;for(var ne=l;!e.isIdentifier(ne.expression);)ne=ne.expression;var $e=ne.expression;if(($e.escapedText==="exports"||$e.escapedText==="module"&&He(ne)==="exports")&&Ts(l))return 1;if(Cs(l,!0)||e.isElementAccessExpression(l)&&Md(l))return 5}return 0}e.getAssignmentDeclarationPropertyAccessKind=ur;function ae(l){for(;e.isBinaryExpression(l.right);)l=l.right;return l.right}e.getInitializerOfBinaryExpression=ae;function An(l){return e.isBinaryExpression(l)&&gs(l)===3}e.isPrototypePropertyAssignment=An;function ir(l){return Xe(l)&&l.parent&&l.parent.kind===234&&(!e.isElementAccessExpression(l)||Ws(l))&&!!e.getJSDocTypeTag(l.parent)}e.isSpecialPropertyDeclaration=ir;function Ur(l,ne){var $e=l.valueDeclaration;(!$e||!(ne.flags&8388608&&!($e.flags&8388608))&&sn($e)&&!sn(ne)||$e.kind!==ne.kind&&rn($e))&&(l.valueDeclaration=ne)}e.setValueDeclaration=Ur;function mn(l){if(!l||!l.valueDeclaration)return!1;var ne=l.valueDeclaration;return ne.kind===252||e.isVariableDeclaration(ne)&&ne.initializer&&e.isFunctionLike(ne.initializer)}e.isFunctionSymbol=mn;function wa(l){var ne,$e,Pn;switch(l.kind){case 250:return l.initializer.arguments[0].text;case 262:return(ne=e.tryCast(l.moduleSpecifier,e.isStringLiteralLike))===null||ne===void 0?void 0:ne.text;case 261:return(Pn=e.tryCast(($e=e.tryCast(l.moduleReference,e.isExternalModuleReference))===null||$e===void 0?void 0:$e.expression,e.isStringLiteralLike))===null||Pn===void 0?void 0:Pn.text;default:e.Debug.assertNever(l)}}e.tryGetModuleSpecifierFromDeclaration=wa;function Ba(l){return pa(l)||e.Debug.failBadSyntaxKind(l.parent)}e.importFromModuleSpecifier=Ba;function pa(l){switch(l.parent.kind){case 262:case 268:return l.parent;case 273:return l.parent.parent;case 204:return zn(l.parent)||Dn(l.parent,!1)?l.parent:void 0;case 192:return e.Debug.assert(e.isStringLiteral(l)),e.tryCast(l.parent.parent,e.isImportTypeNode);default:return}}e.tryGetImportFromModuleSpecifier=pa;function ci(l){switch(l.kind){case 262:case 268:return l.moduleSpecifier;case 261:return l.moduleReference.kind===273?l.moduleReference.expression:void 0;case 196:return Pr(l)?l.argument.literal:void 0;case 204:return l.arguments[0];case 257:return l.name.kind===10?l.name:void 0;default:return e.Debug.assertNever(l)}}e.getExternalModuleName=ci;function Xi(l){switch(l.kind){case 262:return l.importClause&&e.tryCast(l.importClause.namedBindings,e.isNamespaceImport);case 261:return l;case 268:return l.exportClause&&e.tryCast(l.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(l)}}e.getNamespaceDeclarationNode=Xi;function so(l){return l.kind===262&&!!l.importClause&&!!l.importClause.name}e.isDefaultImport=so;function Wo(l,ne){if(l.name){var $e=ne(l);if($e)return $e}if(l.namedBindings){var $e=e.isNamespaceImport(l.namedBindings)?ne(l.namedBindings):e.forEach(l.namedBindings.elements,ne);if($e)return $e}}e.forEachImportClauseDeclaration=Wo;function ps(l){if(l)switch(l.kind){case 161:case 166:case 165:case 290:case 289:case 164:case 163:return l.questionToken!==void 0}return!1}e.hasQuestionToken=ps;function bi(l){var ne=e.isJSDocFunctionType(l)?e.firstOrUndefined(l.parameters):void 0,$e=e.tryCast(ne&&ne.name,e.isIdentifier);return!!$e&&$e.escapedText==="new"}e.isJSDocConstructSignature=bi;function xl(l){return l.kind===335||l.kind===328||l.kind===329}e.isJSDocTypeAlias=xl;function dl(l){return xl(l)||e.isTypeAliasDeclaration(l)}e.isTypeAlias=dl;function ol(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&l.expression.operatorToken.kind===62?vo(l.expression):void 0}function Il(l){return e.isExpressionStatement(l)&&e.isBinaryExpression(l.expression)&&gs(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 233:var ne=tc(l);return ne&&ne.initializer;case 164:return l.initializer;case 289:return l.initializer}}e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=rc;function tc(l){return e.isVariableStatement(l)?e.firstOrUndefined(l.declarationList.declarations):void 0}e.getSingleVariableOfVariableStatement=tc;function Kl(l){return e.isModuleDeclaration(l)&&l.body&&l.body.kind===257?l.body:void 0}function Dc(l,ne){var $e;Ut(l)&&e.hasInitializer(l)&&e.hasJSDocNodes(l.initializer)&&($e=e.append($e,e.last(l.initializer.jsDoc)));for(var Pn=l;Pn&&Pn.parent;){if(e.hasJSDocNodes(Pn)&&($e=e.append($e,e.last(Pn.jsDoc))),Pn.kind===161){$e=e.addRange($e,(ne?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(Pn));break}if(Pn.kind===160){$e=e.addRange($e,(ne?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(Pn));break}Pn=zl(Pn)}return $e||e.emptyArray}e.getJSDocCommentsAndTags=Dc;function zl(l){var ne=l.parent;if(ne.kind===289||ne.kind===267||ne.kind===164||ne.kind===234&&l.kind===202||ne.kind===243||Kl(ne)||e.isBinaryExpression(l)&&l.operatorToken.kind===62)return ne;if(ne.parent&&(tc(ne.parent)===l||e.isBinaryExpression(ne)&&ne.operatorToken.kind===62))return ne.parent;if(ne.parent&&ne.parent.parent&&(tc(ne.parent.parent)||rc(ne.parent.parent)===l||Il(ne.parent.parent)))return ne.parent.parent}e.getNextJSDocCommentLocation=zl;function hn(l){if(l.symbol)return l.symbol;if(e.isIdentifier(l.name)){var ne=l.name.escapedText,$e=Gn(l);if($e){var Pn=e.find($e.parameters,function(hr){return hr.name.kind===78&&hr.name.escapedText===ne});return Pn&&Pn.symbol}}}e.getParameterSymbolFromJSDoc=hn;function Gn(l){var ne=vr(l);return ne&&e.isFunctionLike(ne)?ne:void 0}e.getHostSignatureFromJSDoc=Gn;function vr(l){var ne=Qr(l);if(ne)return Il(ne)||ol(ne)||rc(ne)||tc(ne)||Kl(ne)||ne}e.getEffectiveJSDocHost=vr;function Qr(l){var ne=ct(l);if(ne){var $e=ne.parent;if($e&&$e.jsDoc&&ne===e.lastOrUndefined($e.jsDoc))return $e}}e.getJSDocHost=Qr;function ct(l){return e.findAncestor(l.parent,e.isJSDoc)}e.getJSDocRoot=ct;function ot(l){var ne=l.name.escapedText,$e=l.parent.parent.parent.typeParameters;return $e&&e.find($e,function(Pn){return Pn.name.escapedText===ne})}e.getTypeParameterFromJsDoc=ot;function Lt(l){var ne=e.lastOrUndefined(l.parameters);return!!ne&&kt(ne)}e.hasRestParameter=Lt;function kt(l){var ne=e.isJSDocParameterTag(l)?l.typeExpression&&l.typeExpression.type:l.type;return l.dotDotDotToken!==void 0||!!ne&&ne.kind===310}e.isRestParameter=kt;function ya(l){return!!l.typeArguments}e.hasTypeArguments=ya,function(l){l[l.None=0]="None",l[l.Definite=1]="Definite",l[l.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={}));function ni(l){for(var ne=l.parent;;){switch(ne.kind){case 217:var $e=ne.operatorToken.kind;return Ou($e)&&ne.left===l?$e===62||dd($e)?1:2:0;case 215:case 216:var Pn=ne.operator;return Pn===45||Pn===46?2:0;case 239:case 240:return ne.initializer===l?1:0;case 208:case 200:case 221:case 226:l=ne;break;case 291:l=ne.parent;break;case 290:if(ne.name!==l)return 0;l=ne.parent;break;case 289:if(ne.name===l)return 0;l=ne.parent;break;default:return 0}ne=l.parent}}e.getAssignmentTargetKind=ni;function Yt(l){return ni(l)!==0}e.isAssignmentTarget=Yt;function fa(l){switch(l.kind){case 231:case 233:case 244:case 235:case 245:case 259:case 285:case 286:case 246:case 238:case 239:case 240:case 236:case 237:case 248:case 288:return!0}return!1}e.isNodeWithPossibleHoistedDeclaration=fa;function li(l){return e.isFunctionExpression(l)||e.isArrowFunction(l)||e.isMethodOrAccessor(l)||e.isFunctionDeclaration(l)||e.isConstructorDeclaration(l)}e.isValueSignatureDeclaration=li;function Ti(l,ne){for(;l&&l.kind===ne;)l=l.parent;return l}function To(l){return Ti(l,187)}e.walkUpParenthesizedTypes=To;function ce(l){return Ti(l,208)}e.walkUpParenthesizedExpressions=ce;function ln(l){for(var ne;l&&l.kind===187;)ne=l,l=l.parent;return[ne,l]}e.walkUpParenthesizedTypesAndGetParentAndChild=ln;function pn(l){return e.skipOuterExpressions(l,1)}e.skipParentheses=pn;function $n(l){for(;l.kind===208;)l=l.parent;return l}function cn(l){return l.kind!==202&&l.kind!==203?!1:(l=ce(l.parent),l&&l.kind===211)}e.isDeleteTarget=cn;function Ht(l,ne){for(;l;){if(l===ne)return!0;l=l.parent}return!1}e.isNodeDescendantOf=Ht;function $t(l){return!e.isSourceFile(l)&&!e.isBindingPattern(l)&&e.isDeclaration(l.parent)&&l.parent.name===l}e.isDeclarationName=$t;function Ia(l){var ne=l.parent;switch(l.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(ne))return ne.parent;case 78:if(e.isDeclaration(ne))return ne.name===l?ne:void 0;if(e.isQualifiedName(ne)){var $e=ne.parent;return e.isJSDocParameterTag($e)&&$e.name===ne?$e:void 0}else{var Pn=ne.parent;return e.isBinaryExpression(Pn)&&gs(Pn)!==0&&(Pn.left.symbol||Pn.symbol)&&e.getNameOfDeclaration(Pn)===l?Pn:void 0}case 79:return e.isDeclaration(ne)&&ne.name===l?ne:void 0;default:return}}e.getDeclarationFromName=Ia;function Li(l){return os(l)&&l.parent.kind===159&&e.isDeclaration(l.parent.parent)}e.isLiteralComputedPropertyDeclarationName=Li;function Mi(l){var ne=l.parent;switch(ne.kind){case 164:case 163:case 166:case 165:case 168:case 169:case 292:case 289:case 202:return ne.name===l;case 158:return ne.right===l;case 199:case 266:return ne.propertyName===l;case 271:case 281:return!0}return!1}e.isIdentifierName=Mi;function lo(l){return l.kind===261||l.kind===260||l.kind===263&&!!l.name||l.kind===264||l.kind===270||l.kind===266||l.kind===271||l.kind===267&&co(l)||e.isBinaryExpression(l)&&gs(l)===2&&co(l)||e.isPropertyAccessExpression(l)&&e.isBinaryExpression(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===62&&Ki(l.parent.right)||l.kind===290||l.kind===289&&Ki(l.initializer)}e.isAliasSymbolDeclaration=lo;function Bt(l){switch(l.parent.kind){case 263:case 266:case 264:case 271:case 267:case 261:return l.parent;case 158:do l=l.parent;while(l.parent.kind===158);return Bt(l)}}e.getAliasDeclarationFromName=Bt;function Ki(l){return Rc(l)||e.isClassExpression(l)}e.isAliasableExpression=Ki;function co(l){var ne=Ro(l);return Ki(ne)}e.exportAssignmentIsAlias=co;function Ro(l){return e.isExportAssignment(l)?l.expression:l.right}e.getExportAssignmentExpression=Ro;function uo(l){return l.kind===290?l.name:l.kind===289?l.initializer:l.parent.right}e.getPropertyAssignmentAliasLikeExpression=uo;function $s(l){var ne=yl(l);if(ne&&Xe(l)){var $e=e.getJSDocAugmentsTag(l);if($e)return $e.class}return ne}e.getEffectiveBaseTypeNode=$s;function yl(l){var ne=mc(l.heritageClauses,93);return ne&&ne.types.length>0?ne.types[0]:void 0}e.getClassExtendsHeritageElement=yl;function nu(l){if(Xe(l))return e.getJSDocImplementsTags(l).map(function($e){return $e.class});var ne=mc(l.heritageClauses,116);return ne==null?void 0:ne.types}e.getEffectiveImplementsTypeNodes=nu;function Rl(l){return e.isInterfaceDeclaration(l)?Is(l)||e.emptyArray:e.isClassLike(l)&&e.concatenate(e.singleElementArray($s(l)),nu(l))||e.emptyArray}e.getAllSuperTypeNodes=Rl;function Is(l){var ne=mc(l.heritageClauses,93);return ne?ne.types:void 0}e.getInterfaceBaseTypeNodes=Is;function mc(l,ne){if(l)for(var $e=0,Pn=l;$e=0)return oi[mo]}}function yt(Ci){var oi;Ci.file?(oi=$e.get(Ci.file.fileName),oi||(oi=[],$e.set(Ci.file.fileName,oi),e.insertSorted(ne,Ci.file.fileName,e.compareStringsCaseSensitive))):(Pn&&(Pn=!1,l=l.slice()),oi=l),e.insertSorted(oi,Ci,np)}function Mt(){return Pn=!0,l}function zt(Ci){if(Ci)return $e.get(Ci)||[];var oi=e.flatMapToMutable(ne,function(mo){return $e.get(mo)});return l.length&&oi.unshift.apply(oi,l),oi}}e.createDiagnosticCollection=Kp;var Wd=/\$\{/g;function jd(l){return l.replace(Wd,"\\${")}function Hd(l){return l&&!!(e.isNoSubstitutionTemplateLiteral(l)?l.templateFlags:l.head.templateFlags||e.some(l.templateSpans,function(ne){return!!ne.literal.templateFlags}))}e.hasInvalidEscape=Hd;var Nl=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ru=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,qu=/[\\`]/g,pu=new e.Map(e.getEntries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"}));function Jd(l){var ne=l.toString(16).toUpperCase(),$e=("0000"+ne).slice(-4);return"\\u"+$e}function Ap(l,ne,$e){if(l.charCodeAt(0)===0){var Pn=$e.charCodeAt(ne+l.length);return Pn>=48&&Pn<=57?"\\x00":"\\0"}return pu.get(l)||Jd(l.charCodeAt(0))}function Cu(l,ne){var $e=ne===96?qu:ne===39?ru:Nl;return l.replace($e,Ap)}e.escapeString=Cu;var Lf=/[^\u0000-\u007F]/g;function td(l,ne){return l=Cu(l,ne),Lf.test(l)?l.replace(Lf,function($e){return Jd($e.charCodeAt(0))}):l}e.escapeNonAsciiString=td;var ad=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Kd=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Af=new e.Map(e.getEntries({'"':""","'":"'"}));function Df(l){var ne=l.toString(16).toUpperCase();return"&#x"+ne+";"}function id(l){return l.charCodeAt(0)===0?"�":Af.get(l)||Df(l.charCodeAt(0))}function Cc(l,ne){var $e=ne===39?Kd:ad;return l.replace($e,id)}e.escapeJsxAttributeString=Cc;function Xu(l){var ne=l.length;return ne>=2&&l.charCodeAt(0)===l.charCodeAt(ne-1)&&Vi(l.charCodeAt(0))?l.substring(1,ne-1):l}e.stripQuotes=Xu;function Vi(l){return l===39||l===34||l===96}function Fo(l){var ne=l.charCodeAt(0);return ne>=97&&ne<=122||e.stringContains(l,"-")||e.stringContains(l,":")}e.isIntrinsicJsxName=Fo;var Bc=[""," "];function Ol(l){for(var ne=Bc[1],$e=Bc.length;$e<=l;$e++)Bc.push(Bc[$e-1]+ne);return Bc[l]}e.getIndentString=Ol;function Uc(){return Bc[1].length}e.getIndentSize=Uc;function bl(l){var ne,$e,Pn,hr,yt,Mt=!1;function zt(zo){var qc=e.computeLineStarts(zo);qc.length>1?(hr=hr+qc.length-1,yt=ne.length-zo.length+e.last(qc),Pn=yt-ne.length===0):Pn=!1}function Ci(zo){zo&&zo.length&&(Pn&&(zo=Ol($e)+zo,Pn=!1),ne+=zo,zt(zo))}function oi(zo){zo&&(Mt=!1),Ci(zo)}function mo(zo){zo&&(Mt=!0),Ci(zo)}function Ko(){ne="",$e=0,Pn=!0,hr=0,yt=0,Mt=!1}function fl(zo){zo!==void 0&&(ne+=zo,zt(zo),Mt=!1)}function Ka(zo){zo&&zo.length&&oi(zo)}function _s(zo){(!Pn||zo)&&(ne+=l,hr++,yt=ne.length,Pn=!0,Mt=!1)}function Ea(){return Pn?ne.length:ne.length+l.length}return Ko(),{write:oi,rawWrite:fl,writeLiteral:Ka,writeLine:_s,increaseIndent:function(){$e++},decreaseIndent:function(){$e--},getIndent:function(){return $e},getTextPos:function(){return ne.length},getLine:function(){return hr},getColumn:function(){return Pn?$e*Uc():ne.length-yt},getText:function(){return ne},isAtStartOfLine:function(){return Pn},hasTrailingComment:function(){return Mt},hasTrailingWhitespace:function(){return!!ne.length&&e.isWhiteSpaceLike(ne.charCodeAt(ne.length-1))},clear:Ko,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:oi,writeOperator:oi,writeParameter:oi,writeProperty:oi,writePunctuation:oi,writeSpace:oi,writeStringLiteral:oi,writeSymbol:function(zo,qc){return oi(zo)},writeTrailingSemicolon:oi,writeComment:mo,getTextPosWithWriteLine:Ea}}e.createTextWriter=bl;function Dp(l){var ne=!1;function $e(){ne&&(l.writeTrailingSemicolon(";"),ne=!1)}return Nt(Nt({},l),{writeTrailingSemicolon:function(){ne=!0},writeLiteral:function(Pn){$e(),l.writeLiteral(Pn)},writeStringLiteral:function(Pn){$e(),l.writeStringLiteral(Pn)},writeSymbol:function(Pn,hr){$e(),l.writeSymbol(Pn,hr)},writePunctuation:function(Pn){$e(),l.writePunctuation(Pn)},writeKeyword:function(Pn){$e(),l.writeKeyword(Pn)},writeOperator:function(Pn){$e(),l.writeOperator(Pn)},writeParameter:function(Pn){$e(),l.writeParameter(Pn)},writeSpace:function(Pn){$e(),l.writeSpace(Pn)},writeProperty:function(Pn){$e(),l.writeProperty(Pn)},writeComment:function(Pn){$e(),l.writeComment(Pn)},writeLine:function(){$e(),l.writeLine()},increaseIndent:function(){$e(),l.increaseIndent()},decreaseIndent:function(){$e(),l.decreaseIndent()}})}e.getTrailingSemicolonDeferringWriter=Dp;function ic(l){return l.useCaseSensitiveFileNames?l.useCaseSensitiveFileNames():!1}e.hostUsesCaseSensitiveFileNames=ic;function ml(l){return e.createGetCanonicalFileName(ic(l))}e.hostGetCanonicalFileName=ml;function kl(l,ne,$e){return ne.moduleName||od(l,ne.fileName,$e&&$e.fileName)}e.getResolvedExternalModuleName=kl;function el(l,ne){return l.getCanonicalFileName(e.getNormalizedAbsolutePath(ne,l.getCurrentDirectory()))}function Oo(l,ne,$e){var Pn=ne.getExternalModuleFileFromDeclaration($e);if(!(!Pn||Pn.isDeclarationFile)){var hr=ci($e);if(!(hr&&e.isStringLiteralLike(hr)&&!e.pathIsRelative(hr.text)&&el(l,Pn.path).indexOf(el(l,e.ensureTrailingDirectorySeparator(l.getCommonSourceDirectory())))===-1))return kl(l,Pn)}}e.getExternalModuleNameFromDeclaration=Oo;function od(l,ne,$e){var Pn=function(Ci){return l.getCanonicalFileName(Ci)},hr=e.toPath($e?e.getDirectoryPath($e):l.getCommonSourceDirectory(),l.getCurrentDirectory(),Pn),yt=e.getNormalizedAbsolutePath(ne,l.getCurrentDirectory()),Mt=e.getRelativePathToDirectoryOrUrl(hr,yt,hr,Pn,!1),zt=Yp(Mt);return $e?e.ensurePathIsNonModuleName(zt):zt}e.getExternalModuleNameFromPath=od;function Cf(l,ne,$e){var Pn=ne.getCompilerOptions(),hr;return Pn.outDir?hr=Yp(zd(l,ne,Pn.outDir)):hr=Yp(l),hr+$e}e.getOwnEmitOutputFilePath=Cf;function Cp(l,ne){return xf(l,ne.getCompilerOptions(),ne.getCurrentDirectory(),ne.getCommonSourceDirectory(),function($e){return ne.getCanonicalFileName($e)})}e.getDeclarationEmitOutputFilePath=Cp;function xf(l,ne,$e,Pn,hr){var yt=ne.declarationDir||ne.outDir,Mt=yt?sl(l,yt,$e,Pn,hr):l;return Yp(Mt)+".d.ts"}e.getDeclarationEmitOutputFilePathWorker=xf;function Si(l){return l.outFile||l.out}e.outFile=Si;function Tl(l,ne){var $e,Pn;if(l.paths)return($e=l.baseUrl)!==null&&$e!==void 0?$e:e.Debug.checkDefined(l.pathsBasePath||((Pn=ne.getCurrentDirectory)===null||Pn===void 0?void 0:Pn.call(ne)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}e.getPathsBasePath=Tl;function Pl(l,ne,$e){var Pn=l.getCompilerOptions();if(Si(Pn)){var hr=vd(Pn),yt=Pn.emitDeclarationOnly||hr===e.ModuleKind.AMD||hr===e.ModuleKind.System;return e.filter(l.getSourceFiles(),function(zt){return(yt||!e.isExternalModule(zt))&&If(zt,l,$e)})}else{var Mt=ne===void 0?l.getSourceFiles():[ne];return e.filter(Mt,function(zt){return If(zt,l,$e)})}}e.getSourceFilesToEmit=Pl;function If(l,ne,$e){var Pn=ne.getCompilerOptions();return!(Pn.noEmitForJsFiles&&pr(l))&&!l.isDeclarationFile&&!ne.isSourceFileFromExternalLibrary(l)&&($e||!(Bn(l)&&ne.getResolvedProjectReferenceToRedirect(l.fileName))&&!ne.isSourceOfProjectReferenceRedirect(l.fileName))}e.sourceFileMayBeEmitted=If;function zd(l,ne,$e){return sl(l,$e,ne.getCurrentDirectory(),ne.getCommonSourceDirectory(),function(Pn){return ne.getCanonicalFileName(Pn)})}e.getSourceFilePathInNewDir=zd;function sl(l,ne,$e,Pn,hr){var yt=e.getNormalizedAbsolutePath(l,$e),Mt=hr(yt).indexOf(hr(Pn))===0;return yt=Mt?yt.substring(Pn.length):yt,e.combinePaths(ne,yt)}e.getSourceFilePathInNewDirWorker=sl;function sd(l,ne,$e,Pn,hr,yt){l.writeFile($e,Pn,hr,function(Mt){ne.add(gm(e.Diagnostics.Could_not_write_file_0_Colon_1,$e,Mt))},yt)}e.writeFile=sd;function Ct(l,ne,$e){if(l.length>e.getRootLength(l)&&!$e(l)){var Pn=e.getDirectoryPath(l);Ct(Pn,ne,$e),ne(l)}}function Jo(l,ne,$e,Pn,hr,yt){try{Pn(l,ne,$e)}catch{Ct(e.getDirectoryPath(e.normalizePath(l)),hr,yt),Pn(l,ne,$e)}}e.writeFileEnsuringDirectories=Jo;function ei(l,ne){var $e=e.getLineStarts(l);return e.computeLineOfPosition($e,ne)}e.getLineOfLocalPosition=ei;function nl(l,ne){return e.computeLineOfPosition(l,ne)}e.getLineOfLocalPositionFromLineMap=nl;function Yu(l){return e.find(l.members,function(ne){return e.isConstructorDeclaration(ne)&&_(ne.body)})}e.getFirstConstructorWithBody=Yu;function Vc(l){if(l&&l.parameters.length>0){var ne=l.parameters.length===2&&ko(l.parameters[0]);return l.parameters[ne?1:0]}}e.getSetAccessorValueParameter=Vc;function St(l){var ne=Vc(l);return ne&&ne.type}e.getSetAccessorTypeAnnotationNode=St;function oc(l){if(l.parameters.length&&!e.isJSDocSignature(l)){var ne=l.parameters[0];if(ko(ne))return ne}}e.getThisParameter=oc;function ko(l){return Xl(l.name)}e.parameterIsThisKeyword=ko;function Xl(l){return!!l&&l.kind===78&&Ml(l)}e.isThisIdentifier=Xl;function Ml(l){return l.originalKeywordKind===107}e.identifierIsThisKeyword=Ml;function wi(l,ne){var $e,Pn,hr,yt;return pl(ne)?($e=ne,ne.kind===168?hr=ne:ne.kind===169?yt=ne:e.Debug.fail("Accessor has wrong kind")):e.forEach(l,function(Mt){if(e.isAccessor(Mt)&&Rs(Mt,32)===Rs(ne,32)){var zt=Lu(Mt.name),Ci=Lu(ne.name);zt===Ci&&($e?Pn||(Pn=Mt):$e=Mt,Mt.kind===168&&!hr&&(hr=Mt),Mt.kind===169&&!yt&&(yt=Mt))}}),{firstAccessor:$e,secondAccessor:Pn,getAccessor:hr,setAccessor:yt}}e.getAllAccessorDeclarations=wi;function At(l){if(!(!Xe(l)&&e.isFunctionDeclaration(l))){var ne=l.type;return ne||!Xe(l)?ne:e.isJSDocPropertyLikeTag(l)?l.typeExpression&&l.typeExpression.type:e.getJSDocType(l)}}e.getEffectiveTypeAnnotationNode=At;function Hs(l){return l.type}e.getTypeAnnotationNode=Hs;function ld(l){return e.isJSDocSignature(l)?l.type&&l.type.typeExpression&&l.type.typeExpression.type:l.type||(Xe(l)?e.getJSDocReturnType(l):void 0)}e.getEffectiveReturnTypeNode=ld;function qd(l){return e.flatMap(e.getJSDocTags(l),function(ne){return Wc(ne)?ne.typeParameters:void 0})}e.getJSDocTypeParameterDeclarations=qd;function Wc(l){return e.isJSDocTemplateTag(l)&&!(l.parent.kind===312&&l.parent.tags.some(xl))}function xu(l){var ne=Vc(l);return ne&&At(ne)}e.getEffectiveSetAccessorTypeAnnotationNode=xu;function mu(l,ne,$e,Pn){xc(l,ne,$e.pos,Pn)}e.emitNewLineBeforeLeadingComments=mu;function xc(l,ne,$e,Pn){Pn&&Pn.length&&$e!==Pn[0].pos&&nl(l,$e)!==nl(l,Pn[0].pos)&&ne.writeLine()}e.emitNewLineBeforeLeadingCommentsOfPosition=xc;function jc(l,ne,$e,Pn){$e!==Pn&&nl(l,$e)!==nl(l,Pn)&&ne.writeLine()}e.emitNewLineBeforeLeadingCommentOfPosition=jc;function _u(l,ne,$e,Pn,hr,yt,Mt,zt){if(Pn&&Pn.length>0){hr&&$e.writeSpace(" ");for(var Ci=!1,oi=0,mo=Pn;oi=_s+2)break}oi.push(Ka),mo=Ka}if(oi.length){var _s=nl(ne,e.last(oi).end),zo=nl(ne,e.skipTrivia(l,hr.pos));zo>=_s+2&&(mu(ne,$e,hr,zt),_u(l,ne,$e,oi,!1,!0,yt,Pn),Ci={nodePos:hr.pos,detachedCommentEndPos:e.last(oi).end})}}return Ci;function qc(Gi){return fe(l,Gi.pos)}}e.emitDetachedComments=Qu;function ll(l,ne,$e,Pn,hr,yt){if(l.charCodeAt(Pn+1)===42)for(var Mt=e.computeLineAndCharacterOfPosition(ne,Pn),zt=ne.length,Ci=void 0,oi=Pn,mo=Mt.line;oi0){var _s=Ka%Uc(),Ea=Ol((Ka-_s)/Uc());for($e.rawWrite(Ea);_s;)$e.rawWrite(" "),_s--}else $e.rawWrite("")}Zu(l,hr,$e,yt,oi,Ko),oi=Ko}else $e.writeComment(l.substring(Pn,hr))}e.writeCommentRange=ll;function Zu(l,ne,$e,Pn,hr,yt){var Mt=Math.min(ne,yt-1),zt=l.substring(hr,Mt).replace(/^\s+|\s+$/g,"");zt?($e.writeComment(zt),Mt!==ne&&$e.writeLine()):$e.rawWrite(Pn)}function ho(l,ne,$e){for(var Pn=0;ne<$e&&e.isWhiteSpaceSingleLine(l.charCodeAt(ne));ne++)l.charCodeAt(ne)===9?Pn+=Uc()-Pn%Uc():Pn++;return Pn}function Iu(l){return Yl(l)!==0}e.hasEffectiveModifiers=Iu;function Sl(l){return ud(l)!==0}e.hasSyntacticModifiers=Sl;function _c(l,ne){return!!Hc(l,ne)}e.hasEffectiveModifier=_c;function Rs(l,ne){return!!tu(l,ne)}e.hasSyntacticModifier=Rs;function gc(l){return Rs(l,32)}e.hasStaticModifier=gc;function vc(l){return _c(l,16384)}e.hasOverrideModifier=vc;function rl(l){return Rs(l,128)}e.hasAbstractModifier=rl;function to(l){return Rs(l,2)}e.hasAmbientModifier=to;function jo(l){return _c(l,64)}e.hasEffectiveReadonlyModifier=jo;function Hc(l,ne){return Yl(l)&ne}e.getSelectedEffectiveModifierFlags=Hc;function tu(l,ne){return ud(l)&ne}e.getSelectedSyntacticModifierFlags=tu;function Ic(l,ne,$e){return l.kind>=0&&l.kind<=157?0:(l.modifierFlagsCache&536870912||(l.modifierFlagsCache=$u(l)|536870912),ne&&!(l.modifierFlagsCache&4096)&&($e||Xe(l))&&l.parent&&(l.modifierFlagsCache|=Ru(l)|4096),l.modifierFlagsCache&-536875009)}function Yl(l){return Ic(l,!0)}e.getEffectiveModifierFlags=Yl;function cd(l){return Ic(l,!0,!0)}e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=cd;function ud(l){return Ic(l,!1)}e.getSyntacticModifierFlags=ud;function Ru(l){var ne=0;return l.parent&&!e.isParameter(l)&&(Xe(l)&&(e.getJSDocPublicTagNoCache(l)&&(ne|=4),e.getJSDocPrivateTagNoCache(l)&&(ne|=8),e.getJSDocProtectedTagNoCache(l)&&(ne|=16),e.getJSDocReadonlyTagNoCache(l)&&(ne|=64),e.getJSDocOverrideTagNoCache(l)&&(ne|=16384)),e.getJSDocDeprecatedTagNoCache(l)&&(ne|=8192)),ne}function Jc(l){return $u(l)|Ru(l)}e.getEffectiveModifierFlagsNoCache=Jc;function $u(l){var ne=gu(l.modifiers);return(l.flags&4||l.kind===78&&l.isInJSDocNamespace)&&(ne|=1),ne}e.getSyntacticModifierFlagsNoCache=$u;function gu(l){var ne=0;if(l)for(var $e=0,Pn=l;$e=62&&l<=77}e.isAssignmentOperator=Ou;function xp(l){var ne=Ga(l);return ne&&!ne.isImplements?ne.class:void 0}e.tryGetClassExtendingExpressionWithTypeArguments=xp;function Ga(l){return e.isExpressionWithTypeArguments(l)&&e.isHeritageClause(l.parent)&&e.isClassLike(l.parent.parent)?{class:l.parent.parent,isImplements:l.parent.token===116}:void 0}e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Ga;function hc(l,ne){return e.isBinaryExpression(l)&&(ne?l.operatorToken.kind===62:Ou(l.operatorToken.kind))&&e.isLeftHandSideExpression(l.left)}e.isAssignmentExpression=hc;function gt(l){return hc(l.parent)&&l.parent.left===l}e.isLeftHandSideOfAssignment=gt;function pd(l){if(hc(l,!0)){var ne=l.left.kind;return ne===201||ne===200}return!1}e.isDestructuringAssignment=pd;function Ql(l){return xp(l)!==void 0}e.isExpressionWithTypeArgumentsInClassExtendsClause=Ql;function Rc(l){return l.kind===78||ku(l)}e.isEntityNameExpression=Rc;function Xd(l){switch(l.kind){case 78:return l;case 158:do l=l.left;while(l.kind!==78);return l;case 202:do l=l.expression;while(l.kind!==78);return l}}e.getFirstIdentifier=Xd;function ef(l){return l.kind===78||l.kind===107||l.kind===105||l.kind===227||l.kind===202&&ef(l.expression)||l.kind===208&&ef(l.expression)}e.isDottedName=ef;function ku(l){return e.isPropertyAccessExpression(l)&&e.isIdentifier(l.name)&&Rc(l.expression)}e.isPropertyAccessEntityNameExpression=ku;function sc(l){if(e.isPropertyAccessExpression(l)){var ne=sc(l.expression);if(ne!==void 0)return ne+"."+yr(l.name)}else if(e.isElementAccessExpression(l)){var ne=sc(l.expression);if(ne!==void 0&&e.isPropertyName(l.argumentExpression))return ne+"."+Lu(l.argumentExpression)}else if(e.isIdentifier(l))return e.unescapeLeadingUnderscores(l.escapedText)}e.tryGetPropertyAccessOrIdentifierToString=sc;function lc(l){return Ts(l)&&He(l)==="prototype"}e.isPrototypeAccess=lc;function nf(l){return l.parent.kind===158&&l.parent.right===l||l.parent.kind===202&&l.parent.name===l}e.isRightSideOfQualifiedNameOrPropertyAccess=nf;function Ip(l){return l.kind===201&&l.properties.length===0}e.isEmptyObjectLiteral=Ip;function Rp(l){return l.kind===200&&l.elements.length===0}e.isEmptyArrayLiteral=Rp;function Nf(l){if(!(!Of(l)||!l.declarations))for(var ne=0,$e=l.declarations;ne<$e.length;ne++){var Pn=$e[ne];if(Pn.localSymbol)return Pn.localSymbol}}e.getLocalSymbolForExportDefault=Nf;function Of(l){return l&&e.length(l.declarations)>0&&Rs(l.declarations[0],512)}function Nc(l){return e.find(e.supportedTSExtensionsForExtractExtension,function(ne){return e.fileExtensionIs(l,ne)})}e.tryExtractTSExtension=Nc;function Oc(l){for(var ne=[],$e=l.length,Pn=0;Pn<$e;Pn++){var hr=l.charCodeAt(Pn);hr<128?ne.push(hr):hr<2048?(ne.push(hr>>6|192),ne.push(hr&63|128)):hr<65536?(ne.push(hr>>12|224),ne.push(hr>>6&63|128),ne.push(hr&63|128)):hr<131072?(ne.push(hr>>18|240),ne.push(hr>>12&63|128),ne.push(hr>>6&63|128),ne.push(hr&63|128)):e.Debug.assert(!1,"Unexpected code point")}return ne}var cc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function cl(l){for(var ne="",$e=Oc(l),Pn=0,hr=$e.length,yt,Mt,zt,Ci;Pn>2,Mt=($e[Pn]&3)<<4|$e[Pn+1]>>4,zt=($e[Pn+1]&15)<<2|$e[Pn+2]>>6,Ci=$e[Pn+2]&63,Pn+1>=hr?zt=Ci=64:Pn+2>=hr&&(Ci=64),ne+=cc.charAt(yt)+cc.charAt(Mt)+cc.charAt(zt)+cc.charAt(Ci),Pn+=3;return ne}e.convertToBase64=cl;function kf(l){for(var ne="",$e=0,Pn=l.length;$e>4&3,mo=(Mt&15)<<4|zt>>2&15,Ko=(zt&3)<<6|Ci&63;mo===0&&zt!==0?Pn.push(oi):Ko===0&&Ci!==0?Pn.push(oi,mo):Pn.push(oi,mo,Ko),hr+=4}return kf(Pn)}e.base64decode=wl;function rf(l,ne){try{var $e=ne.readFile(l);if(!$e)return{};var Pn=e.parseConfigFileTextToJson(l,$e);return Pn.error?{}:Pn.config}catch{return{}}}e.readJson=rf;function zp(l,ne){return!ne.directoryExists||ne.directoryExists(l)}e.directoryProbablyExists=zp;var qo=`\r `,qp=` `;function zi(l,ne){switch(l.newLine){case 0:return qo;case 1:return qp}return ne?ne():e.sys?e.sys.newLine:qo}e.getNewLineCharacter=zi;function Pu(l,ne){return ne===void 0&&(ne=l),e.Debug.assert(ne>=l||ne===-1),{pos:l,end:ne}}e.createRange=Pu;function Pf(l,ne){return Pu(l.pos,ne)}e.moveRangeEnd=Pf;function tf(l,ne){return Pu(ne,l.end)}e.moveRangePos=tf;function Mf(l){return l.decorators&&l.decorators.length>0?tf(l,l.decorators.end):l}e.moveRangePastDecorators=Mf;function Mu(l){return l.modifiers&&l.modifiers.length>0?tf(l,l.modifiers.end):Mf(l)}e.moveRangePastModifiers=Mu;function wf(l){return l.pos===l.end}e.isCollapsedRange=wf;function yc(l,ne){return Pu(l,l+e.tokenToString(ne).length)}e.createTokenRange=yc;function md(l,ne){return wu(l,l,ne)}e.rangeIsOnSingleLine=md;function Qd(l,ne,$e){return Ar(aa(l,$e,!1),aa(ne,$e,!1),$e)}e.rangeStartPositionsAreOnSameLine=Qd;function Zd(l,ne,$e){return Ar(l.end,ne.end,$e)}e.rangeEndPositionsAreOnSameLine=Zd;function wu(l,ne,$e){return Ar(aa(l,$e,!1),ne.end,$e)}e.rangeStartIsOnSameLineAsRangeEnd=wu;function Np(l,ne,$e){return Ar(l.end,aa(ne,$e,!1),$e)}e.rangeEndIsOnSameLineAsRangeStart=Np;function y(l,ne,$e,Pn){var hr=aa(ne,$e,Pn);return e.getLinesBetweenPositions($e,l.end,hr)}e.getLinesBetweenRangeEndAndRangeStart=y;function Ze(l,ne,$e){return e.getLinesBetweenPositions($e,l.end,ne.end)}e.getLinesBetweenRangeEndPositions=Ze;function er(l,ne){return!Ar(l.pos,l.end,ne)}e.isNodeArrayMultiLine=er;function Ar(l,ne,$e){return e.getLinesBetweenPositions($e,l,ne)===0}e.positionsAreOnSameLine=Ar;function aa(l,ne,$e){return Bf(l.pos)?-1:e.skipTrivia(ne.text,l.pos,!1,$e)}e.getStartPositionOfRange=aa;function _a(l,ne,$e,Pn){var hr=e.skipTrivia($e.text,l,!1,Pn),yt=Ja(hr,ne,$e);return e.getLinesBetweenPositions($e,yt??ne,hr)}e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=_a;function Ca(l,ne,$e,Pn){var hr=e.skipTrivia($e.text,l,!1,Pn);return e.getLinesBetweenPositions($e,l,Math.min(ne,hr))}e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=Ca;function Ja(l,ne,$e){for(ne===void 0&&(ne=0);l-- >ne;)if(!e.isWhiteSpaceLike($e.text.charCodeAt(l)))return l}function Yi(l){var ne=e.getParseTreeNode(l);if(ne)switch(ne.parent.kind){case 256:case 257:return ne===ne.parent.name}return!1}e.isDeclarationNameOfEnumOrNamespace=Yi;function fo(l){return e.filter(l.declarations,Do)}e.getInitializedVariables=fo;function Do(l){return l.initializer!==void 0}function tl(l){return l.watch&&l.hasOwnProperty("watch")}e.isWatchSet=tl;function ys(l){l.close()}e.closeFileWatcher=ys;function ms(l){return l.flags&33554432?l.checkFlags:0}e.getCheckFlags=ms;function uc(l,ne){if(ne===void 0&&(ne=!1),l.valueDeclaration){var $e=ne&&l.declarations&&e.find(l.declarations,function(zt){return zt.kind===169})||l.valueDeclaration,Pn=e.getCombinedModifierFlags($e);return l.parent&&l.parent.flags&32?Pn:Pn&-29}if(ms(l)&6){var hr=l.checkFlags,yt=hr&1024?8:hr&256?4:16,Mt=hr&2048?32:0;return yt|Mt}return l.flags&4194304?36:0}e.getDeclarationModifierFlagsFromSymbol=uc;function iu(l,ne){return l.flags&2097152?ne.getAliasedSymbol(l):l}e.skipAlias=iu;function Ec(l){return l.exportSymbol?l.exportSymbol.flags|l.flags:l.flags}e.getCombinedLocalAndExportSymbolFlags=Ec;function Gf(l){return fc(l)===1}e.isWriteOnlyAccess=Gf;function $d(l){return fc(l)!==0}e.isWriteAccess=$d;var vu;(function(l){l[l.Read=0]="Read",l[l.Write=1]="Write",l[l.ReadWrite=2]="ReadWrite"})(vu||(vu={}));function fc(l){var ne=l.parent;if(!ne)return 0;switch(ne.kind){case 208:return fc(ne);case 216:case 215:var $e=ne.operator;return $e===45||$e===46?zt():0;case 217:var Pn=ne,hr=Pn.left,yt=Pn.operatorToken;return hr===l&&Ou(yt.kind)?yt.kind===62?1:zt():0;case 202:return ne.name!==l?0:fc(ne);case 289:{var Mt=fc(ne.parent);return l===ne.name?Le(Mt):Mt}case 290:return l===ne.objectAssignmentInitializer?0:fc(ne.parent);case 200:return fc(ne);default:return 0}function zt(){return ne.parent&&$n(ne.parent).kind===234?1:2}}function Le(l){switch(l){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(l)}}function dn(l,ne){if(!l||!ne||Object.keys(l).length!==Object.keys(ne).length)return!1;for(var $e in l)if(typeof l[$e]=="object"){if(!dn(l[$e],ne[$e]))return!1}else if(typeof l[$e]!="function"&&l[$e]!==ne[$e])return!1;return!0}e.compareDataObjects=dn;function Fn(l,ne){l.forEach(ne),l.clear()}e.clearMap=Fn;function rr(l,ne,$e){var Pn=$e.onDeleteValue,hr=$e.onExistingValue;l.forEach(function(yt,Mt){var zt=ne.get(Mt);zt===void 0?(l.delete(Mt),Pn(yt,Mt)):hr&&hr(yt,zt,Mt)})}e.mutateMapSkippingNewValues=rr;function Nr(l,ne,$e){rr(l,ne,$e);var Pn=$e.createNewValue;ne.forEach(function(hr,yt){l.has(yt)||l.set(yt,Pn(yt,hr))})}e.mutateMap=Nr;function et(l){if(l.flags&32){var ne=xt(l);return!!ne&&Rs(ne,128)}return!1}e.isAbstractConstructorSymbol=et;function xt(l){var ne;return(ne=l.declarations)===null||ne===void 0?void 0:ne.find(e.isClassLike)}e.getClassLikeDeclarationOfSymbol=xt;function Kt(l){return l.flags&3899393?l.objectFlags:0}e.getObjectFlags=Kt;function ai(l,ne){return ne.getSignaturesOfType(l,0).length!==0||ne.getSignaturesOfType(l,1).length!==0}e.typeHasCallOrConstructSignatures=ai;function La(l,ne){return!!e.forEachAncestorDirectory(l,function($e){return ne($e)?!0:void 0})}e.forSomeAncestorDirectory=La;function ji(l){return!!l&&!!l.declarations&&!!l.declarations[0]&&e.isNamespaceExportDeclaration(l.declarations[0])}e.isUMDExportSymbol=ji;function $o(l){var ne=l.moduleSpecifier;return e.isStringLiteral(ne)?ne.text:je(ne)}e.showModuleSpecifier=$o;function ao(l){var ne;return e.forEachChild(l,function($e){_($e)&&(ne=$e)},function($e){for(var Pn=$e.length-1;Pn>=0;Pn--)if(_($e[Pn])){ne=$e[Pn];break}}),ne}e.getLastChild=ao;function es(l,ne,$e){return $e===void 0&&($e=!0),l.has(ne)?!1:(l.set(ne,$e),!0)}e.addToSeen=es;function ss(l){return e.isClassLike(l)||e.isInterfaceDeclaration(l)||e.isTypeLiteralNode(l)}e.isObjectTypeDeclaration=ss;function ls(l){return l>=173&&l<=196||l===128||l===152||l===144||l===155||l===145||l===131||l===147||l===148||l===113||l===150||l===141||l===224||l===304||l===305||l===306||l===307||l===308||l===309||l===310}e.isTypeNodeKind=ls;function Ss(l){return l.kind===202||l.kind===203}e.isAccessExpression=Ss;function Gu(l){return l.kind===202?l.name:(e.Debug.assert(l.kind===203),l.argumentExpression)}e.getNameOfAccessExpression=Gu;function ns(l){switch(l.kind){case"text":case"internal":return!0;default:return!1}}e.isBundleFileTextLike=ns;function al(l){return l.kind===265||l.kind===269}e.isNamedImportsOrExports=al;function Ll(l){for(;Ss(l);)l=l.expression;return l}e.getLeftmostAccessExpression=Ll;function _d(l,ne){for(;;){switch(l.kind){case 216:l=l.operand;continue;case 217:l=l.left;continue;case 218:l=l.condition;continue;case 206:l=l.tag;continue;case 204:if(ne)return l;case 225:case 203:case 202:case 226:case 340:l=l.expression;continue}return l}}e.getLeftmostExpression=_d;function hu(l,ne){this.flags=l,this.escapedName=ne,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function d(l,ne){this.flags=ne,(e.Debug.isDebugging||e.tracing)&&(this.checker=l)}function V(l,ne){this.flags=ne,e.Debug.isDebugging&&(this.checker=l)}function he(l,ne,$e){this.pos=ne,this.end=$e,this.kind=l,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function nn(l,ne,$e){this.pos=ne,this.end=$e,this.kind=l,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function On(l,ne,$e){this.pos=ne,this.end=$e,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 Gr(l,ne,$e){this.fileName=l,this.text=ne,this.skipTrivia=$e||function(Pn){return Pn}}e.objectAllocator={getNodeConstructor:function(){return he},getTokenConstructor:function(){return nn},getIdentifierConstructor:function(){return On},getPrivateIdentifierConstructor:function(){return he},getSourceFileConstructor:function(){return he},getSymbolConstructor:function(){return hu},getTypeConstructor:function(){return d},getSignatureConstructor:function(){return V},getSourceMapSourceConstructor:function(){return Gr}};function Et(l){e.objectAllocator=l}e.setObjectAllocator=Et;function ba(l,ne,$e){return $e===void 0&&($e=0),l.replace(/{(\d+)}/g,function(Pn,hr){return""+e.Debug.checkDefined(ne[+hr+$e])})}e.formatStringFromArgs=ba;function Bo(l){e.localizedDiagnosticMessages=l}e.setLocalizedDiagnosticMessages=Bo;function Xo(l){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[l.key]||l.message}e.getLocaleSpecificMessage=Xo;function af(l,ne,$e,Pn){Nn(void 0,ne,$e);var hr=Xo(Pn);return arguments.length>4&&(hr=ba(hr,arguments,4)),{file:void 0,start:ne,length:$e,messageText:hr,category:Pn.category,code:Pn.code,reportsUnnecessary:Pn.reportsUnnecessary,fileName:l}}e.createDetachedDiagnostic=af;function Fu(l){return l.file===void 0&&l.start!==void 0&&l.length!==void 0&&typeof l.fileName=="string"}function gd(l,ne){var $e=ne.fileName||"",Pn=ne.text.length;e.Debug.assertEqual(l.fileName,$e),e.Debug.assertLessThanOrEqual(l.start,Pn),e.Debug.assertLessThanOrEqual(l.start+l.length,Pn);var hr={file:ne,start:l.start,length:l.length,messageText:l.messageText,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary};if(l.relatedInformation){hr.relatedInformation=[];for(var yt=0,Mt=l.relatedInformation;yt4&&(hr=ba(hr,arguments,4)),{file:l,start:ne,length:$e,messageText:hr,category:Pn.category,code:Pn.code,reportsUnnecessary:Pn.reportsUnnecessary,reportsDeprecated:Pn.reportsDeprecated}}e.createFileDiagnostic=Bu;function Fg(l,ne){var $e=Xo(ne);return arguments.length>2&&($e=ba($e,arguments,2)),$e}e.formatMessage=Fg;function gm(l){var ne=Xo(l);return arguments.length>1&&(ne=ba(ne,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:ne,category:l.category,code:l.code,reportsUnnecessary:l.reportsUnnecessary,reportsDeprecated:l.reportsDeprecated}}e.createCompilerDiagnostic=gm;function Gl(l,ne){return{file:void 0,start:void 0,length:void 0,code:l.code,category:l.category,messageText:l.next?l:l.messageText,relatedInformation:ne}}e.createCompilerDiagnosticFromMessageChain=Gl;function Bg(l,ne){var $e=Xo(ne);return arguments.length>2&&($e=ba($e,arguments,2)),{messageText:$e,category:ne.category,code:ne.code,next:l===void 0||Array.isArray(l)?l:[l]}}e.chainDiagnosticMessages=Bg;function Ug(l,ne){for(var $e=l;$e.next;)$e=$e.next[0];$e.next=[ne]}e.concatenateDiagnosticMessageChains=Ug;function V_(l){return l.file?l.file.path:void 0}function np(l,ne){return vm(l,ne)||Vg(l,ne)||0}e.compareDiagnostics=np;function vm(l,ne){return e.compareStringsCaseSensitive(V_(l),V_(ne))||e.compareValues(l.start,ne.start)||e.compareValues(l.length,ne.length)||e.compareValues(l.code,ne.code)||Os(l.messageText,ne.messageText)||0}e.compareDiagnosticsSkipRelatedInformation=vm;function Vg(l,ne){return!l.relatedInformation&&!ne.relatedInformation?0:l.relatedInformation&&ne.relatedInformation?e.compareValues(l.relatedInformation.length,ne.relatedInformation.length)||e.forEach(l.relatedInformation,function($e,Pn){var hr=ne.relatedInformation[Pn];return np($e,hr)})||0:l.relatedInformation?-1:1}function Os(l,ne){if(typeof l=="string"&&typeof ne=="string")return e.compareStringsCaseSensitive(l,ne);if(typeof l=="string")return-1;if(typeof ne=="string")return 1;var $e=e.compareStringsCaseSensitive(l.messageText,ne.messageText);if($e)return $e;if(!l.next&&!ne.next)return 0;if(!l.next)return-1;if(!ne.next)return 1;for(var Pn=Math.min(l.next.length,ne.next.length),hr=0;hrne.next.length?1:0}function W_(l){return l===4||l===2||l===1||l===6?1:0}e.getLanguageVariant=W_;function hm(l){return l.target||0}e.getEmitScriptTarget=hm;function vd(l){return typeof l.module=="number"?l.module:hm(l)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}e.getEmitModuleKind=vd;function Op(l){var ne=l.moduleResolution;return ne===void 0&&(ne=vd(l)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),ne}e.getEmitModuleResolutionKind=Op;function ym(l){switch(vd(l)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}}e.hasJsonModuleEmitEnabled=ym;function j_(l){return l.allowUnreachableCode===!1}e.unreachableCodeIsError=j_;function H_(l){return l.allowUnusedLabels===!1}e.unusedLabelIsError=H_;function hd(l){return!!(po(l)&&l.declarationMap)}e.getAreDeclarationMapsEnabled=hd;function Km(l){var ne=vd(l);return l.allowSyntheticDefaultImports!==void 0?l.allowSyntheticDefaultImports:l.esModuleInterop||ne===e.ModuleKind.System}e.getAllowSyntheticDefaultImports=Km;function po(l){return!!(l.declaration||l.composite)}e.getEmitDeclarations=po;function J_(l){return!!(l.preserveConstEnums||l.isolatedModules)}e.shouldPreserveConstEnums=J_;function Xp(l){return!!(l.incremental||l.composite)}e.isIncrementalCompilation=Xp;function zm(l,ne){return l[ne]===void 0?!!l.strict:!!l[ne]}e.getStrictOptionValue=zm;function yd(l){return l.allowJs===void 0?!!l.checkJs:l.allowJs}e.getAllowJSCompilerOption=yd;function Wg(l){return l.useDefineForClassFields===void 0?l.target===99:l.useDefineForClassFields}e.getUseDefineForClassFields=Wg;function Ed(l,ne){return ne!==l&&e.semanticDiagnosticsOptionDeclarations.some(function($e){return!ki(ea(ne,$e),ea(l,$e))})}e.compilerOptionsAffectSemanticDiagnostics=Ed;function it(l,ne){return ne!==l&&e.affectsEmitOptionDeclarations.some(function($e){return!ki(ea(ne,$e),ea(l,$e))})}e.compilerOptionsAffectEmit=it;function ea(l,ne){return ne.strictFlag?zm(l,ne.name):l[ne.name]}e.getCompilerOptionValue=ea;function ta(l){var ne=l.jsx;return ne===2||ne===4||ne===5}e.getJSXTransformEnabled=ta;function Ra(l,ne){var $e=ne==null?void 0:ne.pragmas.get("jsximportsource"),Pn=e.isArray($e)?$e[$e.length-1]:$e;return l.jsx===4||l.jsx===5||l.jsxImportSource||Pn?(Pn==null?void 0:Pn.arguments.factory)||l.jsxImportSource||"react":void 0}e.getJSXImplicitImportBase=Ra;function xa(l,ne){return l?l+"/"+(ne.jsx===5?"jsx-dev-runtime":"jsx-runtime"):void 0}e.getJSXRuntimeImport=xa;function xi(l){for(var ne=!1,$e=0;$e0;)zt+=")?",Ko--;return zt}}function Jg(l,ne){return l==="*"?ne:l==="?"?"[^/]":"\\"+l}function z_(l,ne,$e,Pn,hr){l=e.normalizePath(l),hr=e.normalizePath(hr);var yt=e.combinePaths(hr,l);return{includeFilePatterns:e.map(K_($e,yt,"files"),function(Mt){return"^"+Mt+"$"}),includeFilePattern:tp($e,yt,"files"),includeDirectoryPattern:tp($e,yt,"directories"),excludePattern:tp(ne,yt,"exclude"),basePaths:dh(l,$e,Pn)}}e.getFileMatcherPatterns=z_;function q_(l,ne){return new RegExp(l,ne?"":"i")}e.getRegexFromPattern=q_;function Kg(l,ne,$e,Pn,hr,yt,Mt,zt,Ci){l=e.normalizePath(l),yt=e.normalizePath(yt);for(var oi=z_(l,$e,Pn,hr,yt),mo=oi.includeFilePatterns&&oi.includeFilePatterns.map(function(bd){return q_(bd,hr)}),Ko=oi.includeDirectoryPattern&&q_(oi.includeDirectoryPattern,hr),fl=oi.excludePattern&&q_(oi.excludePattern,hr),Ka=mo?mo.map(function(){return[]}):[[]],_s=new e.Map,Ea=e.createGetCanonicalFileName(hr),zo=0,qc=oi.basePaths;zo=0;$e--)if(e.fileExtensionIs(l,ne[$e]))return Xg($e,ne);return 0}e.getExtensionPriority=xE;function Xg(l,ne){return l<2?0:l=0)}e.positionIsSynthesized=Bf;function zc(l){return l===".ts"||l===".tsx"||l===".d.ts"}e.extensionIsTS=zc;function hh(l){return zc(l)||l===".json"}e.resolutionExtensionIsTSOrJson=hh;function Yg(l){var ne=kc(l);return ne!==void 0?ne:e.Debug.fail("File "+l+" has unknown extension.")}e.extensionFromPath=Yg;function Y_(l){return kc(l)!==void 0}e.isAnySupportedFileExtension=Y_;function kc(l){return e.find(bm,function(ne){return e.fileExtensionIs(l,ne)})}e.tryGetExtensionFromPath=kc;function yh(l,ne){return l.checkJsDirective?l.checkJsDirective.enabled:ne.checkJs}e.isCheckJsEnabledForFile=yh,e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray};function Qg(l,ne){for(var $e=[],Pn=0,hr=l;PnPn&&(Pn=yt)}return{min:$e,max:Pn}}e.minAndMax=Pc;function sf(l){return{pos:X(l),end:l.end}}e.rangeOfNode=sf;function Uf(l,ne){var $e=ne.pos-1,Pn=e.skipTrivia(l.text,ne.end)+1;return{pos:$e,end:Pn}}e.rangeOfTypeParameters=Uf;function qm(l,ne,$e){return ne.skipLibCheck&&l.isDeclarationFile||ne.skipDefaultLibCheck&&l.hasNoDefaultLib||$e.isSourceOfProjectReferenceRedirect(l.fileName)}e.skipTypeChecking=qm;function ki(l,ne){return l===ne||typeof l=="object"&&l!==null&&typeof ne=="object"&&ne!==null&&e.equalOwnProperties(l,ne,ki)}e.isJsonEqual=ki;function NE(l){var ne;switch(l.charCodeAt(1)){case 98:case 66:ne=1;break;case 111:case 79:ne=3;break;case 120:case 88:ne=4;break;default:for(var $e=l.length-1,Pn=0;l.charCodeAt(Pn)===48;)Pn++;return l.slice(Pn,$e)||"0"}for(var hr=2,yt=l.length-1,Mt=(yt-hr)*ne,zt=new Uint16Array((Mt>>>4)+(Mt&15?1:0)),Ci=yt-1,oi=0;Ci>=hr;Ci--,oi+=ne){var mo=oi>>>4,Ko=l.charCodeAt(Ci),fl=Ko<=57?Ko-48:10+Ko-(Ko<=70?65:97),Ka=fl<<(oi&15);zt[mo]|=Ka;var _s=Ka>>>16;_s&&(zt[mo+1]|=_s)}for(var Ea="",zo=zt.length-1,qc=!0;qc;){var Gi=0;qc=!1;for(var mo=zo;mo>=0;mo--){var Uo=Gi<<16|zt[mo],bd=Uo/10|0;zt[mo]=bd,Gi=Uo-bd*10,bd&&!qc&&(zo=mo,qc=!0)}Ea=Gi+Ea}return Ea}e.parsePseudoBigInt=NE;function OE(l){var ne=l.negative,$e=l.base10Value;return(ne&&$e!=="0"?"-":"")+$e}e.pseudoBigIntToString=OE;function ap(l){return!!(l.flags&8388608)||Ui(l)||Zg(l)||kE(l)||!gi(l)}e.isValidTypeOnlyAliasUseSite=ap;function Ul(l){return l.kind===271}e.typeOnlyDeclarationIsExport=Ul;function kE(l){for(;l.kind===78||l.kind===202;)l=l.parent;if(l.kind!==159)return!1;if(Rs(l.parent,128))return!0;var ne=l.parent.parent.kind;return ne===254||ne===178}function Zg(l){if(l.kind!==78)return!1;var ne=e.findAncestor(l.parent,function($e){switch($e.kind){case 287:return!0;case 202:case 224:return!1;default:return"quit"}});return(ne==null?void 0:ne.token)===116||(ne==null?void 0:ne.parent.kind)===254}function PE(l){return e.isTypeReferenceNode(l)&&e.isIdentifier(l.typeName)}e.isIdentifierTypeReference=PE;function $g(l,ne){if(ne===void 0&&(ne=e.equateValues),l.length<2)return!0;for(var $e=l[0],Pn=1,hr=l.length;Pn3)return!0;var ee=e.getExpressionPrecedence(w);switch(e.compareValues(ee,u)){case-1:return!(!F&&b===1&&R.kind===220);case 1:return!1;case 0:if(F)return b===1;if(e.isBinaryExpression(w)&&w.operatorToken.kind===v){if(c(v))return!1;if(v===39){var le=_?x(_):0;if(e.isLiteralKind(le)&&le===x(w))return!1}}var ie=e.getExpressionAssociativity(w);return ie===0}}function c(v){return v===41||v===51||v===50||v===52}function x(v){if(v=e.skipPartiallyEmittedExpressions(v),e.isLiteralKind(v.kind))return v.kind;if(v.kind===217&&v.operatorToken.kind===39){if(v.cachedLiteralKind!==void 0)return v.cachedLiteralKind;var R=x(v.left),F=e.isLiteralKind(R)&&R===x(v.right)?R:0;return v.cachedLiteralKind=F,F}return 0}function se(v,R,F,_){var u=e.skipPartiallyEmittedExpressions(R);return u.kind===208?R:D(v,R,F,_)?p.createParenthesizedExpression(R):R}function z(v,R){return se(v,R,!0)}function ue(v,R,F){return se(v,F,!1,R)}function E(v){return e.isCommaSequence(v)?p.createParenthesizedExpression(v):v}function C(v){var R=e.getOperatorPrecedence(218,57),F=e.skipPartiallyEmittedExpressions(v),_=e.getExpressionPrecedence(F);return e.compareValues(_,R)!==1?p.createParenthesizedExpression(v):v}function I(v){var R=e.skipPartiallyEmittedExpressions(v);return e.isCommaSequence(R)?p.createParenthesizedExpression(v):v}function j(v){var R=e.skipPartiallyEmittedExpressions(v),F=e.isCommaSequence(R);if(!F)switch(e.getLeftmostExpression(R,!1).kind){case 222:case 209:F=!0}return F?p.createParenthesizedExpression(v):v}function Y(v){var R=e.getLeftmostExpression(v,!0);switch(R.kind){case 204:return p.createParenthesizedExpression(v);case 205:return R.arguments?v:p.createParenthesizedExpression(v)}return L(v)}function L(v){var R=e.skipPartiallyEmittedExpressions(v);return e.isLeftHandSideExpression(R)&&(R.kind!==205||R.arguments)?v:e.setTextRange(p.createParenthesizedExpression(v),v)}function k(v){return e.isLeftHandSideExpression(v)?v:e.setTextRange(p.createParenthesizedExpression(v),v)}function h(v){return e.isUnaryExpression(v)?v:e.setTextRange(p.createParenthesizedExpression(v),v)}function M(v){var R=e.sameMap(v,O);return e.setTextRange(p.createNodeArray(R,v.hasTrailingComma),v)}function O(v){var R=e.skipPartiallyEmittedExpressions(v),F=e.getExpressionPrecedence(R),_=e.getOperatorPrecedence(217,27);return F>_?v:e.setTextRange(p.createParenthesizedExpression(v),v)}function H(v){var R=e.skipPartiallyEmittedExpressions(v);if(e.isCallExpression(R)){var F=R.expression,_=e.skipPartiallyEmittedExpressions(F).kind;if(_===209||_===210){var u=p.updateCallExpression(R,e.setTextRange(p.createParenthesizedExpression(F),F),R.typeArguments,R.arguments);return p.restoreOuterExpressions(v,u,8)}}var b=e.getLeftmostExpression(R,!1).kind;return b===201||b===209?e.setTextRange(p.createParenthesizedExpression(v),v):v}function $(v){return!e.isBlock(v)&&(e.isCommaSequence(v)||e.getLeftmostExpression(v,!1).kind===201)?e.setTextRange(p.createParenthesizedExpression(v),v):v}function Z(v){return v.kind===185?p.createParenthesizedType(v):v}function B(v){switch(v.kind){case 183:case 184:case 175:case 176:return p.createParenthesizedType(v)}return Z(v)}function U(v){switch(v.kind){case 177:case 189:case 186:return p.createParenthesizedType(v)}return B(v)}function K(v){return p.createNodeArray(e.sameMap(v,B))}function T(v,R){return R===0&&e.isFunctionOrConstructorTypeNode(v)&&v.typeParameters?p.createParenthesizedType(v):v}function G(v){if(e.some(v))return p.createNodeArray(e.sameMap(v,T))}}e.createParenthesizerRules=a,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(p){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(p){return e.identity},parenthesizeLeftSideOfBinary:function(p,g){return g},parenthesizeRightSideOfBinary:function(p,g,t){return t},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(p){return e.cast(p,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(p){return e.cast(p,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(p){return e.cast(p,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(p){return e.cast(p,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(p){return e.cast(p,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(p){return e.cast(p,e.isNodeArray)},parenthesizeTypeArguments:function(p){return p&&e.cast(p,e.isNodeArray)}}})(un||(un={}));var un;(function(e){function a(p){return{convertToFunctionBlock:g,convertToFunctionExpression:t,convertToArrayAssignmentElement:m,convertToObjectAssignmentElement:N,convertToAssignmentPattern:D,convertToObjectAssignmentPattern:c,convertToArrayAssignmentPattern:x,convertToAssignmentElementTarget:se};function g(z,ue){if(e.isBlock(z))return z;var E=p.createReturnStatement(z);e.setTextRange(E,z);var C=p.createBlock([E],ue);return e.setTextRange(C,z),C}function t(z){if(!z.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var ue=p.createFunctionExpression(z.modifiers,z.asteriskToken,z.name,z.typeParameters,z.parameters,z.type,z.body);return e.setOriginalNode(ue,z),e.setTextRange(ue,z),e.getStartsOnNewLine(z)&&e.setStartsOnNewLine(ue,!0),ue}function m(z){if(e.isBindingElement(z)){if(z.dotDotDotToken)return e.Debug.assertNode(z.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(p.createSpreadElement(z.name),z),z);var ue=se(z.name);return z.initializer?e.setOriginalNode(e.setTextRange(p.createAssignment(ue,z.initializer),z),z):ue}return e.cast(z,e.isExpression)}function N(z){if(e.isBindingElement(z)){if(z.dotDotDotToken)return e.Debug.assertNode(z.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(p.createSpreadAssignment(z.name),z),z);if(z.propertyName){var ue=se(z.name);return e.setOriginalNode(e.setTextRange(p.createPropertyAssignment(z.propertyName,z.initializer?p.createAssignment(ue,z.initializer):ue),z),z)}return e.Debug.assertNode(z.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(p.createShorthandPropertyAssignment(z.name,z.initializer),z),z)}return e.cast(z,e.isObjectLiteralElementLike)}function D(z){switch(z.kind){case 198:case 200:return x(z);case 197:case 201:return c(z)}}function c(z){return e.isObjectBindingPattern(z)?e.setOriginalNode(e.setTextRange(p.createObjectLiteralExpression(e.map(z.elements,N)),z),z):e.cast(z,e.isObjectLiteralExpression)}function x(z){return e.isArrayBindingPattern(z)?e.setOriginalNode(e.setTextRange(p.createArrayLiteralExpression(e.map(z.elements,m)),z),z):e.cast(z,e.isArrayLiteralExpression)}function se(z){return e.isBindingPattern(z)?D(z):e.cast(z,e.isExpression)}}e.createNodeConverters=a,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}})(un||(un={}));var un;(function(e){var a=0;(function(U){U[U.None=0]="None",U[U.NoParenthesizerRules=1]="NoParenthesizerRules",U[U.NoNodeConverters=2]="NoNodeConverters",U[U.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",U[U.NoOriginalNode=8]="NoOriginalNode"})(e.NodeFactoryFlags||(e.NodeFactoryFlags={}));function p(U,K){var T=U&8?g:t,G=e.memoize(function(){return U&1?e.nullParenthesizerRules:e.createParenthesizerRules(ge)}),v=e.memoize(function(){return U&2?e.nullNodeConverters:e.createNodeConverters(ge)}),R=e.memoizeOne(function(d){return function(V,he){return Ba(V,d,he)}}),F=e.memoizeOne(function(d){return function(V){return ir(d,V)}}),_=e.memoizeOne(function(d){return function(V){return mn(V,d)}}),u=e.memoizeOne(function(d){return function(){return Dp(d)}}),b=e.memoizeOne(function(d){return function(V){return ic(d,V)}}),w=e.memoizeOne(function(d){return function(V,he){return ml(d,V,he)}}),ee=e.memoizeOne(function(d){return function(V,he){return Wc(d,V,he)}}),le=e.memoizeOne(function(d){return function(V,he,nn){return xu(d,V,he,nn)}}),ie=e.memoizeOne(function(d){return function(V,he,nn){return mu(d,V,he,nn)}}),W=e.memoizeOne(function(d){return function(V,he,nn,On){return xc(d,V,he,nn,On)}}),ge={get parenthesizer(){return G()},get converters(){return v()},createNodeArray:fe,createNumericLiteral:de,createBigIntLiteral:Ce,createStringLiteral:on,createStringLiteralFromNode:Te,createRegularExpressionLiteral:tn,createLiteralLikeNode:Fe,createIdentifier:vn,updateIdentifier:xn,createTempVariable:Rn,createLoopVariable:Ge,createUniqueName:we,getGeneratedNameForNode:Re,createPrivateIdentifier:yn,createToken:oe,createSuper:J,createThis:te,createNull:me,createTrue:xe,createFalse:P,createModifier:Se,createModifiersFromModifierFlags:Ye,createQualifiedName:an,updateQualifiedName:Sn,createComputedPropertyName:Xn,updateComputedPropertyName:wn,createTypeParameterDeclaration:qn,updateTypeParameterDeclaration:yr,createParameterDeclaration:Vr,updateParameterDeclaration:Me,createDecorator:We,updateDecorator:Tn,createPropertySignature:Nn,updatePropertySignature:Vn,createPropertyDeclaration:Hn,updatePropertyDeclaration:kr,createMethodSignature:kn,updateMethodSignature:Sr,createMethodDeclaration:Cr,updateMethodDeclaration:Qe,createConstructorDeclaration:Bn,updateConstructorDeclaration:bn,createGetAccessorDeclaration:In,updateGetAccessorDeclaration:Be,createSetAccessorDeclaration:Zn,updateSetAccessorDeclaration:_r,createCallSignature:zn,updateCallSignature:Er,createConstructSignature:Pr,updateConstructSignature:tt,createIndexSignature:mr,updateIndexSignature:Ln,createTemplateLiteralTypeSpan:jn,updateTemplateLiteralTypeSpan:ar,createKeywordTypeNode:dr,createTypePredicateNode:Rr,updateTypePredicateNode:qr,createTypeReferenceNode:br,updateTypeReferenceNode:Br,createFunctionTypeNode:vt,updateFunctionTypeNode:dt,createConstructorTypeNode:cr,updateConstructorTypeNode:Ut,createTypeQueryNode:Sa,updateTypeQueryNode:qt,createTypeLiteralNode:ga,updateTypeLiteralNode:Mr,createArrayTypeNode:Kr,updateArrayTypeNode:jr,createTupleTypeNode:En,updateTupleTypeNode:tr,createNamedTupleMember:gr,updateNamedTupleMember:Or,createOptionalTypeNode:mt,updateOptionalTypeNode:ft,createRestTypeNode:Dt,updateRestTypeNode:sa,createUnionTypeNode:ri,updateUnionTypeNode:mi,createIntersectionTypeNode:Ei,updateIntersectionTypeNode:_i,createConditionalTypeNode:yi,updateConditionalTypeNode:Ni,createInferTypeNode:ja,updateInferTypeNode:ui,createImportTypeNode:_o,updateImportTypeNode:ro,createParenthesizedType:Zi,updateParenthesizedType:Ao,createThisTypeNode:bo,createTypeOperatorNode:ti,updateTypeOperatorNode:Xt,createIndexedAccessTypeNode:gi,updateIndexedAccessTypeNode:Ji,createMappedTypeNode:Ui,updateMappedTypeNode:go,createLiteralTypeNode:wo,updateLiteralTypeNode:oo,createTemplateLiteralType:Di,updateTemplateLiteralType:Io,createObjectBindingPattern:Go,updateObjectBindingPattern:Vo,createArrayBindingPattern:pr,updateArrayBindingPattern:Ot,createBindingElement:Xe,updateBindingElement:Jn,createArrayLiteralExpression:Zr,updateArrayLiteralExpression:Ae,createObjectLiteralExpression:Dn,updateObjectLiteralExpression:pe,createPropertyAccessExpression:U&4?function(d,V){return e.setEmitFlags(Q(d,V),131072)}:Q,updatePropertyAccessExpression:De,createPropertyAccessChain:U&4?function(d,V,he){return e.setEmitFlags(qe(d,V,he),131072)}:qe,updatePropertyAccessChain:sn,createElementAccessExpression:Mn,updateElementAccessExpression:or,createElementAccessChain:Ir,updateElementAccessChain:at,createCallExpression:Ft,updateCallExpression:Da,createCallChain:$a,updateCallChain:Za,createNewExpression:hi,updateNewExpression:vo,createTaggedTemplateExpression:fs,updateTaggedTemplateExpression:bs,createTypeAssertion:ds,updateTypeAssertion:gs,createParenthesizedExpression:Zo,updateParenthesizedExpression:ws,createFunctionExpression:Ws,updateFunctionExpression:Ts,createArrowFunction:Gs,updateArrowFunction:Cs,createDeleteExpression:xs,updateDeleteExpression:vs,createTypeOfExpression:js,updateTypeOfExpression:Zs,createVoidExpression:He,updateVoidExpression:ur,createAwaitExpression:ae,updateAwaitExpression:An,createPrefixUnaryExpression:ir,updatePrefixUnaryExpression:Ur,createPostfixUnaryExpression:mn,updatePostfixUnaryExpression:wa,createBinaryExpression:Ba,updateBinaryExpression:ci,createConditionalExpression:Xi,updateConditionalExpression:so,createTemplateExpression:Wo,updateTemplateExpression:ps,createTemplateHead:dl,createTemplateMiddle:ol,createTemplateTail:Il,createNoSubstitutionTemplateLiteral:rc,createTemplateLiteralLikeNode:xl,createYieldExpression:tc,updateYieldExpression:Kl,createSpreadElement:Dc,updateSpreadElement:zl,createClassExpression:hn,updateClassExpression:Gn,createOmittedExpression:vr,createExpressionWithTypeArguments:Qr,updateExpressionWithTypeArguments:ct,createAsExpression:ot,updateAsExpression:Lt,createNonNullExpression:kt,updateNonNullExpression:ya,createNonNullChain:ni,updateNonNullChain:Yt,createMetaProperty:fa,updateMetaProperty:li,createTemplateSpan:Ti,updateTemplateSpan:To,createSemicolonClassElement:ce,createBlock:ln,updateBlock:pn,createVariableStatement:$n,updateVariableStatement:cn,createEmptyStatement:Ht,createExpressionStatement:$t,updateExpressionStatement:Ia,createIfStatement:Li,updateIfStatement:Mi,createDoStatement:lo,updateDoStatement:Bt,createWhileStatement:Ki,updateWhileStatement:co,createForStatement:Ro,updateForStatement:uo,createForInStatement:$s,updateForInStatement:yl,createForOfStatement:nu,updateForOfStatement:Rl,createContinueStatement:Is,updateContinueStatement:mc,createBreakStatement:Ua,updateBreakStatement:ia,createReturnStatement:ql,updateReturnStatement:El,createWithStatement:yp,updateWithStatement:hs,createSwitchStatement:Tf,updateSwitchStatement:No,createLabeledStatement:Qf,updateLabeledStatement:Su,createThrowStatement:Ep,updateThrowStatement:os,createTryStatement:Fs,updateTryStatement:pl,createDebuggerStatement:Md,createVariableDeclaration:Lu,updateVariableDeclaration:Zf,createVariableDeclarationList:zu,updateVariableDeclarationList:wd,createFunctionDeclaration:Gd,updateFunctionDeclaration:bp,createClassDeclaration:Fd,updateClassDeclaration:Tp,createInterfaceDeclaration:Sp,updateInterfaceDeclaration:Bd,createTypeAliasDeclaration:Sf,updateTypeAliasDeclaration:Ud,createEnumDeclaration:Au,updateEnumDeclaration:ac,createModuleDeclaration:$f,updateModuleDeclaration:ed,createModuleBlock:nd,updateModuleBlock:Vd,createCaseBlock:Du,updateCaseBlock:Lp,createNamespaceExportDeclaration:rd,updateNamespaceExportDeclaration:Kp,createImportEqualsDeclaration:Wd,updateImportEqualsDeclaration:jd,createImportDeclaration:Hd,updateImportDeclaration:Nl,createImportClause:ru,updateImportClause:qu,createNamespaceImport:pu,updateNamespaceImport:Jd,createNamespaceExport:Ap,updateNamespaceExport:Cu,createNamedImports:Lf,updateNamedImports:td,createImportSpecifier:ad,updateImportSpecifier:Kd,createExportAssignment:Af,updateExportAssignment:Df,createExportDeclaration:id,updateExportDeclaration:Cc,createNamedExports:Xu,updateNamedExports:Vi,createExportSpecifier:Fo,updateExportSpecifier:Bc,createMissingDeclaration:Ol,createExternalModuleReference:Uc,updateExternalModuleReference:bl,get createJSDocAllType(){return u(304)},get createJSDocUnknownType(){return u(305)},get createJSDocNonNullableType(){return b(307)},get updateJSDocNonNullableType(){return w(307)},get createJSDocNullableType(){return b(306)},get updateJSDocNullableType(){return w(306)},get createJSDocOptionalType(){return b(308)},get updateJSDocOptionalType(){return w(308)},get createJSDocVariadicType(){return b(310)},get updateJSDocVariadicType(){return w(310)},get createJSDocNamepathType(){return b(311)},get updateJSDocNamepathType(){return w(311)},createJSDocFunctionType:kl,updateJSDocFunctionType:el,createJSDocTypeLiteral:Oo,updateJSDocTypeLiteral:od,createJSDocTypeExpression:Cf,updateJSDocTypeExpression:Cp,createJSDocSignature:xf,updateJSDocSignature:Si,createJSDocTemplateTag:If,updateJSDocTemplateTag:zd,createJSDocTypedefTag:sl,updateJSDocTypedefTag:sd,createJSDocParameterTag:Ct,updateJSDocParameterTag:Jo,createJSDocPropertyTag:ei,updateJSDocPropertyTag:nl,createJSDocCallbackTag:Yu,updateJSDocCallbackTag:Vc,createJSDocAugmentsTag:St,updateJSDocAugmentsTag:oc,createJSDocImplementsTag:ko,updateJSDocImplementsTag:qd,createJSDocSeeTag:Xl,updateJSDocSeeTag:Ml,createJSDocNameReference:wi,updateJSDocNameReference:At,createJSDocLink:Hs,updateJSDocLink:ld,get createJSDocTypeTag(){return ie(333)},get updateJSDocTypeTag(){return W(333)},get createJSDocReturnTag(){return ie(331)},get updateJSDocReturnTag(){return W(331)},get createJSDocThisTag(){return ie(332)},get updateJSDocThisTag(){return W(332)},get createJSDocEnumTag(){return ie(329)},get updateJSDocEnumTag(){return W(329)},get createJSDocAuthorTag(){return ee(320)},get updateJSDocAuthorTag(){return le(320)},get createJSDocClassTag(){return ee(322)},get updateJSDocClassTag(){return le(322)},get createJSDocPublicTag(){return ee(323)},get updateJSDocPublicTag(){return le(323)},get createJSDocPrivateTag(){return ee(324)},get updateJSDocPrivateTag(){return le(324)},get createJSDocProtectedTag(){return ee(325)},get updateJSDocProtectedTag(){return le(325)},get createJSDocReadonlyTag(){return ee(326)},get updateJSDocReadonlyTag(){return le(326)},get createJSDocOverrideTag(){return ee(327)},get updateJSDocOverrideTag(){return le(327)},get createJSDocDeprecatedTag(){return ee(321)},get updateJSDocDeprecatedTag(){return le(321)},createJSDocUnknownTag:jc,updateJSDocUnknownTag:_u,createJSDocText:Qu,updateJSDocText:ll,createJSDocComment:Zu,updateJSDocComment:ho,createJsxElement:Iu,updateJsxElement:Sl,createJsxSelfClosingElement:_c,updateJsxSelfClosingElement:Rs,createJsxOpeningElement:gc,updateJsxOpeningElement:vc,createJsxClosingElement:rl,updateJsxClosingElement:to,createJsxFragment:jo,createJsxText:tu,updateJsxText:Ic,createJsxOpeningFragment:Yl,createJsxJsxClosingFragment:cd,updateJsxFragment:Hc,createJsxAttribute:ud,updateJsxAttribute:Ru,createJsxAttributes:Jc,updateJsxAttributes:$u,createJsxSpreadAttribute:gu,updateJsxSpreadAttribute:Rf,createJsxExpression:Nu,updateJsxExpression:fd,createCaseClause:dd,updateCaseClause:au,createDefaultClause:Ou,updateDefaultClause:xp,createHeritageClause:Ga,updateHeritageClause:hc,createCatchClause:gt,updateCatchClause:pd,createPropertyAssignment:Ql,updatePropertyAssignment:Xd,createShorthandPropertyAssignment:ef,updateShorthandPropertyAssignment:sc,createSpreadAssignment:lc,updateSpreadAssignment:nf,createEnumMember:Ip,updateEnumMember:Rp,createSourceFile:Nf,updateSourceFile:Nc,createBundle:Oc,updateBundle:cc,createUnparsedSource:cl,createUnparsedPrologue:Yd,createUnparsedPrepend:wl,createUnparsedTextLike:rf,createUnparsedSyntheticReference:zp,createInputFiles:qo,createSyntheticExpression:qp,createSyntaxList:zi,createNotEmittedStatement:Pu,createPartiallyEmittedExpression:Pf,updatePartiallyEmittedExpression:tf,createCommaListExpression:Mu,updateCommaListExpression:wf,createEndOfDeclarationMarker:yc,createMergeDeclarationMarker:md,createSyntheticReferenceExpression:Qd,updateSyntheticReferenceExpression:Zd,cloneNode:wu,get createComma(){return R(27)},get createAssignment(){return R(62)},get createLogicalOr(){return R(56)},get createLogicalAnd(){return R(55)},get createBitwiseOr(){return R(51)},get createBitwiseXor(){return R(52)},get createBitwiseAnd(){return R(50)},get createStrictEquality(){return R(36)},get createStrictInequality(){return R(37)},get createEquality(){return R(34)},get createInequality(){return R(35)},get createLessThan(){return R(29)},get createLessThanEquals(){return R(32)},get createGreaterThan(){return R(31)},get createGreaterThanEquals(){return R(33)},get createLeftShift(){return R(47)},get createRightShift(){return R(48)},get createUnsignedRightShift(){return R(49)},get createAdd(){return R(39)},get createSubtract(){return R(40)},get createMultiply(){return R(41)},get createDivide(){return R(43)},get createModulo(){return R(44)},get createExponent(){return R(42)},get createPrefixPlus(){return F(39)},get createPrefixMinus(){return F(40)},get createPrefixIncrement(){return F(45)},get createPrefixDecrement(){return F(46)},get createBitwiseNot(){return F(54)},get createLogicalNot(){return F(53)},get createPostfixIncrement(){return _(45)},get createPostfixDecrement(){return _(46)},createImmediatelyInvokedFunctionExpression:Np,createImmediatelyInvokedArrowFunction:y,createVoidZero:Ze,createExportDefault:er,createExternalModuleExport:Ar,createTypeCheck:aa,createMethodCall:_a,createGlobalMethodCall:fo,createFunctionBindCall:Ca,createFunctionCallCall:Ja,createFunctionApplyCall:Yi,createArraySliceCall:Do,createArrayConcatCall:tl,createObjectDefinePropertyCall:ys,createPropertyDescriptor:uc,createCallBinding:fc,inlineExpressions:Le,getInternalName:Fn,getLocalName:rr,getExportName:Nr,getDeclarationName:et,getNamespaceMemberName:xt,getExternalModuleOrNamespaceExportName:Kt,restoreOuterExpressions:Gf,restoreEnclosingLabel:$d,createUseStrictPrologue:ji,copyPrologue:ai,copyStandardPrologue:$o,copyCustomPrologue:ao,ensureUseStrict:es,liftToBlock:ss,mergeLexicalEnvironment:Ss,updateModifiers:Gu};return ge;function fe(d,V){if(d===void 0||d===e.emptyArray)d=[];else if(e.isNodeArray(d))return d.transformFlags===void 0&&E(d),e.Debug.attachNodeArrayDebugInfo(d),d;var he=d.length,nn=he>=1&&he<=4?d.slice():d;return e.setTextRangePosEnd(nn,-1,-1),nn.hasTrailingComma=!!V,E(nn),e.Debug.attachNodeArrayDebugInfo(nn),nn}function A(d){return K.createBaseNode(d)}function X(d,V,he){var nn=A(d);return nn.decorators=ns(V),nn.modifiers=ns(he),nn.transformFlags|=ue(nn.decorators)|ue(nn.modifiers),nn.symbol=void 0,nn.localSymbol=void 0,nn.locals=void 0,nn.nextContainer=void 0,nn}function re(d,V,he,nn){var On=X(d,V,he);if(nn=al(nn),On.name=nn,nn)switch(On.kind){case 166:case 168:case 169:case 164:case 289:if(e.isIdentifier(nn)){On.transformFlags|=x(nn);break}default:On.transformFlags|=z(nn);break}return On}function ve(d,V,he,nn,On){var Gr=re(d,V,he,nn);return Gr.typeParameters=ns(On),Gr.transformFlags|=ue(Gr.typeParameters),On&&(Gr.transformFlags|=1),Gr}function ke(d,V,he,nn,On,Gr,Et){var ba=ve(d,V,he,nn,On);return ba.parameters=fe(Gr),ba.type=Et,ba.transformFlags|=ue(ba.parameters)|z(ba.type),Et&&(ba.transformFlags|=1),ba}function Ie(d,V){return V.typeArguments&&(d.typeArguments=V.typeArguments),T(d,V)}function Je(d,V,he,nn,On,Gr,Et,ba){var Bo=ke(d,V,he,nn,On,Gr,Et);return Bo.body=ba,Bo.transformFlags|=z(Bo.body)&-16777217,ba||(Bo.transformFlags|=1),Bo}function je(d,V){return V.exclamationToken&&(d.exclamationToken=V.exclamationToken),V.typeArguments&&(d.typeArguments=V.typeArguments),Ie(d,V)}function fn(d,V,he,nn,On,Gr){var Et=ve(d,V,he,nn,On);return Et.heritageClauses=ns(Gr),Et.transformFlags|=ue(Et.heritageClauses),Et}function ze(d,V,he,nn,On,Gr,Et){var ba=fn(d,V,he,nn,On,Gr);return ba.members=fe(Et),ba.transformFlags|=ue(ba.members),ba}function Ve(d,V,he,nn,On){var Gr=re(d,V,he,nn);return Gr.initializer=On,Gr.transformFlags|=z(Gr.initializer),Gr}function Ne(d,V,he,nn,On,Gr){var Et=Ve(d,V,he,nn,Gr);return Et.type=On,Et.transformFlags|=z(On),On&&(Et.transformFlags|=1),Et}function be(d,V){var he=Ee(d);return he.text=V,he}function de(d,V){V===void 0&&(V=0);var he=be(8,typeof d=="number"?d+"":d);return he.numericLiteralFlags=V,V&384&&(he.transformFlags|=512),he}function Ce(d){var V=be(9,typeof d=="string"?d:e.pseudoBigIntToString(d)+"n");return V.transformFlags|=4,V}function ye(d,V){var he=be(10,d);return he.singleQuote=V,he}function on(d,V,he){var nn=ye(d,V);return nn.hasExtendedUnicodeEscape=he,he&&(nn.transformFlags|=512),nn}function Te(d){var V=ye(e.getTextOfIdentifierOrLiteral(d),void 0);return V.textSourceNode=d,V}function tn(d){var V=be(13,d);return V}function Fe(d,V){switch(d){case 8:return de(V,0);case 9:return Ce(V);case 10:return on(V,void 0);case 11:return tu(V,!1);case 12:return tu(V,!0);case 13:return tn(V);case 14:return xl(d,V,void 0,0)}}function Ke(d,V){V===void 0&&d&&(V=e.stringToToken(d)),V===78&&(V=void 0);var he=K.createBaseIdentifierNode(78);return he.originalKeywordKind=V,he.escapedText=e.escapeLeadingUnderscores(d),he}function rn(d,V){var he=Ke(d,void 0);return he.autoGenerateFlags=V,he.autoGenerateId=a,a++,he}function vn(d,V,he){var nn=Ke(d,he);return V&&(nn.typeArguments=fe(V)),nn.originalKeywordKind===130&&(nn.transformFlags|=16777216),nn}function xn(d,V){return d.typeArguments!==V?T(vn(e.idText(d),V),d):d}function Rn(d,V){var he=1;V&&(he|=8);var nn=rn("",he);return d&&d(nn),nn}function Ge(d){var V=2;return d&&(V|=8),rn("",V)}function we(d,V){return V===void 0&&(V=0),e.Debug.assert(!(V&7),"Argument out of range: flags"),e.Debug.assert((V&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),rn(d,3|V)}function Re(d,V){V===void 0&&(V=0),e.Debug.assert(!(V&7),"Argument out of range: flags");var he=rn(d&&e.isIdentifier(d)?e.idText(d):"",4|V);return he.original=d,he}function yn(d){e.startsWith(d,"#")||e.Debug.fail("First character of private identifier must be #: "+d);var V=K.createBasePrivateIdentifierNode(79);return V.escapedText=e.escapeLeadingUnderscores(d),V.transformFlags|=8388608,V}function Ee(d){return K.createBaseTokenNode(d)}function oe(d){e.Debug.assert(d>=0&&d<=157,"Invalid token"),e.Debug.assert(d<=14||d>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(d<=8||d>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(d!==78,"Invalid token. Use 'createIdentifier' to create identifiers");var V=Ee(d),he=0;switch(d){case 129:he=192;break;case 122:case 120:case 121:case 142:case 125:case 133:case 84:case 128:case 144:case 155:case 141:case 145:case 156:case 147:case 131:case 148:case 113:case 152:case 150:he=1;break;case 123:case 105:he=512;break;case 107:he=8192;break}return he&&(V.transformFlags|=he),V}function J(){return oe(105)}function te(){return oe(107)}function me(){return oe(103)}function xe(){return oe(109)}function P(){return oe(94)}function Se(d){return oe(d)}function Ye(d){var V=[];return d&1&&V.push(Se(92)),d&2&&V.push(Se(133)),d&512&&V.push(Se(87)),d&2048&&V.push(Se(84)),d&4&&V.push(Se(122)),d&8&&V.push(Se(120)),d&16&&V.push(Se(121)),d&128&&V.push(Se(125)),d&32&&V.push(Se(123)),d&16384&&V.push(Se(156)),d&64&&V.push(Se(142)),d&256&&V.push(Se(129)),V}function an(d,V){var he=A(158);return he.left=d,he.right=al(V),he.transformFlags|=z(he.left)|x(he.right),he}function Sn(d,V,he){return d.left!==V||d.right!==he?T(an(V,he),d):d}function Xn(d){var V=A(159);return V.expression=G().parenthesizeExpressionOfComputedPropertyName(d),V.transformFlags|=z(V.expression)|512|65536,V}function wn(d,V){return d.expression!==V?T(Xn(V),d):d}function qn(d,V,he){var nn=re(160,void 0,void 0,d);return nn.constraint=V,nn.default=he,nn.transformFlags=1,nn}function yr(d,V,he,nn){return d.name!==V||d.constraint!==he||d.default!==nn?T(qn(V,he,nn),d):d}function Vr(d,V,he,nn,On,Gr,Et){var ba=Ne(161,d,V,nn,Gr,Et&&G().parenthesizeExpressionForDisallowedComma(Et));return ba.dotDotDotToken=he,ba.questionToken=On,e.isThisIdentifier(ba.name)?ba.transformFlags=1:(ba.transformFlags|=z(ba.dotDotDotToken)|z(ba.questionToken),On&&(ba.transformFlags|=1),e.modifiersToFlags(ba.modifiers)&16476&&(ba.transformFlags|=4096),(Et||he)&&(ba.transformFlags|=512)),ba}function Me(d,V,he,nn,On,Gr,Et,ba){return d.decorators!==V||d.modifiers!==he||d.dotDotDotToken!==nn||d.name!==On||d.questionToken!==Gr||d.type!==Et||d.initializer!==ba?T(Vr(V,he,nn,On,Gr,Et,ba),d):d}function We(d){var V=A(162);return V.expression=G().parenthesizeLeftSideOfAccess(d),V.transformFlags|=z(V.expression)|1|4096,V}function Tn(d,V){return d.expression!==V?T(We(V),d):d}function Nn(d,V,he,nn){var On=re(163,void 0,d,V);return On.type=nn,On.questionToken=he,On.transformFlags=1,On}function Vn(d,V,he,nn,On){return d.modifiers!==V||d.name!==he||d.questionToken!==nn||d.type!==On?T(Nn(V,he,nn,On),d):d}function Hn(d,V,he,nn,On,Gr){var Et=Ne(164,d,V,he,On,Gr);return Et.questionToken=nn&&e.isQuestionToken(nn)?nn:void 0,Et.exclamationToken=nn&&e.isExclamationToken(nn)?nn:void 0,Et.transformFlags|=z(Et.questionToken)|z(Et.exclamationToken)|8388608,(e.isComputedPropertyName(Et.name)||e.hasStaticModifier(Et)&&Et.initializer)&&(Et.transformFlags|=4096),(nn||e.modifiersToFlags(Et.modifiers)&2)&&(Et.transformFlags|=1),Et}function kr(d,V,he,nn,On,Gr,Et){return d.decorators!==V||d.modifiers!==he||d.name!==nn||d.questionToken!==(On!==void 0&&e.isQuestionToken(On)?On:void 0)||d.exclamationToken!==(On!==void 0&&e.isExclamationToken(On)?On:void 0)||d.type!==Gr||d.initializer!==Et?T(Hn(V,he,nn,On,Gr,Et),d):d}function kn(d,V,he,nn,On,Gr){var Et=ke(165,void 0,d,V,nn,On,Gr);return Et.questionToken=he,Et.transformFlags=1,Et}function Sr(d,V,he,nn,On,Gr,Et){return d.modifiers!==V||d.name!==he||d.questionToken!==nn||d.typeParameters!==On||d.parameters!==Gr||d.type!==Et?Ie(kn(V,he,nn,On,Gr,Et),d):d}function Cr(d,V,he,nn,On,Gr,Et,ba,Bo){var Xo=Je(166,d,V,nn,Gr,Et,ba,Bo);return Xo.asteriskToken=he,Xo.questionToken=On,Xo.transformFlags|=z(Xo.asteriskToken)|z(Xo.questionToken)|512,On&&(Xo.transformFlags|=1),e.modifiersToFlags(Xo.modifiers)&256?he?Xo.transformFlags|=64:Xo.transformFlags|=128:he&&(Xo.transformFlags|=1024),Xo}function Qe(d,V,he,nn,On,Gr,Et,ba,Bo,Xo){return d.decorators!==V||d.modifiers!==he||d.asteriskToken!==nn||d.name!==On||d.questionToken!==Gr||d.typeParameters!==Et||d.parameters!==ba||d.type!==Bo||d.body!==Xo?je(Cr(V,he,nn,On,Gr,Et,ba,Bo,Xo),d):d}function Bn(d,V,he,nn){var On=Je(167,d,V,void 0,void 0,he,void 0,nn);return On.transformFlags|=512,On}function bn(d,V,he,nn,On){return d.decorators!==V||d.modifiers!==he||d.parameters!==nn||d.body!==On?je(Bn(V,he,nn,On),d):d}function In(d,V,he,nn,On,Gr){return Je(168,d,V,he,void 0,nn,On,Gr)}function Be(d,V,he,nn,On,Gr,Et){return d.decorators!==V||d.modifiers!==he||d.name!==nn||d.parameters!==On||d.type!==Gr||d.body!==Et?je(In(V,he,nn,On,Gr,Et),d):d}function Zn(d,V,he,nn,On){return Je(169,d,V,he,void 0,nn,void 0,On)}function _r(d,V,he,nn,On,Gr){return d.decorators!==V||d.modifiers!==he||d.name!==nn||d.parameters!==On||d.body!==Gr?je(Zn(V,he,nn,On,Gr),d):d}function zn(d,V,he){var nn=ke(170,void 0,void 0,void 0,d,V,he);return nn.transformFlags=1,nn}function Er(d,V,he,nn){return d.typeParameters!==V||d.parameters!==he||d.type!==nn?Ie(zn(V,he,nn),d):d}function Pr(d,V,he){var nn=ke(171,void 0,void 0,void 0,d,V,he);return nn.transformFlags=1,nn}function tt(d,V,he,nn){return d.typeParameters!==V||d.parameters!==he||d.type!==nn?Ie(Pr(V,he,nn),d):d}function mr(d,V,he,nn){var On=ke(172,d,V,void 0,void 0,he,nn);return On.transformFlags=1,On}function Ln(d,V,he,nn,On){return d.parameters!==nn||d.type!==On||d.decorators!==V||d.modifiers!==he?Ie(mr(V,he,nn,On),d):d}function jn(d,V){var he=A(195);return he.type=d,he.literal=V,he.transformFlags=1,he}function ar(d,V,he){return d.type!==V||d.literal!==he?T(jn(V,he),d):d}function dr(d){return oe(d)}function Rr(d,V,he){var nn=A(173);return nn.assertsModifier=d,nn.parameterName=al(V),nn.type=he,nn.transformFlags=1,nn}function qr(d,V,he,nn){return d.assertsModifier!==V||d.parameterName!==he||d.type!==nn?T(Rr(V,he,nn),d):d}function br(d,V){var he=A(174);return he.typeName=al(d),he.typeArguments=V&&G().parenthesizeTypeArguments(fe(V)),he.transformFlags=1,he}function Br(d,V,he){return d.typeName!==V||d.typeArguments!==he?T(br(V,he),d):d}function vt(d,V,he){var nn=ke(175,void 0,void 0,void 0,d,V,he);return nn.transformFlags=1,nn}function dt(d,V,he,nn){return d.typeParameters!==V||d.parameters!==he||d.type!==nn?Ie(vt(V,he,nn),d):d}function cr(){for(var d=[],V=0;V0;default:return!0}}function fc(d,V,he,nn){nn===void 0&&(nn=!1);var On=e.skipOuterExpressions(d,15),Gr,Et;return e.isSuperProperty(On)?(Gr=te(),Et=On):e.isSuperKeyword(On)?(Gr=te(),Et=he!==void 0&&he<2?e.setTextRange(vn("_super"),On):On):e.getEmitFlags(On)&4096?(Gr=Ze(),Et=G().parenthesizeLeftSideOfAccess(On)):e.isPropertyAccessExpression(On)?vu(On.expression,nn)?(Gr=Rn(V),Et=Q(e.setTextRange(ge.createAssignment(Gr,On.expression),On.expression),On.name),e.setTextRange(Et,On)):(Gr=On.expression,Et=On):e.isElementAccessExpression(On)?vu(On.expression,nn)?(Gr=Rn(V),Et=Mn(e.setTextRange(ge.createAssignment(Gr,On.expression),On.expression),On.argumentExpression),e.setTextRange(Et,On)):(Gr=On.expression,Et=On):(Gr=Ze(),Et=G().parenthesizeLeftSideOfAccess(d)),{target:Et,thisArg:Gr}}function Le(d){return d.length>10?Mu(d):e.reduceLeft(d,ge.createComma)}function dn(d,V,he,nn){nn===void 0&&(nn=0);var On=e.getNameOfDeclaration(d);if(On&&e.isIdentifier(On)&&!e.isGeneratedIdentifier(On)){var Gr=e.setParent(e.setTextRange(wu(On),On),On.parent);return nn|=e.getEmitFlags(On),he||(nn|=48),V||(nn|=1536),nn&&e.setEmitFlags(Gr,nn),Gr}return Re(d)}function Fn(d,V,he){return dn(d,V,he,49152)}function rr(d,V,he){return dn(d,V,he,16384)}function Nr(d,V,he){return dn(d,V,he,8192)}function et(d,V,he){return dn(d,V,he)}function xt(d,V,he,nn){var On=Q(d,e.nodeIsSynthesized(V)?V:wu(V));e.setTextRange(On,V);var Gr=0;return nn||(Gr|=48),he||(Gr|=1536),Gr&&e.setEmitFlags(On,Gr),On}function Kt(d,V,he,nn){return d&&e.hasSyntacticModifier(V,1)?xt(d,dn(V),he,nn):Nr(V,he,nn)}function ai(d,V,he,nn){var On=$o(d,V,he);return ao(d,V,On,nn)}function La(d){return e.isStringLiteral(d.expression)&&d.expression.text==="use strict"}function ji(){return e.startOnNewLine($t(on("use strict")))}function $o(d,V,he){e.Debug.assert(V.length===0,"Prologue directives should be at the first statement in the target statements array");for(var nn=!1,On=0,Gr=d.length;Onba&&Xo.splice.apply(Xo,wr([On,0],V.slice(ba,Bo))),ba>Et&&Xo.splice.apply(Xo,wr([nn,0],V.slice(Et,ba))),Et>Gr&&Xo.splice.apply(Xo,wr([he,0],V.slice(Gr,Et))),Gr>0)if(he===0)Xo.splice.apply(Xo,wr([0,0],V.slice(0,Gr)));else{for(var af=new e.Map,Fu=0;Fu=0;Fu--){var ep=V[Fu];af.has(ep.expression.text)||Xo.unshift(ep)}}return e.isNodeArray(d)?e.setTextRange(fe(Xo,d.hasTrailingComma),d):d}function Gu(d,V){var he;return typeof V=="number"&&(V=Ye(V)),e.isParameter(d)?Me(d,d.decorators,V,d.dotDotDotToken,d.name,d.questionToken,d.type,d.initializer):e.isPropertySignature(d)?Vn(d,V,d.name,d.questionToken,d.type):e.isPropertyDeclaration(d)?kr(d,d.decorators,V,d.name,(he=d.questionToken)!==null&&he!==void 0?he:d.exclamationToken,d.type,d.initializer):e.isMethodSignature(d)?Sr(d,V,d.name,d.questionToken,d.typeParameters,d.parameters,d.type):e.isMethodDeclaration(d)?Qe(d,d.decorators,V,d.asteriskToken,d.name,d.questionToken,d.typeParameters,d.parameters,d.type,d.body):e.isConstructorDeclaration(d)?bn(d,d.decorators,V,d.parameters,d.body):e.isGetAccessorDeclaration(d)?Be(d,d.decorators,V,d.name,d.parameters,d.type,d.body):e.isSetAccessorDeclaration(d)?_r(d,d.decorators,V,d.name,d.parameters,d.body):e.isIndexSignatureDeclaration(d)?Ln(d,d.decorators,V,d.parameters,d.type):e.isFunctionExpression(d)?Ts(d,V,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body):e.isArrowFunction(d)?Cs(d,V,d.typeParameters,d.parameters,d.type,d.equalsGreaterThanToken,d.body):e.isClassExpression(d)?Gn(d,d.decorators,V,d.name,d.typeParameters,d.heritageClauses,d.members):e.isVariableStatement(d)?cn(d,V,d.declarationList):e.isFunctionDeclaration(d)?bp(d,d.decorators,V,d.asteriskToken,d.name,d.typeParameters,d.parameters,d.type,d.body):e.isClassDeclaration(d)?Tp(d,d.decorators,V,d.name,d.typeParameters,d.heritageClauses,d.members):e.isInterfaceDeclaration(d)?Bd(d,d.decorators,V,d.name,d.typeParameters,d.heritageClauses,d.members):e.isTypeAliasDeclaration(d)?Ud(d,d.decorators,V,d.name,d.typeParameters,d.type):e.isEnumDeclaration(d)?ac(d,d.decorators,V,d.name,d.members):e.isModuleDeclaration(d)?ed(d,d.decorators,V,d.name,d.body):e.isImportEqualsDeclaration(d)?jd(d,d.decorators,V,d.isTypeOnly,d.name,d.moduleReference):e.isImportDeclaration(d)?Nl(d,d.decorators,V,d.importClause,d.moduleSpecifier):e.isExportAssignment(d)?Df(d,d.decorators,V,d.expression):e.isExportDeclaration(d)?Cc(d,d.decorators,V,d.isTypeOnly,d.exportClause,d.moduleSpecifier):e.Debug.assertNever(d)}function ns(d){return d?fe(d):void 0}function al(d){return typeof d=="string"?vn(d):d}function Ll(d){return typeof d=="string"?on(d):typeof d=="number"?de(d):typeof d=="boolean"?d?xe():P():d}function _d(d){return typeof d=="number"?oe(d):d}function hu(d){return d&&e.isNotEmittedStatement(d)?e.setTextRange($(Ht(),d),d):d}}e.createNodeFactory=p;function g(U,K){return U!==K&&e.setTextRange(U,K),U}function t(U,K){return U!==K&&($(U,K),e.setTextRange(U,K)),U}function m(U){switch(U){case 333:return"type";case 331:return"returns";case 332:return"this";case 329:return"enum";case 320:return"author";case 322:return"class";case 323:return"public";case 324:return"private";case 325:return"protected";case 326:return"readonly";case 327:return"override";case 334:return"template";case 335:return"typedef";case 330:return"param";case 337:return"prop";case 328:return"callback";case 318:return"augments";case 319:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(U))}}var N,D={};function c(U,K){switch(N||(N=e.createScanner(99,!1,0)),U){case 14:N.setText("`"+K+"`");break;case 15:N.setText("`"+K+"${");break;case 16:N.setText("}"+K+"${");break;case 17:N.setText("}"+K+"`");break}var T=N.scan();if(T===23&&(T=N.reScanTemplateToken(!1)),N.isUnterminated())return N.setText(void 0),D;var G;switch(T){case 14:case 15:case 16:case 17:G=N.getTokenValue();break}return G===void 0||N.scan()!==1?(N.setText(void 0),D):(N.setText(void 0),G)}function x(U){return z(U)&-16777217}function se(U,K){return K|U.transformFlags&8192}function z(U){if(!U)return 0;var K=U.transformFlags&~C(U.kind);return e.isNamedDeclaration(U)&&e.isPropertyName(U.name)?se(U.name,K):K}function ue(U){return U?U.transformFlags:0}function E(U){for(var K=0,T=0,G=U;T=173&&U<=196)return-2;switch(U){case 204:case 205:case 200:return 536887296;case 257:return 555888640;case 161:return 536870912;case 210:return 557748224;case 209:case 252:return 557756416;case 251:return 537165824;case 253:case 222:return 536940544;case 167:return 557752320;case 164:return 536879104;case 166:case 168:case 169:return 540975104;case 128:case 144:case 155:case 141:case 147:case 145:case 131:case 148:case 113:case 160:case 163:case 165:case 170:case 171:case 172:case 254:case 255:return-2;case 201:return 536973312;case 288:return 536903680;case 197:case 198:return 536887296;case 207:case 225:case 340:case 208:case 105:return 536870912;case 202:case 203:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=C;var I=e.createBaseNodeFactory();function j(U){return U.flags|=8,U}var Y={createBaseSourceFileNode:function(U){return j(I.createBaseSourceFileNode(U))},createBaseIdentifierNode:function(U){return j(I.createBaseIdentifierNode(U))},createBasePrivateIdentifierNode:function(U){return j(I.createBasePrivateIdentifierNode(U))},createBaseTokenNode:function(U){return j(I.createBaseTokenNode(U))},createBaseNode:function(U){return j(I.createBaseNode(U))}};e.factory=p(4,Y);function L(U,K,T){var G,v,R,F,_,u,b,w,ee,le;e.isString(U)?(R="",F=U,_=U.length,u=K,b=T):(e.Debug.assert(K==="js"||K==="dts"),R=(K==="js"?U.javascriptPath:U.declarationPath)||"",u=K==="js"?U.javascriptMapPath:U.declarationMapPath,w=function(){return K==="js"?U.javascriptText:U.declarationText},ee=function(){return K==="js"?U.javascriptMapText:U.declarationMapText},_=function(){return w().length},U.buildInfo&&U.buildInfo.bundle&&(e.Debug.assert(T===void 0||typeof T=="boolean"),G=T,v=K==="js"?U.buildInfo.bundle.js:U.buildInfo.bundle.dts,le=U.oldFileOfCurrentEmit));var ie=le?h(e.Debug.assertDefined(v)):k(v,G,_);return ie.fileName=R,ie.sourceMapPath=u,ie.oldFileOfCurrentEmit=le,w&&ee?(Object.defineProperty(ie,"text",{get:w}),Object.defineProperty(ie,"sourceMapText",{get:ee})):(e.Debug.assert(!le),ie.text=F??"",ie.sourceMapText=b),ie}e.createUnparsedSourceFile=L;function k(U,K,T){for(var G,v,R,F,_,u,b,w,ee=0,le=U?U.sections:e.emptyArray;ee0&&(F[b-u]=w)}u>0&&(F.length-=u)}}e.moveEmitHelpers=U;function K(T){return a(T).flags|=134217728,T}e.ignoreSourceNewlines=K})(un||(un={}));var un;(function(e){function a(D){var c=D.factory;return{getUnscopedHelperName:x,createDecorateHelper:se,createMetadataHelper:z,createParamHelper:ue,createAssignHelper:E,createAwaitHelper:C,createAsyncGeneratorHelper:I,createAsyncDelegatorHelper:j,createAsyncValuesHelper:Y,createRestHelper:L,createAwaiterHelper:k,createExtendsHelper:h,createTemplateObjectHelper:M,createSpreadArrayHelper:O,createValuesHelper:H,createReadHelper:$,createGeneratorHelper:Z,createCreateBindingHelper:B,createImportStarHelper:U,createImportStarCallbackHelper:K,createImportDefaultHelper:T,createExportStarHelper:G,createClassPrivateFieldGetHelper:v,createClassPrivateFieldSetHelper:R};function x(F){return e.setEmitFlags(c.createIdentifier(F),4098)}function se(F,_,u,b){D.requestEmitHelper(e.decorateHelper);var w=[];return w.push(c.createArrayLiteralExpression(F,!0)),w.push(_),u&&(w.push(u),b&&w.push(b)),c.createCallExpression(x("__decorate"),void 0,w)}function z(F,_){return D.requestEmitHelper(e.metadataHelper),c.createCallExpression(x("__metadata"),void 0,[c.createStringLiteral(F),_])}function ue(F,_,u){return D.requestEmitHelper(e.paramHelper),e.setTextRange(c.createCallExpression(x("__param"),void 0,[c.createNumericLiteral(_+""),F]),u)}function E(F){return D.getCompilerOptions().target>=2?c.createCallExpression(c.createPropertyAccessExpression(c.createIdentifier("Object"),"assign"),void 0,F):(D.requestEmitHelper(e.assignHelper),c.createCallExpression(x("__assign"),void 0,F))}function C(F){return D.requestEmitHelper(e.awaitHelper),c.createCallExpression(x("__await"),void 0,[F])}function I(F,_){return D.requestEmitHelper(e.awaitHelper),D.requestEmitHelper(e.asyncGeneratorHelper),(F.emitNode||(F.emitNode={})).flags|=786432,c.createCallExpression(x("__asyncGenerator"),void 0,[_?c.createThis():c.createVoidZero(),c.createIdentifier("arguments"),F])}function j(F){return D.requestEmitHelper(e.awaitHelper),D.requestEmitHelper(e.asyncDelegator),c.createCallExpression(x("__asyncDelegator"),void 0,[F])}function Y(F){return D.requestEmitHelper(e.asyncValues),c.createCallExpression(x("__asyncValues"),void 0,[F])}function L(F,_,u,b){D.requestEmitHelper(e.restHelper);for(var w=[],ee=0,le=0;le<_.length-1;le++){var ie=e.getPropertyNameOfBindingOrAssignmentElement(_[le]);if(ie)if(e.isComputedPropertyName(ie)){e.Debug.assertIsDefined(u,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var W=u[ee];ee++,w.push(c.createConditionalExpression(c.createTypeCheck(W,"symbol"),void 0,W,void 0,c.createAdd(W,c.createStringLiteral(""))))}else w.push(c.createStringLiteralFromNode(ie))}return c.createCallExpression(x("__rest"),void 0,[F,e.setTextRange(c.createArrayLiteralExpression(w),b)])}function k(F,_,u,b){D.requestEmitHelper(e.awaiterHelper);var w=c.createFunctionExpression(void 0,c.createToken(41),void 0,void 0,[],void 0,b);return(w.emitNode||(w.emitNode={})).flags|=786432,c.createCallExpression(x("__awaiter"),void 0,[F?c.createThis():c.createVoidZero(),_?c.createIdentifier("arguments"):c.createVoidZero(),u?e.createExpressionFromEntityName(c,u):c.createVoidZero(),w])}function h(F){return D.requestEmitHelper(e.extendsHelper),c.createCallExpression(x("__extends"),void 0,[F,c.createUniqueName("_super",48)])}function M(F,_){return D.requestEmitHelper(e.templateObjectHelper),c.createCallExpression(x("__makeTemplateObject"),void 0,[F,_])}function O(F,_){return D.requestEmitHelper(e.spreadArrayHelper),c.createCallExpression(x("__spreadArray"),void 0,[F,_])}function H(F){return D.requestEmitHelper(e.valuesHelper),c.createCallExpression(x("__values"),void 0,[F])}function $(F,_){return D.requestEmitHelper(e.readHelper),c.createCallExpression(x("__read"),void 0,_!==void 0?[F,c.createNumericLiteral(_+"")]:[F])}function Z(F){return D.requestEmitHelper(e.generatorHelper),c.createCallExpression(x("__generator"),void 0,[c.createThis(),F])}function B(F,_,u){return D.requestEmitHelper(e.createBindingHelper),c.createCallExpression(x("__createBinding"),void 0,wr([c.createIdentifier("exports"),F,_],u?[u]:[]))}function U(F){return D.requestEmitHelper(e.importStarHelper),c.createCallExpression(x("__importStar"),void 0,[F])}function K(){return D.requestEmitHelper(e.importStarHelper),x("__importStar")}function T(F){return D.requestEmitHelper(e.importDefaultHelper),c.createCallExpression(x("__importDefault"),void 0,[F])}function G(F,_){return _===void 0&&(_=c.createIdentifier("exports")),D.requestEmitHelper(e.exportStarHelper),D.requestEmitHelper(e.createBindingHelper),c.createCallExpression(x("__exportStar"),void 0,[F,_])}function v(F,_,u,b){D.requestEmitHelper(e.classPrivateFieldGetHelper);var w;return b?w=[F,_,c.createStringLiteral(u),b]:w=[F,_,c.createStringLiteral(u)],c.createCallExpression(x("__classPrivateFieldGet"),void 0,w)}function R(F,_,u,b,w){D.requestEmitHelper(e.classPrivateFieldSetHelper);var ee;return w?ee=[F,_,u,c.createStringLiteral(b),w]:ee=[F,_,u,c.createStringLiteral(b)],c.createCallExpression(x("__classPrivateFieldSet"),void 0,ee)}}e.createEmitHelperFactory=a;function p(D,c){return D===c||D.priority===c.priority?0:D.priority===void 0?1:c.priority===void 0?-1:e.compareValues(D.priority,c.priority)}e.compareEmitHelpers=p;function g(D){for(var c=[],x=1;x= 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) { for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i]; return to; };`},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; };`};var t;function m(){return t||(t=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.createBindingHelper,e.setModuleDefaultHelper],function(D){return D.name}))}e.getAllUnscopedEmitHelpers=m,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:g(IS([` const `," = name => super[name];"],[` const `," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:g(IS([` 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 N(D,c){return e.isCallExpression(D)&&e.isIdentifier(D.expression)&&e.getEmitFlags(D.expression)&4096&&D.expression.escapedText===c}e.isCallToHelper=N})(un||(un={}));var un;(function(e){function a(mn){return mn.kind===8}e.isNumericLiteral=a;function p(mn){return mn.kind===9}e.isBigIntLiteral=p;function g(mn){return mn.kind===10}e.isStringLiteral=g;function t(mn){return mn.kind===11}e.isJsxText=t;function m(mn){return mn.kind===13}e.isRegularExpressionLiteral=m;function N(mn){return mn.kind===14}e.isNoSubstitutionTemplateLiteral=N;function D(mn){return mn.kind===15}e.isTemplateHead=D;function c(mn){return mn.kind===16}e.isTemplateMiddle=c;function x(mn){return mn.kind===17}e.isTemplateTail=x;function se(mn){return mn.kind===25}e.isDotDotDotToken=se;function z(mn){return mn.kind===27}e.isCommaToken=z;function ue(mn){return mn.kind===39}e.isPlusToken=ue;function E(mn){return mn.kind===40}e.isMinusToken=E;function C(mn){return mn.kind===41}e.isAsteriskToken=C;function I(mn){return mn.kind===53}e.isExclamationToken=I;function j(mn){return mn.kind===57}e.isQuestionToken=j;function Y(mn){return mn.kind===58}e.isColonToken=Y;function L(mn){return mn.kind===28}e.isQuestionDotToken=L;function k(mn){return mn.kind===38}e.isEqualsGreaterThanToken=k;function h(mn){return mn.kind===78}e.isIdentifier=h;function M(mn){return mn.kind===79}e.isPrivateIdentifier=M;function O(mn){return mn.kind===92}e.isExportModifier=O;function H(mn){return mn.kind===129}e.isAsyncModifier=H;function $(mn){return mn.kind===127}e.isAssertsKeyword=$;function Z(mn){return mn.kind===130}e.isAwaitKeyword=Z;function B(mn){return mn.kind===142}e.isReadonlyKeyword=B;function U(mn){return mn.kind===123}e.isStaticModifier=U;function K(mn){return mn.kind===105}e.isSuperKeyword=K;function T(mn){return mn.kind===99}e.isImportKeyword=T;function G(mn){return mn.kind===158}e.isQualifiedName=G;function v(mn){return mn.kind===159}e.isComputedPropertyName=v;function R(mn){return mn.kind===160}e.isTypeParameterDeclaration=R;function F(mn){return mn.kind===161}e.isParameter=F;function _(mn){return mn.kind===162}e.isDecorator=_;function u(mn){return mn.kind===163}e.isPropertySignature=u;function b(mn){return mn.kind===164}e.isPropertyDeclaration=b;function w(mn){return mn.kind===165}e.isMethodSignature=w;function ee(mn){return mn.kind===166}e.isMethodDeclaration=ee;function le(mn){return mn.kind===167}e.isConstructorDeclaration=le;function ie(mn){return mn.kind===168}e.isGetAccessorDeclaration=ie;function W(mn){return mn.kind===169}e.isSetAccessorDeclaration=W;function ge(mn){return mn.kind===170}e.isCallSignatureDeclaration=ge;function fe(mn){return mn.kind===171}e.isConstructSignatureDeclaration=fe;function A(mn){return mn.kind===172}e.isIndexSignatureDeclaration=A;function X(mn){return mn.kind===173}e.isTypePredicateNode=X;function re(mn){return mn.kind===174}e.isTypeReferenceNode=re;function ve(mn){return mn.kind===175}e.isFunctionTypeNode=ve;function ke(mn){return mn.kind===176}e.isConstructorTypeNode=ke;function Ie(mn){return mn.kind===177}e.isTypeQueryNode=Ie;function Je(mn){return mn.kind===178}e.isTypeLiteralNode=Je;function je(mn){return mn.kind===179}e.isArrayTypeNode=je;function fn(mn){return mn.kind===180}e.isTupleTypeNode=fn;function ze(mn){return mn.kind===193}e.isNamedTupleMember=ze;function Ve(mn){return mn.kind===181}e.isOptionalTypeNode=Ve;function Ne(mn){return mn.kind===182}e.isRestTypeNode=Ne;function be(mn){return mn.kind===183}e.isUnionTypeNode=be;function de(mn){return mn.kind===184}e.isIntersectionTypeNode=de;function Ce(mn){return mn.kind===185}e.isConditionalTypeNode=Ce;function ye(mn){return mn.kind===186}e.isInferTypeNode=ye;function on(mn){return mn.kind===187}e.isParenthesizedTypeNode=on;function Te(mn){return mn.kind===188}e.isThisTypeNode=Te;function tn(mn){return mn.kind===189}e.isTypeOperatorNode=tn;function Fe(mn){return mn.kind===190}e.isIndexedAccessTypeNode=Fe;function Ke(mn){return mn.kind===191}e.isMappedTypeNode=Ke;function rn(mn){return mn.kind===192}e.isLiteralTypeNode=rn;function vn(mn){return mn.kind===196}e.isImportTypeNode=vn;function xn(mn){return mn.kind===195}e.isTemplateLiteralTypeSpan=xn;function Rn(mn){return mn.kind===194}e.isTemplateLiteralTypeNode=Rn;function Ge(mn){return mn.kind===197}e.isObjectBindingPattern=Ge;function we(mn){return mn.kind===198}e.isArrayBindingPattern=we;function Re(mn){return mn.kind===199}e.isBindingElement=Re;function yn(mn){return mn.kind===200}e.isArrayLiteralExpression=yn;function Ee(mn){return mn.kind===201}e.isObjectLiteralExpression=Ee;function oe(mn){return mn.kind===202}e.isPropertyAccessExpression=oe;function J(mn){return mn.kind===203}e.isElementAccessExpression=J;function te(mn){return mn.kind===204}e.isCallExpression=te;function me(mn){return mn.kind===205}e.isNewExpression=me;function xe(mn){return mn.kind===206}e.isTaggedTemplateExpression=xe;function P(mn){return mn.kind===207}e.isTypeAssertionExpression=P;function Se(mn){return mn.kind===208}e.isParenthesizedExpression=Se;function Ye(mn){return mn.kind===209}e.isFunctionExpression=Ye;function an(mn){return mn.kind===210}e.isArrowFunction=an;function Sn(mn){return mn.kind===211}e.isDeleteExpression=Sn;function Xn(mn){return mn.kind===212}e.isTypeOfExpression=Xn;function wn(mn){return mn.kind===213}e.isVoidExpression=wn;function qn(mn){return mn.kind===214}e.isAwaitExpression=qn;function yr(mn){return mn.kind===215}e.isPrefixUnaryExpression=yr;function Vr(mn){return mn.kind===216}e.isPostfixUnaryExpression=Vr;function Me(mn){return mn.kind===217}e.isBinaryExpression=Me;function We(mn){return mn.kind===218}e.isConditionalExpression=We;function Tn(mn){return mn.kind===219}e.isTemplateExpression=Tn;function Nn(mn){return mn.kind===220}e.isYieldExpression=Nn;function Vn(mn){return mn.kind===221}e.isSpreadElement=Vn;function Hn(mn){return mn.kind===222}e.isClassExpression=Hn;function kr(mn){return mn.kind===223}e.isOmittedExpression=kr;function kn(mn){return mn.kind===224}e.isExpressionWithTypeArguments=kn;function Sr(mn){return mn.kind===225}e.isAsExpression=Sr;function Cr(mn){return mn.kind===226}e.isNonNullExpression=Cr;function Qe(mn){return mn.kind===227}e.isMetaProperty=Qe;function Bn(mn){return mn.kind===228}e.isSyntheticExpression=Bn;function bn(mn){return mn.kind===340}e.isPartiallyEmittedExpression=bn;function In(mn){return mn.kind===341}e.isCommaListExpression=In;function Be(mn){return mn.kind===229}e.isTemplateSpan=Be;function Zn(mn){return mn.kind===230}e.isSemicolonClassElement=Zn;function _r(mn){return mn.kind===231}e.isBlock=_r;function zn(mn){return mn.kind===233}e.isVariableStatement=zn;function Er(mn){return mn.kind===232}e.isEmptyStatement=Er;function Pr(mn){return mn.kind===234}e.isExpressionStatement=Pr;function tt(mn){return mn.kind===235}e.isIfStatement=tt;function mr(mn){return mn.kind===236}e.isDoStatement=mr;function Ln(mn){return mn.kind===237}e.isWhileStatement=Ln;function jn(mn){return mn.kind===238}e.isForStatement=jn;function ar(mn){return mn.kind===239}e.isForInStatement=ar;function dr(mn){return mn.kind===240}e.isForOfStatement=dr;function Rr(mn){return mn.kind===241}e.isContinueStatement=Rr;function qr(mn){return mn.kind===242}e.isBreakStatement=qr;function br(mn){return mn.kind===243}e.isReturnStatement=br;function Br(mn){return mn.kind===244}e.isWithStatement=Br;function vt(mn){return mn.kind===245}e.isSwitchStatement=vt;function dt(mn){return mn.kind===246}e.isLabeledStatement=dt;function cr(mn){return mn.kind===247}e.isThrowStatement=cr;function Vt(mn){return mn.kind===248}e.isTryStatement=Vt;function Yr(mn){return mn.kind===249}e.isDebuggerStatement=Yr;function Ut(mn){return mn.kind===250}e.isVariableDeclaration=Ut;function ka(mn){return mn.kind===251}e.isVariableDeclarationList=ka;function ma(mn){return mn.kind===252}e.isFunctionDeclaration=ma;function Sa(mn){return mn.kind===253}e.isClassDeclaration=Sa;function qt(mn){return mn.kind===254}e.isInterfaceDeclaration=qt;function ga(mn){return mn.kind===255}e.isTypeAliasDeclaration=ga;function Mr(mn){return mn.kind===256}e.isEnumDeclaration=Mr;function Kr(mn){return mn.kind===257}e.isModuleDeclaration=Kr;function jr(mn){return mn.kind===258}e.isModuleBlock=jr;function En(mn){return mn.kind===259}e.isCaseBlock=En;function tr(mn){return mn.kind===260}e.isNamespaceExportDeclaration=tr;function gr(mn){return mn.kind===261}e.isImportEqualsDeclaration=gr;function Or(mn){return mn.kind===262}e.isImportDeclaration=Or;function mt(mn){return mn.kind===263}e.isImportClause=mt;function ft(mn){return mn.kind===264}e.isNamespaceImport=ft;function Dt(mn){return mn.kind===270}e.isNamespaceExport=Dt;function sa(mn){return mn.kind===265}e.isNamedImports=sa;function Wa(mn){return mn.kind===266}e.isImportSpecifier=Wa;function ii(mn){return mn.kind===267}e.isExportAssignment=ii;function ri(mn){return mn.kind===268}e.isExportDeclaration=ri;function mi(mn){return mn.kind===269}e.isNamedExports=mi;function Ei(mn){return mn.kind===271}e.isExportSpecifier=Ei;function _i(mn){return mn.kind===272}e.isMissingDeclaration=_i;function yi(mn){return mn.kind===339}e.isNotEmittedStatement=yi;function Ni(mn){return mn.kind===344}e.isSyntheticReference=Ni;function ja(mn){return mn.kind===342}e.isMergeDeclarationMarker=ja;function ui(mn){return mn.kind===343}e.isEndOfDeclarationMarker=ui;function Di(mn){return mn.kind===273}e.isExternalModuleReference=Di;function Io(mn){return mn.kind===274}e.isJsxElement=Io;function _o(mn){return mn.kind===275}e.isJsxSelfClosingElement=_o;function ro(mn){return mn.kind===276}e.isJsxOpeningElement=ro;function Zi(mn){return mn.kind===277}e.isJsxClosingElement=Zi;function Ao(mn){return mn.kind===278}e.isJsxFragment=Ao;function bo(mn){return mn.kind===279}e.isJsxOpeningFragment=bo;function ti(mn){return mn.kind===280}e.isJsxClosingFragment=ti;function Xt(mn){return mn.kind===281}e.isJsxAttribute=Xt;function gi(mn){return mn.kind===282}e.isJsxAttributes=gi;function Ji(mn){return mn.kind===283}e.isJsxSpreadAttribute=Ji;function Ui(mn){return mn.kind===284}e.isJsxExpression=Ui;function go(mn){return mn.kind===285}e.isCaseClause=go;function wo(mn){return mn.kind===286}e.isDefaultClause=wo;function oo(mn){return mn.kind===287}e.isHeritageClause=oo;function Go(mn){return mn.kind===288}e.isCatchClause=Go;function Vo(mn){return mn.kind===289}e.isPropertyAssignment=Vo;function pr(mn){return mn.kind===290}e.isShorthandPropertyAssignment=pr;function Ot(mn){return mn.kind===291}e.isSpreadAssignment=Ot;function Xe(mn){return mn.kind===292}e.isEnumMember=Xe;function Jn(mn){return mn.kind===294}e.isUnparsedPrepend=Jn;function fr(mn){return mn.kind===298}e.isSourceFile=fr;function Zr(mn){return mn.kind===299}e.isBundle=Zr;function Ae(mn){return mn.kind===300}e.isUnparsedSource=Ae;function Dn(mn){return mn.kind===302}e.isJSDocTypeExpression=Dn;function pe(mn){return mn.kind===303}e.isJSDocNameReference=pe;function Q(mn){return mn.kind===316}e.isJSDocLink=Q;function De(mn){return mn.kind===304}e.isJSDocAllType=De;function qe(mn){return mn.kind===305}e.isJSDocUnknownType=qe;function sn(mn){return mn.kind===306}e.isJSDocNullableType=sn;function Mn(mn){return mn.kind===307}e.isJSDocNonNullableType=Mn;function or(mn){return mn.kind===308}e.isJSDocOptionalType=or;function Ir(mn){return mn.kind===309}e.isJSDocFunctionType=Ir;function at(mn){return mn.kind===310}e.isJSDocVariadicType=at;function Ft(mn){return mn.kind===311}e.isJSDocNamepathType=Ft;function Da(mn){return mn.kind===312}e.isJSDoc=Da;function $a(mn){return mn.kind===314}e.isJSDocTypeLiteral=$a;function Za(mn){return mn.kind===315}e.isJSDocSignature=Za;function hi(mn){return mn.kind===318}e.isJSDocAugmentsTag=hi;function vo(mn){return mn.kind===320}e.isJSDocAuthorTag=vo;function fs(mn){return mn.kind===322}e.isJSDocClassTag=fs;function bs(mn){return mn.kind===328}e.isJSDocCallbackTag=bs;function ds(mn){return mn.kind===323}e.isJSDocPublicTag=ds;function gs(mn){return mn.kind===324}e.isJSDocPrivateTag=gs;function Zo(mn){return mn.kind===325}e.isJSDocProtectedTag=Zo;function ws(mn){return mn.kind===326}e.isJSDocReadonlyTag=ws;function Ws(mn){return mn.kind===327}e.isJSDocOverrideTag=Ws;function Ts(mn){return mn.kind===321}e.isJSDocDeprecatedTag=Ts;function Gs(mn){return mn.kind===336}e.isJSDocSeeTag=Gs;function Cs(mn){return mn.kind===329}e.isJSDocEnumTag=Cs;function xs(mn){return mn.kind===330}e.isJSDocParameterTag=xs;function vs(mn){return mn.kind===331}e.isJSDocReturnTag=vs;function js(mn){return mn.kind===332}e.isJSDocThisTag=js;function Zs(mn){return mn.kind===333}e.isJSDocTypeTag=Zs;function He(mn){return mn.kind===334}e.isJSDocTemplateTag=He;function ur(mn){return mn.kind===335}e.isJSDocTypedefTag=ur;function ae(mn){return mn.kind===317}e.isJSDocUnknownTag=ae;function An(mn){return mn.kind===337}e.isJSDocPropertyTag=An;function ir(mn){return mn.kind===319}e.isJSDocImplementsTag=ir;function Ur(mn){return mn.kind===338}e.isSyntaxList=Ur})(un||(un={}));var un;(function(e){function a(Ge){return Ge.createExportDeclaration(void 0,void 0,!1,Ge.createNamedExports([]),void 0)}e.createEmptyExports=a;function p(Ge,we,Re,yn){if(e.isComputedPropertyName(Re))return e.setTextRange(Ge.createElementAccessExpression(we,Re.expression),yn);var Ee=e.setTextRange(e.isMemberName(Re)?Ge.createPropertyAccessExpression(we,Re):Ge.createElementAccessExpression(we,Re),Re);return e.getOrCreateEmitNode(Ee).flags|=64,Ee}e.createMemberAccessForPropertyName=p;function g(Ge,we){var Re=e.parseNodeFactory.createIdentifier(Ge||"React");return e.setParent(Re,e.getParseTreeNode(we)),Re}function t(Ge,we,Re){if(e.isQualifiedName(we)){var yn=t(Ge,we.left,Re),Ee=Ge.createIdentifier(e.idText(we.right));return Ee.escapedText=we.right.escapedText,Ge.createPropertyAccessExpression(yn,Ee)}else return g(e.idText(we),Re)}function m(Ge,we,Re,yn){return we?t(Ge,we,yn):Ge.createPropertyAccessExpression(g(Re,yn),"createElement")}e.createJsxFactoryExpression=m;function N(Ge,we,Re,yn){return we?t(Ge,we,yn):Ge.createPropertyAccessExpression(g(Re,yn),"Fragment")}function D(Ge,we,Re,yn,Ee,oe){var J=[Re];if(yn&&J.push(yn),Ee&&Ee.length>0)if(yn||J.push(Ge.createNull()),Ee.length>1)for(var te=0,me=Ee;te0)if(Ee.length>1)for(var xe=0,P=Ee;xe=e.ModuleKind.ES2015&&me<=e.ModuleKind.ESNext){var xe=e.getEmitHelpers(Re);if(xe){for(var P=[],Se=0,Ye=xe;Se0?Sn[Se-1]:void 0;return e.Debug.assertEqual(Ye[Se],we),Sn[Se]=P.onEnter(an[Se],qn,wn),Ye[Se]=te(P,we),Se}Ge.enter=we;function Re(P,Se,Ye,an,Sn,Xn,wn){e.Debug.assertEqual(Ye[Se],Re),e.Debug.assertIsDefined(P.onLeft),Ye[Se]=te(P,Re);var qn=P.onLeft(an[Se].left,Sn[Se],an[Se]);return qn?(xe(Se,an,qn),me(Se,Ye,an,Sn,qn)):Se}Ge.left=Re;function yn(P,Se,Ye,an,Sn,Xn,wn){return e.Debug.assertEqual(Ye[Se],yn),e.Debug.assertIsDefined(P.onOperator),Ye[Se]=te(P,yn),P.onOperator(an[Se].operatorToken,Sn[Se],an[Se]),Se}Ge.operator=yn;function Ee(P,Se,Ye,an,Sn,Xn,wn){e.Debug.assertEqual(Ye[Se],Ee),e.Debug.assertIsDefined(P.onRight),Ye[Se]=te(P,Ee);var qn=P.onRight(an[Se].right,Sn[Se],an[Se]);return qn?(xe(Se,an,qn),me(Se,Ye,an,Sn,qn)):Se}Ge.right=Ee;function oe(P,Se,Ye,an,Sn,Xn,wn){e.Debug.assertEqual(Ye[Se],oe),Ye[Se]=te(P,oe);var qn=P.onExit(an[Se],Sn[Se]);if(Se>0){if(Se--,P.foldState){var yr=Ye[Se]===oe?"right":"left";Sn[Se]=P.foldState(Sn[Se],qn,yr)}}else Xn.value=qn;return Se}Ge.exit=oe;function J(P,Se,Ye,an,Sn,Xn,wn){return e.Debug.assertEqual(Ye[Se],J),Se}Ge.done=J;function te(P,Se){switch(Se){case we:if(P.onLeft)return Re;case Re:if(P.onOperator)return yn;case yn:if(P.onRight)return Ee;case Ee:return oe;case oe:return J;case J:return J;default:e.Debug.fail("Invalid state")}}Ge.nextState=te;function me(P,Se,Ye,an,Sn){return P++,Se[P]=we,Ye[P]=Sn,an[P]=void 0,P}function xe(P,Se,Ye){if(e.Debug.shouldAssert(2))for(;P>=0;)e.Debug.assert(Se[P]!==Ye,"Circular traversal detected."),P--}})(vn||(vn={}));var xn=function(){function Ge(we,Re,yn,Ee,oe,J){this.onEnter=we,this.onLeft=Re,this.onOperator=yn,this.onRight=Ee,this.onExit=oe,this.foldState=J}return Ge}();function Rn(Ge,we,Re,yn,Ee,oe){var J=new xn(Ge,we,Re,yn,Ee,oe);return te;function te(me,xe){for(var P={value:void 0},Se=[vn.enter],Ye=[me],an=[void 0],Sn=0;Se[Sn]!==vn.done;)Sn=Se[Sn](J,Sn,Se,Ye,an,P,xe);return e.Debug.assertEqual(Sn,0),P.value}}e.createBinaryExpressionTrampoline=Rn})(un||(un={}));var un;(function(e){function a(p,g){return g?e.setTextRangePosEnd(p,g.pos,g.end):p}e.setTextRange=a})(un||(un={}));var un;(function(e){var a;(function(_){_[_.None=0]="None",_[_.Yield=1]="Yield",_[_.Await=2]="Await",_[_.Type=4]="Type",_[_.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",_[_.JSDoc=32]="JSDoc"})(a||(a={}));var p;(function(_){_[_.TryParse=0]="TryParse",_[_.Lookahead=1]="Lookahead",_[_.Reparse=2]="Reparse"})(p||(p={}));var g,t,m,N,D;e.parseBaseNodeFactory={createBaseSourceFileNode:function(_){return new(D||(D=e.objectAllocator.getSourceFileConstructor()))(_,-1,-1)},createBaseIdentifierNode:function(_){return new(m||(m=e.objectAllocator.getIdentifierConstructor()))(_,-1,-1)},createBasePrivateIdentifierNode:function(_){return new(N||(N=e.objectAllocator.getPrivateIdentifierConstructor()))(_,-1,-1)},createBaseTokenNode:function(_){return new(t||(t=e.objectAllocator.getTokenConstructor()))(_,-1,-1)},createBaseNode:function(_){return new(g||(g=e.objectAllocator.getNodeConstructor()))(_,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory);function c(_,u){return u&&_(u)}function x(_,u,b){if(b){if(u)return u(b);for(var w=0,ee=b;w=0;--ge)w.push(le[ge]),ee.push(ie)}else{var W=u(le,ie);if(W){if(W==="skip")continue;return W}if(le.kind>=158)for(var fe=0,A=E(le);fe=ss.pos}),Gu=Ss>=0?e.findIndex(Nr,function(ns){return ns.start>=ls.pos},Ss):-1;Ss>=0&&e.addRange(je,Nr,Ss,Gu>=0?Gu:void 0),qr(function(){var ns=Te;for(Te|=32768,u.setTextPos(ls.pos),zn();Be()!==1;){var al=u.getStartPos(),Ll=Go(0,rl);if(rr.push(Ll),al===u.getStartPos()&&zn(),et>=0){var _d=Le.statements[et];if(Ll.end===_d.pos)break;Ll.end>_d.pos&&(et=ao(Le.statements,et+1))}}Te=ns},2),xt=et>=0?$o(Le.statements,et):-1};xt!==-1;)Kt();if(et>=0){var ai=Le.statements[et];e.addRange(rr,Le.statements,et);var La=e.findIndex(Nr,function(ss){return ss.start>=ai.pos});La>=0&&e.addRange(je,Nr,La)}return ze=dn,A.updateSourceFile(Le,e.setTextRange(A.createNodeArray(rr),Le.statements));function ji(ss){return!(ss.flags&32768)&&!!(ss.transformFlags&16777216)}function $o(ss,ls){for(var Ss=ls;Ss115}function dt(){return Be()===78?!0:Be()===124&&Nn()||Be()===130&&kr()?!1:Be()>115}function cr(Le,dn,Fn){return Fn===void 0&&(Fn=!0),Be()===Le?(Fn&&zn(),!0):(dn?kn(dn):kn(e.Diagnostics._0_expected,e.tokenToString(Le)),!1)}function Vt(Le){return Be()===Le?(Er(),!0):(kn(e.Diagnostics._0_expected,e.tokenToString(Le)),!1)}function Yr(Le){return Be()===Le?(zn(),!0):!1}function Ut(Le){if(Be()===Le)return qt()}function ka(Le){if(Be()===Le)return ga()}function ma(Le,dn,Fn){return Ut(Le)||tr(Le,!1,dn||e.Diagnostics._0_expected,Fn||e.tokenToString(Le))}function Sa(Le){return ka(Le)||tr(Le,!1,e.Diagnostics._0_expected,e.tokenToString(Le))}function qt(){var Le=bn(),dn=Be();return zn(),En(A.createToken(dn),Le)}function ga(){var Le=bn(),dn=Be();return Er(),En(A.createToken(dn),Le)}function Mr(){return Be()===26?!0:Be()===19||Be()===1||u.hasPrecedingLineBreak()}function Kr(){return Mr()?(Be()===26&&zn(),!0):cr(26)}function jr(Le,dn,Fn,rr){var Nr=A.createNodeArray(Le,rr);return e.setTextRangePosEnd(Nr,dn,Fn??u.getStartPos()),Nr}function En(Le,dn,Fn){return e.setTextRangePosEnd(Le,dn,Fn??u.getStartPos()),Te&&(Le.flags|=Te),Fe&&(Fe=!1,Le.flags|=65536),Le}function tr(Le,dn,Fn,rr){dn?Sr(u.getStartPos(),0,Fn,rr):Fn&&kn(Fn,rr);var Nr=bn(),et=Le===78?A.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(Le)?A.createTemplateLiteralLikeNode(Le,"","",void 0):Le===8?A.createNumericLiteral("",void 0):Le===10?A.createStringLiteral("",void 0):Le===272?A.createMissingDeclaration():A.createToken(Le);return En(et,Nr)}function gr(Le){var dn=be.get(Le);return dn===void 0&&be.set(Le,dn=Le),dn}function Or(Le,dn,Fn){if(Le){Ce++;var rr=bn(),Nr=Be(),et=gr(u.getTokenValue());return Zn(),En(A.createIdentifier(et,void 0,Nr),rr)}if(Be()===79)return kn(Fn||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Or(!0);if(Be()===0&&u.tryScan(function(){return u.reScanInvalidIdentifier()===78}))return Or(!0);Ce++;var xt=Be()===1,Kt=u.isReservedWord(),ai=u.getTokenText(),La=Kt?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return tr(78,xt,dn||La,ai)}function mt(Le){return Or(vt(),void 0,Le)}function ft(Le,dn){return Or(dt(),Le,dn)}function Dt(Le){return Or(e.tokenIsIdentifierOrKeyword(Be()),Le)}function sa(){return e.tokenIsIdentifierOrKeyword(Be())||Be()===10||Be()===8}function Wa(Le){if(Be()===10||Be()===8){var dn=Zo();return dn.text=gr(dn.text),dn}return Be()===22?ri():Be()===79?Ei():Dt()}function ii(){return Wa()}function ri(){var Le=bn();cr(22);var dn=Sn(os);return cr(23),En(A.createComputedPropertyName(dn),Le)}function mi(Le){var dn=de.get(Le);return dn===void 0&&de.set(Le,dn=Le),dn}function Ei(){var Le=bn(),dn=A.createPrivateIdentifier(mi(u.getTokenText()));return zn(),En(dn,Le)}function _i(Le){return Be()===Le&&Br(Ni)}function yi(){return zn(),u.hasPrecedingLineBreak()?!1:Io()}function Ni(){switch(Be()){case 84:return zn()===91;case 92:return zn(),Be()===87?br(_o):Be()===149?br(ui):ja();case 87:return _o();case 123:return yi();case 134:case 146:return zn(),Io();default:return yi()}}function ja(){return Be()!==41&&Be()!==126&&Be()!==18&&Io()}function ui(){return zn(),ja()}function Di(){return e.isModifierKind(Be())&&Br(Ni)}function Io(){return Be()===22||Be()===18||Be()===41||Be()===25||sa()}function _o(){return zn(),Be()===83||Be()===97||Be()===117||Be()===125&&br(Zu)||Be()===129&&br(ho)}function ro(Le,dn){var Fn=Vo(Le);if(Fn)return!0;switch(Le){case 0:case 1:case 3:return!(Be()===26&&dn)&&Rs();case 2:return Be()===81||Be()===87;case 4:return br(hn);case 5:return br(Rc)||Be()===26&&!dn;case 6:return Be()===22||sa();case 12:switch(Be()){case 22:case 41:case 25:case 24:return!0;default:return sa()}case 18:return sa();case 9:return Be()===22||Be()===25||sa();case 7:return Be()===18?br(Zi):dn?dt()&&!Xt():Qf()&&!Xt();case 8:return $u();case 10:return Be()===27||Be()===25||$u();case 19:return dt();case 15:switch(Be()){case 27:case 24:return!0}case 11:return Be()===25||Su();case 16:return ci(!1);case 17:return ci(!0);case 20:case 21:return Be()===27||Mi();case 22:return wl();case 23:return e.tokenIsIdentifierOrKeyword(Be());case 13:return e.tokenIsIdentifierOrKeyword(Be())||Be()===18;case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Zi(){if(e.Debug.assert(Be()===18),zn()===19){var Le=zn();return Le===27||Le===18||Le===93||Le===116}return!0}function Ao(){return zn(),dt()}function bo(){return zn(),e.tokenIsIdentifierOrKeyword(Be())}function ti(){return zn(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Be())}function Xt(){return Be()===116||Be()===93?br(gi):!1}function gi(){return zn(),Su()}function Ji(){return zn(),Mi()}function Ui(Le){if(Be()===1)return!0;switch(Le){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return Be()===19;case 3:return Be()===19||Be()===81||Be()===87;case 7:return Be()===18||Be()===93||Be()===116;case 8:return go();case 19:return Be()===31||Be()===20||Be()===18||Be()===93||Be()===116;case 11:return Be()===21||Be()===26;case 15:case 21:case 10:return Be()===23;case 17:case 16:case 18:return Be()===21||Be()===23;case 20:return Be()!==27;case 22:return Be()===18||Be()===19;case 13:return Be()===31||Be()===43;case 14:return Be()===29&&br(yc);default:return!1}}function go(){return!!(Mr()||ac(Be())||Be()===38)}function wo(){for(var Le=0;Le<24;Le++)if(ye&1<=0)}function Mn(Le){return Le===6?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function or(){var Le=jr([],bn());return Le.isMissingList=!0,Le}function Ir(Le){return!!Le.isMissingList}function at(Le,dn,Fn,rr){if(cr(Fn)){var Nr=sn(Le,dn);return cr(rr),Nr}return or()}function Ft(Le,dn){for(var Fn=bn(),rr=Le?Dt(dn):ft(dn),Nr=bn();Yr(24);){if(Be()===29){rr.jsdocDotPos=Nr;break}Nr=bn(),rr=En(A.createQualifiedName(rr,$a(Le,!1)),Fn)}return rr}function Da(Le,dn){return En(A.createQualifiedName(Le,dn),Le.pos)}function $a(Le,dn){if(u.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Be())){var Fn=br(ll);if(Fn)return tr(78,!0,e.Diagnostics.Identifier_expected)}if(Be()===79){var rr=Ei();return dn?rr:tr(78,!0,e.Diagnostics.Identifier_expected)}return Le?Dt():ft()}function Za(Le){var dn=bn(),Fn=[],rr;do rr=gs(Le),Fn.push(rr);while(rr.literal.kind===16);return jr(Fn,dn)}function hi(Le){var dn=bn();return En(A.createTemplateExpression(ws(Le),Za(Le)),dn)}function vo(){var Le=bn();return En(A.createTemplateLiteralType(ws(!1),fs()),Le)}function fs(){var Le=bn(),dn=[],Fn;do Fn=bs(),dn.push(Fn);while(Fn.literal.kind===16);return jr(dn,Le)}function bs(){var Le=bn();return En(A.createTemplateLiteralTypeSpan(hs(),ds(!1)),Le)}function ds(Le){return Be()===19?(mr(Le),Ws()):ma(17,e.Diagnostics._0_expected,e.tokenToString(19))}function gs(Le){var dn=bn();return En(A.createTemplateSpan(Sn(os),ds(Le)),dn)}function Zo(){return Gs(Be())}function ws(Le){Le&&Ln();var dn=Gs(Be());return e.Debug.assert(dn.kind===15,"Template head has wrong token kind"),dn}function Ws(){var Le=Gs(Be());return e.Debug.assert(Le.kind===16||Le.kind===17,"Template fragment has wrong token kind"),Le}function Ts(Le){var dn=Le===14||Le===17,Fn=u.getTokenText();return Fn.substring(1,Fn.length-(u.isUnterminated()?0:dn?1:2))}function Gs(Le){var dn=bn(),Fn=e.isTemplateLiteralKind(Le)?A.createTemplateLiteralLikeNode(Le,u.getTokenValue(),Ts(Le),u.getTokenFlags()&2048):Le===8?A.createNumericLiteral(u.getTokenValue(),u.getNumericLiteralFlags()):Le===10?A.createStringLiteral(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):e.isLiteralKind(Le)?A.createLiteralLikeNode(Le,u.getTokenValue()):e.Debug.fail();return u.hasExtendedUnicodeEscape()&&(Fn.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(Fn.isUnterminated=!0),zn(),En(Fn,dn)}function Cs(){return Ft(!0,e.Diagnostics.Type_expected)}function xs(){if(!u.hasPrecedingLineBreak()&&jn()===29)return at(20,hs,29,31)}function vs(){var Le=bn();return En(A.createTypeReferenceNode(Cs(),xs()),Le)}function js(Le){switch(Le.kind){case 174:return e.nodeIsMissing(Le.typeName);case 175:case 176:{var dn=Le,Fn=dn.parameters,rr=dn.type;return Ir(Fn)||js(rr)}case 187:return js(Le.type);default:return!1}}function Zs(Le){return zn(),En(A.createTypePredicateNode(void 0,Le,hs()),Le.pos)}function He(){var Le=bn();return zn(),En(A.createThisTypeNode(),Le)}function ur(){var Le=bn();return zn(),En(A.createJSDocAllType(),Le)}function ae(){var Le=bn();return zn(),En(A.createJSDocNonNullableType(Li()),Le)}function An(){var Le=bn();return zn(),Be()===27||Be()===19||Be()===21||Be()===31||Be()===62||Be()===51?En(A.createJSDocUnknownType(),Le):En(A.createJSDocNullableType(hs()),Le)}function ir(){var Le=bn(),dn=In();if(br(wf)){zn();var Fn=ol(36),rr=bi(58,!1);return we(En(A.createJSDocFunctionType(Fn,rr),Le),dn)}return En(A.createTypeReferenceNode(Dt(),void 0),Le)}function Ur(){var Le=bn(),dn;return(Be()===107||Be()===102)&&(dn=Dt(),cr(58)),En(A.createParameterDeclaration(void 0,void 0,void 0,dn,void 0,mn(),void 0),Le)}function mn(){u.setInJSDocType(!0);var Le=bn();if(Yr(139)){var dn=A.createJSDocNamepathType(void 0);e:for(;;)switch(Be()){case 19:case 1:case 27:case 5:break e;default:Er()}return u.setInJSDocType(!1),En(dn,Le)}var Fn=Yr(25),rr=ql();return u.setInJSDocType(!1),Fn&&(rr=En(A.createJSDocVariadicType(rr),Le)),Be()===62?(zn(),En(A.createJSDocOptionalType(rr),Le)):rr}function wa(){var Le=bn();return cr(111),En(A.createTypeQueryNode(Ft(!0)),Le)}function Ba(){var Le=bn(),dn=ft(),Fn,rr;Yr(93)&&(Mi()||!Su()?Fn=hs():rr=Hd());var Nr=Yr(62)?hs():void 0,et=A.createTypeParameterDeclaration(dn,Fn,Nr);return et.expression=rr,En(et,Le)}function pa(){if(Be()===29)return at(19,Ba,29,31)}function ci(Le){return Be()===25||$u()||e.isModifierKind(Be())||Be()===59||Mi(!Le)}function Xi(Le){var dn=gu(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return e.getFullWidth(dn)===0&&!e.some(Le)&&e.isModifierKind(Be())&&zn(),dn}function so(){return ps(!0)}function Wo(){return ps(!1)}function ps(Le){var dn=bn(),Fn=In(),rr=Le?yr(ku):ku();if(Be()===107){var Nr=A.createParameterDeclaration(rr,void 0,void 0,Or(!0),void 0,No(),void 0);return rr&&Qe(rr[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),we(En(Nr,dn),Fn)}var et=tn;tn=!1;var xt=lc(),Kt=we(En(A.createParameterDeclaration(rr,xt,Ut(25),Xi(xt),Ut(57),No(),Fs()),dn),Fn);return tn=et,Kt}function bi(Le,dn){if(xl(Le,dn))return ql()}function xl(Le,dn){return Le===38?(cr(Le),!0):Yr(58)?!0:dn&&Be()===38?(kn(e.Diagnostics._0_expected,e.tokenToString(58)),zn(),!0):!1}function dl(Le){var dn=Nn(),Fn=kr();xe(!!(Le&1)),Se(!!(Le&2));var rr=Le&32?sn(17,Ur):sn(16,Fn?so:Wo);return xe(dn),Se(Fn),rr}function ol(Le){if(!cr(20))return or();var dn=dl(Le);return cr(21),dn}function Il(){Yr(27)||Kr()}function rc(Le){var dn=bn(),Fn=In();Le===171&&cr(102);var rr=pa(),Nr=ol(4),et=bi(58,!0);Il();var xt=Le===170?A.createCallSignature(rr,Nr,et):A.createConstructSignature(rr,Nr,et);return we(En(xt,dn),Fn)}function tc(){return Be()===22&&br(Kl)}function Kl(){if(zn(),Be()===25||Be()===23)return!0;if(e.isModifierKind(Be())){if(zn(),dt())return!0}else if(dt())zn();else return!1;return Be()===58||Be()===27?!0:Be()!==57?!1:(zn(),Be()===58||Be()===27||Be()===23)}function Dc(Le,dn,Fn,rr){var Nr=at(16,Wo,22,23),et=No();Il();var xt=A.createIndexSignature(Fn,rr,Nr,et);return we(En(xt,Le),dn)}function zl(Le,dn,Fn){var rr=ii(),Nr=Ut(57),et;if(Be()===20||Be()===29){var xt=pa(),Kt=ol(4),ai=bi(58,!0);et=A.createMethodSignature(Fn,rr,Nr,xt,Kt,ai)}else{var ai=No();et=A.createPropertySignature(Fn,rr,Nr,ai),Be()===62&&(et.initializer=Fs())}return Il(),we(En(et,Le),dn)}function hn(){if(Be()===20||Be()===29||Be()===134||Be()===146)return!0;for(var Le=!1;e.isModifierKind(Be());)Le=!0,zn();return Be()===22?!0:(sa()&&(Le=!0,zn()),Le?Be()===20||Be()===29||Be()===57||Be()===58||Be()===27||Mr():!1)}function Gn(){if(Be()===20||Be()===29)return rc(170);if(Be()===102&&br(vr))return rc(171);var Le=bn(),dn=In(),Fn=lc();return _i(134)?Ql(Le,dn,void 0,Fn,168):_i(146)?Ql(Le,dn,void 0,Fn,169):tc()?Dc(Le,dn,void 0,Fn):zl(Le,dn,Fn)}function vr(){return zn(),Be()===20||Be()===29}function Qr(){return zn()===24}function ct(){switch(zn()){case 20:case 29:case 24:return!0}return!1}function ot(){var Le=bn();return En(A.createTypeLiteralNode(Lt()),Le)}function Lt(){var Le;return cr(18)?(Le=oo(4,Gn),cr(19)):Le=or(),Le}function kt(){return zn(),Be()===39||Be()===40?zn()===142:(Be()===142&&zn(),Be()===22&&Ao()&&zn()===100)}function ya(){var Le=bn(),dn=Dt();cr(100);var Fn=hs();return En(A.createTypeParameterDeclaration(dn,Fn,void 0),Le)}function ni(){var Le=bn();cr(18);var dn;(Be()===142||Be()===39||Be()===40)&&(dn=qt(),dn.kind!==142&&cr(142)),cr(22);var Fn=ya(),rr=Yr(126)?hs():void 0;cr(23);var Nr;(Be()===57||Be()===39||Be()===40)&&(Nr=qt(),Nr.kind!==57&&cr(57));var et=No();return Kr(),cr(19),En(A.createMappedTypeNode(dn,Fn,rr,Nr,et),Le)}function Yt(){var Le=bn();if(Yr(25))return En(A.createRestTypeNode(hs()),Le);var dn=hs();if(e.isJSDocNullableType(dn)&&dn.pos===dn.type.pos){var Fn=A.createOptionalTypeNode(dn.type);return e.setTextRange(Fn,dn),Fn.flags=dn.flags,Fn}return dn}function fa(){return zn()===58||Be()===57&&zn()===58}function li(){return Be()===25?e.tokenIsIdentifierOrKeyword(zn())&&fa():e.tokenIsIdentifierOrKeyword(Be())&&fa()}function Ti(){if(br(li)){var Le=bn(),dn=In(),Fn=Ut(25),rr=Dt(),Nr=Ut(57);cr(58);var et=Yt(),xt=A.createNamedTupleMember(Fn,rr,Nr,et);return we(En(xt,Le),dn)}return Yt()}function To(){var Le=bn();return En(A.createTupleTypeNode(at(21,Ti,22,23)),Le)}function ce(){var Le=bn();cr(20);var dn=hs();return cr(21),En(A.createParenthesizedType(dn),Le)}function ln(){var Le;if(Be()===125){var dn=bn();zn();var Fn=En(A.createToken(125),dn);Le=jr([Fn],dn)}return Le}function pn(){var Le=bn(),dn=In(),Fn=ln(),rr=Yr(102),Nr=pa(),et=ol(4),xt=bi(38,!1),Kt=rr?A.createConstructorTypeNode(Fn,Nr,et,xt):A.createFunctionTypeNode(Nr,et,xt);return rr||(Kt.modifiers=Fn),we(En(Kt,Le),dn)}function $n(){var Le=qt();return Be()===24?void 0:Le}function cn(Le){var dn=bn();Le&&zn();var Fn=Be()===109||Be()===94||Be()===103?qt():Gs(Be());return Le&&(Fn=En(A.createPrefixUnaryExpression(40,Fn),dn)),En(A.createLiteralTypeNode(Fn),dn)}function Ht(){return zn(),Be()===99}function $t(){re|=1048576;var Le=bn(),dn=Yr(111);cr(99),cr(20);var Fn=hs();cr(21);var rr=Yr(24)?Cs():void 0,Nr=xs();return En(A.createImportTypeNode(Fn,rr,Nr,dn),Le)}function Ia(){return zn(),Be()===8||Be()===9}function Li(){switch(Be()){case 128:case 152:case 147:case 144:case 155:case 148:case 131:case 150:case 141:case 145:return Br($n)||vs();case 65:u.reScanAsteriskEqualsToken();case 41:return ur();case 60:u.reScanQuestionToken();case 57:return An();case 97:return ir();case 53:return ae();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return cn();case 40:return br(Ia)?cn(!0):vs();case 113:return qt();case 107:{var Le=He();return Be()===137&&!u.hasPrecedingLineBreak()?Zs(Le):Le}case 111:return br(Ht)?$t():wa();case 18:return br(kt)?ni():ot();case 22:return To();case 20:return ce();case 99:return $t();case 127:return br(ll)?yp():vs();case 15:return vo();default:return vs()}}function Mi(Le){switch(Be()){case 128:case 152:case 147:case 144:case 155:case 131:case 142:case 148:case 151:case 113:case 150:case 103:case 107:case 111:case 141:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 145:case 41:case 57:case 53:case 25:case 135:case 99:case 127:case 14:case 15:return!0;case 97:return!Le;case 40:return!Le&&br(Ia);case 20:return!Le&&br(lo);default:return dt()}}function lo(){return zn(),Be()===21||ci(!1)||Mi()}function Bt(){for(var Le=bn(),dn=Li();!u.hasPrecedingLineBreak();)switch(Be()){case 53:zn(),dn=En(A.createJSDocNonNullableType(dn),Le);break;case 57:if(br(Ji))return dn;zn(),dn=En(A.createJSDocNullableType(dn),Le);break;case 22:if(cr(22),Mi()){var Fn=hs();cr(23),dn=En(A.createIndexedAccessTypeNode(dn,Fn),Le)}else cr(23),dn=En(A.createArrayTypeNode(dn),Le);break;default:return dn}return dn}function Ki(Le){var dn=bn();return cr(Le),En(A.createTypeOperatorNode(Le,uo()),dn)}function co(){var Le=bn();return En(A.createTypeParameterDeclaration(ft(),void 0,void 0),Le)}function Ro(){var Le=bn();return cr(135),En(A.createInferTypeNode(co()),Le)}function uo(){var Le=Be();switch(Le){case 138:case 151:case 142:return Ki(Le);case 135:return Ro()}return Bt()}function $s(Le){if(mc()){var dn=pn(),Fn=void 0;return e.isFunctionTypeNode(dn)?Fn=Le?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:Fn=Le?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,Qe(dn,Fn),dn}}function yl(Le,dn,Fn){var rr=bn(),Nr=Le===51,et=Yr(Le),xt=et&&$s(Nr)||dn();if(Be()===Le||et){for(var Kt=[xt];Yr(Le);)Kt.push($s(Nr)||dn());xt=En(Fn(jr(Kt,rr)),rr)}return xt}function nu(){return yl(50,uo,A.createIntersectionTypeNode)}function Rl(){return yl(51,nu,A.createUnionTypeNode)}function Is(){return zn(),Be()===102}function mc(){return Be()===29||Be()===20&&br(ia)?!0:Be()===102||Be()===125&&br(Is)}function Ua(){if(e.isModifierKind(Be())&&lc(),dt()||Be()===107)return zn(),!0;if(Be()===22||Be()===18){var Le=je.length;return gu(),Le===je.length}return!1}function ia(){return zn(),!!(Be()===21||Be()===25||Ua()&&(Be()===58||Be()===27||Be()===57||Be()===62||Be()===21&&(zn(),Be()===38)))}function ql(){var Le=bn(),dn=dt()&&Br(El),Fn=hs();return dn?En(A.createTypePredicateNode(void 0,dn,Fn),Le):Fn}function El(){var Le=ft();if(Be()===137&&!u.hasPrecedingLineBreak())return zn(),Le}function yp(){var Le=bn(),dn=ma(127),Fn=Be()===107?He():ft(),rr=Yr(137)?hs():void 0;return En(A.createTypePredicateNode(dn,Fn,rr),Le)}function hs(){return Ye(40960,Tf)}function Tf(Le){if(mc())return pn();var dn=bn(),Fn=Rl();if(!Le&&!u.hasPrecedingLineBreak()&&Yr(93)){var rr=Tf(!0);cr(57);var Nr=Tf();cr(58);var et=Tf();return En(A.createConditionalTypeNode(Fn,rr,Nr,et),dn)}return Fn}function No(){return Yr(58)?hs():void 0}function Qf(){switch(Be()){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return br(ct);default:return dt()}}function Su(){if(Qf())return!0;switch(Be()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return ed()?!0:dt()}}function Ep(){return Be()!==18&&Be()!==97&&Be()!==83&&Be()!==59&&Su()}function os(){var Le=Hn();Le&&P(!1);for(var dn=bn(),Fn=pl(),rr;rr=Ut(27);)Fn=nd(Fn,rr,pl(),dn);return Le&&P(!0),Fn}function Fs(){return Yr(62)?pl():void 0}function pl(){if(Md())return Zf();var Le=wd()||Tp();if(Le)return Le;var dn=bn(),Fn=Au(0);return Fn.kind===78&&Be()===38?zu(dn,Fn,void 0):e.isLeftHandSideExpression(Fn)&&e.isAssignmentOperator(Pr())?nd(Fn,qt(),pl(),dn):Ud(Fn,dn)}function Md(){return Be()===124?Nn()?!0:br(Iu):!1}function Lu(){return zn(),!u.hasPrecedingLineBreak()&&dt()}function Zf(){var Le=bn();return zn(),!u.hasPrecedingLineBreak()&&(Be()===41||Su())?En(A.createYieldExpression(Ut(41),pl()),Le):En(A.createYieldExpression(void 0,void 0),Le)}function zu(Le,dn,Fn){e.Debug.assert(Be()===38,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var rr=A.createParameterDeclaration(void 0,void 0,void 0,dn,void 0,void 0,void 0);En(rr,dn.pos);var Nr=jr([rr],rr.pos,rr.end),et=ma(38),xt=Sf(!!Fn),Kt=A.createArrowFunction(Fn,void 0,Nr,void 0,et,xt);return yn(En(Kt,Le))}function wd(){var Le=Gd();if(Le!==0)return Le===1?Bd(!0):Br(Fd)}function Gd(){return Be()===20||Be()===29||Be()===129?br(bp):Be()===38?1:0}function bp(){if(Be()===129&&(zn(),u.hasPrecedingLineBreak()||Be()!==20&&Be()!==29))return 0;var Le=Be(),dn=zn();if(Le===20){if(dn===21){var Fn=zn();switch(Fn){case 38:case 58:case 18:return 1;default:return 0}}if(dn===22||dn===18)return 2;if(dn===25||e.isModifierKind(dn)&&dn!==129&&br(Ao))return 1;if(!dt()&&dn!==107)return 0;switch(zn()){case 58:return 1;case 57:return zn(),Be()===58||Be()===27||Be()===62||Be()===21?1:0;case 27:case 62:case 21:return 2}return 0}else{if(e.Debug.assert(Le===29),!dt())return 0;if(Je===1){var rr=br(function(){var Nr=zn();if(Nr===93){var et=zn();switch(et){case 62:case 31:return!1;default:return!0}}else if(Nr===27)return!0;return!1});return rr?1:0}return 2}}function Fd(){var Le=u.getTokenPos();if(!(on!=null&&on.has(Le))){var dn=Bd(!1);return dn||(on||(on=new e.Set)).add(Le),dn}}function Tp(){if(Be()===129&&br(Sp)===1){var Le=bn(),dn=nf(),Fn=Au(0);return zu(Le,Fn,dn)}}function Sp(){if(Be()===129){if(zn(),u.hasPrecedingLineBreak()||Be()===38)return 0;var Le=Au(0);if(!u.hasPrecedingLineBreak()&&Le.kind===78&&Be()===38)return 1}return 0}function Bd(Le){var dn=bn(),Fn=In(),rr=nf(),Nr=e.some(rr,e.isAsyncModifier)?2:0,et=pa(),xt;if(cr(20)){if(xt=dl(Nr),!cr(21)&&!Le)return}else{if(!Le)return;xt=or()}var Kt=bi(58,!1);if(!(Kt&&!Le&&js(Kt))){var ai=Kt&&e.isJSDocFunctionType(Kt);if(!(!Le&&Be()!==38&&(ai||Be()!==18))){var La=Be(),ji=ma(38),$o=La===38||La===18?Sf(e.some(rr,e.isAsyncModifier)):ft(),ao=A.createArrowFunction(rr,et,xt,Kt,ji,$o);return we(En(ao,dn),Fn)}}}function Sf(Le){if(Be()===18)return Yu(Le?2:0);if(Be()!==26&&Be()!==97&&Be()!==83&&Rs()&&!Ep())return Yu(16|(Le?2:0));var dn=tn;tn=!1;var Fn=Le?yr(pl):Vr(pl);return tn=dn,Fn}function Ud(Le,dn){var Fn=Ut(57);if(!Fn)return Le;var rr;return En(A.createConditionalExpression(Le,Fn,Ye(b,pl),rr=ma(58),e.nodeIsPresent(rr)?pl():tr(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),dn)}function Au(Le){var dn=bn(),Fn=Hd();return $f(Le,Fn,dn)}function ac(Le){return Le===100||Le===157}function $f(Le,dn,Fn){for(;;){Pr();var rr=e.getBinaryOperatorPrecedence(Be()),Nr=Be()===42?rr>=Le:rr>Le;if(!Nr||Be()===100&&Vn())break;if(Be()===126){if(u.hasPrecedingLineBreak())break;zn(),dn=Vd(dn,hs())}else dn=nd(dn,qt(),Au(rr),Fn)}return dn}function ed(){return Vn()&&Be()===100?!1:e.getBinaryOperatorPrecedence(Be())>0}function nd(Le,dn,Fn,rr){return En(A.createBinaryExpression(Le,dn,Fn),rr)}function Vd(Le,dn){return En(A.createAsExpression(Le,dn),Le.pos)}function Du(){var Le=bn();return En(A.createPrefixUnaryExpression(Be(),_r(Nl)),Le)}function Lp(){var Le=bn();return En(A.createDeleteExpression(_r(Nl)),Le)}function rd(){var Le=bn();return En(A.createTypeOfExpression(_r(Nl)),Le)}function Kp(){var Le=bn();return En(A.createVoidExpression(_r(Nl)),Le)}function Wd(){return Be()===130?kr()?!0:br(Iu):!1}function jd(){var Le=bn();return En(A.createAwaitExpression(_r(Nl)),Le)}function Hd(){if(ru()){var Le=bn(),dn=qu();return Be()===42?$f(e.getBinaryOperatorPrecedence(Be()),dn,Le):dn}var Fn=Be(),rr=Nl();if(Be()===42){var Le=e.skipTrivia(ve,rr.pos),Nr=rr.end;rr.kind===207?Cr(Le,Nr,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):Cr(Le,Nr,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(Fn))}return rr}function Nl(){switch(Be()){case 39:case 40:case 54:case 53:return Du();case 88:return Lp();case 111:return rd();case 113:return Kp();case 29:return Bc();case 130:if(Wd())return jd();default:return qu()}}function ru(){switch(Be()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(Je!==1)return!1;default:return!0}}function qu(){if(Be()===45||Be()===46){var Le=bn();return En(A.createPrefixUnaryExpression(Be(),_r(pu)),Le)}else if(Je===1&&Be()===29&&br(ti))return Cu(!0);var dn=pu();if(e.Debug.assert(e.isLeftHandSideExpression(dn)),(Be()===45||Be()===46)&&!u.hasPrecedingLineBreak()){var Fn=Be();return zn(),En(A.createPostfixUnaryExpression(dn,Fn),dn.pos)}return dn}function pu(){var Le=bn(),dn;return Be()===99?br(vr)?(re|=1048576,dn=qt()):br(Qr)?(zn(),zn(),dn=En(A.createMetaProperty(99,Dt()),Le),re|=2097152):dn=Jd():dn=Be()===105?Ap():Jd(),Oo(Le,dn)}function Jd(){var Le=bn(),dn=xf();return ml(Le,dn,!0)}function Ap(){var Le=bn(),dn=qt();if(Be()===29){var Fn=bn(),rr=Br(Cf);rr!==void 0&&Cr(Fn,bn(),e.Diagnostics.super_may_not_use_type_arguments)}return Be()===20||Be()===24||Be()===22?dn:(ma(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),En(A.createPropertyAccessExpression(dn,$a(!0,!0)),Le))}function Cu(Le,dn){var Fn=bn(),rr=Af(Le),Nr;if(rr.kind===276){var et=ad(rr),xt=Vi(Le);F(rr.tagName,xt.tagName)||Qe(xt,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ve,rr.tagName)),Nr=En(A.createJsxElement(rr,et,xt),Fn)}else rr.kind===279?Nr=En(A.createJsxFragment(rr,ad(rr),Fo(Le)),Fn):(e.Debug.assert(rr.kind===275),Nr=rr);if(Le&&Be()===29){var Kt=typeof dn>"u"?Nr.pos:dn,ai=Br(function(){return Cu(!0,Kt)});if(ai){var La=tr(27,!1);return e.setTextRangePosWidth(La,ai.pos,0),Cr(e.skipTrivia(ve,Kt),ai.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),En(A.createBinaryExpression(Nr,La,ai),Fn)}}return Nr}function Lf(){var Le=bn(),dn=A.createJsxText(u.getTokenValue(),Ve===12);return Ve=u.scanJsxToken(),En(dn,Le)}function td(Le,dn){switch(dn){case 1:if(e.isJsxOpeningFragment(Le))Qe(Le,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var Fn=Le.tagName,rr=e.skipTrivia(ve,Fn.pos);Cr(rr,Fn.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(ve,Le.tagName))}return;case 30:case 7:return;case 11:case 12:return Lf();case 18:return id(!1);case 29:return Cu(!1);default:return e.Debug.assertNever(dn)}}function ad(Le){var dn=[],Fn=bn(),rr=ye;for(ye|=16384;;){var Nr=td(Le,Ve=u.reScanJsxToken());if(!Nr)break;dn.push(Nr)}return ye=rr,jr(dn,Fn)}function Kd(){var Le=bn();return En(A.createJsxAttributes(oo(13,Cc)),Le)}function Af(Le){var dn=bn();if(cr(29),Be()===31)return dr(),En(A.createJsxOpeningFragment(),dn);var Fn=Df(),rr=Te&131072?void 0:Yd(),Nr=Kd(),et;return Be()===31?(dr(),et=A.createJsxOpeningElement(Fn,rr,Nr)):(cr(43),Le?cr(31):(cr(31,void 0,!1),dr()),et=A.createJsxSelfClosingElement(Fn,rr,Nr)),En(et,dn)}function Df(){var Le=bn();ar();for(var dn=Be()===107?qt():Dt();Yr(24);)dn=En(A.createPropertyAccessExpression(dn,$a(!0,!1)),Le);return dn}function id(Le){var dn=bn();if(cr(18)){var Fn,rr;return Be()!==19&&(Fn=Ut(25),rr=os()),Le?cr(19):cr(19,void 0,!1)&&dr(),En(A.createJsxExpression(Fn,rr),dn)}}function Cc(){if(Be()===18)return Xu();ar();var Le=bn();return En(A.createJsxAttribute(Dt(),Be()!==62?void 0:Rr()===10?Zo():id(!0)),Le)}function Xu(){var Le=bn();cr(18),cr(25);var dn=os();return cr(19),En(A.createJsxSpreadAttribute(dn),Le)}function Vi(Le){var dn=bn();cr(30);var Fn=Df();return Le?cr(31):(cr(31,void 0,!1),dr()),En(A.createJsxClosingElement(Fn),dn)}function Fo(Le){var dn=bn();return cr(30),e.tokenIsIdentifierOrKeyword(Be())&&Qe(Df(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Le?cr(31):(cr(31,void 0,!1),dr()),En(A.createJsxJsxClosingFragment(),dn)}function Bc(){var Le=bn();cr(29);var dn=hs();cr(31);var Fn=Nl();return En(A.createTypeAssertion(dn,Fn),Le)}function Ol(){return zn(),e.tokenIsIdentifierOrKeyword(Be())||Be()===22||kl()}function Uc(){return Be()===28&&br(Ol)}function bl(Le){if(Le.flags&32)return!0;if(e.isNonNullExpression(Le)){for(var dn=Le.expression;e.isNonNullExpression(dn)&&!(dn.flags&32);)dn=dn.expression;if(dn.flags&32){for(;e.isNonNullExpression(Le);)Le.flags|=32,Le=Le.expression;return!0}}return!1}function Dp(Le,dn,Fn){var rr=$a(!0,!0),Nr=Fn||bl(dn),et=Nr?A.createPropertyAccessChain(dn,Fn,rr):A.createPropertyAccessExpression(dn,rr);return Nr&&e.isPrivateIdentifier(et.name)&&Qe(et.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),En(et,Le)}function ic(Le,dn,Fn){var rr;if(Be()===23)rr=tr(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var Nr=Sn(os);e.isStringOrNumericLiteralLike(Nr)&&(Nr.text=gr(Nr.text)),rr=Nr}cr(23);var et=Fn||bl(dn)?A.createElementAccessChain(dn,Fn,rr):A.createElementAccessExpression(dn,rr);return En(et,Le)}function ml(Le,dn,Fn){for(;;){var rr=void 0,Nr=!1;if(Fn&&Uc()?(rr=ma(28),Nr=e.tokenIsIdentifierOrKeyword(Be())):Nr=Yr(24),Nr){dn=Dp(Le,dn,rr);continue}if(!rr&&Be()===53&&!u.hasPrecedingLineBreak()){zn(),dn=En(A.createNonNullExpression(dn),Le);continue}if((rr||!Hn())&&Yr(22)){dn=ic(Le,dn,rr);continue}if(kl()){dn=el(Le,dn,rr,void 0);continue}return dn}}function kl(){return Be()===14||Be()===15}function el(Le,dn,Fn,rr){var Nr=A.createTaggedTemplateExpression(dn,rr,Be()===14?(Ln(),Zo()):hi(!0));return(Fn||dn.flags&32)&&(Nr.flags|=32),Nr.questionDotToken=Fn,En(Nr,Le)}function Oo(Le,dn){for(;;){dn=ml(Le,dn,!0);var Fn=Ut(28);if(!(Te&131072)&&(Be()===29||Be()===47)){var rr=Br(Cf);if(rr){if(kl()){dn=el(Le,dn,Fn,rr);continue}var Nr=od(),et=Fn||bl(dn)?A.createCallChain(dn,Fn,rr,Nr):A.createCallExpression(dn,rr,Nr);dn=En(et,Le);continue}}else if(Be()===20){var Nr=od(),et=Fn||bl(dn)?A.createCallChain(dn,Fn,void 0,Nr):A.createCallExpression(dn,void 0,Nr);dn=En(et,Le);continue}if(Fn){var xt=tr(78,!1,e.Diagnostics.Identifier_expected);dn=En(A.createPropertyAccessChain(dn,Fn,xt),Le)}break}return dn}function od(){cr(20);var Le=sn(11,If);return cr(21),Le}function Cf(){if(!(Te&131072)&&jn()===29){zn();var Le=sn(20,hs);if(cr(31))return Le&&Cp()?Le:void 0}}function Cp(){switch(Be()){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 xf(){switch(Be()){case 8:case 9:case 10:case 14:return Zo();case 107:case 105:case 103:case 109:case 94:return qt();case 20:return Si();case 22:return zd();case 18:return sd();case 129:if(!br(ho))break;return Ct();case 83:return Rp();case 97:return Ct();case 102:return ei();case 43:case 67:if(tt()===13)return Zo();break;case 15:return hi(!1)}return ft(e.Diagnostics.Expression_expected)}function Si(){var Le=bn(),dn=In();cr(20);var Fn=Sn(os);return cr(21),we(En(A.createParenthesizedExpression(Fn),Le),dn)}function Tl(){var Le=bn();cr(25);var dn=pl();return En(A.createSpreadElement(dn),Le)}function Pl(){return Be()===25?Tl():Be()===27?En(A.createOmittedExpression(),bn()):pl()}function If(){return Ye(b,Pl)}function zd(){var Le=bn();cr(22);var dn=u.hasPrecedingLineBreak(),Fn=sn(15,Pl);return cr(23),En(A.createArrayLiteralExpression(Fn,dn),Le)}function sl(){var Le=bn(),dn=In();if(Ut(25)){var Fn=pl();return we(En(A.createSpreadAssignment(Fn),Le),dn)}var rr=ku(),Nr=lc();if(_i(134))return Ql(Le,dn,rr,Nr,168);if(_i(146))return Ql(Le,dn,rr,Nr,169);var et=Ut(41),xt=dt(),Kt=ii(),ai=Ut(57),La=Ut(53);if(et||Be()===20||Be()===29)return hc(Le,dn,rr,Nr,et,Kt,ai,La);var ji,$o=xt&&Be()!==58;if($o){var ao=Ut(62),es=ao?Sn(pl):void 0;ji=A.createShorthandPropertyAssignment(Kt,es),ji.equalsToken=ao}else{cr(58);var ss=Sn(pl);ji=A.createPropertyAssignment(Kt,ss)}return ji.decorators=rr,ji.modifiers=Nr,ji.questionToken=ai,ji.exclamationToken=La,we(En(ji,Le),dn)}function sd(){var Le=bn(),dn=u.getTokenPos();cr(18);var Fn=u.hasPrecedingLineBreak(),rr=sn(12,sl,!0);if(!cr(19)){var Nr=e.lastOrUndefined(je);Nr&&Nr.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Nr,e.createDetachedDiagnostic(X,dn,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return En(A.createObjectLiteralExpression(rr,Fn),Le)}function Ct(){var Le=Hn();Le&&P(!1);var dn=bn(),Fn=In(),rr=lc();cr(97);var Nr=Ut(41),et=Nr?1:0,xt=e.some(rr,e.isAsyncModifier)?2:0,Kt=et&&xt?Me(Jo):et?wn(Jo):xt?yr(Jo):Jo(),ai=pa(),La=ol(et|xt),ji=bi(58,!1),$o=Yu(et|xt);Le&&P(!0);var ao=A.createFunctionExpression(rr,Nr,Kt,ai,La,ji,$o);return we(En(ao,dn),Fn)}function Jo(){return vt()?mt():void 0}function ei(){var Le=bn();if(cr(102),Yr(24)){var dn=Dt();return En(A.createMetaProperty(102,dn),Le)}for(var Fn=bn(),rr=xf(),Nr;;){rr=ml(Fn,rr,!1),Nr=Br(Cf),kl()&&(e.Debug.assert(!!Nr,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),rr=el(Fn,rr,void 0,Nr),Nr=void 0);break}var et;return Be()===20?et=od():Nr&&Cr(Le,u.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),En(A.createNewExpression(rr,Nr,et),Le)}function nl(Le,dn){var Fn=bn(),rr=In(),Nr=u.getTokenPos();if(cr(18,dn)||Le){var et=u.hasPrecedingLineBreak(),xt=oo(1,rl);if(!cr(19)){var Kt=e.lastOrUndefined(je);Kt&&Kt.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(Kt,e.createDetachedDiagnostic(X,Nr,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var ai=we(En(A.createBlock(xt,et),Fn),rr);return Be()===62&&(kn(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),zn()),ai}else{var xt=or();return we(En(A.createBlock(xt,void 0),Fn),rr)}}function Yu(Le,dn){var Fn=Nn();xe(!!(Le&1));var rr=kr();Se(!!(Le&2));var Nr=tn;tn=!1;var et=Hn();et&&P(!1);var xt=nl(!!(Le&16),dn);return et&&P(!0),tn=Nr,xe(Fn),Se(rr),xt}function Vc(){var Le=bn(),dn=In();return cr(26),we(En(A.createEmptyStatement(),Le),dn)}function St(){var Le=bn(),dn=In();cr(98),cr(20);var Fn=Sn(os);cr(21);var rr=rl(),Nr=Yr(90)?rl():void 0;return we(En(A.createIfStatement(Fn,rr,Nr),Le),dn)}function oc(){var Le=bn(),dn=In();cr(89);var Fn=rl();cr(114),cr(20);var rr=Sn(os);return cr(21),Yr(26),we(En(A.createDoStatement(Fn,rr),Le),dn)}function ko(){var Le=bn(),dn=In();cr(114),cr(20);var Fn=Sn(os);cr(21);var rr=rl();return we(En(A.createWhileStatement(Fn,rr),Le),dn)}function Xl(){var Le=bn(),dn=In();cr(96);var Fn=Ut(130);cr(20);var rr;Be()!==26&&(Be()===112||Be()===118||Be()===84?rr=fd(!0):rr=Xn(os));var Nr;if(Fn?cr(157):Yr(157)){var et=Sn(pl);cr(21),Nr=A.createForOfStatement(Fn,rr,et,rl())}else if(Yr(100)){var et=Sn(os);cr(21),Nr=A.createForInStatement(rr,et,rl())}else{cr(26);var xt=Be()!==26&&Be()!==21?Sn(os):void 0;cr(26);var Kt=Be()!==21?Sn(os):void 0;cr(21),Nr=A.createForStatement(rr,xt,Kt,rl())}return we(En(Nr,Le),dn)}function Ml(Le){var dn=bn(),Fn=In();cr(Le===242?80:85);var rr=Mr()?void 0:ft();Kr();var Nr=Le===242?A.createBreakStatement(rr):A.createContinueStatement(rr);return we(En(Nr,dn),Fn)}function wi(){var Le=bn(),dn=In();cr(104);var Fn=Mr()?void 0:Sn(os);return Kr(),we(En(A.createReturnStatement(Fn),Le),dn)}function At(){var Le=bn(),dn=In();cr(115),cr(20);var Fn=Sn(os);cr(21);var rr=an(16777216,rl);return we(En(A.createWithStatement(Fn,rr),Le),dn)}function Hs(){var Le=bn();cr(81);var dn=Sn(os);cr(58);var Fn=oo(3,rl);return En(A.createCaseClause(dn,Fn),Le)}function ld(){var Le=bn();cr(87),cr(58);var dn=oo(3,rl);return En(A.createDefaultClause(dn),Le)}function qd(){return Be()===81?Hs():ld()}function Wc(){var Le=bn();cr(18);var dn=oo(2,qd);return cr(19),En(A.createCaseBlock(dn),Le)}function xu(){var Le=bn(),dn=In();cr(106),cr(20);var Fn=Sn(os);cr(21);var rr=Wc();return we(En(A.createSwitchStatement(Fn,rr),Le),dn)}function mu(){var Le=bn(),dn=In();cr(108);var Fn=u.hasPrecedingLineBreak()?void 0:Sn(os);return Fn===void 0&&(Ce++,Fn=En(A.createIdentifier(""),bn())),Kr(),we(En(A.createThrowStatement(Fn),Le),dn)}function xc(){var Le=bn(),dn=In();cr(110);var Fn=nl(!1),rr=Be()===82?jc():void 0,Nr;return(!rr||Be()===95)&&(cr(95),Nr=nl(!1)),we(En(A.createTryStatement(Fn,rr,Nr),Le),dn)}function jc(){var Le=bn();cr(82);var dn;Yr(20)?(dn=Nu(),cr(21)):dn=void 0;var Fn=nl(!1);return En(A.createCatchClause(dn,Fn),Le)}function _u(){var Le=bn(),dn=In();return cr(86),Kr(),we(En(A.createDebuggerStatement(),Le),dn)}function Qu(){var Le=bn(),dn=In(),Fn,rr=Be()===20,Nr=Sn(os);return e.isIdentifier(Nr)&&Yr(58)?Fn=A.createLabeledStatement(Nr,rl()):(Kr(),Fn=A.createExpressionStatement(Nr),rr&&(dn=!1)),we(En(Fn,Le),dn)}function ll(){return zn(),e.tokenIsIdentifierOrKeyword(Be())&&!u.hasPrecedingLineBreak()}function Zu(){return zn(),Be()===83&&!u.hasPrecedingLineBreak()}function ho(){return zn(),Be()===97&&!u.hasPrecedingLineBreak()}function Iu(){return zn(),(e.tokenIsIdentifierOrKeyword(Be())||Be()===8||Be()===9||Be()===10)&&!u.hasPrecedingLineBreak()}function Sl(){for(;;)switch(Be()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 149:return Lu();case 139:case 140:return Ic();case 125:case 129:case 133:case 120:case 121:case 122:case 142:if(zn(),u.hasPrecedingLineBreak())return!1;continue;case 154:return zn(),Be()===18||Be()===78||Be()===92;case 99:return zn(),Be()===10||Be()===41||Be()===18||e.tokenIsIdentifierOrKeyword(Be());case 92:var Le=zn();if(Le===149&&(Le=br(zn)),Le===62||Le===41||Le===18||Le===87||Le===126)return!0;continue;case 123:zn();continue;default:return!1}}function _c(){return br(Sl)}function Rs(){switch(Be()){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return _c()||br(ct);case 84:case 92:return _c();case 129:case 133:case 117:case 139:case 140:case 149:case 154:return!0;case 122:case 120:case 121:case 123:case 142:return _c()||!br(ll);default:return Su()}}function gc(){return zn(),dt()||Be()===18||Be()===22}function vc(){return br(gc)}function rl(){switch(Be()){case 26:return Vc();case 18:return nl(!1);case 112:return au(bn(),In(),void 0,void 0);case 118:if(vc())return au(bn(),In(),void 0,void 0);break;case 97:return Ou(bn(),In(),void 0,void 0);case 83:return Nf(bn(),In(),void 0,void 0);case 98:return St();case 89:return oc();case 114:return ko();case 96:return Xl();case 85:return Ml(241);case 80:return Ml(242);case 104:return wi();case 115:return At();case 106:return xu();case 108:return mu();case 110:case 82:case 95:return xc();case 86:return _u();case 59:return jo();case 129:case 117:case 149:case 139:case 140:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 142:case 154:if(_c())return jo();break}return Qu()}function to(Le){return Le.kind===133}function jo(){var Le=e.some(br(function(){return ku(),lc()}),to);if(Le){var dn=Hc();if(dn)return dn}var Fn=bn(),rr=In(),Nr=ku(),et=lc();if(Le){for(var xt=0,Kt=et;xt=0),e.Debug.assert(La<=ao),e.Debug.assert(ao<=$o.length),!se($o,La))return;var es,ss,ls,Ss,Gu,ns=[],al=[];return u.scanRange(La+3,ji-5,function(){var it=1,ea,ta=La-($o.lastIndexOf(` `,La)+1)+4;function Ra(As){ea||(ea=ta),ns.push(As),ta+=As.length}for(Er();yd(5););yd(4)&&(it=0,ta=0);e:for(;;){switch(Be()){case 59:it===0||it===1?(_d(ns),Gu||(Gu=bn()),Xo(he(ta)),it=0,ea=void 0):Ra(u.getTokenText());break;case 4:ns.push(u.getTokenText()),it=0,ta=0;break;case 41:var xa=u.getTokenText();it===1||it===2?(it=2,Ra(xa)):(it=1,ta+=xa.length);break;case 5:var xi=u.getTokenText();it===2?ns.push(xi):ea!==void 0&&ta+xi.length>ea&&ns.push(xi.slice(ea-ta)),ta+=xi.length;break;case 1:break e;case 18:it=2;var Co=u.getStartPos(),ks=u.getTextPos()-1,Ls=Et(ks);if(Ls){Ss||Ll(ns),al.push(En(A.createJSDocText(ns.join("")),Ss??La,Co)),al.push(Ls),ns=[],Ss=u.getTextPos();break}default:it=2,Ra(u.getTokenText());break}Er()}_d(ns),al.length&&ns.length&&al.push(En(A.createJSDocText(ns.join("")),Ss??La,Gu)),al.length&&es&&e.Debug.assertIsDefined(Gu,"having parsed tags implies that the end of the comment span should be set");var Fl=es&&jr(es,ss,ls);return En(A.createJSDocComment(al.length?jr(al,La,Gu):ns.length?ns.join(""):void 0,Fl),La,ao)});function Ll(it){for(;it.length&&(it[0]===` `||it[0]==="\r");)it.shift()}function _d(it){for(;it.length&&it[it.length-1].trim()==="";)it.pop()}function hu(){for(;;){if(Er(),Be()===1)return!0;if(!(Be()===5||Be()===4))return!1}}function d(){if(!((Be()===5||Be()===4)&&br(hu)))for(;Be()===5||Be()===4;)Er()}function V(){if((Be()===5||Be()===4)&&br(hu))return"";for(var it=u.hasPrecedingLineBreak(),ea=!1,ta="";it&&Be()===41||Be()===5||Be()===4;)ta+=u.getTokenText(),Be()===4?(it=!0,ea=!0,ta=""):Be()===41&&(it=!1),Er();return ea?ta:""}function he(it){e.Debug.assert(Be()===59);var ea=u.getTokenPos();Er();var ta=Ed(void 0),Ra=V(),xa;switch(ta.escapedText){case"author":xa=Bg(ea,ta,it,Ra);break;case"implements":xa=V_(ea,ta,it,Ra);break;case"augments":case"extends":xa=np(ea,ta,it,Ra);break;case"class":case"constructor":xa=Os(ea,A.createJSDocClassTag,ta,it,Ra);break;case"public":xa=Os(ea,A.createJSDocPublicTag,ta,it,Ra);break;case"private":xa=Os(ea,A.createJSDocPrivateTag,ta,it,Ra);break;case"protected":xa=Os(ea,A.createJSDocProtectedTag,ta,it,Ra);break;case"readonly":xa=Os(ea,A.createJSDocReadonlyTag,ta,it,Ra);break;case"override":xa=Os(ea,A.createJSDocOverrideTag,ta,it,Ra);break;case"deprecated":Re=!0,xa=Os(ea,A.createJSDocDeprecatedTag,ta,it,Ra);break;case"this":xa=W_(ea,ta,it,Ra);break;case"enum":xa=hm(ea,ta,it,Ra);break;case"arg":case"argument":case"param":return ep(ea,ta,2,it);case"return":case"returns":xa=Fg(ea,ta,it,Ra);break;case"template":xa=zm(ea,ta,it,Ra);break;case"type":xa=gm(ea,ta,it,Ra);break;case"typedef":xa=vd(ea,ta,it,Ra);break;case"callback":xa=j_(ea,ta,it,Ra);break;case"see":xa=Gl(ea,ta,it,Ra);break;default:xa=Bo(ea,ta,it,Ra);break}return xa}function nn(it,ea,ta,Ra){return Ra||(ta+=ea-it),On(ta,Ra.slice(ta))}function On(it,ea){var ta=bn(),Ra=[],xa=[],xi,Co=0,ks=!0,Ls;function Fl(rp){Ls||(Ls=it),Ra.push(rp),it+=rp.length}ea!==void 0&&(ea!==""&&Fl(ea),Co=1);var As=Be();e:for(;;){switch(As){case 4:Co=0,Ra.push(u.getTokenText()),it=0;break;case 59:if(Co===3||Co===2&&(!ks||br(Gr))){Ra.push(u.getTokenText());break}u.setTextPos(u.getTextPos()-1);case 1:break e;case 5:if(Co===2||Co===3)Fl(u.getTokenText());else{var of=u.getTokenText();Ls!==void 0&&it+of.length>Ls&&Ra.push(of.slice(Ls-it)),it+=of.length}break;case 18:Co=2;var Ff=u.getStartPos(),kp=u.getTextPos()-1,bc=Et(kp);bc?(xa.push(En(A.createJSDocText(Ra.join("")),xi??ta,Ff)),xa.push(bc),Ra=[],xi=u.getTextPos()):Fl(u.getTokenText());break;case 61:Co===3?Co=2:Co=3,Fl(u.getTokenText());break;case 41:if(Co===0){Co=1,it+=1;break}default:Co!==3&&(Co=2),Fl(u.getTokenText());break}ks=Be()===5,As=Er()}if(Ll(Ra),_d(Ra),xa.length)return Ra.length&&xa.push(En(A.createJSDocText(Ra.join("")),xi??ta)),jr(xa,ta,u.getTextPos());if(Ra.length)return Ra.join("")}function Gr(){var it=Er();return it===5||it===4}function Et(it){if(Br(ba)){Er(),d();for(var ea=e.tokenIsIdentifierOrKeyword(Be())?Ft(!0):void 0,ta=[];Be()!==19&&Be()!==4&&Be()!==1;)ta.push(u.getTokenText()),Er();return En(A.createJSDocLink(ea,ta.join("")),it,u.getTextPos())}}function ba(){return V(),Be()===18&&Er()===59&&e.tokenIsIdentifierOrKeyword(Er())&&u.getTokenValue()==="link"}function Bo(it,ea,ta,Ra){return En(A.createJSDocUnknownTag(ea,nn(it,bn(),ta,Ra)),it)}function Xo(it){it&&(es?es.push(it):(es=[it],ss=it.pos),ls=it.end)}function af(){return V(),Be()===18?Fn():void 0}function Fu(){var it=yd(22);it&&d();var ea=yd(61),ta=Wg();return ea&&Sa(61),it&&(d(),Ut(62)&&os(),cr(23)),{name:ta,isBracketed:it}}function gd(it){switch(it.kind){case 145:return!0;case 179:return gd(it.elementType);default:return e.isTypeReferenceNode(it)&&e.isIdentifier(it.typeName)&&it.typeName.escapedText==="Object"&&!it.typeArguments}}function ep(it,ea,ta,Ra){var xa=af(),xi=!xa;V();var Co=Fu(),ks=Co.name,Ls=Co.isBracketed,Fl=V();xi&&!br(ba)&&(xa=af());var As=nn(it,bn(),Ra,Fl),of=ta!==4&&Bu(xa,ks,ta,Ra);of&&(xa=of,xi=!0);var Ff=ta===1?A.createJSDocPropertyTag(ea,ks,Ls,xa,xi,As):A.createJSDocParameterTag(ea,ks,Ls,xa,xi,As);return En(Ff,it)}function Bu(it,ea,ta,Ra){if(it&&gd(it.type)){for(var xa=bn(),xi=void 0,Co=void 0;xi=Br(function(){return Km(ta,Ra,ea)});)(xi.kind===330||xi.kind===337)&&(Co=e.append(Co,xi));if(Co){var ks=En(A.createJSDocTypeLiteral(Co,it.type.kind===179),xa);return En(A.createJSDocTypeExpression(ks),xa)}}}function Fg(it,ea,ta,Ra){e.some(es,e.isJSDocReturnTag)&&Cr(ea.pos,u.getTokenPos(),e.Diagnostics._0_tag_already_specified,ea.escapedText);var xa=af();return En(A.createJSDocReturnTag(ea,xa,nn(it,bn(),ta,Ra)),it)}function gm(it,ea,ta,Ra){e.some(es,e.isJSDocTypeTag)&&Cr(ea.pos,u.getTokenPos(),e.Diagnostics._0_tag_already_specified,ea.escapedText);var xa=Fn(!0),xi=ta!==void 0&&Ra!==void 0?nn(it,bn(),ta,Ra):void 0;return En(A.createJSDocTypeTag(ea,xa,xi),it)}function Gl(it,ea,ta,Ra){var xa=br(function(){return Er()===59&&e.tokenIsIdentifierOrKeyword(Er())&&u.getTokenValue()==="link"}),xi=xa?void 0:rr(),Co=ta!==void 0&&Ra!==void 0?nn(it,bn(),ta,Ra):void 0;return En(A.createJSDocSeeTag(ea,xi,Co),it)}function Bg(it,ea,ta,Ra){var xa=bn(),xi=Ug(),Co=u.getStartPos(),ks=nn(it,Co,ta,Ra);ks||(Co=u.getStartPos());var Ls=typeof ks!="string"?jr(e.concatenate([En(xi,xa,Co)],ks),xa):xi.text+ks;return En(A.createJSDocAuthorTag(ea,Ls),it)}function Ug(){for(var it=[],ea=!1,ta=u.getToken();ta!==1&&ta!==4;){if(ta===29)ea=!0;else{if(ta===59&&!ea)break;if(ta===31&&ea){it.push(u.getTokenText()),u.setTextPos(u.getTokenPos()+1);break}}it.push(u.getTokenText()),ta=Er()}return A.createJSDocText(it.join(""))}function V_(it,ea,ta,Ra){var xa=vm();return En(A.createJSDocImplementsTag(ea,xa,nn(it,bn(),ta,Ra)),it)}function np(it,ea,ta,Ra){var xa=vm();return En(A.createJSDocAugmentsTag(ea,xa,nn(it,bn(),ta,Ra)),it)}function vm(){var it=Yr(18),ea=bn(),ta=Vg(),Ra=Yd(),xa=A.createExpressionWithTypeArguments(ta,Ra),xi=En(xa,ea);return it&&cr(19),xi}function Vg(){for(var it=bn(),ea=Ed();Yr(24);){var ta=Ed();ea=En(A.createPropertyAccessExpression(ea,ta),it)}return ea}function Os(it,ea,ta,Ra,xa){return En(ea(ta,nn(it,bn(),Ra,xa)),it)}function W_(it,ea,ta,Ra){var xa=Fn(!0);return d(),En(A.createJSDocThisTag(ea,xa,nn(it,bn(),ta,Ra)),it)}function hm(it,ea,ta,Ra){var xa=Fn(!0);return d(),En(A.createJSDocEnumTag(ea,xa,nn(it,bn(),ta,Ra)),it)}function vd(it,ea,ta,Ra){var xa,xi=af();V();var Co=Op();d();var ks=On(ta),Ls;if(!xi||gd(xi.type)){for(var Fl=void 0,As=void 0,of=void 0,Ff=!1;Fl=Br(function(){return hd(ta)});)if(Ff=!0,Fl.kind===333)if(As){kn(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var kp=e.lastOrUndefined(je);kp&&e.addRelatedInfo(kp,e.createDetachedDiagnostic(X,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}else As=Fl;else of=e.append(of,Fl);if(Ff){var bc=xi&&xi.type.kind===179,rp=A.createJSDocTypeLiteral(of,bc);xi=As&&As.typeExpression&&!gd(As.typeExpression.type)?As.typeExpression:En(rp,it),Ls=xi.end}}Ls=Ls||ks!==void 0?bn():((xa=Co??xi)!==null&&xa!==void 0?xa:ea).end,ks||(ks=nn(it,Ls,ta,Ra));var ul=A.createJSDocTypedefTag(ea,xi,Co,ks);return En(ul,it,Ls)}function Op(it){var ea=u.getTokenPos();if(e.tokenIsIdentifierOrKeyword(Be())){var ta=Ed();if(Yr(24)){var Ra=Op(!0),xa=A.createModuleDeclaration(void 0,void 0,ta,Ra,it?4:void 0);return En(xa,ea)}return it&&(ta.isInJSDocNamespace=!0),ta}}function ym(it){for(var ea=bn(),ta,Ra;ta=Br(function(){return Km(4,it)});)Ra=e.append(Ra,ta);return jr(Ra||[],ea)}function j_(it,ea,ta,Ra){var xa=Op();d();var xi=On(ta),Co=ym(ta),ks=Br(function(){if(yd(59)){var Fl=he(ta);if(Fl&&Fl.kind===331)return Fl}}),Ls=En(A.createJSDocSignature(void 0,Co,ks),it);return xi||(xi=nn(it,bn(),ta,Ra)),En(A.createJSDocCallbackTag(ea,Ls,xa,xi),it)}function H_(it,ea){for(;!e.isIdentifier(it)||!e.isIdentifier(ea);)if(!e.isIdentifier(it)&&!e.isIdentifier(ea)&&it.right.escapedText===ea.right.escapedText)it=it.left,ea=ea.left;else return!1;return it.escapedText===ea.escapedText}function hd(it){return Km(1,it)}function Km(it,ea,ta){for(var Ra=!0,xa=!1;;)switch(Er()){case 59:if(Ra){var xi=po(it,ea);return xi&&(xi.kind===330||xi.kind===337)&&it!==4&&ta&&(e.isIdentifier(xi.name)||!H_(ta,xi.name.left))?!1:xi}xa=!1;break;case 4:Ra=!0,xa=!1;break;case 41:xa&&(Ra=!1),xa=!0;break;case 78:Ra=!1;break;case 1:return!1}}function po(it,ea){e.Debug.assert(Be()===59);var ta=u.getStartPos();Er();var Ra=Ed();d();var xa;switch(Ra.escapedText){case"type":return it===1&&gm(ta,Ra);case"prop":case"property":xa=1;break;case"arg":case"argument":case"param":xa=6;break;default:return!1}return it&xa?ep(ta,Ra,it,ea):!1}function J_(){var it=bn(),ea=Ed(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(ea))return En(A.createTypeParameterDeclaration(ea,void 0,void 0),it)}function Xp(){var it=bn(),ea=[];do{d();var ta=J_();ta!==void 0&&ea.push(ta),V()}while(yd(27));return jr(ea,it)}function zm(it,ea,ta,Ra){var xa=Be()===18?Fn():void 0,xi=Xp();return En(A.createJSDocTemplateTag(ea,xa,xi,nn(it,bn(),ta,Ra)),it)}function yd(it){return Be()===it?(Er(),!0):!1}function Wg(){var it=Ed();for(Yr(22)&&cr(23);Yr(24);){var ea=Ed();Yr(22)&&cr(23),it=Da(it,ea)}return it}function Ed(it){if(!e.tokenIsIdentifierOrKeyword(Be()))return tr(78,!it,it||e.Diagnostics.Identifier_expected);Ce++;var ea=u.getTokenPos(),ta=u.getTextPos(),Ra=Be(),xa=gr(u.getTokenValue()),xi=En(A.createIdentifier(xa,void 0,Ra),ea,ta);return Er(),xi}}})(fc=_.JSDocParser||(_.JSDocParser={}))})(M||(M={}));var O;(function(_){function u(ve,ke,Ie,Je){if(Je=Je||e.Debug.shouldAssert(2),A(ve,ke,Ie,Je),e.textChangeRangeIsUnchanged(Ie))return ve;if(ve.statements.length===0)return M.parseSourceFile(ve.fileName,ke,ve.languageVersion,void 0,!0,ve.scriptKind);var je=ve;e.Debug.assert(!je.hasBeenIncrementallyParsed),je.hasBeenIncrementallyParsed=!0,M.fixupParentReferences(je);var fn=ve.text,ze=X(ve),Ve=ge(ve,Ie);A(ve,ke,Ve,Je),e.Debug.assert(Ve.span.start<=Ie.span.start),e.Debug.assert(e.textSpanEnd(Ve.span)===e.textSpanEnd(Ie.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(Ve))===e.textSpanEnd(e.textChangeRangeNewSpan(Ie)));var Ne=e.textChangeRangeNewSpan(Ve).length-Ve.span.length;W(je,Ve.span.start,e.textSpanEnd(Ve.span),e.textSpanEnd(e.textChangeRangeNewSpan(Ve)),Ne,fn,ke,Je);var be=M.parseSourceFile(ve.fileName,ke,ve.languageVersion,ze,!0,ve.scriptKind);return be.commentDirectives=b(ve.commentDirectives,be.commentDirectives,Ve.span.start,e.textSpanEnd(Ve.span),Ne,fn,ke,Je),be}_.updateSourceFile=u;function b(ve,ke,Ie,Je,je,fn,ze,Ve){if(!ve)return ke;for(var Ne,be=!1,de=0,Ce=ve;deJe){Fe();var tn={range:{pos:on.pos+je,end:on.end+je},type:Te};Ne=e.append(Ne,tn),Ve&&e.Debug.assert(fn.substring(on.pos,on.end)===ze.substring(tn.range.pos,tn.range.end))}}return Fe(),Ne;function Fe(){be||(be=!0,Ne?ke&&Ne.push.apply(Ne,ke):Ne=ke)}}function w(ve,ke,Ie,Je,je,fn){ke?Ve(ve):ze(ve);return;function ze(Ne){var be="";if(fn&&ee(Ne)&&(be=Je.substring(Ne.pos,Ne.end)),Ne._children&&(Ne._children=void 0),e.setTextRangePosEnd(Ne,Ne.pos+Ie,Ne.end+Ie),fn&&ee(Ne)&&e.Debug.assert(be===je.substring(Ne.pos,Ne.end)),z(Ne,ze,Ve),e.hasJSDocNodes(Ne))for(var de=0,Ce=Ne.jsDoc;de=ke,"Adjusting an element that was entirely before the change range"),e.Debug.assert(ve.pos<=Ie,"Adjusting an element that was entirely after the change range"),e.Debug.assert(ve.pos<=ve.end);var fn=Math.min(ve.pos,Je),ze=ve.end>=Ie?ve.end+je:Math.min(ve.end,Je);e.Debug.assert(fn<=ze),ve.parent&&(e.Debug.assertGreaterThanOrEqual(fn,ve.parent.pos),e.Debug.assertLessThanOrEqual(ze,ve.parent.end)),e.setTextRangePosEnd(ve,fn,ze)}function ie(ve,ke){if(ke){var Ie=ve.pos,Je=function(Ve){e.Debug.assert(Ve.pos>=Ie),Ie=Ve.end};if(e.hasJSDocNodes(ve))for(var je=0,fn=ve.jsDoc;jeIe){w(de,!1,je,fn,ze,Ve);return}var Ce=de.end;if(Ce>=ke){if(de.intersectsChange=!0,de._children=void 0,le(de,ke,Ie,Je,je),z(de,Ne,be),e.hasJSDocNodes(de))for(var ye=0,on=de.jsDoc;yeIe){w(de,!0,je,fn,ze,Ve);return}var Ce=de.end;if(Ce>=ke){de.intersectsChange=!0,de._children=void 0,le(de,ke,Ie,Je,je);for(var ye=0,on=de;ye0&&je<=Ie;je++){var fn=fe(ve,Je);e.Debug.assert(fn.pos<=Je);var ze=fn.pos;Je=Math.max(0,ze-1)}var Ve=e.createTextSpanFromBounds(Je,e.textSpanEnd(ke.span)),Ne=ke.newLength+(ke.span.start-Je);return e.createTextChangeRange(Ve,Ne)}function fe(ve,ke){var Ie=ve,Je;if(z(ve,ze),Je){var je=fn(Je);je.pos>Ie.pos&&(Ie=je)}return Ie;function fn(Ve){for(;;){var Ne=e.getLastChild(Ve);if(Ne)Ve=Ne;else return Ve}}function ze(Ve){if(!e.nodeIsMissing(Ve))if(Ve.pos<=ke){if(Ve.pos>=Ie.pos&&(Ie=Ve),keke),!0}}function A(ve,ke,Ie,Je){var je=ve.text;if(Ie&&(e.Debug.assert(je.length-Ie.span.length+Ie.newLength===ke.length),Je||e.Debug.shouldAssert(3))){var fn=je.substr(0,Ie.span.start),ze=ke.substr(0,Ie.span.start);e.Debug.assert(fn===ze);var Ve=je.substring(e.textSpanEnd(Ie.span),je.length),Ne=ke.substring(e.textSpanEnd(e.textChangeRangeNewSpan(Ie)),ke.length);e.Debug.assert(Ve===Ne)}}function X(ve){var ke=ve.statements,Ie=0;e.Debug.assert(Ie=be.pos&&ze=be.pos&&ze_.checkJsDirective.pos)&&(_.checkJsDirective={enabled:w==="ts-check",end:A.range.end,pos:A.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.processPragmasIntoFields=Z;var B=new e.Map;function U(_){if(B.has(_))return B.get(_);var u=new RegExp("(\\s"+_+`\\s*=\\s*)('|")(.+?)\\2`,"im");return B.set(_,u),u}var K=/^\/\/\/\s*<(\S+)\s.*?\/>/im,T=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function G(_,u,b){var w=u.kind===2&&K.exec(b);if(w){var ee=w[1].toLowerCase(),le=e.commentPragmas[ee];if(!le||!(le.kind&1))return;if(le.args){for(var ie={},W=0,ge=le.args;W=cr.length)break;var Ut=Yr;if(cr.charCodeAt(Ut)===34){for(Yr++;Yr32;)Yr++;Vt.push(cr.substring(Ut,Yr))}}Br(Vt)}}e.parseCommandLineWorker=j;function Y(Ln,jn,ar,dr,Rr,qr){if(dr.isTSConfigOnly){var br=Ln[jn];br==="null"?(Rr[dr.name]=void 0,jn++):dr.type==="boolean"?br==="false"?(Rr[dr.name]=Tn(dr,!1,qr),jn++):(br==="true"&&jn++,qr.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,dr.name))):(qr.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,dr.name)),br&&!e.startsWith(br,"-")&&jn++)}else if(!Ln[jn]&&dr.type!=="boolean"&&qr.push(e.createCompilerDiagnostic(ar.optionTypeMismatchDiagnostic,dr.name,ke(dr))),Ln[jn]!=="null")switch(dr.type){case"number":Rr[dr.name]=Tn(dr,parseInt(Ln[jn]),qr),jn++;break;case"boolean":var br=Ln[jn];Rr[dr.name]=Tn(dr,br!=="false",qr),(br==="false"||br==="true")&&jn++;break;case"string":Rr[dr.name]=Tn(dr,Ln[jn]||"",qr),jn++;break;case"list":var Br=E(dr,Ln[jn],qr);Rr[dr.name]=Br||[],Br&&jn++;break;default:Rr[dr.name]=ue(dr,Ln[jn],qr),jn++;break}else Rr[dr.name]=void 0,jn++;return jn}e.compilerOptionsDidYouMeanDiagnostics={alternateMode:c,getOptionsNameMap:D,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 L(Ln,jn){return j(e.compilerOptionsDidYouMeanDiagnostics,Ln,jn)}e.parseCommandLine=L;function k(Ln,jn){return h(D,Ln,jn)}e.getOptionFromName=k;function h(Ln,jn,ar){ar===void 0&&(ar=!1),jn=jn.toLowerCase();var dr=Ln(),Rr=dr.optionsNameMap,qr=dr.shortOptionNames;if(ar){var br=qr.get(jn);br!==void 0&&(jn=br)}return Rr.get(jn)}var M;function O(){return M||(M=m(e.buildOpts))}var H={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:D},$={alternateMode:H,getOptionsNameMap:O,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 Z(Ln){var jn=j($,Ln),ar=jn.options,dr=jn.watchOptions,Rr=jn.fileNames,qr=jn.errors,br=ar;return Rr.length===0&&Rr.push("."),br.clean&&br.force&&qr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),br.clean&&br.verbose&&qr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),br.clean&&br.watch&&qr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),br.watch&&br.dry&&qr.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:br,watchOptions:dr,projects:Rr,errors:qr}}e.parseBuildCommand=Z;function B(Ln){var jn=e.createCompilerDiagnostic.apply(void 0,arguments);return jn.messageText}e.getDiagnosticText=B;function U(Ln,jn,ar,dr,Rr,qr){var br=v(Ln,function(dt){return ar.readFile(dt)});if(!e.isString(br)){ar.onUnRecoverableConfigFileDiagnostic(br);return}var Br=e.parseJsonText(Ln,br),vt=ar.getCurrentDirectory();return Br.path=e.toPath(Ln,vt,e.createGetCanonicalFileName(ar.useCaseSensitiveFileNames)),Br.resolvedPath=Br.path,Br.originalFileName=Br.fileName,Fe(Br,ar,e.getNormalizedAbsolutePath(e.getDirectoryPath(Ln),vt),jn,e.getNormalizedAbsolutePath(Ln,vt),void 0,qr,dr,Rr)}e.getParsedCommandLineOfConfigFile=U;function K(Ln,jn){var ar=v(Ln,jn);return e.isString(ar)?T(Ln,ar):{config:{},error:ar}}e.readConfigFile=K;function T(Ln,jn){var ar=e.parseJsonText(Ln,jn);return{config:X(ar,ar.parseDiagnostics,!1,void 0),error:ar.parseDiagnostics.length?ar.parseDiagnostics[0]:void 0}}e.parseConfigFileTextToJson=T;function G(Ln,jn){var ar=v(Ln,jn);return e.isString(ar)?e.parseJsonText(Ln,ar):{fileName:Ln,parseDiagnostics:[ar]}}e.readJsonConfigFile=G;function v(Ln,jn){var ar;try{ar=jn(Ln)}catch(dr){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,Ln,dr.message)}return ar===void 0?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,Ln):ar}e.tryReadFile=v;function R(Ln){return e.arrayToMap(Ln,C)}var F={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1},_;function u(){return _||(_=m(e.optionsForWatch))}var b={getOptionsNameMap:u,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},w;function ee(){return w||(w=R(e.optionDeclarations))}var le;function ie(){return le||(le=R(e.optionsForWatch))}var W;function ge(){return W||(W=R(e.typeAcquisitionDeclarations))}var fe;function A(){return fe===void 0&&(fe={name:void 0,type:"object",elementOptions:R([{name:"compilerOptions",type:"object",elementOptions:ee(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:ie(),extraKeyDiagnostics:b},{name:"typingOptions",type:"object",elementOptions:ge(),extraKeyDiagnostics:F},{name:"typeAcquisition",type:"object",elementOptions:ge(),extraKeyDiagnostics:F},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),fe}function X(Ln,jn,ar,dr){var Rr,qr=(Rr=Ln.statements[0])===null||Rr===void 0?void 0:Rr.expression,br=ar?A():void 0;if(qr&&qr.kind!==201){if(jn.push(e.createDiagnosticForNodeInSourceFile(Ln,qr,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,e.getBaseFileName(Ln.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(qr)){var Br=e.find(qr.elements,e.isObjectLiteralExpression);if(Br)return ve(Ln,Br,jn,!0,br,dr)}return{}}return ve(Ln,qr,jn,!0,br,dr)}function re(Ln,jn){var ar;return ve(Ln,(ar=Ln.statements[0])===null||ar===void 0?void 0:ar.expression,jn,!0,void 0,void 0)}e.convertToObject=re;function ve(Ln,jn,ar,dr,Rr,qr){if(!jn)return dr?{}:void 0;return dt(jn,Rr);function br(Vt){return Rr&&Rr.elementOptions===Vt}function Br(Vt,Yr,Ut,ka){for(var ma=dr?{}:void 0,Sa=function(Kr){if(Kr.kind!==289)return ar.push(e.createDiagnosticForNodeInSourceFile(Ln,Kr,e.Diagnostics.Property_assignment_expected)),"continue";Kr.questionToken&&ar.push(e.createDiagnosticForNodeInSourceFile(Ln,Kr.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),cr(Kr.name)||ar.push(e.createDiagnosticForNodeInSourceFile(Ln,Kr.name,e.Diagnostics.String_literal_with_double_quotes_expected));var jr=e.isComputedNonLiteralName(Kr.name)?void 0:e.getTextOfPropertyName(Kr.name),En=jr&&e.unescapeLeadingUnderscores(jr),tr=En&&Yr?Yr.get(En):void 0;En&&Ut&&!tr&&(Yr?ar.push(I(En,Ut,function(mt,ft,Dt){return e.createDiagnosticForNodeInSourceFile(Ln,Kr.name,mt,ft,Dt)})):ar.push(e.createDiagnosticForNodeInSourceFile(Ln,Kr.name,Ut.unknownOptionDiagnostic,En)));var gr=dt(Kr.initializer,tr);if(typeof En<"u"&&(dr&&(ma[En]=gr),qr&&(ka||br(Yr)))){var Or=Ie(tr,gr);ka?Or&&qr.onSetValidOptionKeyValueInParent(ka,tr,gr):br(Yr)&&(Or?qr.onSetValidOptionKeyValueInRoot(En,Kr.name,gr,Kr.initializer):tr||qr.onSetUnknownOptionKeyValueInRoot(En,Kr.name,gr,Kr.initializer))}},qt=0,ga=Vt.properties;qt=0)return br.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,wr(wr([],qr),[dt]).join(" -> "))),{raw:Ln||re(jn,br)};var cr=Ln?J(Ln,ar,dr,Rr,br):te(jn,ar,dr,Rr,br);if(!((vt=cr.options)===null||vt===void 0)&&vt.paths&&(cr.options.pathsBasePath=dr),cr.extendedConfigPath){qr=qr.concat([dt]);var Vt=xe(jn,cr.extendedConfigPath,ar,qr,br,Br);if(Vt&&Ee(Vt)){var Yr=Vt.raw,Ut=cr.raw,ka,ma=function(Sa){!Ut[Sa]&&Yr[Sa]&&(Ut[Sa]=e.map(Yr[Sa],function(qt){return e.isRootedDiskPath(qt)?qt:e.combinePaths(ka||(ka=e.convertToRelativePath(e.getDirectoryPath(cr.extendedConfigPath),dr,e.createGetCanonicalFileName(ar.useCaseSensitiveFileNames))),qt)}))};ma("include"),ma("exclude"),ma("files"),Ut.compileOnSave===void 0&&(Ut.compileOnSave=Yr.compileOnSave),cr.options=e.assign({},Vt.options,cr.options),cr.watchOptions=cr.watchOptions&&Vt.watchOptions?e.assign({},Vt.watchOptions,cr.watchOptions):cr.watchOptions||Vt.watchOptions}}return cr}function J(Ln,jn,ar,dr,Rr){e.hasProperty(Ln,"excludes")&&Rr.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var qr=Sn(Ln.compilerOptions,ar,Rr,dr),br=wn(Ln.typeAcquisition||Ln.typingOptions,ar,Rr,dr),Br=qn(Ln.watchOptions,ar,Rr);Ln.compileOnSave=P(Ln,ar,Rr);var vt;if(Ln.extends)if(!e.isString(Ln.extends))Rr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));else{var dt=dr?vn(dr,ar):ar;vt=me(Ln.extends,jn,dt,Rr,e.createCompilerDiagnostic)}return{raw:Ln,options:qr,watchOptions:Br,typeAcquisition:br,extendedConfigPath:vt}}function te(Ln,jn,ar,dr,Rr){var qr=an(dr),br,Br,vt,dt,cr={onSetValidOptionKeyValueInParent:function(Yr,Ut,ka){var ma;switch(Yr){case"compilerOptions":ma=qr;break;case"watchOptions":ma=vt||(vt={});break;case"typeAcquisition":ma=br||(br=Xn(dr));break;case"typingOptions":ma=Br||(Br=Xn(dr));break;default:e.Debug.fail("Unknown option")}ma[Ut.name]=Me(Ut,ar,ka)},onSetValidOptionKeyValueInRoot:function(Yr,Ut,ka,ma){switch(Yr){case"extends":var Sa=dr?vn(dr,ar):ar;dt=me(ka,jn,Sa,Rr,function(qt,ga){return e.createDiagnosticForNodeInSourceFile(Ln,ma,qt,ga)});return}},onSetUnknownOptionKeyValueInRoot:function(Yr,Ut,ka,ma){Yr==="excludes"&&Rr.push(e.createDiagnosticForNodeInSourceFile(Ln,Ut,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},Vt=X(Ln,Rr,!0,cr);return br||(Br?br=Br.enableAutoDiscovery!==void 0?{enable:Br.enableAutoDiscovery,include:Br.include,exclude:Br.exclude}:Br:br=Xn(dr)),{raw:Vt,options:qr,watchOptions:vt,typeAcquisition:br,extendedConfigPath:dt}}function me(Ln,jn,ar,dr,Rr){if(Ln=e.normalizeSlashes(Ln),e.isRootedDiskPath(Ln)||e.startsWith(Ln,"./")||e.startsWith(Ln,"../")){var qr=e.getNormalizedAbsolutePath(Ln,ar);if(!jn.fileExists(qr)&&!e.endsWith(qr,".json")&&(qr=qr+".json",!jn.fileExists(qr))){dr.push(Rr(e.Diagnostics.File_0_not_found,Ln));return}return qr}var br=e.nodeModuleNameResolver(Ln,e.combinePaths(ar,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},jn,void 0,void 0,!0);if(br.resolvedModule)return br.resolvedModule.resolvedFileName;dr.push(Rr(e.Diagnostics.File_0_not_found,Ln))}function xe(Ln,jn,ar,dr,Rr,qr){var br,Br=ar.useCaseSensitiveFileNames?jn:e.toFileNameLowerCase(jn),vt,dt,cr;if(qr&&(vt=qr.get(Br))?(dt=vt.extendedResult,cr=vt.extendedConfig):(dt=G(jn,function(Vt){return ar.readFile(Vt)}),dt.parseDiagnostics.length||(cr=oe(void 0,dt,ar,e.getDirectoryPath(jn),e.getBaseFileName(jn),dr,Rr,qr)),qr&&qr.set(Br,{extendedResult:dt,extendedConfig:cr})),Ln&&(Ln.extendedSourceFiles=[dt.fileName],dt.extendedSourceFiles&&(br=Ln.extendedSourceFiles).push.apply(br,dt.extendedSourceFiles)),dt.parseDiagnostics.length){Rr.push.apply(Rr,dt.parseDiagnostics);return}return cr}function P(Ln,jn,ar){if(!e.hasProperty(Ln,e.compileOnSaveCommandLineOption.name))return!1;var dr=Vr(e.compileOnSaveCommandLineOption,Ln.compileOnSave,jn,ar);return typeof dr=="boolean"&&dr}function Se(Ln,jn,ar){var dr=[],Rr=Sn(Ln,jn,dr,ar);return{options:Rr,errors:dr}}e.convertCompilerOptionsFromJson=Se;function Ye(Ln,jn,ar){var dr=[],Rr=wn(Ln,jn,dr,ar);return{options:Rr,errors:dr}}e.convertTypeAcquisitionFromJson=Ye;function an(Ln){var jn=Ln&&e.getBaseFileName(Ln)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return jn}function Sn(Ln,jn,ar,dr){var Rr=an(dr);return yr(ee(),Ln,jn,Rr,e.compilerOptionsDidYouMeanDiagnostics,ar),dr&&(Rr.configFilePath=e.normalizeSlashes(dr)),Rr}function Xn(Ln){return{enable:!!Ln&&e.getBaseFileName(Ln)==="jsconfig.json",include:[],exclude:[]}}function wn(Ln,jn,ar,dr){var Rr=Xn(dr),qr=x(Ln);return yr(ge(),qr,jn,Rr,F,ar),Rr}function qn(Ln,jn,ar){return yr(ie(),Ln,jn,void 0,b,ar)}function yr(Ln,jn,ar,dr,Rr,qr){if(jn){for(var br in jn){var Br=Ln.get(br);Br?(dr||(dr={}))[Br.name]=Vr(Br,jn[br],ar,qr):qr.push(I(br,Rr,e.createCompilerDiagnostic))}return dr}}function Vr(Ln,jn,ar,dr){if(Ie(Ln,jn)){var Rr=Ln.type;if(Rr==="list"&&e.isArray(jn))return Vn(Ln,jn,ar,dr);if(!e.isString(Rr))return Nn(Ln,jn,dr);var qr=Tn(Ln,jn,dr);return rn(qr)?qr:We(Ln,ar,qr)}else dr.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,Ln.name,ke(Ln)))}e.convertJsonOption=Vr;function Me(Ln,jn,ar){if(!rn(ar)){if(Ln.type==="list"){var dr=Ln;return dr.element.isFilePath||!e.isString(dr.element.type)?e.filter(e.map(ar,function(Rr){return Me(dr.element,jn,Rr)}),function(Rr){return!!Rr}):ar}else if(!e.isString(Ln.type))return Ln.type.get(e.isString(ar)?ar.toLowerCase():ar);return We(Ln,jn,ar)}}function We(Ln,jn,ar){return Ln.isFilePath&&(ar=e.getNormalizedAbsolutePath(ar,jn),ar===""&&(ar=".")),ar}function Tn(Ln,jn,ar){var dr;if(!rn(jn)){var Rr=(dr=Ln.extraValidation)===null||dr===void 0?void 0:dr.call(Ln,jn);if(!Rr)return jn;ar.push(e.createCompilerDiagnostic.apply(void 0,Rr))}}function Nn(Ln,jn,ar){if(!rn(jn)){var dr=jn.toLowerCase(),Rr=Ln.type.get(dr);if(Rr!==void 0)return Tn(Ln,Rr,ar);ar.push(se(Ln))}}function Vn(Ln,jn,ar,dr){return e.filter(e.map(jn,function(Rr){return Vr(Ln.element,Rr,ar,dr)}),function(Rr){return!!Rr})}function Hn(Ln){return typeof Ln.trim=="function"?Ln.trim():Ln.replace(/^[\s]+|[\s]+$/g,"")}var kr=/(^|\/)\*\*\/?$/,kn=/(^|\/)\*\*\/(.*\/)?\.\.($|\/)/,Sr=/\/[^/]*?[*?][^/]*\//,Cr=/^[^*?]*(?=\/[^/]*[*?])/;function Qe(Ln,jn,ar,dr,Rr){Rr===void 0&&(Rr=e.emptyArray),jn=e.normalizePath(jn);var qr=e.createGetCanonicalFileName(dr.useCaseSensitiveFileNames),br=new e.Map,Br=new e.Map,vt=new e.Map,dt=Ln.validatedFilesSpec,cr=Ln.validatedIncludeSpecs,Vt=Ln.validatedExcludeSpecs,Yr=e.getSupportedExtensions(ar,Rr),Ut=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(ar,Yr);if(dt)for(var ka=0,ma=dt;ka0)for(var Mr=function(gr){if(e.fileExtensionIs(gr,".json")){if(!ga){var Or=cr.filter(function(Wa){return e.endsWith(Wa,".json")}),mt=e.map(e.getRegularExpressionsForWildcards(Or,jn,"files"),function(Wa){return"^"+Wa+"$"});ga=mt?mt.map(function(Wa){return e.getRegexFromPattern(Wa,dr.useCaseSensitiveFileNames)}):e.emptyArray}var ft=e.findIndex(ga,function(Wa){return Wa.test(gr)});if(ft!==-1){var Dt=qr(gr);!br.has(Dt)&&!vt.has(Dt)&&vt.set(Dt,gr)}return"continue"}if(Er(gr,br,Br,Yr,qr))return"continue";Pr(gr,Br,Yr,qr);var sa=qr(gr);!br.has(sa)&&!Br.has(sa)&&Br.set(sa,gr)},Kr=0,jr=dr.readDirectory(jn,Ut,Vt,cr,void 0);Kr0);var P={sourceFile:te.configFile,commandLine:{options:te}};me.setOwnMap(me.getOrCreateMapOfCacheRedirects(P)),xe==null||xe.setOwnMap(xe.getOrCreateMapOfCacheRedirects(P))}me.setOwnOptions(te),xe==null||xe.setOwnOptions(te)}}function U(te,me,xe){return{getOrCreateCacheForDirectory:Ye,clear:P,update:Se};function P(){xe.clear()}function Se(an){B(an,xe)}function Ye(an,Sn){var Xn=e.toPath(an,te,me);return Z(xe,Sn,Xn,function(){return new e.Map})}}function K(te,me,xe,P,Se){var Ye=U(te,me,P||(P=H(xe)));Se||(Se=H(xe));var an=$(te,me);return Nt(Nt(Nt({},an),Ye),{getOrCreateCacheForModuleName:wn,clear:Sn,update:Xn,getPackageJsonInfoCache:function(){return an}});function Sn(){Ye.clear(),Se.clear(),an.clear()}function Xn(yr){B(yr,P,Se)}function wn(yr,Vr){return e.Debug.assert(!e.isExternalModuleNameRelative(yr)),Z(Se,Vr,yr,qn)}function qn(){var yr=new e.Map;return{get:Vr,set:Me};function Vr(Tn){return yr.get(e.toPath(Tn,te,me))}function Me(Tn,Nn){var Vn=e.toPath(Tn,te,me);if(!yr.has(Vn)){yr.set(Vn,Nn);for(var Hn=Nn.resolvedModule&&(Nn.resolvedModule.originalPath||Nn.resolvedModule.resolvedFileName),kr=Hn&&We(Vn,Hn),kn=Vn;kn!==kr;){var Sr=e.getDirectoryPath(kn);if(Sr===kn||yr.has(Sr))break;yr.set(Sr,Nn),kn=Sr}}}function We(Tn,Nn){for(var Vn=e.toPath(e.getDirectoryPath(Nn),te,me),Hn=0,kr=Math.min(Tn.length,Vn.length);HnL&&(L=O),L===1)return L}return L}break;case 258:{var H=0;return e.forEachChild(I,function($){var Z=p($,j);switch(Z){case 0:return;case 2:H=2;return;case 1:return H=1,!0;default:e.Debug.assertNever(Z)}}),H}case 257:return a(I,j);case 78:if(I.isInJSDocNamespace)return 0}return 1}function t(I,j){for(var Y=I.propertyName||I.name,L=I.parent;L;){if(e.isBlock(L)||e.isModuleBlock(L)||e.isSourceFile(L)){for(var k=L.statements,h=void 0,M=0,O=k;Mh)&&(h=$),h===1)return h}}if(h!==void 0)return h}L=L.parent}return 1}var m;(function(I){I[I.None=0]="None",I[I.IsContainer=1]="IsContainer",I[I.IsBlockScopedContainer=2]="IsBlockScopedContainer",I[I.IsControlFlowContainer=4]="IsControlFlowContainer",I[I.IsFunctionLike=8]="IsFunctionLike",I[I.IsFunctionExpression=16]="IsFunctionExpression",I[I.HasLocals=32]="HasLocals",I[I.IsInterface=64]="IsInterface",I[I.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod"})(m||(m={}));function N(I){return e.Debug.attachFlowNodeDebugInfo(I),I}var D=x();function c(I,j){e.tracing===null||e.tracing===void 0||e.tracing.push("bind","bindSourceFile",{path:I.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+I.fileName),D(I,j),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=c;function x(){var I,j,Y,L,k,h,M,O,H,$,Z,B,U,K,T,G,v,R,F,_,u,b,w=!1,ee=0,le,ie,W={flags:1},ge={flags:1},fe=Er();function A(ae,An,ir,Ur,mn){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(ae)||I,ae,An,ir,Ur,mn)}function X(ae,An){I=ae,j=An,Y=e.getEmitScriptTarget(j),b=re(I,An),ie=new e.Set,ee=0,le=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(W),e.Debug.attachFlowNodeDebugInfo(ge),I.locals||(Xt(I),I.symbolCount=ee,I.classifiableNames=ie,mt()),I=void 0,j=void 0,Y=void 0,L=void 0,k=void 0,h=void 0,M=void 0,O=void 0,H=void 0,$=!1,Z=void 0,B=void 0,U=void 0,K=void 0,T=void 0,G=void 0,v=void 0,F=void 0,_=!1,w=!1,u=0}return X;function re(ae,An){return e.getStrictOptionValue(An,"alwaysStrict")&&!ae.isDeclarationFile?!0:!!ae.externalModuleIndicator}function ve(ae,An){return ee++,new le(ae,An)}function ke(ae,An,ir){ae.flags|=ir,An.symbol=ae,ae.declarations=e.appendIfUnique(ae.declarations,An),ir&1955&&!ae.exports&&(ae.exports=e.createSymbolTable()),ir&6240&&!ae.members&&(ae.members=e.createSymbolTable()),ae.constEnumOnlyModule&&ae.flags&304&&(ae.constEnumOnlyModule=!1),ir&111551&&e.setValueDeclaration(ae,An)}function Ie(ae){if(ae.kind===267)return ae.isExportEquals?"export=":"default";var An=e.getNameOfDeclaration(ae);if(An){if(e.isAmbientModule(ae)){var ir=e.getTextOfIdentifierOrLiteral(An);return e.isGlobalScopeAugmentation(ae)?"__global":'"'+ir+'"'}if(An.kind===159){var Ur=An.expression;if(e.isStringOrNumericLiteralLike(Ur))return e.escapeLeadingUnderscores(Ur.text);if(e.isSignedNumericLiteral(Ur))return e.tokenToString(Ur.operator)+Ur.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(An)){var mn=e.getContainingClass(ae);if(!mn)return;var wa=mn.symbol;return e.getSymbolNameForPrivateIdentifier(wa,An.escapedText)}return e.isPropertyNameLiteral(An)?e.getEscapedTextOfIdentifierOrLiteral(An):void 0}switch(ae.kind){case 167:return"__constructor";case 175:case 170:case 315:return"__call";case 176:case 171:return"__new";case 172:return"__index";case 268:return"__export";case 298:return"export=";case 217:if(e.getAssignmentDeclarationKind(ae)===2)return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 309:return e.isJSDocConstructSignature(ae)?"__new":"__call";case 161:e.Debug.assert(ae.parent.kind===309,"Impossible parameter parent kind",function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[ae.parent.kind]:ae.parent.kind)+", expected JSDocFunctionType"});var Ba=ae.parent,pa=Ba.parameters.indexOf(ae);return"arg"+pa}}function Je(ae){return e.isNamedDeclaration(ae)?e.declarationNameToString(ae.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(Ie(ae)))}function je(ae,An,ir,Ur,mn,wa){e.Debug.assert(!e.hasDynamicName(ir));var Ba=e.hasSyntacticModifier(ir,512)||e.isExportSpecifier(ir)&&ir.name.escapedText==="default",pa=Ba&&An?"default":Ie(ir),ci;if(pa===void 0)ci=ve(0,"__missing");else if(ci=ae.get(pa),Ur&2885600&&ie.add(pa),!ci)ae.set(pa,ci=ve(0,pa)),wa&&(ci.isReplaceableByMethod=!0);else{if(wa&&!ci.isReplaceableByMethod)return ci;if(ci.flags&mn){if(ci.isReplaceableByMethod)ae.set(pa,ci=ve(0,pa));else if(!(Ur&3&&ci.flags&67108864)){e.isNamedDeclaration(ir)&&e.setParent(ir.name,ir);var Xi=ci.flags&2?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,so=!0;(ci.flags&384||Ur&384)&&(Xi=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,so=!1);var Wo=!1;e.length(ci.declarations)&&(Ba||ci.declarations&&ci.declarations.length&&ir.kind===267&&!ir.isExportEquals)&&(Xi=e.Diagnostics.A_module_cannot_have_multiple_default_exports,so=!1,Wo=!0);var ps=[];e.isTypeAliasDeclaration(ir)&&e.nodeIsMissing(ir.type)&&e.hasSyntacticModifier(ir,1)&&ci.flags&2887656&&ps.push(A(ir,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(ir.name.escapedText)+" }"));var bi=e.getNameOfDeclaration(ir)||ir;e.forEach(ci.declarations,function(dl,ol){var Il=e.getNameOfDeclaration(dl)||dl,rc=A(Il,Xi,so?Je(dl):void 0);I.bindDiagnostics.push(Wo?e.addRelatedInfo(rc,A(bi,ol===0?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):rc),Wo&&ps.push(A(Il,e.Diagnostics.The_first_export_default_is_here))});var xl=A(bi,Xi,so?Je(ir):void 0);I.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,wr([xl],ps))),ci=ve(0,pa)}}}return ke(ci,ir,Ur),ci.parent?e.Debug.assert(ci.parent===An,"Existing symbol parent should match new one"):ci.parent=An,ci}function fn(ae,An,ir){var Ur=!!(e.getCombinedModifierFlags(ae)&1)||ze(ae);if(An&2097152)return ae.kind===271||ae.kind===261&&Ur?je(k.symbol.exports,k.symbol,ae,An,ir):je(k.locals,void 0,ae,An,ir);if(e.isJSDocTypeAlias(ae)&&e.Debug.assert(e.isInJSFile(ae)),!e.isAmbientModule(ae)&&(Ur||k.flags&64)){if(!k.locals||e.hasSyntacticModifier(ae,512)&&!Ie(ae))return je(k.symbol.exports,k.symbol,ae,An,ir);var mn=An&111551?1048576:0,wa=je(k.locals,void 0,ae,mn,ir);return wa.exportSymbol=je(k.symbol.exports,k.symbol,ae,An,ir),ae.localSymbol=wa,wa}else return je(k.locals,void 0,ae,An,ir)}function ze(ae){if(ae.parent&&e.isModuleDeclaration(ae)&&(ae=ae.parent),!e.isJSDocTypeAlias(ae))return!1;if(!e.isJSDocEnumTag(ae)&&ae.fullName)return!0;var An=e.getNameOfDeclaration(ae);return An?!!(e.isPropertyAccessEntityNameExpression(An.parent)&&hi(An.parent)||e.isDeclaration(An.parent)&&e.getCombinedModifierFlags(An.parent)&1):!1}function Ve(ae,An){var ir=k,Ur=h,mn=M;if(An&1?(ae.kind!==210&&(h=k),k=M=ae,An&32&&(k.locals=e.createSymbolTable()),Yr(k)):An&2&&(M=ae,M.locals=void 0),An&4){var wa=Z,Ba=B,pa=U,ci=K,Xi=v,so=F,Wo=_,ps=An&16&&!e.hasSyntacticModifier(ae,256)&&!ae.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(ae);ps||(Z=N({flags:2}),An&144&&(Z.node=ae)),K=ps||ae.kind===167||e.isInJSFile(ae)&&(ae.kind===252||ae.kind===209)?xn():void 0,v=void 0,B=void 0,U=void 0,F=void 0,_=!1,Ce(ae),ae.flags&=-2817,!(Z.flags&1)&&An&8&&e.nodeIsPresent(ae.body)&&(ae.flags|=256,_&&(ae.flags|=512),ae.endFlowNode=Z),ae.kind===298&&(ae.flags|=u,ae.endFlowNode=Z),K&&(Re(K,Z),Z=te(K),(ae.kind===167||e.isInJSFile(ae)&&(ae.kind===252||ae.kind===209))&&(ae.returnFlowNode=Z)),ps||(Z=wa),B=Ba,U=pa,K=ci,v=Xi,F=so,_=Wo}else An&64?($=!1,Ce(ae),ae.flags=$?ae.flags|128:ae.flags&-129):Ce(ae);k=ir,h=Ur,M=mn}function Ne(ae){be(ae,function(An){return An.kind===252?Xt(An):void 0}),be(ae,function(An){return An.kind!==252?Xt(An):void 0})}function be(ae,An){An===void 0&&(An=Xt),ae!==void 0&&e.forEach(ae,An)}function de(ae){e.forEachChild(ae,Xt,be)}function Ce(ae){var An=w;if(w=!1,ur(ae)){de(ae),gi(ae),w=An;return}switch(ae.kind>=233&&ae.kind<=249&&!j.allowUnreachableCode&&(ae.flowNode=Z),ae.kind){case 237:wn(ae);break;case 236:qn(ae);break;case 238:yr(ae);break;case 239:case 240:Vr(ae);break;case 235:Me(ae);break;case 243:case 247:We(ae);break;case 242:case 241:Vn(ae);break;case 248:Hn(ae);break;case 245:kr(ae);break;case 259:kn(ae);break;case 285:Sr(ae);break;case 234:Cr(ae);break;case 246:Bn(ae);break;case 215:Zn(ae);break;case 216:_r(ae);break;case 217:if(e.isDestructuringAssignment(ae)){w=An,zn(ae);return}fe(ae);break;case 211:Pr(ae);break;case 218:tt(ae);break;case 250:Ln(ae);break;case 202:case 203:dt(ae);break;case 204:cr(ae);break;case 226:vt(ae);break;case 335:case 328:case 329:ar(ae);break;case 298:{Ne(ae.statements),Xt(ae.endOfFileToken);break}case 231:case 258:Ne(ae.statements);break;case 199:jn(ae);break;case 201:case 200:case 289:case 221:w=An;default:de(ae);break}gi(ae),w=An}function ye(ae){switch(ae.kind){case 78:case 79:case 107:case 202:case 203:return Te(ae);case 204:return tn(ae);case 208:case 226:return ye(ae.expression);case 217:return rn(ae);case 215:return ae.operator===53&&ye(ae.operand);case 212:return ye(ae.expression)}return!1}function on(ae){return e.isDottedName(ae)||(e.isPropertyAccessExpression(ae)||e.isNonNullExpression(ae)||e.isParenthesizedExpression(ae))&&on(ae.expression)||e.isBinaryExpression(ae)&&ae.operatorToken.kind===27&&on(ae.right)||e.isElementAccessExpression(ae)&&e.isStringOrNumericLiteralLike(ae.argumentExpression)&&on(ae.expression)||e.isAssignmentExpression(ae)&&on(ae.left)}function Te(ae){return on(ae)||e.isOptionalChain(ae)&&Te(ae.expression)}function tn(ae){if(ae.arguments)for(var An=0,ir=ae.arguments;An=116&&ae.originalKeywordKind<=124?I.bindDiagnostics.push(A(ae,Dt(ae),e.declarationNameToString(ae))):ae.originalKeywordKind===130?e.isExternalModule(I)&&e.isInTopLevelContext(ae)?I.bindDiagnostics.push(A(ae,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(ae))):ae.flags&32768&&I.bindDiagnostics.push(A(ae,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(ae))):ae.originalKeywordKind===124&&ae.flags&8192&&I.bindDiagnostics.push(A(ae,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(ae))))}function Dt(ae){return e.getContainingClass(ae)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:I.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 sa(ae){ae.escapedText==="#constructor"&&(I.parseDiagnostics.length||I.bindDiagnostics.push(A(ae,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(ae))))}function Wa(ae){b&&e.isLeftHandSideExpression(ae.left)&&e.isAssignmentOperator(ae.operatorToken.kind)&&Ei(ae,ae.left)}function ii(ae){b&&ae.variableDeclaration&&Ei(ae,ae.variableDeclaration.name)}function ri(ae){if(b&&ae.expression.kind===78){var An=e.getErrorSpanForNode(I,ae.expression);I.bindDiagnostics.push(e.createFileDiagnostic(I,An.start,An.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function mi(ae){return e.isIdentifier(ae)&&(ae.escapedText==="eval"||ae.escapedText==="arguments")}function Ei(ae,An){if(An&&An.kind===78){var ir=An;if(mi(ir)){var Ur=e.getErrorSpanForNode(I,An);I.bindDiagnostics.push(e.createFileDiagnostic(I,Ur.start,Ur.length,_i(ae),e.idText(ir)))}}}function _i(ae){return e.getContainingClass(ae)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:I.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function yi(ae){b&&Ei(ae,ae.name)}function Ni(ae){return e.getContainingClass(ae)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:I.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 ja(ae){if(Y<2&&M.kind!==298&&M.kind!==257&&!e.isFunctionLike(M)){var An=e.getErrorSpanForNode(I,ae);I.bindDiagnostics.push(e.createFileDiagnostic(I,An.start,An.length,Ni(ae)))}}function ui(ae){b&&ae.numericLiteralFlags&32&&I.bindDiagnostics.push(A(ae,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Di(ae){b&&Ei(ae,ae.operand)}function Io(ae){b&&(ae.operator===45||ae.operator===46)&&Ei(ae,ae.operand)}function _o(ae){b&&Zi(ae,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function ro(ae){b&&j.target>=2&&(e.isDeclarationStatement(ae.statement)||e.isVariableStatement(ae.statement))&&Zi(ae.label,e.Diagnostics.A_label_is_not_allowed_here)}function Zi(ae,An,ir,Ur,mn){var wa=e.getSpanOfTokenAtPosition(I,ae.pos);I.bindDiagnostics.push(e.createFileDiagnostic(I,wa.start,wa.length,An,ir,Ur,mn))}function Ao(ae,An,ir){bo(ae,An,An,ir)}function bo(ae,An,ir,Ur){ti(ae,{pos:e.getTokenPosOfNode(An,I),end:ir.end},Ur)}function ti(ae,An,ir){var Ur=e.createFileDiagnostic(I,An.pos,An.end-An.pos,ir);ae?I.bindDiagnostics.push(Ur):I.bindSuggestionDiagnostics=e.append(I.bindSuggestionDiagnostics,Nt(Nt({},Ur),{category:e.DiagnosticCategory.Suggestion}))}function Xt(ae){if(ae){e.setParent(ae,L);var An=b;if(go(ae),ae.kind>157){var ir=L;L=ae;var Ur=Vt(ae);Ur===0?Ce(ae):Ve(ae,Ur),L=ir}else{var ir=L;ae.kind===1&&(L=ae),gi(ae),L=ir}b=An}}function gi(ae){if(e.hasJSDocNodes(ae))if(e.isInJSFile(ae))for(var An=0,ir=ae.jsDoc;An>",0,kn),ri=Kc(void 0,void 0,void 0,e.emptyArray,kn,void 0,0,0),mi=Kc(void 0,void 0,void 0,e.emptyArray,Qe,void 0,0,0),Ei=Kc(void 0,void 0,void 0,e.emptyArray,kn,void 0,0,0),_i=Kc(void 0,void 0,void 0,e.emptyArray,vt,void 0,0,0),yi=pc(Pr,!0),Ni=new e.Map,ja={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},ui=vf(kn,kn,kn),Di=vf(kn,kn,In),Io=vf(Br,kn,Be),_o={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:fI,getGlobalIterableType:uI,getGlobalIterableIteratorType:dI,getGlobalGeneratorType:pI,resolveIterationType:$c,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},ro={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:mI,getGlobalIterableType:YS,getGlobalIterableIteratorType:_I,getGlobalGeneratorType:gI,resolveIterationType:function(n,r){return n},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},Zi,Ao=new e.Map,bo=!1,ti,Xt,gi,Ji,Ui,go,wo,oo,Go,Vo,pr,Ot,Xe,Jn,fr,Zr,Ae,Dn,pe,Q,De,qe,sn,Mn,or,Ir,at,Ft,Da,$a,Za,hi,vo,fs,bs,ds,gs,Zo,ws,Ws,Ts,Gs=new e.Map,Cs=0,xs=0,vs=0,js=!1,Zs=0,He,ur,ae,An=cs(""),ir=cs(0),Ur=cs({negative:!1,base10Value:"0"}),mn=[],wa=[],Ba=[],pa=0,ci=10,Xi=[],so=[],Wo=[],ps=[],bi=[],xl=[],dl=[],ol=[],Il=[],rc=[],tc=[],Kl=[],Dc=[],zl=[],hn=[],Gn=e.createDiagnosticCollection(),vr=e.createDiagnosticCollection(),Qr=new e.Map(e.getEntries({string:Pr,number:tt,bigint:mr,boolean:Rr,symbol:qr,undefined:Be})),ct=_c(),ot,Lt,kt,ya=new e.Map,ni=new e.Map,Yt=new e.Map,fa=new e.Map,li=new e.Map,Ti=new e.Map,To=e.createSymbolTable();return To.set(te.escapedName,te),H6(),Ye;function ce(n){if(n){var r=e.getSourceFileOfNode(n);if(r)if(e.isJsxOpeningFragment(n)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var i=r.pragmas.get("jsxfrag");if(i){var o=e.isArray(i)?i[0]:i;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,on),e.visitNode(r.localJsxFragmentFactory,S),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var s=_T(n);if(s)return r.localJsxFragmentFactory=s,r.localJsxFragmentNamespace=e.getFirstIdentifier(s).escapedText}else{if(r.localJsxNamespace)return r.localJsxNamespace;var f=r.pragmas.get("jsx");if(f){var o=e.isArray(f)?f[0]:f;if(r.localJsxFactory=e.parseIsolatedEntityName(o.arguments.factory,on),e.visitNode(r.localJsxFactory,S),r.localJsxFactory)return r.localJsxNamespace=e.getFirstIdentifier(r.localJsxFactory).escapedText}}}return ot||(ot="React",ye.jsxFactory?(Lt=e.parseIsolatedEntityName(ye.jsxFactory,on),e.visitNode(Lt,S),Lt&&(ot=e.getFirstIdentifier(Lt).escapedText)):ye.reactNamespace&&(ot=e.escapeLeadingUnderscores(ye.reactNamespace))),Lt||(Lt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(ot)),"createElement")),ot;function S(q){return e.setTextRangePosEnd(q,-1,-1),e.visitEachChild(q,S,e.nullTransformationContext)}}function ln(n,r){return uC(n,r),Ee}function pn(n,r,i,o,s,f){var S=n?e.createDiagnosticForNode(n,r,i,o,s,f):e.createCompilerDiagnostic(r,i,o,s,f),q=Gn.lookup(S);return q||(Gn.add(S),S)}function $n(n,r,i,o,s,f,S){var q=cn(r,i,o,s,f,S);return q.skippedOn=n,q}function cn(n,r,i,o,s,f){var S=n?e.createDiagnosticForNode(n,r,i,o,s,f):e.createCompilerDiagnostic(r,i,o,s,f);return Gn.add(S),S}function Ht(n,r){n?Gn.add(r):vr.add(Nt(Nt({},r),{category:e.DiagnosticCategory.Suggestion}))}function $t(n,r,i,o,s,f,S){if(r.pos<0||r.end<0){if(!n)return;var q=e.getSourceFileOfNode(r);Ht(n,"message"in i?e.createFileDiagnostic(q,0,0,i,o,s,f,S):e.createDiagnosticForFileFromMessageChain(q,i));return}Ht(n,"message"in i?e.createDiagnosticForNode(r,i,o,s,f,S):e.createDiagnosticForNodeFromMessageChain(r,i))}function Ia(n,r,i,o,s,f,S){var q=cn(n,i,o,s,f,S);if(r){var _e=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(q,_e)}return q}function Li(n,r){var i=Array.isArray(n)?e.forEach(n,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(n);return i&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),vr.add(r),r}function Mi(n,r,i){var o=e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,i);return Li(r,o)}function lo(n,r,i,o){var s=i?e.createDiagnosticForNode(n,e.Diagnostics.The_signature_0_of_1_is_deprecated,o,i):e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,o);return Li(r,s)}function Bt(n,r,i){je++;var o=new ve(n|33554432,r);return o.checkFlags=i||0,o}function Ki(n){var r=0;return n&2&&(r|=111551),n&1&&(r|=111550),n&4&&(r|=0),n&8&&(r|=900095),n&16&&(r|=110991),n&32&&(r|=899503),n&64&&(r|=788872),n&256&&(r|=899327),n&128&&(r|=899967),n&512&&(r|=110735),n&8192&&(r|=103359),n&32768&&(r|=46015),n&65536&&(r|=78783),n&262144&&(r|=526824),n&524288&&(r|=788968),n&2097152&&(r|=2097152),r}function co(n,r){r.mergeId||(r.mergeId=m,m++),Xi[r.mergeId]=n}function Ro(n){var r=Bt(n.flags,n.escapedName);return r.declarations=n.declarations?n.declarations.slice():[],r.parent=n.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),n.members&&(r.members=new e.Map(n.members)),n.exports&&(r.exports=new e.Map(n.exports)),co(r,n),r}function uo(n,r,i){if(i===void 0&&(i=!1),!(n.flags&Ki(r.flags))||(r.flags|n.flags)&67108864){if(r===n)return n;if(!(n.flags&33554432)){var o=Vi(n);if(o===Hn)return r;n=Ro(o)}r.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!r.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(n,r.valueDeclaration),e.addRange(n.declarations,r.declarations),r.members&&(n.members||(n.members=e.createSymbolTable()),Rl(n.members,r.members,i)),r.exports&&(n.exports||(n.exports=e.createSymbolTable()),Rl(n.exports,r.exports,i)),i||co(n,r)}else if(n.flags&1024)n!==me&&cn(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ga(n));else{var s=!!(n.flags&384||r.flags&384),f=!!(n.flags&2||r.flags&2),S=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,q=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),_e=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),Oe=Ga(r);if(q&&_e&&Zi&&!s&&q!==_e){var Pe=e.comparePaths(q.path,_e.path)===-1?q:_e,Ue=Pe===q?_e:q,en=e.getOrUpdate(Zi,Pe.path+"|"+Ue.path,function(){return{firstFile:Pe,secondFile:Ue,conflictingSymbols:new e.Map}}),_n=e.getOrUpdate(en.conflictingSymbols,Oe,function(){return{isBlockScoped:f,firstFileLocations:[],secondFileLocations:[]}});Un(_n.firstFileLocations,r),Un(_n.secondFileLocations,n)}else $s(r,S,Oe,n),$s(n,S,Oe,r)}return n;function Un(Qn,sr){if(sr.declarations)for(var lr=0,Fr=sr.declarations;lr=5||e.some(f.relatedInformation,function(Un){return e.compareDiagnostics(Un,_n)===0||e.compareDiagnostics(Un,en)===0}))return"continue";e.addRelatedInfo(f,e.length(f.relatedInformation)?_n:en)},q=0,_e=o||e.emptyArray;q<_e.length;q++){var Oe=_e[q];S(Oe)}}function nu(n,r){if(!(n!=null&&n.size))return r;if(!(r!=null&&r.size))return n;var i=e.createSymbolTable();return Rl(i,n),Rl(i,r),i}function Rl(n,r,i){i===void 0&&(i=!1),r.forEach(function(o,s){var f=n.get(s);n.set(s,f?uo(f,o,i):o)})}function Is(n){var r,i,o,s=n.parent;if(((r=s.symbol.declarations)===null||r===void 0?void 0:r[0])!==s){e.Debug.assert(s.symbol.declarations.length>1);return}if(e.isGlobalScopeAugmentation(s))Rl(J,s.symbol.exports);else{var f=n.parent.parent.flags&8388608?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,S=Tl(n,n,f,!0);if(!S)return;if(S=sl(S),S.flags&1920)if(e.some(Xt,function(Un){return S===Un.symbol})){var q=uo(s.symbol,S,!0);gi||(gi=new e.Map),gi.set(n.text,q)}else{if(!((i=S.exports)===null||i===void 0)&&i.get("__export")&&(!((o=s.symbol.exports)===null||o===void 0)&&o.size))for(var _e=kp(S,"resolvedExports"),Oe=0,Pe=e.arrayFrom(s.symbol.exports.entries());OeUe.end)return!1;var Un=e.findAncestor(en,function(Qn){if(Qn===Ue)return"quit";switch(Qn.kind){case 210:return!0;case 164:return _n&&(e.isPropertyDeclaration(Ue)&&Qn.parent===Ue.parent||e.isParameterPropertyDeclaration(Ue,Ue.parent)&&Qn.parent===Ue.parent.parent)?"quit":!0;case 231:switch(Qn.parent.kind){case 168:case 166:case 169:return!0;default:return!1}default:return!1}});return Un===void 0}}function Tf(n,r,i){var o=e.getEmitScriptTarget(ye),s=r;if(e.isParameter(i)&&s.body&&n.valueDeclaration&&n.valueDeclaration.pos>=s.body.pos&&n.valueDeclaration.end<=s.body.end&&o>=2){var f=ia(s);return f.declarationRequiresScopeChange===void 0&&(f.declarationRequiresScopeChange=e.forEach(s.parameters,S)||!1),!f.declarationRequiresScopeChange}return!1;function S(_e){return q(_e.name)||!!_e.initializer&&q(_e.initializer)}function q(_e){switch(_e.kind){case 210:case 209:case 252:case 167:return!1;case 166:case 168:case 169:case 289:return q(_e.name);case 164:return e.hasStaticModifier(_e)?o<99||!tn:q(_e.name);default:return e.isNullishCoalesce(_e)||e.isOptionalChain(_e)?o<7:e.isBindingElement(_e)&&_e.dotDotDotToken&&e.isObjectBindingPattern(_e.parent)?o<4:e.isTypeNode(_e)?!1:e.forEachChild(_e,q)||!1}}}function No(n,r,i,o,s,f,S,q){return S===void 0&&(S=!1),Qf(n,r,i,o,s,f,S,El,q)}function Qf(n,r,i,o,s,f,S,q,_e){var Oe,Pe=n,Ue,en,_n,Un,Qn,sr=!1,lr=n,Fr,Xr=!1;e:for(;n;){if(n.locals&&!ql(n)&&(Ue=q(n.locals,r,i))){var It=!0;if(e.isFunctionLike(n)&&en&&en!==n.body?(i&Ue.flags&788968&&en.kind!==312&&(It=Ue.flags&262144?en===n.type||en.kind===161||en.kind===160:!1),i&Ue.flags&3&&(Tf(Ue,n,en)?It=!1:Ue.flags&1&&(It=en.kind===161||en===n.type&&!!e.findAncestor(Ue.valueDeclaration,e.isParameter)))):n.kind===185&&(It=en===n.trueType),It)break e;Ue=void 0}switch(sr=sr||Ep(n,en),n.kind){case 298:if(!e.isExternalOrCommonJsModule(n))break;Xr=!0;case 257:var bt=At(n).exports||de;if(n.kind===298||e.isModuleDeclaration(n)&&n.flags&8388608&&!e.isGlobalScopeAugmentation(n)){if(Ue=bt.get("default")){var ca=e.getLocalSymbolForExportDefault(Ue);if(ca&&Ue.flags&i&&ca.escapedName===r)break e;Ue=void 0}var jt=bt.get(r);if(jt&&jt.flags===2097152&&(e.getDeclarationOfKind(jt,271)||e.getDeclarationOfKind(jt,270)))break}if(r!=="default"&&(Ue=q(bt,r,i&2623475)))if(e.isSourceFile(n)&&n.commonJsModuleIndicator&&!(!((Oe=Ue.declarations)===null||Oe===void 0)&&Oe.some(e.isJSDocTypeAlias)))Ue=void 0;else break e;break;case 256:if(Ue=q(At(n).exports,r,i&8))break e;break;case 164:if(!e.hasSyntacticModifier(n,32)){var Zt=Qu(n.parent);Zt&&Zt.locals&&q(Zt.locals,r,i&111551)&&(Un=n)}break;case 253:case 222:case 254:if(Ue=q(At(n).members||de,r,i&788968)){if(!pl(Ue,n)){Ue=void 0;break}if(en&&e.hasSyntacticModifier(en,32)){cn(lr,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);return}break e}if(n.kind===222&&i&32){var Xa=n.name;if(Xa&&r===Xa.escapedText){Ue=n.symbol;break e}}break;case 224:if(en===n.expression&&n.parent.token===93){var di=n.parent.parent;if(e.isClassLike(di)&&(Ue=q(At(di).members,r,i&788968))){o&&cn(lr,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 159:if(Fr=n.parent.parent,(e.isClassLike(Fr)||Fr.kind===254)&&(Ue=q(At(Fr).members,r,i&788968))){cn(lr,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 210:if(ye.target>=2)break;case 166:case 167:case 168:case 169:case 252:if(i&3&&r==="arguments"){Ue=xe;break e}break;case 209:if(i&3&&r==="arguments"){Ue=xe;break e}if(i&16){var qa=n.name;if(qa&&r===qa.escapedText){Ue=n.symbol;break e}}break;case 162:n.parent&&n.parent.kind===161&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||n.parent.kind===253)&&(n=n.parent);break;case 335:case 328:case 329:var $i=e.getJSDocRoot(n);$i&&(n=$i.parent);break;case 161:en&&(en===n.initializer||en===n.name&&e.isBindingPattern(en))&&(Qn||(Qn=n));break;case 199:en&&(en===n.initializer||en===n.name&&e.isBindingPattern(en))&&e.isParameterDeclaration(n)&&!Qn&&(Qn=n);break;case 186:if(i&262144){var Wi=n.typeParameter.name;if(Wi&&r===Wi.escapedText){Ue=n.typeParameter.symbol;break e}}break}os(n)&&(_n=n),en=n,n=n.parent}if(f&&Ue&&(!_n||Ue!==_n.symbol)&&(Ue.isReferenced|=i),!Ue){if(en&&(e.Debug.assert(en.kind===298),en.commonJsModuleIndicator&&r==="exports"&&i&en.symbol.flags))return en.symbol;S||(Ue=q(J,r,i))}if(!Ue&&Pe&&e.isInJSFile(Pe)&&Pe.parent&&e.isRequireCall(Pe.parent,!1))return P;if(!Ue){if(o&&(!lr||!Md(lr,r,s)&&!Lu(lr)&&!zu(lr,r,i)&&!bp(lr,r)&&!Fd(lr,r,i)&&!Bd(lr,r,i)&&!wd(lr,r,i))){var xr=void 0;if(_e&&paQn.pos&&$i.parent.locals&&q($i.parent.locals,Wn.escapedName,i)===Wn&&cn(lr,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(Qn.name),e.declarationNameToString(lr))}Ue&&lr&&i&111551&&Ue.flags&2097152&&Su(Ue,r,lr)}return Ue}function Su(n,r,i){if(!e.isValidTypeOnlyAliasUseSite(i)){var o=bl(n);if(o){var s=e.typeOnlyDeclarationIsExport(o),f=s?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,S=s?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,q=e.unescapeLeadingUnderscores(r);e.addRelatedInfo(cn(i,f,q),e.createDiagnosticForNode(o,S,q))}}}function Ep(n,r){return n.kind!==210&&n.kind!==209?e.isTypeQueryNode(n)||(e.isFunctionLikeDeclaration(n)||n.kind===164&&!e.hasSyntacticModifier(n,32))&&(!r||r!==n.name):r&&r===n.name?!1:n.asteriskToken||e.hasSyntacticModifier(n,256)?!0:!e.getImmediatelyInvokedFunctionExpression(n)}function os(n){switch(n.kind){case 252:case 253:case 254:case 256:case 255:case 257:return!0;default:return!1}}function Fs(n){return e.isString(n)?e.unescapeLeadingUnderscores(n):e.declarationNameToString(n)}function pl(n,r){if(n.declarations)for(var i=0,o=n.declarations;i=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",_e=o.exports.get("export="),Oe=_e.valueDeclaration,Pe=cn(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ga(o),q);Oe&&e.addRelatedInfo(Pe,e.createDiagnosticForNode(Oe,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,q))}else Wd(o,n);else if(S){var Ue=sl(o,r)||Vi(o,r);return Ol(n,o,Ue,!1),Ue}return Ol(n,s,void 0,!1),s}}function Wd(n,r){var i,o,s;if(!((i=n.exports)===null||i===void 0)&&i.has(r.symbol.escapedName))cn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ga(n),Ga(r.symbol));else{var f=cn(r.name,e.Diagnostics.Module_0_has_no_default_export,Ga(n)),S=(o=n.exports)===null||o===void 0?void 0:o.get("__export");if(S){var q=(s=S.declarations)===null||s===void 0?void 0:s.find(function(_e){var Oe,Pe;return!!(e.isExportDeclaration(_e)&&_e.moduleSpecifier&&(!((Pe=(Oe=Si(_e,_e.moduleSpecifier))===null||Oe===void 0?void 0:Oe.exports)===null||Pe===void 0)&&Pe.has("default")))});q&&e.addRelatedInfo(f,e.createDiagnosticForNode(q,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function jd(n,r){var i=n.parent.parent.moduleSpecifier,o=Si(n,i),s=Ct(o,i,r,!1);return Ol(n,o,s,!1),s}function Hd(n,r){var i=n.parent.moduleSpecifier,o=i&&Si(n,i),s=i&&Ct(o,i,r,!1);return Ol(n,o,s,!1),s}function Nl(n,r){if(n===Hn&&r===Hn)return Hn;if(n.flags&790504)return n;var i=Bt(n.flags|r.flags,n.escapedName);return i.declarations=e.deduplicate(e.concatenate(n.declarations,r.declarations),e.equateValues),i.parent=n.parent||r.parent,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),r.members&&(i.members=new e.Map(r.members)),n.exports&&(i.exports=new e.Map(n.exports)),i}function ru(n,r,i,o){if(n.flags&1536){var s=oc(n).get(r.escapedText),f=Vi(s,o);return Ol(i,s,f,!1),f}}function qu(n,r){if(n.flags&3){var i=n.valueDeclaration.type;if(i)return Vi(Ka(va(i),r))}}function pu(n,r,i){var o,s;i===void 0&&(i=!1);var f=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,S=Si(n,f),q=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(q)){var _e=q.escapedText==="default"&&!!(ye.allowSyntheticDefaultImports||ye.esModuleInterop),Oe=Ct(S,f,!1,_e);if(Oe&&q.escapedText){if(e.isShorthandAmbientModuleSymbol(S))return S;var Pe=void 0;S&&S.exports&&S.exports.get("export=")?Pe=Ka(d(Oe),q.escapedText,!0):Pe=qu(Oe,q.escapedText),Pe=Vi(Pe,i);var Ue=ru(Oe,q,r,i);if(Ue===void 0&&q.escapedText==="default"){var en=(o=S.declarations)===null||o===void 0?void 0:o.find(e.isSourceFile);rd(en,S,i)&&(Ue=sl(S,i)||Vi(S,i))}var _n=Ue&&Pe&&Ue!==Pe?Nl(Pe,Ue):Ue||Pe;if(!_n){var Un=el(S,n),Qn=e.declarationNameToString(q),sr=dy(q,Oe);if(sr!==void 0){var lr=Ga(sr),Fr=cn(q,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Un,Qn,lr);sr.valueDeclaration&&e.addRelatedInfo(Fr,e.createDiagnosticForNode(sr.valueDeclaration,e.Diagnostics._0_is_declared_here,lr))}else!((s=S.exports)===null||s===void 0)&&s.has("default")?cn(q,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,Un,Qn):Jd(n,q,Qn,S,Un)}return _n}}}function Jd(n,r,i,o,s){var f,S,q=(S=(f=o.valueDeclaration)===null||f===void 0?void 0:f.locals)===null||S===void 0?void 0:S.get(r.escapedText),_e=o.exports;if(q){var Oe=_e==null?void 0:_e.get("export=");if(Oe)xc(Oe,q)?Ap(n,r,i,s):cn(r,e.Diagnostics.Module_0_has_no_exported_member_1,s,i);else{var Pe=_e?e.find(Tm(_e),function(en){return!!xc(en,q)}):void 0,Ue=Pe?cn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,s,i,Ga(Pe)):cn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,s,i);q.declarations&&e.addRelatedInfo.apply(void 0,wr([Ue],e.map(q.declarations,function(en,_n){return e.createDiagnosticForNode(en,_n===0?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)})))}}else cn(r,e.Diagnostics.Module_0_has_no_exported_member_1,s,i)}function Ap(n,r,i,o){if(Te>=e.ModuleKind.ES2015){var s=ye.esModuleInterop?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;cn(r,s,i)}else if(e.isInJSFile(n)){var s=ye.esModuleInterop?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;cn(r,s,i)}else{var s=ye.esModuleInterop?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;cn(r,s,i,i,o)}}function Cu(n,r){var i=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,o=Lf(i),s=pu(i,o||n,r),f=n.propertyName||n.name;return o&&s&&e.isIdentifier(f)?Vi(Ka(d(s),f.escapedText),r):(Ol(n,void 0,s,!1),s)}function Lf(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function td(n,r){var i=sl(n.parent.symbol,r);return Ol(n,void 0,i,!1),i}function ad(n,r,i){var o=n.parent.parent.moduleSpecifier?pu(n.parent.parent,n,i):Oo(n.propertyName||n.name,r,!1,i);return Ol(n,void 0,o,!1),o}function Kd(n,r){var i=e.isExportAssignment(n)?n.expression:n.right,o=Af(i,r);return Ol(n,void 0,o,!1),o}function Af(n,r){if(e.isClassExpression(n))return Ds(n).symbol;if(!(!e.isEntityName(n)&&!e.isEntityNameExpression(n))){var i=Oo(n,901119,!0,r);return i||(Ds(n),ia(n).resolvedSymbol)}}function Df(n,r){var i=n.initializer;return Af(i,r)}function id(n,r){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===62)return Af(n.parent.right,r)}function Cc(n,r){switch(r===void 0&&(r=!1),n.kind){case 261:case 250:return nd(n,r);case 263:return Kp(n,r);case 264:return jd(n,r);case 270:return Hd(n,r);case 266:case 199:return Cu(n,r);case 271:return ad(n,901119,r);case 267:case 217:return Kd(n,r);case 260:return td(n,r);case 290:return Oo(n.name,901119,!0,r);case 289:return Df(n,r);case 203:case 202:return id(n,r);default:return e.Debug.fail()}}function Xu(n,r){return r===void 0&&(r=901119),n?(n.flags&(2097152|r))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function Vi(n,r){return!r&&Xu(n)?Fo(n):n}function Fo(n){e.Debug.assert((n.flags&2097152)!==0,"Should only get Alias here.");var r=Ua(n);if(r.target)r.target===kr&&(r.target=Hn);else{r.target=kr;var i=ac(n);if(!i)return e.Debug.fail();var o=Cc(i);r.target===kr?r.target=o||Hn:cn(i,e.Diagnostics.Circular_definition_of_import_alias_0,Ga(n))}return r.target}function Bc(n){var r=Ua(n);if(r.target!==kr)return Fo(n)}function Ol(n,r,i,o){if(!n||e.isPropertyAccessExpression(n))return!1;var s=At(n);if(e.isTypeOnlyImportOrExportDeclaration(n)){var f=Ua(s);return f.typeOnlyDeclaration=n,!0}var S=Ua(s);return Uc(S,r,o)||Uc(S,i,o)}function Uc(n,r,i){var o,s,f;if(r&&(n.typeOnlyDeclaration===void 0||i&&n.typeOnlyDeclaration===!1)){var S=(s=(o=r.exports)===null||o===void 0?void 0:o.get("export="))!==null&&s!==void 0?s:r,q=S.declarations&&e.find(S.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=(f=q??Ua(S).typeOnlyDeclaration)!==null&&f!==void 0?f:!1}return!!n.typeOnlyDeclaration}function bl(n){if(n.flags&2097152){var r=Ua(n);return r.typeOnlyDeclaration||void 0}}function Dp(n){var r=At(n),i=Fo(r);if(i){var o=i===Hn||i.flags&111551&&!Rg(i)&&!bl(r);o&&ic(r)}}function ic(n){var r=Ua(n);if(!r.referenced){r.referenced=!0;var i=ac(n);if(!i)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(i)){var o=Vi(n);(o===Hn||o.flags&111551)&&Ds(i.moduleReference)}}}function ml(n){var r=Ua(n);r.constEnumReferenced||(r.constEnumReferenced=!0)}function kl(n,r){return n.kind===78&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind===78||n.parent.kind===158?Oo(n,1920,!1,r):(e.Debug.assert(n.parent.kind===261),Oo(n,901119,!1,r))}function el(n,r){return n.parent?el(n.parent,r)+"."+Ga(n):Ga(n,r,void 0,20)}function Oo(n,r,i,o,s){if(!e.nodeIsMissing(n)){var f=1920|(e.isInJSFile(n)?r&111551:0),S;if(n.kind===78){var q=r===f||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:EL(e.getFirstIdentifier(n)),_e=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?od(n,r):void 0;if(S=wi(No(s||n,n.escapedText,r,i||_e?void 0:q,n,!0)),!S)return wi(_e)}else if(n.kind===158||n.kind===202){var Oe=n.kind===158?n.left:n.expression,Pe=n.kind===158?n.right:n.name,Ue=Oo(Oe,f,i,!1,s);if(!Ue||e.nodeIsMissing(Pe))return;if(Ue===Hn)return Ue;if(Ue.valueDeclaration&&e.isInJSFile(Ue.valueDeclaration)&&e.isVariableDeclaration(Ue.valueDeclaration)&&Ue.valueDeclaration.initializer&&QA(Ue.valueDeclaration.initializer)){var en=Ue.valueDeclaration.initializer.arguments[0],_n=Si(en,en);if(_n){var Un=sl(_n);Un&&(Ue=Un)}}if(S=wi(El(oc(Ue),Pe.escapedText,r)),!S){if(!i){var Qn=el(Ue),sr=e.declarationNameToString(Pe),lr=dy(Pe,Ue);lr?cn(Pe,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,Qn,sr,Ga(lr)):cn(Pe,e.Diagnostics.Namespace_0_has_no_exported_member_1,Qn,sr)}return}}else throw e.Debug.assertNever(n,"Unknown entity name kind.");return e.Debug.assert((e.getCheckFlags(S)&1)===0,"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(n)&&e.isEntityName(n)&&(S.flags&2097152||n.parent.kind===267)&&Ol(e.getAliasDeclarationFromName(n),S,void 0,!0),S.flags&r||o?S:Fo(S)}}function od(n,r){if(Ch(n.parent)){var i=Cf(n.parent);if(i)return No(i,n.escapedText,r,void 0,n,!0)}}function Cf(n){var r=e.findAncestor(n,function(f){return e.isJSDocNode(f)||f.flags&4194304?e.isJSDocTypeAlias(f):"quit"});if(!r){var i=e.getJSDocHost(n);if(i&&e.isExpressionStatement(i)&&e.isBinaryExpression(i.expression)&&e.getAssignmentDeclarationKind(i.expression)===3){var o=At(i.expression.left);if(o)return Cp(o)}if(i&&(e.isObjectLiteralMethod(i)||e.isPropertyAssignment(i))&&e.isBinaryExpression(i.parent.parent)&&e.getAssignmentDeclarationKind(i.parent.parent)===6){var o=At(i.parent.parent.left);if(o)return Cp(o)}var s=e.getEffectiveJSDocHost(n);if(s&&e.isFunctionLike(s)){var o=At(s);return o&&o.valueDeclaration}}}function Cp(n){var r=n.parent.valueDeclaration;if(r){var i=e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0;return i||r}}function xf(n){var r=n.valueDeclaration;if(!(!r||!e.isInJSFile(r)||n.flags&524288||e.getExpandoInitializer(r,!1))){var i=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(i){var o=At(i);if(o)return k0(o,n)}}}function Si(n,r,i){var o=e.getEmitModuleResolutionKind(ye)===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 Tl(n,r,i?void 0:s)}function Tl(n,r,i,o){return o===void 0&&(o=!1),e.isStringLiteralLike(r)?Pl(n,r.text,i,r,o):void 0}function Pl(n,r,i,o,s){if(s===void 0&&(s=!1),e.startsWith(r,"@types/")){var f=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,S=e.removePrefix(r,"@types/");cn(o,f,S,r)}var q=Z_(r,!0);if(q)return q;var _e=e.getSourceFileOfNode(n),Oe=e.getResolvedModule(_e,r),Pe=Oe&&e.getResolutionDiagnostic(ye,Oe),Ue=Oe&&!Pe&&W.getSourceFile(Oe.resolvedFileName);if(Ue){if(Ue.symbol)return Oe.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(Oe.extension)&&If(!1,o,Oe,r),wi(Ue.symbol);i&&cn(o,e.Diagnostics.File_0_is_not_a_module,Ue.fileName);return}if(Xt){var en=e.findBestPatternMatch(Xt,function(Xr){return Xr.pattern},r);if(en){var _n=gi&&gi.get(r);return wi(_n||en.symbol)}}if(Oe&&!e.resolutionExtensionIsTSOrJson(Oe.extension)&&Pe===void 0||Pe===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(s){var f=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;cn(o,f,r,Oe.resolvedFileName)}else If(Rn&&!!i,o,Oe,r);return}if(i){if(Oe){var Un=W.getProjectReferenceRedirect(Oe.resolvedFileName);if(Un){cn(o,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,Un,Oe.resolvedFileName);return}}if(Pe)cn(o,Pe,r,Oe.resolvedFileName);else{var Qn=e.tryExtractTSExtension(r);if(Qn){var f=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,sr=e.removeExtension(r,Qn),lr=sr,Fr=e.getEmitModuleKind(ye);Fr>=e.ModuleKind.ES2015&&(lr+=".js"),cn(o,f,Qn,lr)}else!ye.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(ye)?cn(o,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):cn(o,i,r)}}}function If(n,r,i,o){var s=i.packageId,f=i.resolvedFileName,S=!e.isExternalModuleNameRelative(o)&&s?zd(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)):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;$t(n,r,e.chainDiagnosticMessages(S,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,o,f))}function zd(n){return fe().has(e.getTypesPackageName(n))}function sl(n,r){if(n!=null&&n.exports){var i=Vi(n.exports.get("export="),r),o=sd(wi(i),wi(n));return wi(o)||n}}function sd(n,r){if(!n||n===Hn||n===r||r.exports.size===1||n.flags&2097152)return n;var i=Ua(n);if(i.cjsExportMerged)return i.cjsExportMerged;var o=n.flags&33554432?n:Ro(n);return o.flags=o.flags|512,o.exports===void 0&&(o.exports=e.createSymbolTable()),r.exports.forEach(function(s,f){f!=="export="&&o.exports.set(f,o.exports.has(f)?uo(o.exports.get(f),s):s)}),Ua(o).cjsExportMerged=o,i.cjsExportMerged=o}function Ct(n,r,i,o){var s=sl(n,i);if(!i&&s){if(!o&&!(s.flags&1539)&&!e.getDeclarationOfKind(s,298)){var f=Te>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return cn(r,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}if(ye.esModuleInterop){var S=r.parent;if(e.isImportDeclaration(S)&&e.getNamespaceDeclarationNode(S)||e.isImportCall(S)){var q=d(s),_e=_s(q,0);if((!_e||!_e.length)&&(_e=_s(q,1)),_e&&_e.length){var Oe=YA(q,s,n),Pe=Bt(s.flags,s.escapedName);Pe.declarations=s.declarations?s.declarations.slice():[],Pe.parent=s.parent,Pe.target=s,Pe.originatingImport=S,s.valueDeclaration&&(Pe.valueDeclaration=s.valueDeclaration),s.constEnumOnlyModule&&(Pe.constEnumOnlyModule=!0),s.members&&(Pe.members=new e.Map(s.members)),s.exports&&(Pe.exports=new e.Map(s.exports));var Ue=Pc(Oe);return Pe.type=jo(Pe,Ue.members,e.emptyArray,e.emptyArray,Ue.stringIndexInfo,Ue.numberIndexInfo),Pe}}}}return s}function Jo(n){return n.exports.get("export=")!==void 0}function ei(n){return Tm(ko(n))}function nl(n){var r=ei(n),i=sl(n);if(i!==n){var o=d(i);St(o)&&e.addRange(r,ki(o))}return r}function Yu(n,r){var i=ko(r);if(i)return i.get(n)}function Vc(n,r){var i=Yu(n,r);if(i)return i;var o=sl(r);if(o!==r){var s=d(o);return St(s)?Ka(s,n):void 0}}function St(n){return!(n.flags&131068||e.getObjectFlags(n)&1||zs(n)||vi(n))}function oc(n){return n.flags&6256?kp(n,"resolvedExports"):n.flags&1536?ko(n):n.exports||de}function ko(n){var r=Ua(n);return r.resolvedExports||(r.resolvedExports=Ml(n))}function Xl(n,r,i,o){r&&r.forEach(function(s,f){if(f!=="default"){var S=n.get(f);if(!S)n.set(f,s),i&&o&&i.set(f,{specifierText:e.getTextOfNode(o.moduleSpecifier)});else if(i&&o&&S&&Vi(S)!==Vi(s)){var q=i.get(f);q.exportsWithDuplicate?q.exportsWithDuplicate.push(o):q.exportsWithDuplicate=[o]}}})}function Ml(n){var r=[];return n=sl(n),i(n)||de;function i(o){if(o&&o.exports&&e.pushIfUnique(r,o)){var s=new e.Map(o.exports),f=o.exports.get("__export");if(f){var S=e.createSymbolTable(),q=new e.Map;if(f.declarations)for(var _e=0,Oe=f.declarations;_e=Pe?Oe.substr(0,Pe-3)+"...":Oe}function pd(n,r){var i=Rc(n.symbol)?gt(n,n.symbol.valueDeclaration):gt(n),o=Rc(r.symbol)?gt(r,r.symbol.valueDeclaration):gt(r);return i===o&&(i=Ql(n),o=Ql(r)),[i,o]}function Ql(n){return gt(n,void 0,64)}function Rc(n){return n&&!!n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!Yc(n.valueDeclaration)}function Xd(n){return n===void 0&&(n=0),n&814775659}function ef(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===Os(n.symbol)||!!(n.flags&524288)&&!!(e.getObjectFlags(n)&16777216))}function ku(){return{typeToTypeNode:function(Wn,gn,$r,rt){return n(gn,$r,rt,function(Gt){return i(Wn,Gt)})},indexInfoToIndexSignatureDeclaration:function(Wn,gn,$r,rt,Gt){return n($r,rt,Gt,function(Tt){return _e(Wn,gn,Tt,void 0)})},signatureToSignatureDeclaration:function(Wn,gn,$r,rt,Gt){return n($r,rt,Gt,function(Tt){return Oe(Wn,gn,Tt)})},symbolToEntityName:function(Wn,gn,$r,rt,Gt){return n($r,rt,Gt,function(Tt){return jt(Wn,Tt,gn,!1)})},symbolToExpression:function(Wn,gn,$r,rt,Gt){return n($r,rt,Gt,function(Tt){return Zt(Wn,Tt,gn)})},symbolToTypeParameterDeclarations:function(Wn,gn,$r,rt){return n(gn,$r,rt,function(Gt){return sr(Wn,Gt)})},symbolToParameterDeclaration:function(Wn,gn,$r,rt){return n(gn,$r,rt,function(Gt){return en(Wn,Gt)})},typeParameterToDeclaration:function(Wn,gn,$r,rt){return n(gn,$r,rt,function(Gt){return Ue(Wn,Gt)})},symbolTableToDeclarationStatements:function(Wn,gn,$r,rt,Gt){return n(gn,$r,rt,function(Tt){return Ai(Wn,Tt,Gt)})}};function n(Wn,gn,$r,rt){var Gt,Tt;e.Debug.assert(Wn===void 0||(Wn.flags&8)===0);var na={enclosingDeclaration:Wn,flags:gn||0,tracker:$r&&$r.trackSymbol?$r:{trackSymbol:e.noop,moduleResolverHost:gn&134217728?{getCommonSourceDirectory:W.getCommonSourceDirectory?function(){return W.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return W.getSourceFiles()},getCurrentDirectory:function(){return W.getCurrentDirectory()},getSymlinkCache:e.maybeBind(W,W.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(W,W.useCaseSensitiveFileNames),redirectTargetsMap:W.redirectTargetsMap,getProjectReferenceRedirect:function(_t){return W.getProjectReferenceRedirect(_t)},isSourceOfProjectReferenceRedirect:function(_t){return W.isSourceOfProjectReferenceRedirect(_t)},fileExists:function(_t){return W.fileExists(_t)},getFileIncludeReasons:function(){return W.getFileIncludeReasons()}}:void 0},encounteredError:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},da=rt(na);return na.truncating&&na.flags&1&&((Tt=(Gt=na.tracker)===null||Gt===void 0?void 0:Gt.reportTruncationError)===null||Tt===void 0||Tt.call(Gt)),na.encounteredError?void 0:da}function r(Wn){return Wn.truncating?Wn.truncating:Wn.truncating=Wn.approximateLength>(Wn.flags&1?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function i(Wn,gn){A&&A.throwIfCancellationRequested&&A.throwIfCancellationRequested();var $r=gn.flags&8388608;if(gn.flags&=-8388609,!Wn){if(!(gn.flags&262144)){gn.encounteredError=!0;return}return gn.approximateLength+=3,e.factory.createKeywordTypeNode(128)}if(gn.flags&536870912||(Wn=zt(Wn)),Wn.flags&1)return gn.approximateLength+=3,e.factory.createKeywordTypeNode(Wn===bn?136:128);if(Wn.flags&2)return e.factory.createKeywordTypeNode(152);if(Wn.flags&4)return gn.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(Wn.flags&8)return gn.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(Wn.flags&64)return gn.approximateLength+=6,e.factory.createKeywordTypeNode(155);if(Wn.flags&16)return gn.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(Wn.flags&1024&&!(Wn.flags&1048576)){var rt=Hs(Wn.symbol),Gt=It(rt,gn,788968);if(po(rt)===Wn)return Gt;var Tt=e.symbolName(Wn.symbol);return e.isIdentifierText(Tt,0)?Wp(Gt,e.factory.createTypeReferenceNode(Tt,void 0)):e.isImportTypeNode(Gt)?(Gt.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(Gt,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Tt)))):e.isTypeReferenceNode(Gt)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(Gt.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(Tt))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(Wn.flags&1056)return It(Wn.symbol,gn,788968);if(Wn.flags&128)return gn.approximateLength+=Wn.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(Wn.value,!!(gn.flags&268435456)),16777216));if(Wn.flags&256){var na=Wn.value;return gn.approximateLength+=(""+na).length,e.factory.createLiteralTypeNode(na<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-na)):e.factory.createNumericLiteral(na))}if(Wn.flags&2048)return gn.approximateLength+=e.pseudoBigIntToString(Wn.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(Wn.value));if(Wn.flags&512)return gn.approximateLength+=Wn.intrinsicName.length,e.factory.createLiteralTypeNode(Wn.intrinsicName==="true"?e.factory.createTrue():e.factory.createFalse());if(Wn.flags&8192){if(!(gn.flags&1048576)){if(Jc(Wn.symbol,gn.enclosingDeclaration))return gn.approximateLength+=6,It(Wn.symbol,gn,111551);gn.tracker.reportInaccessibleUniqueSymbolError&&gn.tracker.reportInaccessibleUniqueSymbolError()}return gn.approximateLength+=13,e.factory.createTypeOperatorNode(151,e.factory.createKeywordTypeNode(148))}if(Wn.flags&16384)return gn.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(Wn.flags&32768)return gn.approximateLength+=9,e.factory.createKeywordTypeNode(150);if(Wn.flags&65536)return gn.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(Wn.flags&131072)return gn.approximateLength+=5,e.factory.createKeywordTypeNode(141);if(Wn.flags&4096)return gn.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(Wn.flags&67108864)return gn.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(mv(Wn))return gn.flags&4194304&&(!gn.encounteredError&&!(gn.flags&32768)&&(gn.encounteredError=!0),gn.tracker.reportInaccessibleThisError&&gn.tracker.reportInaccessibleThisError()),gn.approximateLength+=4,e.factory.createThisTypeNode();if(!$r&&Wn.aliasSymbol&&(gn.flags&16384||Ru(Wn.aliasSymbol,gn.enclosingDeclaration))){var da=S(Wn.aliasTypeArguments,gn);return gc(Wn.aliasSymbol.escapedName)&&!(Wn.aliasSymbol.flags&32)?e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),da):It(Wn.aliasSymbol,gn,788968,da)}var _t=e.getObjectFlags(Wn);if(_t&4)return e.Debug.assert(!!(Wn.flags&524288)),Wn.node?D_(Wn,x_):x_(Wn);if(Wn.flags&262144||_t&3){if(Wn.flags&262144&&e.contains(gn.inferTypeParameters,Wn))return gn.approximateLength+=e.symbolName(Wn.symbol).length+6,e.factory.createInferTypeNode(Pe(Wn,gn,void 0));if(gn.flags&4&&Wn.flags&262144&&!Ru(Wn.symbol,gn.enclosingDeclaration)){var nr=ca(Wn,gn);return gn.approximateLength+=e.idText(nr).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(nr)),void 0)}return Wn.symbol?It(Wn.symbol,gn,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(Wn.flags&1048576&&Wn.origin&&(Wn=Wn.origin),Wn.flags&3145728){var Tr=Wn.flags&1048576?lc(Wn.types):Wn.types;if(e.length(Tr)===1)return i(Tr[0],gn);var Wr=S(Tr,gn,!0);if(Wr&&Wr.length>0)return Wn.flags&1048576?e.factory.createUnionTypeNode(Wr):e.factory.createIntersectionTypeNode(Wr);!gn.encounteredError&&!(gn.flags&262144)&&(gn.encounteredError=!0);return}if(_t&48)return e.Debug.assert(!!(Wn.flags&524288)),Od(Wn);if(Wn.flags&4194304){var Jr=Wn.type;gn.approximateLength+=6;var nt=i(Jr,gn);return e.factory.createTypeOperatorNode(138,nt)}if(Wn.flags&134217728){var ht=Wn.texts,ha=Wn.types,Ma=e.factory.createTemplateHead(ht[0]),ra=e.factory.createNodeArray(e.map(ha,function(Cn,Kn){return e.factory.createTemplateLiteralTypeSpan(i(Cn,gn),(Kn10)return o(gn);gn.symbolDepth.set(Rt,st+1)}gn.visitedTypes.add(Dr);var lt=Kn(Cn);return gn.visitedTypes.delete(Dr),Rt&&gn.symbolDepth.set(Rt,st),lt}function C_(Cn){if(Bl(Cn)||Cn.containsError)return Es(Cn);var Kn=Pc(Cn);if(!Kn.properties.length&&!Kn.stringIndexInfo&&!Kn.numberIndexInfo){if(!Kn.callSignatures.length&&!Kn.constructSignatures.length)return gn.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(Kn.callSignatures.length===1&&!Kn.constructSignatures.length){var Dr=Kn.callSignatures[0],Hr=Oe(Dr,175,gn);return Hr}if(Kn.constructSignatures.length===1&&!Kn.callSignatures.length){var Dr=Kn.constructSignatures[0],Hr=Oe(Dr,176,gn);return Hr}}var Rt=e.filter(Kn.constructSignatures,function(Fa){return!!(Fa.flags&4)});if(e.some(Rt)){var st=e.map(Rt,Qm),lt=Kn.callSignatures.length+(Kn.constructSignatures.length-Rt.length)+(Kn.stringIndexInfo?1:0)+(Kn.numberIndexInfo?1:0)+(gn.flags&2048?e.countWhere(Kn.properties,function(Fa){return!(Fa.flags&4194304)}):e.length(Kn.properties));return lt&&st.push(Hc(Kn)),i(Qi(st),gn)}var zr=gn.flags;gn.flags|=4194304;var Qt=I_(Kn);gn.flags=zr;var Oa=e.factory.createTypeLiteralNode(Qt);return gn.approximateLength+=2,e.setEmitFlags(Oa,gn.flags&1024?0:1),Oa}function x_(Cn){var Kn=qi(Cn);if(Cn.target===oo||Cn.target===Go){if(gn.flags&2){var Dr=i(Kn[0],gn);return e.factory.createTypeReferenceNode(Cn.target===oo?"Array":"ReadonlyArray",[Dr])}var Hr=i(Kn[0],gn),Rt=e.factory.createArrayTypeNode(Hr);return Cn.target===oo?Rt:e.factory.createTypeOperatorNode(142,Rt)}else if(Cn.target.objectFlags&8){if(Kn.length>0){var st=Td(Cn),lt=S(Kn.slice(0,st),gn);if(lt){if(Cn.target.labeledElementDeclarations)for(var zr=0;zr0){var Yn=(Cn.target.typeParameters||e.emptyArray).length;Mo=S(Kn.slice(zr,Yn),gn)}var Qt=gn.flags;gn.flags|=16;var pt=It(Cn.symbol,gn,788968,Mo);return gn.flags=Qt,Oi?Wp(Oi,pt):pt}}function Wp(Cn,Kn){if(e.isImportTypeNode(Cn)){var Dr=Cn.typeArguments,Hr=Cn.qualifier;Hr&&(e.isIdentifier(Hr)?Hr=e.factory.updateIdentifier(Hr,Dr):Hr=e.factory.updateQualifiedName(Hr,Hr.left,e.factory.updateIdentifier(Hr.right,Dr))),Dr=Kn.typeArguments;for(var Rt=Ng(Kn),st=0,lt=Rt;st2)return[i(Wn[0],gn),e.factory.createTypeReferenceNode("... "+(Wn.length-2)+" more ...",void 0),i(Wn[Wn.length-1],gn)]}else return[e.factory.createTypeReferenceNode("...",void 0)];for(var rt=!(gn.flags&64),Gt=rt?e.createUnderscoreEscapedMultiMap():void 0,Tt=[],na=0,da=0,_t=Wn;da<_t.length;da++){var nr=_t[da];if(na++,r(gn)&&na+20)):Gt=[Wn],Gt;function na(da,_t,nr){var Tr=Yl(da,gn.enclosingDeclaration,_t,!!(gn.flags&128)),Wr;if(!Tr||cd(Tr[0],gn.enclosingDeclaration,Tr.length===1?_t:Ic(_t))){var Jr=qd(Tr?Tr[0]:da,gn.enclosingDeclaration,_t);if(e.length(Jr)){Wr=Jr.map(function(Pi){return e.some(Pi.declarations,au)?Xr(Pi,gn):void 0});var nt=Jr.map(function(Pi,ts){return ts});nt.sort(Bi);for(var ht=nt.map(function(Pi){return Jr[Pi]}),ha=0,Ma=ht;ha1?ha(Gt,Gt.length-1,1):void 0,da=rt||lr(Gt,0,gn),_t=Xr(Gt[0],gn);!(gn.flags&67108864)&&e.getEmitModuleResolutionKind(ye)===e.ModuleResolutionKind.NodeJs&&_t.indexOf("/node_modules/")>=0&&(gn.encounteredError=!0,gn.tracker.reportLikelyUnsafeImportRequiredError&&gn.tracker.reportLikelyUnsafeImportRequiredError(_t));var nr=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(_t));if(gn.tracker.trackExternalModuleSymbolOfImportTypeNode&&gn.tracker.trackExternalModuleSymbolOfImportTypeNode(Gt[0]),gn.approximateLength+=_t.length+10,!na||e.isEntityName(na)){if(na){var Tr=e.isIdentifier(na)?na:na.right;Tr.typeArguments=void 0}return e.factory.createImportTypeNode(nr,na,da,Tt)}else{var Wr=Fr(na),Jr=Wr.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(nr,Jr,da,Tt),Wr.indexType)}}var nt=ha(Gt,Gt.length-1,0);if(e.isIndexedAccessTypeNode(nt))return nt;if(Tt)return e.factory.createTypeQueryNode(nt);var Tr=e.isIdentifier(nt)?nt:nt.right,ht=Tr.typeArguments;return Tr.typeArguments=void 0,e.factory.createTypeReferenceNode(nt,ht);function ha(Ma,ra,si){var Bi=ra===Ma.length-1?rt:lr(Ma,ra,gn),Pi=Ma[ra],ts=Ma[ra-1],yo;if(ra===0)gn.flags|=16777216,yo=Nc(Pi,gn),gn.approximateLength+=(yo?yo.length:0)+1,gn.flags^=16777216;else if(ts&&oc(ts)){var Us=oc(ts);e.forEachEntry(Us,function(Es,Od){if(xc(Es,Pi)&&!Co(Od)&&Od!=="export=")return yo=e.unescapeLeadingUnderscores(Od),!0})}if(yo||(yo=Nc(Pi,gn)),gn.approximateLength+=yo.length+1,!(gn.flags&16)&&ts&&bc(ts)&&bc(ts).get(Pi.escapedName)&&xc(bc(ts).get(Pi.escapedName),Pi)){var Qo=ha(Ma,ra-1,si);return e.isIndexedAccessTypeNode(Qo)?e.factory.createIndexedAccessTypeNode(Qo,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(yo))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(Qo,Bi),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(yo)))}var yf=e.setEmitFlags(e.factory.createIdentifier(yo,Bi),16777216);if(yf.symbol=Pi,ra>si){var Qo=ha(Ma,ra-1,si);return e.isEntityName(Qo)?e.factory.createQualifiedName(Qo,yf):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return yf}}function bt(Wn,gn,$r){var rt=No(gn.enclosingDeclaration,Wn,788968,void 0,Wn,!1);return rt?!(rt.flags&262144&&rt===$r.symbol):!1}function ca(Wn,gn){var $r;if(gn.flags&4&&gn.typeParameterNames){var rt=gn.typeParameterNames.get(Uu(Wn));if(rt)return rt}var Gt=jt(Wn.symbol,gn,788968,!0);if(!(Gt.kind&78))return e.factory.createIdentifier("(Missing type parameter)");if(gn.flags&4){for(var Tt=Gt.escapedText,na=0,da=Tt;!(($r=gn.typeParameterNamesByText)===null||$r===void 0)&&$r.has(da)||bt(da,gn,Wn);)na++,da=Tt+"_"+na;da!==Tt&&(Gt=e.factory.createIdentifier(da,Gt.typeArguments)),(gn.typeParameterNames||(gn.typeParameterNames=new e.Map)).set(Uu(Wn),Gt),(gn.typeParameterNamesByText||(gn.typeParameterNamesByText=new e.Set)).add(Gt.escapedText)}return Gt}function jt(Wn,gn,$r,rt){var Gt=Un(Wn,gn,$r);return rt&&Gt.length!==1&&!gn.encounteredError&&!(gn.flags&65536)&&(gn.encounteredError=!0),Tt(Gt,Gt.length-1);function Tt(na,da){var _t=lr(na,da,gn),nr=na[da];da===0&&(gn.flags|=16777216);var Tr=Nc(nr,gn);da===0&&(gn.flags^=16777216);var Wr=e.setEmitFlags(e.factory.createIdentifier(Tr,_t),16777216);return Wr.symbol=nr,da>0?e.factory.createQualifiedName(Tt(na,da-1),Wr):Wr}}function Zt(Wn,gn,$r){var rt=Un(Wn,gn,$r);return Gt(rt,rt.length-1);function Gt(Tt,na){var da=lr(Tt,na,gn),_t=Tt[na];na===0&&(gn.flags|=16777216);var nr=Nc(_t,gn);na===0&&(gn.flags^=16777216);var Tr=nr.charCodeAt(0);if(e.isSingleOrDoubleQuote(Tr)&&e.some(_t.declarations,au))return e.factory.createStringLiteral(Xr(_t,gn));var Wr=Tr===35?nr.length>1&&e.isIdentifierStart(nr.charCodeAt(1),on):e.isIdentifierStart(Tr,on);if(na===0||Wr){var Jr=e.setEmitFlags(e.factory.createIdentifier(nr,da),16777216);return Jr.symbol=_t,na>0?e.factory.createPropertyAccessExpression(Gt(Tt,na-1),Jr):Jr}else{Tr===91&&(nr=nr.substring(1,nr.length-1),Tr=nr.charCodeAt(0));var nt=void 0;return e.isSingleOrDoubleQuote(Tr)?nt=e.factory.createStringLiteral(nr.substring(1,nr.length-1).replace(/\\./g,function(ht){return ht.substring(1)}),Tr===39):""+ +nr===nr&&(nt=e.factory.createNumericLiteral(+nr)),nt||(nt=e.setEmitFlags(e.factory.createIdentifier(nr,da),16777216),nt.symbol=_t),e.factory.createElementAccessExpression(Gt(Tt,na-1),nt)}}}function Xa(Wn){var gn=e.getNameOfDeclaration(Wn);return!!gn&&e.isStringLiteral(gn)}function di(Wn){var gn=e.getNameOfDeclaration(Wn);return!!(gn&&e.isStringLiteral(gn)&&(gn.singleQuote||!e.nodeIsSynthesized(gn)&&e.startsWith(e.getTextOfNode(gn,!1),"'")))}function qa(Wn,gn){var $r=!!e.length(Wn.declarations)&&e.every(Wn.declarations,di),rt=$i(Wn,gn,$r);if(rt)return rt;var Gt=e.unescapeLeadingUnderscores(Wn.escapedName),Tt=!!e.length(Wn.declarations)&&e.every(Wn.declarations,Xa);return Wi(Gt,Tt,$r)}function $i(Wn,gn,$r){var rt=Ua(Wn).nameType;if(rt){if(rt.flags&384){var Gt=""+rt.value;return!e.isIdentifierText(Gt,ye.target)&&!nc(Gt)?e.factory.createStringLiteral(Gt,!!$r):nc(Gt)&&e.startsWith(Gt,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+Gt)):Wi(Gt)}if(rt.flags&8192)return e.factory.createComputedPropertyName(Zt(rt.symbol,gn,111551))}}function Wi(Wn,gn,$r){return e.isIdentifierText(Wn,ye.target)?e.factory.createIdentifier(Wn):!gn&&nc(Wn)&&+Wn>=0?e.factory.createNumericLiteral(+Wn):e.factory.createStringLiteral(Wn,!!$r)}function xr(Wn){var gn=Nt({},Wn);return gn.typeParameterNames&&(gn.typeParameterNames=new e.Map(gn.typeParameterNames)),gn.typeParameterNamesByText&&(gn.typeParameterNamesByText=new e.Set(gn.typeParameterNamesByText)),gn.typeParameterSymbolList&&(gn.typeParameterSymbolList=new e.Set(gn.typeParameterSymbolList)),gn}function Lr(Wn,gn){return Wn.declarations&&e.find(Wn.declarations,function($r){return!!e.getEffectiveTypeAnnotationNode($r)&&(!gn||!!e.findAncestor($r,function(rt){return rt===gn}))})}function ua(Wn,gn){return!(e.getObjectFlags(gn)&4)||!e.isTypeReferenceNode(Wn)||e.length(Wn.typeArguments)>=Xc(gn.target.typeParameters)}function wt(Wn,gn,$r,rt,Gt,Tt){if(gn!==Qe&&rt){var na=Lr($r,rt);if(na&&!e.isFunctionLikeDeclaration(na)&&!e.isGetAccessorDeclaration(na)){var da=e.getEffectiveTypeAnnotationNode(na);if(va(da)===gn&&ua(da,gn)){var _t=Pt(Wn,da,Gt,Tt);if(_t)return _t}}}var nr=Wn.flags;gn.flags&8192&&gn.symbol===$r&&(!Wn.enclosingDeclaration||e.some($r.declarations,function(Wr){return e.getSourceFileOfNode(Wr)===e.getSourceFileOfNode(Wn.enclosingDeclaration)}))&&(Wn.flags|=1048576);var Tr=i(gn,Wn);return Wn.flags=nr,Tr}function Pa(Wn,gn,$r,rt,Gt){if(gn!==Qe&&Wn.enclosingDeclaration){var Tt=$r.declaration&&e.getEffectiveReturnTypeNode($r.declaration);if(e.findAncestor(Tt,function(nr){return nr===Wn.enclosingDeclaration})&&Tt){var na=va(Tt),da=na.flags&262144&&na.isThisType?za(na,$r.mapper):na;if(da===gn&&ua(Tt,gn)){var _t=Pt(Wn,Tt,rt,Gt);if(_t)return _t}}}return i(gn,Wn)}function Ha(Wn,gn,$r){var rt,Gt,Tt=!1,na=e.getFirstIdentifier(Wn);if(e.isInJSFile(Wn)&&(e.isExportsIdentifier(na)||e.isModuleExportsAccessExpression(na.parent)||e.isQualifiedName(na.parent)&&e.isModuleIdentifier(na.parent.left)&&e.isExportsIdentifier(na.parent.right)))return Tt=!0,{introducesError:Tt,node:Wn};var da=Oo(na,67108863,!0,!0);if(da&&(Rf(da,gn.enclosingDeclaration,67108863,!1).accessibility!==0?Tt=!0:((Gt=(rt=gn.tracker)===null||rt===void 0?void 0:rt.trackSymbol)===null||Gt===void 0||Gt.call(rt,da,gn.enclosingDeclaration,67108863),$r==null||$r(da)),e.isIdentifier(Wn))){var _t=da.flags&262144?ca(po(da),gn):e.factory.cloneNode(Wn);return _t.symbol=da,{introducesError:Tt,node:e.setEmitFlags(e.setOriginalNode(_t,Wn),16777216)}}return{introducesError:Tt,node:Wn}}function Pt(Wn,gn,$r,rt){A&&A.throwIfCancellationRequested&&A.throwIfCancellationRequested();var Gt=!1,Tt=e.getSourceFileOfNode(gn),na=e.visitNode(gn,da);if(Gt)return;return na===gn?e.setTextRange(e.factory.cloneNode(gn),gn):na;function da(_t){if(e.isJSDocAllType(_t)||_t.kind===311)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(_t))return e.factory.createKeywordTypeNode(152);if(e.isJSDocNullableType(_t))return e.factory.createUnionTypeNode([e.visitNode(_t.type,da),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(_t))return e.factory.createUnionTypeNode([e.visitNode(_t.type,da),e.factory.createKeywordTypeNode(150)]);if(e.isJSDocNonNullableType(_t))return e.visitNode(_t.type,da);if(e.isJSDocVariadicType(_t))return e.factory.createArrayTypeNode(e.visitNode(_t.type,da));if(e.isJSDocTypeLiteral(_t))return e.factory.createTypeLiteralNode(e.map(_t.jsDocPropertyTags,function(ra){var si=e.isIdentifier(ra.name)?ra.name:ra.name.right,Bi=qo(va(_t),si.escapedText),Pi=Bi&&ra.typeExpression&&va(ra.typeExpression.type)!==Bi?i(Bi,Wn):void 0;return e.factory.createPropertySignature(void 0,si,ra.isBracketed||ra.typeExpression&&e.isJSDocOptionalType(ra.typeExpression.type)?e.factory.createToken(57):void 0,Pi||ra.typeExpression&&e.visitNode(ra.typeExpression.type,da)||e.factory.createKeywordTypeNode(128))}));if(e.isTypeReferenceNode(_t)&&e.isIdentifier(_t.typeName)&&_t.typeName.escapedText==="")return e.setOriginalNode(e.factory.createKeywordTypeNode(128),_t);if((e.isExpressionWithTypeArguments(_t)||e.isTypeReferenceNode(_t))&&e.isJSDocIndexSignature(_t))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(_t.typeArguments[0],da))],e.visitNode(_t.typeArguments[1],da))]);if(e.isJSDocFunctionType(_t))if(e.isJSDocConstructSignature(_t)){var nr;return e.factory.createConstructorTypeNode(_t.modifiers,e.visitNodes(_t.typeParameters,da),e.mapDefined(_t.parameters,function(ra,si){return ra.name&&e.isIdentifier(ra.name)&&ra.name.escapedText==="new"?(nr=ra.type,void 0):e.factory.createParameterDeclaration(void 0,void 0,ht(ra),ha(ra,si),ra.questionToken,e.visitNode(ra.type,da),void 0)}),e.visitNode(nr||_t.type,da)||e.factory.createKeywordTypeNode(128))}else return e.factory.createFunctionTypeNode(e.visitNodes(_t.typeParameters,da),e.map(_t.parameters,function(ra,si){return e.factory.createParameterDeclaration(void 0,void 0,ht(ra),ha(ra,si),ra.questionToken,e.visitNode(ra.type,da),void 0)}),e.visitNode(_t.type,da)||e.factory.createKeywordTypeNode(128));if(e.isTypeReferenceNode(_t)&&e.isInJSDoc(_t)&&(!ua(_t,va(_t))||jS(_t)||Hn===e_(ng(_t),788968,!0)))return e.setOriginalNode(i(va(_t),Wn),_t);if(e.isLiteralImportTypeNode(_t)){var Tr=ia(_t).resolvedSymbol;return e.isInJSDoc(_t)&&Tr&&(!_t.isTypeOf&&!(Tr.flags&788968)||!(e.length(_t.typeArguments)>=Xc(ba(Tr))))?e.setOriginalNode(i(va(_t),Wn),_t):e.factory.updateImportTypeNode(_t,e.factory.updateLiteralTypeNode(_t.argument,Ma(_t,_t.argument.literal)),_t.qualifier,e.visitNodes(_t.typeArguments,da,e.isTypeNode),_t.isTypeOf)}if(e.isEntityName(_t)||e.isEntityNameExpression(_t)){var Wr=Ha(_t,Wn,$r),Jr=Wr.introducesError,nt=Wr.node;if(Gt=Gt||Jr,nt!==_t)return nt}return Tt&&e.isTupleTypeNode(_t)&&e.getLineAndCharacterOfPosition(Tt,_t.pos).line===e.getLineAndCharacterOfPosition(Tt,_t.end).line&&e.setEmitFlags(_t,1),e.visitEachChild(_t,da,e.nullTransformationContext);function ht(ra){return ra.dotDotDotToken||(ra.type&&e.isJSDocVariadicType(ra.type)?e.factory.createToken(25):void 0)}function ha(ra,si){return ra.name&&e.isIdentifier(ra.name)&&ra.name.escapedText==="this"?"this":ht(ra)?"args":"arg"+si}function Ma(ra,si){if(rt){if(Wn.tracker&&Wn.tracker.moduleResolverHost){var Bi=gT(ra);if(Bi){var Pi=e.createGetCanonicalFileName(!!W.useCaseSensitiveFileNames),ts={getCanonicalFileName:Pi,getCurrentDirectory:function(){return Wn.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return Wn.tracker.moduleResolverHost.getCommonSourceDirectory()}},yo=e.getResolvedExternalModuleName(ts,Bi);return e.factory.createStringLiteral(yo)}}}else if(Wn.tracker&&Wn.tracker.trackExternalModuleSymbolOfImportTypeNode){var Us=Tl(si,si,void 0);Us&&Wn.tracker.trackExternalModuleSymbolOfImportTypeNode(Us)}return si}}}function Ai(Wn,gn,$r){var rt=Oa(e.factory.createPropertyDeclaration,166,!0),Gt=Oa(function(Yn,pt,oa,Wt,Jt){return e.factory.createPropertySignature(pt,oa,Wt,Jt)},165,!1),Tt=gn.enclosingDeclaration,na=[],da=new e.Set,_t=[],nr=gn;gn=Nt(Nt({},nr),{usedSymbolNames:new e.Set(nr.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:Nt(Nt({},nr.tracker),{trackSymbol:function(Yn,pt,oa){var Wt=Rf(Yn,pt,oa,!1);if(Wt.accessibility===0){var Jt=Qn(Yn,gn,oa);Yn.flags&4||Qo(Jt[0])}else nr.tracker&&nr.tracker.trackSymbol&&nr.tracker.trackSymbol(Yn,pt,oa)}})}),e.forEachEntry(Wn,function(Yn,pt){var oa=e.unescapeLeadingUnderscores(pt);Mo(Yn,oa)});var Tr=!$r,Wr=Wn.get("export=");return Wr&&Wn.size>1&&Wr.flags&2097152&&(Wn=e.createSymbolTable(),Wn.set("export=",Wr)),ts(Wn),ra(na);function Jr(Yn){return!!Yn&&Yn.kind===78}function nt(Yn){return e.isVariableStatement(Yn)?e.filter(e.map(Yn.declarationList.declarations,e.getNameOfDeclaration),Jr):e.filter([e.getNameOfDeclaration(Yn)],Jr)}function ht(Yn){var pt=e.find(Yn,e.isExportAssignment),oa=e.findIndex(Yn,e.isModuleDeclaration),Wt=oa!==-1?Yn[oa]:void 0;if(Wt&&pt&&pt.isExportEquals&&e.isIdentifier(pt.expression)&&e.isIdentifier(Wt.name)&&e.idText(Wt.name)===e.idText(pt.expression)&&Wt.body&&e.isModuleBlock(Wt.body)){var Jt=e.filter(Yn,function(Na){return!!(e.getEffectiveModifierFlags(Na)&1)}),Va=Wt.name,Aa=Wt.body;if(e.length(Jt)&&(Wt=e.factory.updateModuleDeclaration(Wt,Wt.decorators,Wt.modifiers,Wt.name,Aa=e.factory.updateModuleBlock(Aa,e.factory.createNodeArray(wr(wr([],Wt.body.statements),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(Jt,function(Na){return nt(Na)}),function(Na){return e.factory.createExportSpecifier(void 0,Na)})),void 0)])))),Yn=wr(wr(wr([],Yn.slice(0,oa)),[Wt]),Yn.slice(oa+1))),!e.find(Yn,function(Na){return Na!==Wt&&e.nodeHasName(Na,Va)})){na=[];var Qa=!e.some(Aa.statements,function(Na){return e.hasSyntacticModifier(Na,1)||e.isExportAssignment(Na)||e.isExportDeclaration(Na)});e.forEach(Aa.statements,function(Na){Es(Na,Qa?1:0)}),Yn=wr(wr([],e.filter(Yn,function(Na){return Na!==Wt&&Na!==pt})),na)}}return Yn}function ha(Yn){var pt=e.filter(Yn,function(Ta){return e.isExportDeclaration(Ta)&&!Ta.moduleSpecifier&&!!Ta.exportClause&&e.isNamedExports(Ta.exportClause)});if(e.length(pt)>1){var oa=e.filter(Yn,function(Ta){return!e.isExportDeclaration(Ta)||!!Ta.moduleSpecifier||!Ta.exportClause});Yn=wr(wr([],oa),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(pt,function(Ta){return e.cast(Ta.exportClause,e.isNamedExports).elements})),void 0)])}var Wt=e.filter(Yn,function(Ta){return e.isExportDeclaration(Ta)&&!!Ta.moduleSpecifier&&!!Ta.exportClause&&e.isNamedExports(Ta.exportClause)});if(e.length(Wt)>1){var Jt=e.group(Wt,function(Ta){return e.isStringLiteral(Ta.moduleSpecifier)?">"+Ta.moduleSpecifier.text:">"});if(Jt.length!==Wt.length)for(var Va=function(Ta){Ta.length>1&&(Yn=wr(wr([],e.filter(Yn,function(Ri){return Ta.indexOf(Ri)===-1})),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(Ta,function(Ri){return e.cast(Ri.exportClause,e.isNamedExports).elements})),Ta[0].moduleSpecifier)]))},Aa=0,Qa=Jt;Aa=0){var oa=Yn[pt],Wt=e.mapDefined(oa.exportClause.elements,function(Jt){if(!Jt.propertyName){var Va=e.indicesOf(Yn),Aa=e.filter(Va,function(Ri){return e.nodeHasName(Yn[Ri],Jt.name)});if(e.length(Aa)&&e.every(Aa,function(Ri){return si(Yn[Ri])})){for(var Qa=0,Na=Aa;Qa0&&e.isSingleOrDoubleQuote(Wt.charCodeAt(0))?e.stripQuotes(Wt):Wt}return pt==="default"?pt="_default":pt==="export="&&(pt="_exports"),pt=e.isIdentifierText(pt,on)&&!e.isStringANonContextualKeyword(pt)?pt:"_"+pt.replace(/[^a-zA-Z0-9]/g,"_"),pt}function Mo(Yn,pt){var oa=v(Yn);return gn.remappedSymbolNames.has(oa)?gn.remappedSymbolNames.get(oa):(pt=Eo(Yn,pt),gn.remappedSymbolNames.set(oa,pt),pt)}}}function sc(n,r,i,o){return i===void 0&&(i=16384),o?s(o).getText():e.usingSingleLineStringWriter(s);function s(f){var S=e.factory.createTypePredicateNode(n.kind===2||n.kind===3?e.factory.createToken(127):void 0,n.kind===1||n.kind===3?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&oe.typeToTypeNode(n.type,r,Xd(i)|70221824|512)),q=e.createPrinter({removeComments:!0}),_e=r&&e.getSourceFileOfNode(r);return q.writeNode(4,S,_e,f),f}}function lc(n){for(var r=[],i=0,o=0;o=0){for(var o=mn.length,s=i;s=0;i--){if(Yd(mn[i],Ba[i]))return-1;if(mn[i]===n&&Ba[i]===r)return i}return-1}function Yd(n,r){switch(r){case 0:return!!Ua(n).type;case 5:return!!ia(n).resolvedEnumType;case 2:return!!Ua(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved}return e.Debug.assertNever(r)}function wl(){return mn.pop(),Ba.pop(),wa.pop()}function rf(n){return e.findAncestor(e.getRootDeclaration(n),function(r){switch(r.kind){case 250:case 251:case 266:case 265:case 264:case 263:return!1;default:return!0}}).parent}function zp(n){var r=po(Hs(n));return r.typeParameters?uf(r,e.map(r.typeParameters,function(i){return kn})):r}function qo(n,r){var i=Ka(n,r);return i?d(i):void 0}function qp(n,r){return qo(n,r)||nc(r)&&Uo(n,1)||Uo(n,0)||In}function zi(n){return n&&(n.flags&1)!==0}function Pu(n){var r=At(n);return r&&Ua(r).type||er(n,!1)}function Pf(n,r,i){if(n=Ms(n,function(en){return!(en.flags&98304)}),n.flags&131072)return Mr;if(n.flags&1048576)return Yo(n,function(en){return Pf(en,r,i)});var o=la(e.map(r,Pp));if(jf(n)||Sd(o)){if(o.flags&131072)return n;var s=EI();return s?eg(s,[n,o]):Qe}for(var f=e.createSymbolTable(),S=0,q=ki(n);S=2?TI(kn):fr;var S=e.map(o,function(Pe){return e.isOmittedExpression(Pe)?kn:Ec(Pe,r,i)}),q=e.findLastIndex(o,function(Pe){return!(Pe===f||e.isOmittedExpression(Pe)||f_(Pe))},o.length-1)+1,_e=e.map(o,function(Pe,Ue){return Pe===f?4:Ue>=q?2:1}),Oe=ou(S,_e);return r&&(Oe=wS(Oe),Oe.pattern=n,Oe.objectFlags|=262144),Oe}function vu(n,r,i){return r===void 0&&(r=!1),i===void 0&&(i=!1),n.kind===197?Gf(n,r,i):$d(n,r,i)}function fc(n,r){return dn(er(n,!0),n,r)}function Le(n){var r=At(n),i=sI(!1);return i&&r&&r===i}function dn(n,r,i){return n?(n.flags&4096&&Le(r.parent)&&(n=sb(r)),i&&Kh(r,n),n.flags&8192&&(e.isBindingElement(r)||!r.type)&&n.symbol!==At(r)&&(n=qr),_l(n)):(n=e.isParameter(r)&&r.dotDotDotToken?fr:kn,i&&(Fn(r)||up(r,n)),n)}function Fn(n){var r=e.getRootDeclaration(n),i=r.kind===161?r.parent:r;return Cy(i)}function rr(n){var r=e.getEffectiveTypeAnnotationNode(n);if(r)return va(r)}function Nr(n){var r=Ua(n);if(!r.type){var i=et(n);r.type||(r.type=i)}return r.type}function et(n){if(n.flags&4194304)return zp(n);if(n===P)return kn;if(n.flags&134217728&&n.valueDeclaration){var r=At(e.getSourceFileOfNode(n.valueDeclaration)),i=Bt(r.flags,"exports");i.declarations=r.declarations?r.declarations.slice():[],i.parent=n,i.target=r,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),r.members&&(i.members=new e.Map(r.members)),r.exports&&(i.exports=new e.Map(r.exports));var o=e.createSymbolTable();return o.set("exports",i),jo(n,o,e.emptyArray,e.emptyArray,void 0,void 0)}e.Debug.assertIsDefined(n.valueDeclaration);var s=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var f=e.getEffectiveTypeAnnotationNode(s);if(f===void 0)return kn;var S=Um(f);return zi(S)||S===In?S:Qe}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?_l(cp(Ya(s.statements[0].expression))):Mr;if(!cl(n,0))return n.flags&512&&!(n.flags&67108864)?ls(n):Ll(n);var q;if(s.kind===267)q=dn(Ds(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))q=fo(n);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(n.flags&9136)return ls(n);q=e.isBinaryExpression(s.parent)?fo(n):rr(s)||kn}else if(e.isPropertyAssignment(s))q=rr(s)||mD(s);else if(e.isJsxAttribute(s))q=rr(s)||cA(s);else if(e.isShorthandPropertyAssignment(s))q=rr(s)||b_(s.name,0);else if(e.isObjectLiteralMethod(s))q=rr(s)||_D(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))q=fc(s,!0);else if(e.isEnumDeclaration(s))q=ls(n);else if(e.isEnumMember(s))q=Gu(n);else if(e.isAccessor(s))q=es(n)||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(n));return wl()?q:n.flags&512&&!(n.flags&67108864)?ls(n):Ll(n)}function xt(n){if(n)if(n.kind===168){var r=e.getEffectiveReturnTypeNode(n);return r}else{var i=e.getEffectiveSetAccessorTypeAnnotationNode(n);return i}}function Kt(n){var r=xt(n);return r&&va(r)}function ai(n){var r=yT(n);return r&&r.symbol}function La(n){return Vf(dc(n))}function ji(n){var r=Ua(n);return r.type||(r.type=ao(n)||e.Debug.fail("Read type of accessor must always produce a type"))}function $o(n){var r=Ua(n);return r.writeType||(r.writeType=ao(n,!0))}function ao(n,r){if(r===void 0&&(r=!1),!cl(n,0))return Qe;var i=es(n,r);if(!wl()&&(i=kn,Rn)){var o=e.getDeclarationOfKind(n,168);cn(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,Ga(n))}return i}function es(n,r){r===void 0&&(r=!1);var i=e.getDeclarationOfKind(n,168),o=e.getDeclarationOfKind(n,169),s=Kt(o);if(r&&s)return _e(s,n);if(i&&e.isInJSFile(i)){var f=wu(i);if(f)return _e(f,n)}var S=Kt(i);if(S)return _e(S,n);if(s)return s;if(i&&i.body){var q=Sy(i);return _e(q,n)}if(o)return Cy(o)||$t(Rn,o,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ga(n)),kn;if(i)return e.Debug.assert(!!i,"there must exist a getter as we are current checking either setter or getter in this function"),Cy(i)||$t(Rn,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ga(n)),kn;return;function _e(Oe,Pe){if(e.getCheckFlags(Pe)&1){var Ue=Ua(Pe);return za(Oe,Ue.mapper)}return Oe}}function ss(n){var r=Bu(Os(n));return r.flags&8650752?r:r.flags&2097152?e.find(r.types,function(i){return!!(i.flags&8650752)}):void 0}function ls(n){var r=Ua(n),i=r;if(!r.type){var o=n.valueDeclaration&&by(n.valueDeclaration,!1);if(o){var s=k0(n,o);s&&(n=r=s)}i.type=r.type=Ss(n)}return r.type}function Ss(n){var r=n.valueDeclaration;if(n.flags&1536&&e.isShorthandAmbientModuleSymbol(n))return kn;if(r&&(r.kind===217||e.isAccessExpression(r)&&r.parent.kind===217))return fo(n);if(n.flags&512&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var i=sl(n);if(i!==n){if(!cl(n,0))return Qe;var o=wi(n.exports.get("export=")),s=fo(o,o===i?void 0:i);return wl()?s:Ll(n)}}var f=Sl(16,n);if(n.flags&32){var S=ss(n);return S?Qi([f,S]):f}else return Ke&&n.flags&16777216?Vu(f):f}function Gu(n){var r=Ua(n);return r.type||(r.type=H_(n))}function ns(n){var r=Ua(n);if(!r.type){var i=Fo(n),o=n.declarations&&Cc(ac(n),!0);r.type=o!=null&&o.declarations&&By(o.declarations)&&n.declarations.length?Ca(o):By(n.declarations)?Sr:i.flags&111551?d(i):Qe}return r.type}function al(n){var r=Ua(n);if(!r.type){if(!cl(n,0))return r.type=Qe;var i=za(d(r.target),r.mapper);wl()||(i=Ll(n)),r.type=i}return r.type}function Ll(n){var r=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(cn(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ga(n)),Qe):(Rn&&(r.kind!==161||r.initializer)&&cn(n.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,Ga(n)),kn)}function _d(n){var r=Ua(n);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=r.deferralParent.flags&1048576?la(r.deferralConstituents):Qi(r.deferralConstituents)),r.type}function hu(n){if(n.flags&98304){var r=$o(n);if(r)return r}return d(n)}function d(n){var r=e.getCheckFlags(n);return r&65536?_d(n):r&1?al(n):r&262144?vh(n):r&8192?SN(n):n.flags&7?Nr(n):n.flags&9136?ls(n):n.flags&8?Gu(n):n.flags&98304?ji(n):n.flags&2097152?ns(n):Qe}function V(n,r){return n!==void 0&&r!==void 0&&(e.getObjectFlags(n)&4)!==0&&n.target===r}function he(n){return e.getObjectFlags(n)&4?n.target:n}function nn(n,r){return i(n);function i(o){if(e.getObjectFlags(o)&7){var s=he(o);return s===r||e.some(Gl(s),i)}else if(o.flags&2097152)return e.some(o.types,i);return!1}}function On(n,r){for(var i=0,o=r;i0)return!0;if(n.flags&8650752){var r=Js(n);return!!r&&Xo(r)}return!1}function Fu(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function gd(n,r,i){var o=e.length(r),s=e.isInJSFile(i);return e.filter(Ea(n,1),function(f){return(s||o>=Xc(f.typeParameters))&&o<=e.length(f.typeParameters)})}function ep(n,r,i){var o=gd(n,r,i),s=e.map(r,va);return e.sameMap(o,function(f){return e.some(f.typeParameters)?uv(f,s,e.isInJSFile(i)):f})}function Bu(n){if(!n.resolvedBaseConstructorType){var r=n.symbol.valueDeclaration,i=e.getEffectiveBaseTypeNode(r),o=Fu(n);if(!o)return n.resolvedBaseConstructorType=Be;if(!cl(n,1))return Qe;var s=Ya(o.expression);if(i&&o!==i&&(e.Debug.assert(!i.typeArguments),Ya(i.expression)),s.flags&2621440&&Pc(s),!wl())return cn(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ga(n.symbol)),n.resolvedBaseConstructorType=Qe;if(!(s.flags&1)&&s!==Er&&!af(s)){var f=cn(o.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,gt(s));if(s.flags&262144){var S=Zm(s),q=In;if(S){var _e=Ea(S,1);_e[0]&&(q=Hi(_e[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,Ga(s.symbol),gt(q)))}return n.resolvedBaseConstructorType=Qe}n.resolvedBaseConstructorType=s}return n.resolvedBaseConstructorType}function Fg(n){var r=e.emptyArray;if(n.symbol.declarations)for(var i=0,o=n.symbol.declarations;i=_n&&_e<=Un){var Qn=Un?Sh(en,lf(q,en.typeParameters,_n,S)):tp(en);Qn.typeParameters=n.localTypeParameters,Qn.resolvedReturnType=n,Qn.flags=s?Qn.flags|4:Qn.flags&-5,Oe.push(Qn)}}return Oe}function z_(n,r,i,o,s){for(var f=0,S=n;f0)return;for(var o=1;o1&&(i=i===void 0?o:-1);for(var s=0,f=n[o];s1){var Oe=S.thisParameter,Pe=e.forEach(q,function(Xr){return Xr.thisParameter});if(Pe){var Ue=Qi(e.mapDefined(q,function(Xr){return Xr.thisParameter&&d(Xr.thisParameter)}));Oe=am(Pe,Ue)}_e=K_(S,q),_e.thisParameter=Oe}(r||(r=[])).push(_e)}}}}if(!e.length(r)&&i!==-1){for(var en=n[i!==void 0?i:0],_n=en.slice(),Un=function(Xr){if(Xr!==en){var It=Xr[0];if(e.Debug.assert(!!It,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_n=It.typeParameters&&e.some(_n,function(bt){return!!bt.typeParameters&&!dh(It.typeParameters,bt.typeParameters)})?void 0:e.map(_n,function(bt){return ph(bt,It)}),!_n)return"break"}},Qn=0,sr=n;Qn=s?n:r,S=f===n?r:n,q=f===n?o:s,_e=du(n)||du(r),Oe=_e&&!du(f),Pe=new Array(q+(Oe?1:0)),Ue=0;Ue=fu(f)&&Ue>=fu(S),lr=Ue>=o?void 0:v_(n,Ue),Fr=Ue>=s?void 0:v_(r,Ue),Xr=lr===Fr?lr:lr?Fr?void 0:lr:Fr,It=Bt(1|(sr&&!Qn?16777216:0),Xr||"arg"+Ue);It.type=Qn?Ps(Un):Un,Pe[Ue]=It}if(Oe){var bt=Bt(1,"args");bt.type=Ps(Gc(S,q)),S===r&&(bt.type=za(bt.type,i)),Pe[q]=bt}return Pe}function ph(n,r){var i=n.typeParameters||r.typeParameters,o;n.typeParameters&&r.typeParameters&&(o=Dl(r.typeParameters,n.typeParameters));var s=n.declaration,f=SE(n,r,o),S=TE(n.thisParameter,r.thisParameter,o),q=Math.max(n.minArgumentCount,r.minArgumentCount),_e=Kc(s,i,S,f,void 0,void 0,q,(n.flags|r.flags)&39);return _e.compositeKind=1048576,_e.compositeSignatures=e.concatenate(n.compositeKind!==2097152&&n.compositeSignatures||[n],[r]),o&&(_e.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?nm(n.mapper,o):o),_e}function X_(n,r){for(var i=[],o=!1,s=0,f=n;s0}),i=e.map(n,Xo);if(r>0&&r===e.countWhere(i,function(s){return s})){var o=i.indexOf(!0);i[o]=!1}return i}function AE(n,r,i,o){for(var s=[],f=0;f0&&(en=e.map(en,function(_n){var Un=tp(_n);return Un.resolvedReturnType=AE(Hi(_n),f,S,Pe),Un})),i=qg(i,en)}r=qg(r,Ea(Ue,0)),o=zg(o,Gi(Ue,0)),s=zg(s,Gi(Ue,1))},Oe=0;Oe=7):r.flags&528?Ot:r.flags&12288?XS(on>=2):r.flags&67108864?Mr:r.flags&4194304?ka:r.flags&2&&!Ke?Mr:r}function Pn(n){return zt($e(zt(n)))}function hr(n,r,i){for(var o,s,f,S,q,_e=n.flags&1048576,Oe=_e?0:16777216,Pe=4,Ue=0,en=!1,_n=0,Un=n.types;_n2?(ua.checkFlags|=65536,ua.deferralParent=n,ua.deferralConstituents=qa):ua.type=_e?la(qa):Qi(qa),ua}}function yt(n,r,i){var o,s,f=!((o=n.propertyCacheWithoutObjectFunctionPropertyAugment)===null||o===void 0)&&o.get(r)||!i?(s=n.propertyCache)===null||s===void 0?void 0:s.get(r):void 0;if(!f&&(f=hr(n,r,i),f)){var S=i?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable());S.set(r,f)}return f}function Mt(n,r,i){var o=yt(n,r,i);return o&&!(e.getCheckFlags(o)&16)?o:void 0}function zt(n){return n.flags&1048576&&n.objectFlags&67108864?n.resolvedReducedType||(n.resolvedReducedType=Ci(n)):n.flags&2097152?(n.objectFlags&67108864||(n.objectFlags|=67108864|(e.some(qm(n),oi)?134217728:0)),n.objectFlags&134217728?Br:n):n}function Ci(n){var r=e.sameMap(n.types,zt);if(r===n.types)return n;var i=la(r);return i.flags&1048576&&(i.resolvedReducedType=i),i}function oi(n){return mo(n)||Ko(n)}function mo(n){return!(n.flags&16777216)&&(e.getCheckFlags(n)&131264)===192&&!!(d(n).flags&131072)}function Ko(n){return!n.valueDeclaration&&!!(e.getCheckFlags(n)&1024)}function fl(n,r){if(r.flags&2097152&&e.getObjectFlags(r)&134217728){var i=e.find(qm(r),mo);if(i)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gt(r,void 0,536870912),Ga(i));var o=e.find(qm(r),Ko);if(o)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gt(r,void 0,536870912),Ga(o))}return n}function Ka(n,r,i){if(n=Pn(n),n.flags&524288){var o=Pc(n),s=o.members.get(r);if(s&&_u(s))return s;if(i)return;var f=o===gr?Ui:o.callSignatures.length?go:o.constructSignatures.length?wo:void 0;if(f){var S=Uf(f,r);if(S)return S}return Uf(Ji,r)}if(n.flags&3145728)return Mt(n,r,i)}function _s(n,r){if(n.flags&3670016){var i=Pc(n);return r===0?i.callSignatures:i.constructSignatures}return e.emptyArray}function Ea(n,r){return _s(Pn(n),r)}function zo(n,r){if(n.flags&3670016){var i=Pc(n);return r===0?i.stringIndexInfo:i.numberIndexInfo}}function qc(n,r){var i=zo(n,r);return i&&i.type}function Gi(n,r){return zo(Pn(n),r)}function Uo(n,r){return qc(Pn(n),r)}function bd(n,r){if(Hh(n)){for(var i=[],o=0,s=ki(n);o=0),i>=fu(r,3)}var o=e.getImmediatelyInvokedFunctionExpression(n.parent);return o?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=o.arguments.length:!1}function FE(n){return e.isPropertyDeclaration(n)&&n.questionToken}function iv(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var r=n.isBracketed,i=n.typeExpression;return r||!!i&&i.type.kind===308}function Zp(n,r,i,o){return{kind:n,parameterName:r,parameterIndex:i,type:o}}function Xc(n){var r=0;if(n)for(var i=0;i=i&&f<=s){for(var S=n?n.slice():[],q=f;qq.arguments.length&&!_n||Ym(Ue);Qn||(s=i.length)}if((n.kind===168||n.kind===169)&&Ls(n)&&(!S||!f)){var sr=n.kind===168?169:168,lr=e.getDeclarationOfKind(At(n),sr);lr&&(f=ai(lr))}var Fr=n.kind===167?Os(wi(n.parent.symbol)):void 0,Xr=Fr?Fr.localTypeParameters:Q_(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&Th(n,i))&&(o|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(o|=4),r.resolvedSignature=Kc(n,Xr,f,i,void 0,void 0,s,o)}return r.resolvedSignature}function Th(n,r){if(e.isJSDocSignature(n)||!lv(n))return!1;var i=e.lastOrUndefined(n.parameters),o=i?e.getJSDocParameterTags(i):e.getJSDocTags(n).filter(e.isJSDocParameterTag),s=e.firstDefined(o,function(S){return S.typeExpression&&e.isJSDocVariadicType(S.typeExpression.type)?S.typeExpression.type:void 0}),f=Bt(3,"args",32768);return f.type=s?Ps(va(s.type)):fr,s&&r.pop(),r.push(f),!0}function ov(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var r=e.getJSDocTypeTag(n);return(r==null?void 0:r.typeExpression)&&lm(va(r.typeExpression))}}function sv(n){var r=ov(n);return r&&Hi(r)}function lv(n){var r=ia(n);return r.containsArgumentsReference===void 0&&(r.flags&8192?r.containsArgumentsReference=!0:r.containsArgumentsReference=i(n.body)),r.containsArgumentsReference;function i(o){if(!o)return!1;switch(o.kind){case 78:return o.escapedText===xe.escapedName&&gf(o)===xe;case 164:case 166:case 168:case 169:return o.name.kind===159&&i(o.name);case 202:case 203:return i(o.expression);default:return!e.nodeStartsNewLexicalEnvironment(o)&&!e.isPartOfTypeNode(o)&&!!e.forEachChild(o,i)}}}function cf(n){if(!n||!n.declarations)return e.emptyArray;for(var r=[],i=0;i0&&o.body){var s=n.declarations[i-1];if(o.parent===s.parent&&o.kind===s.kind&&o.pos===s.end)continue}r.push(dc(o))}}return r}function cv(n){var r=Si(n,n);if(r){var i=sl(r);if(i)return d(i)}return kn}function Vf(n){if(n.thisParameter)return d(n.thisParameter)}function Zl(n){if(!n.resolvedTypePredicate){if(n.target){var r=Zl(n.target);n.resolvedTypePredicate=r?yR(r,n.mapper):ii}else if(n.compositeSignatures)n.resolvedTypePredicate=kI(n.compositeSignatures,n.compositeKind)||ii;else{var i=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),o=void 0;if(!i&&e.isInJSFile(n.declaration)){var s=ov(n.declaration);s&&n!==s&&(o=Zl(s))}n.resolvedTypePredicate=i&&e.isTypePredicateNode(i)?Kx(i,n):o||ii}e.Debug.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===ii?void 0:n.resolvedTypePredicate}function Kx(n,r){var i=n.parameterName,o=n.type&&va(n.type);return i.kind===188?Zp(n.assertsModifier?2:0,void 0,void 0,o):Zp(n.assertsModifier?3:1,i.escapedText,e.findIndex(r.parameters,function(s){return s.escapedName===i.escapedText}),o)}function RS(n,r,i){return r!==2097152?la(n,i):Qi(n)}function Hi(n){if(!n.resolvedReturnType){if(!cl(n,3))return Qe;var r=n.target?za(Hi(n.target),n.mapper):n.compositeSignatures?za(RS(e.map(n.compositeSignatures,Hi),n.compositeKind,2),n.mapper):Sm(n.declaration)||(e.nodeIsMissing(n.declaration.body)?kn:Sy(n.declaration));if(n.flags&8?r=sL(r):n.flags&16&&(r=Vu(r)),!wl()){if(n.declaration){var i=e.getEffectiveReturnTypeNode(n.declaration);if(i)cn(i,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Rn){var o=n.declaration,s=e.getNameOfDeclaration(o);s?cn(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)):cn(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)}}r=kn}n.resolvedReturnType=r}return n.resolvedReturnType}function Sm(n){if(n.kind===167)return Os(wi(n.parent.symbol));if(e.isJSDocConstructSignature(n))return va(n.parameters[0].type);var r=e.getEffectiveReturnTypeNode(n);if(r)return va(r);if(n.kind===168&&Ls(n)){var i=e.isInJSFile(n)&&wu(n);if(i)return i;var o=e.getDeclarationOfKind(At(n),169),s=Kt(o);if(s)return s}return sv(n)}function BE(n){return!n.resolvedReturnType&&kf(n,3)>=0}function zx(n){return NS(n)||kn}function NS(n){if(le(n)){var r=d(n.parameters[n.parameters.length-1]),i=vi(r)?lg(r):r;return i&&Uo(i,1)}}function uv(n,r,i,o){var s=UE(n,lf(r,n.typeParameters,Xc(n.typeParameters),i));if(o){var f=PA(Hi(s));if(f){var S=tp(f);S.typeParameters=o;var q=tp(s);return q.resolvedReturnType=Qm(S),q}}return s}function UE(n,r){var i=n.instantiations||(n.instantiations=new e.Map),o=Mc(r),s=i.get(o);return s||i.set(o,s=Sh(n,r)),s}function Sh(n,r){return Cm(n,qx(n,r),!0)}function qx(n,r){return Dl(n.typeParameters,r)}function $_(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Xx(n)):n}function Xx(n){return Cm(n,O1(n.typeParameters),!0)}function Yx(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=Qx(n)):n}function Qx(n){return uv(n,e.map(n.typeParameters,function(r){return r.target&&!Ul(r.target)?r.target:r}),e.isInJSFile(n.declaration))}function Zx(n){var r=n.typeParameters;if(r){if(n.baseSignatureCache)return n.baseSignatureCache;for(var i=O1(r),o=Dl(r,e.map(r,function(S){return Ul(S)||In})),s=e.map(r,function(S){return za(S,o)||In}),f=0;f1&&(r+=":"+f),o+=f}return r}function $m(n,r){return n?"@"+v(n)+(r?":"+Mc(r):""):""}function WE(n,r){for(var i=0,o=0,s=n;oo.length)){var _e=S&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent),Oe=f===o.length?_e?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:_e?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,Pe=gt(i,void 0,2);if(cn(n,Oe,Pe,f,o.length),!S)return Qe}if(n.kind===174&&e1(n,e.length(n.typeArguments)!==o.length))return jE(i,n,void 0);var Ue=e.concatenate(i.outerTypeParameters,lf(HE(n),o,f,S));return uf(i,Ue)}return op(n,r)?i:Qe}function eg(n,r,i,o){var s=po(n);if(s===bn&&U.has(n.escapedName)&&r&&r.length===1)return Nh(n,r[0]);var f=Ua(n),S=f.typeParameters,q=Mc(r)+$m(i,o),_e=f.instantiations.get(q);return _e||f.instantiations.set(q,_e=w1(s,Dl(S,lf(r,S,Xc(S),e.isInJSFile(n.valueDeclaration))),i,o)),_e}function nI(n,r){var i=po(r),o=Ua(r).typeParameters;if(o){var s=e.length(n.typeArguments),f=Xc(o);if(so.length)return cn(n,f===o.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ga(r),f,o.length),Qe;var S=$p(n),q=S&&(FS(r)||!FS(S))?S:void 0;return eg(r,HE(n),q,Am(q))}return op(n,r)?i:Qe}function FS(n){var r,i=(r=n.declarations)===null||r===void 0?void 0:r.find(e.isTypeAlias);return!!(i&&e.getContainingFunction(i))}function ng(n){switch(n.kind){case 174:return n.typeName;case 224:var r=n.expression;if(e.isEntityNameExpression(r))return r}}function e_(n,r,i){return n&&Oo(n,r,i)||Hn}function Dh(n,r){if(r===Hn)return Qe;if(r=xf(r)||r,r.flags&96)return GS(n,r);if(r.flags&524288)return nI(n,r);var i=J_(r);if(i)return op(n,r)?Al(i):Qe;if(r.flags&111551&&Ch(n)){var o=rI(n,r);return o||(e_(ng(n),788968),d(r))}return Qe}function rI(n,r){var i=ia(n);if(!i.resolvedJSDocType){var o=d(r),s=o;if(r.valueDeclaration){var f=n.kind===196&&n.qualifier;o.symbol&&o.symbol!==r&&f&&(s=Dh(n,o.symbol))}i.resolvedJSDocType=s}return i.resolvedJSDocType}function BS(n,r){if(r.flags&3||r===n)return n;var i=Uu(n)+">"+Uu(r),o=We.get(i);if(o)return o;var s=ll(33554432);return s.baseType=n,s.substitute=r,We.set(i,s),s}function US(n){return n.kind===180&&n.elements.length===1}function VS(n,r,i){return US(r)&&US(i)?VS(n,r.elements[0],i.elements[0]):sp(va(r))===n?va(i):void 0}function WS(n,r){for(var i,o=!0;r&&!e.isStatement(r)&&r.kind!==312;){var s=r.parent;if(s.kind===161&&(o=!o),(o||n.flags&8650752)&&s.kind===185&&r===s.trueType){var f=VS(n,s.checkType,s.extendsType);f&&(i=e.append(i,f))}r=s}return i?BS(n,Qi(e.append(i,n))):n}function Ch(n){return!!(n.flags&4194304)&&(n.kind===174||n.kind===196)}function op(n,r){return n.typeArguments?(cn(n,e.Diagnostics.Type_0_is_not_generic,r?Ga(r):n.typeName?e.declarationNameToString(n.typeName):p),!1):!0}function jS(n){if(e.isIdentifier(n.typeName)){var r=n.typeArguments;switch(n.typeName.escapedText){case"String":return op(n),Pr;case"Number":return op(n),tt;case"Boolean":return op(n),Rr;case"Void":return op(n),br;case"Undefined":return op(n),Be;case"Null":return op(n),zn;case"Function":case"function":return op(n),Ui;case"array":return(!r||!r.length)&&!Rn?fr:void 0;case"promise":return(!r||!r.length)&&!Rn?Pv(kn):void 0;case"Object":if(r&&r.length===2){if(e.isJSDocIndexSignature(n)){var i=va(r[0]),o=va(r[1]),s=pc(o,!1);return jo(void 0,de,e.emptyArray,e.emptyArray,i===Pr?s:void 0,i===tt?s:void 0)}return kn}return op(n),Rn?void 0:kn}}}function tI(n){var r=va(n.type);return Ke?Pb(r,65536):r}function fv(n){var r=ia(n);if(!r.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return r.resolvedSymbol=Hn,r.resolvedType=Ds(n.parent.expression);var i=void 0,o=void 0,s=788968;Ch(n)&&(o=jS(n),o||(i=e_(ng(n),s,!0),i===Hn?i=e_(ng(n),s|111551):e_(ng(n),s),o=Dh(n,i))),o||(i=e_(ng(n),s),o=Dh(n,i)),r.resolvedSymbol=i,r.resolvedType=o}return r.resolvedType}function HE(n){return e.map(n.typeArguments,va)}function HS(n){var r=ia(n);return r.resolvedType||(r.resolvedType=Al(_l(Ya(n.exprName)))),r.resolvedType}function JS(n,r){function i(s){var f=s.declarations;if(f)for(var S=0,q=f;S=0)return dv(e.map(r,function(lr,Fr){return n.elementFlags[Fr]&8?lr:In}))?Yo(r[f],function(lr){return r1(n,e.replaceElement(r,f,lr))}):Qe}for(var S=[],q=[],_e=[],Oe=-1,Pe=-1,Ue=-1,en=function(lr){var Fr=r[lr],Xr=n.elementFlags[lr];if(Xr&8)if(Fr.flags&58982400||Bl(Fr))sr(Fr,8,(i=n.labeledElementDeclarations)===null||i===void 0?void 0:i[lr]);else if(vi(Fr)){var It=qi(Fr);if(It.length+S.length>=1e4)return cn(be,e.isPartOfTypeNode(be)?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(It,function(bt,ca){var jt;return sr(bt,Fr.target.elementFlags[ca],(jt=Fr.target.labeledElementDeclarations)===null||jt===void 0?void 0:jt[ca])})}else sr(xd(Fr)&&Uo(Fr,1)||Qe,4,(o=n.labeledElementDeclarations)===null||o===void 0?void 0:o[lr]);else sr(Fr,Xr,(s=n.labeledElementDeclarations)===null||s===void 0?void 0:s[lr])},_n=0;_n=0&&Peo.fixedLength?sN(n)||ou(e.emptyArray):ou(qi(n).slice(r,s),o.elementFlags.slice(r,s),!1,o.labeledElementDeclarations&&o.labeledElementDeclarations.slice(r,s))}function t1(n){return la(e.append(e.arrayOf(n.target.fixedLength,function(r){return cs(""+r)}),Eu(n.target.readonly?Go:oo)))}function a1(n,r){var i=e.findIndex(n.elementFlags,function(o){return!(o&r)});return i>=0?i:n.elementFlags.length}function Ih(n,r){return n.elementFlags.length-e.findLastIndex(n.elementFlags,function(i){return!(i&r)})-1}function CI(n){var r=va(n.type);return Ke?Vu(r):r}function Uu(n){return n.id}function Lm(n,r){return e.binarySearch(n,r,Uu,e.compareValues)>=0}function XE(n,r){var i=e.binarySearch(n,r,Uu,e.compareValues);return i<0?(n.splice(~i,0,r),!0):!1}function xI(n,r,i){var o=i.flags;if(o&1048576)return i1(n,r|(OI(i)?1048576:0),i.types);if(!(o&131072))if(r|=o&205258751,o&469499904&&(r|=262144),i===Cr&&(r|=8388608),!Ke&&o&98304)e.getObjectFlags(i)&131072||(r|=4194304);else{var s=n.length,f=s&&i.id>n[s-1].id?~s:e.binarySearch(n,i,Uu,e.compareValues);f<0&&n.splice(~f,0,i)}return r}function i1(n,r,i){for(var o=0,s=i;o0;){S--;var _e=n[S];if(s||_e.flags&469499904)for(var Oe=_e.flags&61603840?e.find(ki(_e),function(sr){return su(d(sr))}):void 0,Pe=Oe&&Al(d(Oe)),Ue=0,en=n;Ue1e6){e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map(function(sr){return sr.id})}),cn(be,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}}if(q++,Oe&&_n.flags&61603840){var Qn=qo(_n,Oe.escapedName);if(Qn&&su(Qn)&&Al(Qn)!==Pe)continue}if(_f(_e,_n,ni)&&(!(e.getObjectFlags(he(_e))&1)||!(e.getObjectFlags(he(_n))&1)||t_(_e,_n))){e.orderedRemoveItemAt(n,S);break}}}}return Tn.set(i,n),n}function RI(n,r,i){for(var o=n.length;o>0;){o--;var s=n[o],f=s.flags,S=f&128&&r&4||f&256&&r&8||f&2048&&r&64||f&8192&&r&4096||i&&f&32768&&r&16384||lp(s)&&Lm(n,s.regularType);S&&e.orderedRemoveItemAt(n,o)}}function NI(n){var r=e.filter(n,Oh);if(r.length)for(var i=n.length,o=function(){i--;var s=n[i];s.flags&128&&e.some(r,function(f){return pf(s,f)})&&e.orderedRemoveItemAt(n,i)};i>0;)o()}function OI(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function o1(n,r){for(var i=0,o=r;i0;){i--;var o=n[i],s=o.flags&4&&r&128||o.flags&8&&r&256||o.flags&64&&r&2048||o.flags&4096&&r&8192;s&&e.orderedRemoveItemAt(n,i)}}function FI(n,r){for(var i=0,o=n;i0;){r--;var o=n[r];if(o.flags&134217728)for(var s=0,f=i;s=1e5?(e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map(function(i){return i.id}),size:r}),cn(be,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function WI(n){for(var r=c1(n),i=[],o=0;o=0;S--)if(n[S].flags&1048576){var q=n[S].types,_e=q.length;s[S]=q[f%_e],f=Math.floor(f/_e)}var Oe=Qi(s);Oe.flags&131072||i.push(Oe)}return i}function jI(n){var r=ia(n);if(!r.resolvedType){var i=$p(n);r.resolvedType=Qi(e.map(n.types,va),i,Am(i))}return r.resolvedType}function u1(n,r){var i=ll(4194304);return i.type=n,i.stringsOnly=r,i}function HI(n){var r=Zu(4194304);return r.type=n,r}function JI(n,r){return r?n.resolvedStringIndexType||(n.resolvedStringIndexType=u1(n,!0)):n.resolvedIndexType||(n.resolvedIndexType=u1(n,!1))}function f1(n,r,i){return za(n,gv(r.mapper,yu(r),i))}function KI(n,r){var i=Ms(Tc(n),function(f){return!(r&&f.flags&5)}),o=n.declaration.nameType&&va(n.declaration.nameType),s=o&&Rd(i,function(f){return!!(f.flags&131084)})&&ki($e(Y_(n)));return o?la([Yo(i,function(f){return f1(o,n,f)}),Yo(la(e.map(s||e.emptyArray,function(f){return pv(f,8576)})),function(f){return f1(o,n,f)})]):i}function ag(n){return!!(n&&(n.flags&16777216&&(!n.root.isDistributive||ag(n.checkType))||n.flags&137363456&&e.some(n.types,ag)||n.flags&272629760&&ag(n.type)||n.flags&8388608&&ag(n.indexType)||n.flags&33554432&&ag(n.substitute)))}function Pp(n){return e.isPrivateIdentifier(n)?Br:e.isIdentifier(n)?cs(e.unescapeLeadingUnderscores(n.escapedText)):Al(e.isComputedPropertyName(n)?zf(n):Ya(n))}function zI(n){return cs({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}function pv(n,r){if(!(e.getDeclarationModifierFlagsFromSymbol(n)&24)){var i=Ua(rp(n)).nameType;if(!i)if(n.escapedName==="default")i=cs("default");else{var o=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);i=o&&Pp(o)||(e.isKnownSymbol(n)?void 0:cs(e.symbolName(n)))}if(i&&i.flags&r)return i}return Br}function Rh(n,r,i){var o=i&&(e.getObjectFlags(n)&7||n.aliasSymbol)?HI(n):void 0;return la(e.map(ki(n),function(s){return pv(s,r)}),1,void 0,void 0,o)}function d1(n){var r=Gi(n,1);return r!==yi?r:void 0}function Eu(n,r,i){r===void 0&&(r=we);var o=r===we&&!i;return n=zt(n),n.flags&1048576?Qi(e.map(n.types,function(s){return Eu(s,r,i)})):n.flags&2097152?la(e.map(n.types,function(s){return Eu(s,r,i)})):n.flags&58982400||s_(n)||Bl(n)&&ag(Bf(n))?JI(n,r):e.getObjectFlags(n)&32?KI(n,i):n===Cr?Cr:n.flags&2?Br:n.flags&131073?ka:r?!i&&Gi(n,0)?Pr:Rh(n,128,o):!i&&Gi(n,0)?la([Pr,tt,Rh(n,8192,o)]):d1(n)?la([tt,Rh(n,8320,o)]):Rh(n,8576,o)}function p1(n){if(we)return n;var r=yI();return r?eg(r,[n,Pr]):Pr}function qI(n){var r=p1(Eu(n));return r.flags&131072?Pr:r}function XI(n){var r=ia(n);if(!r.resolvedType)switch(n.operator){case 138:r.resolvedType=Eu(va(n.type));break;case 151:r.resolvedType=n.type.kind===148?sb(e.walkUpParenthesizedTypes(n.parent)):Qe;break;case 142:r.resolvedType=va(n.type);break;default:throw e.Debug.assertNever(n.operator)}return r.resolvedType}function YI(n){var r=ia(n);return r.resolvedType||(r.resolvedType=r_(wr([n.head.text],e.map(n.templateSpans,function(i){return i.literal.text})),e.map(n.templateSpans,function(i){return va(i.type)}))),r.resolvedType}function r_(n,r){var i=e.findIndex(r,function(Oe){return!!(Oe.flags&1179648)});if(i>=0)return dv(r)?Yo(r[i],function(Oe){return r_(n,e.replaceElement(r,i,Oe))}):Qe;if(e.contains(r,Cr))return Cr;var o=[],s=[],f=n[0];if(!_e(n,r))return Pr;if(o.length===0)return cs(f);if(s.push(f),e.every(s,function(Oe){return Oe===""})&&e.every(o,function(Oe){return!!(Oe.flags&4)}))return Pr;var S=Mc(o)+"|"+e.map(s,function(Oe){return Oe.length}).join(",")+"|"+s.join(""),q=Vr.get(S);return q||Vr.set(S,q=ZI(s,o)),q;function _e(Oe,Pe){for(var Ue=0;Ue=0){if(f&&Rd(r,function(Xa){return!Xa.target.hasRestElement})&&!(S&8)){var Qn=eb(f);vi(r)?cn(Qn,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,gt(r),Td(r),e.unescapeLeadingUnderscores(Ue)):cn(Qn,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(Ue),gt(r))}return Zt(Gi(r,1)),Yo(r,function(Xa){var di=lg(Xa)||Be;return q?la([di,Be]):di})}}if(!(i.flags&98304)&&rs(i,402665900)){if(r.flags&131073)return r;var sr=Gi(r,0),lr=rs(i,296)&&Gi(r,1)||sr;if(lr){if(S&1&&lr===sr){Pe&&cn(Pe,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,gt(i),gt(n));return}if(f&&!rs(i,12)){var Qn=eb(f);return cn(Qn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,gt(i)),q?la([lr.type,Be]):lr.type}return Zt(lr),q?la([lr.type,Be]):lr.type}if(i.flags&131072)return Br;if(ig(r))return kn;if(Pe&&!U0(r)){if(fp(r)){if(Rn&&i.flags&384)return Gn.add(e.createDiagnosticForNode(Pe,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,gt(r))),Be;if(i.flags&12){var Fr=e.map(r.properties,function(Xa){return d(Xa)});return la(e.append(Fr,Be))}}if(r.symbol===me&&Ue!==void 0&&me.exports.has(Ue)&&me.exports.get(Ue).flags&418)cn(Pe,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(Ue),gt(r));else if(Rn&&!ye.suppressImplicitAnyIndexErrors&&!s)if(Ue!==void 0&&DA(Ue,r)){var Xr=gt(r);cn(Pe,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,Ue,Xr,Xr+"["+e.getTextOfNode(Pe.argumentExpression)+"]")}else if(Uo(r,1))cn(Pe.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var It=void 0;if(Ue!==void 0&&(It=D0(Ue,r)))It!==void 0&&cn(Pe.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ue,gt(r),It);else{var bt=Ik(r,Pe,i);if(bt!==void 0)cn(Pe,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gt(r),bt);else{var ca=void 0;if(i.flags&1024)ca=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+gt(i)+"]",gt(r));else if(i.flags&8192){var jt=el(i.symbol,Pe);ca=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+jt+"]",gt(r))}else i.flags&128||i.flags&256?ca=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,i.value,gt(r)):i.flags&12&&(ca=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gt(i),gt(r)));ca=e.chainDiagnosticMessages(ca,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gt(o),gt(r)),Gn.add(e.createDiagnosticForNodeFromMessageChain(Pe,ca))}}}return}}if(ig(r))return kn;if(f){var Qn=eb(f);i.flags&384?cn(Qn,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+i.value,gt(r)):i.flags&12?cn(Qn,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,gt(r),gt(i)):cn(Qn,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,gt(i))}if(zi(i))return i;return;function Zt(Xa){Xa&&Xa.isReadonly&&Pe&&(e.isAssignmentTarget(Pe)||e.isDeleteTarget(Pe))&&cn(Pe,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,gt(r))}}function eb(n){return n.kind===203?n.argumentExpression:n.kind===190?n.indexType:n.kind===159?n.expression:n}function g1(n){return!!(n.flags&77)}function Oh(n){return!!(n.flags&134217728)&&e.every(n.types,g1)}function jf(n){return n.flags&3145728?(n.objectFlags&4194304||(n.objectFlags|=4194304|(e.some(n.types,jf)?8388608:0)),!!(n.objectFlags&8388608)):n.flags&33554432?(n.objectFlags&4194304||(n.objectFlags|=4194304|(jf(n.substitute)||jf(n.baseType)?8388608:0)),!!(n.objectFlags&8388608)):!!(n.flags&58982400)||Bl(n)||s_(n)}function Sd(n){return n.flags&3145728?(n.objectFlags&16777216||(n.objectFlags|=16777216|(e.some(n.types,Sd)?33554432:0)),!!(n.objectFlags&33554432)):n.flags&33554432?(n.objectFlags&16777216||(n.objectFlags|=16777216|(Sd(n.substitute)||Sd(n.baseType)?33554432:0)),!!(n.objectFlags&33554432)):!!(n.flags&465829888)&&!Oh(n)}function mv(n){return!!(n.flags&262144&&n.isThisType)}function ff(n,r){return n.flags&8388608?aR(n,r):n.flags&16777216?oR(n,r):n}function v1(n,r,i){if(n.flags&3145728){var o=e.map(n.types,function(s){return ff($l(s,r),i)});return n.flags&2097152||i?Qi(o):la(o)}}function tR(n,r,i){if(r.flags&1048576){var o=e.map(r.types,function(s){return ff($l(n,s),i)});return i?Qi(o):la(o)}}function aR(n,r){var i=r?"simplifiedForWriting":"simplifiedForReading";if(n[i])return n[i]===mt?n:n[i];n[i]=mt;var o=ff(n.objectType,r),s=ff(n.indexType,r),f=tR(o,s,r);if(f)return n[i]=f;if(!(s.flags&465829888)){var S=v1(o,s,r);if(S)return n[i]=S}if(s_(o)&&s.flags&296){var q=Wh(o,s.flags&8?0:o.target.fixedLength,0,r);if(q)return n[i]=q}return Bl(o)?n[i]=Yo(y1(o,n.indexType),function(_e){return ff(_e,r)}):n[i]=n}function iR(n){var r=n.root.inferTypeParameters&&Dl(n.root.inferTypeParameters,e.map(n.root.inferTypeParameters,function(){return Cr})),i=n.checkType,o=n.extendsType;return Fi(Gp(i),Gp(za(o,r)))}function oR(n,r){var i=n.checkType,o=n.extendsType,s=Ad(n),f=Dd(n);if(f.flags&131072&&sp(s)===sp(i)){if(i.flags&1||Fi(Gp(i),Gp(o)))return ff(s,r);if(h1(i,o))return Br}else if(s.flags&131072&&sp(f)===sp(i)){if(!(i.flags&1)&&Fi(Gp(i),Gp(o)))return Br;if(i.flags&1||h1(i,o))return ff(f,r)}return n}function h1(n,r){return!!(la([Em(n,r),Br]).flags&131072)}function y1(n,r){var i=Dl([yu(n)],[r]),o=nm(n.mapper,i);return za(zc(n),o)}function $l(n,r,i,o,s,f,S){return S===void 0&&(S=0),Ld(n,r,i,o,S,s,f)||(o?Qe:In)}function E1(n,r){return Rd(n,function(i){if(i.flags&384){var o=As(i);if(nc(o)){var s=+o;return s>=0&&s=r?In:i})}function nm(n,r){return n?wh(3,n,r):r}function vR(n,r){return n?wh(4,n,r):r}function rm(n,r,i){return i?wh(4,em(n,r),i):em(n,r)}function gv(n,r,i){return n?wh(4,n,em(r,i)):em(r,i)}function hR(n){return n.constraint===In?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=Rs(n.symbol),n.restrictiveInstantiation.constraint=In,n.restrictiveInstantiation)}function cb(n){var r=Rs(n.symbol);return r.target=n,r}function yR(n,r){return Zp(n.kind,n.parameterName,n.parameterIndex,za(n.type,r))}function Cm(n,r,i){var o;if(n.typeParameters&&!i){o=e.map(n.typeParameters,cb),r=nm(Dl(n.typeParameters,o),r);for(var s=0,f=o;s=5e6)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:Ne,instantiationCount:Ve}),cn(be,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Qe;ze++,Ve++,Ne++;var s=DR(n,r,i,o);return Ne--,s}function DR(n,r,i,o){var s=n.flags;if(s&262144)return Mp(n,r);if(s&524288){var f=n.objectFlags;if(f&52){if(f&4&&!n.node){var S=n.resolvedTypeArguments,q=Jf(S,r);return q!==S?qE(n.target,q):n}return f&1024?CR(n,r):ER(n,r,i,o)}return n}if(s&3145728){var _e=n.flags&1048576?n.origin:void 0,Oe=_e&&_e.flags&3145728?_e.types:n.types,Pe=Jf(Oe,r);if(Pe===Oe&&i===n.aliasSymbol)return n;var Ue=i||n.aliasSymbol,en=i?o:Jf(n.aliasTypeArguments,r);return s&2097152||_e&&_e.flags&2097152?Qi(Pe,Ue,en):la(Pe,1,Ue,en)}if(s&4194304)return Eu(za(n.type,r));if(s&134217728)return r_(n.texts,Jf(n.types,r));if(s&268435456)return Nh(n.symbol,za(n.type,r));if(s&8388608){var Ue=i||n.aliasSymbol,en=i?o:Jf(n.aliasTypeArguments,r);return $l(za(n.objectType,r),za(n.indexType,r),n.noUncheckedIndexedAccessCandidate,void 0,Ue,en)}if(s&16777216)return mb(n,nm(n.mapper,r),i,o);if(s&33554432){var _n=za(n.baseType,r);if(_n.flags&8650752)return BS(_n,za(n.substitute,r));var Un=za(n.substitute,r);return Un.flags&3||Fi(Gp(_n),Gp(Un))?_n:Un}return n}function CR(n,r){var i=za(n.mappedType,r);if(!(e.getObjectFlags(i)&32))return n;var o=za(n.constraintType,r);if(!(o.flags&4194304))return n;var s=pL(za(n.source,r),i,o);return s||n}function Gh(n){return n.flags&262143?n:n.permissiveInstantiation||(n.permissiveInstantiation=za(n,ga))}function Gp(n){return n.flags&262143?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=za(n,qt),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function Fh(n,r){return n&&pc(za(n.type,r),n.isReadonly,n.declaration)}function Yc(n){switch(e.Debug.assert(n.kind!==166||e.isObjectLiteralMethod(n)),n.kind){case 209:case 210:case 166:case 252:return G1(n);case 201:return e.some(n.properties,Yc);case 200:return e.some(n.elements,Yc);case 218:return Yc(n.whenTrue)||Yc(n.whenFalse);case 217:return(n.operatorToken.kind===56||n.operatorToken.kind===60)&&(Yc(n.left)||Yc(n.right));case 289:return Yc(n.initializer);case 208:return Yc(n.expression);case 282:return e.some(n.properties,Yc)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,Yc);case 281:{var r=n.initializer;return!!r&&Yc(r)}case 284:{var i=n.expression;return!!i&&Yc(i)}}return!1}function G1(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!wu(n))&&(F1(n)||xR(n))}function F1(n){if(!n.typeParameters){if(e.some(n.parameters,function(i){return!e.getEffectiveTypeAnnotationNode(i)}))return!0;if(n.kind!==210){var r=e.firstOrUndefined(n.parameters);if(!(r&&e.parameterIsThisKeyword(r)))return!0}}return!1}function xR(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&n.body.kind!==231&&Yc(n.body)}function B1(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||p0(n)||e.isObjectLiteralMethod(n))&&G1(n)}function U1(n){if(n.flags&524288){var r=Pc(n);if(r.constructSignatures.length||r.callSignatures.length){var i=Sl(16,n.symbol);return i.members=r.members,i.properties=r.properties,i.callSignatures=e.emptyArray,i.constructSignatures=e.emptyArray,i}}else if(n.flags&2097152)return Qi(e.map(n.types,U1));return n}function df(n,r){return _f(n,r,li)}function og(n,r){return _f(n,r,li)?-1:0}function _b(n,r){return _f(n,r,Yt)?-1:0}function IR(n,r){return _f(n,r,ya)?-1:0}function pf(n,r){return _f(n,r,ya)}function Fi(n,r){return _f(n,r,Yt)}function t_(n,r){return n.flags&1048576?e.every(n.types,function(i){return t_(i,r)}):r.flags&1048576?e.some(r.types,function(i){return t_(n,i)}):n.flags&58982400?t_(Js(n)||In,r):r===Ji?!!(n.flags&67633152):r===Ui?!!(n.flags&524288)&&Qb(n):nn(n,he(r))||zs(r)&&!i_(r)&&t_(n,Go)}function a_(n,r){return _f(n,r,fa)}function Bh(n,r){return a_(n,r)||a_(r,n)}function ec(n,r,i,o,s,f){return Qc(n,r,Yt,i,o,s,f)}function Cd(n,r,i,o,s,f){return gb(n,r,Yt,i,o,s,f,void 0)}function gb(n,r,i,o,s,f,S,q){return _f(n,r,i)?!0:!o||!vv(s,n,r,i,f,S,q)?Qc(n,r,i,o,f,S,q):!1}function V1(n){return!!(n.flags&16777216||n.flags&2097152&&e.some(n.types,V1))}function vv(n,r,i,o,s,f,S){if(!n||V1(i))return!1;if(!Qc(r,i,o,void 0)&&RR(n,r,i,o,s,f,S))return!0;switch(n.kind){case 284:case 208:return vv(n.expression,r,i,o,s,f,S);case 217:switch(n.operatorToken.kind){case 62:case 27:return vv(n.right,r,i,o,s,f,S)}break;case 201:return BR(n,r,i,o,f,S);case 200:return GR(n,r,i,o,f,S);case 282:return wR(n,r,i,o,f,S);case 210:return NR(n,r,i,o,f,S)}return!1}function RR(n,r,i,o,s,f,S){for(var q=Ea(r,0),_e=Ea(r,1),Oe=0,Pe=[_e,q];Oe1,Qn=Ms(en,nL),sr=Ms(en,function(jt){return!nL(jt)});if(Un){if(Qn!==Br){var lr=ou(cy(_e,0)),Fr=MR(_e,ca);S=sg(Fr,lr,Qn,o,s,f)||S}else if(!_f($l(r,Ue),en,o)){S=!0;var Xr=cn(_e.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Pe,gt(en));f&&f.skipLogging&&(f.errors||(f.errors=[])).push(Xr)}}else if(sr!==Br){var It=_n[0],bt=W1(It,Ue,ca);bt&&(S=sg(function(){return B_(this,function(jt){switch(jt.label){case 0:return[4,bt];case 1:return jt.sent(),[2]}})}(),r,i,o,s,f)||S)}else if(!_f($l(r,Ue),en,o)){S=!0;var Xr=cn(_e.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Pe,gt(en));f&&f.skipLogging&&(f.errors||(f.errors=[])).push(Xr)}}return S;function ca(){if(!q){var jt=e.getTextOfNode(n.parent.tagName),Zt=uy(Mm(n)),Xa=Zt===void 0?"children":e.unescapeLeadingUnderscores(Zt),di=$l(i,cs(Xa)),qa=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;q=Nt(Nt({},qa),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,qa,jt,Xa,gt(di))})}return q}}function j1(n,r){var i,o,s,f;return B_(this,function(S){switch(S.label){case 0:if(i=e.length(n.elements),!i)return[2];o=0,S.label=1;case 1:return o_e:fu(n)>_e);if(Oe)return 0;n.typeParameters&&n.typeParameters!==r.typeParameters&&(r=Yx(r),n=MA(n,r,void 0,S));var Pe=Cl(n),Ue=bg(n),en=bg(r);if((Ue||en)&&za(Ue||en,q),Ue&&en&&Pe!==_e)return 0;var _n=r.declaration?r.declaration.kind:0,Un=!(i&3)&&rn&&_n!==166&&_n!==165&&_n!==167,Qn=-1,sr=Vf(n);if(sr&&sr!==br){var lr=Vf(r);if(lr){var Fr=!Un&&S(sr,lr,!1)||S(lr,sr,o);if(!Fr)return o&&s(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;Qn&=Fr}}for(var Xr=Ue||en?Math.min(Pe,_e):Math.max(Pe,_e),It=Ue||en?Xr-1:-1,bt=0;bt=fu(n)&&bt0||dT(st));if(Fa&&!HR(st,lt,Qt)){if(Dr){var Oi=gt(Cn.aliasSymbol?Cn:st),fi=gt(Kn.aliasSymbol?Kn:lt),as=Ea(st,0),So=Ea(st,1);as.length>0&&Pt(Hi(as[0]),lt,!1)||So.length>0&&Pt(Hi(So[0]),lt,!1)?Lr(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Oi,fi):Lr(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Oi,fi)}return 0}Ai(st,lt);var is=0,xo=$i();if((st.flags&3145728||lt.flags&3145728)&&(is=ML(st)*ML(lt)>=4?Wr(st,lt,Dr,Rt|8):Jr(st,lt,Dr,Rt|8)),!is&&!(st.flags&1048576)&&(st.flags&469499904||lt.flags&469499904)&&(is=Wr(st,lt,Dr,Rt))&&qa(xo),!is&&st.flags&2359296){var Eo=ME(st.flags&2097152?st.types:[st],!!(lt.flags&1048576));Eo&&(st.flags&2097152||lt.flags&1048576)&&Rd(Eo,function(Yn){return Yn!==st})&&(is=Pt(Eo,lt,!1,void 0,Rt))&&qa(xo)}return is&&!Xr&&(lt.flags&2097152&&(Oa||Fa)||ab(lt)&&!zs(lt)&&!vi(lt)&&st.flags&2097152&&$e(st).flags&3670016&&!e.some(st.types,function(Yn){return!!(e.getObjectFlags(Yn)&524288)}))&&(Xr=!0,is&=Wr(st,lt,Dr,4),Xr=!1),Mo(st,lt,is,Qt),is;function Mo(Yn,pt,oa,Wt){if(!oa&&Dr){var Jt=!!Ib(Cn),Va=!!Ib(Kn);Yn=Cn.aliasSymbol||Jt?Cn:Yn,pt=Kn.aliasSymbol||Va?Kn:pt;var Aa=sr>0;if(Aa&&sr--,Yn.flags&524288&&pt.flags&524288){var Qa=q;Ha(Yn,pt,Dr),q!==Qa&&(Aa=!!q)}if(Yn.flags&524288&&pt.flags&131068)Pa(Yn,pt);else if(Yn.symbol&&Yn.flags&524288&&Ji===Yn)Lr(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Wt&&pt.flags&2097152){var Na=pt.types,Ta=pp(w.IntrinsicAttributes,o),Ri=pp(w.IntrinsicClassAttributes,o);if(Ta!==Qe&&Ri!==Qe&&(e.contains(Na,Ta)||e.contains(Na,Ri)))return oa}else q=fl(q,Kn);if(!Hr&&Aa)return lr=[Yn,pt],oa;wt(Hr,Yn,pt)}}}function Ai(Cn,Kn){if(e.tracing&&Cn.flags&3145728&&Kn.flags&3145728){var Dr=Cn,Hr=Kn;if(Dr.objectFlags&Hr.objectFlags&65536)return;var Rt=Dr.types.length,st=Hr.types.length;Rt*st>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Cn.id,sourceSize:Rt,targetId:Kn.id,targetSize:st,pos:o==null?void 0:o.pos,end:o==null?void 0:o.end})}}function Wn(Cn,Kn){var Dr=Cn.flags&Kn.flags;if(!(Dr&469237760))return 0;if(Ai(Cn,Kn),Dr&3145728){var Hr=Gt(Cn,Kn);return Hr&&(Hr&=Gt(Kn,Cn)),Hr}return Wr(Cn,Kn,!1,0)}function gn(Cn,Kn){var Dr=function(Hr,Rt){Rt=$e(Rt);var st=Rt.flags&3145728?Mt(Rt,Kn):Uf(Rt,Kn),lt=st&&d(st)||nc(Kn)&&Uo(Rt,1)||Uo(Rt,0)||Be;return e.append(Hr,lt)};return la(e.reduceLeft(Cn,Dr,void 0)||e.emptyArray)}function $r(Cn,Kn,Dr){var Hr;if(!Iv(Kn)||!Rn&&e.getObjectFlags(Kn)&8192)return!1;var Rt=!!(e.getObjectFlags(Cn)&2048);if((i===Yt||i===fa)&&(Nm(Ji,Kn)||!Rt&&mf(Kn)))return!1;var st=Kn,lt;Kn.flags&1048576&&(st=MC(Cn,Kn,Pt)||WG(Kn),lt=st.flags&1048576?st.types:[st]);for(var zr=function(fi){if(rt(fi,Cn.symbol)&&!z1(Cn,fi)){if(!y0(st,fi.escapedName,Rt)){if(Dr){var as=Ms(st,Iv);if(!o)return{value:e.Debug.fail()};if(e.isJsxAttributes(o)||e.isJsxOpeningLikeElement(o)||e.isJsxOpeningLikeElement(o.parent)){fi.valueDeclaration&&e.isJsxAttribute(fi.valueDeclaration)&&e.getSourceFileOfNode(o)===e.getSourceFileOfNode(fi.valueDeclaration.name)&&(o=fi.valueDeclaration.name);var So=Ga(fi),is=CA(So,as),xo=is?Ga(is):void 0;xo?Lr(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,So,gt(as),xo):Lr(e.Diagnostics.Property_0_does_not_exist_on_type_1,So,gt(as))}else{var Eo=((Hr=Cn.symbol)===null||Hr===void 0?void 0:Hr.declarations)&&e.firstOrUndefined(Cn.symbol.declarations),xo=void 0;if(fi.valueDeclaration&&e.findAncestor(fi.valueDeclaration,function(oa){return oa===Eo})&&e.getSourceFileOfNode(Eo)===e.getSourceFileOfNode(o)){var Mo=fi.valueDeclaration;e.Debug.assertNode(Mo,e.isObjectLiteralElementLike),o=Mo;var Yn=Mo.name;e.isIdentifier(Yn)&&(xo=D0(Yn,as))}xo!==void 0?Lr(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ga(fi),gt(as),xo):Lr(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ga(fi),gt(as))}}return{value:!0}}if(lt&&!Pt(d(fi),gn(lt,fi.escapedName),Dr))return Dr&&Wi(e.Diagnostics.Types_of_property_0_are_incompatible,Ga(fi)),{value:!0}}},Qt=0,Oa=ki(Cn);Qt=lt.types.length&&st.length%lt.types.length===0){var Oa=Pt(Qt,lt.types[zr%lt.types.length],!1,void 0,Hr);if(Oa){Rt&=Oa;continue}}var Fa=Pt(Qt,Kn,Dr,void 0,Hr);if(!Fa)return 0;Rt&=Fa}return Rt}function Tr(Cn,Kn,Dr,Hr,Rt){if(Cn===void 0&&(Cn=e.emptyArray),Kn===void 0&&(Kn=e.emptyArray),Dr===void 0&&(Dr=e.emptyArray),Cn.length!==Kn.length&&i===li)return 0;for(var st=Cn.length<=Kn.length?Cn.length:Kn.length,lt=-1,zr=0;zr25)return e.tracing===null||e.tracing===void 0||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Cn.id,targetId:Kn.id,numCombinations:Rt}),0}for(var Qt=new Array(Hr.length),Oa=new e.Set,Fa=0;Fa5?Lr(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gt(Cn),gt(Kn),e.map(Oa.slice(0,4),function(Oi){return Ga(Oi)}).join(", "),Oa.length-4):Lr(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gt(Cn),gt(Kn),e.map(Oa,function(Oi){return Ga(Oi)}).join(", ")),Rt&&q&&sr++)}function yo(Cn,Kn,Dr,Hr,Rt){if(i===li)return Us(Cn,Kn,Hr);var st=-1;if(vi(Kn)){if(zs(Cn)||vi(Cn)){if(!Kn.target.readonly&&(i_(Cn)||vi(Cn)&&Cn.target.readonly))return 0;var lt=Td(Cn),zr=Td(Kn),Qt=vi(Cn)?Cn.target.combinedFlags&4:4,Oa=Kn.target.combinedFlags&4,Fa=vi(Cn)?Cn.target.minLength:0,Oi=Kn.target.minLength;if(!Qt&<=zr-is)?Cn.target.elementFlags[Mo]:4,pt=Kn.target.elementFlags[Eo];if(pt&8&&!(Yn&8))return Dr&&Lr(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Eo),0;if(Yn&8&&!(pt&12))return Dr&&Lr(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Mo,Eo),0;if(pt&1&&!(Yn&1))return Dr&&Lr(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,Eo),0;if(!(xo&&((Yn&12||pt&12)&&(xo=!1),xo&&(Hr!=null&&Hr.has(""+Eo))))){var oa=vi(Cn)?Eo=zr-is?fi[Mo]:Wh(Cn,So,is)||Br:fi[0],Wt=as[Eo],Jt=Yn&8&&pt&4?Ps(Wt):Wt,Va=Pt(oa,Jt,Dr,void 0,Rt);if(!Va)return Dr&&(Eo=zr-is||lt-So-is===1?Wi(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Mo,Eo):Wi(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,So,lt-is-1,Eo)),0;st&=Va}}return st}if(Kn.target.combinedFlags&12)return 0}var Aa=(i===ya||i===ni)&&!fp(Cn)&&!Rb(Cn)&&!vi(Cn),Qa=Hb(Cn,Kn,Aa,!1);if(Qa)return Dr&&ts(Cn,Kn,Qa,Aa),0;if(fp(Kn))for(var Na=0,Ta=si(ki(Cn),Hr);Na0&&e.every(r.properties,function(i){return!!(i.flags&16777216)})}return n.flags&2097152?e.every(n.types,X1):!1}function HR(n,r,i){for(var o=0,s=ki(n);o":o+="-"+S.id}return o}function Z1(n,r,i,o){if(o===li&&n.id>r.id){var s=n;n=r,r=s}var f=i?":"+i:"";if(Uh(n)&&Uh(r)){var S=[];return Lb(n,S)+","+Lb(r,S)+f}return n.id+","+r.id+f}function yv(n,r){if(e.getCheckFlags(n)&6){for(var i=0,o=n.containingType.types;i=5){for(var o=Ev(n),s=0,f=0;f=5))return!0}return!1}function Ev(n){if(n.flags&524288&&!Jb(n)){if(e.getObjectFlags(n)&&n.node)return n.node;if(n.symbol&&!(e.getObjectFlags(n)&16&&n.symbol.flags&32))return n.symbol;if(vi(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function $1(n,r){return Cb(n,r,og)!==0}function Cb(n,r,i){if(n===r)return-1;var o=e.getDeclarationModifierFlagsFromSymbol(n)&24,s=e.getDeclarationModifierFlagsFromSymbol(r)&24;if(o!==s)return 0;if(o){if(Bm(n)!==Bm(r))return 0}else if((n.flags&16777216)!==(r.flags&16777216))return 0;return ju(n)!==ju(r)?0:i(d(n),d(r))}function ZR(n,r,i){var o=Cl(n),s=Cl(r),f=fu(n),S=fu(r),q=du(n),_e=du(r);return!!(o===s&&f===S&&q===_e||i&&f<=S)}function bv(n,r,i,o,s,f){if(n===r)return-1;if(!ZR(n,r,i)||e.length(n.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var S=Dl(n.typeParameters,r.typeParameters),q=0;qe.length(r.typeParameters)&&(o=ul(o,e.last(qi(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=o}}}function Rb(n){var r=xb(n);return Ke?r===cr:r===Zn}function o_(n){return vi(n)||!!Ka(n,"0")}function nL(n){return xd(n)||o_(n)}function tN(n,r){var i=qo(n,""+r);if(i)return i;if(Rd(n,vi))return Yo(n,function(o){return lg(o)||Be})}function aN(n){return!(n.flags&240512)}function su(n){return!!(n.flags&109440)}function rL(n){return n.flags&2097152?e.some(n.types,su):!!(n.flags&109440)}function iN(n){return n.flags&2097152&&e.find(n.types,su)||n}function xm(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:e.every(n.types,su):su(n)}function lu(n){return n.flags&1024?ym(n):n.flags&128?Pr:n.flags&256?tt:n.flags&2048?mr:n.flags&512?Rr:n.flags&1048576?Yo(n,lu):n}function cp(n){return n.flags&1024&&lp(n)?ym(n):n.flags&128&&lp(n)?Pr:n.flags&256&&lp(n)?tt:n.flags&2048&&lp(n)?mr:n.flags&512&&lp(n)?Rr:n.flags&1048576?Yo(n,cp):n}function tL(n){return n.flags&8192?qr:n.flags&1048576?Yo(n,tL):n}function Nb(n,r){return Ay(n,r)||(n=tL(cp(n))),n}function oN(n,r,i){if(n&&su(n)){var o=r?i?Fv(r):r:void 0;n=Nb(n,o)}return n}function Ob(n,r,i,o){if(n&&su(n)){var s=r?Fm(i,r,o):void 0;n=Nb(n,s)}return n}function vi(n){return!!(e.getObjectFlags(n)&4&&n.target.objectFlags&8)}function s_(n){return vi(n)&&!!(n.target.combinedFlags&8)}function aL(n){return s_(n)&&n.target.elementFlags.length===1}function lg(n){return Wh(n,n.target.fixedLength)}function sN(n){var r=lg(n);return r&&Ps(r)}function Wh(n,r,i,o){i===void 0&&(i=0),o===void 0&&(o=!1);var s=Td(n)-i;if(r-1&&(No(f,f.name.escapedText,788968,void 0,f.name.escapedText,!0)||f.name.originalKeywordKind&&e.isTypeNodeKind(f.name.originalKeywordKind))){var S="arg"+f.parent.parameters.indexOf(f);$t(Rn,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,S,e.declarationNameToString(f.name));return}s=n.dotDotDotToken?Rn?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:Rn?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 199:if(s=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Rn)return;break;case 309:cn(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return;case 252:case 166:case 165:case 168:case 169:case 209:case 210:if(Rn&&!n.name){i===3?cn(n,e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,o):cn(n,e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,o);return}s=Rn?i===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 191:Rn&&cn(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);return;default:s=Rn?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}$t(Rn,n,s,e.declarationNameToString(e.getNameOfDeclaration(n)),o)}}function Kh(n,r,i){ge&&Rn&&e.getObjectFlags(r)&131072&&(!i||!m0(n))&&(Jh(r)||up(n,r,i))}function Gb(n,r,i){var o=Cl(n),s=Cl(r),f=Eg(n),S=Eg(r),q=S?s-1:s,_e=f?q:Math.min(o,q),Oe=Vf(n);if(Oe){var Pe=Vf(r);Pe&&i(Oe,Pe)}for(var Ue=0;Ue<_e;Ue++)i(Gc(n,Ue),Gc(r,Ue));S&&i(h_(n,_e),S)}function Fb(n,r,i){var o=Zl(n),s=Zl(r);o&&s&&QE(o,s)&&o.type&&s.type?i(o.type,s.type):i(Hi(n),Hi(r))}function ug(n,r,i,o){return Bb(n.map(Ub),r,i,o||_b)}function yN(n,r){return n&&Bb(e.map(n.inferences,fL),n.signature,n.flags|r,n.compareTypes)}function Bb(n,r,i,o){var s={inferences:n,signature:r,flags:i,compareTypes:o,mapper:wp(function(f){return uL(s,f,!0)}),nonFixingMapper:wp(function(f){return uL(s,f,!1)})};return s}function uL(n,r,i){for(var o=n.inferences,s=0;sn.target.minLength||!r.target.hasRestElement&&(n.target.hasRestElement||r.target.fixedLength0){for(var sr=en,lr=_n;lr=Fr(sr).indexOf(Qn,lr),!(lr>=0);){if(sr++,sr===n.length)return;lr=0}Xr(sr,lr),_n+=Qn.length}else if(_n0)for(var nr=0,Tr=Lr;nr1){var r=e.filter(n,Jb);if(r.length){var i=la(r,2);return e.concatenate(e.filter(n,function(o){return!Jb(o)}),[i])}}return n}function PN(n){return n.priority&416?Qi(n.contraCandidates):rN(n.contraCandidates)}function MN(n,r){var i=kN(n.candidates),o=ON(n.typeParameter),s=!o&&n.topLevel&&(n.isFixed||!Wb(Hi(r),n.typeParameter)),f=o?e.sameMap(i,Al):s?e.sameMap(i,cp):i,S=n.priority&416?la(f,2):nN(f);return _l(S)}function yL(n,r){var i=n.inferences[r];if(!i.inferredType){var o=void 0,s=n.signature;if(s){var f=i.candidates?MN(i,s):void 0;if(i.contraCandidates){var S=PN(i);o=f&&!(f.flags&131072)&&pf(f,S)?f:S}else if(f)o=f;else if(n.flags&1)o=vt;else{var q=ip(i.typeParameter);q&&(o=za(q,vR(gR(n,r),n.nonFixingMapper)))}}else o=_L(i);i.inferredType=o||Kb(!!(n.flags&2));var _e=Ul(i.typeParameter);if(_e){var Oe=za(_e,n.nonFixingMapper);(!o||!n.compareTypes(o,ul(Oe,o)))&&(i.inferredType=o=Oe)}}return i.inferredType}function Kb(n){return n?kn:In}function zb(n){for(var r=[],i=0;i=10&&o*2>=n.length?i:void 0}function Xh(n){var r=n.types;if(!(r.length<10||e.getObjectFlags(n)&65536)){if(n.keyPropertyName===void 0){var i=e.forEach(r,function(s){return s.flags&59506688?e.forEach(ki(s),function(f){return su(d(f))?f.escapedName:void 0}):void 0}),o=i&&wN(r,i);n.keyPropertyName=o?i:"",n.constituentMap=o}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function Yh(n,r){var i,o=(i=n.constituentMap)===null||i===void 0?void 0:i.get(Uu(Al(r)));return o!==In?o:void 0}function SL(n,r){var i=Xh(n),o=i&&qo(r,i);return o&&Yh(n,o)}function GN(n,r){var i=Xh(n),o=i&&e.find(r.properties,function(f){return f.symbol&&f.kind===289&&f.symbol.escapedName===i&&Dv(f.initializer)}),s=o&&gl(o.initializer);return s&&Yh(n,s)}function LL(n,r){return il(n,r)||bL(n,r)}function AL(n,r){if(n.arguments)for(var i=0,o=n.arguments;i=0&&Wr.parameterIndex=Wr&&ht-1){var si=nt.filter(function(yo){return yo!==void 0}),Bi=ht=2||!(r.flags&34)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||r.valueDeclaration.parent.kind===288)){var i=e.getEnclosingBlockScopeContainer(r.valueDeclaration),o=mO(n,i),s=r0(i);if(s){if(o){var f=!0;if(e.isForStatement(i)){var S=e.getAncestor(r.valueDeclaration,251);if(S&&S.parent===i){var q=_O(n.parent,i);if(q){var _e=ia(q);_e.flags|=131072;var Oe=_e.capturedBlockScopeBindings||(_e.capturedBlockScopeBindings=[]);e.pushIfUnique(Oe,r),q===i.initializer&&(f=!1)}}}f&&(ia(s).flags|=65536)}if(e.isForStatement(i)){var S=e.getAncestor(r.valueDeclaration,251);S&&S.parent===i&&hO(n,i)&&(ia(r.valueDeclaration).flags|=4194304)}ia(r.valueDeclaration).flags|=524288}o&&(ia(r.valueDeclaration).flags|=262144)}}function vO(n,r){var i=ia(n);return!!i&&e.contains(i.capturedBlockScopeBindings,At(r))}function hO(n,r){for(var i=n;i.parent.kind===208;)i=i.parent;var o=!1;if(e.isAssignmentTarget(i))o=!0;else if(i.parent.kind===215||i.parent.kind===216){var s=i.parent;o=s.operator===45||s.operator===46}return o?!!e.findAncestor(i,function(f){return f===r?"quit":f===r.statement}):!1}function t0(n,r){if(ia(n).flags|=2,r.kind===164||r.kind===167){var i=r.parent;ia(i).flags|=4}else ia(r).flags|=4}function HL(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,HL)}function JL(n){var r=At(n),i=po(r),o=Bu(i);return o===Er}function KL(n,r,i){var o=r.parent,s=e.getClassExtendsHeritageElement(o);s&&!JL(o)&&n.flowNode&&!ry(n.flowNode,!1)&&cn(n,i)}function zL(n){var r=e.getThisContainer(n,!0),i=!1;switch(r.kind===167&&KL(n,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),r.kind===210&&(r=e.getThisContainer(r,!1),i=!0),r.kind){case 257:cn(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 256:cn(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 167:qL(n,r)&&cn(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 164:case 163:e.hasSyntacticModifier(r,32)&&!(ye.target===99&&tn)&&cn(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 159:cn(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}i&&on<2&&t0(n,r);var o=a0(n,!0,r);if(Ge){var s=d(me);if(o===s&&i)cn(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){var f=cn(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var S=a0(r);S&&S!==s&&e.addRelatedInfo(f,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||kn}function a0(n,r,i){r===void 0&&(r=!0),i===void 0&&(i=e.getThisContainer(n,!1));var o=e.isInJSFile(n);if(e.isFunctionLike(i)&&(!s0(n)||e.getThisParameter(i))){var s=La(i)||o&&bO(i);if(!s){var f=EO(i);if(o&&f){var S=Ya(f).symbol;S&&S.members&&S.flags&16&&(s=po(S).thisType)}else Zc(i)&&(s=po(wi(i.symbol)).thisType);s||(s=YL(i))}if(s)return om(n,s)}if(e.isClassLike(i.parent)){var q=At(i.parent),_e=e.hasSyntacticModifier(i,32)?d(q):po(q).thisType;return om(n,_e)}if(e.isSourceFile(i))if(i.commonJsModuleIndicator){var Oe=At(i);return Oe&&d(Oe)}else{if(i.externalModuleIndicator)return Be;if(r)return d(me)}}function yO(n){var r=e.getThisContainer(n,!1);if(e.isFunctionLike(r)){var i=dc(r);if(i.thisParameter)return $h(i.thisParameter)}if(e.isClassLike(r.parent)){var o=At(r.parent);return e.hasSyntacticModifier(r,32)?d(o):po(o).thisType}}function EO(n){if(n.kind===209&&e.isBinaryExpression(n.parent)&&e.getAssignmentDeclarationKind(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===166&&n.parent.kind===201&&e.isBinaryExpression(n.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===209&&n.parent.kind===289&&n.parent.parent.kind===201&&e.isBinaryExpression(n.parent.parent.parent)&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===209&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&e.getAssignmentDeclarationKind(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&e.getAssignmentDeclarationKind(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function bO(n){var r=e.getJSDocType(n);if(r&&r.kind===309){var i=r;if(i.parameters.length>0&&i.parameters[0].name&&i.parameters[0].name.escapedText==="this")return va(i.parameters[0].type)}var o=e.getJSDocThisTag(n);if(o&&o.typeExpression)return va(o.typeExpression)}function qL(n,r){return!!e.findAncestor(n,function(i){return e.isFunctionLikeDeclaration(i)?"quit":i.kind===161&&i.parent===r})}function i0(n){var r=n.parent.kind===204&&n.parent.expression===n,i=e.getSuperContainer(n,!0),o=i,s=!1;if(!r)for(;o&&o.kind===210;)o=e.getSuperContainer(o,!0),s=on<2;var f=Ue(o),S=0;if(!f){var q=e.findAncestor(n,function(en){return en===o?"quit":en.kind===159});return q&&q.kind===159?cn(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?cn(n,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===201)?cn(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):cn(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Qe}if(!r&&i.kind===167&&KL(n,o,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.hasSyntacticModifier(o,32)||r?S=512:S=256,ia(n).flags|=S,o.kind===166&&e.hasSyntacticModifier(o,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?ia(o).flags|=4096:ia(o).flags|=2048),s&&t0(n.parent,o),o.parent.kind===201)return on<2?(cn(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Qe):kn;var _e=o.parent;if(!e.getClassExtendsHeritageElement(_e))return cn(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Qe;var Oe=po(At(_e)),Pe=Oe&&Gl(Oe)[0];if(!Pe)return Qe;if(o.kind===167&&qL(n,o))return cn(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Qe;return S===512?Bu(Oe):ul(Pe,Oe.thisType);function Ue(en){return en?r?en.kind===167:e.isClassLike(en.parent)||en.parent.kind===201?e.hasSyntacticModifier(en,32)?en.kind===166||en.kind===165||en.kind===168||en.kind===169:en.kind===166||en.kind===165||en.kind===168||en.kind===169||en.kind===164||en.kind===163||en.kind===167:!1:!1}}function TO(n){return(n.kind===166||n.kind===168||n.kind===169)&&n.parent.kind===201?n.parent:n.kind===209&&n.parent.kind===289?n.parent.parent:void 0}function XL(n){return e.getObjectFlags(n)&4&&n.target===Jn?qi(n)[0]:void 0}function SO(n){return Yo(n,function(r){return r.flags&2097152?e.forEach(r.types,XL):XL(r)})}function YL(n){if(n.kind!==210){if(B1(n)){var r=Cv(n);if(r){var i=r.thisParameter;if(i)return d(i)}}var o=e.isInJSFile(n);if(Ge||o){var s=TO(n);if(s){for(var f=dp(s),S=s,q=f;q;){var _e=SO(q);if(_e)return za(_e,Vb(gg(s)));if(S.parent.kind!==289)break;S=S.parent.parent,q=dp(S)}return _l(f?Kf(f):Ds(s))}var Oe=e.walkUpParenthesizedExpressions(n.parent);if(Oe.kind===217&&Oe.operatorToken.kind===62){var Pe=Oe.left;if(e.isAccessExpression(Pe)){var Ue=Pe.expression;if(o&&e.isIdentifier(Ue)){var en=e.getSourceFileOfNode(Oe);if(en.commonJsModuleIndicator&&gf(Ue)===en.symbol)return}return _l(Ds(Ue))}}}}}function QL(n){var r=n.parent;if(B1(r)){var i=e.getImmediatelyInvokedFunctionExpression(r);if(i&&i.arguments){var o=R0(i),s=r.parameters.indexOf(n);if(n.dotDotDotToken)return I0(o,s,o.length,kn,void 0,0);var f=ia(i),S=f.resolvedSignature;f.resolvedSignature=ri;var q=s=0)}function sm(n,r){return Yo(n,function(i){if(Bl(i)){var o=Tc(i),s=Js(o)||o,f=cs(e.unescapeLeadingUnderscores(r));if(Fi(f,s))return y1(i,f)}else if(i.flags&3670016){var S=Ka(i,r);if(S)return kO(S)?void 0:d(S);if(vi(i)){var q=lg(i);if(q&&nc(r)&&+r>=0)return q}return nc(r)&&iy(i,1)||iy(i,0)}},!0)}function iy(n,r){return Yo(n,function(i){return qc(i,r)},!0)}function PO(n,r){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(n.flags&16777216))return u0(n,r)}function u0(n,r){var i=n.parent,o=e.isPropertyAssignment(n)&&o0(n);if(o)return o;var s=dp(i,r);if(s){if(Ls(n)){var f=At(n).escapedName,S=sm(s,f);if(S)return S}return _0(n.name)&&iy(s,1)||iy(s,0)}}function f0(n,r){return n&&(sm(n,""+r)||Yo(n,function(i){return nT(1,i,Be,void 0,!1)},!0))}function MO(n,r){var i=n.parent;return n===i.whenTrue||n===i.whenFalse?wc(i,r):void 0}function wO(n,r){var i=dp(n.openingElement.tagName),o=uy(Mm(n));if(i&&!zi(i)&&o&&o!==""){var s=e.getSemanticJsxChildren(n.children),f=s.indexOf(r),S=sm(i,o);return S&&(s.length===1?S:Yo(S,function(q){return xd(q)?$l(q,cs(f)):q},!0))}}function GO(n){var r=n.parent;return e.isJsxAttributeLike(r)?wc(n):e.isJsxElement(r)?wO(r,n):void 0}function nA(n){if(e.isJsxAttribute(n)){var r=dp(n.parent);return!r||zi(r)?void 0:sm(r,n.name.escapedText)}else return wc(n.parent)}function Dv(n){switch(n.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 150:return!0;case 202:case 208:return Dv(n.expression);case 284:return!n.expression||Dv(n.expression)}return!1}function FO(n,r){return GN(r,n)||Tb(r,e.concatenate(e.map(e.filter(n.properties,function(i){return!!i.symbol&&i.kind===289&&Dv(i.initializer)&&pg(r,i.symbol.escapedName)}),function(i){return[function(){return J0(i.initializer)},i.symbol.escapedName]}),e.map(e.filter(ki(r),function(i){var o;return!!(i.flags&16777216)&&!!(!((o=n==null?void 0:n.symbol)===null||o===void 0)&&o.members)&&!n.symbol.members.has(i.escapedName)&&pg(r,i.escapedName)}),function(i){return[function(){return Be},i.escapedName]})),Fi,r)}function BO(n,r){return Tb(r,e.concatenate(e.map(e.filter(n.properties,function(i){return!!i.symbol&&i.kind===281&&pg(r,i.symbol.escapedName)&&(!i.initializer||Dv(i.initializer))}),function(i){return[i.initializer?function(){return Ya(i.initializer)}:function(){return ar},i.symbol.escapedName]}),e.map(e.filter(ki(r),function(i){var o;return!!(i.flags&16777216)&&!!(!((o=n==null?void 0:n.symbol)===null||o===void 0)&&o.members)&&!n.symbol.members.has(i.escapedName)&&pg(r,i.escapedName)}),function(i){return[function(){return Be},i.escapedName]})),Fi,r)}function dp(n,r){var i=e.isObjectLiteralMethod(n)?PO(n,r):wc(n,r),o=oy(i,n,r);if(o&&!(r&&r&2&&o.flags&8650752)){var s=Yo(o,$e,!0);return s.flags&1048576&&e.isObjectLiteralExpression(n)?FO(n,s):s.flags&1048576&&e.isJsxAttributes(n)?BO(n,s):s}}function oy(n,r,i){if(n&&Po(n,465829888)){var o=gg(r);if(o&&e.some(o.inferences,cm)){if(i&&i&1)return sy(n,o.nonFixingMapper);if(o.returnMapper)return sy(n,o.returnMapper)}}return n}function sy(n,r){return n.flags&465829888?za(n,r):n.flags&1048576?la(e.map(n.types,function(i){return sy(i,r)}),0):n.flags&2097152?Qi(e.map(n.types,function(i){return sy(i,r)})):n}function wc(n,r){if(n.flags&16777216)return;if(n.contextualType)return n.contextualType;var i=n.parent;switch(i.kind){case 250:case 161:case 164:case 163:case 199:return DO(n,r);case 210:case 243:return CO(n);case 220:return IO(i);case 214:return xO(i,r);case 204:if(i.expression.kind===99)return Pr;case 205:return $L(i,n);case 207:case 225:return e.isConstTypeReference(i.type)?S(i):va(i.type);case 217:return NO(n,r);case 289:case 290:return u0(i,r);case 291:return wc(i.parent,r);case 200:{var o=i,s=dp(o,r);return f0(s,e.indexOfNode(o.elements,n))}case 218:return MO(n,r);case 229:return e.Debug.assert(i.parent.kind===219),RO(i.parent,n);case 208:{var f=e.isInJSFile(i)?e.getJSDocTypeTag(i):void 0;return f?va(f.typeExpression.type):wc(i,r)}case 226:return wc(i,r);case 284:return GO(i);case 281:case 283:return nA(i);case 276:case 275:return UO(i,r)}return;function S(q){return wc(q)}}function gg(n){var r=e.findAncestor(n,function(i){return!!i.inferenceContext});return r&&r.inferenceContext}function UO(n,r){return e.isJsxOpeningElement(n)&&n.parent.contextualType&&r!==4?n.parent.contextualType:c0(n,0)}function ly(n,r){return BA(r)!==0?VO(n,r):HO(n,r)}function VO(n,r){var i=w0(n,In);i=rA(r,Mm(r),i);var o=pp(w.IntrinsicAttributes,r);return o!==Qe&&(i=Em(o,i)),i}function WO(n,r){if(n.compositeSignatures){for(var i=[],o=0,s=n.compositeSignatures;o=2){var q=lf([f,i],S,2,e.isInJSFile(n));return eg(o,q)}}if(e.length(s.typeParameters)>=2){var q=lf([f,i],s.typeParameters,2,e.isInJSFile(n));return uf(s,q)}}return i}function HO(n,r){var i=Mm(r),o=ck(i),s=o===void 0?w0(n,In):o===""?Hi(n):WO(n,o);if(!s)return o&&e.length(r.attributes.properties)&&cn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(o)),In;if(s=rA(r,i,s),zi(s))return s;var f=s,S=pp(w.IntrinsicClassAttributes,r);if(S!==Qe){var q=ba(S.symbol),_e=Hi(n);f=Em(q?uf(S,lf([_e],q,Xc(q),e.isInJSFile(r))):S,f)}var Oe=pp(w.IntrinsicAttributes,r);return Oe!==Qe&&(f=Em(Oe,f)),f}function JO(n){return e.getStrictOptionValue(ye,"noImplicitAny")?e.reduceLeft(n,function(r,i){return r===i||!r?r:dh(r.typeParameters,i.typeParameters)?qO(r,i):void 0}):void 0}function KO(n,r,i){if(!n||!r)return n||r;var o=la([d(n),za(d(r),i)]);return am(n,o)}function zO(n,r,i){for(var o=Cl(n),s=Cl(r),f=o>=s?n:r,S=f===n?r:n,q=f===n?o:s,_e=du(n)||du(r),Oe=_e&&!du(f),Pe=new Array(q+(Oe?1:0)),Ue=0;Ue=fu(f)&&Ue>=fu(S),lr=Ue>=o?void 0:v_(n,Ue),Fr=Ue>=s?void 0:v_(r,Ue),Xr=lr===Fr?lr:lr?Fr?void 0:lr:Fr,It=Bt(1|(sr&&!Qn?16777216:0),Xr||"arg"+Ue);It.type=Qn?Ps(Un):Un,Pe[Ue]=It}if(Oe){var bt=Bt(1,"args");bt.type=Ps(Gc(S,q)),S===r&&(bt.type=za(bt.type,i)),Pe[q]=bt}return Pe}function qO(n,r){var i=n.typeParameters||r.typeParameters,o;n.typeParameters&&r.typeParameters&&(o=Dl(r.typeParameters,n.typeParameters));var s=n.declaration,f=zO(n,r,o),S=KO(n.thisParameter,r.thisParameter,o),q=Math.max(n.minArgumentCount,r.minArgumentCount),_e=Kc(s,i,S,f,void 0,void 0,q,(n.flags|r.flags)&39);return _e.compositeKind=2097152,_e.compositeSignatures=e.concatenate(n.compositeKind===2097152&&n.compositeSignatures||[n],[r]),o&&(_e.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?nm(n.mapper,o):o),_e}function d0(n,r){var i=Ea(n,0),o=e.filter(i,function(s){return!XO(s,r)});return o.length===1?o[0]:JO(o)}function XO(n,r){for(var i=0;i0&&(S=Hf(S,Ha(),n.symbol,Un,Oe),f=[],s=e.createSymbolTable(),sr=!1,lr=!1);var qa=zt(Ya(Zt.expression));if(d_(qa)){if(o&&uA(qa,o,Zt),bt=f.length,S===Qe)continue;S=Hf(S,qa,n.symbol,Un,Oe)}else cn(Zt,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),S=Qe;continue}else e.Debug.assert(Zt.kind===168||Zt.kind===169),Ig(Zt);di&&!(di.flags&8576)?Fi(di,Ut)&&(Fi(di,tt)?lr=!0:sr=!0,i&&(Qn=!0)):s.set(Xa.escapedName,Xa),f.push(Xa)}if(_e&&n.parent.kind!==291)for(var wt=0,Pa=ki(q);wt0&&(S=Hf(S,Ha(),n.symbol,Un,Oe),f=[],s=e.createSymbolTable(),sr=!1,lr=!1),Yo(S,function(Pt){return Pt===Mr?Ha():Pt});return Ha();function Ha(){var Pt=sr?oA(n,bt,f,0):void 0,Ai=lr?oA(n,bt,f,1):void 0,Wn=jo(n.symbol,s,e.emptyArray,e.emptyArray,Pt,Ai);return Wn.objectFlags|=Un|128|262144,_n&&(Wn.objectFlags|=8192),Qn&&(Wn.objectFlags|=512),i&&(Wn.pattern=n),Wn}}function d_(n){if(n.flags&465829888){var r=Js(n);if(r!==void 0)return d_(r)}return!!(n.flags&126615553||Sc(n)&117632&&d_(oL(n))||n.flags&3145728&&e.every(n.types,d_))}function nk(n){h0(n)}function rk(n,r){return Ig(n),xv(n)||kn}function tk(n){h0(n.openingElement),p_(n.closingElement.tagName)?g0(n.closingElement):Ya(n.closingElement.tagName),cy(n)}function ak(n,r){return Ig(n),xv(n)||kn}function ik(n){h0(n.openingFragment);var r=e.getSourceFileOfNode(n);return e.getJSXTransformEnabled(ye)&&(ye.jsxFactory||r.pragmas.has("jsx"))&&!ye.jsxFragmentFactory&&!r.pragmas.has("jsxfrag")&&cn(n,ye.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),cy(n),xv(n)||kn}function lA(n){return!e.stringContains(n,"-")}function p_(n){return n.kind===78&&e.isIntrinsicJsxName(n.escapedText)}function cA(n,r){return n.initializer?b_(n.initializer,r):ar}function ok(n,r){for(var i=n.attributes,o=Ke?e.createSymbolTable():void 0,s=e.createSymbolTable(),f=Kr,S=!1,q,_e=!1,Oe=2048,Pe=uy(Mm(n)),Ue=0,en=i.properties;Ue0&&(f=Hf(f,jt(),i.symbol,Oe,!1),s=e.createSymbolTable());var Qn=zt(Ds(_n.expression,r));zi(Qn)&&(S=!0),d_(Qn)?(f=Hf(f,Qn,i.symbol,Oe,!1),o&&uA(Qn,o,_n)):q=q?Qi([q,Qn]):Qn}}S||s.size>0&&(f=Hf(f,jt(),i.symbol,Oe,!1));var lr=n.parent.kind===274?n.parent:void 0;if(lr&&lr.openingElement===n&&lr.children.length>0){var Fr=cy(lr,r);if(!S&&Pe&&Pe!==""){_e&&cn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(Pe));var Xr=dp(n.attributes),It=Xr&&sm(Xr,Pe),bt=Bt(4,Pe);bt.type=Fr.length===1?Fr[0]:It&&u_(It,o_)?ou(Fr):Ps(la(Fr)),bt.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(Pe),void 0,void 0),e.setParent(bt.valueDeclaration,i),bt.valueDeclaration.symbol=bt;var ca=e.createSymbolTable();ca.set(Pe,bt),f=Hf(f,jo(i.symbol,ca,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,Oe,!1)}}if(S)return kn;if(q&&f!==Kr)return Qi([q,f]);return q||(f===Kr?jt():f);function jt(){Oe|=Re;var Zt=jo(i.symbol,s,e.emptyArray,e.emptyArray,void 0,void 0);return Zt.objectFlags|=Oe|128|262144,Zt}}function cy(n,r){for(var i=[],o=0,s=n.children;o1&&i.declarations&&cn(i.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function lk(n){return n&&El(n.exports,w.LibraryManagedAttributes,788968)}function ck(n){return fA(w.ElementAttributesPropertyNameContainer,n)}function uy(n){return fA(w.ElementChildrenAttributeNameContainer,n)}function dA(n,r){if(n.flags&4)return[ri];if(n.flags&128){var i=pA(n,r);if(i){var o=Ey(r,i);return[o]}else return cn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+w.IntrinsicElements),e.emptyArray}var s=$e(n),f=Ea(s,1);return f.length===0&&(f=Ea(s,0)),f.length===0&&s.flags&1048576&&(f=Kg(e.map(s.types,function(S){return dA(S,r)}))),f}function pA(n,r){var i=pp(w.IntrinsicElements,r);if(i!==Qe){var o=n.value,s=Ka(i,e.escapeLeadingUnderscores(o));if(s)return d(s);var f=Uo(i,0);return f||void 0}return kn}function uk(n,r,i){if(n===1){var o=gA(i);o&&Qc(r,o,Yt,i.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,S)}else if(n===0){var s=_A(i);s&&Qc(r,s,Yt,i.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,S)}else{var o=gA(i),s=_A(i);if(!o||!s)return;var f=la([o,s]);Qc(r,f,Yt,i.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,S)}function S(){var q=e.getTextOfNode(i.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,q)}}function mA(n){e.Debug.assert(p_(n.tagName));var r=ia(n);if(!r.resolvedJsxElementAttributesType){var i=g0(n);return r.jsxFlags&1?r.resolvedJsxElementAttributesType=d(i)||Qe:r.jsxFlags&2?r.resolvedJsxElementAttributesType=Uo(pp(w.IntrinsicElements,n),0)||Qe:r.resolvedJsxElementAttributesType=Qe}return r.resolvedJsxElementAttributesType}function _A(n){var r=pp(w.ElementClass,n);if(r!==Qe)return r}function xv(n){return pp(w.Element,n)}function gA(n){var r=xv(n);if(r)return la([r,zn])}function fk(n){var r=pp(w.IntrinsicElements,n);return r?ki(r):e.emptyArray}function dk(n){(ye.jsx||0)===0&&cn(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),xv(n)===void 0&&Rn&&cn(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function h0(n){var r=e.isJsxOpeningLikeElement(n);if(r&&dG(n),dk(n),!v0(n)){var i=Gn&&ye.jsx===2?e.Diagnostics.Cannot_find_name_0:void 0,o=ce(n),s=r?n.tagName:n,f=void 0;e.isJsxOpeningFragment(n)&&o==="null"||(f=No(s,o,111551,i,o,!0)),f&&(f.isReferenced=67108863,f.flags&2097152&&!bl(f)&&ic(f))}if(r){var S=n,q=g_(S);Ty(q,n),uk(BA(S),Hi(q),S)}}function y0(n,r,i){if(n.flags&524288){var o=Pc(n);if(o.stringIndexInfo||o.numberIndexInfo&&nc(r)||Uf(n,r)||i&&!lA(r))return!0}else if(n.flags&3145728&&Iv(n))for(var s=0,f=n.types;s=1&&Fi(i,Gc(_e,0))}return!1}var s=e.isAssignmentTarget(r)?"set":"get";if(o(s)){var f=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return f===void 0?f=s:f+="."+s,f}}function py(n,r,i){return e.getSpellingSuggestion(n,r,o);function o(s){var f=e.symbolName(s);if(!e.startsWith(f,'"')){if(s.flags&i)return f;if(s.flags&2097152){var S=Bc(s);if(S&&S.flags&i)return f}}}}function my(n,r,i){var o=n&&n.flags&106500&&n.valueDeclaration;if(o){var s=e.hasEffectiveModifier(o,8),f=n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name);if(!(!s&&!f)&&!(r&&e.isWriteOnlyAccess(r)&&!(n.flags&65536))){if(i){var S=e.findAncestor(r,e.isFunctionLikeDeclaration);if(S&&S.symbol===n)return}(e.getCheckFlags(n)&1?Ua(n).target:n).isReferenced=67108863}}}function xA(n,r){return n.kind===107||!!r&&e.isEntityNameExpression(n)&&r===gf(e.getFirstIdentifier(n))}function Rk(n,r){switch(n.kind){case 202:return Rv(n,n.expression.kind===105,r,_l(Ya(n.expression)));case 158:return Rv(n,!1,r,_l(Ya(n.left)));case 196:return Rv(n,!1,r,va(n))}}function IA(n,r,i){return Rv(n,n.kind===202&&n.expression.kind===105,i.escapedName,r)}function Rv(n,r,i,o){if(o===Qe||zi(o))return!0;var s=Ka(o,i);if(s){if(s.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration)){var f=e.getContainingClass(s.valueDeclaration);return!e.isOptionalChain(n)&&!!e.findAncestor(n,function(S){return S===f})}return fy(n,r,!1,o,s,!1)}return e.isInJSFile(n)&&(o.flags&1048576)!==0&&o.types.some(function(S){return Rv(n,r,i,S)})}function Nk(n){var r=n.initializer;if(r.kind===251){var i=r.declarations[0];if(i&&!e.isBindingPattern(i.name))return At(i)}else if(r.kind===78)return gf(r)}function Ok(n){return Uo(n,1)&&!Uo(n,0)}function kk(n){var r=e.skipParentheses(n);if(r.kind===78){var i=gf(r);if(i.flags&3)for(var o=n,s=n.parent;s;){if(s.kind===239&&o===s.statement&&Nk(s)===i&&Ok(gl(s.expression)))return!0;o=s,s=s.parent}}return!1}function Pk(n,r){return n.flags&32?Mk(n,r):RA(n,m_(n.expression),r)}function Mk(n,r){var i=Ya(n.expression),o=cg(i,n.expression);return jh(RA(n,cu(o,n.expression),r),n,o!==i)}function RA(n,r,i){var o=e.getAssignmentTargetKind(n)!==0||bA(n)?_l(r):r,s=n.argumentExpression,f=Ya(s);if(o===Qe||o===vt)return o;if(U0(o)&&!e.isStringLiteralLike(s))return cn(s,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Qe;var S=kk(s)?tt:f,q=e.isAssignmentTarget(n)?2|(jf(o)&&!mv(o)?1:0):0,_e=Ld(o,S,void 0,n,q|16)||Qe;return CD(AA(n,ia(n).resolvedSymbol,_e,s,i),n)}function NA(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function wm(n){return NA(n)&&e.forEach(n.typeArguments,Ii),n.kind===206?Ya(n.template):e.isJsxOpeningLikeElement(n)?Ya(n.attributes):n.kind!==162&&e.forEach(n.arguments,function(r){Ya(r)}),ri}function uu(n){return wm(n),mi}function wk(n,r,i){var o,s,f=0,S,q=-1,_e;e.Debug.assert(!r.length);for(var Oe=0,Pe=n;Oe=0)return Pe>=fu(i)&&(du(i)||PeS)return!1;if(f||s>=q)return!0;for(var Ue=s;Ue=o&&r.length<=i}function lm(n){return hg(n,0,!1)}function PA(n){return hg(n,0,!1)||hg(n,1,!1)}function hg(n,r,i){if(n.flags&524288){var o=Pc(n);if(i||o.properties.length===0&&!o.stringIndexInfo&&!o.numberIndexInfo){if(r===0&&o.callSignatures.length===1&&o.constructSignatures.length===0)return o.callSignatures[0];if(r===1&&o.constructSignatures.length===1&&o.callSignatures.length===0)return o.constructSignatures[0]}}}function MA(n,r,i,o){var s=ug(n.typeParameters,n,0,o),f=Eg(r),S=i&&(f&&f.flags&262144?i.nonFixingMapper:i.mapper),q=S?Cm(r,S):r;return Gb(q,n,function(_e,Oe){Wu(s.inferences,_e,Oe)}),i||Fb(r,n,function(_e,Oe){Wu(s.inferences,_e,Oe,128)}),uv(n,zb(s),e.isInJSFile(r.declaration))}function Fk(n,r,i,o){var s=ly(r,n),f=Gm(n.attributes,s,o,i);return Wu(o.inferences,f,s),zb(o)}function wA(n){if(!n)return br;var r=Ya(n);return e.isOptionalChainRoot(n.parent)?Kf(r):e.isOptionalChain(n.parent)?Mb(r):r}function x0(n,r,i,o,s){if(e.isJsxOpeningLikeElement(n))return Fk(n,r,o,s);if(n.kind!==162){var f=wc(n,e.every(r.typeParameters,function(Zt){return!!ip(Zt)})?8:0);if(f){var S=gg(n),q=Vb(yN(S,1)),_e=za(f,q),Oe=lm(_e),Pe=Oe&&Oe.typeParameters?Qm(UE(Oe,Oe.typeParameters)):_e,Ue=Hi(r);Wu(s.inferences,Pe,Ue,128);var en=ug(r.typeParameters,r,s.flags),_n=za(f,S&&S.returnMapper);Wu(en.inferences,_n,Ue),s.returnMapper=e.some(en.inferences,cm)?Vb(EN(en)):void 0}}var Un=bg(r),Qn=Un?Math.min(Cl(r)-1,i.length):i.length;if(Un&&Un.flags&262144){var sr=e.find(s.inferences,function(Zt){return Zt.typeParameter===Un});sr&&(sr.impliedArity=e.findIndex(i,_y,Qn)<0?i.length-Qn:void 0)}var lr=Vf(r);if(lr){var Fr=UA(n);Wu(s.inferences,wA(Fr),lr)}for(var Xr=0;Xr=i-1){var S=n[i-1];if(_y(S))return GA(S.kind===228?S.type:Gm(S.expression,o,s,f))}for(var q=[],_e=[],Oe=[],Pe=r;PeFr&&(Fr=qa)}}if(!lr)return!0;for(var $i=1/0,Wi=0,xr=en;Wi0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var o=n.arguments||e.emptyArray,s=gy(o);if(s>=0){for(var f=o.slice(0,s),S=function(_e){var Oe=o[_e],Pe=Oe.kind===221&&(xs?Ya(Oe.expression):Ds(Oe.expression));Pe&&vi(Pe)?e.forEach(qi(Pe),function(Ue,en){var _n,Un=Pe.target.elementFlags[en],Qn=mp(Oe,Un&4?Ps(Ue):Ue,!!(Un&12),(_n=Pe.target.labeledElementDeclarations)===null||_n===void 0?void 0:_n[en]);f.push(Qn)}):f.push(Oe)},q=s;q-1)return e.createDiagnosticForNode(i[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,S=Number.NEGATIVE_INFINITY,q=Number.NEGATIVE_INFINITY,_e=Number.POSITIVE_INFINITY,Oe,Pe=0,Ue=r;Peq&&(q=_n),i.lengtho?_e=Math.min(_e,Ue):S1&&(Fr=da(Ue,ya,_n,Xr)),Fr||(Fr=da(Ue,Yt,_n,Xr)),Fr)return Fr;if(Oe)if(Qn)if(Qn.length===1||Qn.length>3){var It=Qn[Qn.length-1],bt;Qn.length>3&&(bt=e.chainDiagnosticMessages(bt,e.Diagnostics.The_last_overload_gave_the_following_error),bt=e.chainDiagnosticMessages(bt,e.Diagnostics.No_overload_matches_this_call));var ca=Nv(n,en,It,Yt,0,!0,function(){return bt});if(ca)for(var jt=0,Zt=ca;jt3&&e.addRelatedInfo(Xa,e.createDiagnosticForNode(It.declaration,e.Diagnostics.The_last_overload_is_declared_here)),na(It,Xa),Gn.add(Xa)}else e.Debug.fail("No error for last overload signature")}else{for(var di=[],qa=0,$i=Number.MAX_VALUE,Wi=0,xr=0,Lr=function(_t){var nr=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,xr+1,Ue.length,hc(_t))},Tr=Nv(n,en,_t,Yt,0,!0,nr);Tr?(Tr.length<=$i&&($i=Tr.length,Wi=xr),qa=Math.max(qa,Tr.length),di.push(Tr)):e.Debug.fail("No error for 3 or fewer overload signatures"),xr++},ua=0,wt=Qn;ua1?di[Wi]:e.flatten(di);e.Debug.assert(Ha.length>0,"No errors reported for 3 or fewer overload signatures");var Pt=e.chainDiagnosticMessages(e.map(Ha,function(_t){return typeof _t.messageText=="string"?_t:_t.messageText}),e.Diagnostics.No_overload_matches_this_call),Ai=wr([],e.flatMap(Ha,function(_t){return _t.relatedInformation})),Wn=void 0;if(e.every(Ha,function(_t){return _t.start===Ha[0].start&&_t.length===Ha[0].length&&_t.file===Ha[0].file})){var gn=Ha[0],$r=gn.file,rt=gn.start,Gt=gn.length;Wn={file:$r,start:rt,length:Gt,code:Pt.code,category:Pt.category,messageText:Pt,relatedInformation:Ai}}else Wn=e.createDiagnosticForNodeFromMessageChain(n,Pt,Ai);na(Qn[0],Wn),Gn.add(Wn)}else if(sr)Gn.add(jA(n,[sr],en));else if(lr)FA(lr,n.typeArguments,!0,f);else{var Tt=e.filter(r,function(_t){return kA(_t,Pe)});Tt.length===0?Gn.add(Wk(n,r,Pe)):q?f&&Gn.add(hy(n,f)):Gn.add(jA(n,Tt,en))}return jk(n,Ue,en,!!i);function na(_t,nr){var Tr,Wr,Jr=Qn,nt=sr,ht=lr,ha=((Wr=(Tr=_t.declaration)===null||Tr===void 0?void 0:Tr.symbol)===null||Wr===void 0?void 0:Wr.declarations)||e.emptyArray,Ma=ha.length>1,ra=Ma?e.find(ha,function(Pi){return e.isFunctionLikeDeclaration(Pi)&&e.nodeIsPresent(Pi.body)}):void 0;if(ra){var si=dc(ra),Bi=!si.typeParameters;da([si],Yt,Bi)&&e.addRelatedInfo(nr,e.createDiagnosticForNode(ra,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Qn=Jr,sr=nt,lr=ht}function da(_t,nr,Tr,Wr){if(Wr===void 0&&(Wr=!1),Qn=void 0,sr=void 0,lr=void 0,Tr){var Jr=_t[0];if(e.some(Pe)||!vy(n,en,Jr,Wr))return;if(Nv(n,en,Jr,nr,0,!1,void 0)){Qn=[Jr];return}return Jr}for(var nt=0;nt<_t.length;nt++){var Jr=_t[nt];if(!(!kA(Jr,Pe)||!vy(n,en,Jr,Wr))){var ht=void 0,ha=void 0;if(Jr.typeParameters){var Ma=void 0;if(e.some(Pe)){if(Ma=FA(Jr,Pe,!1),!Ma){lr=Jr;continue}}else ha=ug(Jr.typeParameters,Jr,e.isInJSFile(n)?2:0),Ma=x0(n,Jr,en,Un|8,ha),Un|=ha.flags&4?8:0;if(ht=uv(Jr,Ma,e.isInJSFile(Jr.declaration),ha&&ha.inferredTypeParameters),bg(Jr)&&!vy(n,en,ht,Wr)){sr=ht;continue}}else ht=Jr;if(Nv(n,en,ht,nr,Un,!1,void 0)){(Qn||(Qn=[])).push(ht);continue}if(Un){if(Un=0,ha){var Ma=x0(n,Jr,en,Un,ha);if(ht=uv(Jr,Ma,e.isInJSFile(Jr.declaration),ha&&ha.inferredTypeParameters),bg(Jr)&&!vy(n,en,ht,Wr)){sr=ht;continue}}if(Nv(n,en,ht,nr,Un,!1,void 0)){(Qn||(Qn=[])).push(ht);continue}}return _t[nt]=ht,ht}}}}function jk(n,r,i,o){return e.Debug.assert(r.length>0),Ig(n),o||r.length===1||r.some(function(s){return!!s.typeParameters})?Kk(n,r,i):Hk(r)}function Hk(n){var r=e.mapDefined(n,function(en){return en.thisParameter}),i;r.length&&(i=HA(r,r.map(yg)));for(var o=e.minAndMax(n,Jk),s=o.min,f=o.max,S=[],q=function(en){var _n=e.mapDefined(n,function(Un){return le(Un)?enr.length;)o.pop();for(;o.length=r)return s;S>o&&(o=S,i=s)}return i}function Yk(n,r,i){if(n.expression.kind===105){var o=i0(n.expression);if(zi(o)){for(var s=0,f=n.arguments;s=0&&cn(n.arguments[o],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var s=m_(n.expression);if(s===vt)return _i;if(s=$e(s),s===Qe)return uu(n);if(zi(s))return n.typeArguments&&cn(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),wm(n);var f=Ea(s,1);if(f.length){if(!$k(n,f[0]))return uu(n);if(f.some(function(Oe){return Oe.flags&4}))return cn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),uu(n);var S=s.symbol&&e.getClassLikeDeclarationOfSymbol(s.symbol);return S&&e.hasSyntacticModifier(S,128)?(cn(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),uu(n)):__(n,f,r,i,0)}var q=Ea(s,0);if(q.length){var _e=__(n,q,r,i,0);return Rn||(_e.declaration&&!Zc(_e.declaration)&&Hi(_e)!==br&&cn(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Vf(_e)===br&&cn(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),_e}return O0(n.expression,s,1),uu(n)}function N0(n,r){var i=Gl(r);if(!e.length(i))return!1;var o=i[0];if(o.flags&2097152){for(var s=o.types,f=_h(s),S=0,q=0,_e=o.types;q<_e.length;q++){var Oe=_e[q];if(!f[S]&&e.getObjectFlags(Oe)&3&&(Oe.symbol===n||N0(n,Oe)))return!0;S++}return!1}return o.symbol===n?!0:N0(n,o)}function $k(n,r){if(!r||!r.declaration)return!0;var i=r.declaration,o=e.getSelectedEffectiveModifierFlags(i,24);if(!o||i.kind!==167)return!0;var s=e.getClassLikeDeclarationOfSymbol(i.parent.symbol),f=po(i.parent.symbol);if(!uT(n,s)){var S=e.getContainingClass(n);if(S&&o&16){var q=Um(S);if(N0(i.parent.symbol,q))return!0}return o&8&&cn(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gt(f)),o&16&&cn(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gt(f)),!1}return!0}function KA(n,r,i){var o,s=i===0,f=$c(r),S=f&&Ea(f,i).length>0;if(r.flags&1048576){for(var q=r.types,_e=!1,Oe=0,Pe=q;Oe=i-1)return r===i-1?s:Ps($l(s,tt));for(var f=[],S=[],q=[],_e=r;_e0&&(s=n.parameters.length-1+q)}}if(s===void 0){if(!i&&n.flags&32)return 0;s=n.minArgumentCount}if(o)return s;for(var _e=s-1;_e>=0;_e--){var Oe=Gc(n,_e);if(Ms(Oe,OA).flags&131072)break;s=_e}n.resolvedMinArgumentCount=s}return n.resolvedMinArgumentCount}function du(n){if(le(n)){var r=d(n.parameters[n.parameters.length-1]);return!vi(r)||r.target.hasRestElement}return!1}function Eg(n){if(le(n)){var r=d(n.parameters[n.parameters.length-1]);if(!vi(r))return r;if(r.target.hasRestElement)return tg(r,r.target.fixedLength)}}function bg(n){var r=Eg(n);return r&&!zs(r)&&!zi(r)&&!(zt(r).flags&131072)?r:void 0}function M0(n){return w0(n,Br)}function w0(n,r){return n.parameters.length>0?Gc(n,0):r}function vP(n,r,i){for(var o=n.parameters.length-(le(n)?1:0),s=0;s0&&(f=la(Oe,2)):_e=Br;var Pe=yP(n,r),Ue=Pe.yieldTypes,en=Pe.nextTypes;S=e.some(Ue)?la(Ue,2):void 0,q=e.some(en)?Qi(en):void 0}else{var _n=lD(n,r);if(!_n)return i&2?Mv(n,Br):Br;if(_n.length===0)return i&2?Mv(n,br):br;f=la(_n,2)}if(f||S||q){if(S&&Kh(n,S,3),f&&Kh(n,f,1),q&&Kh(n,q,2),f&&su(f)||S&&su(S)||q&&su(q)){var Un=m0(n),Qn=Un?Un===dc(n)?s?void 0:f:oy(Hi(Un),n):void 0;s?(S=Ob(S,Qn,0,o),f=Ob(f,Qn,1,o),q=Ob(q,Qn,2,o)):f=oN(f,Qn,o)}S&&(S=_l(S)),f&&(f=_l(f)),q&&(q=_l(q))}return s?aD(S||Br,f||_e,q||ZL(2,n)||In,o):o?Pv(f||_e):f||_e}function aD(n,r,i,o){var s=o?_o:ro,f=s.getGlobalGeneratorType(!1);if(n=s.resolveIterationType(n,void 0)||In,r=s.resolveIterationType(r,void 0)||In,i=s.resolveIterationType(i,void 0)||In,f===tr){var S=s.getGlobalIterableIteratorType(!1),q=S!==tr?KD(S,s):void 0,_e=q?q.returnType:kn,Oe=q?q.nextType:Be;return Fi(r,_e)&&Fi(Oe,i)?S!==tr?rg(S,[n]):(s.getGlobalIterableIteratorType(!0),Mr):(s.getGlobalGeneratorType(!0),Mr)}return rg(f,[n,r,i])}function yP(n,r){var i=[],o=[],s=(e.getFunctionFlags(n)&2)!==0;return e.forEachYieldExpression(n.body,function(f){var S=f.expression?Ya(f.expression,r):Zn;e.pushIfUnique(i,iD(f,S,kn,s));var q;if(f.asteriskToken){var _e=Kv(S,s?19:17,f.expression);q=_e&&_e.nextType}else q=wc(f);q&&e.pushIfUnique(o,q)}),{yieldTypes:i,nextTypes:o}}function iD(n,r,i,o){var s=n.expression||n,f=n.asteriskToken?Xf(o?19:17,r,i,s):r;return o?$c(f,s,n.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 G0(n,r,i,o){var s=0;if(o){for(var f=r;f1&&r.charCodeAt(i-1)>=48&&r.charCodeAt(i-1)<=57;)i--;for(var o=r.slice(0,i),s=1;;s++){var f=o+s;if(!H0(n,f))return f}}function hD(n){var r=lm(n);if(r&&!r.typeParameters)return Hi(r)}function ZP(n){var r=Ya(n.expression),i=cg(r,n.expression),o=hD(r);return o&&jh(o,n,i!==r)}function gl(n){var r=yD(n);if(r)return r;if(n.flags&67108864&&ae){var i=ae[G(n)];if(i)return i}var o=Zs,s=Ya(n);if(Zs!==o){var f=ae||(ae=[]);f[G(n)]=s,e.setNodeFlags(n,n.flags|67108864)}return s}function yD(n){var r=e.skipParentheses(n);if(e.isCallExpression(r)&&r.expression.kind!==105&&!e.isRequireCall(r,!0)&&!XA(r)){var i=e.isCallChain(r)?ZP(r):hD(m_(r.expression));if(i)return i}else{if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return va(r.type);if(n.kind===8||n.kind===10||n.kind===109||n.kind===94)return Ya(n)}}function J0(n){var r=ia(n);if(r.contextFreeType)return r.contextFreeType;var i=n.contextualType;n.contextualType=kn;try{var o=r.contextFreeType=Ya(n,4);return o}finally{n.contextualType=i}}function Ya(n,r,i){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var o=be;be=n,Ve=0;var s=nM(n,r,i),f=gD(n,s,r);return U0(f)&&$P(n,f),be=o,e.tracing===null||e.tracing===void 0||e.tracing.pop(),f}function $P(n,r){var i=n.parent.kind===202&&n.parent.expression===n||n.parent.kind===203&&n.parent.expression===n||(n.kind===78||n.kind===158)&&Uy(n)||n.parent.kind===177&&n.parent.exprName===n||n.parent.kind===271;if(i||cn(n,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),ye.isolatedModules){e.Debug.assert(!!(r.symbol.flags&128));var o=r.symbol.valueDeclaration;o.flags&8388608&&cn(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function eM(n,r){var i=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return i?$A(i,i.typeExpression.type,n.expression,r):Ya(n.expression,r)}function nM(n,r,i){var o=n.kind;if(A)switch(o){case 222:case 209:case 210:A.throwIfCancellationRequested()}switch(o){case 78:return pO(n,r);case 107:return zL(n);case 105:return i0(n);case 103:return Er;case 14:case 10:return Dm(cs(n.text));case 8:return bT(n),Dm(cs(+n.text));case 9:return kG(n),Dm(zI(n));case 109:return ar;case 94:return Ln;case 219:return jP(n);case 13:return Xe;case 200:return tA(n,r,i);case 201:return ek(n,r);case 202:return EA(n,r);case 158:return S0(n,r);case 203:return Pk(n,r);case 204:if(n.expression.kind===99)return lP(n);case 205:return sP(n,r);case 206:return cP(n);case 208:return eM(n,r);case 222:return Ew(n);case 209:case 210:return cD(n,r);case 212:return CP(n);case 207:case 225:return uP(n);case 226:return dP(n);case 227:return pP(n);case 211:return AP(n);case 213:return xP(n);case 214:return IP(n);case 215:return RP(n);case 216:return NP(n);case 217:return yn(n,r);case 218:return WP(n,r);case 221:return YO(n,r);case 223:return Zn;case 220:return VP(n);case 228:return QO(n);case 284:return pk(n,r);case 274:return ak(n);case 275:return rk(n);case 278:return ik(n);case 282:return sk(n,r);case 276:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Qe}function ED(n){n.expression&&Bs(n.expression,e.Diagnostics.Type_expected),Ii(n.constraint),Ii(n.default);var r=hd(At(n));Js(r),bh(r)||cn(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,gt(r));var i=Ul(r),o=ip(r);i&&o&&ec(o,ul(za(i,em(r,o)),o),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),ge&&L_(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function bD(n){hf(n),Oy(n);var r=e.getContainingFunction(n);e.hasSyntacticModifier(n,16476)&&(r.kind===167&&e.nodeIsPresent(r.body)||cn(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),r.kind===167&&e.isIdentifier(n.name)&&n.name.escapedText==="constructor"&&cn(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&r.body&&cn(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(r.parameters.indexOf(n)!==0&&cn(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(r.kind===167||r.kind===171||r.kind===176)&&cn(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),r.kind===210&&cn(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),(r.kind===168||r.kind===169)&&cn(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!e.isBindingPattern(n.name)&&!Fi(zt(d(n.symbol)),Ae)&&cn(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function rM(n){var r=tM(n);if(!r){cn(n,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}var i=dc(r),o=Zl(i);if(o){Ii(n.type);var s=n.parameterName;if(o.kind===0||o.kind===2)Ph(s);else if(o.parameterIndex>=0){if(le(i)&&o.parameterIndex===i.parameters.length-1)cn(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)};ec(o.type,d(i.parameters[o.parameterIndex]),n.type,void 0,f)}}else if(s){for(var S=!1,q=0,_e=r.parameters;q<_e.length;q++){var Oe=_e[q].name;if(e.isBindingPattern(Oe)&&TD(Oe,s,o.parameterName)){S=!0;break}}S||cn(n.parameterName,e.Diagnostics.Cannot_find_parameter_0,o.parameterName)}}}function tM(n){switch(n.parent.kind){case 210:case 170:case 252:case 209:case 175:case 166:case 165:var r=n.parent;if(n===r.type)return r}}function TD(n,r,i){for(var o=0,s=n.elements;o0&&r.declarations[0]!==n)return}var i=OS(At(n));if(i!=null&&i.declarations)for(var o=!1,s=!1,f=0,S=i.declarations;f0}function $c(n,r,i,o){if(zi(n))return n;var s=n;return s.awaitedTypeOfType?s.awaitedTypeOfType:s.awaitedTypeOfType=Yo(n,r?function(f){return xD(f,r,i,o)}:xD)}function xD(n,r,i,o){var s=n;if(s.awaitedTypeOfType)return s.awaitedTypeOfType;var f=Fv(n);if(f){if(n.id===f.id||hn.lastIndexOf(f.id)>=0){r&&cn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}hn.push(n.id);var S=$c(f,r,i,o);return hn.pop(),S?s.awaitedTypeOfType=S:void 0}if(AM(n)){if(r){if(!i)return e.Debug.fail();cn(r,i,o)}return}return s.awaitedTypeOfType=n}function DM(n,r){var i=va(r);if(on>=2){if(i===Qe)return;var o=xh(!0);if(o!==tr&&!V(i,o)){cn(r,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,gt($c(i)||br));return}}else{if(xM(r),i===Qe)return;var s=e.getEntityNameFromTypeNode(r);if(s===void 0){cn(r,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,gt(i));return}var f=Oo(s,111551,!0),S=f?d(f):Qe;if(S===Qe){s.kind===78&&s.escapedText==="Promise"&&he(i)===xh(!1)?cn(r,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):cn(r,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 q=cI(!0);if(q===Mr){cn(r,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(!ec(S,q,r,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 _e=s&&e.getFirstIdentifier(s),Oe=El(n.locals,_e.escapedText,111551);if(Oe){cn(Oe.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(_e),e.entityNameToString(s));return}}Dg(i,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function CM(n){var r=g_(n);Ty(r,n);var i=Hi(r);if(!(i.flags&1)){var o,s=qA(n),f;switch(n.parent.kind){case 253:var S=At(n.parent),q=d(S);o=la([q,br]);break;case 161:o=br,f=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 164:o=br,f=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 166:case 168:case 169:var _e=Um(n.parent),Oe=ZS(_e);o=la([Oe,br]);break;default:return e.Debug.fail()}ec(i,o,n,s,function(){return f})}}function xM(n){ID(n&&e.getEntityNameFromTypeNode(n))}function ID(n){if(n){var r=e.getFirstIdentifier(n),i=(n.kind===78?788968:1920)|2097152,o=No(r,r.escapedText,i,void 0,void 0,!0);o&&o.flags&2097152&&_u(o)&&!Rg(Fo(o))&&!bl(o)&&ic(o)}}function T_(n){var r=Y0(n);r&&e.isEntityName(r)&&ID(r)}function Y0(n){if(n)switch(n.kind){case 184:case 183:return RD(n.types);case 185:return RD([n.trueType,n.falseType]);case 187:case 193:return Y0(n.type);case 174:return n.typeName}}function RD(n){for(var r,i=0,o=n;i-1&&i0),i.length>1&&cn(i[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var o=ND(n.class.expression),s=e.getClassExtendsHeritageElement(r);if(s){var f=ND(s.expression);f&&o.escapedText!==f.escapedText&&cn(o,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(o),e.idText(f))}}function ND(n){switch(n.kind){case 78:return n;case 202:return n.name;default:return}}function OD(n){var r;Bv(n),Sg(n);var i=e.getFunctionFlags(n);if(n.name&&n.name.kind===159&&zf(n.name),Ls(n)){var o=At(n),s=n.localSymbol||o,f=(r=s.declarations)===null||r===void 0?void 0:r.find(function(_e){return _e.kind===n.kind&&!(_e.flags&131072)});n===f&&Iy(s),o.parent&&Iy(o)}var S=n.kind===165?void 0:n.body;if(Ii(S),F0(n,Sm(n)),ge&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(S)&&!Cy(n)&&up(n,kn),i&1&&e.nodeIsPresent(S)&&Hi(dc(n))),e.isInJSFile(n)){var q=e.getJSDocTypeTag(n);q&&q.typeExpression&&!d0(va(q.typeExpression),n)&&cn(q.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function qf(n){if(ge){var r=e.getSourceFileOfNode(n),i=Gs.get(r.path);i||(i=[],Gs.set(r.path,i)),i.push(n)}}function kD(n,r){for(var i=0,o=n;i=2||!e.hasRestParameter(n)||n.flags&8388608||e.nodeIsMissing(n.body)||e.forEach(n.parameters,function(r){r.name&&!e.isBindingPattern(r.name)&&r.name.escapedText===xe.escapedName&&$n("noEmit",r,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function jv(n,r,i){if(!(r&&r.escapedText===i)||n.kind===164||n.kind===163||n.kind===166||n.kind===165||n.kind===168||n.kind===169||n.flags&8388608)return!1;var o=e.getRootDeclaration(n);return!(o.kind===161&&e.nodeIsMissing(o.parent.body))}function jM(n){e.findAncestor(n,function(r){if(Xv(r)&4){var i=n.kind!==78;return i?cn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):cn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1})}function HM(n){e.findAncestor(n,function(r){if(Xv(r)&8){var i=n.kind!==78;return i?cn(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):cn(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1})}function JM(n){var r=e.getEnclosingBlockScopeContainer(n);Xv(r)&67108864&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),$n("noEmit",n,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Cg(n,r){if(!(Te>=e.ModuleKind.ES2015)&&!(!jv(n,r,"require")&&!jv(n,r,"exports"))&&!(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)){var i=rf(n);i.kind===298&&e.isExternalOrCommonJsModule(i)&&$n("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function xg(n,r){if(!(on>=4||!jv(n,r,"Promise"))&&!(e.isModuleDeclaration(n)&&e.getModuleInstanceState(n)!==1)){var i=rf(n);i.kind===298&&e.isExternalOrCommonJsModule(i)&&i.flags&2048&&$n("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function KM(n){if(!(e.getCombinedNodeFlags(n)&3||e.isParameterDeclaration(n))&&!(n.kind===250&&!n.initializer)){var r=At(n);if(r.flags&1){if(!e.isIdentifier(n.name))return e.Debug.fail();var i=No(n,n.name.escapedText,3,void 0,void 0,!1);if(i&&i!==r&&i.flags&2&&vg(i)&3){var o=e.getAncestor(i.valueDeclaration,251),s=o.parent.kind===233&&o.parent.parent?o.parent.parent:void 0,f=s&&(s.kind===231&&e.isFunctionLike(s.parent)||s.kind===258||s.kind===257||s.kind===298);if(!f){var S=Ga(i);cn(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,S,S)}}}}}function Hv(n){return n===Sr?kn:n===Zr?fr:n}function Oy(n){var r;if(Bv(n),e.isBindingElement(n)||Ii(n.type),!!n.name){if(n.name.kind===159&&(zf(n.name),n.initializer&&Ds(n.initializer)),e.isBindingElement(n)){e.isObjectBindingPattern(n.parent)&&n.dotDotDotToken&&on<5&&qs(n,4),n.propertyName&&n.propertyName.kind===159&&zf(n.propertyName);var i=n.parent.parent,o=Pu(i),s=n.propertyName||n.name;if(o&&!e.isBindingPattern(s)){var f=Pp(s);if(xa(f)){var S=As(f),q=Ka(o,S);q&&(my(q,void 0,!1),fy(n,!!i.initializer&&i.initializer.kind===105,!1,o,q))}}}if(e.isBindingPattern(n.name)&&(n.name.kind===198&&on<2&&ye.downlevelIteration&&qs(n,512),e.forEach(n.name.elements,Ii)),n.initializer&&e.isParameterDeclaration(n)&&e.nodeIsMissing(e.getContainingFunction(n).body)){cn(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(e.isBindingPattern(n.name)){var _e=n.initializer&&n.parent.parent.kind!==239,Oe=n.name.elements.length===0;if(_e||Oe){var Pe=fc(n);if(_e){var Ue=Ds(n.initializer);Ke&&Oe?yA(Ue,n):Cd(Ue,fc(n),n,n.initializer)}Oe&&(e.isArrayBindingPattern(n.name)?Xf(65,Pe,Be,n):Ke&&yA(Pe,n))}return}var en=At(n);if(en.flags&2097152&&e.isRequireVariableDeclaration(n)){Gy(n);return}var _n=Hv(d(en));if(n===en.valueDeclaration){var Un=e.getEffectiveInitializer(n);if(Un){var Qn=e.isInJSFile(n)&&e.isObjectLiteralExpression(Un)&&(Un.properties.length===0||e.isPrototypeAccess(n.name))&&!!(!((r=en.exports)===null||r===void 0)&&r.size);!Qn&&n.parent.parent.kind!==239&&Cd(Ds(Un),_n,n,Un,void 0)}en.declarations&&en.declarations.length>1&&e.some(en.declarations,function(lr){return lr!==n&&e.isVariableLike(lr)&&!BD(lr,n)})&&cn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var sr=Hv(fc(n));_n!==Qe&&sr!==Qe&&!df(_n,sr)&&!(en.flags&67108864)&&FD(en.valueDeclaration,_n,n,sr),n.initializer&&Cd(Ds(n.initializer),sr,n,n.initializer,void 0),en.valueDeclaration&&!BD(n,en.valueDeclaration)&&cn(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}n.kind!==164&&n.kind!==163&&(Lg(n),(n.kind===250||n.kind===199)&&KM(n),Cg(n,n.name),xg(n,n.name),on<99&&(jv(n,n.name,"WeakMap")||jv(n,n.name,"WeakSet"))&&zl.push(n))}}function FD(n,r,i,o){var s=e.getNameOfDeclaration(i),f=i.kind===164||i.kind===163?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,S=e.declarationNameToString(s),q=cn(s,f,S,gt(r),gt(o));n&&e.addRelatedInfo(q,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,S))}function BD(n,r){if(n.kind===161&&r.kind===250||n.kind===250&&r.kind===161)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(r))return!1;var i=504;return e.getSelectedEffectiveModifierFlags(n,i)===e.getSelectedEffectiveModifierFlags(r,i)}function $0(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),TG(n),Oy(n),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function zM(n){return yG(n),Oy(n)}function qM(n){!hf(n)&&!ET(n.declarationList)&&SG(n),e.forEach(n.declarationList.declarations,Ii)}function XM(n){Hu(n),Ya(n.expression)}function YM(n){Hu(n);var r=S_(n.expression);eT(n.expression,r,n.thenStatement),Ii(n.thenStatement),n.thenStatement.kind===232&&cn(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Ii(n.elseStatement)}function eT(n,r,i){if(Ke&&!Sc(r)){var o=e.isBinaryExpression(n)?n.right:n,s=e.isIdentifier(o)?o:e.isPropertyAccessExpression(o)?o.name:e.isBinaryExpression(o)&&e.isIdentifier(o.right)?o.right:void 0,f=e.isPropertyAccessExpression(o)&&e.isAssertionExpression(e.skipParentheses(o.expression));if(!(!s||f)){var S=Ea(r,0),q=!!Ag(r);if(!(S.length===0&&!q)){var _e=Lc(s);if(_e){var Oe=e.isBinaryExpression(n.parent)&&ZM(n.parent,_e)||i&&QM(n,i,s,_e);Oe||(q?Ia(o,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Ql(r)):cn(o,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function QM(n,r,i,o){return!!e.forEachChild(r,function s(f){if(e.isIdentifier(f)){var S=Lc(f);if(S&&S===o){if(e.isIdentifier(n))return!0;for(var q=i.parent,_e=f.parent;q&&_e;){if(e.isIdentifier(q)&&e.isIdentifier(_e)||q.kind===107&&_e.kind===107)return Lc(q)===Lc(_e);if(e.isPropertyAccessExpression(q)&&e.isPropertyAccessExpression(_e)){if(Lc(q.name)!==Lc(_e.name))return!1;_e=_e.expression,q=q.expression}else if(e.isCallExpression(q)&&e.isCallExpression(_e))_e=_e.expression,q=q.expression;else return!1}}}return e.forEachChild(f,s)})}function ZM(n,r){for(;e.isBinaryExpression(n)&&n.operatorToken.kind===55;){var i=e.forEachChild(n.right,function o(s){if(e.isIdentifier(s)){var f=Lc(s);if(f&&f===r)return!0}return e.forEachChild(s,o)});if(i)return!0;n=n.parent}return!1}function $M(n){Hu(n),Ii(n.statement),S_(n.expression)}function ew(n){Hu(n),S_(n.expression),Ii(n.statement)}function UD(n,r){return n.flags&16384&&cn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function S_(n,r){return UD(Ya(n,r),n)}function nw(n){Hu(n)||n.initializer&&n.initializer.kind===251&&ET(n.initializer),n.initializer&&(n.initializer.kind===251?e.forEach(n.initializer.declarations,$0):Ya(n.initializer)),n.condition&&S_(n.condition),n.incrementor&&Ya(n.incrementor),Ii(n.statement),n.locals&&qf(n)}function rw(n){if(xC(n),n.awaitModifier){var r=e.getFunctionFlags(e.getContainingFunction(n));(r&6)===2&&on<99&&qs(n,16384)}else ye.downlevelIteration&&on<2&&qs(n,256);if(n.initializer.kind===251)VD(n);else{var i=n.initializer,o=Jv(n);if(i.kind===200||i.kind===201)Up(i,o||Qe);else{var s=Ya(i);Tg(i,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),o&&Cd(o,s,i,n.expression)}}Ii(n.statement),n.locals&&qf(n)}function tw(n){xC(n);var r=T0(Ya(n.expression));if(n.initializer.kind===251){var i=n.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&cn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),VD(n)}else{var o=n.initializer,s=Ya(o);o.kind===200||o.kind===201?cn(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Fi(qI(r),s)?Tg(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):cn(o,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(r===Br||!rs(r,126091264))&&cn(n.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,gt(r)),Ii(n.statement),n.locals&&qf(n)}function VD(n){var r=n.initializer;if(r.declarations.length>=1){var i=r.declarations[0];$0(i)}}function Jv(n){var r=n.awaitModifier?15:13;return Xf(r,m_(n.expression),Be,n.expression)}function Xf(n,r,i,o){return zi(r)?r:nT(n,r,i,o,!0)||kn}function nT(n,r,i,o,s){var f=(n&2)!==0;if(r===Br){aT(o,r,f);return}var S=on>=2,q=!S&&ye.downlevelIteration,_e=ye.noUncheckedIndexedAccess&&!!(n&128);if(S||q||f){var Oe=Kv(r,n,S?o:void 0);if(s&&Oe){var Pe=n&8?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&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;Pe&&ec(i,Oe.nextType,o,Pe)}if(Oe||S)return _e?c_(Oe&&Oe.yieldType):Oe&&Oe.yieldType}var Ue=r,en=!1,_n=!1;if(n&4){if(Ue.flags&1048576){var Un=r.types,Qn=e.filter(Un,function(ca){return!(ca.flags&402653316)});Qn!==Un&&(Ue=la(Qn,2))}else Ue.flags&402653316&&(Ue=Br);if(_n=Ue!==r,_n&&(on<1&&o&&(cn(o,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),en=!0),Ue.flags&131072))return _e?c_(Pr):Pr}if(!xd(Ue)){if(o&&!en){var sr=!!(n&4)&&!_n,lr=bt(sr,q),Fr=lr[0],Xr=lr[1];Ia(o,Xr&&!!Ag(Ue),Fr,gt(Ue))}return _n?_e?c_(Pr):Pr:void 0}var It=Uo(Ue,1);if(_n&&It)return It.flags&402653316&&!ye.noUncheckedIndexedAccess?Pr:la(_e?[It,Pr,Be]:[It,Pr],2);return n&128?c_(It):It;function bt(ca,jt){var Zt;if(jt)return ca?[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 Xa=WD(n,0,r,void 0);return Xa?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:aw((Zt=r.symbol)===null||Zt===void 0?void 0:Zt.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:ca?[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 aw(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function WD(n,r,i,o){if(!zi(i)){var s=Kv(i,n,o);return s&&s[ee(r)]}}function vf(n,r,i){if(n===void 0&&(n=Br),r===void 0&&(r=Br),i===void 0&&(i=In),n.flags&67359327&&r.flags&180227&&i.flags&180227){var o=Mc([n,r,i]),s=Ni.get(o);return s||(s={yieldType:n,returnType:r,nextType:i},Ni.set(o,s)),s}return{yieldType:n,returnType:r,nextType:i}}function jD(n){for(var r,i,o,s=0,f=n;si)return!1;for(var Oe=0;Oe<_e;Oe++){var Pe=q[Oe],Ue=r[Oe];if(Pe.name.escapedText!==Ue.symbol.escapedName)return!1;var en=e.getEffectiveConstraintOfTypeParameter(Pe),_n=en&&va(en),Un=Ul(Ue);if(_n&&Un&&!df(_n,Un))return!1;var Qn=Pe.default&&va(Pe.default),sr=ip(Ue);if(Qn&&sr&&!df(Qn,sr))return!1}}return!0}function Ew(n){return nC(n),Ig(n),d(At(n))}function bw(n){e.forEach(n.members,Ii),qf(n)}function Tw(n){e.some(n.decorators)&&e.some(n.members,function(r){return e.hasStaticModifier(r)&&e.isPrivateIdentifierClassElementDeclaration(r)})&&ut(n.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!e.hasSyntacticModifier(n,512)&&Bs(n,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),nC(n),e.forEach(n.members,Ii),qf(n)}function nC(n){nG(n),Bv(n),n.name&&(L_(n.name,e.Diagnostics.Class_name_cannot_be_0),Cg(n,n.name),xg(n,n.name),n.flags&8388608||vw(n.name)),wy(e.getEffectiveTypeParameterDeclarations(n)),Lg(n);var r=At(n),i=po(r),o=ul(i),s=d(r);eC(r),Iy(r),aM(n);var f=!!(n.flags&8388608);f||iM(n);var S=e.getEffectiveBaseTypeNode(n);if(S){e.forEach(S.typeArguments,Ii),on<2&&qs(S.parent,1);var q=e.getClassExtendsHeritageElement(n);q&&q!==S&&Ya(q.expression);var _e=Gl(i);if(_e.length&&ge){var Oe=_e[0],Pe=Bu(i),Ue=$e(Pe);if(Lw(Ue,S),Ii(S.expression),e.some(S.typeArguments)){e.forEach(S.typeArguments,Ii);for(var en=0,_n=gd(Ue,S.typeArguments,S);en<_n.length;en++){var Un=_n[en];if(!DD(S,Un.typeParameters))break}}var Qn=ul(Oe,i.thisType);if(ec(o,Qn,void 0)?ec(s,U1(Ue),n.name||n,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):rC(n,o,Qn,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),Pe.flags&8650752)if(!Xo(s))cn(n.name||n,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);else{var sr=Ea(Pe,1);sr.some(function(Zt){return Zt.flags&4})&&!e.hasSyntacticModifier(n,128)&&cn(n.name||n,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}if(!(Ue.symbol&&Ue.symbol.flags&32)&&!(Pe.flags&8650752)){var lr=ep(Ue,S.typeArguments,S);e.forEach(lr,function(Zt){return!Zc(Zt.declaration)&&!df(Hi(Zt),Oe)})&&cn(S.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}Dw(i,Oe)}}Sw(n,i,o,s);var Fr=e.getEffectiveImplementsTypeNodes(n);if(Fr)for(var Xr=0,It=Fr;Xr>Ue;case 49:return Pe>>>Ue;case 47:return Pe<1){var o=e.isEnumConst(n);e.forEach(r.declarations,function(f){e.isEnumDeclaration(f)&&e.isEnumConst(f)!==o&&cn(e.getNameOfDeclaration(f),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var s=!1;e.forEach(r.declarations,function(f){if(f.kind!==256)return!1;var S=f;if(!S.members.length)return!1;var q=S.members[0];q.initializer||(s?cn(q.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):s=!0)})}}}function Mw(n){e.isPrivateIdentifier(n.name)&&cn(n,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function ww(n){var r=n.declarations;if(r)for(var i=0,o=r;i1&&R(n,e.shouldPreserveConstEnums(ye))){var S=ww(f);S&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(S)?cn(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos=e.ModuleKind.ES2015&&!n.isTypeOnly&&!(n.flags&8388608)&&ut(n,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 Ww(n){if(!zv(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!hf(n)&&e.hasEffectiveModifiers(n)&&Bs(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&e.isNamedExports(n.exportClause)&&e.length(n.exportClause.elements)&&on===0&&qs(n,2097152),jw(n),!n.moduleSpecifier||lT(n)))if(n.exportClause&&!e.isNamespaceExport(n.exportClause)){e.forEach(n.exportClause.elements,Xw);var r=n.parent.kind===258&&e.isAmbientModule(n.parent.parent),i=!r&&n.parent.kind===258&&!n.moduleSpecifier&&n.flags&8388608;n.parent.kind!==298&&!r&&!i&&cn(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var o=Si(n,n.moduleSpecifier);o&&Jo(o)?cn(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ga(o)):n.exportClause&&Gy(n.exportClause),Te!==e.ModuleKind.System&&Te=e.ModuleKind.ES2015?ut(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):Te===e.ModuleKind.System&&ut(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}}function Qw(n){return e.forEachEntry(n.exports,function(r,i){return i!=="export="})}function oC(n){var r=At(n),i=Ua(r);if(!i.exportsChecked){var o=r.exports.get("export=");if(o&&Qw(r)){var s=ac(o)||o.valueDeclaration;s&&!Rp(s)&&!e.isInJSFile(s)&&cn(s,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var f=ko(r);f&&f.forEach(function(S,q){var _e=S.declarations,Oe=S.flags;if(q!=="__export"&&!(Oe&1984)){var Pe=e.countWhere(_e,O);if(!(Oe&524288&&Pe<=2)&&Pe>1&&!By(_e))for(var Ue=0,en=_e;Ue1&&n.every(function(r){return e.isInJSFile(r)&&e.isAccessExpression(r)&&(e.isExportsIdentifier(r.expression)||e.isModuleExportsAccessExpression(r.expression))})}function Ii(n){if(n){var r=be;be=n,Ve=0,Zw(n),be=r}}function Zw(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,function(i){var o=i.tags;return e.forEach(o,Ii)});var r=n.kind;if(A)switch(r){case 257:case 253:case 254:case 252:A.throwIfCancellationRequested()}switch(r>=233&&r<=249&&n.flowNode&&!Lv(n.flowNode)&&$t(ye.allowUnreachableCode===!1,n,e.Diagnostics.Unreachable_code_detected),r){case 160:return ED(n);case 161:return bD(n);case 164:return LD(n);case 163:return oM(n);case 176:case 175:case 170:case 171:case 172:return Sg(n);case 166:case 165:return sM(n);case 167:return lM(n);case 168:case 169:return AD(n);case 174:return X0(n);case 173:return rM(n);case 177:return fM(n);case 178:return dM(n);case 179:return pM(n);case 180:return mM(n);case 183:case 184:return _M(n);case 187:case 181:case 182:return Ii(n.type);case 188:return hM(n);case 189:return yM(n);case 185:return EM(n);case 186:return bM(n);case 194:return TM(n);case 196:return SM(n);case 193:return LM(n);case 318:return GM(n);case 319:return wM(n);case 335:case 328:case 329:return RM(n);case 334:return NM(n);case 333:return OM(n);case 330:return kM(n);case 337:return PM(n);case 309:MM(n);case 307:case 306:case 304:case 305:case 314:sC(n),e.forEachChild(n,Ii);return;case 310:$w(n);return;case 302:return Ii(n.type);case 190:return gM(n);case 191:return vM(n);case 252:return IM(n);case 231:case 258:return Ny(n);case 233:return qM(n);case 234:return XM(n);case 235:return YM(n);case 236:return $M(n);case 237:return ew(n);case 238:return nw(n);case 239:return tw(n);case 240:return rw(n);case 241:case 242:return uw(n);case 243:return fw(n);case 244:return dw(n);case 245:return pw(n);case 246:return mw(n);case 247:return _w(n);case 248:return gw(n);case 250:return $0(n);case 199:return zM(n);case 253:return Tw(n);case 254:return Rw(n);case 255:return Nw(n);case 256:return Pw(n);case 257:return Fw(n);case 262:return Uw(n);case 261:return Vw(n);case 268:return Ww(n);case 267:return Yw(n);case 232:case 249:Hu(n);return;case 272:return cM(n)}}function sC(n){e.isInJSFile(n)||ut(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function $w(n){sC(n),Ii(n.type);var r=n.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent)){e.last(r.parent.parameters)!==r&&cn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);return}e.isJSDocTypeExpression(r)||cn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var i=n.parent.parent;if(!e.isJSDocParameterTag(i)){cn(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}var o=e.getParameterSymbolFromJSDoc(i);if(o){var s=e.getHostSignatureFromJSDoc(i);(!s||e.last(s.parameters).symbol!==o)&&cn(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}function e6(n){var r=va(n.type),i=n.parent,o=n.parent.parent;if(e.isJSDocTypeExpression(n.parent)&&e.isJSDocParameterTag(o)){var s=e.getHostSignatureFromJSDoc(o),f=e.isJSDocCallbackTag(o.parent.parent);if(s||f){var S=f?e.lastOrUndefined(o.parent.parent.typeExpression.parameters):e.lastOrUndefined(s.parameters),q=e.getParameterSymbolFromJSDoc(o);if(!S||q&&S.symbol===q&&e.isRestParameter(S))return Ps(r)}}return e.isParameter(i)&&e.isJSDocFunctionType(i.parent)?Ps(r):Ze(r)}function Ig(n){var r=e.getSourceFileOfNode(n),i=ia(r);if(!(i.flags&1)){i.deferredNodes=i.deferredNodes||new e.Map;var o=G(n);i.deferredNodes.set(o,n)}}function n6(n){var r=ia(n);r.deferredNodes&&r.deferredNodes.forEach(r6)}function r6(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var r=be;switch(be=n,Ve=0,n.kind){case 204:case 205:case 206:case 162:case 276:wm(n);break;case 209:case 210:case 166:case 165:SP(n);break;case 168:case 169:AD(n);break;case 222:bw(n);break;case 275:nk(n);break;case 274:tk(n);break}be=r,e.tracing===null||e.tracing===void 0||e.tracing.pop()}function cT(n){e.tracing===null||e.tracing===void 0||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),t6(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),e.tracing===null||e.tracing===void 0||e.tracing.pop()}function lC(n,r){if(r)return!1;switch(n){case 0:return!!ye.noUnusedLocals;case 1:return!!ye.noUnusedParameters;default:return e.Debug.assertNever(n)}}function cC(n){return Gs.get(n.path)||e.emptyArray}function t6(n){var r=ia(n);if(!(r.flags&1)){if(e.skipTypeChecking(n,ye,W))return;NG(n),e.clear(Kl),e.clear(Dc),e.clear(zl),e.forEach(n.statements,Ii),Ii(n.endOfFileToken),n6(n),e.isExternalOrCommonJsModule(n)&&qf(n),!n.isDeclarationFile&&(ye.noUnusedLocals||ye.noUnusedParameters)&&kD(cC(n),function(i,o,s){!e.containsParseError(i)&&lC(o,!!(i.flags&8388608))&&Gn.add(s)}),ye.importsNotUsedAsValues===2&&!n.isDeclarationFile&&e.isExternalModule(n)&&qw(n),e.isExternalOrCommonJsModule(n)&&oC(n),Kl.length&&(e.forEach(Kl,jM),e.clear(Kl)),Dc.length&&(e.forEach(Dc,HM),e.clear(Dc)),zl.length&&(e.forEach(zl,JM),e.clear(zl)),r.flags|=1}}function uC(n,r){try{return A=r,a6(n)}finally{A=void 0}}function a6(n){if(fC(),n){var r=Gn.getGlobalDiagnostics(),i=r.length;cT(n);var o=Gn.getDiagnostics(n.fileName),s=Gn.getGlobalDiagnostics();if(s!==r){var f=e.relativeComplement(r,s,e.compareDiagnostics);return e.concatenate(f,o)}else if(i===0&&s.length>0)return e.concatenate(s,o);return o}return e.forEach(W.getSourceFiles(),cT),Gn.getDiagnostics()}function i6(){return fC(),Gn.getGlobalDiagnostics()}function fC(){if(!ge)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function o6(n,r){if(n.flags&16777216)return[];var i=e.createSymbolTable(),o=!1;return s(),i.delete("this"),Tm(i);function s(){for(;n;){switch(n.locals&&!ql(n)&&S(n.locals,r),n.kind){case 298:if(!e.isExternalModule(n))break;case 257:q(At(n).exports,r&2623475);break;case 256:S(At(n).exports,r&8);break;case 222:var _e=n.name;_e&&f(n.symbol,r);case 253:case 254:o||S(bc(At(n)),r&788968);break;case 209:var Oe=n.name;Oe&&f(n.symbol,r);break}e.introducesArgumentsExoticObject(n)&&f(xe,r),o=e.hasSyntacticModifier(n,32),n=n.parent}S(J,r)}function f(_e,Oe){if(e.getCombinedLocalAndExportSymbolFlags(_e)&Oe){var Pe=_e.escapedName;i.has(Pe)||i.set(Pe,_e)}}function S(_e,Oe){Oe&&_e.forEach(function(Pe){f(Pe,Oe)})}function q(_e,Oe){Oe&&_e.forEach(function(Pe){!e.getDeclarationOfKind(Pe,271)&&!e.getDeclarationOfKind(Pe,270)&&f(Pe,Oe)})}}function s6(n){return n.kind===78&&qv(n.parent)&&e.getNameOfDeclaration(n.parent)===n}function qv(n){switch(n.kind){case 160:case 253:case 254:case 255:case 256:case 335:case 328:case 329:return!0;case 263:return n.isTypeOnly;case 266:case 271:return n.parent.parent.isTypeOnly;default:return!1}}function dC(n){for(;n.parent.kind===158;)n=n.parent;return n.parent.kind===174}function l6(n){for(;n.parent.kind===202;)n=n.parent;return n.parent.kind===224}function c6(n){for(;n.parent.kind===158;)n=n.parent;for(;n.parent.kind===202;)n=n.parent;return e.isJSDocNameReference(n.parent)?n.parent:void 0}function pC(n,r){for(var i;n=e.getContainingClass(n),!(!n||(i=r(n))););return i}function u6(n){return!!e.findAncestor(n,function(r){return e.isConstructorDeclaration(r)&&e.nodeIsPresent(r.body)||e.isPropertyDeclaration(r)?!0:e.isClassLike(r)||e.isFunctionLikeDeclaration(r)?"quit":!1})}function uT(n,r){return!!pC(n,function(i){return i===r})}function f6(n){for(;n.parent.kind===158;)n=n.parent;if(n.parent.kind===261)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===267)return n.parent.expression===n?n.parent:void 0}function Uy(n){return f6(n)!==void 0}function d6(n){var r=e.getAssignmentDeclarationKind(n.parent.parent);switch(r){case 1:case 3:return At(n.parent);case 4:case 2:case 5:return At(n.parent.parent)}}function p6(n){for(var r=n.parent;e.isQualifiedName(r);)n=r,r=r.parent;if(r&&r.kind===196&&r.qualifier===n)return r}function mC(n){if(e.isDeclarationName(n))return At(n.parent);if(e.isInJSFile(n)&&n.parent.kind===202&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)){var r=d6(n);if(r)return r}if(n.parent.kind===267&&e.isEntityNameExpression(n)){var i=Oo(n,2998271,!0);if(i&&i!==Hn)return i}else if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)&&Uy(n)){var o=e.getAncestor(n,261);return e.Debug.assert(o!==void 0),kl(n,!0)}if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)){var s=p6(n);if(s){va(s);var f=ia(n).resolvedSymbol;return f===Hn?void 0:f}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(l6(n)){var S=0;n.parent.kind===224?(S=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(S|=111551)):S=1920,S|=2097152;var q=e.isEntityNameExpression(n)?Oo(n,S):void 0;if(q)return q}if(n.parent.kind===330)return e.getParameterSymbolFromJSDoc(n.parent);if(n.parent.kind===160&&n.parent.parent.kind===334){e.Debug.assert(!e.isInJSFile(n));var _e=e.getTypeParameterFromJsDoc(n.parent);return _e&&_e.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;if(n.kind===78){if(e.isJSXTagName(n)&&p_(n)){var Oe=g0(n.parent);return Oe===Hn?void 0:Oe}return Oo(n,111551,!1,!0)}else if(n.kind===202||n.kind===158){var Pe=ia(n);return Pe.resolvedSymbol||(n.kind===202?EA(n,0):S0(n,0)),Pe.resolvedSymbol}}else if(dC(n)){var S=n.parent.kind===174?788968:1920;return Oo(n,S,!1,!0)}var Ue=c6(n);if(Ue||e.isJSDocLink(n.parent)){var S=901119,Oe=Oo(n,S,!1,!1,e.getHostSignatureFromJSDoc(n));if(Oe)return Oe;if(e.isQualifiedName(n)&&e.isIdentifier(n.left)){var Pe=ia(n);if(Pe.resolvedSymbol||(S0(n,0),Pe.resolvedSymbol))return Pe.resolvedSymbol;var en=Oo(n.left,S,!1);if(en){var _n=po(en);return Ka(_n,n.right.escapedText)}}}if(n.parent.kind===173)return Oo(n,1)}function Lc(n,r){if(n.kind===298)return e.isExternalModule(n)?wi(n.symbol):void 0;var i=n.parent,o=i.parent;if(!(n.flags&16777216)){if(b(n)){var s=At(i);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?sA(s):s}else if(e.isLiteralComputedPropertyDeclarationName(n))return At(i.parent);if(n.kind===78){if(Uy(n))return mC(n);if(i.kind===199&&o.kind===197&&n===i.propertyName){var f=Um(o),S=Ka(f,n.escapedText);if(S)return S}}switch(n.kind){case 78:case 79:case 202:case 158:return mC(n);case 107:var q=e.getThisContainer(n,!1);if(e.isFunctionLike(q)){var _e=dc(q);if(_e.thisParameter)return _e.thisParameter}if(e.isInExpressionContext(n))return Ya(n).symbol;case 188:return Ph(n).symbol;case 105:return Ya(n).symbol;case 132:var Oe=n.parent;return Oe&&Oe.kind===167?Oe.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(n.parent.kind===262||n.parent.kind===268)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return Si(n,n,r);if(e.isCallExpression(i)&&e.isBindableObjectDefinePropertyCall(i)&&i.arguments[1]===n)return At(i);case 8:var Pe=e.isElementAccessExpression(i)?i.argumentExpression===n?gl(i.expression):void 0:e.isLiteralTypeNode(i)&&e.isIndexedAccessTypeNode(o)?va(o.objectType):void 0;return Pe&&Ka(Pe,e.escapeLeadingUnderscores(n.text));case 87:case 97:case 38:case 83:return At(n.parent);case 196:return e.isLiteralImportTypeNode(n)?Lc(n.argument.literal,r):void 0;case 92:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;default:return}}}function m6(n){if(n&&n.kind===290)return Oo(n.name,2208703)}function _6(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?pu(n.parent.parent,n):Oo(n.propertyName||n.name,2998271):Oo(n,2998271)}function Um(n){if(e.isSourceFile(n)&&!e.isExternalModule(n)||n.flags&16777216)return Qe;var r=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),i=r&&Os(At(r.class));if(e.isPartOfTypeNode(n)){var o=va(n);return i?ul(o,i.thisType):o}if(e.isExpressionNode(n))return _C(n);if(i&&!r.isImplements){var s=e.firstOrUndefined(Gl(i));return s?ul(s,i.thisType):Qe}if(qv(n)){var f=At(n);return po(f)}if(s6(n)){var f=Lc(n);return f?po(f):Qe}if(e.isDeclaration(n)){var f=At(n);return d(f)}if(b(n)){var f=Lc(n);return f?d(f):Qe}if(e.isBindingPattern(n))return er(n.parent,!0)||Qe;if(Uy(n)){var f=Lc(n);if(f){var S=po(f);return S!==Qe?S:d(f)}}return Qe}function Vy(n){if(e.Debug.assert(n.kind===201||n.kind===200),n.parent.kind===240){var r=Jv(n.parent);return Up(n,r||Qe)}if(n.parent.kind===217){var r=gl(n.parent.right);return Up(n,r||Qe)}if(n.parent.kind===289){var i=e.cast(n.parent.parent,e.isObjectLiteralExpression),o=Vy(i)||Qe,s=e.indexOfNode(i.properties,n.parent);return fD(i,o,s)}var f=e.cast(n.parent,e.isArrayLiteralExpression),S=Vy(f)||Qe,q=Xf(65,S,Be,n.parent)||Qe;return dD(f,S,f.elements.indexOf(n),q)}function g6(n){var r=Vy(e.cast(n.parent.parent,e.isAssignmentPattern));return r&&Ka(r,n.escapedText)}function _C(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),Al(gl(n))}function v6(n){var r=At(n.parent);return e.hasSyntacticModifier(n,32)?d(r):po(r)}function h6(n){var r=n.name;switch(r.kind){case 78:return cs(e.idText(r));case 8:case 10:return cs(r.text);case 159:var i=zf(r);return rs(i,12288)?i:Pr;default:return e.Debug.fail("Unsupported property name.")}}function fT(n){n=$e(n);var r=e.createSymbolTable(ki(n)),i=Ea(n,0).length?go:Ea(n,1).length?wo:void 0;return i&&e.forEach(ki(i),function(o){r.has(o.escapedName)||r.set(o.escapedName,o)}),vc(r)}function dT(n){return e.typeHasCallOrConstructSignatures(n,Ye)}function gC(n){var r=y6(n);return r?e.flatMap(r,gC):[n]}function y6(n){if(e.getCheckFlags(n)&6)return e.mapDefined(Ua(n).containingType.types,function(f){return Ka(f,n.escapedName)});if(n.flags&33554432){var r=n,i=r.leftSpread,o=r.rightSpread,s=r.syntheticOrigin;return i?[i,o]:s?[s]:e.singleElementArray(E6(n))}}function E6(n){for(var r,i=n;i=Ua(i).target;)r=i;return r}function b6(n){if(e.isGeneratedIdentifier(n))return!1;var r=e.getParseTreeNode(n,e.isIdentifier);if(!r)return!1;var i=r.parent;if(!i)return!1;var o=(e.isPropertyAccessExpression(i)||e.isPropertyAssignment(i))&&i.name===r;return!o&&Yv(r)===xe}function T6(n){var r=Si(n.parent,n);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var i=Jo(r);r=sl(r);var o=Ua(r);return o.exportsSomeValue===void 0&&(o.exportsSomeValue=i?!!(r.flags&111551):e.forEachEntry(ko(r),s)),o.exportsSomeValue;function s(f){return f=Vi(f),f&&!!(f.flags&111551)}}function S6(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}function L6(n,r){var i,o=e.getParseTreeNode(n,e.isIdentifier);if(o){var s=Yv(o,S6(o));if(s){if(s.flags&1048576){var f=wi(s.exportSymbol);if(!r&&f.flags&944&&!(f.flags&3))return;s=f}var S=Hs(s);if(S){if(S.flags&512&&((i=S.valueDeclaration)===null||i===void 0?void 0:i.kind)===298){var q=S.valueDeclaration,_e=e.getSourceFileOfNode(o),Oe=q!==_e;return Oe?void 0:q}return e.findAncestor(o.parent,function(Pe){return e.isModuleOrEnumDeclaration(Pe)&&At(Pe)===S})}}}}function A6(n){if(n.generatedImportReference)return n.generatedImportReference;var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var i=Yv(r);if(Xu(i,111551)&&!bl(i))return ac(i)}}function D6(n){return n.valueDeclaration&&e.isBindingElement(n.valueDeclaration)&&e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind===288}function vC(n){if(n.flags&418&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)){var r=Ua(n);if(r.isDeclarationWithCollidingName===void 0){var i=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(i)||D6(n)){var o=ia(n.valueDeclaration);if(No(i.parent,n.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(o.flags&262144){var s=o.flags&524288,f=e.isIterationStatement(i,!1),S=i.kind===231&&e.isIterationStatement(i.parent,!1);r.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(i)&&(!s||!f&&!S)}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function C6(n){if(!e.isGeneratedIdentifier(n)){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var i=Yv(r);if(i&&vC(i))return i.valueDeclaration}}}function x6(n){var r=e.getParseTreeNode(n,e.isDeclaration);if(r){var i=At(r);if(i)return vC(i)}return!1}function hC(n){switch(n.kind){case 261:return Wy(At(n)||Hn);case 263:case 264:case 266:case 271:var r=At(n)||Hn;return Wy(r)&&!bl(r);case 268:var i=n.exportClause;return!!i&&(e.isNamespaceExport(i)||e.some(i.elements,hC));case 267:return n.expression&&n.expression.kind===78?Wy(At(n)||Hn):!0}return!1}function I6(n){var r=e.getParseTreeNode(n,e.isImportEqualsDeclaration);if(r===void 0||r.parent.kind!==298||!e.isInternalModuleImportEqualsDeclaration(r))return!1;var i=Wy(At(r));return i&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function Wy(n){var r=Fo(n);return r===Hn?!0:!!(r.flags&111551)&&(e.shouldPreserveConstEnums(ye)||!Rg(r))}function Rg(n){return V0(n)||!!n.constEnumOnlyModule}function jy(n,r){if($f(n)){var i=At(n),o=i&&Ua(i);if(o!=null&&o.referenced)return!0;var s=Ua(i).target;if(s&&e.getEffectiveModifierFlags(n)&1&&s.flags&111551&&(e.shouldPreserveConstEnums(ye)||!Rg(s)))return!0}return r?!!e.forEachChild(n,function(f){return jy(f,r)}):!1}function yC(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var r=At(n),i=cf(r);return i.length>1||i.length===1&&i[0].declaration!==n}return!1}function EC(n){return!!Ke&&!Qp(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasSyntacticModifier(n,16476)}function R6(n){return Ke&&Qp(n)&&!n.initializer&&e.hasSyntacticModifier(n,16476)}function N6(n){return!!Ke&&Qp(n)&&!n.initializer}function O6(n){var r=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!r)return!1;var i=At(r);return!i||!(i.flags&16)?!1:!!e.forEachEntry(oc(i),function(o){return o.flags&111551&&o.valueDeclaration&&e.isPropertyAccessExpression(o.valueDeclaration)})}function k6(n){var r=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!r)return e.emptyArray;var i=At(r);return i&&ki(d(i))||e.emptyArray}function Xv(n){return ia(n).flags||0}function Hy(n){return iC(n.parent),ia(n).enumMemberValue}function bC(n){switch(n.kind){case 292:case 202:case 203:return!0}return!1}function pT(n){if(n.kind===292)return Hy(n);var r=ia(n).resolvedSymbol;if(r&&r.flags&8){var i=r.valueDeclaration;if(e.isEnumConst(i.parent))return Hy(i)}}function mT(n){return!!(n.flags&524288)&&Ea(n,0).length>0}function P6(n,r){var i,o=e.getParseTreeNode(n,e.isEntityName);if(!o||r&&(r=e.getParseTreeNode(r),!r))return e.TypeReferenceSerializationKind.Unknown;var s=Oo(o,111551,!0,!0,r),f=((i=s==null?void 0:s.declarations)===null||i===void 0?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration))||!1,S=s&&s.flags&2097152?Fo(s):s,q=Oo(o,788968,!0,!1,r);if(S&&S===q){var _e=JE(!1);if(_e&&S===_e)return e.TypeReferenceSerializationKind.Promise;var Oe=d(S);if(Oe&&af(Oe))return f?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!q)return f?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var Pe=po(q);return Pe===Qe?f?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:Pe.flags&3?e.TypeReferenceSerializationKind.ObjectType:rs(Pe,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:rs(Pe,528)?e.TypeReferenceSerializationKind.BooleanType:rs(Pe,296)?e.TypeReferenceSerializationKind.NumberLikeType:rs(Pe,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:rs(Pe,402653316)?e.TypeReferenceSerializationKind.StringLikeType:vi(Pe)?e.TypeReferenceSerializationKind.ArrayLikeType:rs(Pe,12288)?e.TypeReferenceSerializationKind.ESSymbolType:mT(Pe)?e.TypeReferenceSerializationKind.TypeWithCallSignature:zs(Pe)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function M6(n,r,i,o,s){var f=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!f)return e.factory.createToken(128);var S=At(f),q=S&&!(S.flags&133120)?cp(d(S)):Qe;return q.flags&8192&&q.symbol===S&&(i|=1048576),s&&(q=Vu(q)),oe.typeToTypeNode(q,r,i|1024,o)}function w6(n,r,i,o){var s=e.getParseTreeNode(n,e.isFunctionLike);if(!s)return e.factory.createToken(128);var f=dc(s);return oe.typeToTypeNode(Hi(f),r,i|1024,o)}function G6(n,r,i,o){var s=e.getParseTreeNode(n,e.isExpression);if(!s)return e.factory.createToken(128);var f=_l(_C(s));return oe.typeToTypeNode(f,r,i|1024,o)}function F6(n){return J.has(e.escapeLeadingUnderscores(n))}function Yv(n,r){var i=ia(n).resolvedSymbol;if(i)return i;var o=n;if(r){var s=n.parent;e.isDeclaration(s)&&n===s.name&&(o=rf(s))}return No(o,n.escapedText,3257279,void 0,void 0,!0)}function B6(n){if(!e.isGeneratedIdentifier(n)){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var i=Yv(r);if(i)return jc(i).valueDeclaration}}}function U6(n){return e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n)?lp(d(At(n))):!1}function V6(n,r,i){var o=n.flags&1024?oe.symbolToExpression(n.symbol,111551,r,void 0,i):n===ar?e.factory.createTrue():n===Ln&&e.factory.createFalse();if(o)return o;var s=n.value;return typeof s=="object"?e.factory.createBigIntLiteral(s):typeof s=="number"?e.factory.createNumericLiteral(s):e.factory.createStringLiteral(s)}function W6(n,r){var i=d(At(n));return V6(i,n,r)}function TC(n){return n?(ce(n),e.getSourceFileOfNode(n).localJsxFactory||Lt):Lt}function _T(n){if(n){var r=e.getSourceFileOfNode(n);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var i=r.pragmas.get("jsxfrag"),o=e.isArray(i)?i[0]:i;if(o)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(o.arguments.factory,on),r.localJsxFragmentFactory}}if(ye.jsxFragmentFactory)return e.parseIsolatedEntityName(ye.jsxFragmentFactory,on)}function j6(){var n=W.getResolvedTypeReferenceDirectives(),r;return n&&(r=new e.Map,n.forEach(function(_e,Oe){if(!(!_e||!_e.resolvedFileName)){var Pe=W.getSourceFile(_e.resolvedFileName);Pe&&q(Pe,Oe)}})),{getReferencedExportContainer:L6,getReferencedImportDeclaration:A6,getReferencedDeclarationWithCollidingName:C6,isDeclarationWithCollidingName:x6,isValueAliasDeclaration:function(_e){var Oe=e.getParseTreeNode(_e);return Oe?hC(Oe):!0},hasGlobalName:F6,isReferencedAliasDeclaration:function(_e,Oe){var Pe=e.getParseTreeNode(_e);return Pe?jy(Pe,Oe):!0},getNodeCheckFlags:function(_e){var Oe=e.getParseTreeNode(_e);return Oe?Xv(Oe):0},isTopLevelValueImportEqualsWithEntityName:I6,isDeclarationVisible:Oc,isImplementationOfOverload:yC,isRequiredInitializedParameter:EC,isOptionalUninitializedParameterProperty:R6,isExpandoFunctionDeclaration:O6,getPropertiesOfContainerFunction:k6,createTypeOfDeclaration:M6,createReturnTypeOfSignatureDeclaration:w6,createTypeOfExpression:G6,createLiteralConstValue:W6,isSymbolAccessible:Rf,isEntityNameVisible:xp,getConstantValue:function(_e){var Oe=e.getParseTreeNode(_e,bC);return Oe?pT(Oe):void 0},collectLinkedAliases:cc,getReferencedValueDeclaration:B6,getTypeReferenceSerializationKind:P6,isOptionalParameter:Qp,moduleExportsSomeValue:T6,isArgumentsLocalBinding:b6,getExternalModuleFileFromDeclaration:function(_e){var Oe=e.getParseTreeNode(_e,e.hasPossibleExternalModuleReference);return Oe&&gT(Oe)},getTypeReferenceDirectivesForEntityName:s,getTypeReferenceDirectivesForSymbol:f,isLiteralConstDeclaration:U6,isLateBound:function(_e){var Oe=e.getParseTreeNode(_e,e.isDeclaration),Pe=Oe&&At(Oe);return!!(Pe&&e.getCheckFlags(Pe)&4096)},getJsxFactoryEntity:TC,getJsxFragmentFactoryEntity:_T,getAllAccessorDeclarations:function(_e){_e=e.getParseTreeNode(_e,e.isGetOrSetAccessorDeclaration);var Oe=_e.kind===169?168:169,Pe=e.getDeclarationOfKind(At(_e),Oe),Ue=Pe&&Pe.pos<_e.pos?Pe:_e,en=Pe&&Pe.pos<_e.pos?_e:Pe,_n=_e.kind===169?_e:Pe,Un=_e.kind===168?_e:Pe;return{firstAccessor:Ue,secondAccessor:en,setAccessor:_n,getAccessor:Un}},getSymbolOfExternalModuleSpecifier:function(_e){return Tl(_e,_e,void 0)},isBindingCapturedByNode:function(_e,Oe){var Pe=e.getParseTreeNode(_e),Ue=e.getParseTreeNode(Oe);return!!Pe&&!!Ue&&(e.isVariableDeclaration(Ue)||e.isBindingElement(Ue))&&vO(Pe,Ue)},getDeclarationStatementsForSourceFile:function(_e,Oe,Pe,Ue){var en=e.getParseTreeNode(_e);e.Debug.assert(en&&en.kind===298,"Non-sourcefile node passed into getDeclarationsForSourceFile");var _n=At(_e);return _n?_n.exports?oe.symbolTableToDeclarationStatements(_n.exports,_e,Oe,Pe,Ue):[]:_e.locals?oe.symbolTableToDeclarationStatements(_e.locals,_e,Oe,Pe,Ue):[]},isImportRequiredByAugmentation:i};function i(_e){var Oe=e.getSourceFileOfNode(_e);if(!Oe.symbol)return!1;var Pe=gT(_e);if(!Pe||Pe===Oe)return!1;for(var Ue=ko(Oe.symbol),en=0,_n=e.arrayFrom(Ue.values());en<_n.length;en++){var Un=_n[en];if(Un.mergeId){var Qn=wi(Un);if(Qn.declarations)for(var sr=0,lr=Qn.declarations;sr3})||cn(n,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,S,4):f&1048576&&(e.some(cf(q),function(_e){return Cl(_e)>4})||cn(n,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,S,5)):cn(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,S)}}X|=r}}}function J6(n){switch(n){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"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function K6(n,r){return re||(re=Pl(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,r)||Hn),re}function hf(n){return z6(n)||q6(n)}function z6(n){if(!n.decorators)return!1;if(e.nodeCanBeDecorated(n,n.parent,n.parent.parent)){if(n.kind===168||n.kind===169){var r=e.getAllAccessorDeclarations(n.parent.members,n);if(r.firstAccessor.decorators&&n===r.secondAccessor)return Bs(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===166&&!e.nodeIsPresent(n.body)?Bs(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Bs(n,e.Diagnostics.Decorators_are_not_valid_here);return!1}function q6(n){var r=X6(n);if(r!==void 0)return r;for(var i,o,s,f,S,q=0,_e=0,Oe=n.modifiers;_e1||n.modifiers[0].kind!==r}function Q6(n,r){switch(n.kind){case 166:case 252:case 209:case 210:return!1}return ut(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function um(n,r){return r===void 0&&(r=e.Diagnostics.Trailing_comma_not_allowed),n&&n.hasTrailingComma?Nd(n[0],n.end-1,1,r):!1}function SC(n,r){if(n&&n.length===0){var i=n.pos-1,o=e.skipTrivia(r.text,n.end)+1;return Nd(r,i,o-i,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function Z6(n){for(var r=!1,i=n.length,o=0;o=3){var r=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(r){var i=$6(n.parameters);if(e.length(i)){e.forEach(i,function(s){e.addRelatedInfo(cn(s,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var o=i.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,wr([cn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],o)),!0}}}return!1}function Jy(n){var r=e.getSourceFileOfNode(n);return hf(n)||SC(n.typeParameters,r)||Z6(n.parameters)||rG(n,r)||e.isFunctionLikeDeclaration(n)&&eG(n)}function nG(n){var r=e.getSourceFileOfNode(n);return cG(n)||SC(n.typeParameters,r)}function rG(n,r){if(!e.isArrowFunction(n))return!1;var i=n.equalsGreaterThanToken,o=e.getLineAndCharacterOfPosition(r,i.pos).line,s=e.getLineAndCharacterOfPosition(r,i.end).line;return o!==s&&ut(i,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function tG(n){var r=n.parameters[0];if(n.parameters.length!==1)return ut(r?r.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(um(n.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return ut(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return ut(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return ut(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return ut(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return ut(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);if(r.type.kind!==147&&r.type.kind!==144){var i=va(r.type);return i.flags&4||i.flags&8?ut(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead,e.getTextOfNode(r.name),gt(i),gt(n.type?va(n.type):kn)):i.flags&1048576&&y_(i,384,!0)?ut(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead):ut(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_either_string_or_number)}return n.type?!1:ut(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation)}function aG(n){return hf(n)||tG(n)}function iG(n,r){if(r&&r.length===0){var i=e.getSourceFileOfNode(n),o=r.pos-1,s=e.skipTrivia(i.text,r.end)+1;return Nd(i,o,s-o,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function Qv(n,r){return um(r)||iG(n,r)}function oG(n){return n.questionDotToken||n.flags&32?ut(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function sG(n){if(n)for(var r=0,i=n;r1)return Bs(f.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(f.token===116),i)return Bs(f,e.Diagnostics.implements_clause_already_seen);i=!0}AC(f)}}function uG(n){var r=!1;if(n.heritageClauses)for(var i=0,o=n.heritageClauses;i1){var i=n.kind===239?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 Bs(f.declarations[1],i)}var q=S[0];if(q.initializer){var i=n.kind===239?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 ut(q.name,i)}if(q.type){var i=n.kind===239?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 ut(q,i)}}}return!1}function _G(n){if(!(n.flags&8388608)&&n.parent.kind!==178&&n.parent.kind!==254){if(on<1)return ut(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(on<2&&e.isPrivateIdentifier(n.name))return ut(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!e.hasSyntacticModifier(n,128))return Nd(n,n.end-1,1,e.Diagnostics._0_expected,"{")}if(n.body){if(e.hasSyntacticModifier(n,128))return ut(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===178||n.parent.kind===254)return ut(n.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return ut(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!gG(n))return ut(n.name,n.kind===168?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===169){if(n.type)return ut(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return ut(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return ut(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return ut(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function gG(n){return yT(n)||n.parameters.length===(n.kind===168?0:1)}function yT(n){if(n.parameters.length===(n.kind===168?1:2))return e.getThisParameter(n)}function vG(n){if(n.operator===151){if(n.type.kind!==148)return ut(n.type,e.Diagnostics._0_expected,e.tokenToString(148));var r=e.walkUpParenthesizedTypes(n.parent);switch(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)&&(r=r.parent,e.isJSDocTypeTag(r)&&(r=r.parent.parent)),r.kind){case 250:var i=r;if(i.name.kind!==78)return ut(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(i))return ut(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(i.parent.flags&2))return ut(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 164:if(!e.hasSyntacticModifier(r,32)||!e.hasEffectiveModifier(r,64))return ut(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 163:if(!e.hasSyntacticModifier(r,64))return ut(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return ut(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===142&&n.type.kind!==179&&n.type.kind!==180)return Bs(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(148))}function A_(n,r){if(Fl(n))return ut(n,r)}function IC(n){if(Jy(n))return!0;if(n.kind===166){if(n.parent.kind===201){if(n.modifiers&&!(n.modifiers.length===1&&e.first(n.modifiers).kind===129))return Bs(n,e.Diagnostics.Modifiers_cannot_appear_here);if(DC(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(CC(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return Nd(n,n.end-1,1,e.Diagnostics._0_expected,"{")}if(hT(n))return!0}if(e.isClassLike(n.parent)){if(on<2&&e.isPrivateIdentifier(n.name))return ut(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&8388608)return A_(n.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(n.kind===166&&!n.body)return A_(n.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(n.parent.kind===254)return A_(n.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(n.parent.kind===178)return A_(n.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 hG(n){for(var r=n;r;){if(e.isFunctionLike(r))return ut(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 246:if(n.label&&r.label.escapedText===n.label.escapedText){var i=n.kind===241&&!e.isIterationStatement(r.statement,!0);return i?ut(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1}break;case 245:if(n.kind===242&&!n.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!n.label)return!1;break}r=r.parent}if(n.label){var o=n.kind===242?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 ut(n,o)}else{var o=n.kind===242?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 ut(n,o)}}function yG(n){if(n.dotDotDotToken){var r=n.parent.elements;if(n!==e.last(r))return ut(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(um(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return ut(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return Nd(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function RC(n){return e.isStringOrNumericLiteralLike(n)||n.kind===215&&n.operator===40&&n.operand.kind===8}function EG(n){return n.kind===9||n.kind===215&&n.operator===40&&n.operand.kind===9}function bG(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&RC(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(Ds(n).flags&1024)}function NC(n){var r=n.initializer;if(r){var i=!(RC(r)||bG(r)||r.kind===109||r.kind===94||EG(r)),o=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(o&&!n.type){if(i)return ut(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return ut(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(!o||i)return ut(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function TG(n){if(n.parent.parent.kind!==239&&n.parent.parent.kind!==240){if(n.flags&8388608)NC(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return ut(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return ut(n,e.Diagnostics.const_declarations_must_be_initialized)}}if(n.exclamationToken&&(n.parent.parent.kind!==233||!n.type||n.initializer||n.flags&8388608)){var r=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.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 ut(n.exclamationToken,r)}var i=e.getEmitModuleKind(ye);i0}function Bs(n,r,i,o,s){var f=e.getSourceFileOfNode(n);if(!Vp(f)){var S=e.getSpanOfTokenAtPosition(f,n.pos);return Gn.add(e.createFileDiagnostic(f,S.start,S.length,r,i,o,s)),!0}return!1}function Nd(n,r,i,o,s,f,S){var q=e.getSourceFileOfNode(n);return Vp(q)?!1:(Gn.add(e.createFileDiagnostic(q,r,i,o,s,f,S)),!0)}function AG(n,r,i,o,s,f){var S=e.getSourceFileOfNode(r);return Vp(S)?!1:($n(n,r,i,o,s,f),!0)}function ut(n,r,i,o,s){var f=e.getSourceFileOfNode(n);return Vp(f)?!1:(Gn.add(e.createDiagnosticForNode(n,r,i,o,s)),!0)}function DG(n){var r=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,i=n.typeParameters||r&&e.firstOrUndefined(r);if(i){var o=i.pos===i.end?i.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,i.pos);return Nd(n,o,i.end-o,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function CG(n){var r=e.getEffectiveReturnTypeNode(n);if(r)return ut(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function xG(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&n.name.text==="constructor")return ut(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(A_(n.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(on<2&&e.isPrivateIdentifier(n.name))return ut(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(n.parent.kind===254){if(A_(n.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(n.initializer)return ut(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(n.parent.kind===178){if(A_(n.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(n.initializer)return ut(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&8388608&&NC(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||n.flags&8388608||e.hasSyntacticModifier(n,160))){var r=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.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 ut(n.exclamationToken,r)}}function IG(n){return n.kind===254||n.kind===255||n.kind===262||n.kind===261||n.kind===268||n.kind===267||n.kind===260||e.hasSyntacticModifier(n,515)?!1:Bs(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function RG(n){for(var r=0,i=n.statements;r=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,192)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,292)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var i=e.isPrefixUnaryExpression(n.parent)&&n.parent.operator===40,o=(i?"-":"")+"0o"+n.text;return ut(i?n.parent:n,r,o)}}return OG(n),!1}function OG(n){if(!(n.numericLiteralFlags&16||n.text.length<=15||n.text.indexOf(".")!==-1)){var r=+e.getTextOfNode(n);r<=Math.pow(2,53)-1&&r+1>r||Ht(!1,e.createDiagnosticForNode(n,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function kG(n){var r=e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent);return!!(!r&&on<7&&ut(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function PG(n,r,i,o,s){var f=e.getSourceFileOfNode(n);if(!Vp(f)){var S=e.getSpanOfTokenAtPosition(f,n.pos);return Gn.add(e.createFileDiagnostic(f,e.textSpanEnd(S),0,r,i,o,s)),!0}return!1}function MG(){return ti||(ti=[],J.forEach(function(n,r){a.test(r)&&ti.push(n)})),ti}function wG(n){return n.isTypeOnly&&n.name&&n.namedBindings?ut(n,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!1}function GG(n){if(Te===e.ModuleKind.ES2015)return ut(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(n.typeArguments)return ut(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=n.arguments;return r.length!==1?ut(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(um(r),e.isSpreadElement(r[0])?ut(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):!1)}function FG(n,r){var i=e.getObjectFlags(n);if(i&20&&r.flags&1048576)return e.find(r.types,function(o){if(o.flags&524288){var s=i&e.getObjectFlags(o);if(s&4)return n.target===o.target;if(s&16)return!!n.aliasSymbol&&n.aliasSymbol===o.aliasSymbol}return!1})}function BG(n,r){if(e.getObjectFlags(n)&128&&u_(r,xd))return e.find(r.types,function(i){return!xd(i)})}function UG(n,r){var i=0,o=Ea(n,i).length>0||(i=1,Ea(n,i).length>0);if(o)return e.find(r.types,function(s){return Ea(s,i).length>0})}function VG(n,r){for(var i,o=0,s=0,f=r.types;s=o&&(i=S,o=_e)}else su(q)&&1>=o&&(i=S,o=1)}return i}function WG(n){if(Po(n,67108864)){var r=Ms(n,function(i){return!(i.flags&131068)});if(!(r.flags&131072))return r}return n}function MC(n,r,i,o){if(r.flags&1048576&&n.flags&2621440){var s=SL(r,n);if(s)return s;var f=ki(n);if(f){var S=TL(f,r);if(S)return Tb(r,e.map(S,function(q){return[function(){return d(q)},q.escapedName]}),i,void 0,o)}}}}e.createTypeChecker=F;function _(W){return!e.isAccessor(W)}function u(W){return W.kind!==252&&W.kind!==166||!!W.body}function b(W){switch(W.parent.kind){case 266:case 271:return e.isIdentifier(W);default:return e.isDeclarationName(W)}}var w;(function(W){W.JSX="JSX",W.IntrinsicElements="IntrinsicElements",W.ElementClass="ElementClass",W.ElementAttributesPropertyNameContainer="ElementAttributesProperty",W.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",W.Element="Element",W.IntrinsicAttributes="IntrinsicAttributes",W.IntrinsicClassAttributes="IntrinsicClassAttributes",W.LibraryManagedAttributes="LibraryManagedAttributes"})(w||(w={}));function ee(W){switch(W){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function le(W){return!!(W.flags&1)}e.signatureHasRestParameter=le;function ie(W){return!!(W.flags&2)}e.signatureHasLiteralTypes=ie})(un||(un={}));var un;(function(e){function a(E,C,I,j){if(E===void 0||C===void 0)return E;var Y=C(E);if(Y===E)return E;var L;if(Y!==void 0)return e.isArray(Y)?L=(j||ue)(Y):L=Y,e.Debug.assertNode(L,I),L}e.visitNode=a;function p(E,C,I,j,Y){if(E===void 0||C===void 0)return E;var L,k=E.length;(j===void 0||j<0)&&(j=0),(Y===void 0||Y>k-j)&&(Y=k-j);var h,M=-1,O=-1;(j>0||Y=2&&(Y=m(Y,I)),I.setLexicalEnvironmentFlags(1,!1)),I.suspendLexicalEnvironment(),Y}e.visitParameterList=t;function m(E,C){for(var I,j=0;j0&&k<=157||k===188)return E;var h=I.factory;switch(k){case 78:return e.Debug.type(E),h.updateIdentifier(E,j(E.typeArguments,C,e.isTypeNodeOrTypeParameterDeclaration));case 158:return e.Debug.type(E),h.updateQualifiedName(E,L(E.left,C,e.isEntityName),L(E.right,C,e.isIdentifier));case 159:return e.Debug.type(E),h.updateComputedPropertyName(E,L(E.expression,C,e.isExpression));case 160:return e.Debug.type(E),h.updateTypeParameterDeclaration(E,L(E.name,C,e.isIdentifier),L(E.constraint,C,e.isTypeNode),L(E.default,C,e.isTypeNode));case 161:return e.Debug.type(E),h.updateParameterDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.dotDotDotToken,Y,e.isDotDotDotToken),L(E.name,C,e.isBindingName),L(E.questionToken,Y,e.isQuestionToken),L(E.type,C,e.isTypeNode),L(E.initializer,C,e.isExpression));case 162:return e.Debug.type(E),h.updateDecorator(E,L(E.expression,C,e.isExpression));case 163:return e.Debug.type(E),h.updatePropertySignature(E,j(E.modifiers,C,e.isModifier),L(E.name,C,e.isPropertyName),L(E.questionToken,Y,e.isToken),L(E.type,C,e.isTypeNode));case 164:return e.Debug.type(E),h.updatePropertyDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isPropertyName),L(E.questionToken||E.exclamationToken,Y,e.isQuestionOrExclamationToken),L(E.type,C,e.isTypeNode),L(E.initializer,C,e.isExpression));case 165:return e.Debug.type(E),h.updateMethodSignature(E,j(E.modifiers,C,e.isModifier),L(E.name,C,e.isPropertyName),L(E.questionToken,Y,e.isQuestionToken),j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.parameters,C,e.isParameterDeclaration),L(E.type,C,e.isTypeNode));case 166:return e.Debug.type(E),h.updateMethodDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.asteriskToken,Y,e.isAsteriskToken),L(E.name,C,e.isPropertyName),L(E.questionToken,Y,e.isQuestionToken),j(E.typeParameters,C,e.isTypeParameterDeclaration),t(E.parameters,C,I,j),L(E.type,C,e.isTypeNode),x(E.body,C,I,L));case 167:return e.Debug.type(E),h.updateConstructorDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),t(E.parameters,C,I,j),x(E.body,C,I,L));case 168:return e.Debug.type(E),h.updateGetAccessorDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isPropertyName),t(E.parameters,C,I,j),L(E.type,C,e.isTypeNode),x(E.body,C,I,L));case 169:return e.Debug.type(E),h.updateSetAccessorDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isPropertyName),t(E.parameters,C,I,j),x(E.body,C,I,L));case 170:return e.Debug.type(E),h.updateCallSignature(E,j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.parameters,C,e.isParameterDeclaration),L(E.type,C,e.isTypeNode));case 171:return e.Debug.type(E),h.updateConstructSignature(E,j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.parameters,C,e.isParameterDeclaration),L(E.type,C,e.isTypeNode));case 172:return e.Debug.type(E),h.updateIndexSignature(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),j(E.parameters,C,e.isParameterDeclaration),L(E.type,C,e.isTypeNode));case 173:return e.Debug.type(E),h.updateTypePredicateNode(E,L(E.assertsModifier,C,e.isAssertsKeyword),L(E.parameterName,C,e.isIdentifierOrThisTypeNode),L(E.type,C,e.isTypeNode));case 174:return e.Debug.type(E),h.updateTypeReferenceNode(E,L(E.typeName,C,e.isEntityName),j(E.typeArguments,C,e.isTypeNode));case 175:return e.Debug.type(E),h.updateFunctionTypeNode(E,j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.parameters,C,e.isParameterDeclaration),L(E.type,C,e.isTypeNode));case 176:return e.Debug.type(E),h.updateConstructorTypeNode(E,j(E.modifiers,C,e.isModifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.parameters,C,e.isParameterDeclaration),L(E.type,C,e.isTypeNode));case 177:return e.Debug.type(E),h.updateTypeQueryNode(E,L(E.exprName,C,e.isEntityName));case 178:return e.Debug.type(E),h.updateTypeLiteralNode(E,j(E.members,C,e.isTypeElement));case 179:return e.Debug.type(E),h.updateArrayTypeNode(E,L(E.elementType,C,e.isTypeNode));case 180:return e.Debug.type(E),h.updateTupleTypeNode(E,j(E.elements,C,e.isTypeNode));case 181:return e.Debug.type(E),h.updateOptionalTypeNode(E,L(E.type,C,e.isTypeNode));case 182:return e.Debug.type(E),h.updateRestTypeNode(E,L(E.type,C,e.isTypeNode));case 183:return e.Debug.type(E),h.updateUnionTypeNode(E,j(E.types,C,e.isTypeNode));case 184:return e.Debug.type(E),h.updateIntersectionTypeNode(E,j(E.types,C,e.isTypeNode));case 185:return e.Debug.type(E),h.updateConditionalTypeNode(E,L(E.checkType,C,e.isTypeNode),L(E.extendsType,C,e.isTypeNode),L(E.trueType,C,e.isTypeNode),L(E.falseType,C,e.isTypeNode));case 186:return e.Debug.type(E),h.updateInferTypeNode(E,L(E.typeParameter,C,e.isTypeParameterDeclaration));case 196:return e.Debug.type(E),h.updateImportTypeNode(E,L(E.argument,C,e.isTypeNode),L(E.qualifier,C,e.isEntityName),p(E.typeArguments,C,e.isTypeNode),E.isTypeOf);case 193:return e.Debug.type(E),h.updateNamedTupleMember(E,a(E.dotDotDotToken,C,e.isDotDotDotToken),a(E.name,C,e.isIdentifier),a(E.questionToken,C,e.isQuestionToken),a(E.type,C,e.isTypeNode));case 187:return e.Debug.type(E),h.updateParenthesizedType(E,L(E.type,C,e.isTypeNode));case 189:return e.Debug.type(E),h.updateTypeOperatorNode(E,L(E.type,C,e.isTypeNode));case 190:return e.Debug.type(E),h.updateIndexedAccessTypeNode(E,L(E.objectType,C,e.isTypeNode),L(E.indexType,C,e.isTypeNode));case 191:return e.Debug.type(E),h.updateMappedTypeNode(E,L(E.readonlyToken,Y,e.isReadonlyKeywordOrPlusOrMinusToken),L(E.typeParameter,C,e.isTypeParameterDeclaration),L(E.nameType,C,e.isTypeNode),L(E.questionToken,Y,e.isQuestionOrPlusOrMinusToken),L(E.type,C,e.isTypeNode));case 192:return e.Debug.type(E),h.updateLiteralTypeNode(E,L(E.literal,C,e.isExpression));case 194:return e.Debug.type(E),h.updateTemplateLiteralType(E,L(E.head,C,e.isTemplateHead),j(E.templateSpans,C,e.isTemplateLiteralTypeSpan));case 195:return e.Debug.type(E),h.updateTemplateLiteralTypeSpan(E,L(E.type,C,e.isTypeNode),L(E.literal,C,e.isTemplateMiddleOrTemplateTail));case 197:return e.Debug.type(E),h.updateObjectBindingPattern(E,j(E.elements,C,e.isBindingElement));case 198:return e.Debug.type(E),h.updateArrayBindingPattern(E,j(E.elements,C,e.isArrayBindingElement));case 199:return e.Debug.type(E),h.updateBindingElement(E,L(E.dotDotDotToken,Y,e.isDotDotDotToken),L(E.propertyName,C,e.isPropertyName),L(E.name,C,e.isBindingName),L(E.initializer,C,e.isExpression));case 200:return e.Debug.type(E),h.updateArrayLiteralExpression(E,j(E.elements,C,e.isExpression));case 201:return e.Debug.type(E),h.updateObjectLiteralExpression(E,j(E.properties,C,e.isObjectLiteralElementLike));case 202:return E.flags&32?(e.Debug.type(E),h.updatePropertyAccessChain(E,L(E.expression,C,e.isExpression),L(E.questionDotToken,Y,e.isQuestionDotToken),L(E.name,C,e.isMemberName))):(e.Debug.type(E),h.updatePropertyAccessExpression(E,L(E.expression,C,e.isExpression),L(E.name,C,e.isMemberName)));case 203:return E.flags&32?(e.Debug.type(E),h.updateElementAccessChain(E,L(E.expression,C,e.isExpression),L(E.questionDotToken,Y,e.isQuestionDotToken),L(E.argumentExpression,C,e.isExpression))):(e.Debug.type(E),h.updateElementAccessExpression(E,L(E.expression,C,e.isExpression),L(E.argumentExpression,C,e.isExpression)));case 204:return E.flags&32?(e.Debug.type(E),h.updateCallChain(E,L(E.expression,C,e.isExpression),L(E.questionDotToken,Y,e.isQuestionDotToken),j(E.typeArguments,C,e.isTypeNode),j(E.arguments,C,e.isExpression))):(e.Debug.type(E),h.updateCallExpression(E,L(E.expression,C,e.isExpression),j(E.typeArguments,C,e.isTypeNode),j(E.arguments,C,e.isExpression)));case 205:return e.Debug.type(E),h.updateNewExpression(E,L(E.expression,C,e.isExpression),j(E.typeArguments,C,e.isTypeNode),j(E.arguments,C,e.isExpression));case 206:return e.Debug.type(E),h.updateTaggedTemplateExpression(E,L(E.tag,C,e.isExpression),p(E.typeArguments,C,e.isTypeNode),L(E.template,C,e.isTemplateLiteral));case 207:return e.Debug.type(E),h.updateTypeAssertion(E,L(E.type,C,e.isTypeNode),L(E.expression,C,e.isExpression));case 208:return e.Debug.type(E),h.updateParenthesizedExpression(E,L(E.expression,C,e.isExpression));case 209:return e.Debug.type(E),h.updateFunctionExpression(E,j(E.modifiers,C,e.isModifier),L(E.asteriskToken,Y,e.isAsteriskToken),L(E.name,C,e.isIdentifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),t(E.parameters,C,I,j),L(E.type,C,e.isTypeNode),x(E.body,C,I,L));case 210:return e.Debug.type(E),h.updateArrowFunction(E,j(E.modifiers,C,e.isModifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),t(E.parameters,C,I,j),L(E.type,C,e.isTypeNode),L(E.equalsGreaterThanToken,Y,e.isEqualsGreaterThanToken),x(E.body,C,I,L));case 211:return e.Debug.type(E),h.updateDeleteExpression(E,L(E.expression,C,e.isExpression));case 212:return e.Debug.type(E),h.updateTypeOfExpression(E,L(E.expression,C,e.isExpression));case 213:return e.Debug.type(E),h.updateVoidExpression(E,L(E.expression,C,e.isExpression));case 214:return e.Debug.type(E),h.updateAwaitExpression(E,L(E.expression,C,e.isExpression));case 215:return e.Debug.type(E),h.updatePrefixUnaryExpression(E,L(E.operand,C,e.isExpression));case 216:return e.Debug.type(E),h.updatePostfixUnaryExpression(E,L(E.operand,C,e.isExpression));case 217:return e.Debug.type(E),h.updateBinaryExpression(E,L(E.left,C,e.isExpression),L(E.operatorToken,Y,e.isBinaryOperatorToken),L(E.right,C,e.isExpression));case 218:return e.Debug.type(E),h.updateConditionalExpression(E,L(E.condition,C,e.isExpression),L(E.questionToken,Y,e.isQuestionToken),L(E.whenTrue,C,e.isExpression),L(E.colonToken,Y,e.isColonToken),L(E.whenFalse,C,e.isExpression));case 219:return e.Debug.type(E),h.updateTemplateExpression(E,L(E.head,C,e.isTemplateHead),j(E.templateSpans,C,e.isTemplateSpan));case 220:return e.Debug.type(E),h.updateYieldExpression(E,L(E.asteriskToken,Y,e.isAsteriskToken),L(E.expression,C,e.isExpression));case 221:return e.Debug.type(E),h.updateSpreadElement(E,L(E.expression,C,e.isExpression));case 222:return e.Debug.type(E),h.updateClassExpression(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isIdentifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.heritageClauses,C,e.isHeritageClause),j(E.members,C,e.isClassElement));case 224:return e.Debug.type(E),h.updateExpressionWithTypeArguments(E,L(E.expression,C,e.isExpression),j(E.typeArguments,C,e.isTypeNode));case 225:return e.Debug.type(E),h.updateAsExpression(E,L(E.expression,C,e.isExpression),L(E.type,C,e.isTypeNode));case 226:return E.flags&32?(e.Debug.type(E),h.updateNonNullChain(E,L(E.expression,C,e.isExpression))):(e.Debug.type(E),h.updateNonNullExpression(E,L(E.expression,C,e.isExpression)));case 227:return e.Debug.type(E),h.updateMetaProperty(E,L(E.name,C,e.isIdentifier));case 229:return e.Debug.type(E),h.updateTemplateSpan(E,L(E.expression,C,e.isExpression),L(E.literal,C,e.isTemplateMiddleOrTemplateTail));case 231:return e.Debug.type(E),h.updateBlock(E,j(E.statements,C,e.isStatement));case 233:return e.Debug.type(E),h.updateVariableStatement(E,j(E.modifiers,C,e.isModifier),L(E.declarationList,C,e.isVariableDeclarationList));case 234:return e.Debug.type(E),h.updateExpressionStatement(E,L(E.expression,C,e.isExpression));case 235:return e.Debug.type(E),h.updateIfStatement(E,L(E.expression,C,e.isExpression),L(E.thenStatement,C,e.isStatement,h.liftToBlock),L(E.elseStatement,C,e.isStatement,h.liftToBlock));case 236:return e.Debug.type(E),h.updateDoStatement(E,se(E.statement,C,I),L(E.expression,C,e.isExpression));case 237:return e.Debug.type(E),h.updateWhileStatement(E,L(E.expression,C,e.isExpression),se(E.statement,C,I));case 238:return e.Debug.type(E),h.updateForStatement(E,L(E.initializer,C,e.isForInitializer),L(E.condition,C,e.isExpression),L(E.incrementor,C,e.isExpression),se(E.statement,C,I));case 239:return e.Debug.type(E),h.updateForInStatement(E,L(E.initializer,C,e.isForInitializer),L(E.expression,C,e.isExpression),se(E.statement,C,I));case 240:return e.Debug.type(E),h.updateForOfStatement(E,L(E.awaitModifier,Y,e.isAwaitKeyword),L(E.initializer,C,e.isForInitializer),L(E.expression,C,e.isExpression),se(E.statement,C,I));case 241:return e.Debug.type(E),h.updateContinueStatement(E,L(E.label,C,e.isIdentifier));case 242:return e.Debug.type(E),h.updateBreakStatement(E,L(E.label,C,e.isIdentifier));case 243:return e.Debug.type(E),h.updateReturnStatement(E,L(E.expression,C,e.isExpression));case 244:return e.Debug.type(E),h.updateWithStatement(E,L(E.expression,C,e.isExpression),L(E.statement,C,e.isStatement,h.liftToBlock));case 245:return e.Debug.type(E),h.updateSwitchStatement(E,L(E.expression,C,e.isExpression),L(E.caseBlock,C,e.isCaseBlock));case 246:return e.Debug.type(E),h.updateLabeledStatement(E,L(E.label,C,e.isIdentifier),L(E.statement,C,e.isStatement,h.liftToBlock));case 247:return e.Debug.type(E),h.updateThrowStatement(E,L(E.expression,C,e.isExpression));case 248:return e.Debug.type(E),h.updateTryStatement(E,L(E.tryBlock,C,e.isBlock),L(E.catchClause,C,e.isCatchClause),L(E.finallyBlock,C,e.isBlock));case 250:return e.Debug.type(E),h.updateVariableDeclaration(E,L(E.name,C,e.isBindingName),L(E.exclamationToken,Y,e.isExclamationToken),L(E.type,C,e.isTypeNode),L(E.initializer,C,e.isExpression));case 251:return e.Debug.type(E),h.updateVariableDeclarationList(E,j(E.declarations,C,e.isVariableDeclaration));case 252:return e.Debug.type(E),h.updateFunctionDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.asteriskToken,Y,e.isAsteriskToken),L(E.name,C,e.isIdentifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),t(E.parameters,C,I,j),L(E.type,C,e.isTypeNode),x(E.body,C,I,L));case 253:return e.Debug.type(E),h.updateClassDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isIdentifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.heritageClauses,C,e.isHeritageClause),j(E.members,C,e.isClassElement));case 254:return e.Debug.type(E),h.updateInterfaceDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isIdentifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),j(E.heritageClauses,C,e.isHeritageClause),j(E.members,C,e.isTypeElement));case 255:return e.Debug.type(E),h.updateTypeAliasDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isIdentifier),j(E.typeParameters,C,e.isTypeParameterDeclaration),L(E.type,C,e.isTypeNode));case 256:return e.Debug.type(E),h.updateEnumDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isIdentifier),j(E.members,C,e.isEnumMember));case 257:return e.Debug.type(E),h.updateModuleDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.name,C,e.isModuleName),L(E.body,C,e.isModuleBody));case 258:return e.Debug.type(E),h.updateModuleBlock(E,j(E.statements,C,e.isStatement));case 259:return e.Debug.type(E),h.updateCaseBlock(E,j(E.clauses,C,e.isCaseOrDefaultClause));case 260:return e.Debug.type(E),h.updateNamespaceExportDeclaration(E,L(E.name,C,e.isIdentifier));case 261:return e.Debug.type(E),h.updateImportEqualsDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),E.isTypeOnly,L(E.name,C,e.isIdentifier),L(E.moduleReference,C,e.isModuleReference));case 262:return e.Debug.type(E),h.updateImportDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.importClause,C,e.isImportClause),L(E.moduleSpecifier,C,e.isExpression));case 263:return e.Debug.type(E),h.updateImportClause(E,E.isTypeOnly,L(E.name,C,e.isIdentifier),L(E.namedBindings,C,e.isNamedImportBindings));case 264:return e.Debug.type(E),h.updateNamespaceImport(E,L(E.name,C,e.isIdentifier));case 270:return e.Debug.type(E),h.updateNamespaceExport(E,L(E.name,C,e.isIdentifier));case 265:return e.Debug.type(E),h.updateNamedImports(E,j(E.elements,C,e.isImportSpecifier));case 266:return e.Debug.type(E),h.updateImportSpecifier(E,L(E.propertyName,C,e.isIdentifier),L(E.name,C,e.isIdentifier));case 267:return e.Debug.type(E),h.updateExportAssignment(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),L(E.expression,C,e.isExpression));case 268:return e.Debug.type(E),h.updateExportDeclaration(E,j(E.decorators,C,e.isDecorator),j(E.modifiers,C,e.isModifier),E.isTypeOnly,L(E.exportClause,C,e.isNamedExportBindings),L(E.moduleSpecifier,C,e.isExpression));case 269:return e.Debug.type(E),h.updateNamedExports(E,j(E.elements,C,e.isExportSpecifier));case 271:return e.Debug.type(E),h.updateExportSpecifier(E,L(E.propertyName,C,e.isIdentifier),L(E.name,C,e.isIdentifier));case 273:return e.Debug.type(E),h.updateExternalModuleReference(E,L(E.expression,C,e.isExpression));case 274:return e.Debug.type(E),h.updateJsxElement(E,L(E.openingElement,C,e.isJsxOpeningElement),j(E.children,C,e.isJsxChild),L(E.closingElement,C,e.isJsxClosingElement));case 275:return e.Debug.type(E),h.updateJsxSelfClosingElement(E,L(E.tagName,C,e.isJsxTagNameExpression),j(E.typeArguments,C,e.isTypeNode),L(E.attributes,C,e.isJsxAttributes));case 276:return e.Debug.type(E),h.updateJsxOpeningElement(E,L(E.tagName,C,e.isJsxTagNameExpression),j(E.typeArguments,C,e.isTypeNode),L(E.attributes,C,e.isJsxAttributes));case 277:return e.Debug.type(E),h.updateJsxClosingElement(E,L(E.tagName,C,e.isJsxTagNameExpression));case 278:return e.Debug.type(E),h.updateJsxFragment(E,L(E.openingFragment,C,e.isJsxOpeningFragment),j(E.children,C,e.isJsxChild),L(E.closingFragment,C,e.isJsxClosingFragment));case 281:return e.Debug.type(E),h.updateJsxAttribute(E,L(E.name,C,e.isIdentifier),L(E.initializer,C,e.isStringLiteralOrJsxExpression));case 282:return e.Debug.type(E),h.updateJsxAttributes(E,j(E.properties,C,e.isJsxAttributeLike));case 283:return e.Debug.type(E),h.updateJsxSpreadAttribute(E,L(E.expression,C,e.isExpression));case 284:return e.Debug.type(E),h.updateJsxExpression(E,L(E.expression,C,e.isExpression));case 285:return e.Debug.type(E),h.updateCaseClause(E,L(E.expression,C,e.isExpression),j(E.statements,C,e.isStatement));case 286:return e.Debug.type(E),h.updateDefaultClause(E,j(E.statements,C,e.isStatement));case 287:return e.Debug.type(E),h.updateHeritageClause(E,j(E.types,C,e.isExpressionWithTypeArguments));case 288:return e.Debug.type(E),h.updateCatchClause(E,L(E.variableDeclaration,C,e.isVariableDeclaration),L(E.block,C,e.isBlock));case 289:return e.Debug.type(E),h.updatePropertyAssignment(E,L(E.name,C,e.isPropertyName),L(E.initializer,C,e.isExpression));case 290:return e.Debug.type(E),h.updateShorthandPropertyAssignment(E,L(E.name,C,e.isIdentifier),L(E.objectAssignmentInitializer,C,e.isExpression));case 291:return e.Debug.type(E),h.updateSpreadAssignment(E,L(E.expression,C,e.isExpression));case 292:return e.Debug.type(E),h.updateEnumMember(E,L(E.name,C,e.isPropertyName),L(E.initializer,C,e.isExpression));case 298:return e.Debug.type(E),h.updateSourceFile(E,g(E.statements,C,I));case 340:return e.Debug.type(E),h.updatePartiallyEmittedExpression(E,L(E.expression,C,e.isExpression));case 341:return e.Debug.type(E),h.updateCommaListExpression(E,j(E.elements,C,e.isExpression));default:return E}}}e.visitEachChild=z;function ue(E){return e.Debug.assert(E.length<=1,"Too many nodes written to output."),e.singleOrUndefined(E)}})(un||(un={}));var un;(function(e){function a(O,H,$,Z,B){var U=B.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,K=U.enter,T=U.exit,G=[],v=[],R=new e.Map,F,_=[],u,b="",w=0,ee=0,le=0,ie=0,W=0,ge=0,fe=!1,A=0,X=0,re=0,ve=0,ke=0,Ie=0,Je=!1,je=!1,fn=!1;return{getSources:function(){return G},addSource:ze,setSourceContent:Ve,addName:Ne,addMapping:Ce,appendSourceMap:ye,toJSON:tn,toString:function(){return JSON.stringify(tn())}};function ze(Fe){K();var Ke=e.getRelativePathToDirectoryOrUrl(Z,Fe,O.getCurrentDirectory(),O.getCanonicalFileName,!0),rn=R.get(Ke);return rn===void 0&&(rn=v.length,v.push(Ke),G.push(Fe),R.set(Ke,rn)),T(),rn}function Ve(Fe,Ke){if(K(),Ke!==null){for(F||(F=[]);F.lengthKe||ve===Ke&&ke>rn)}function Ce(Fe,Ke,rn,vn,xn,Rn){e.Debug.assert(Fe>=A,"generatedLine cannot backtrack"),e.Debug.assert(Ke>=0,"generatedCharacter cannot be negative"),e.Debug.assert(rn===void 0||rn>=0,"sourceIndex cannot be negative"),e.Debug.assert(vn===void 0||vn>=0,"sourceLine cannot be negative"),e.Debug.assert(xn===void 0||xn>=0,"sourceCharacter cannot be negative"),K(),(be(Fe,Ke)||de(rn,vn,xn))&&(Te(),A=Fe,X=Ke,je=!1,fn=!1,Je=!0),rn!==void 0&&vn!==void 0&&xn!==void 0&&(re=rn,ve=vn,ke=xn,je=!0,Rn!==void 0&&(Ie=Rn,fn=!0)),T()}function ye(Fe,Ke,rn,vn,xn,Rn){e.Debug.assert(Fe>=A,"generatedLine cannot backtrack"),e.Debug.assert(Ke>=0,"generatedCharacter cannot be negative"),K();for(var Ge=[],we,Re=x(rn.mappings),yn=Re.next();!yn.done;yn=Re.next()){var Ee=yn.value;if(Rn&&(Ee.generatedLine>Rn.line||Ee.generatedLine===Rn.line&&Ee.generatedCharacter>Rn.character))break;if(!(xn&&(Ee.generatedLine=0;H--){var $=O.getLineText(H),Z=p.exec($);if(Z)return Z[1];if(!$.match(g))break}}e.tryGetSourceMappingURL=m;function N(O){return typeof O=="string"||O===null}function D(O){return O!==null&&typeof O=="object"&&O.version===3&&typeof O.file=="string"&&typeof O.mappings=="string"&&e.isArray(O.sources)&&e.every(O.sources,e.isString)&&(O.sourceRoot===void 0||O.sourceRoot===null||typeof O.sourceRoot=="string")&&(O.sourcesContent===void 0||O.sourcesContent===null||e.isArray(O.sourcesContent)&&e.every(O.sourcesContent,N))&&(O.names===void 0||O.names===null||e.isArray(O.names)&&e.every(O.names,e.isString))}e.isRawSourceMap=D;function c(O){try{var H=JSON.parse(O);if(D(H))return H}catch{}}e.tryParseRawSourceMap=c;function x(O){var H=!1,$=0,Z=0,B=0,U=0,K=0,T=0,G=0,v;return{get pos(){return $},get error(){return v},get state(){return R(!0,!0)},next:function(){for(;!H&&$=O.length)return _("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var ge=E(O.charCodeAt($));if(ge===-1)return _("Invalid character in VLQ"),-1;le=(ge&32)!==0,W=W|(ge&31)<>1,W=-W):W=W>>1,W}}e.decodeMappings=x;function se(O,H){return O===H||O.generatedLine===H.generatedLine&&O.generatedCharacter===H.generatedCharacter&&O.sourceIndex===H.sourceIndex&&O.sourceLine===H.sourceLine&&O.sourceCharacter===H.sourceCharacter&&O.nameIndex===H.nameIndex}e.sameMapping=se;function z(O){return O.sourceIndex!==void 0&&O.sourceLine!==void 0&&O.sourceCharacter!==void 0}e.isSourceMapping=z;function ue(O){return O>=0&&O<26?65+O:O>=26&&O<52?97+O-26:O>=52&&O<62?48+O-52:O===62?43:O===63?47:e.Debug.fail(O+": not a base64 value")}function E(O){return O>=65&&O<=90?O-65:O>=97&&O<=122?O-97+26:O>=48&&O<=57?O-48+52:O===43?62:O===47?63:-1}function C(O){O<0?O=(-O<<1)+1:O=O<<1;var H="";do{var $=O&31;O=O>>5,O>0&&($=$|32),H=H+String.fromCharCode(ue($))}while(O>0);return H}function I(O){return O.sourceIndex!==void 0&&O.sourcePosition!==void 0}function j(O,H){return O.generatedPosition===H.generatedPosition&&O.sourceIndex===H.sourceIndex&&O.sourcePosition===H.sourcePosition}function Y(O,H){return e.Debug.assert(O.sourceIndex===H.sourceIndex),e.compareValues(O.sourcePosition,H.sourcePosition)}function L(O,H){return e.compareValues(O.generatedPosition,H.generatedPosition)}function k(O){return O.sourcePosition}function h(O){return O.generatedPosition}function M(O,H,$){var Z=e.getDirectoryPath($),B=H.sourceRoot?e.getNormalizedAbsolutePath(H.sourceRoot,Z):Z,U=e.getNormalizedAbsolutePath(H.file,Z),K=O.getSourceFileLike(U),T=H.sources.map(function(ie){return e.getNormalizedAbsolutePath(ie,B)}),G=new e.Map(T.map(function(ie,W){return[O.getCanonicalFileName(ie),W]})),v,R,F;return{getSourcePosition:le,getGeneratedPosition:ee};function _(ie){var W=K!==void 0?e.getPositionOfLineAndCharacter(K,ie.generatedLine,ie.generatedCharacter,!0):-1,ge,fe;if(z(ie)){var A=O.getSourceFileLike(T[ie.sourceIndex]);ge=H.sources[ie.sourceIndex],fe=A!==void 0?e.getPositionOfLineAndCharacter(A,ie.sourceLine,ie.sourceCharacter,!0):-1}return{generatedPosition:W,source:ge,sourceIndex:ie.sourceIndex,sourcePosition:fe,nameIndex:ie.nameIndex}}function u(){if(v===void 0){var ie=x(H.mappings),W=e.arrayFrom(ie,_);ie.error!==void 0?(O.log&&O.log("Encountered error while decoding sourcemap: "+ie.error),v=e.emptyArray):v=W}return v}function b(ie){if(F===void 0){for(var W=[],ge=0,fe=u();ge0&&O!==M.elements.length||!!(M.elements.length-O)&&e.isDefaultImport(h)}e.getImportNeedsImportStarHelper=N;function D(h){return!N(h)&&(e.isDefaultImport(h)||!!h.importClause&&e.isNamedImports(h.importClause.namedBindings)&&p(h.importClause.namedBindings))}e.getImportNeedsImportDefaultHelper=D;function c(h,M,O,H){for(var $=[],Z=e.createMultiMap(),B=[],U=new e.Map,K,T=!1,G,v=!1,R=!1,F=!1,_=0,u=M.statements;_=63&&h<=77}e.isCompoundAssignment=E;function C(h){switch(h){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}}e.getNonAssignmentOperatorForCompoundAssignment=C;function I(h,M,O,H){if(M.body){var $=M.body.statements,Z=h.copyPrologue($,O,!1,H);if(Z===$.length)return Z;var B=e.findIndex($,function(K){return e.isExpressionStatement(K)&&e.isSuperCall(K.expression)},Z);if(B>-1){for(var U=Z;U<=B;U++)O.push(e.visitNode($[U],H,e.isStatement));return B+1}return Z}return 0}e.addPrologueDirectivesAndInitialSuperCall=I;function j(h,M,O){return e.filter(h.members,function(H){return Y(H,M,O)})}e.getProperties=j;function Y(h,M,O){return e.isPropertyDeclaration(h)&&(!!h.initializer||!M)&&e.hasStaticModifier(h)===O}function L(h){return h.kind===164&&h.initializer!==void 0}e.isInitializedProperty=L;function k(h){return!e.hasStaticModifier(h)&&e.isMethodOrAccessor(h)&&e.isPrivateIdentifier(h.name)}e.isNonStaticMethodOrAccessorWithPrivateName=k})(un||(un={}));var un;(function(e){(function(h){h[h.All=0]="All",h[h.ObjectRest=1]="ObjectRest"})(e.FlattenLevel||(e.FlattenLevel={}));function a(h,M,O,H,$,Z){var B=h,U;if(e.isDestructuringAssignment(h))for(U=h.right;e.isEmptyArrayLiteral(h.left)||e.isEmptyObjectLiteral(h.left);)if(e.isDestructuringAssignment(U))B=h=U,U=h.right;else return e.visitNode(U,M,e.isExpression);var K,T={context:O,level:H,downlevelIteration:!!O.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:G,emitBindingOrAssignment:v,createArrayBindingOrAssignmentPattern:function(R){return I(O.factory,R)},createObjectBindingOrAssignmentPattern:function(R){return Y(O.factory,R)},createArrayBindingOrAssignmentElement:k,visitor:M};if(U&&(U=e.visitNode(U,M,e.isExpression),e.isIdentifier(U)&&p(h,U.escapedText)||t(h)?U=E(T,U,!1,B):$?U=E(T,U,!0,B):e.nodeIsSynthesized(h)&&(B=U)),D(T,h,U,B,e.isDestructuringAssignment(h)),U&&$){if(!e.some(K))return U;K.push(U)}return O.factory.inlineExpressions(K)||O.factory.createOmittedExpression();function G(R){K=e.append(K,R)}function v(R,F,_,u){e.Debug.assertNode(R,Z?e.isIdentifier:e.isExpression);var b=Z?Z(R,F,_):e.setTextRange(O.factory.createAssignment(e.visitNode(R,M,e.isExpression),F),_);b.original=u,G(b)}}e.flattenDestructuringAssignment=a;function p(h,M){var O=e.getTargetOfBindingOrAssignmentElement(h);return e.isBindingOrAssignmentPattern(O)?g(O,M):e.isIdentifier(O)?O.escapedText===M:!1}function g(h,M){for(var O=e.getElementsOfBindingOrAssignmentPattern(h),H=0,$=O;H<$.length;H++){var Z=$[H];if(p(Z,M))return!0}return!1}function t(h){var M=e.tryGetPropertyNameOfBindingOrAssignmentElement(h);if(M&&e.isComputedPropertyName(M)&&!e.isLiteralExpression(M.expression))return!0;var O=e.getTargetOfBindingOrAssignmentElement(h);return!!O&&e.isBindingOrAssignmentPattern(O)&&m(O)}function m(h){return!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(h),t)}function N(h,M,O,H,$,Z,B){Z===void 0&&(Z=!1);var U,K=[],T=[],G={context:O,level:H,downlevelIteration:!!O.getCompilerOptions().downlevelIteration,hoistTempVariables:Z,emitExpression:fe,emitBindingOrAssignment:A,createArrayBindingOrAssignmentPattern:function(X){return C(O.factory,X)},createObjectBindingOrAssignmentPattern:function(X){return j(O.factory,X)},createArrayBindingOrAssignmentElement:function(X){return L(O.factory,X)},visitor:M};if(e.isVariableDeclaration(h)){var v=e.getInitializerOfBindingOrAssignmentElement(h);v&&(e.isIdentifier(v)&&p(h,v.escapedText)||t(h))&&(v=E(G,e.visitNode(v,G.visitor),!1,v),h=O.factory.updateVariableDeclaration(h,h.name,void 0,void 0,v))}if(D(G,h,$,h,B),U){var R=O.factory.createTempVariable(void 0);if(Z){var F=O.factory.inlineExpressions(U);U=void 0,A(R,F,void 0,void 0)}else{O.hoistVariableDeclaration(R);var _=e.last(K);_.pendingExpressions=e.append(_.pendingExpressions,O.factory.createAssignment(R,_.value)),e.addRange(_.pendingExpressions,U),_.value=R}}for(var u=0,b=K;u=1&&!(v.transformFlags&49152)&&!(e.getTargetOfBindingOrAssignmentElement(v).transformFlags&49152)&&!e.isComputedPropertyName(R))K=e.append(K,e.visitNode(v,h.visitor));else{K&&(h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(K),H,$,O),K=void 0);var F=ue(h,H,R);e.isComputedPropertyName(R)&&(T=e.append(T,F.argumentExpression)),D(h,v,F,v)}}}K&&h.emitBindingOrAssignment(h.createObjectBindingOrAssignmentPattern(K),H,$,O)}function x(h,M,O,H,$){var Z=e.getElementsOfBindingOrAssignmentPattern(O),B=Z.length;if(h.level<1&&h.downlevelIteration)H=E(h,e.setTextRange(h.context.getEmitHelperFactory().createReadHelper(H,B>0&&e.getRestIndicatorOfBindingOrAssignmentElement(Z[B-1])?void 0:B),$),!1,$);else if(B!==1&&(h.level<1||B===0)||e.every(Z,e.isOmittedExpression)){var U=!e.isDeclarationBindingElement(M)||B!==0;H=E(h,H,U,$)}for(var K,T,G=0;G=1)if(v.transformFlags&32768||h.hasTransformedPriorElement&&!se(v)){h.hasTransformedPriorElement=!0;var R=h.context.factory.createTempVariable(void 0);h.hoistTempVariables&&h.context.hoistVariableDeclaration(R),T=e.append(T,[R,v]),K=e.append(K,h.createArrayBindingOrAssignmentElement(R))}else K=e.append(K,v);else{if(e.isOmittedExpression(v))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(v)){if(G===B-1){var F=h.context.factory.createArraySliceCall(H,G);D(h,v,F,v)}}else{var F=h.context.factory.createElementAccessExpression(H,G);D(h,v,F,v)}}}if(K&&h.emitBindingOrAssignment(h.createArrayBindingOrAssignmentPattern(K),H,$,O),T)for(var _=0,u=T;_=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(pe);return m.updateSourceFile(pe,e.visitLexicalEnvironment(pe.statements,u,t,0,Q))}function X(pe){if(pe.decorators&&pe.decorators.length>0)return!0;var Q=e.getFirstConstructorWithBody(pe);return Q?e.forEach(Q.parameters,re):!1}function re(pe){return pe.decorators!==void 0&&pe.decorators.length>0}function ve(pe,Q){var De=0;e.some(Q)&&(De|=1);var qe=e.getEffectiveBaseTypeNode(pe);return qe&&e.skipOuterExpressions(qe.expression).kind!==103&&(De|=64),X(pe)&&(De|=2),e.childIsDecorated(pe)&&(De|=4),_i(pe)?De|=8:ja(pe)?De|=32:Ni(pe)&&(De|=16),C<=1&&De&7&&(De|=128),De}function ke(pe){return!!(pe.transformFlags&4096)}function Ie(pe){return e.some(pe.decorators)||e.some(pe.typeParameters)||e.some(pe.heritageClauses,ke)||e.some(pe.members,ke)}function Je(pe){if(!Ie(pe)&&!(k&&e.hasSyntacticModifier(pe,1)))return e.visitEachChild(pe,F,t);var Q=e.getProperties(pe,!0,!0),De=ve(pe,Q);De&128&&t.startLexicalEnvironment();var qe=pe.name||(De&5?m.getGeneratedNameForNode(pe):void 0),sn=De&2?fn(pe,qe):je(pe,qe,De),Mn=[sn];if(vn(Mn,pe,!1),vn(Mn,pe,!0),Ge(Mn,pe),De&128){var or=e.createTokenRange(e.skipTrivia(L.text,pe.members.end),19),Ir=m.getInternalName(pe),at=m.createPartiallyEmittedExpression(Ir);e.setTextRangeEnd(at,or.end),e.setEmitFlags(at,1536);var Ft=m.createReturnStatement(at);e.setTextRangePos(Ft,or.pos),e.setEmitFlags(Ft,1920),Mn.push(Ft),e.insertStatementsAfterStandardPrologue(Mn,t.endLexicalEnvironment());var Da=m.createImmediatelyInvokedArrowFunction(Mn);e.setEmitFlags(Da,33554432);var $a=m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(m.getLocalName(pe,!1,!1),void 0,void 0,Da)]));e.setOriginalNode($a,pe),e.setCommentRange($a,pe),e.setSourceMapRange($a,e.moveRangePastDecorators(pe)),e.startOnNewLine($a),Mn=[$a]}return De&8?Di(Mn,pe):(De&128||De&2)&&(De&32?Mn.push(m.createExportDefault(m.getLocalName(pe,!1,!0))):De&16&&Mn.push(m.createExternalModuleExport(m.getLocalName(pe,!1,!0)))),Mn.length>1&&(Mn.push(m.createEndOfDeclarationMarker(pe)),e.setEmitFlags(sn,e.getEmitFlags(sn)|4194304)),e.singleOrMany(Mn)}function je(pe,Q,De){var qe=De&128?void 0:e.visitNodes(pe.modifiers,ge,e.isModifier),sn=m.createClassDeclaration(void 0,qe,Q,void 0,e.visitNodes(pe.heritageClauses,F,e.isHeritageClause),Ve(pe)),Mn=e.getEmitFlags(pe);return De&1&&(Mn|=32),e.setTextRange(sn,pe),e.setOriginalNode(sn,pe),e.setEmitFlags(sn,Mn),sn}function fn(pe,Q){var De=e.moveRangePastDecorators(pe),qe=bo(pe),sn=m.getLocalName(pe,!1,!0),Mn=e.visitNodes(pe.heritageClauses,F,e.isHeritageClause),or=Ve(pe),Ir=m.createClassExpression(void 0,void 0,Q,void 0,Mn,or);e.setOriginalNode(Ir,pe),e.setTextRange(Ir,De);var at=m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(sn,void 0,void 0,qe?m.createAssignment(qe,Ir):Ir)],1));return e.setOriginalNode(at,pe),e.setTextRange(at,De),e.setCommentRange(at,pe),at}function ze(pe){if(!Ie(pe))return e.visitEachChild(pe,F,t);var Q=m.createClassExpression(void 0,void 0,pe.name,void 0,e.visitNodes(pe.heritageClauses,F,e.isHeritageClause),Ve(pe));return e.setOriginalNode(Q,pe),e.setTextRange(Q,pe),Q}function Ve(pe){var Q=[],De=e.getFirstConstructorWithBody(pe),qe=De&&e.filter(De.parameters,function(Ir){return e.isParameterPropertyDeclaration(Ir,De)});if(qe)for(var sn=0,Mn=qe;sn0&&e.parameterIsThisKeyword(De[0]),sn=qe?1:0,Mn=qe?De.length-1:De.length,or=0;or0?Q.kind===164?m.createVoidZero():m.createNull():void 0,Ir=N().createDecorateHelper(qe,sn,Mn,or);return e.setTextRange(Ir,e.moveRangePastDecorators(Q)),e.setEmitFlags(Ir,1536),Ir}}function Ge(pe,Q){var De=we(Q);De&&pe.push(e.setOriginalNode(m.createExpressionStatement(De),Q))}function we(pe){var Q=on(pe),De=rn(pe,pe,Q);if(De){var qe=B&&B[e.getOriginalNodeId(pe)],sn=m.getLocalName(pe,!1,!0),Mn=N().createDecorateHelper(De,sn),or=m.createAssignment(sn,qe?m.createAssignment(qe,Mn):Mn);return e.setEmitFlags(or,1536),e.setSourceMapRange(or,e.moveRangePastDecorators(pe)),or}}function Re(pe){return e.visitNode(pe.expression,F,e.isExpression)}function yn(pe,Q){var De;if(pe){De=[];for(var qe=0,sn=pe;qewn&&(j||e.addRange(qn,e.visitNodes(Se.body.statements,B,e.isStatement,wn,yr-wn)),wn=yr)}var Vr=c.createThis();return Te(qn,Sn,Vr),de(qn,an,Vr),Se&&e.addRange(qn,e.visitNodes(Se.body.statements,B,e.isStatement,wn)),qn=c.mergeLexicalEnvironment(qn,se()),e.setTextRange(c.createBlock(e.setTextRange(c.createNodeArray(qn),Se?Se.body.statements:P.members),!0),Se?Se.body:void 0)}function de(P,Se,Ye){for(var an=0,Sn=Se;an=0;--Ye){var an=H[Ye];if(an){var Se=an.identifiers.get(P.escapedText);if(Se)return Se}}}function J(P){var Se=c.getGeneratedNameForNode(P),Ye=oe(P.name);if(!Ye)return e.visitEachChild(P,B,D);var an=P.expression;return(e.isThisProperty(P)||e.isSuperProperty(P)||!e.isSimpleCopiableExpression(P.expression))&&(an=c.createTempVariable(x,!0),we().push(c.createBinaryExpression(an,62,P.expression))),c.createPropertyAccessExpression(c.createParenthesizedExpression(c.createObjectLiteralExpression([c.createSetAccessorDeclaration(void 0,void 0,"value",[c.createParameterDeclaration(void 0,void 0,void 0,Se,void 0,void 0,void 0)],c.createBlock([c.createExpressionStatement(re(Ye,an,Se,62))]))])),"value")}function te(P){var Se=e.getTargetOfBindingOrAssignmentElement(P);if(Se&&e.isPrivateIdentifierPropertyAccessExpression(Se)){var Ye=J(Se);return e.isAssignmentExpression(P)?c.updateBinaryExpression(P,Ye,P.operatorToken,e.visitNode(P.right,B,e.isExpression)):e.isSpreadElement(P)?c.updateSpreadElement(P,Ye):Ye}return e.visitNode(P,U)}function me(P){if(e.isPropertyAssignment(P)){var Se=e.getTargetOfBindingOrAssignmentElement(P);if(Se&&e.isPrivateIdentifierPropertyAccessExpression(Se)){var Ye=e.getInitializerOfBindingOrAssignmentElement(P),an=J(Se);return c.updatePropertyAssignment(P,e.visitNode(P.name,B),Ye?c.createAssignment(an,e.visitNode(Ye,B)):an)}return c.updatePropertyAssignment(P,e.visitNode(P.name,B),e.visitNode(P.initializer,U))}return e.visitNode(P,B)}function xe(P){return e.isArrayLiteralExpression(P)?c.updateArrayLiteralExpression(P,e.visitNodes(P.elements,te,e.isExpression)):c.updateObjectLiteralExpression(P,e.visitNodes(P.properties,me,e.isObjectLiteralElementLike))}}e.transformClassFields=p;function g(D,c){return e.factory.createAssignment(D,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",c||e.factory.createVoidZero())]))}function t(D,c,x){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(x,"set"),void 0,[D,c||e.factory.createVoidZero()])}function m(D,c){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(c,"add"),void 0,[D])}function N(D){return D.escapedText==="#constructor"}})(un||(un={}));var un;(function(e){var a;(function(m){m[m.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(a||(a={}));var p;(function(m){m[m.NonTopLevel=1]="NonTopLevel",m[m.HasLexicalThis=2]="HasLexicalThis"})(p||(p={}));function g(m){var N=m.factory,D=m.getEmitHelperFactory,c=m.resumeLexicalEnvironment,x=m.endLexicalEnvironment,se=m.hoistVariableDeclaration,z=m.getEmitResolver(),ue=m.getCompilerOptions(),E=e.getEmitScriptTarget(ue),C,I=0,j,Y,L,k=[],h=0,M=m.onEmitNode,O=m.onSubstituteNode;return m.onEmitNode=ze,m.onSubstituteNode=Ve,e.chainBundle(m,H);function H(Te){if(Te.isDeclarationFile)return Te;$(1,!1),$(2,!e.isEffectiveStrictModeSourceFile(Te,ue));var tn=e.visitEachChild(Te,G,m);return e.addEmitHelpers(tn,m.readEmitHelpers()),tn}function $(Te,tn){h=tn?h|Te:h&~Te}function Z(Te){return(h&Te)!==0}function B(){return!Z(1)}function U(){return Z(2)}function K(Te,tn,Fe){var Ke=Te&~h;if(Ke){$(Ke,!0);var rn=tn(Fe);return $(Ke,!1),rn}return tn(Fe)}function T(Te){return e.visitEachChild(Te,G,m)}function G(Te){if(!(Te.transformFlags&128))return Te;switch(Te.kind){case 129:return;case 214:return w(Te);case 166:return K(3,ee,Te);case 252:return K(3,le,Te);case 209:return K(3,ie,Te);case 210:return K(1,W,Te);case 202:return Y&&e.isPropertyAccessExpression(Te)&&Te.expression.kind===105&&Y.add(Te.name.escapedText),e.visitEachChild(Te,G,m);case 203:return Y&&Te.expression.kind===105&&(L=!0),e.visitEachChild(Te,G,m);case 168:case 169:case 167:case 253:case 222:return K(3,T,Te);default:return e.visitEachChild(Te,G,m)}}function v(Te){if(e.isNodeWithPossibleHoistedDeclaration(Te))switch(Te.kind){case 233:return F(Te);case 238:return b(Te);case 239:return _(Te);case 240:return u(Te);case 288:return R(Te);case 231:case 245:case 259:case 285:case 286:case 248:case 236:case 237:case 235:case 244:case 246:return e.visitEachChild(Te,v,m);default:return e.Debug.assertNever(Te,"Unhandled node.")}return G(Te)}function R(Te){var tn=new e.Set;ge(Te.variableDeclaration,tn);var Fe;if(tn.forEach(function(vn,xn){j.has(xn)&&(Fe||(Fe=new e.Set(j)),Fe.delete(xn))}),Fe){var Ke=j;j=Fe;var rn=e.visitEachChild(Te,v,m);return j=Ke,rn}else return e.visitEachChild(Te,v,m)}function F(Te){if(fe(Te.declarationList)){var tn=A(Te.declarationList,!1);return tn?N.createExpressionStatement(tn):void 0}return e.visitEachChild(Te,G,m)}function _(Te){return N.updateForInStatement(Te,fe(Te.initializer)?A(Te.initializer,!0):e.visitNode(Te.initializer,G,e.isForInitializer),e.visitNode(Te.expression,G,e.isExpression),e.visitIterationBody(Te.statement,v,m))}function u(Te){return N.updateForOfStatement(Te,e.visitNode(Te.awaitModifier,G,e.isToken),fe(Te.initializer)?A(Te.initializer,!0):e.visitNode(Te.initializer,G,e.isForInitializer),e.visitNode(Te.expression,G,e.isExpression),e.visitIterationBody(Te.statement,v,m))}function b(Te){var tn=Te.initializer;return N.updateForStatement(Te,fe(tn)?A(tn,!1):e.visitNode(Te.initializer,G,e.isForInitializer),e.visitNode(Te.condition,G,e.isExpression),e.visitNode(Te.incrementor,G,e.isExpression),e.visitIterationBody(Te.statement,v,m))}function w(Te){return B()?e.visitEachChild(Te,G,m):e.setOriginalNode(e.setTextRange(N.createYieldExpression(void 0,e.visitNode(Te.expression,G,e.isExpression)),Te),Te)}function ee(Te){return N.updateMethodDeclaration(Te,void 0,e.visitNodes(Te.modifiers,G,e.isModifier),Te.asteriskToken,Te.name,void 0,void 0,e.visitParameterList(Te.parameters,G,m),void 0,e.getFunctionFlags(Te)&2?Ie(Te):e.visitFunctionBody(Te.body,G,m))}function le(Te){return N.updateFunctionDeclaration(Te,void 0,e.visitNodes(Te.modifiers,G,e.isModifier),Te.asteriskToken,Te.name,void 0,e.visitParameterList(Te.parameters,G,m),void 0,e.getFunctionFlags(Te)&2?Ie(Te):e.visitFunctionBody(Te.body,G,m))}function ie(Te){return N.updateFunctionExpression(Te,e.visitNodes(Te.modifiers,G,e.isModifier),Te.asteriskToken,Te.name,void 0,e.visitParameterList(Te.parameters,G,m),void 0,e.getFunctionFlags(Te)&2?Ie(Te):e.visitFunctionBody(Te.body,G,m))}function W(Te){return N.updateArrowFunction(Te,e.visitNodes(Te.modifiers,G,e.isModifier),void 0,e.visitParameterList(Te.parameters,G,m),void 0,Te.equalsGreaterThanToken,e.getFunctionFlags(Te)&2?Ie(Te):e.visitFunctionBody(Te.body,G,m))}function ge(Te,tn){var Fe=Te.name;if(e.isIdentifier(Fe))tn.add(Fe.escapedText);else for(var Ke=0,rn=Fe.elements;Ke=2&&z.getNodeCheckFlags(Te)&6144;if(te&&(fn(),Y.size)){var me=t(N,z,Te,Y);k[e.getNodeId(me)]=!0,e.insertStatementsAfterStandardPrologue(oe,[me])}var xe=N.createBlock(oe,!0);e.setTextRange(xe,Te.body),te&&L&&(z.getNodeCheckFlags(Te)&4096?e.addEmitHelper(xe,e.advancedAsyncSuperHelper):z.getNodeCheckFlags(Te)&2048&&e.addEmitHelper(xe,e.asyncSuperHelper)),Ee=xe}return j=xn,rn||(Y=Re,L=yn),Ee}function Je(Te,tn){return e.isBlock(Te)?N.updateBlock(Te,e.visitNodes(Te.statements,v,e.isStatement,tn)):N.converters.convertToFunctionBlock(e.visitNode(Te,v,e.isConciseBody))}function je(Te){var tn=Te&&e.getEntityNameFromTypeNode(Te);if(tn&&e.isEntityName(tn)){var Fe=z.getTypeReferenceSerializationKind(tn);if(Fe===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||Fe===e.TypeReferenceSerializationKind.Unknown)return tn}}function fn(){C&1||(C|=1,m.enableSubstitution(204),m.enableSubstitution(202),m.enableSubstitution(203),m.enableEmitNotification(253),m.enableEmitNotification(166),m.enableEmitNotification(168),m.enableEmitNotification(169),m.enableEmitNotification(167),m.enableEmitNotification(233))}function ze(Te,tn,Fe){if(C&1&&ye(tn)){var Ke=z.getNodeCheckFlags(tn)&6144;if(Ke!==I){var rn=I;I=Ke,M(Te,tn,Fe),I=rn;return}}else if(C&&k[e.getNodeId(tn)]){var rn=I;I=0,M(Te,tn,Fe),I=rn;return}M(Te,tn,Fe)}function Ve(Te,tn){return tn=O(Te,tn),Te===1&&I?Ne(tn):tn}function Ne(Te){switch(Te.kind){case 202:return be(Te);case 203:return de(Te);case 204:return Ce(Te)}return Te}function be(Te){return Te.expression.kind===105?e.setTextRange(N.createPropertyAccessExpression(N.createUniqueName("_super",48),Te.name),Te):Te}function de(Te){return Te.expression.kind===105?on(Te.argumentExpression,Te):Te}function Ce(Te){var tn=Te.expression;if(e.isSuperProperty(tn)){var Fe=e.isPropertyAccessExpression(tn)?be(tn):de(tn);return N.createCallExpression(N.createPropertyAccessExpression(Fe,"call"),void 0,wr([N.createThis()],Te.arguments))}return Te}function ye(Te){var tn=Te.kind;return tn===253||tn===167||tn===166||tn===168||tn===169}function on(Te,tn){return I&4096?e.setTextRange(N.createPropertyAccessExpression(N.createCallExpression(N.createUniqueName("_superIndex",48),void 0,[Te]),"value"),tn):e.setTextRange(N.createCallExpression(N.createUniqueName("_superIndex",48),void 0,[Te]),tn)}}e.transformES2017=g;function t(m,N,D,c){var x=(N.getNodeCheckFlags(D)&4096)!==0,se=[];return c.forEach(function(z,ue){var E=e.unescapeLeadingUnderscores(ue),C=[];C.push(m.createPropertyAssignment("get",m.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(m.createPropertyAccessExpression(e.setEmitFlags(m.createSuper(),4),E),4)))),x&&C.push(m.createPropertyAssignment("set",m.createArrowFunction(void 0,void 0,[m.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,m.createAssignment(e.setEmitFlags(m.createPropertyAccessExpression(e.setEmitFlags(m.createSuper(),4),E),4),m.createIdentifier("v"))))),se.push(m.createPropertyAssignment(E,m.createObjectLiteralExpression(C)))}),m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(m.createUniqueName("_super",48),void 0,void 0,m.createCallExpression(m.createPropertyAccessExpression(m.createIdentifier("Object"),"create"),void 0,[m.createNull(),m.createObjectLiteralExpression(se,!0)]))],2))}e.createSuperAccessVariableStatement=t})(un||(un={}));var un;(function(e){var a;(function(t){t[t.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"})(a||(a={}));var p;(function(t){t[t.None=0]="None",t[t.HasLexicalThis=1]="HasLexicalThis",t[t.IterationContainer=2]="IterationContainer",t[t.AncestorFactsMask=3]="AncestorFactsMask",t[t.SourceFileIncludes=1]="SourceFileIncludes",t[t.SourceFileExcludes=2]="SourceFileExcludes",t[t.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",t[t.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",t[t.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",t[t.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",t[t.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",t[t.IterationStatementIncludes=2]="IterationStatementIncludes",t[t.IterationStatementExcludes=0]="IterationStatementExcludes"})(p||(p={}));function g(t){var m=t.factory,N=t.getEmitHelperFactory,D=t.resumeLexicalEnvironment,c=t.endLexicalEnvironment,x=t.hoistVariableDeclaration,se=t.getEmitResolver(),z=t.getCompilerOptions(),ue=e.getEmitScriptTarget(z),E=t.onEmitNode;t.onEmitNode=Re;var C=t.onSubstituteNode;t.onSubstituteNode=yn;var I=!1,j,Y,L=0,k=0,h,M,O,H,$=[];return e.chainBundle(t,T);function Z(P,Se){return k!==(k&~P|Se)}function B(P,Se){var Ye=k;return k=(k&~P|Se)&3,Ye}function U(P){k=P}function K(P){M=e.append(M,m.createVariableDeclaration(P))}function T(P){if(P.isDeclarationFile)return P;h=P;var Se=A(P);return e.addEmitHelpers(Se,t.readEmitHelpers()),h=void 0,M=void 0,Se}function G(P){return u(P,!1)}function v(P){return u(P,!0)}function R(P){if(P.kind!==129)return P}function F(P,Se,Ye,an){if(Z(Ye,an)){var Sn=B(Ye,an),Xn=P(Se);return U(Sn),Xn}return P(Se)}function _(P){return e.visitEachChild(P,G,t)}function u(P,Se){if(!(P.transformFlags&64))return P;switch(P.kind){case 214:return b(P);case 220:return w(P);case 243:return ee(P);case 246:return le(P);case 201:return W(P);case 217:return re(P,Se);case 341:return ve(P,Se);case 288:return ke(P);case 233:return Ie(P);case 250:return Je(P);case 236:case 237:case 239:return F(_,P,0,2);case 240:return Ve(P,void 0);case 238:return F(fn,P,0,2);case 213:return ze(P);case 167:return F(on,P,2,1);case 166:return F(Fe,P,2,1);case 168:return F(Te,P,2,1);case 169:return F(tn,P,2,1);case 252:return F(Ke,P,2,1);case 209:return F(vn,P,2,1);case 210:return F(rn,P,2,0);case 161:return ye(P);case 234:return ge(P);case 208:return fe(P,Se);case 206:return X(P);case 202:return O&&e.isPropertyAccessExpression(P)&&P.expression.kind===105&&O.add(P.name.escapedText),e.visitEachChild(P,G,t);case 203:return O&&P.expression.kind===105&&(H=!0),e.visitEachChild(P,G,t);case 253:case 222:return F(_,P,2,1);default:return e.visitEachChild(P,G,t)}}function b(P){return Y&2&&Y&1?e.setOriginalNode(e.setTextRange(m.createYieldExpression(void 0,N().createAwaitHelper(e.visitNode(P.expression,G,e.isExpression))),P),P):e.visitEachChild(P,G,t)}function w(P){if(Y&2&&Y&1){if(P.asteriskToken){var Se=e.visitNode(e.Debug.assertDefined(P.expression),G,e.isExpression);return e.setOriginalNode(e.setTextRange(m.createYieldExpression(void 0,N().createAwaitHelper(m.updateYieldExpression(P,P.asteriskToken,e.setTextRange(N().createAsyncDelegatorHelper(e.setTextRange(N().createAsyncValuesHelper(Se),Se)),Se)))),P),P)}return e.setOriginalNode(e.setTextRange(m.createYieldExpression(void 0,de(P.expression?e.visitNode(P.expression,G,e.isExpression):m.createVoidZero())),P),P)}return e.visitEachChild(P,G,t)}function ee(P){return Y&2&&Y&1?m.updateReturnStatement(P,de(P.expression?e.visitNode(P.expression,G,e.isExpression):m.createVoidZero())):e.visitEachChild(P,G,t)}function le(P){if(Y&2){var Se=e.unwrapInnermostStatementOfLabel(P);return Se.kind===240&&Se.awaitModifier?Ve(Se,P):m.restoreEnclosingLabel(e.visitNode(Se,G,e.isStatement,m.liftToBlock),P)}return e.visitEachChild(P,G,t)}function ie(P){for(var Se,Ye=[],an=0,Sn=P;an1){for(var an=1;an=2&&se.getNodeCheckFlags(P)&6144;if(wn){we();var qn=e.createSuperAccessVariableStatement(m,se,P,O);$[e.getNodeId(qn)]=!0,e.insertStatementsAfterStandardPrologue(Se,[qn])}Se.push(Xn),e.insertStatementsAfterStandardPrologue(Se,c());var yr=m.updateBlock(P.body,Se);return wn&&H&&(se.getNodeCheckFlags(P)&4096?e.addEmitHelper(yr,e.advancedAsyncSuperHelper):se.getNodeCheckFlags(P)&2048&&e.addEmitHelper(yr,e.asyncSuperHelper)),O=an,H=Sn,yr}function Rn(P){var Se;D();var Ye=0,an=[],Sn=(Se=e.visitNode(P.body,G,e.isConciseBody))!==null&&Se!==void 0?Se:m.createBlock([]);e.isBlock(Sn)&&(Ye=m.copyPrologue(Sn.statements,an,!1,G)),e.addRange(an,Ge(void 0,P));var Xn=c();if(Ye>0||e.some(an)||e.some(Xn)){var wn=m.converters.convertToFunctionBlock(Sn,!0);return e.insertStatementsAfterStandardPrologue(an,Xn),e.addRange(an,wn.statements.slice(Ye)),m.updateBlock(wn,e.setTextRange(m.createNodeArray(an),wn.statements))}return Sn}function Ge(P,Se){for(var Ye=0,an=Se.parameters;Ye1?"jsxs":"jsx"}function z(W){var ge=se(W);return E(ge)}function ue(){return E("Fragment")}function E(W){var ge,fe,A=W==="createElement"?c.importSpecifier:e.getJSXRuntimeImport(c.importSpecifier,N),X=(fe=(ge=c.utilizedImplicitRuntimeImports)===null||ge===void 0?void 0:ge.get(A))===null||fe===void 0?void 0:fe.get(W);if(X)return X.name;c.utilizedImplicitRuntimeImports||(c.utilizedImplicitRuntimeImports=e.createMap());var re=c.utilizedImplicitRuntimeImports.get(A);re||(re=e.createMap(),c.utilizedImplicitRuntimeImports.set(A,re));var ve=t.createUniqueName("_"+W,112),ke=t.createImportSpecifier(t.createIdentifier(W),ve);return ve.generatedImportReference=ke,re.set(W,ke),ve}function C(W){if(W.isDeclarationFile)return W;D=W,c={},c.importSpecifier=e.getJSXImplicitImportBase(N,W);var ge=e.visitEachChild(W,I,g);e.addEmitHelpers(ge,g.readEmitHelpers());var fe=ge.statements;if(c.filenameDeclaration&&(fe=e.insertStatementAfterCustomPrologue(fe.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([c.filenameDeclaration],2)))),c.utilizedImplicitRuntimeImports)for(var A=0,X=e.arrayFrom(c.utilizedImplicitRuntimeImports.entries());A1?t.createTrue():t.createFalse());var Ie=e.getLineAndCharacterOfPosition(ke,re.pos);ve.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",x()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(Ie.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(Ie.character+1))])),ve.push(t.createThis())}}var Je=e.setTextRange(t.createCallExpression(z(A),void 0,ve),re);return X&&e.startOnNewLine(Je),Je}function B(W,ge,fe,A){var X=ee(W),re,ve=W.attributes.properties;if(ve.length===0)re=t.createNull();else{var ke=N.target;if(ke&&ke>=5)re=t.createObjectLiteralExpression(e.flatten(e.spanMap(ve,e.isJsxSpreadAttribute,function(fn,ze){return ze?e.map(fn,T):e.map(fn,v)})));else{var Ie=e.flatten(e.spanMap(ve,e.isJsxSpreadAttribute,function(fn,ze){return ze?e.map(fn,G):t.createObjectLiteralExpression(e.map(fn,v))}));e.isJsxSpreadAttribute(ve[0])&&Ie.unshift(t.createObjectLiteralExpression()),re=e.singleOrUndefined(Ie),re||(re=m().createAssignHelper(Ie))}}var Je=c.importSpecifier===void 0?e.createJsxFactoryExpression(t,g.getEmitResolver().getJsxFactoryEntity(D),N.reactNamespace,W):E("createElement"),je=e.createExpressionForJsxElement(t,Je,X,re,e.mapDefined(ge,Y),A);return fe&&e.startOnNewLine(je),je}function U(W,ge,fe,A){var X;if(ge&&ge.length){var re=H(ge);re&&(X=re)}return Z(ue(),X||t.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(ge)),fe,A)}function K(W,ge,fe,A){var X=e.createExpressionForJsxFragment(t,g.getEmitResolver().getJsxFactoryEntity(D),g.getEmitResolver().getJsxFragmentFactoryEntity(D),N.reactNamespace,e.mapDefined(ge,Y),W,A);return fe&&e.startOnNewLine(X),X}function T(W){return t.createSpreadAssignment(e.visitNode(W.expression,I,e.isExpression))}function G(W){return e.visitNode(W.expression,I,e.isExpression)}function v(W){var ge=le(W),fe=R(W.initializer);return t.createPropertyAssignment(ge,fe)}function R(W){if(W===void 0)return t.createTrue();if(W.kind===10){var ge=W.singleQuote!==void 0?W.singleQuote:!e.isStringDoubleQuoted(W,D),fe=t.createStringLiteral(w(W.text)||W.text,ge);return e.setTextRange(fe,W)}else return W.kind===284?W.expression===void 0?t.createTrue():e.visitNode(W.expression,I,e.isExpression):e.Debug.failBadSyntaxKind(W)}function F(W){var ge=_(W.text);return ge===void 0?void 0:t.createStringLiteral(ge)}function _(W){for(var ge,fe=0,A=-1,X=0;X0?(e.insertStatementAfterCustomPrologue(Ae,e.setEmitFlags(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(Dn,v,D,0,c.getGeneratedNameForNode(Dn)))),1048576)),!0):Q?(e.insertStatementAfterCustomPrologue(Ae,e.setEmitFlags(c.createExpressionStatement(c.createAssignment(c.getGeneratedNameForNode(Dn),e.visitNode(Q,v,e.isExpression))),1048576)),!0):!1}function on(Ae,Dn,pe,Q){Q=e.visitNode(Q,v,e.isExpression);var De=c.createIfStatement(c.createTypeCheck(c.cloneNode(pe),"undefined"),e.setEmitFlags(e.setTextRange(c.createBlock([c.createExpressionStatement(e.setEmitFlags(e.setTextRange(c.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(c.cloneNode(pe),pe),pe.parent),48),e.setEmitFlags(Q,48|e.getEmitFlags(Q)|1536)),Dn),1536))]),Dn),1953));e.startOnNewLine(De),e.setTextRange(De,Dn),e.setEmitFlags(De,1050528),e.insertStatementAfterCustomPrologue(Ae,De)}function Te(Ae,Dn){return!!(Ae&&Ae.dotDotDotToken&&!Dn)}function tn(Ae,Dn,pe){var Q=[],De=e.lastOrUndefined(Dn.parameters);if(!Te(De,pe))return!1;var qe=De.name.kind===78?e.setParent(e.setTextRange(c.cloneNode(De.name),De.name),De.name.parent):c.createTempVariable(void 0);e.setEmitFlags(qe,48);var sn=De.name.kind===78?c.cloneNode(De.name):qe,Mn=Dn.parameters.length-1,or=c.createLoopVariable();Q.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(qe,void 0,void 0,c.createArrayLiteralExpression([]))])),De),1048576));var Ir=c.createForStatement(e.setTextRange(c.createVariableDeclarationList([c.createVariableDeclaration(or,void 0,void 0,c.createNumericLiteral(Mn))]),De),e.setTextRange(c.createLessThan(or,c.createPropertyAccessExpression(c.createIdentifier("arguments"),"length")),De),e.setTextRange(c.createPostfixIncrement(or),De),c.createBlock([e.startOnNewLine(e.setTextRange(c.createExpressionStatement(c.createAssignment(c.createElementAccessExpression(sn,Mn===0?or:c.createSubtract(or,c.createNumericLiteral(Mn))),c.createElementAccessExpression(c.createIdentifier("arguments"),or))),De))]));return e.setEmitFlags(Ir,1048576),e.startOnNewLine(Ir),Q.push(Ir),De.name.kind!==78&&Q.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(De,v,D,0,sn))),De),1048576)),e.insertStatementsAfterCustomPrologue(Ae,Q),!0}function Fe(Ae,Dn){return h&32768&&Dn.kind!==210?(Ke(Ae,Dn,c.createThis()),!0):!1}function Ke(Ae,Dn,pe){wo();var Q=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_this",48),void 0,void 0,pe)]));e.setEmitFlags(Q,1050112),e.setSourceMapRange(Q,Dn),e.insertStatementAfterCustomPrologue(Ae,Q)}function rn(Ae,Dn,pe){if(h&16384){var Q=void 0;switch(Dn.kind){case 210:return Ae;case 166:case 168:case 169:Q=c.createVoidZero();break;case 167:Q=c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor");break;case 252:case 209:Q=c.createConditionalExpression(c.createLogicalAnd(e.setEmitFlags(c.createThis(),4),c.createBinaryExpression(e.setEmitFlags(c.createThis(),4),101,c.getLocalName(Dn))),void 0,c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor"),void 0,c.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(Dn)}var De=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_newTarget",48),void 0,void 0,Q)]));e.setEmitFlags(De,1050112),e.insertStatementAfterCustomPrologue(Ae,De)}return Ae}function vn(Ae,Dn){for(var pe=0,Q=Dn.members;pe=Ae.end)return!1;for(var Q=e.getEnclosingBlockScopeContainer(Ae);pe;){if(pe===Q||pe===Ae)return!1;if(e.isClassElement(pe)&&pe.parent===Ae)return!0;pe=pe.parent}return!1}function Jn(Ae){return $&1&&h&16?e.setTextRange(c.createUniqueName("_this",48),Ae):Ae}function fr(Ae,Dn){return e.hasSyntacticModifier(Dn,32)?c.getInternalName(Ae):c.createPropertyAccessExpression(c.getInternalName(Ae),"prototype")}function Zr(Ae,Dn){if(!Ae||!Dn||e.some(Ae.parameters))return!1;var pe=e.firstOrUndefined(Ae.body.statements);if(!pe||!e.nodeIsSynthesized(pe)||pe.kind!==234)return!1;var Q=pe.expression;if(!e.nodeIsSynthesized(Q)||Q.kind!==204)return!1;var De=Q.expression;if(!e.nodeIsSynthesized(De)||De.kind!==105)return!1;var qe=e.singleOrUndefined(Q.arguments);if(!qe||!e.nodeIsSynthesized(qe)||qe.kind!==221)return!1;var sn=qe.expression;return e.isIdentifier(sn)&&sn.escapedText==="arguments"}}e.transformES2015=N})(un||(un={}));var un;(function(e){function a(p){var g=p.factory,t=p.getCompilerOptions(),m,N;(t.jsx===1||t.jsx===3)&&(m=p.onEmitNode,p.onEmitNode=x,p.enableEmitNotification(276),p.enableEmitNotification(277),p.enableEmitNotification(275),N=[]);var D=p.onSubstituteNode;return p.onSubstituteNode=se,p.enableSubstitution(202),p.enableSubstitution(289),e.chainBundle(p,c);function c(C){return C}function x(C,I,j){switch(I.kind){case 276:case 277:case 275:var Y=I.tagName;N[e.getOriginalNodeId(Y)]=!0;break}m(C,I,j)}function se(C,I){return I.id&&N&&N[I.id]?D(C,I):(I=D(C,I),e.isPropertyAccessExpression(I)?z(I):e.isPropertyAssignment(I)?ue(I):I)}function z(C){if(e.isPrivateIdentifier(C.name))return C;var I=E(C.name);return I?e.setTextRange(g.createElementAccessExpression(C.expression,I),C):C}function ue(C){var I=e.isIdentifier(C.name)&&E(C.name);return I?g.updatePropertyAssignment(C,I,C.initializer):C}function E(C){var I=C.originalKeywordKind||(e.nodeIsSynthesized(C)?e.stringToToken(e.idText(C)):void 0);if(I!==void 0&&I>=80&&I<=115)return e.setTextRange(g.createStringLiteralFromNode(C),C)}}e.transformES5=a})(un||(un={}));var un;(function(e){var a;(function(c){c[c.Nop=0]="Nop",c[c.Statement=1]="Statement",c[c.Assign=2]="Assign",c[c.Break=3]="Break",c[c.BreakWhenTrue=4]="BreakWhenTrue",c[c.BreakWhenFalse=5]="BreakWhenFalse",c[c.Yield=6]="Yield",c[c.YieldStar=7]="YieldStar",c[c.Return=8]="Return",c[c.Throw=9]="Throw",c[c.Endfinally=10]="Endfinally"})(a||(a={}));var p;(function(c){c[c.Open=0]="Open",c[c.Close=1]="Close"})(p||(p={}));var g;(function(c){c[c.Exception=0]="Exception",c[c.With=1]="With",c[c.Switch=2]="Switch",c[c.Loop=3]="Loop",c[c.Labeled=4]="Labeled"})(g||(g={}));var t;(function(c){c[c.Try=0]="Try",c[c.Catch=1]="Catch",c[c.Finally=2]="Finally",c[c.Done=3]="Done"})(t||(t={}));var m;(function(c){c[c.Next=0]="Next",c[c.Throw=1]="Throw",c[c.Return=2]="Return",c[c.Break=3]="Break",c[c.Yield=4]="Yield",c[c.YieldStar=5]="YieldStar",c[c.Catch=6]="Catch",c[c.Endfinally=7]="Endfinally"})(m||(m={}));function N(c){switch(c){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function D(c){var x=c.factory,se=c.getEmitHelperFactory,z=c.resumeLexicalEnvironment,ue=c.endLexicalEnvironment,E=c.hoistFunctionDeclaration,C=c.hoistVariableDeclaration,I=c.getCompilerOptions(),j=e.getEmitScriptTarget(I),Y=c.getEmitResolver(),L=c.onSubstituteNode;c.onSubstituteNode=bn;var k,h,M,O,H,$,Z,B,U,K,T=1,G,v,R,F,_=0,u=0,b,w,ee,le,ie,W,ge,fe;return e.chainBundle(c,A);function A(Xe){if(Xe.isDeclarationFile||!(Xe.transformFlags&1024))return Xe;var Jn=e.visitEachChild(Xe,X,c);return e.addEmitHelpers(Jn,c.readEmitHelpers()),Jn}function X(Xe){var Jn=Xe.transformFlags;return O?re(Xe):M?ve(Xe):e.isFunctionLikeDeclaration(Xe)&&Xe.asteriskToken?Ie(Xe):Jn&1024?e.visitEachChild(Xe,X,c):Xe}function re(Xe){switch(Xe.kind){case 236:return P(Xe);case 237:return Ye(Xe);case 245:return Hn(Xe);case 246:return kn(Xe);default:return ve(Xe)}}function ve(Xe){switch(Xe.kind){case 252:return Je(Xe);case 209:return je(Xe);case 168:case 169:return fn(Xe);case 233:return Ve(Xe);case 238:return Sn(Xe);case 239:return wn(Xe);case 242:return Me(Xe);case 241:return yr(Xe);case 243:return Tn(Xe);default:return Xe.transformFlags&524288?ke(Xe):Xe.transformFlags&2098176?e.visitEachChild(Xe,X,c):Xe}}function ke(Xe){switch(Xe.kind){case 217:return Ne(Xe);case 341:return ye(Xe);case 218:return Te(Xe);case 220:return tn(Xe);case 200:return Fe(Xe);case 201:return rn(Xe);case 203:return vn(Xe);case 204:return xn(Xe);case 205:return Rn(Xe);default:return e.visitEachChild(Xe,X,c)}}function Ie(Xe){switch(Xe.kind){case 252:return Je(Xe);case 209:return je(Xe);default:return e.Debug.failBadSyntaxKind(Xe)}}function Je(Xe){if(Xe.asteriskToken)Xe=e.setOriginalNode(e.setTextRange(x.createFunctionDeclaration(void 0,Xe.modifiers,void 0,Xe.name,void 0,e.visitParameterList(Xe.parameters,X,c),void 0,ze(Xe.body)),Xe),Xe);else{var Jn=M,fr=O;M=!1,O=!1,Xe=e.visitEachChild(Xe,X,c),M=Jn,O=fr}if(M){E(Xe);return}else return Xe}function je(Xe){if(Xe.asteriskToken)Xe=e.setOriginalNode(e.setTextRange(x.createFunctionExpression(void 0,void 0,Xe.name,void 0,e.visitParameterList(Xe.parameters,X,c),void 0,ze(Xe.body)),Xe),Xe);else{var Jn=M,fr=O;M=!1,O=!1,Xe=e.visitEachChild(Xe,X,c),M=Jn,O=fr}return Xe}function fn(Xe){var Jn=M,fr=O;return M=!1,O=!1,Xe=e.visitEachChild(Xe,X,c),M=Jn,O=fr,Xe}function ze(Xe){var Jn=[],fr=M,Zr=O,Ae=H,Dn=$,pe=Z,Q=B,De=U,qe=K,sn=T,Mn=G,or=v,Ir=R,at=F;M=!0,O=!1,H=void 0,$=void 0,Z=void 0,B=void 0,U=void 0,K=void 0,T=1,G=void 0,v=void 0,R=void 0,F=x.createTempVariable(void 0),z();var Ft=x.copyPrologue(Xe.statements,Jn,!1,X);Ge(Xe.statements,Ft);var Da=ui();return e.insertStatementsAfterStandardPrologue(Jn,ue()),Jn.push(x.createReturnStatement(Da)),M=fr,O=Zr,H=Ae,$=Dn,Z=pe,B=Q,U=De,K=qe,T=sn,G=Mn,v=or,R=Ir,F=at,e.setTextRange(x.createBlock(Jn,Xe.multiLine),Xe)}function Ve(Xe){if(Xe.transformFlags&524288){J(Xe.declarationList);return}else{if(e.getEmitFlags(Xe)&1048576)return Xe;for(var Jn=0,fr=Xe.declarationList.declarations;Jn0&&(ja(1,[x.createExpressionStatement(x.inlineExpressions(Jn))]),Jn=[]),Jn.push(e.visitNode(Zr,X,e.isExpression)))}}function ye(Xe){for(var Jn=[],fr=0,Zr=Xe.elements;fr0&&(ja(1,[x.createExpressionStatement(x.inlineExpressions(Jn))]),Jn=[]),Jn.push(e.visitNode(Ae,X,e.isExpression)))}return x.inlineExpressions(Jn)}function on(Xe){var Jn=zn(),fr=_r();return sa(fr,e.visitNode(Xe.left,X,e.isExpression),Xe.left),Xe.operatorToken.kind===55?ri(Jn,fr,Xe.left):ii(Jn,fr,Xe.left),sa(fr,e.visitNode(Xe.right,X,e.isExpression),Xe.right),Er(Jn),fr}function Te(Xe){if(Qe(Xe.whenTrue)||Qe(Xe.whenFalse)){var Jn=zn(),fr=zn(),Zr=_r();return ri(Jn,e.visitNode(Xe.condition,X,e.isExpression),Xe.condition),sa(Zr,e.visitNode(Xe.whenTrue,X,e.isExpression),Xe.whenTrue),Wa(fr),Er(Jn),sa(Zr,e.visitNode(Xe.whenFalse,X,e.isExpression),Xe.whenFalse),Er(fr),Zr}return e.visitEachChild(Xe,X,c)}function tn(Xe){var Jn=zn(),fr=e.visitNode(Xe.expression,X,e.isExpression);if(Xe.asteriskToken){var Zr=e.getEmitFlags(Xe.expression)&8388608?fr:e.setTextRange(se().createValuesHelper(fr),Xe);mi(Zr,Xe)}else Ei(fr,Xe);return Er(Jn),mt(Xe)}function Fe(Xe){return Ke(Xe.elements,void 0,void 0,Xe.multiLine)}function Ke(Xe,Jn,fr,Zr){var Ae=Bn(Xe),Dn;if(Ae>0){Dn=_r();var pe=e.visitNodes(Xe,X,e.isExpression,0,Ae);sa(Dn,x.createArrayLiteralExpression(Jn?wr([Jn],pe):pe)),Jn=void 0}var Q=e.reduceLeft(Xe,De,[],Ae);return Dn?x.createArrayConcatCall(Dn,[x.createArrayLiteralExpression(Q,Zr)]):e.setTextRange(x.createArrayLiteralExpression(Jn?wr([Jn],Q):Q,Zr),fr);function De(qe,sn){if(Qe(sn)&&qe.length>0){var Mn=Dn!==void 0;Dn||(Dn=_r()),sa(Dn,Mn?x.createArrayConcatCall(Dn,[x.createArrayLiteralExpression(qe,Zr)]):x.createArrayLiteralExpression(Jn?wr([Jn],qe):qe,Zr)),Jn=void 0,qe=[]}return qe.push(e.visitNode(sn,X,e.isExpression)),qe}}function rn(Xe){var Jn=Xe.properties,fr=Xe.multiLine,Zr=Bn(Jn),Ae=_r();sa(Ae,x.createObjectLiteralExpression(e.visitNodes(Jn,X,e.isObjectLiteralElementLike,0,Zr),fr));var Dn=e.reduceLeft(Jn,pe,[],Zr);return Dn.push(fr?e.startOnNewLine(e.setParent(e.setTextRange(x.cloneNode(Ae),Ae),Ae.parent)):Ae),x.inlineExpressions(Dn);function pe(Q,De){Qe(De)&&Q.length>0&&(Dt(x.createExpressionStatement(x.inlineExpressions(Q))),Q=[]);var qe=e.createExpressionForObjectLiteralElementLike(x,Xe,De,Ae),sn=e.visitNode(qe,X,e.isExpression);return sn&&(fr&&e.startOnNewLine(sn),Q.push(sn)),Q}}function vn(Xe){return Qe(Xe.argumentExpression)?x.updateElementAccessExpression(Xe,Zn(e.visitNode(Xe.expression,X,e.isLeftHandSideExpression)),e.visitNode(Xe.argumentExpression,X,e.isExpression)):e.visitEachChild(Xe,X,c)}function xn(Xe){if(!e.isImportCall(Xe)&&e.forEach(Xe.arguments,Qe)){var Jn=x.createCallBinding(Xe.expression,C,j,!0),fr=Jn.target,Zr=Jn.thisArg;return e.setOriginalNode(e.setTextRange(x.createFunctionApplyCall(Zn(e.visitNode(fr,X,e.isLeftHandSideExpression)),Zr,Ke(Xe.arguments)),Xe),Xe)}return e.visitEachChild(Xe,X,c)}function Rn(Xe){if(e.forEach(Xe.arguments,Qe)){var Jn=x.createCallBinding(x.createPropertyAccessExpression(Xe.expression,"bind"),C),fr=Jn.target,Zr=Jn.thisArg;return e.setOriginalNode(e.setTextRange(x.createNewExpression(x.createFunctionApplyCall(Zn(e.visitNode(fr,X,e.isExpression)),Zr,Ke(Xe.arguments,x.createVoidZero())),void 0,[]),Xe),Xe)}return e.visitEachChild(Xe,X,c)}function Ge(Xe,Jn){Jn===void 0&&(Jn=0);for(var fr=Xe.length,Zr=Jn;Zr0)break;De.push(te(Zr))}De.length&&(Dt(x.createExpressionStatement(x.inlineExpressions(De))),Q+=De.length,De=[])}}function te(Xe){return e.setSourceMapRange(x.createAssignment(e.setSourceMapRange(x.cloneNode(Xe.name),Xe.name),e.visitNode(Xe.initializer,X,e.isExpression)),Xe)}function me(Xe){if(Qe(Xe))if(Qe(Xe.thenStatement)||Qe(Xe.elseStatement)){var Jn=zn(),fr=Xe.elseStatement?zn():void 0;ri(Xe.elseStatement?fr:Jn,e.visitNode(Xe.expression,X,e.isExpression),Xe.expression),we(Xe.thenStatement),Xe.elseStatement&&(Wa(Jn),Er(fr),we(Xe.elseStatement)),Er(Jn)}else Dt(e.visitNode(Xe,X,e.isStatement));else Dt(e.visitNode(Xe,X,e.isStatement))}function xe(Xe){if(Qe(Xe)){var Jn=zn(),fr=zn();vt(Jn),Er(fr),we(Xe.statement),Er(Jn),ii(fr,e.visitNode(Xe.expression,X,e.isExpression)),dt()}else Dt(e.visitNode(Xe,X,e.isStatement))}function P(Xe){return O?(Br(),Xe=e.visitEachChild(Xe,X,c),dt(),Xe):e.visitEachChild(Xe,X,c)}function Se(Xe){if(Qe(Xe)){var Jn=zn(),fr=vt(Jn);Er(Jn),ri(fr,e.visitNode(Xe.expression,X,e.isExpression)),we(Xe.statement),Wa(Jn),dt()}else Dt(e.visitNode(Xe,X,e.isStatement))}function Ye(Xe){return O?(Br(),Xe=e.visitEachChild(Xe,X,c),dt(),Xe):e.visitEachChild(Xe,X,c)}function an(Xe){if(Qe(Xe)){var Jn=zn(),fr=zn(),Zr=vt(fr);if(Xe.initializer){var Ae=Xe.initializer;e.isVariableDeclarationList(Ae)?J(Ae):Dt(e.setTextRange(x.createExpressionStatement(e.visitNode(Ae,X,e.isExpression)),Ae))}Er(Jn),Xe.condition&&ri(Zr,e.visitNode(Xe.condition,X,e.isExpression)),we(Xe.statement),Er(fr),Xe.incrementor&&Dt(e.setTextRange(x.createExpressionStatement(e.visitNode(Xe.incrementor,X,e.isExpression)),Xe.incrementor)),Wa(Jn),dt()}else Dt(e.visitNode(Xe,X,e.isStatement))}function Sn(Xe){O&&Br();var Jn=Xe.initializer;if(Jn&&e.isVariableDeclarationList(Jn)){for(var fr=0,Zr=Jn.declarations;fr0?x.inlineExpressions(e.map(Dn,te)):void 0,e.visitNode(Xe.condition,X,e.isExpression),e.visitNode(Xe.incrementor,X,e.isExpression),e.visitIterationBody(Xe.statement,X,c))}else Xe=e.visitEachChild(Xe,X,c);return O&&dt(),Xe}function Xn(Xe){if(Qe(Xe)){var Jn=_r(),fr=_r(),Zr=x.createLoopVariable(),Ae=Xe.initializer;C(Zr),sa(Jn,x.createArrayLiteralExpression()),Dt(x.createForInStatement(fr,e.visitNode(Xe.expression,X,e.isExpression),x.createExpressionStatement(x.createCallExpression(x.createPropertyAccessExpression(Jn,"push"),void 0,[fr])))),sa(Zr,x.createNumericLiteral(0));var Dn=zn(),pe=zn(),Q=vt(pe);Er(Dn),ri(Q,x.createLessThan(Zr,x.createPropertyAccessExpression(Jn,"length")));var De=void 0;if(e.isVariableDeclarationList(Ae)){for(var qe=0,sn=Ae.declarations;qe0?Wa(Jn,Xe):Dt(Xe)}function yr(Xe){if(O){var Jn=jr(Xe.label&&e.idText(Xe.label));if(Jn>0)return gr(Jn,Xe)}return e.visitEachChild(Xe,X,c)}function Vr(Xe){var Jn=Kr(Xe.label?e.idText(Xe.label):void 0);Jn>0?Wa(Jn,Xe):Dt(Xe)}function Me(Xe){if(O){var Jn=Kr(Xe.label&&e.idText(Xe.label));if(Jn>0)return gr(Jn,Xe)}return e.visitEachChild(Xe,X,c)}function We(Xe){_i(e.visitNode(Xe.expression,X,e.isExpression),Xe)}function Tn(Xe){return Or(e.visitNode(Xe.expression,X,e.isExpression),Xe)}function Nn(Xe){Qe(Xe)?(jn(Zn(e.visitNode(Xe.expression,X,e.isExpression))),we(Xe.statement),ar()):Dt(e.visitNode(Xe,X,e.isStatement))}function Vn(Xe){if(Qe(Xe.caseBlock)){for(var Jn=Xe.caseBlock,fr=Jn.clauses.length,Zr=Vt(),Ae=Zn(e.visitNode(Xe.expression,X,e.isExpression)),Dn=[],pe=-1,Q=0;Q0)break;sn.push(x.createCaseClause(e.visitNode(De.expression,X,e.isExpression),[gr(Dn[Q],De.expression)]))}else Mn++}sn.length&&(Dt(x.createSwitchStatement(Ae,x.createCaseBlock(sn))),qe+=sn.length,sn=[]),Mn>0&&(qe+=Mn,Mn=0)}pe>=0?Wa(Dn[pe]):Wa(Zr);for(var Q=0;Q=0;fr--){var Zr=B[fr];if(qt(Zr)){if(Zr.labelText===Xe)return!0}else break}return!1}function Kr(Xe){if(B)if(Xe)for(var Jn=B.length-1;Jn>=0;Jn--){var fr=B[Jn];if(qt(fr)&&fr.labelText===Xe)return fr.breakLabel;if(Sa(fr)&&Mr(Xe,Jn-1))return fr.breakLabel}else for(var Jn=B.length-1;Jn>=0;Jn--){var fr=B[Jn];if(Sa(fr))return fr.breakLabel}return 0}function jr(Xe){if(B)if(Xe)for(var Jn=B.length-1;Jn>=0;Jn--){var fr=B[Jn];if(ga(fr)&&Mr(Xe,Jn-1))return fr.continueLabel}else for(var Jn=B.length-1;Jn>=0;Jn--){var fr=B[Jn];if(ga(fr))return fr.continueLabel}return 0}function En(Xe){if(Xe!==void 0&&Xe>0){K===void 0&&(K=[]);var Jn=x.createNumericLiteral(-1);return K[Xe]===void 0?K[Xe]=[Jn]:K[Xe].push(Jn),Jn}return x.createOmittedExpression()}function tr(Xe){var Jn=x.createNumericLiteral(Xe);return e.addSyntheticTrailingComment(Jn,3,N(Xe)),Jn}function gr(Xe,Jn){return e.Debug.assertLessThan(0,Xe,"Invalid label"),e.setTextRange(x.createReturnStatement(x.createArrayLiteralExpression([tr(3),En(Xe)])),Jn)}function Or(Xe,Jn){return e.setTextRange(x.createReturnStatement(x.createArrayLiteralExpression(Xe?[tr(2),Xe]:[tr(2)])),Jn)}function mt(Xe){return e.setTextRange(x.createCallExpression(x.createPropertyAccessExpression(F,"sent"),void 0,[]),Xe)}function ft(){ja(0)}function Dt(Xe){Xe?ja(1,[Xe]):ft()}function sa(Xe,Jn,fr){ja(2,[Xe,Jn],fr)}function Wa(Xe,Jn){ja(3,[Xe],Jn)}function ii(Xe,Jn,fr){ja(4,[Xe,Jn],fr)}function ri(Xe,Jn,fr){ja(5,[Xe,Jn],fr)}function mi(Xe,Jn){ja(7,[Xe],Jn)}function Ei(Xe,Jn){ja(6,[Xe],Jn)}function _i(Xe,Jn){ja(8,[Xe],Jn)}function yi(Xe,Jn){ja(9,[Xe],Jn)}function Ni(){ja(10)}function ja(Xe,Jn,fr){G===void 0&&(G=[],v=[],R=[]),U===void 0&&Er(zn());var Zr=G.length;G[Zr]=Xe,v[Zr]=Jn,R[Zr]=fr}function ui(){_=0,u=0,b=void 0,w=!1,ee=!1,le=void 0,ie=void 0,W=void 0,ge=void 0,fe=void 0;var Xe=Di();return se().createGeneratorHelper(e.setEmitFlags(x.createFunctionExpression(void 0,void 0,void 0,void 0,[x.createParameterDeclaration(void 0,void 0,void 0,F)],void 0,x.createBlock(Xe,Xe.length>0)),524288))}function Di(){if(G){for(var Xe=0;Xe=0;Jn--){var fr=fe[Jn];ie=[x.createWithStatement(fr.expression,x.createBlock(ie))]}if(ge){var Zr=ge.startLabel,Ae=ge.catchLabel,Dn=ge.finallyLabel,pe=ge.endLabel;ie.unshift(x.createExpressionStatement(x.createCallExpression(x.createPropertyAccessExpression(x.createPropertyAccessExpression(F,"trys"),"push"),void 0,[x.createArrayLiteralExpression([En(Zr),En(Ae),En(Dn),En(pe)])]))),ge=void 0}Xe&&ie.push(x.createExpressionStatement(x.createAssignment(x.createPropertyAccessExpression(F,"label"),x.createNumericLiteral(u+1))))}le.push(x.createCaseClause(x.createNumericLiteral(u),ie||[])),ie=void 0}function Ao(Xe){if(U)for(var Jn=0;Jn(e.isExportName(oe)?1:0);return!1}function u(oe){return _(oe.left)?e.flattenDestructuringAssignment(oe,F,g,0,!1,Je):e.visitEachChild(oe,F,g)}function b(oe){var J=e.getExternalModuleNameLiteral(m,oe,k,ue,z,se),te=e.visitNode(e.firstOrUndefined(oe.arguments),F),me=J&&(!te||!e.isStringLiteral(te)||te.text!==J.text)?J:te,xe=!!(oe.transformFlags&8192);switch(se.module){case e.ModuleKind.AMD:return ee(me,xe);case e.ModuleKind.UMD:return w(me??m.createVoidZero(),xe);case e.ModuleKind.CommonJS:default:return le(me,xe)}}function w(oe,J){if(O=!0,e.isSimpleCopiableExpression(oe)){var te=e.isGeneratedIdentifier(oe)?oe:e.isStringLiteral(oe)?m.createStringLiteralFromNode(oe):e.setEmitFlags(e.setTextRange(m.cloneNode(oe),oe),1536);return m.createConditionalExpression(m.createIdentifier("__syncRequire"),void 0,le(oe,J),void 0,ee(te,J))}else{var me=m.createTempVariable(x);return m.createComma(m.createAssignment(me,oe),m.createConditionalExpression(m.createIdentifier("__syncRequire"),void 0,le(me,J),void 0,ee(me,J)))}}function ee(oe,J){var te=m.createUniqueName("resolve"),me=m.createUniqueName("reject"),xe=[m.createParameterDeclaration(void 0,void 0,void 0,te),m.createParameterDeclaration(void 0,void 0,void 0,me)],P=m.createBlock([m.createExpressionStatement(m.createCallExpression(m.createIdentifier("require"),void 0,[m.createArrayLiteralExpression([oe||m.createOmittedExpression()]),te,me]))]),Se;E>=2?Se=m.createArrowFunction(void 0,void 0,xe,void 0,void 0,P):(Se=m.createFunctionExpression(void 0,void 0,void 0,void 0,xe,void 0,P),J&&e.setEmitFlags(Se,8));var Ye=m.createNewExpression(m.createIdentifier("Promise"),void 0,[Se]);return se.esModuleInterop?m.createCallExpression(m.createPropertyAccessExpression(Ye,m.createIdentifier("then")),void 0,[N().createImportStarCallbackHelper()]):Ye}function le(oe,J){var te=m.createCallExpression(m.createPropertyAccessExpression(m.createIdentifier("Promise"),"resolve"),void 0,[]),me=m.createCallExpression(m.createIdentifier("require"),void 0,oe?[oe]:[]);se.esModuleInterop&&(me=N().createImportStarHelper(me));var xe;return E>=2?xe=m.createArrowFunction(void 0,void 0,[],void 0,void 0,me):(xe=m.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,m.createBlock([m.createReturnStatement(me)])),J&&e.setEmitFlags(xe,8)),m.createCallExpression(m.createPropertyAccessExpression(te,"then"),void 0,[xe])}function ie(oe,J){return!se.esModuleInterop||e.getEmitFlags(oe)&67108864?J:e.getExportNeedsImportStarHelper(oe)?N().createImportStarHelper(J):J}function W(oe,J){return!se.esModuleInterop||e.getEmitFlags(oe)&67108864?J:e.getImportNeedsImportStarHelper(oe)?N().createImportStarHelper(J):e.getImportNeedsImportDefaultHelper(oe)?N().createImportDefaultHelper(J):J}function ge(oe){var J,te=e.getNamespaceDeclarationNode(oe);if(C!==e.ModuleKind.AMD)if(oe.importClause){var me=[];te&&!e.isDefaultImport(oe)?me.push(m.createVariableDeclaration(m.cloneNode(te.name),void 0,void 0,W(oe,fe(oe)))):(me.push(m.createVariableDeclaration(m.getGeneratedNameForNode(oe),void 0,void 0,W(oe,fe(oe)))),te&&e.isDefaultImport(oe)&&me.push(m.createVariableDeclaration(m.cloneNode(te.name),void 0,void 0,m.getGeneratedNameForNode(oe)))),J=e.append(J,e.setOriginalNode(e.setTextRange(m.createVariableStatement(void 0,m.createVariableDeclarationList(me,E>=2?2:0)),oe),oe))}else return e.setOriginalNode(e.setTextRange(m.createExpressionStatement(fe(oe)),oe),oe);else te&&e.isDefaultImport(oe)&&(J=e.append(J,m.createVariableStatement(void 0,m.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(m.createVariableDeclaration(m.cloneNode(te.name),void 0,void 0,m.getGeneratedNameForNode(oe)),oe),oe)],E>=2?2:0))));if(ze(oe)){var xe=e.getOriginalNodeId(oe);L[xe]=Ne(L[xe],oe)}else J=Ne(J,oe);return e.singleOrMany(J)}function fe(oe){var J=e.getExternalModuleNameLiteral(m,oe,k,ue,z,se),te=[];return J&&te.push(J),m.createCallExpression(m.createIdentifier("require"),void 0,te)}function A(oe){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(oe),"import= for internal module references should be handled in an earlier transformer.");var J;if(C!==e.ModuleKind.AMD?e.hasSyntacticModifier(oe,1)?J=e.append(J,e.setOriginalNode(e.setTextRange(m.createExpressionStatement(Ke(oe.name,fe(oe))),oe),oe)):J=e.append(J,e.setOriginalNode(e.setTextRange(m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(m.cloneNode(oe.name),void 0,void 0,fe(oe))],E>=2?2:0)),oe),oe)):e.hasSyntacticModifier(oe,1)&&(J=e.append(J,e.setOriginalNode(e.setTextRange(m.createExpressionStatement(Ke(m.getExportName(oe),m.getLocalName(oe))),oe),oe))),ze(oe)){var te=e.getOriginalNodeId(oe);L[te]=be(L[te],oe)}else J=be(J,oe);return e.singleOrMany(J)}function X(oe){if(oe.moduleSpecifier){var J=m.getGeneratedNameForNode(oe);if(oe.exportClause&&e.isNamedExports(oe.exportClause)){var te=[];C!==e.ModuleKind.AMD&&te.push(e.setOriginalNode(e.setTextRange(m.createVariableStatement(void 0,m.createVariableDeclarationList([m.createVariableDeclaration(J,void 0,void 0,fe(oe))])),oe),oe));for(var me=0,xe=oe.exportClause.elements;mee.ModuleKind.ES2015||!Y.exportClause||!e.isNamespaceExport(Y.exportClause)||!Y.moduleSpecifier)return Y;var L=Y.exportClause.name,k=g.getGeneratedNameForNode(L),h=g.createImportDeclaration(void 0,void 0,g.createImportClause(!1,void 0,g.createNamespaceImport(k)),Y.moduleSpecifier);e.setOriginalNode(h,Y.exportClause);var M=e.isExportNamespaceAsDefaultDeclaration(Y)?g.createExportDefault(k):g.createExportDeclaration(void 0,void 0,!1,g.createNamedExports([g.createExportSpecifier(k,L)]));return e.setOriginalNode(M,Y),[h,M]}function C(Y,L,k){e.isSourceFile(L)?((e.isExternalModule(L)||m.isolatedModules)&&m.importHelpers&&(c=new e.Map),N(Y,L,k),c=void 0):N(Y,L,k)}function I(Y,L){return L=D(Y,L),c&&e.isIdentifier(L)&&e.getEmitFlags(L)&4096?j(L):L}function j(Y){var L=e.idText(Y),k=c.get(L);return k||c.set(L,k=g.createUniqueName(L,48)),k}}e.transformECMAScriptModule=a})(un||(un={}));var un;(function(e){function a(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)}e.canProduceDiagnostics=a;function p(t){if(e.isSetAccessor(t)||e.isGetAccessor(t))return m;return e.isMethodSignature(t)||e.isMethodDeclaration(t)?D:g(t);function m(x){var se=N(x);return se!==void 0?{diagnosticMessage:se,errorNode:t,typeName:t.name}:void 0}function N(x){return e.hasSyntacticModifier(t,32)?x.errorModuleName?x.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:t.parent.kind===253?x.errorModuleName?x.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:x.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 D(x){var se=c(x);return se!==void 0?{diagnosticMessage:se,errorNode:t,typeName:t.name}:void 0}function c(x){return e.hasSyntacticModifier(t,32)?x.errorModuleName?x.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:t.parent.kind===253?x.errorModuleName?x.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:x.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=p;function g(t){if(e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t))return N;return e.isSetAccessor(t)||e.isGetAccessor(t)?D:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?c:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?N:x:e.isTypeParameterDeclaration(t)?z:e.isExpressionWithTypeArguments(t)?ue:e.isImportEqualsDeclaration(t)?E:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?C:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[t.kind]);function m(I){if(t.kind===250||t.kind===199)return I.errorModuleName?I.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(t.kind===164||t.kind===202||t.kind===163||t.kind===161&&e.hasSyntacticModifier(t.parent,8))return e.hasSyntacticModifier(t,32)?I.errorModuleName?I.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:t.parent.kind===253||t.kind===161?I.errorModuleName?I.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:I.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 N(I){var j=m(I);return j!==void 0?{diagnosticMessage:j,errorNode:t,typeName:t.name}:void 0}function D(I){var j;return t.kind===169?e.hasSyntacticModifier(t,32)?j=I.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:j=I.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.hasSyntacticModifier(t,32)?j=I.errorModuleName?I.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:j=I.errorModuleName?I.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:j,errorNode:t.name,typeName:t.name}}function c(I){var j;switch(t.kind){case 171:j=I.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 170:j=I.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 172:j=I.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 166:case 165:e.hasSyntacticModifier(t,32)?j=I.errorModuleName?I.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:t.parent.kind===253?j=I.errorModuleName?I.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:j=I.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 252:j=I.errorModuleName?I.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: "+t.kind)}return{diagnosticMessage:j,errorNode:t.name||t}}function x(I){var j=se(I);return j!==void 0?{diagnosticMessage:j,errorNode:t,typeName:t.name}:void 0}function se(I){switch(t.parent.kind){case 167:return I.errorModuleName?I.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 171:case 176:return I.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 170:return I.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 172:return I.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 166:case 165:return e.hasSyntacticModifier(t.parent,32)?I.errorModuleName?I.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:t.parent.parent.kind===253?I.errorModuleName?I.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:I.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 252:case 175:return I.errorModuleName?I.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 169:case 168:return I.errorModuleName?I.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: "+e.SyntaxKind[t.parent.kind])}}function z(){var I;switch(t.parent.kind){case 253:I=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 254:I=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 191:I=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 176:case 171:I=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 170:I=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 166:case 165:e.hasSyntacticModifier(t.parent,32)?I=e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===253?I=e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:I=e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 175:case 252:I=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 255:I=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: "+t.parent.kind)}return{diagnosticMessage:I,errorNode:t,typeName:t.name}}function ue(){var I;return e.isClassDeclaration(t.parent.parent)?I=e.isHeritageClause(t.parent)&&t.parent.token===116?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.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:I=e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:I,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}function E(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function C(I){return{diagnosticMessage:I.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(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}}e.createGetSymbolAccessibilityDiagnosticForNode=g})(un||(un={}));var un;(function(e){function a(E,C,I){var j=E.getCompilerOptions(),Y=e.transformNodes(C,E,e.factory,j,I?[I]:e.filter(E.getSourceFiles(),e.isSourceFileNotJson),[m],!1);return Y.diagnostics}e.getDeclarationDiagnostics=a;function p(E,C){var I=C.text.substring(E.pos,E.end);return e.stringContains(I,"@internal")}function g(E,C){var I=e.getParseTreeNode(E);if(I&&I.kind===161){var j=I.parent.parameters.indexOf(I),Y=j>0?I.parent.parameters[j-1]:void 0,L=C.text,k=Y?e.concatenate(e.getTrailingCommentRanges(L,e.skipTrivia(L,Y.end+1,!1,!0)),e.getLeadingCommentRanges(L,E.pos)):e.getTrailingCommentRanges(L,e.skipTrivia(L,E.pos,!1,!0));return k&&k.length&&p(e.last(k),C)}var h=I&&e.getLeadingCommentRangesOfNode(I,C);return!!e.forEach(h,function(M){return p(M,C)})}e.isInternalDeclaration=g;var t=531469;function m(E){var C=function(){return e.Debug.fail("Diagnostic emitted without context")},I=C,j=!0,Y=!1,L=!1,k=!1,h=!1,M,O,H,$,Z,B,U=E.factory,K=E.getEmitHost(),T={trackSymbol:A,reportInaccessibleThisError:ke,reportInaccessibleUniqueSymbolError:re,reportCyclicStructureError:ve,reportPrivateInBaseOfClassExpression:X,reportLikelyUnsafeImportRequiredError:Ie,reportTruncationError:Je,moduleResolverHost:K,trackReferencedAmbientModule:W,trackExternalModuleSymbolOfImportTypeNode:fe,reportNonlocalAugmentation:je},G,v,R,F,_,u,b=E.getEmitResolver(),w=E.getCompilerOptions(),ee=w.noResolve,le=w.stripInternal;return ze;function ie(Me){if(Me){O=O||new e.Set;for(var We=0,Tn=Me;We0?E.parameters[0].type:void 0}function se(E){switch(E.kind){case 164:case 163:return!e.hasEffectiveModifier(E,8);case 161:case 250:return!0}return!1}function z(E){switch(E.kind){case 252:case 257:case 261:case 254:case 253:case 255:case 256:case 233:case 262:case 268:case 267:return!0}return!1}function ue(E){switch(E.kind){case 171:case 167:case 166:case 168:case 169:case 164:case 163:case 165:case 170:case 172:case 250:case 160:case 224:case 174:case 185:case 175:case 176:case 196:return!0}return!1}})(un||(un={}));var un;(function(e){function a(C){switch(C){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var p;(function(C){C[C.Uninitialized=0]="Uninitialized",C[C.Initialized=1]="Initialized",C[C.Completed=2]="Completed",C[C.Disposed=3]="Disposed"})(p||(p={}));var g;(function(C){C[C.Substitution=1]="Substitution",C[C.EmitNotifications=2]="EmitNotifications"})(g||(g={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray};function t(C,I,j){return{scriptTransformers:m(C,I,j),declarationTransformers:N(I)}}e.getTransformers=t;function m(C,I,j){if(j)return e.emptyArray;var Y=e.getEmitScriptTarget(C),L=e.getEmitModuleKind(C),k=[];return e.addRange(k,I&&e.map(I.before,x)),k.push(e.transformTypeScript),k.push(e.transformClassFields),e.getJSXTransformEnabled(C)&&k.push(e.transformJsx),Y<99&&k.push(e.transformESNext),Y<8&&k.push(e.transformES2021),Y<7&&k.push(e.transformES2020),Y<6&&k.push(e.transformES2019),Y<5&&k.push(e.transformES2018),Y<4&&k.push(e.transformES2017),Y<3&&k.push(e.transformES2016),Y<2&&(k.push(e.transformES2015),k.push(e.transformGenerators)),k.push(a(L)),Y<1&&k.push(e.transformES5),e.addRange(k,I&&e.map(I.after,x)),k}function N(C){var I=[];return I.push(e.transformDeclarations),e.addRange(I,C&&e.map(C.afterDeclarations,se)),I}function D(C){return function(I){return e.isBundle(I)?C.transformBundle(I):C.transformSourceFile(I)}}function c(C,I){return function(j){var Y=C(j);return typeof Y=="function"?I(j,Y):D(Y)}}function x(C){return c(C,e.chainBundle)}function se(C){return c(C,function(I,j){return j})}function z(C,I){return I}e.noEmitSubstitution=z;function ue(C,I,j){j(C,I)}e.noEmitNotification=ue;function E(C,I,j,Y,L,k,h){for(var M=new Array(345),O,H,$,Z=0,B=[],U=[],K=[],T=[],G=0,v=!1,R=[],F=0,_,u,b=z,w=ue,ee=0,le=[],ie={factory:j,getCompilerOptions:function(){return Y},getEmitResolver:function(){return C},getEmitHost:function(){return I},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(ie)}),startLexicalEnvironment:ye,suspendLexicalEnvironment:on,resumeLexicalEnvironment:Te,endLexicalEnvironment:tn,setLexicalEnvironmentFlags:Fe,getLexicalEnvironmentFlags:Ke,hoistVariableDeclaration:be,hoistFunctionDeclaration:de,addInitializationStatement:Ce,startBlockScope:rn,endBlockScope:vn,addBlockScopedVariable:xn,requestEmitHelper:Rn,readEmitHelpers:Ge,enableSubstitution:Je,enableEmitNotification:ze,isSubstitutionEnabled:je,isEmitNotificationEnabled:Ve,get onSubstituteNode(){return b},set onSubstituteNode(Re){e.Debug.assert(ee<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Re!==void 0,"Value must not be 'undefined'"),b=Re},get onEmitNode(){return w},set onEmitNode(Re){e.Debug.assert(ee<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(Re!==void 0,"Value must not be 'undefined'"),w=Re},addDiagnostic:function(Re){le.push(Re)}},W=0,ge=L;W0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed.");var yn=e.setEmitFlags(j.createVariableDeclaration(Re),64);O?O.push(yn):O=[yn],Z&1&&(Z|=2)}function de(Re){e.Debug.assert(ee>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Re,1048576),H?H.push(Re):H=[Re]}function Ce(Re){e.Debug.assert(ee>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(Re,1048576),$?$.push(Re):$=[Re]}function ye(){e.Debug.assert(ee>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!v,"Lexical environment is suspended."),B[G]=O,U[G]=H,K[G]=$,T[G]=Z,G++,O=void 0,H=void 0,$=void 0,Z=0}function on(){e.Debug.assert(ee>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!v,"Lexical environment is already suspended."),v=!0}function Te(){e.Debug.assert(ee>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(v,"Lexical environment is not suspended."),v=!1}function tn(){e.Debug.assert(ee>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(ee<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!v,"Lexical environment is suspended.");var Re;if(O||H||$){if(H&&(Re=wr([],H)),O){var yn=j.createVariableStatement(void 0,j.createVariableDeclarationList(O));e.setEmitFlags(yn,1048576),Re?Re.push(yn):Re=[yn]}$&&(Re?Re=wr(wr([],Re),$):Re=wr([],$))}return G--,O=B[G],H=U[G],$=K[G],Z=T[G],G===0&&(B=[],U=[],K=[],T=[]),Re}function Fe(Re,yn){Z=yn?Z|Re:Z&~Re}function Ke(){return Z}function rn(){e.Debug.assert(ee>0,"Cannot start a block scope during initialization."),e.Debug.assert(ee<2,"Cannot start a block scope after transformation has completed."),R[F]=_,F++,_=void 0}function vn(){e.Debug.assert(ee>0,"Cannot end a block scope during initialization."),e.Debug.assert(ee<2,"Cannot end a block scope after transformation has completed.");var Re=e.some(_)?[j.createVariableStatement(void 0,j.createVariableDeclarationList(_.map(function(yn){return j.createVariableDeclaration(yn)}),1))]:void 0;return F--,_=R[F],F===0&&(R=[]),Re}function xn(Re){e.Debug.assert(F>0,"Cannot add a block scoped variable outside of an iteration body."),(_||(_=[])).push(Re)}function Rn(Re){if(e.Debug.assert(ee>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(ee<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!Re.scoped,"Cannot request a scoped emit helper."),Re.dependencies)for(var yn=0,Ee=Re.dependencies;yn0,"Cannot modify the transformation context during initialization."),e.Debug.assert(ee<2,"Cannot modify the transformation context after transformation has completed.");var Re=u;return u=void 0,Re}function we(){if(ee<3){for(var Re=0,yn=L;Re"),St(),mr(y.type),vc(y)}function bo(y){ei("function"),Oo(y,y.parameters),Ct(":"),mr(y.type)}function ti(y){Ct("?"),mr(y.type)}function Xt(y){Ct("!"),mr(y.type)}function gi(y){mr(y.type),Ct("=")}function Ji(y){gc(y),Vi(y,y.modifiers),ei("new"),St(),el(y,y.typeParameters),Oo(y,y.parameters),St(),Ct("=>"),St(),mr(y.type),vc(y)}function Ui(y){ei("typeof"),St(),mr(y.exprName)}function go(y){Ct("{");var Ze=e.getEmitFlags(y)&1?768:32897;Si(y,y.members,Ze|524288),Ct("}")}function wo(y){mr(y.elementType,qn.parenthesizeElementTypeOfArrayType),Ct("["),Ct("]")}function oo(y){Ct("..."),mr(y.type)}function Go(y){hn(22,y.pos,Ct,y);var Ze=e.getEmitFlags(y)&1?528:657;Si(y,y.elements,Ze|524288),hn(23,y.elements.end,Ct,y)}function Vo(y){mr(y.dotDotDotToken),mr(y.name),mr(y.questionToken),hn(58,y.name.end,Ct,y),St(),mr(y.type)}function pr(y){mr(y.type,qn.parenthesizeElementTypeOfArrayType),Ct("?")}function Ot(y){Si(y,y.types,516,qn.parenthesizeMemberOfElementType)}function Xe(y){Si(y,y.types,520,qn.parenthesizeMemberOfElementType)}function Jn(y){mr(y.checkType,qn.parenthesizeMemberOfConditionalType),St(),ei("extends"),St(),mr(y.extendsType,qn.parenthesizeMemberOfConditionalType),St(),Ct("?"),St(),mr(y.trueType),St(),Ct(":"),St(),mr(y.falseType)}function fr(y){ei("infer"),St(),mr(y.typeParameter)}function Zr(y){Ct("("),mr(y.type),Ct(")")}function Ae(){ei("this")}function Dn(y){Hs(y.operator,ei),St(),mr(y.type,qn.parenthesizeMemberOfElementType)}function pe(y){mr(y.objectType,qn.parenthesizeMemberOfElementType),Ct("["),mr(y.indexType),Ct("]")}function Q(y){var Ze=e.getEmitFlags(y);Ct("{"),Ze&1?St():(ko(),Xl()),y.readonlyToken&&(mr(y.readonlyToken),y.readonlyToken.kind!==142&&ei("readonly"),St()),Ct("["),qr(3,y.typeParameter),y.nameType&&(St(),ei("as"),St(),mr(y.nameType)),Ct("]"),y.questionToken&&(mr(y.questionToken),y.questionToken.kind!==57&&Ct("?")),Ct(":"),St(),mr(y.type),Jo(),Ze&1?St():(ko(),Ml()),Ct("}")}function De(y){jn(y.literal)}function qe(y){mr(y.head),Si(y,y.templateSpans,262144)}function sn(y){y.isTypeOf&&(ei("typeof"),St()),ei("import"),Ct("("),mr(y.argument),Ct(")"),y.qualifier&&(Ct("."),mr(y.qualifier)),kl(y,y.typeArguments)}function Mn(y){Ct("{"),Si(y,y.elements,525136),Ct("}")}function or(y){Ct("["),Si(y,y.elements,524880),Ct("]")}function Ir(y){mr(y.dotDotDotToken),y.propertyName&&(mr(y.propertyName),Ct(":"),St()),mr(y.name),Bc(y.initializer,y.name.end,y,qn.parenthesizeExpressionForDisallowedComma)}function at(y){var Ze=y.elements,er=y.multiLine?65536:0;Tl(y,Ze,8914|er,qn.parenthesizeExpressionForDisallowedComma)}function Ft(y){e.forEach(y.properties,jo);var Ze=e.getEmitFlags(y)&65536;Ze&&Xl();var er=y.multiLine?65536:0,Ar=Ie.languageVersion>=1&&!e.isJsonSourceFile(Ie)?64:0;Si(y,y.properties,526226|Ar|er),Ze&&Ml()}function Da(y){jn(y.expression,qn.parenthesizeLeftSideOfAccess);var Ze=y.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),y.expression.end,y.name.pos),er=ho(y,y.expression,Ze),Ar=ho(y,Ze,y.name);Wc(er,!1);var aa=Ze.kind!==28&&$a(y.expression)&&!ye.hasTrailingComment()&&!ye.hasTrailingWhitespace();aa&&Ct("."),y.questionDotToken?mr(Ze):hn(Ze.kind,y.expression.end,Ct,y),Wc(Ar,!1),mr(y.name),xu(er,Ar)}function $a(y){if(y=e.skipPartiallyEmittedExpressions(y),e.isNumericLiteral(y)){var Ze=Rs(y,!0,!1);return!y.numericLiteralFlags&&!e.stringContains(Ze,e.tokenToString(24))}else if(e.isAccessExpression(y)){var er=e.getConstantValue(y);return typeof er=="number"&&isFinite(er)&&Math.floor(er)===er}}function Za(y){jn(y.expression,qn.parenthesizeLeftSideOfAccess),mr(y.questionDotToken),hn(22,y.expression.end,Ct,y),jn(y.argumentExpression),hn(23,y.argumentExpression.end,Ct,y)}function hi(y){jn(y.expression,qn.parenthesizeLeftSideOfAccess),mr(y.questionDotToken),kl(y,y.typeArguments),Tl(y,y.arguments,2576,qn.parenthesizeExpressionForDisallowedComma)}function vo(y){hn(102,y.pos,ei,y),St(),jn(y.expression,qn.parenthesizeExpressionOfNew),kl(y,y.typeArguments),Tl(y,y.arguments,18960,qn.parenthesizeExpressionForDisallowedComma)}function fs(y){jn(y.tag,qn.parenthesizeLeftSideOfAccess),kl(y,y.typeArguments),St(),jn(y.template)}function bs(y){Ct("<"),mr(y.type),Ct(">"),jn(y.expression,qn.parenthesizeOperandOfPrefixUnary)}function ds(y){var Ze=hn(20,y.pos,Ct,y),er=Qu(y.expression,y);jn(y.expression,void 0),ll(y.expression,y),xu(er),hn(21,y.expression?y.expression.end:Ze,Ct,y)}function gs(y){Hc(y.name),fa(y)}function Zo(y){ml(y,y.decorators),Vi(y,y.modifiers),li(y,ws)}function ws(y){el(y,y.typeParameters),Cf(y,y.parameters),Fo(y.type),St(),mr(y.equalsGreaterThanToken)}function Ws(y){hn(88,y.pos,ei,y),St(),jn(y.expression,qn.parenthesizeOperandOfPrefixUnary)}function Ts(y){hn(111,y.pos,ei,y),St(),jn(y.expression,qn.parenthesizeOperandOfPrefixUnary)}function Gs(y){hn(113,y.pos,ei,y),St(),jn(y.expression,qn.parenthesizeOperandOfPrefixUnary)}function Cs(y){hn(130,y.pos,ei,y),St(),jn(y.expression,qn.parenthesizeOperandOfPrefixUnary)}function xs(y){Hs(y.operator,nl),vs(y)&&St(),jn(y.operand,qn.parenthesizeOperandOfPrefixUnary)}function vs(y){var Ze=y.operand;return Ze.kind===215&&(y.operator===39&&(Ze.operator===39||Ze.operator===45)||y.operator===40&&(Ze.operator===40||Ze.operator===46))}function js(y){jn(y.operand,qn.parenthesizeOperandOfPostfixUnary),Hs(y.operator,nl)}function Zs(){return e.createBinaryExpressionTrampoline(y,Ze,er,Ar,aa,void 0);function y(Ca,Ja){if(Ja){Ja.stackIndex++,Ja.preserveSourceNewlinesStack[Ja.stackIndex]=de,Ja.containerPosStack[Ja.stackIndex]=oe,Ja.containerEndStack[Ja.stackIndex]=J,Ja.declarationListContainerEndStack[Ja.stackIndex]=te;var Yi=Ja.shouldEmitCommentsStack[Ja.stackIndex]=br(Ca),fo=Ja.shouldEmitSourceMapsStack[Ja.stackIndex]=Br(Ca);le==null||le(Ca),Yi&&hc(Ca),fo&&Mf(Ca),dr(Ca)}else Ja={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ja}function Ze(Ca,Ja,Yi){return _a(Ca,Yi,"left")}function er(Ca,Ja,Yi){var fo=Ca.kind!==27,Do=ho(Yi,Yi.left,Ca),tl=ho(Yi,Ca,Yi.right);Wc(Do,fo),Nc(Ca.pos),At(Ca,Ca.kind===100?ei:nl),cl(Ca.end,!0),Wc(tl,!0)}function Ar(Ca,Ja,Yi){return _a(Ca,Yi,"right")}function aa(Ca,Ja){var Yi=ho(Ca,Ca.left,Ca.operatorToken),fo=ho(Ca,Ca.operatorToken,Ca.right);if(xu(Yi,fo),Ja.stackIndex>0){var Do=Ja.preserveSourceNewlinesStack[Ja.stackIndex],tl=Ja.containerPosStack[Ja.stackIndex],ys=Ja.containerEndStack[Ja.stackIndex],ms=Ja.declarationListContainerEndStack[Ja.stackIndex],uc=Ja.shouldEmitCommentsStack[Ja.stackIndex],iu=Ja.shouldEmitSourceMapsStack[Ja.stackIndex];Rr(Do),iu&&Mu(Ca),uc&>(Ca,tl,ys,ms),ie==null||ie(Ca),Ja.stackIndex--}}function _a(Ca,Ja,Yi){var fo=Yi==="left"?qn.getParenthesizeLeftSideOfBinaryForOperator(Ja.operatorToken.kind):qn.getParenthesizeRightSideOfBinaryForOperator(Ja.operatorToken.kind),Do=vt(0,1,Ca);if(Do===ka&&(e.Debug.assertIsDefined(Ye),Ca=fo(e.cast(Ye,e.isExpression)),Do=dt(1,1,Ca),Ye=void 0),(Do===Ga||Do===tf||Do===Vt)&&e.isBinaryExpression(Ca))return Ca;an=fo,Do(1,Ca)}}function He(y){var Ze=ho(y,y.condition,y.questionToken),er=ho(y,y.questionToken,y.whenTrue),Ar=ho(y,y.whenTrue,y.colonToken),aa=ho(y,y.colonToken,y.whenFalse);jn(y.condition,qn.parenthesizeConditionOfConditionalExpression),Wc(Ze,!0),mr(y.questionToken),Wc(er,!0),jn(y.whenTrue,qn.parenthesizeBranchOfConditionalExpression),xu(Ze,er),Wc(Ar,!0),mr(y.colonToken),Wc(aa,!0),jn(y.whenFalse,qn.parenthesizeBranchOfConditionalExpression),xu(Ar,aa)}function ur(y){mr(y.head),Si(y,y.templateSpans,262144)}function ae(y){hn(124,y.pos,ei,y),mr(y.asteriskToken),bl(y.expression,qn.parenthesizeExpressionForDisallowedComma)}function An(y){hn(25,y.pos,Ct,y),jn(y.expression,qn.parenthesizeExpressionForDisallowedComma)}function ir(y){Hc(y.name),cn(y)}function Ur(y){jn(y.expression,qn.parenthesizeLeftSideOfAccess),kl(y,y.typeArguments)}function mn(y){jn(y.expression,void 0),y.type&&(St(),ei("as"),St(),mr(y.type))}function wa(y){jn(y.expression,qn.parenthesizeLeftSideOfAccess),nl("!")}function Ba(y){wi(y.keywordToken,y.pos,Ct),Ct("."),mr(y.name)}function pa(y){jn(y.expression),mr(y.literal)}function ci(y){Xi(y,!y.multiLine&&Iu(y))}function Xi(y,Ze){hn(18,y.pos,Ct,y);var er=Ze||e.getEmitFlags(y)&1?768:129;Si(y,y.statements,er),hn(19,y.statements.end,Ct,y,!!(er&1))}function so(y){Vi(y,y.modifiers),mr(y.declarationList),Jo()}function Wo(y){y?Ct(";"):Jo()}function ps(y){jn(y.expression,qn.parenthesizeExpressionOfExpressionStatement),(!e.isJsonSourceFile(Ie)||e.nodeIsSynthesized(y.expression))&&Jo()}function bi(y){var Ze=hn(98,y.pos,ei,y);St(),hn(20,Ze,Ct,y),jn(y.expression),hn(21,y.expression.end,Ct,y),ic(y,y.thenStatement),y.elseStatement&&(ld(y,y.thenStatement,y.elseStatement),hn(90,y.thenStatement.end,ei,y),y.elseStatement.kind===235?(St(),mr(y.elseStatement)):ic(y,y.elseStatement))}function xl(y,Ze){var er=hn(114,Ze,ei,y);St(),hn(20,er,Ct,y),jn(y.expression),hn(21,y.expression.end,Ct,y)}function dl(y){hn(89,y.pos,ei,y),ic(y,y.statement),e.isBlock(y.statement)&&!de?St():ld(y,y.statement,y.expression),xl(y,y.statement.end),Jo()}function ol(y){xl(y,y.pos),ic(y,y.statement)}function Il(y){var Ze=hn(96,y.pos,ei,y);St();var er=hn(20,Ze,Ct,y);Kl(y.initializer),er=hn(26,y.initializer?y.initializer.end:er,Ct,y),bl(y.condition),er=hn(26,y.condition?y.condition.end:er,Ct,y),bl(y.incrementor),hn(21,y.incrementor?y.incrementor.end:er,Ct,y),ic(y,y.statement)}function rc(y){var Ze=hn(96,y.pos,ei,y);St(),hn(20,Ze,Ct,y),Kl(y.initializer),St(),hn(100,y.initializer.end,ei,y),St(),jn(y.expression),hn(21,y.expression.end,Ct,y),ic(y,y.statement)}function tc(y){var Ze=hn(96,y.pos,ei,y);St(),Dp(y.awaitModifier),hn(20,Ze,Ct,y),Kl(y.initializer),St(),hn(157,y.initializer.end,ei,y),St(),jn(y.expression),hn(21,y.expression.end,Ct,y),ic(y,y.statement)}function Kl(y){y!==void 0&&(y.kind===251?mr(y):jn(y))}function Dc(y){hn(85,y.pos,ei,y),Uc(y.label),Jo()}function zl(y){hn(80,y.pos,ei,y),Uc(y.label),Jo()}function hn(y,Ze,er,Ar,aa){var _a=e.getParseTreeNode(Ar),Ca=_a&&_a.kind===Ar.kind,Ja=Ze;if(Ca&&Ie&&(Ze=e.skipTrivia(Ie.text,Ze)),Ca&&Ar.pos!==Ja){var Yi=aa&&Ie&&!e.positionsAreOnSameLine(Ja,Ze,Ie);Yi&&Xl(),Nc(Ja),Yi&&Ml()}if(Ze=Hs(y,er,Ze),Ca&&Ar.end!==Ze){var fo=Ar.kind===284;cl(Ze,!fo,fo)}return Ze}function Gn(y){hn(104,y.pos,ei,y),bl(y.expression),Jo()}function vr(y){var Ze=hn(115,y.pos,ei,y);St(),hn(20,Ze,Ct,y),jn(y.expression),hn(21,y.expression.end,Ct,y),ic(y,y.statement)}function Qr(y){var Ze=hn(106,y.pos,ei,y);St(),hn(20,Ze,Ct,y),jn(y.expression),hn(21,y.expression.end,Ct,y),St(),mr(y.caseBlock)}function ct(y){mr(y.label),hn(58,y.label.end,Ct,y),St(),mr(y.statement)}function ot(y){hn(108,y.pos,ei,y),bl(y.expression),Jo()}function Lt(y){hn(110,y.pos,ei,y),St(),mr(y.tryBlock),y.catchClause&&(ld(y,y.tryBlock,y.catchClause),mr(y.catchClause)),y.finallyBlock&&(ld(y,y.catchClause||y.tryBlock,y.finallyBlock),hn(95,(y.catchClause||y.tryBlock).end,ei,y),St(),mr(y.finallyBlock))}function kt(y){wi(86,y.pos,ei),Jo()}function ya(y){mr(y.name),mr(y.exclamationToken),Fo(y.type),Bc(y.initializer,y.type?y.type.end:y.name.end,y,qn.parenthesizeExpressionForDisallowedComma)}function ni(y){ei(e.isLet(y)?"let":e.isVarConst(y)?"const":"var"),St(),Si(y,y.declarations,528)}function Yt(y){fa(y)}function fa(y){ml(y,y.decorators),Vi(y,y.modifiers),ei("function"),mr(y.asteriskToken),St(),Ln(y.name),li(y,Ti)}function li(y,Ze){var er=y.body;if(er)if(e.isBlock(er)){var Ar=e.getEmitFlags(y)&65536;Ar&&Xl(),gc(y),e.forEach(y.parameters,to),to(y.body),Ze(y),ce(er),vc(y),Ar&&Ml()}else Ze(y),St(),jn(er,qn.parenthesizeConciseBodyOfArrowFunction);else Ze(y),Jo()}function Ti(y){el(y,y.typeParameters),Oo(y,y.parameters),Fo(y.type)}function To(y){if(e.getEmitFlags(y)&1)return!0;if(y.multiLine||!e.nodeIsSynthesized(y)&&!e.rangeIsOnSingleLine(y,Ie)||mu(y,y.statements,2)||jc(y,y.statements,2))return!1;for(var Ze,er=0,Ar=y.statements;er0)return!1;Ze=aa}return!0}function ce(y){le==null||le(y),St(),Ct("{"),Xl();var Ze=To(y)?ln:pn;sc?sc(y,y.statements,Ze):Ze(y),Ml(),wi(19,y.statements.end,Ct,y),ie==null||ie(y)}function ln(y){pn(y,!0)}function pn(y,Ze){var er=Kd(y.statements),Ar=ye.getTextPos();Sa(y),er===0&&Ar===ye.getTextPos()&&Ze?(Ml(),Si(y,y.statements,768),Xl()):Si(y,y.statements,1,void 0,er)}function $n(y){cn(y)}function cn(y){e.forEach(y.members,jo),ml(y,y.decorators),Vi(y,y.modifiers),ei("class"),y.name&&(St(),Ln(y.name));var Ze=e.getEmitFlags(y)&65536;Ze&&Xl(),el(y,y.typeParameters),Si(y,y.heritageClauses,0),St(),Ct("{"),Si(y,y.members,129),Ct("}"),Ze&&Ml()}function Ht(y){ml(y,y.decorators),Vi(y,y.modifiers),ei("interface"),St(),mr(y.name),el(y,y.typeParameters),Si(y,y.heritageClauses,512),St(),Ct("{"),Si(y,y.members,129),Ct("}")}function $t(y){ml(y,y.decorators),Vi(y,y.modifiers),ei("type"),St(),mr(y.name),el(y,y.typeParameters),St(),Ct("="),St(),mr(y.type),Jo()}function Ia(y){Vi(y,y.modifiers),ei("enum"),St(),mr(y.name),St(),Ct("{"),Si(y,y.members,145),Ct("}")}function Li(y){Vi(y,y.modifiers),~y.flags&1024&&(ei(y.flags&16?"namespace":"module"),St()),mr(y.name);var Ze=y.body;if(!Ze)return Jo();for(;Ze&&e.isModuleDeclaration(Ze);)Ct("."),mr(Ze.name),Ze=Ze.body;St(),mr(Ze)}function Mi(y){gc(y),e.forEach(y.statements,to),Xi(y,Iu(y)),vc(y)}function lo(y){hn(18,y.pos,Ct,y),Si(y,y.clauses,129),hn(19,y.clauses.end,Ct,y,!0)}function Bt(y){Vi(y,y.modifiers),hn(99,y.modifiers?y.modifiers.end:y.pos,ei,y),St(),y.isTypeOnly&&(hn(149,y.pos,ei,y),St()),mr(y.name),St(),hn(62,y.name.end,Ct,y),St(),Ki(y.moduleReference),Jo()}function Ki(y){y.kind===78?jn(y):mr(y)}function co(y){Vi(y,y.modifiers),hn(99,y.modifiers?y.modifiers.end:y.pos,ei,y),St(),y.importClause&&(mr(y.importClause),St(),hn(153,y.importClause.end,ei,y),St()),jn(y.moduleSpecifier),Jo()}function Ro(y){y.isTypeOnly&&(hn(149,y.pos,ei,y),St()),mr(y.name),y.name&&y.namedBindings&&(hn(27,y.name.end,Ct,y),St()),mr(y.namedBindings)}function uo(y){var Ze=hn(41,y.pos,Ct,y);St(),hn(126,Ze,ei,y),St(),mr(y.name)}function $s(y){ql(y)}function yl(y){El(y)}function nu(y){var Ze=hn(92,y.pos,ei,y);St(),y.isExportEquals?hn(62,Ze,nl,y):hn(87,Ze,ei,y),St(),jn(y.expression,y.isExportEquals?qn.getParenthesizeRightSideOfBinaryForOperator(62):qn.parenthesizeExpressionOfExportDefault),Jo()}function Rl(y){var Ze=hn(92,y.pos,ei,y);if(St(),y.isTypeOnly&&(Ze=hn(149,Ze,ei,y),St()),y.exportClause?mr(y.exportClause):Ze=hn(41,Ze,Ct,y),y.moduleSpecifier){St();var er=y.exportClause?y.exportClause.end:Ze;hn(153,er,ei,y),St(),jn(y.moduleSpecifier)}Jo()}function Is(y){var Ze=hn(92,y.pos,ei,y);St(),Ze=hn(126,Ze,ei,y),St(),Ze=hn(140,Ze,ei,y),St(),mr(y.name),Jo()}function mc(y){var Ze=hn(41,y.pos,Ct,y);St(),hn(126,Ze,ei,y),St(),mr(y.name)}function Ua(y){ql(y)}function ia(y){El(y)}function ql(y){Ct("{"),Si(y,y.elements,525136),Ct("}")}function El(y){y.propertyName&&(mr(y.propertyName),St(),hn(126,y.propertyName.end,ei,y),St()),mr(y.name)}function yp(y){ei("require"),Ct("("),jn(y.expression),Ct(")")}function hs(y){mr(y.openingElement),Si(y,y.children,262144),mr(y.closingElement)}function Tf(y){Ct("<"),wd(y.tagName),kl(y,y.typeArguments),St(),mr(y.attributes),Ct("/>")}function No(y){mr(y.openingFragment),Si(y,y.children,262144),mr(y.closingFragment)}function Qf(y){if(Ct("<"),e.isJsxOpeningElement(y)){var Ze=Qu(y.tagName,y);wd(y.tagName),kl(y,y.typeArguments),y.attributes.properties&&y.attributes.properties.length>0&&St(),mr(y.attributes),ll(y.attributes,y),xu(Ze)}Ct(">")}function Su(y){ye.writeLiteral(y.text)}function Ep(y){Ct("")}function os(y){Si(y,y.properties,262656)}function Fs(y){mr(y.name),Ol("=",Ct,y.initializer,ar)}function pl(y){Ct("{..."),jn(y.expression),Ct("}")}function Md(y){var Ze=!1;return e.forEachTrailingCommentRange((Ie==null?void 0:Ie.text)||"",y+1,function(){return Ze=!0}),Ze}function Lu(y){var Ze=!1;return e.forEachLeadingCommentRange((Ie==null?void 0:Ie.text)||"",y+1,function(){return Ze=!0}),Ze}function Zf(y){return Md(y)||Lu(y)}function zu(y){var Ze;if(y.expression||!Se&&!e.nodeIsSynthesized(y)&&Zf(y.pos)){var er=Ie&&!e.nodeIsSynthesized(y)&&e.getLineAndCharacterOfPosition(Ie,y.pos).line!==e.getLineAndCharacterOfPosition(Ie,y.end).line;er&&ye.increaseIndent();var Ar=hn(18,y.pos,Ct,y);mr(y.dotDotDotToken),jn(y.expression),hn(19,((Ze=y.expression)===null||Ze===void 0?void 0:Ze.end)||Ar,Ct,y),er&&ye.decreaseIndent()}}function wd(y){y.kind===78?jn(y):mr(y)}function Gd(y){hn(81,y.pos,ei,y),St(),jn(y.expression,qn.parenthesizeExpressionForDisallowedComma),Fd(y,y.statements,y.expression.end)}function bp(y){var Ze=hn(87,y.pos,ei,y);Fd(y,y.statements,Ze)}function Fd(y,Ze,er){var Ar=Ze.length===1&&(e.nodeIsSynthesized(y)||e.nodeIsSynthesized(Ze[0])||e.rangeStartPositionsAreOnSameLine(y,Ze[0],Ie)),aa=163969;Ar?(wi(58,er,Ct,y),St(),aa&=-130):hn(58,er,Ct,y),Si(y,Ze,aa)}function Tp(y){St(),Hs(y.token,ei),St(),Si(y,y.types,528)}function Sp(y){var Ze=hn(82,y.pos,ei,y);St(),y.variableDeclaration&&(hn(20,Ze,Ct,y),mr(y.variableDeclaration),hn(21,y.variableDeclaration.end,Ct,y),St()),mr(y.block)}function Bd(y){mr(y.name),Ct(":"),St();var Ze=y.initializer;if(!(e.getEmitFlags(Ze)&512)){var er=e.getCommentRange(Ze);cl(er.pos)}jn(Ze,qn.parenthesizeExpressionForDisallowedComma)}function Sf(y){mr(y.name),y.objectAssignmentInitializer&&(St(),Ct("="),St(),jn(y.objectAssignmentInitializer,qn.parenthesizeExpressionForDisallowedComma))}function Ud(y){y.expression&&(hn(25,y.pos,Ct,y),jn(y.expression,qn.parenthesizeExpressionForDisallowedComma))}function Au(y){mr(y.name),Bc(y.initializer,y.name.end,y,qn.parenthesizeExpressionForDisallowedComma)}function ac(y){if(Te("/**"),y.comment){var Ze=e.getTextOfJSDocComment(y.comment);if(Ze)for(var er=Ze.split(/\r\n?|\n/g),Ar=0,aa=er;Ar'),Fe&&Fe.sections.push({pos:aa,end:ye.getTextPos(),kind:"no-default-lib"}),ko()}if(Ie&&Ie.moduleName&&(Vc('/// '),ko()),Ie&&Ie.amdDependencies)for(var _a=0,Ca=Ie.amdDependencies;_a'):Vc('/// '),ko()}for(var Yi=0,fo=Ze;Yi'),Fe&&Fe.sections.push({pos:aa,end:ye.getTextPos(),kind:"reference",data:Do.fileName}),ko()}for(var tl=0,ys=er;tl'),Fe&&Fe.sections.push({pos:aa,end:ye.getTextPos(),kind:"type",data:Do.fileName}),ko()}for(var ms=0,uc=Ar;ms'),Fe&&Fe.sections.push({pos:aa,end:ye.getTextPos(),kind:"lib",data:Do.fileName}),ko()}}function Lf(y){var Ze=y.statements;gc(y),e.forEach(y.statements,to),Sa(y);var er=e.findIndex(Ze,function(Ar){return!e.isPrologueDirective(Ar)});Ap(y),Si(y,Ze,1,void 0,er===-1?Ze.length:er),vc(y)}function td(y){jn(y.expression)}function ad(y){Tl(y,y.elements,528,void 0)}function Kd(y,Ze,er,Ar){for(var aa=!!Ze,_a=0;_a=er.length||Ca===0;if(Yi&&Ar&32768){W&&W(er),ge&&ge(er);return}if(Ar&15360&&(Ct(K(Ar)),Yi&&er&&cl(er.pos,!0)),W&&W(er),Yi)Ar&1&&!(de&&(!Ze||e.rangeIsOnSingleLine(Ze,Ie)))?ko():Ar&256&&!(Ar&524288)&&St();else{e.Debug.type(er);var fo=(Ar&262144)===0,Do=fo,tl=mu(Ze,er,Ar);tl?(ko(tl),Do=!1):Ar&256&&St(),Ar&128&&Xl();for(var ys=void 0,ms=void 0,uc=!1,iu=0;iu0?(Ar&131||(Xl(),uc=!0),ko(Gf),Do=!1):ys&&Ar&512&&St()}if(ms=Sr(Ec),Do){if(cl){var $d=e.getCommentRange(Ec);cl($d.pos)}}else Do=fo;Ce=Ec.pos,y.length===1?y(Ec):y(Ec,aa),uc&&(Ml(),uc=!1),ys=Ec}var vu=ys?e.getEmitFlags(ys):0,fc=Se||!!(vu&1024),Le=(er==null?void 0:er.hasTrailingComma)&&Ar&64&&Ar&16;Le&&(ys&&!fc?hn(27,ys.end,Ct,ys):Ct(",")),ys&&(Ze?Ze.end:-1)!==ys.end&&Ar&60&&!fc&&Nc(Le&&(er!=null&&er.end)?er.end:ys.end),Ar&128&&Ml(),Cr(ms);var dn=jc(Ze,er,Ar);dn?ko(dn):Ar&2097408&&St()}ge&&ge(er),Ar&15360&&(Yi&&er&&Nc(er.end),Ct(T(Ar)))}}function If(y){ye.writeLiteral(y)}function zd(y){ye.writeStringLiteral(y)}function sl(y){ye.write(y)}function sd(y,Ze){ye.writeSymbol(y,Ze)}function Ct(y){ye.writePunctuation(y)}function Jo(){ye.writeTrailingSemicolon(";")}function ei(y){ye.writeKeyword(y)}function nl(y){ye.writeOperator(y)}function Yu(y){ye.writeParameter(y)}function Vc(y){ye.writeComment(y)}function St(){ye.writeSpace(" ")}function oc(y){ye.writeProperty(y)}function ko(y){y===void 0&&(y=1);for(var Ze=0;Ze0)}function Xl(){ye.increaseIndent()}function Ml(){ye.decreaseIndent()}function wi(y,Ze,er,Ar){return Rn?Hs(y,er,Ze):Qd(Ar,y,er,Ze,Hs)}function At(y,Ze){fe&&fe(y),Ze(e.tokenToString(y.kind)),A&&A(y)}function Hs(y,Ze,er){var Ar=e.tokenToString(y);return Ze(Ar),er<0?er:er+Ar.length}function ld(y,Ze,er){if(e.getEmitFlags(y)&1)St();else if(de){var Ar=ho(y,Ze,er);Ar?ko(Ar):St()}else ko()}function qd(y){for(var Ze=y.split(/\r\n?|\n/g),er=e.guessIndentation(Ze),Ar=0,aa=Ze;Ar0||Ar>0)&&er!==Ar&&(aa||nf(er,y.kind!==339),(!aa||er>=0&&Ze&512)&&(oe=er),(!_a||Ar>=0&&Ze&1024)&&(J=Ar,y.kind===251&&(te=Ar))),e.forEach(e.getSyntheticLeadingComments(y),Rc),wn()}function Ql(y,Ze,er,Ar,aa,_a,Ca){Xn();var Ja=Ar<0||(Ze&1024)!==0||y.kind===11;e.forEach(e.getSyntheticTrailingComments(y),Xd),(er>0||Ar>0)&&er!==Ar&&(oe=aa,J=_a,te=Ca,!Ja&&y.kind!==339&&Oc(Ar)),wn()}function Rc(y){(y.hasLeadingNewline||y.kind===2)&&ye.writeLine(),ef(y),y.hasTrailingNewLine||y.kind===2?ye.writeLine():ye.writeSpace(" ")}function Xd(y){ye.isAtStartOfLine()||ye.writeSpace(" "),ef(y),y.hasTrailingNewLine&&ye.writeLine()}function ef(y){var Ze=ku(y),er=y.kind===3?e.computeLineStarts(Ze):void 0;e.writeCommentRange(Ze,er,ye,0,Ze.length,re)}function ku(y){return y.kind===3?"/*"+y.text+"*/":"//"+y.text}function sc(y,Ze,er){Xn();var Ar=Ze.pos,aa=Ze.end,_a=e.getEmitFlags(y),Ca=Ar<0||(_a&512)!==0,Ja=Se||aa<0||(_a&1024)!==0;Ca||qp(Ze),wn(),_a&2048&&!Se?(Se=!0,er(y),Se=!1):er(y),Xn(),Ja||(nf(Ze.end,!0),P&&!ye.isAtStartOfLine()&&ye.writeLine()),wn()}function lc(y,Ze){if(e.nodeIsSynthesized(y)||e.nodeIsSynthesized(Ze)||Ze.pos-1&&Ar.indexOf(Ze)===aa+1}function nf(y,Ze){P=!1,Ze?y===0&&(Ie!=null&&Ie.isDeclarationFile)?wl(y,Rp):wl(y,Of):y===0&&wl(y,Ip)}function Ip(y,Ze,er,Ar,aa){Pu(y,Ze)&&Of(y,Ze,er,Ar,aa)}function Rp(y,Ze,er,Ar,aa){Pu(y,Ze)||Of(y,Ze,er,Ar,aa)}function Nf(y,Ze){return v.onlyPrintJsDocStyle?e.isJSDocLikeText(y,Ze)||e.isPinnedComment(y,Ze):!0}function Of(y,Ze,er,Ar,aa){Nf(Ie.text,y)&&(P||(e.emitNewLineBeforeLeadingCommentOfPosition(tt(),ye,aa,y),P=!0),yc(y),e.writeCommentRange(Ie.text,tt(),ye,y,Ze,re),yc(Ze),Ar?ye.writeLine():er===3&&ye.writeSpace(" "))}function Nc(y){Se||y===-1||nf(y,!0)}function Oc(y){rf(y,cc)}function cc(y,Ze,er,Ar){Nf(Ie.text,y)&&(ye.isAtStartOfLine()||ye.writeSpace(" "),yc(y),e.writeCommentRange(Ie.text,tt(),ye,y,Ze,re),yc(Ze),Ar&&ye.writeLine())}function cl(y,Ze,er){Se||(Xn(),rf(y,Ze?cc:er?kf:Yd),wn())}function kf(y,Ze,er){yc(y),e.writeCommentRange(Ie.text,tt(),ye,y,Ze,re),yc(Ze),er===2&&ye.writeLine()}function Yd(y,Ze,er,Ar){yc(y),e.writeCommentRange(Ie.text,tt(),ye,y,Ze,re),yc(Ze),Ar?ye.writeLine():ye.writeSpace(" ")}function wl(y,Ze){Ie&&(oe===-1||y!==oe)&&(zp(y)?qo(Ze):e.forEachLeadingCommentRange(Ie.text,y,Ze,y))}function rf(y,Ze){Ie&&(J===-1||y!==J&&y!==te)&&e.forEachTrailingCommentRange(Ie.text,y,Ze)}function zp(y){return xe!==void 0&&e.last(xe).nodePos===y}function qo(y){var Ze=e.last(xe).detachedCommentEndPos;xe.length-1?xe.pop():xe=void 0,e.forEachLeadingCommentRange(Ie.text,Ze,y,Ze)}function qp(y){var Ze=e.emitDetachedComments(Ie.text,tt(),ye,zi,y,re,Se);Ze&&(xe?xe.push(Ze):xe=[Ze])}function zi(y,Ze,er,Ar,aa,_a){Nf(Ie.text,Ar)&&(yc(Ar),e.writeCommentRange(y,Ze,er,Ar,aa,_a),yc(aa))}function Pu(y,Ze){return e.isRecognizedTripleSlashComment(Ie.text,y,Ze)}function Pf(y){return y.parsedSourceMap===void 0&&y.sourceMapText!==void 0&&(y.parsedSourceMap=e.tryParseRawSourceMap(y.sourceMapText)||!1),y.parsedSourceMap||void 0}function tf(y,Ze){var er=dt(3,y,Ze);Mf(Ze),er(y,Ze),Mu(Ze)}function Mf(y){var Ze=e.getEmitFlags(y),er=e.getSourceMapRange(y);if(e.isUnparsedNode(y)){e.Debug.assertIsDefined(y.parent,"UnparsedNodes must have parent pointers");var Ar=Pf(y.parent);Ar&&Ge&&Ge.appendSourceMap(ye.getLine(),ye.getColumn(),Ar,y.parent.sourceMapPath,y.parent.getLineAndCharacterOfPosition(y.pos),y.parent.getLineAndCharacterOfPosition(y.end))}else{var aa=er.source||we;y.kind!==339&&!(Ze&16)&&er.pos>=0&&md(er.source||we,wf(aa,er.pos)),Ze&64&&(Rn=!0)}}function Mu(y){var Ze=e.getEmitFlags(y),er=e.getSourceMapRange(y);e.isUnparsedNode(y)||(Ze&64&&(Rn=!1),y.kind!==339&&!(Ze&32)&&er.end>=0&&md(er.source||we,er.end))}function wf(y,Ze){return y.skipTrivia?y.skipTrivia(Ze):e.skipTrivia(y.text,Ze)}function yc(y){if(!(Rn||e.positionIsSynthesized(y)||Np(we))){var Ze=e.getLineAndCharacterOfPosition(we,y),er=Ze.line,Ar=Ze.character;Ge.addMapping(ye.getLine(),ye.getColumn(),Re,er,Ar,void 0)}}function md(y,Ze){if(y!==we){var er=we,Ar=Re;Zd(y),yc(Ze),wu(er,Ar)}else yc(Ze)}function Qd(y,Ze,er,Ar,aa){if(Rn||y&&e.isInJsonFile(y))return aa(Ze,er,Ar);var _a=y&&y.emitNode,Ca=_a&&_a.flags||0,Ja=_a&&_a.tokenSourceMapRanges&&_a.tokenSourceMapRanges[Ze],Yi=Ja&&Ja.source||we;return Ar=wf(Yi,Ja?Ja.pos:Ar),!(Ca&128)&&Ar>=0&&md(Yi,Ar),Ar=aa(Ze,er,Ar),Ja&&(Ar=Ja.end),!(Ca&256)&&Ar>=0&&md(Yi,Ar),Ar}function Zd(y){if(!Rn){if(we=y,y===yn){Re=Ee;return}Np(y)||(Re=Ge.addSource(y.fileName),v.inlineSources&&Ge.setSourceContent(Re,y.text),yn=y,Ee=Re)}}function wu(y,Ze){we=y,Re=Ze}function Np(y){return e.fileExtensionIs(y.fileName,".json")}}e.createPrinter=B;function U(){var v=[];return v[1024]=["{","}"],v[2048]=["(",")"],v[4096]=["<",">"],v[8192]=["[","]"],v}function K(v){return a[v&15360][0]}function T(v){return a[v&15360][1]}var G;(function(v){v[v.Auto=0]="Auto",v[v.CountMask=268435455]="CountMask",v[v._i=268435456]="_i"})(G||(G={}))})(un||(un={}));var un;(function(e){function a(C,I,j){if(!C.getDirectories||!C.readDirectory)return;var Y=new e.Map,L=e.createGetCanonicalFileName(j);return{useCaseSensitiveFileNames:j,fileExists:T,readFile:function(le,ie){return C.readFile(le,ie)},directoryExists:C.directoryExists&&G,getDirectories:R,readDirectory:F,createDirectory:C.createDirectory&&v,writeFile:C.writeFile&&K,addOrDeleteFileOrDirectory:u,addOrDeleteFile:b,clearCache:ee,realpath:C.realpath&&_};function k(le){return e.toPath(le,I,L)}function h(le){return Y.get(e.ensureTrailingDirectorySeparator(le))}function M(le){return h(e.getDirectoryPath(le))}function O(le){return e.getBaseFileName(e.normalizePath(le))}function H(le,ie){var W;if(!C.realpath||e.ensureTrailingDirectorySeparator(k(C.realpath(le)))===ie){var ge={files:e.map(C.readDirectory(le,void 0,void 0,["*.*"]),O)||[],directories:C.getDirectories(le)||[]};return Y.set(e.ensureTrailingDirectorySeparator(ie),ge),ge}if(!((W=C.directoryExists)===null||W===void 0)&&W.call(C,le))return Y.set(ie,!1),!1}function $(le,ie){ie=e.ensureTrailingDirectorySeparator(ie);var W=h(ie);if(W)return W;try{return H(le,ie)}catch{e.Debug.assert(!Y.has(e.ensureTrailingDirectorySeparator(ie)));return}}function Z(le,ie){return L(le)===L(ie)}function B(le,ie){return e.some(le,function(W){return Z(W,ie)})}function U(le,ie,W){if(B(le,ie)){if(!W)return e.filterMutate(le,function(ge){return!Z(ge,ie)})}else if(W)return le.push(ie)}function K(le,ie,W){var ge=k(le),fe=M(ge);return fe&&w(fe,O(le),!0),C.writeFile(le,ie,W)}function T(le){var ie=k(le),W=M(ie);return W&&B(W.files,O(le))||C.fileExists(le)}function G(le){var ie=k(le);return Y.has(e.ensureTrailingDirectorySeparator(ie))||C.directoryExists(le)}function v(le){var ie=k(le),W=M(ie),ge=O(le);W&&U(W.directories,ge,!0),C.createDirectory(le)}function R(le){var ie=k(le),W=$(le,ie);return W?W.directories.slice():C.getDirectories(le)}function F(le,ie,W,ge,fe){var A=k(le),X=$(le,A),re;if(X!==void 0)return e.matchFiles(le,ie,W,ge,j,I,fe,ve,_);return C.readDirectory(le,ie,W,ge,fe);function ve(Ie){var Je=k(Ie);if(Je===A)return X||ke(Ie,Je);var je=$(Ie,Je);return je!==void 0?je||ke(Ie,Je):e.emptyFileSystemEntries}function ke(Ie,Je){if(re&&Je===A)return re;var je={files:e.map(C.readDirectory(Ie,void 0,void 0,["*.*"]),O)||e.emptyArray,directories:C.getDirectories(Ie)||e.emptyArray};return Je===A&&(re=je),je}}function _(le){return C.realpath?C.realpath(le):le}function u(le,ie){var W=h(ie);if(W!==void 0){ee();return}var ge=M(ie);if(ge){if(!C.directoryExists){ee();return}var fe=O(le),A={fileExists:C.fileExists(ie),directoryExists:C.directoryExists(ie)};return A.directoryExists||B(ge.directories,fe)?ee():w(ge,fe,A.fileExists),A}}function b(le,ie,W){if(W!==e.FileWatcherEventKind.Changed){var ge=M(ie);ge&&w(ge,O(le),W===e.FileWatcherEventKind.Created)}}function w(le,ie,W){U(le.files,ie,W)}function ee(){Y.clear()}}e.createCachedDirectoryStructureHost=a,function(C){C[C.None=0]="None",C[C.Partial=1]="Partial",C[C.Full=2]="Full"}(e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}));function p(C,I,j,Y,L){var k,h=e.arrayToMap(((k=I==null?void 0:I.configFile)===null||k===void 0?void 0:k.extendedSourceFiles)||e.emptyArray,L);j.forEach(function(M,O){h.has(O)||(M.projects.delete(C),M.close())}),h.forEach(function(M,O){var H=j.get(O);H?H.projects.add(C):j.set(O,{projects:new e.Set([C]),watcher:Y(M,O),close:function(){var $=j.get(O);!$||$.projects.size!==0||($.watcher.close(),j.delete(O))}})})}e.updateSharedExtendedConfigFileWatcher=p;function g(C,I){I.forEach(function(j){j.projects.delete(C)&&j.close()})}e.clearSharedExtendedConfigFileWatcher=g;function t(C,I,j){C.delete(I)&&C.forEach(function(Y,L){var k,h=Y.extendedResult;!((k=h.extendedSourceFiles)===null||k===void 0)&&k.some(function(M){return j(M)===I})&&t(C,L,j)})}e.cleanExtendedConfigCache=t;function m(C,I,j){var Y=C.getMissingFilePaths(),L=e.arrayToMap(Y,e.identity,e.returnTrue);e.mutateMap(I,L,{createNewValue:j,onDeleteValue:e.closeFileWatcher})}e.updateMissingFilePathsWatch=m;function N(C,I,j){e.mutateMap(C,I,{createNewValue:Y,onDeleteValue:E,onExistingValue:L});function Y(k,h){return{watcher:j(k,h),flags:h}}function L(k,h,M){k.flags!==h&&(k.watcher.close(),C.set(M,Y(M,h)))}}e.updateWatchingWildcardDirectories=N;function D(C){var I=C.watchedDirPath,j=C.fileOrDirectory,Y=C.fileOrDirectoryPath,L=C.configFileName,k=C.options,h=C.program,M=C.extraFileExtensions,O=C.currentDirectory,H=C.useCaseSensitiveFileNames,$=C.writeLog,Z=C.toPath,B=e.removeIgnoredPath(Y);if(!B)return $("Project: "+L+" Detected ignored path: "+j),!0;if(Y=B,Y===I)return!1;if(e.hasExtension(Y)&&!e.isSupportedSourceFileName(j,k,M))return $("Project: "+L+" Detected file add/remove of non supported extension: "+j),!0;if(e.isExcludedFile(j,k.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(L),O),H,O))return $("Project: "+L+" Detected excluded file: "+j),!0;if(!h||k.outFile||k.outDir)return!1;if(e.fileExtensionIs(Y,".d.ts")){if(k.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(Y,e.supportedJSExtensions))return!1;var U=e.removeFileExtension(Y),K=e.isArray(h)?void 0:c(h)?h.getProgramOrUndefined():h,T=!K&&!e.isArray(h)?h:void 0;if(G(U+".ts")||G(U+".tsx"))return $("Project: "+L+" Detected output file: "+j),!0;return!1;function G(v){return K?!!K.getSourceFileByPath(v):T?T.getState().fileInfos.has(v):!!e.find(h,function(R){return Z(R)===v})}}e.isIgnoredFileFromWildCardWatching=D;function c(C){return!!C.getState}function x(C,I){return C?C.isEmittedFile(I):!1}e.isEmittedFileOfProgram=x;var se;(function(C){C[C.None=0]="None",C[C.TriggerOnly=1]="TriggerOnly",C[C.Verbose=2]="Verbose"})(se=e.WatchLogLevel||(e.WatchLogLevel={}));function z(C,I,j,Y){e.setSysLog(I===se.Verbose?j:e.noop);var L={watchFile:function(T,G,v,R){return C.watchFile(T,G,v,R)},watchDirectory:function(T,G,v,R){return C.watchDirectory(T,G,(v&1)!==0,R)}},k=I!==se.None?{watchFile:U("watchFile"),watchDirectory:U("watchDirectory")}:void 0,h=I===se.Verbose?{watchFile:Z,watchDirectory:B}:k||L,M=I===se.Verbose?$:e.returnNoopFileWatcher;return{watchFile:O("watchFile"),watchDirectory:O("watchDirectory")};function O(T){return function(G,v,R,F,_,u){var b;return e.matchesExclude(G,T==="watchFile"?F==null?void 0:F.excludeFiles:F==null?void 0:F.excludeDirectories,H(),((b=C.getCurrentDirectory)===null||b===void 0?void 0:b.call(C))||"")?M(G,R,F,_,u):h[T].call(void 0,G,v,R,F,_,u)}}function H(){return typeof C.useCaseSensitiveFileNames=="boolean"?C.useCaseSensitiveFileNames:C.useCaseSensitiveFileNames()}function $(T,G,v,R,F){return j("ExcludeWatcher:: Added:: "+K(T,G,v,R,F,Y)),{close:function(){return j("ExcludeWatcher:: Close:: "+K(T,G,v,R,F,Y))}}}function Z(T,G,v,R,F,_){j("FileWatcher:: Added:: "+K(T,v,R,F,_,Y));var u=k.watchFile(T,G,v,R,F,_);return{close:function(){j("FileWatcher:: Close:: "+K(T,v,R,F,_,Y)),u.close()}}}function B(T,G,v,R,F,_){var u="DirectoryWatcher:: Added:: "+K(T,v,R,F,_,Y);j(u);var b=e.timestamp(),w=k.watchDirectory(T,G,v,R,F,_),ee=e.timestamp()-b;return j("Elapsed:: "+ee+"ms "+u),{close:function(){var le="DirectoryWatcher:: Close:: "+K(T,v,R,F,_,Y);j(le);var ie=e.timestamp();w.close();var W=e.timestamp()-ie;j("Elapsed:: "+W+"ms "+le)}}}function U(T){return function(G,v,R,F,_,u){return L[T].call(void 0,G,function(){for(var b=[],w=0;w=4,de=(ze+1+"").length;be&&(de=Math.max(C.length,de));for(var Ce="",ye=Je;ye<=ze;ye++){Ce+=ke.getNewLine(),be&&Je+1=0;){if(Gn.markUsed(ot))return ot;var Lt=vr.text.slice(ct[ot],ct[ot+1]).trim();if(Lt!==""&&!/^(\s*)\/\/(.*)$/.test(Lt))return-1;ot--}return-1}function Go(hn){return ti(function(){var Gn=[];return vr(hn,hn),e.forEachChildRecursively(hn,vr,Qr),Gn;function vr(kt,ya){switch(ya.kind){case 161:case 164:case 166:if(ya.questionToken===kt)return Gn.push(Lt(kt,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 165:case 167:case 168:case 169:case 209:case 252:case 210:case 250:if(ya.type===kt)return Gn.push(Lt(kt,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(kt.kind){case 263:if(kt.isTypeOnly)return Gn.push(Lt(ya,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 268:if(kt.isTypeOnly)return Gn.push(Lt(kt,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 261:return Gn.push(Lt(kt,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 267:if(kt.isExportEquals)return Gn.push(Lt(kt,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 287:var ni=kt;if(ni.token===116)return Gn.push(Lt(kt,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 254:var Yt=e.tokenToString(117);return e.Debug.assertIsDefined(Yt),Gn.push(Lt(kt,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,Yt)),"skip";case 257:var fa=kt.flags&16?e.tokenToString(140):e.tokenToString(139);return e.Debug.assertIsDefined(fa),Gn.push(Lt(kt,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,fa)),"skip";case 255:return Gn.push(Lt(kt,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 256:var li=e.Debug.checkDefined(e.tokenToString(91));return Gn.push(Lt(kt,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,li)),"skip";case 226:return Gn.push(Lt(kt,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 225:return Gn.push(Lt(kt.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 207:e.Debug.fail()}}function Qr(kt,ya){switch(ya.decorators===kt&&!ze.experimentalDecorators&&Gn.push(Lt(ya,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)),ya.kind){case 253:case 222:case 166:case 167:case 168:case 169:case 209:case 252:case 210:if(kt===ya.typeParameters)return Gn.push(ot(kt,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 233:if(kt===ya.modifiers)return ct(ya.modifiers,ya.kind===233),"skip";break;case 164:if(kt===ya.modifiers){for(var ni=0,Yt=kt;ni0),Object.defineProperties(Lt,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(kt){this.redirectInfo.redirectTarget.id=kt}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(kt){this.redirectInfo.redirectTarget.symbol=kt}}}),Lt}function $a(hn,Gn,vr,Qr,ct,ot){e.tracing===null||e.tracing===void 0||e.tracing.push("program","findSourceFile",{fileName:hn,isDefaultLib:vr||void 0,fileIncludeKind:e.FileIncludeKind[ct.kind]});var Lt=Za(hn,Gn,vr,Qr,ct,ot);return e.tracing===null||e.tracing===void 0||e.tracing.pop(),Lt}function Za(hn,Gn,vr,Qr,ct,ot){if(Be){var Lt=ws(hn);if(!Lt&&J.realpath&&ze.preserveSymlinks&&e.isDeclarationFileName(hn)&&e.stringContains(hn,e.nodeModulesPathPart)){var kt=J.realpath(hn);kt!==hn&&(Lt=ws(kt))}if(Lt){var ya=e.isString(Lt)?$a(Lt,ga(Lt),vr,Qr,ct,ot):void 0;return ya&&vo(ya,Gn,void 0),ya}}var ni=hn;if(kn.has(Gn)){var Yt=kn.get(Gn);if(hi(Yt||void 0,ct),Yt&&ze.forceConsistentCasingInFileNames){var fa=Yt.fileName,li=ga(fa)!==ga(hn);li&&(hn=fs(hn)||hn);var Ti=e.getNormalizedAbsolutePathWithoutRoot(fa,Ye),To=e.getNormalizedAbsolutePathWithoutRoot(hn,Ye);Ti!==To&&Ft(hn,Yt,ct)}return Yt&&oe.get(Yt.path)&&yn===0?(oe.set(Yt.path,!1),ze.noResolve||(Gs(Yt,vr),Cs(Yt)),ze.noLib||js(Yt),Ee.set(Yt.path,!1),He(Yt)):Yt&&Ee.get(Yt.path)&&yn0),$n.fileName=hn,$n.path=Gn,$n.resolvedPath=ga(hn),$n.originalFileName=ni,hi($n,ct),J.useCaseSensitiveFileNames()){var Ia=e.toFileNameLowerCase(Gn),Li=Cr.get(Ia);Li?Ft(hn,Li,ct):Cr.set(Ia,$n)}me=me||$n.hasNoDefaultLib&&!Qr,ze.noResolve||(Gs($n,vr),Cs($n)),ze.noLib||js($n),He($n),vr?de.push($n):Ce.push($n)}return $n}function hi(hn,Gn){hn&&vn.add(hn.path,Gn)}function vo(hn,Gn,vr){vr?(kn.set(vr,hn),kn.set(Gn,hn||!1)):kn.set(Gn,hn)}function fs(hn){var Gn=bs(hn);return Gn&&ds(Gn,hn)}function bs(hn){if(!(!Qe||!Qe.length||e.fileExtensionIs(hn,".d.ts")||e.fileExtensionIs(hn,".json")))return gs(hn)}function ds(hn,Gn){var vr=e.outFile(hn.commandLine.options);return vr?e.changeExtension(vr,".d.ts"):e.getOutputDeclarationFileName(Gn,hn.commandLine,!J.useCaseSensitiveFileNames())}function gs(hn){bn===void 0&&(bn=new e.Map,Zo(function(vr){ga(ze.configFilePath)!==vr.sourceFile.path&&vr.commandLine.fileNames.forEach(function(Qr){return bn.set(ga(Qr),vr.sourceFile.path)})}));var Gn=bn.get(ga(hn));return Gn&&Ts(Gn)}function Zo(hn){return e.forEachResolvedProjectReference(Qe,hn)}function ws(hn){if(e.isDeclarationFileName(hn))return In===void 0&&(In=new e.Map,Zo(function(Gn){var vr=e.outFile(Gn.commandLine.options);if(vr){var Qr=e.changeExtension(vr,".d.ts");In.set(ga(Qr),!0)}else{var ct=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(Gn.commandLine,!J.useCaseSensitiveFileNames())});e.forEach(Gn.commandLine.fileNames,function(ot){if(!e.fileExtensionIs(ot,".d.ts")&&!e.fileExtensionIs(ot,".json")){var Lt=e.getOutputDeclarationFileName(ot,Gn.commandLine,!J.useCaseSensitiveFileNames(),ct);In.set(ga(Lt),ot)}})}})),In.get(ga(hn))}function Ws(hn){return Be&&!!gs(hn)}function Ts(hn){if(Bn)return Bn.get(hn)||void 0}function Gs(hn,Gn){e.forEach(hn.referencedFiles,function(vr,Qr){Ir(p(vr.fileName,hn.fileName),Gn,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:hn.path,index:Qr})})}function Cs(hn){var Gn=e.map(hn.typeReferenceDirectives,function(kt){return e.toFileNameLowerCase(kt.fileName)});if(Gn)for(var vr=Yr(Gn,hn),Qr=0;QrRe,li=Yt&&!ie(ct,Lt)&&!ct.noResolve&&ot1})&&bi(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(ze.useDefineForClassFields&&Yt===0&&bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ze.checkJs&&!e.getAllowJSCompilerOption(ze)&&Se.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ze.emitDeclarationOnly&&(e.getEmitDeclarations(ze)||bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ze.noEmit&&bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ze.emitDecoratorMetadata&&!ze.experimentalDecorators&&bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ze.jsxFactory?(ze.reactNamespace&&bi(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ze.jsx===4||ze.jsx===5)&&bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+ze.jsx)),e.parseIsolatedEntityName(ze.jsxFactory,Yt)||xl("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ze.jsxFactory)):ze.reactNamespace&&!e.isIdentifierText(ze.reactNamespace,Yt)&&xl("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ze.reactNamespace),ze.jsxFragmentFactory&&(ze.jsxFactory||bi(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ze.jsx===4||ze.jsx===5)&&bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+ze.jsx)),e.parseIsolatedEntityName(ze.jsxFragmentFactory,Yt)||xl("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ze.jsxFragmentFactory)),ze.reactNamespace&&(ze.jsx===4||ze.jsx===5)&&bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+ze.jsx)),ze.jsxImportSource&&ze.jsx===2&&bi(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+ze.jsx)),!ze.noEmit&&!ze.suppressOutputPathCheck){var ce=gr(),ln=new e.Set;e.forEachEmittedFile(ce,function($n){ze.emitDeclarationOnly||pn($n.jsFilePath,ln),pn($n.declarationFilePath,ln)})}function pn($n,cn){if($n){var Ht=ga($n);if(kn.has(Ht)){var $t=void 0;ze.configFilePath||($t=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)),$t=e.chainDiagnosticMessages($t,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,$n),tc($n,e.createCompilerDiagnosticFromMessageChain($t))}var Ia=J.useCaseSensitiveFileNames()?Ht:e.toFileNameLowerCase(Ht);cn.has(Ia)?tc($n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,$n)):cn.add(Ia)}}}function ir(hn,Gn,vr,Qr){var ct,ot,Lt,kt=B(Gn)?Gn:void 0;hn&&((ct=vn.get(hn.path))===null||ct===void 0||ct.forEach(li)),Gn&&li(Gn),kt&&(ot==null?void 0:ot.length)===1&&(ot=void 0);var ya=kt&&K(ja,kt),ni=ot&&e.chainDiagnosticMessages(ot,e.Diagnostics.The_file_is_in_the_program_because_Colon),Yt=hn&&e.explainIfFileIsRedirect(hn),fa=e.chainDiagnosticMessages.apply(void 0,wr([Yt?ni?wr([ni],Yt):Yt:ni,vr],Qr||e.emptyArray));return ya&&U(ya)?e.createFileDiagnosticFromMessageChain(ya.file,ya.pos,ya.end-ya.pos,fa,Lt):e.createCompilerDiagnosticFromMessageChain(fa,Lt);function li(Ti){(ot||(ot=[])).push(e.fileIncludeReasonToDiagnostics(cr,Ti)),!kt&&B(Ti)?kt=Ti:kt!==Ti&&(Lt=e.append(Lt,wa(Ti))),Ti===Gn&&(Gn=void 0)}}function Ur(hn,Gn,vr,Qr){(we||(we=[])).push({kind:1,file:hn&&hn.path,fileProcessingReason:Gn,diagnostic:vr,args:Qr})}function mn(hn,Gn,vr){Se.add(ir(hn,void 0,Gn,vr))}function wa(hn){if(B(hn)){var Gn=K(ja,hn),vr;switch(hn.kind){case e.FileIncludeKind.Import:vr=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:vr=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:vr=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:vr=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(hn)}return U(Gn)?e.createFileDiagnostic(Gn.file,Gn.pos,Gn.end-Gn.pos,vr):void 0}if(ze.configFile){var Qr,ct;switch(hn.kind){case e.FileIncludeKind.RootFile:if(!ze.configFile.configFileSpecs)return;var ot=e.getNormalizedAbsolutePath(fn[hn.index],Ye),Lt=e.getMatchedFileSpec(cr,ot);if(Lt){Qr=e.getTsConfigPropArrayElementValue(ze.configFile,"files",Lt),ct=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var kt=e.getMatchedIncludeSpec(cr,ot);if(!kt)return;Qr=e.getTsConfigPropArrayElementValue(ze.configFile,"include",kt),ct=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var ya=e.Debug.checkDefined(Qe==null?void 0:Qe[hn.index]),ni=Z(Ne,Qe,function(To,ce,ln){return To===ya?{sourceFile:(ce==null?void 0:ce.sourceFile)||ze.configFile,index:ln}:void 0});if(!ni)return;var Yt=ni.sourceFile,fa=ni.index,li=e.firstDefined(e.getTsConfigPropArray(Yt,"references"),function(To){return e.isArrayLiteralExpression(To.initializer)?To.initializer:void 0});return li&&li.elements.length>fa?e.createDiagnosticForNodeInSourceFile(Yt,li.elements[fa],hn.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(!ze.types)return;Qr=ps("types",hn.typeReference),ct=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(hn.index!==void 0){Qr=ps("lib",ze.lib[hn.index]),ct=e.Diagnostics.File_is_library_specified_here;break}var Ti=e.forEachEntry(e.targetOptionDeclaration.type,function(To,ce){return To===ze.target?ce:void 0});Qr=Ti?Wo("target",Ti):void 0,ct=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(hn)}return Qr&&e.createDiagnosticForNodeInSourceFile(ze.configFile,Qr,ct)}}function Ba(){var hn=ze.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(ze);Z(Ne,Qe,function(Gn,vr,Qr){var ct=(vr?vr.commandLine.projectReferences:Ne)[Qr],ot=vr&&vr.sourceFile;if(!Gn){dl(ot,Qr,e.Diagnostics.File_0_not_found,ct.path);return}var Lt=Gn.commandLine.options;if(!Lt.composite||Lt.noEmit){var kt=vr?vr.commandLine.fileNames:fn;kt.length&&(Lt.composite||dl(ot,Qr,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,ct.path),Lt.noEmit&&dl(ot,Qr,e.Diagnostics.Referenced_project_0_may_not_disable_emit,ct.path))}if(ct.prepend){var ya=e.outFile(Lt);ya?J.fileExists(ya)||dl(ot,Qr,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,ya,ct.path):dl(ot,Qr,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,ct.path)}!vr&&hn&&hn===e.getTsBuildInfoEmitOutputFilePath(Lt)&&(dl(ot,Qr,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,hn,ct.path),Xn.set(ga(hn),!0))})}function pa(hn,Gn,vr,Qr,ct,ot){for(var Lt=!0,kt=so(),ya=0,ni=kt;yaGn&&(Se.add(e.createDiagnosticForNodeInSourceFile(ze.configFile,To.elements[Gn],vr,Qr,ct,ot)),Lt=!1)}}Lt&&Se.add(e.createCompilerDiagnostic(vr,Qr,ct,ot))}function ci(hn,Gn,vr,Qr){for(var ct=!0,ot=so(),Lt=0,kt=ot;LtGn?Se.add(e.createDiagnosticForNodeInSourceFile(hn||ze.configFile,ot.elements[Gn],vr,Qr,ct)):Se.add(e.createCompilerDiagnostic(vr,Qr,ct))}function ol(hn,Gn,vr,Qr,ct,ot,Lt){var kt=Il(),ya=!kt||!rc(kt,hn,Gn,vr,Qr,ct,ot,Lt);ya&&Se.add(e.createCompilerDiagnostic(Qr,ct,ot,Lt))}function Il(){if(wn===void 0){wn=!1;var hn=e.getTsConfigObjectLiteralExpression(ze.configFile);if(hn)for(var Gn=0,vr=e.getPropertyAssignment(hn,"compilerOptions");Gn0)for(var G=B.getTypeChecker(),v=0,R=U.imports;v0)for(var b=0,w=U.referencedFiles;b1&&ve(re)}return T;function ve(Ie){if(Ie.declarations)for(var Je=0,je=Ie.declarations;Je0;){var b=u.pop();if(!_.has(b)){var w=U.getSourceFileByPath(b);_.set(b,w),w&&C(B,U,w,T,G,v,R)&&u.push.apply(u,k(B,w.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(_.values(),function(ee){return ee}))}}(e.BuilderState||(e.BuilderState={}))})(un||(un={}));var un;(function(e){(function(_){_[_.DtsOnly=0]="DtsOnly",_[_.Full=1]="Full"})(e.BuilderFileEmit||(e.BuilderFileEmit={}));function a(_,u){return _===u||_!==void 0&&u!==void 0&&_.size===u.size&&!e.forEachKey(_,function(b){return!u.has(b)})}function p(_,u,b,w){var ee=e.BuilderState.create(_,u,b,w);ee.program=_;var le=_.getCompilerOptions();ee.compilerOptions=le,e.outFile(le)||(ee.semanticDiagnosticsPerFile=new e.Map),ee.changedFilesSet=new e.Set;var ie=e.BuilderState.canReuseOldState(ee.referencedMap,b),W=ie?b.compilerOptions:void 0,ge=ie&&b.semanticDiagnosticsPerFile&&!!ee.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(le,W);if(ie){if(!b.currentChangedFilePath){var fe=b.currentAffectedFilesSignatures;e.Debug.assert(!b.affectedFiles&&(!fe||!fe.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var A=b.changedFilesSet;ge&&e.Debug.assert(!A||!e.forEachKey(A,function(Ie){return b.semanticDiagnosticsPerFile.has(Ie)}),"Semantic diagnostics shouldnt be available for changed files"),A==null||A.forEach(function(Ie){return ee.changedFilesSet.add(Ie)}),!e.outFile(le)&&b.affectedFilesPendingEmit&&(ee.affectedFilesPendingEmit=b.affectedFilesPendingEmit.slice(),ee.affectedFilesPendingEmitKind=b.affectedFilesPendingEmitKind&&new e.Map(b.affectedFilesPendingEmitKind),ee.affectedFilesPendingEmitIndex=b.affectedFilesPendingEmitIndex,ee.seenAffectedFiles=new e.Set)}var X=ee.referencedMap,re=ie?b.referencedMap:void 0,ve=ge&&!le.skipLibCheck==!W.skipLibCheck,ke=ve&&!le.skipDefaultLibCheck==!W.skipDefaultLibCheck;return ee.fileInfos.forEach(function(Ie,Je){var je,fn;if(!ie||!(je=b.fileInfos.get(Je))||je.version!==Ie.version||!a(fn=X&&X.get(Je),re&&re.get(Je))||fn&&e.forEachKey(fn,function(Ne){return!ee.fileInfos.has(Ne)&&b.fileInfos.has(Ne)}))ee.changedFilesSet.add(Je);else if(ge){var ze=_.getSourceFileByPath(Je);if(ze.isDeclarationFile&&!ve||ze.hasNoDefaultLib&&!ke)return;var Ve=b.semanticDiagnosticsPerFile.get(Je);Ve&&(ee.semanticDiagnosticsPerFile.set(Je,b.hasReusableDiagnostic?g(Ve,_,u):Ve),ee.semanticDiagnosticsFromOldState||(ee.semanticDiagnosticsFromOldState=new e.Set),ee.semanticDiagnosticsFromOldState.add(Je))}}),ie&&e.forEachEntry(b.fileInfos,function(Ie,Je){return Ie.affectsGlobalScope&&!ee.fileInfos.has(Je)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(ee,_,void 0).forEach(function(Ie){return ee.changedFilesSet.add(Ie.resolvedPath)}):W&&!e.outFile(le)&&e.compilerOptionsAffectEmit(le,W)&&(_.getSourceFiles().forEach(function(Ie){return G(ee,Ie.resolvedPath,1)}),e.Debug.assert(!ee.seenAffectedFiles||!ee.seenAffectedFiles.size),ee.seenAffectedFiles=ee.seenAffectedFiles||new e.Set),ee.buildInfoEmitPending=!!ee.changedFilesSet.size,ee}function g(_,u,b){if(!_.length)return e.emptyArray;var w=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(u.getCompilerOptions()),u.getCurrentDirectory()));return _.map(function(le){var ie=t(le,u,ee);ie.reportsUnnecessary=le.reportsUnnecessary,ie.reportsDeprecated=le.reportDeprecated,ie.source=le.source,ie.skippedOn=le.skippedOn;var W=le.relatedInformation;return ie.relatedInformation=W?W.length?W.map(function(ge){return t(ge,u,ee)}):[]:void 0,ie});function ee(le){return e.toPath(le,w,b)}}function t(_,u,b){var w=_.file;return Nt(Nt({},_),{file:w?u.getSourceFileByPath(b(w)):void 0})}function m(_){e.BuilderState.releaseCache(_),_.program=void 0}function N(_){var u=e.BuilderState.clone(_);return u.semanticDiagnosticsPerFile=_.semanticDiagnosticsPerFile&&new e.Map(_.semanticDiagnosticsPerFile),u.changedFilesSet=new e.Set(_.changedFilesSet),u.affectedFiles=_.affectedFiles,u.affectedFilesIndex=_.affectedFilesIndex,u.currentChangedFilePath=_.currentChangedFilePath,u.currentAffectedFilesSignatures=_.currentAffectedFilesSignatures&&new e.Map(_.currentAffectedFilesSignatures),u.currentAffectedFilesExportedModulesMap=_.currentAffectedFilesExportedModulesMap&&new e.Map(_.currentAffectedFilesExportedModulesMap),u.seenAffectedFiles=_.seenAffectedFiles&&new e.Set(_.seenAffectedFiles),u.cleanedDiagnosticsOfLibFiles=_.cleanedDiagnosticsOfLibFiles,u.semanticDiagnosticsFromOldState=_.semanticDiagnosticsFromOldState&&new e.Set(_.semanticDiagnosticsFromOldState),u.program=_.program,u.compilerOptions=_.compilerOptions,u.affectedFilesPendingEmit=_.affectedFilesPendingEmit&&_.affectedFilesPendingEmit.slice(),u.affectedFilesPendingEmitKind=_.affectedFilesPendingEmitKind&&new e.Map(_.affectedFilesPendingEmitKind),u.affectedFilesPendingEmitIndex=_.affectedFilesPendingEmitIndex,u.seenEmittedFiles=_.seenEmittedFiles&&new e.Map(_.seenEmittedFiles),u.programEmitComplete=_.programEmitComplete,u}function D(_,u){e.Debug.assert(!u||!_.affectedFiles||_.affectedFiles[_.affectedFilesIndex-1]!==u||!_.semanticDiagnosticsPerFile.has(u.resolvedPath))}function c(_,u,b){for(;;){var w=_.affectedFiles;if(w){for(var ee=_.seenAffectedFiles,le=_.affectedFilesIndex;le0;){var le=ee.pop();if(!w.has(le)){w.set(le,!0);var ie=b(_,le);if(ie&&E(_,le)){var W=e.Debug.checkDefined(_.program).getSourceFileByPath(le);ee.push.apply(ee,e.BuilderState.getReferencedByPaths(_,W.resolvedPath))}}}}e.Debug.assert(!!_.currentAffectedFilesExportedModulesMap);var ge=new e.Set;e.forEachEntry(_.currentAffectedFilesExportedModulesMap,function(fe,A){return fe&&fe.has(u.resolvedPath)&&I(_,A,ge,b)})||e.forEachEntry(_.exportedModulesMap,function(fe,A){return!_.currentAffectedFilesExportedModulesMap.has(A)&&fe.has(u.resolvedPath)&&I(_,A,ge,b)})}}function I(_,u,b,w){return e.forEachEntry(_.referencedMap,function(ee,le){return ee.has(u)&&j(_,le,b,w)})}function j(_,u,b,w){return e.tryAddToSet(b,u)?w(_,u)||(e.Debug.assert(!!_.currentAffectedFilesExportedModulesMap),e.forEachEntry(_.currentAffectedFilesExportedModulesMap,function(ee,le){return ee&&ee.has(u)&&j(_,le,b,w)}))||e.forEachEntry(_.exportedModulesMap,function(ee,le){return!_.currentAffectedFilesExportedModulesMap.has(le)&&ee.has(u)&&j(_,le,b,w)})?!0:!!e.forEachEntry(_.referencedMap,function(ee,le){return ee.has(u)&&!b.has(le)&&w(_,le)}):!1}function Y(_,u,b,w,ee){ee?_.buildInfoEmitPending=!1:u===_.program?(_.changedFilesSet.clear(),_.programEmitComplete=!0):(_.seenAffectedFiles.add(u.resolvedPath),b!==void 0&&(_.seenEmittedFiles||(_.seenEmittedFiles=new e.Map)).set(u.resolvedPath,b),w?(_.affectedFilesPendingEmitIndex++,_.buildInfoEmitPending=!0):_.affectedFilesIndex++)}function L(_,u,b){return Y(_,b),{result:u,affected:b}}function k(_,u,b,w,ee,le){return Y(_,b,w,ee,le),{result:u,affected:b}}function h(_,u,b){return e.concatenate(M(_,u,b),e.Debug.checkDefined(_.program).getProgramDiagnostics(u))}function M(_,u,b){var w=u.resolvedPath;if(_.semanticDiagnosticsPerFile){var ee=_.semanticDiagnosticsPerFile.get(w);if(ee)return e.filterSemanticDiagnotics(ee,_.compilerOptions)}var le=e.Debug.checkDefined(_.program).getBindAndCheckDiagnostics(u,b);return _.semanticDiagnosticsPerFile&&_.semanticDiagnosticsPerFile.set(w,le),e.filterSemanticDiagnotics(le,_.compilerOptions)}function O(_,u){if(e.outFile(_.compilerOptions))return;var b=e.Debug.checkDefined(_.program).getCurrentDirectory(),w=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(_.compilerOptions),b)),ee=[],le=new e.Map,ie,W,ge=e.arrayFrom(_.fileInfos.entries(),function(ye){var on=ye[0],Te=ye[1],tn=de(on);e.Debug.assert(ee[tn-1]===be(on));var Fe=_.currentAffectedFilesSignatures&&_.currentAffectedFilesSignatures.get(on),Ke=Fe??Te.signature;return Te.version===Ke?Te.affectsGlobalScope?{version:Te.version,signature:void 0,affectsGlobalScope:!0}:Te.version:Ke!==void 0?Fe===void 0?Te:{version:Te.version,signature:Fe,affectsGlobalScope:Te.affectsGlobalScope}:{version:Te.version,signature:!1,affectsGlobalScope:Te.affectsGlobalScope}}),fe;_.referencedMap&&(fe=e.arrayFrom(_.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(ye){return[de(ye),Ce(_.referencedMap.get(ye))]}));var A;_.exportedModulesMap&&(A=e.mapDefined(e.arrayFrom(_.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(ye){var on=_.currentAffectedFilesExportedModulesMap&&_.currentAffectedFilesExportedModulesMap.get(ye);if(on===void 0)return[de(ye),Ce(_.exportedModulesMap.get(ye))];if(on)return[de(ye),Ce(on)]}));var X;if(_.semanticDiagnosticsPerFile)for(var re=0,ve=e.arrayFrom(_.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);re1||t.charCodeAt(0)!==47;if(c&&t.search(/[a-zA-Z]:/)!==0&&D.search(/[a-zA-z]\$\//)===0){if(N=t.indexOf(e.directorySeparator,N+1),N===-1)return!1;D=t.substring(m+D.length,N+1)}if(c&&D.search(/users\//i)!==0)return!0;for(var x=N+1,se=2;se>0;se--)if(x=t.indexOf(e.directorySeparator,x)+1,x===0)return!1;return!0}e.canWatchDirectory=p;function g(t,m,N){var D,c,x,se=e.createMultiMap(),z=[],ue=e.createMultiMap(),E=!1,C,I,j,Y=e.memoize(function(){return t.getCurrentDirectory()}),L=t.getCachedDirectoryStructureHost(),k=new e.Map,h=e.createCacheWithRedirects(),M=e.createCacheWithRedirects(),O=e.createModuleResolutionCache(Y(),t.getCanonicalFileName,void 0,h,M),H=new e.Map,$=e.createCacheWithRedirects(),Z=e.createTypeReferenceDirectiveResolutionCache(Y(),t.getCanonicalFileName,void 0,O.getPackageJsonInfoCache(),$),B=[".ts",".tsx",".js",".jsx",".json"],U=new e.Map,K=new e.Map,T=m&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(m,Y())),G=T&&t.toPath(T),v=G!==void 0?G.split(e.directorySeparator).length:0,R=new e.Map;return{startRecordingFilesWithChangedResolutions:w,finishRecordingFilesWithChangedResolutions:ee,startCachingPerDirectoryResolution:W,finishCachingPerDirectoryResolution:ge,resolveModuleNames:ve,getResolvedModuleWithFailedLookupLocationsFromCache:ke,resolveTypeReferenceDirectives:re,removeResolutionsFromProjectReferenceRedirects:Te,removeResolutionsOfFile:tn,hasChangedAutomaticTypeDirectiveNames:function(){return E},invalidateResolutionOfFile:Ke,invalidateResolutionsOfFailedLookupLocations:xn,setFilesWithInvalidatedNonRelativeUnresolvedImports:rn,createHasInvalidatedResolution:ie,isFileWithInvalidatedNonRelativeUnresolvedImports:le,updateTypeRootsWatch:yn,closeTypeRootsWatch:Ge,clear:b};function F(oe){return oe.resolvedModule}function _(oe){return oe.resolvedTypeReferenceDirective}function u(oe,J){return oe===void 0||J.length<=oe.length?!1:e.startsWith(J,oe)&&J[oe.length]===e.directorySeparator}function b(){e.clearMap(K,e.closeFileWatcherOf),U.clear(),se.clear(),Ge(),k.clear(),H.clear(),ue.clear(),z.length=0,C=void 0,I=void 0,j=void 0,W(),E=!1}function w(){D=[]}function ee(){var oe=D;return D=void 0,oe}function le(oe){if(!x)return!1;var J=x.get(oe);return!!J&&!!J.length}function ie(oe){if(xn(),oe)return c=void 0,e.returnTrue;var J=c;return c=void 0,function(te){return!!J&&J.has(te)||le(te)}}function W(){O.clear(),Z.clear(),se.forEach(Ne),se.clear()}function ge(){x=void 0,W(),K.forEach(function(oe,J){oe.refCount===0&&(K.delete(J),oe.watcher.close())}),E=!1}function fe(oe,J,te,me,xe){var P,Se=e.resolveModuleName(oe,J,te,me,O,xe);if(!t.getGlobalCache)return Se;var Ye=t.getGlobalCache();if(Ye!==void 0&&!e.isExternalModuleNameRelative(oe)&&!(Se.resolvedModule&&e.extensionIsTS(Se.resolvedModule.extension))){var an=e.loadModuleFromGlobalCache(e.Debug.checkDefined(t.globalCacheResolutionModuleName)(oe),t.projectName,te,me,Ye,O),Sn=an.resolvedModule,Xn=an.failedLookupLocations;if(Sn)return Se.resolvedModule=Sn,(P=Se.failedLookupLocations).push.apply(P,Xn),Se}return Se}function A(oe,J,te,me,xe){return e.resolveTypeReferenceDirective(oe,J,te,me,xe,Z)}function X(oe){var J,te=oe.names,me=oe.containingFile,xe=oe.redirectedReference,P=oe.cache,Se=oe.perDirectoryCacheWithRedirects,Ye=oe.loader,an=oe.getResolutionWithResolvedFileName,Sn=oe.shouldRetryResolution,Xn=oe.reusedNames,wn=oe.logChanges,qn=t.toPath(me),yr=P.get(qn)||P.set(qn,new e.Map).get(qn),Vr=e.getDirectoryPath(qn),Me=Se.getOrCreateMapOfCacheRedirects(xe),We=Me.get(Vr);We||(We=new e.Map,Me.set(Vr,We));for(var Tn=[],Nn=t.getCompilationSettings(),Vn=wn&&le(qn),Hn=t.getCurrentProgram(),kr=Hn&&Hn.getResolvedProjectReferenceToRedirect(me),kn=kr?!xe||xe.sourceFile.path!==kr.sourceFile.path:!!xe,Sr=new e.Map,Cr=0,Qe=te;Crv+1?{dir:me.slice(0,v+1).join(e.directorySeparator),dirPath:te.slice(0,v+1).join(e.directorySeparator)}:{dir:T,dirPath:G,nonRecursive:!1}}return je(e.getDirectoryPath(e.getNormalizedAbsolutePath(oe,Y())),e.getDirectoryPath(J))}function je(oe,J){for(;e.pathContainsNodeModules(J);)oe=e.getDirectoryPath(oe),J=e.getDirectoryPath(J);if(e.isNodeModulesDirectory(J))return p(e.getDirectoryPath(J))?{dir:oe,dirPath:J}:void 0;var te=!0,me,xe;if(G!==void 0)for(;!u(J,G);){var P=e.getDirectoryPath(J);if(P===J)break;te=!1,me=J,xe=oe,J=P,oe=e.getDirectoryPath(oe)}return p(J)?{dir:xe||oe,dirPath:me||J,nonRecursive:te}:void 0}function fn(oe){return e.fileExtensionIsOneOf(oe,B)}function ze(oe,J,te,me){if(J.refCount)J.refCount++,e.Debug.assertDefined(J.files);else{J.refCount=1,e.Debug.assert(e.length(J.files)===0),e.isExternalModuleNameRelative(oe)?Ve(J):se.add(oe,J);var xe=me(J);xe&&xe.resolvedFileName&&ue.add(t.toPath(xe.resolvedFileName),J)}(J.files||(J.files=[])).push(te)}function Ve(oe){e.Debug.assert(!!oe.refCount);var J=oe.failedLookupLocations;if(J.length){z.push(oe);for(var te=!1,me=0,xe=J;me1),U.set(Sn,qn-1))),wn===G?P=!0:Ce(wn)}}P&&Ce(G)}}}function Ce(oe){var J=K.get(oe);J.refCount--}function ye(oe,J,te){return t.watchDirectoryOfFailedLookupLocation(oe,function(me){var xe=t.toPath(me);L&&L.addOrDeleteFileOrDirectory(me,xe),vn(xe,J===xe)},te?0:1)}function on(oe,J,te){var me=oe.get(J);me&&(me.forEach(function(xe){return de(xe,J,te)}),oe.delete(J))}function Te(oe){if(e.fileExtensionIs(oe,".json")){var J=t.getCurrentProgram();if(J){var te=J.getResolvedProjectReferenceByPath(oe);te&&te.commandLine.fileNames.forEach(function(me){return tn(t.toPath(me))})}}}function tn(oe){on(k,oe,F),on(H,oe,_)}function Fe(oe,J){if(!oe)return!1;for(var te=!1,me=0,xe=oe;me1&&re.sort(I),ee.push.apply(ee,re));var ve=e.getDirectoryPath(A);if(ve===A)return ie=A,"break";A=ve,ie=A},ie,W=e.getDirectoryPath(G);w.size!==0;){var ge=le(W);if(W=ie,ge==="break")break}if(w.size){var fe=e.arrayFrom(w.values());fe.length>1&&fe.sort(I),ee.push.apply(ee,fe)}return _&&_.set(G,e.toPath(v,R.getCurrentDirectory(),u),ee),ee}function k(G,v){var R,F=(R=G.declarations)===null||R===void 0?void 0:R.find(function(b){return e.isNonGlobalAmbientModule(b)&&(!e.isExternalModuleAugmentation(b)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(b.name)))});if(F)return F.name.text;var _=e.mapDefined(G.declarations,function(b){var w,ee,le,ie;if(!e.isModuleDeclaration(b))return;var W=X(b);if(!(!((w=W==null?void 0:W.parent)===null||w===void 0)&&w.parent&&e.isModuleBlock(W.parent)&&e.isAmbientModule(W.parent.parent)&&e.isSourceFile(W.parent.parent.parent)))return;var ge=(ie=(le=(ee=W.parent.parent.symbol.exports)===null||ee===void 0?void 0:ee.get("export="))===null||le===void 0?void 0:le.valueDeclaration)===null||ie===void 0?void 0:ie.expression;if(!ge)return;var fe=v.getSymbolAtLocation(ge);if(!fe)return;var A=(fe==null?void 0:fe.flags)&2097152?v.getAliasedSymbol(fe):fe;if(A===b.symbol)return W.parent.parent;function X(re){for(;re.flags&4;)re=re.parent;return re}}),u=_[0];if(u)return u.name.text}function h(G,v,R){for(var F in R)for(var _=0,u=R[F];_=le.length+ie.length&&e.startsWith(v,le)&&e.endsWith(v,ie)||!ie&&v===e.removeTrailingDirectorySeparator(le)){var W=v.substr(le.length,v.length-ie.length-le.length);return F.replace("*",W)}}else if(w===v||w===G)return F}}function M(G,v,R,F,_,u){var b=Z(v,G,F);if(b!==void 0){var w=Z(R,G,F),ee=w!==void 0?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(w,b,F)):b;return e.getEmitModuleResolutionKind(u)===e.ModuleResolutionKind.NodeJs?B(ee,_,u):e.removeFileExtension(ee)}}function O(G,v,R,F,_){var u=G.path,b=G.isRedirect,w=v.getCanonicalFileName,ee=v.sourceDirectory;if(!R.fileExists||!R.readFile)return;var le=$(u);if(!le)return;var ie=u,W=!1;if(!_)for(var ge=le.packageRootIndex,fe=void 0;;){var A=je(ge),X=A.moduleFileToTry,re=A.packageRootPath;if(re){ie=re,W=!0;break}if(fe||(fe=X),ge=u.indexOf(e.directorySeparator,ge+1),ge===-1){ie=fn(fe);break}}if(b&&!W)return;var ve=R.getGlobalTypingsCacheLocation&&R.getGlobalTypingsCacheLocation(),ke=w(ie.substring(0,le.topLevelNodeModulesIndex));if(!(e.startsWith(ee,ke)||ve&&e.startsWith(w(ve),ke)))return;var Ie=ie.substring(le.topLevelPackageNameIndex+1),Je=e.getPackageNameFromTypesPackageName(Ie);return e.getEmitModuleResolutionKind(F)!==e.ModuleResolutionKind.NodeJs&&Je===Ie?void 0:Je;function je(ze){var Ve=u.substring(0,ze),Ne=e.combinePaths(Ve,"package.json"),be=u;if(R.fileExists(Ne)){var de=JSON.parse(R.readFile(Ne)),Ce=de.typesVersions?e.getPackageJsonTypesVersionsPaths(de.typesVersions):void 0;if(Ce){var ye=u.slice(Ve.length+1),on=h(e.removeFileExtension(ye),B(ye,0,F),Ce.paths);on!==void 0&&(be=e.combinePaths(Ve,on))}var Te=de.typings||de.types||de.main;if(e.isString(Te)){var tn=e.toPath(Te,Ve,w);if(e.removeFileExtension(tn)===e.removeFileExtension(w(be)))return{packageRootPath:Ve,moduleFileToTry:be}}}return{moduleFileToTry:be}}function fn(ze){var Ve=e.removeFileExtension(ze);return w(Ve.substring(le.fileNameIndex))==="/index"&&!H(R,Ve.substring(0,le.fileNameIndex))?Ve.substring(0,le.fileNameIndex):Ve}}function H(G,v){if(G.fileExists)for(var R=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),F=0,_=R;F<_.length;F++){var u=_[F],b=v+u;if(G.fileExists(b))return b}}function $(G){var v=0,R=0,F=0,_=0,u;(function(le){le[le.BeforeNodeModules=0]="BeforeNodeModules",le[le.NodeModules=1]="NodeModules",le[le.Scope=2]="Scope",le[le.PackageContent=3]="PackageContent"})(u||(u={}));for(var b=0,w=0,ee=0;w>=0;)switch(b=w,w=G.indexOf("/",b+1),ee){case 0:G.indexOf(e.nodeModulesPathPart,b)===b&&(v=b,R=w,ee=1);break;case 1:case 2:ee===1&&G.charAt(b+1)==="@"?ee=2:(F=w,ee=3);break;case 3:G.indexOf(e.nodeModulesPathPart,b)===b?ee=1:ee=3;break}return _=b,ee>1?{topLevelNodeModulesIndex:v,topLevelPackageNameIndex:R,packageRootIndex:F,fileNameIndex:_}:void 0}function Z(G,v,R){return e.firstDefined(v,function(F){var _=K(G,F,R);return T(_)?void 0:_})}function B(G,v,R){if(e.fileExtensionIs(G,".json"))return G;var F=e.removeFileExtension(G);switch(v){case 0:return e.removeSuffix(F,"/index");case 1:return F;case 2:return F+U(G,R);default:return e.Debug.assertNever(v)}}function U(G,v){var R=e.extensionFromPath(G);switch(R){case".ts":case".d.ts":return".js";case".tsx":return v.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return R;case".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported:: FileName:: "+G);default:return e.Debug.assertNever(R)}}function K(G,v,R){var F=e.getRelativePathToDirectoryOrUrl(v,G,v,R,!1);return e.isRootedDiskPath(F)?void 0:F}function T(G){return e.startsWith(G,"..")}})(e.moduleSpecifiers||(e.moduleSpecifiers={}))})(un||(un={}));var un;(function(e){var a=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function p(v,R){var F=v===e.sys?a:{getCurrentDirectory:function(){return v.getCurrentDirectory()},getNewLine:function(){return v.newLine},getCanonicalFileName:e.createGetCanonicalFileName(v.useCaseSensitiveFileNames)};if(!R)return function(u){return v.write(e.formatDiagnostic(u,F))};var _=new Array(1);return function(u){_[0]=u,v.write(e.formatDiagnosticsWithColorAndContext(_,F)+F.getNewLine()),_[0]=void 0}}e.createDiagnosticReporter=p;function g(v,R,F){return v.clearScreen&&!F.preserveWatchOutput&&!F.extendedDiagnostics&&!F.diagnostics&&e.contains(e.screenStartingMessageCodes,R.code)?(v.clearScreen(),!0):!1}e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code];function t(v,R){return e.contains(e.screenStartingMessageCodes,v.code)?R+R:R}function m(v){return v.now?v.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):new Date().toLocaleTimeString()}e.getLocaleTimeString=m;function N(v,R){return R?function(F,_,u){g(v,F,u);var b="["+e.formatColorAndReset(m(v),e.ForegroundColorEscapeSequences.Grey)+"] ";b+=""+e.flattenDiagnosticMessageText(F.messageText,v.newLine)+(_+_),v.write(b)}:function(F,_,u){var b="";g(v,F,u)||(b+=_),b+=m(v)+" - ",b+=""+e.flattenDiagnosticMessageText(F.messageText,v.newLine)+t(F,_),v.write(b)}}e.createWatchStatusReporter=N;function D(v,R,F,_,u,b){var w=u;w.onUnRecoverableConfigFileDiagnostic=function(le){return U(u,b,le)};var ee=e.getParsedCommandLineOfConfigFile(v,R,w,F,_);return w.onUnRecoverableConfigFileDiagnostic=void 0,ee}e.parseConfigFileWithSystem=D;function c(v){return e.countWhere(v,function(R){return R.category===e.DiagnosticCategory.Error})}e.getErrorCountForSummary=c;function x(v){return v===1?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}e.getWatchErrorSummaryDiagnosticMessage=x;function se(v,R){if(v===0)return"";var F=e.createCompilerDiagnostic(v===1?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,v);return""+R+e.flattenDiagnosticMessageText(F.messageText,R)+R+R}e.getErrorSummaryText=se;function z(v){return!!v.getState}e.isBuilderProgram=z;function ue(v,R){var F=v.getCompilerOptions();F.explainFiles?E(z(v)?v.getProgram():v,R):(F.listFiles||F.listFilesOnly)&&e.forEach(v.getSourceFiles(),function(_){R(_.fileName)})}e.listFiles=ue;function E(v,R){for(var F,_,u=v.getFileIncludeReasons(),b=e.createGetCanonicalFileName(v.useCaseSensitiveFileNames()),w=function(W){return e.convertToRelativePath(W,v.getCurrentDirectory(),b)},ee=0,le=v.getSourceFiles();ee0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:W.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.emitFilesAndReportErrorsAndGetExitStatus=h,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher};function M(v,R){v===void 0&&(v=e.sys);var F=R||N(v);return{onWatchStatusChange:F,watchFile:e.maybeBind(v,v.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(v,v.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(v,v.setTimeout)||e.noop,clearTimeout:e.maybeBind(v,v.clearTimeout)||e.noop}}e.createWatchHost=M,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"};function O(v,R){var F=v.trace?R.extendedDiagnostics?e.WatchLogLevel.Verbose:R.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,_=F!==e.WatchLogLevel.None?function(b){return v.trace(b)}:e.noop,u=e.getWatchFactory(v,F,_);return u.writeLog=_,u}e.createWatchFactory=O;function H(v,R,F){F===void 0&&(F=v);var _=v.useCaseSensitiveFileNames(),u=e.memoize(function(){return v.getNewLine()});return{getSourceFile:function(w,ee,le){var ie;try{e.performance.mark("beforeIORead"),ie=v.readFile(w,R().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(W){le&&le(W.message),ie=""}return ie!==void 0?e.createSourceFile(w,ie,ee):void 0},getDefaultLibLocation:e.maybeBind(v,v.getDefaultLibLocation),getDefaultLibFileName:function(w){return v.getDefaultLibFileName(w)},writeFile:b,getCurrentDirectory:e.memoize(function(){return v.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return _},getCanonicalFileName:e.createGetCanonicalFileName(_),getNewLine:function(){return e.getNewLineCharacter(R(),u)},fileExists:function(w){return v.fileExists(w)},readFile:function(w){return v.readFile(w)},trace:e.maybeBind(v,v.trace),directoryExists:e.maybeBind(F,F.directoryExists),getDirectories:e.maybeBind(F,F.getDirectories),realpath:e.maybeBind(v,v.realpath),getEnvironmentVariable:e.maybeBind(v,v.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(v,v.createHash),readDirectory:e.maybeBind(v,v.readDirectory),disableUseFileVersionAsSignature:v.disableUseFileVersionAsSignature};function b(w,ee,le,ie){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(w,ee,le,function(W,ge,fe){return v.writeFile(W,ge,fe)},function(W){return v.createDirectory(W)},function(W){return v.directoryExists(W)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(W){ie&&ie(W.message)}}}e.createCompilerHostFromProgramHost=H;function $(v,R){var F=v.getSourceFile,_=e.maybeBind(R,R.createHash)||e.generateDjb2Hash;v.getSourceFile=function(){for(var u=[],b=0;bEe?oe:Ee}function D(Ee){return e.fileExtensionIs(Ee,".d.ts")}function c(Ee){return!!Ee&&!!Ee.buildOrder}e.isCircularBuildOrder=c;function x(Ee){return c(Ee)?Ee.buildOrder:Ee}e.getBuildOrderFromAnyBuildOrder=x;function se(Ee,oe){return function(J){var te=oe?"["+e.formatColorAndReset(e.getLocaleTimeString(Ee),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(Ee)+" - ";te+=""+e.flattenDiagnosticMessageText(J.messageText,Ee.newLine)+(Ee.newLine+Ee.newLine),Ee.write(te)}}e.createBuilderStatusReporter=se;function z(Ee,oe,J,te){var me=e.createProgramHost(Ee,oe);return me.getModifiedTime=Ee.getModifiedTime?function(xe){return Ee.getModifiedTime(xe)}:e.returnUndefined,me.setModifiedTime=Ee.setModifiedTime?function(xe,P){return Ee.setModifiedTime(xe,P)}:e.noop,me.deleteFile=Ee.deleteFile?function(xe){return Ee.deleteFile(xe)}:e.noop,me.reportDiagnostic=J||e.createDiagnosticReporter(Ee),me.reportSolutionBuilderStatus=te||se(Ee),me.now=e.maybeBind(Ee,Ee.now),me}function ue(Ee,oe,J,te,me){Ee===void 0&&(Ee=e.sys);var xe=z(Ee,oe,J,te);return xe.reportErrorSummary=me,xe}e.createSolutionBuilderHost=ue;function E(Ee,oe,J,te,me){Ee===void 0&&(Ee=e.sys);var xe=z(Ee,oe,J,te),P=e.createWatchHost(Ee,me);return e.copyProperties(xe,P),xe}e.createSolutionBuilderWithWatchHost=E;function C(Ee){var oe={};return e.commonOptionsWithBuild.forEach(function(J){e.hasProperty(Ee,J.name)&&(oe[J.name]=Ee[J.name])}),oe}function I(Ee,oe,J){return tn(!1,Ee,oe,J)}e.createSolutionBuilder=I;function j(Ee,oe,J,te){return tn(!0,Ee,oe,J,te)}e.createSolutionBuilderWithWatch=j;function Y(Ee,oe,J,te,me){var xe=oe,P=oe,Se=xe.getCurrentDirectory(),Ye=e.createGetCanonicalFileName(xe.useCaseSensitiveFileNames()),an=C(te),Sn=e.createCompilerHostFromProgramHost(xe,function(){return Nn.projectCompilerOptions});e.setGetSourceFileAsHashVersioned(Sn,xe),Sn.getParsedCommandLine=function(Vn){return O(Nn,Vn,k(Nn,Vn))},Sn.resolveModuleNames=e.maybeBind(xe,xe.resolveModuleNames),Sn.resolveTypeReferenceDirectives=e.maybeBind(xe,xe.resolveTypeReferenceDirectives);var Xn=Sn.resolveModuleNames?void 0:e.createModuleResolutionCache(Se,Ye),wn=Sn.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(Se,Ye,void 0,Xn==null?void 0:Xn.getPackageJsonInfoCache());if(!Sn.resolveModuleNames){var qn=function(Vn,Hn,kr){return e.resolveModuleName(Vn,Hn,Nn.projectCompilerOptions,Sn,Xn,kr).resolvedModule};Sn.resolveModuleNames=function(Vn,Hn,kr,kn){return e.loadWithLocalCache(e.Debug.checkEachDefined(Vn),Hn,kn,qn)}}if(!Sn.resolveTypeReferenceDirectives){var yr=function(Vn,Hn,kr){return e.resolveTypeReferenceDirective(Vn,Hn,Nn.projectCompilerOptions,Sn,kr,Nn.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};Sn.resolveTypeReferenceDirectives=function(Vn,Hn,kr){return e.loadWithLocalCache(e.Debug.checkEachDefined(Vn),Hn,kr,yr)}}var Vr=e.createWatchFactory(P,te),Me=Vr.watchFile,We=Vr.watchDirectory,Tn=Vr.writeLog,Nn={host:xe,hostWithWatch:P,currentDirectory:Se,getCanonicalFileName:Ye,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(xe),write:e.maybeBind(xe,xe.trace),options:te,baseCompilerOptions:an,rootNames:J,baseWatchOptions:me,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:Sn,moduleResolutionCache:Xn,typeReferenceDirectiveResolutionCache:wn,buildOrder:void 0,readFileWithCache:function(Vn){return xe.readFile(Vn)},projectCompilerOptions:an,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:Ee,currentInvalidatedProject:void 0,watch:Ee,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:Me,watchDirectory:We,writeLog:Tn};return Nn}function L(Ee,oe){return e.toPath(oe,Ee.currentDirectory,Ee.getCanonicalFileName)}function k(Ee,oe){var J=Ee.resolvedConfigFilePaths,te=J.get(oe);if(te!==void 0)return te;var me=L(Ee,oe);return J.set(oe,me),me}function h(Ee){return!!Ee.options}function M(Ee,oe){var J=Ee.configFileCache.get(oe);return J&&h(J)?J:void 0}function O(Ee,oe,J){var te=Ee.configFileCache,me=te.get(J);if(me)return h(me)?me:void 0;var xe,P=Ee.parseConfigFileHost,Se=Ee.baseCompilerOptions,Ye=Ee.baseWatchOptions,an=Ee.extendedConfigCache,Sn=Ee.host,Xn;return Sn.getParsedCommandLine?(Xn=Sn.getParsedCommandLine(oe),Xn||(xe=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,oe))):(P.onUnRecoverableConfigFileDiagnostic=function(wn){return xe=wn},Xn=e.getParsedCommandLineOfConfigFile(oe,Se,P,an,Ye),P.onUnRecoverableConfigFileDiagnostic=e.noop),te.set(J,Xn||xe),Xn}function H(Ee,oe){return e.resolveConfigFileProjectName(e.resolvePath(Ee.currentDirectory,oe))}function $(Ee,oe){for(var J=new e.Map,te=new e.Map,me=[],xe,P,Se=0,Ye=oe;SeBn)}}}function ee(Ee,oe,J){var te=Ee.options;return oe.type!==e.UpToDateStatusType.OutOfDateWithPrepend||te.force?!0:J.fileNames.length===0||!!e.getConfigFileParsingDiagnostics(J).length||!e.isIncrementalCompilation(J.options)}function le(Ee,oe,J){if(Ee.projectPendingBuild.size&&!c(oe)){if(Ee.currentInvalidatedProject)return e.arrayIsEqualTo(Ee.currentInvalidatedProject.buildOrder,oe)?Ee.currentInvalidatedProject:void 0;for(var te=Ee.options,me=Ee.projectPendingBuild,xe=0;xexe&&(me=an,xe=Sn)}}if(!oe.fileNames.length&&!e.canJsonReportNoInputFiles(oe.raw))return{type:e.UpToDateStatusType.ContainerOnly};var Xn=e.getAllProjectOutputs(oe,!P.useCaseSensitiveFileNames()),wn="(none)",qn=p,yr="(none)",Vr=a,Me,We=a,Tn=!1;if(!te)for(var Nn=0,Vn=Xn;NnVr&&(Vr=kr,yr=Hn),D(Hn)){var kn=e.getModifiedTime(P,Hn);We=N(We,kn)}}var Sr=!1,Cr=!1,Qe;if(oe.projectReferences){Ee.projectStatus.set(J,{type:e.UpToDateStatusType.ComputingUpstream});for(var Bn=0,bn=oe.projectReferences;Bn=0}a.hasArgument=p;function g(m){var N=e.sys.args.indexOf(m);return N>=0&&ND)return 2;if(ue.charCodeAt(0)===46)return 3;if(ue.charCodeAt(0)===95)return 4;if(E){var C=/^@([^/]+)\/([^/]+)$/.exec(ue);if(C){var I=x(C[1],!1);if(I!==0)return{name:C[1],isScopeName:!0,result:I};var j=x(C[2],!1);return j!==0?{name:C[2],isScopeName:!1,result:j}:0}}return encodeURIComponent(ue)!==ue?5:0}function se(ue,E){return typeof ue=="object"?z(E,ue.result,ue.name,ue.isScopeName):z(E,ue,E,!1)}a.renderPackageNameValidationFailure=se;function z(ue,E,C,I){var j=I?"Scope":"Package";switch(E){case 1:return"'"+ue+"':: "+j+" name '"+C+"' cannot be empty";case 2:return"'"+ue+"':: "+j+" name '"+C+"' should be less than "+D+" characters";case 3:return"'"+ue+"':: "+j+" name '"+C+"' cannot start with '.'";case 4:return"'"+ue+"':: "+j+" name '"+C+"' cannot start with '_'";case 5:return"'"+ue+"':: "+j+" name '"+C+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(E)}}})(e.JsTyping||(e.JsTyping={}))})(un||(un={}));var un;(function(e){(function(t){var m=function(){function D(c){this.text=c}return D.prototype.getText=function(c,x){return c===0&&x===this.text.length?this.text:this.text.substring(c,x)},D.prototype.getLength=function(){return this.text.length},D.prototype.getChangeRange=function(){},D}();function N(D){return new m(D)}t.fromString=N})(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(t){t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(t){t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(t){t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(t){t.Original="original",t.TwentyTwenty="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(t){t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={}));var a;(function(t){t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart"})(a=e.IndentStyle||(e.IndentStyle={}));var p;(function(t){t.Ignore="ignore",t.Insert="insert",t.Remove="remove"})(p=e.SemicolonPreference||(e.SemicolonPreference={}));function g(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` `,convertTabsToSpaces:!0,indentStyle:a.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:p.Ignore,trimTrailingWhitespace:!0}}e.getDefaultFormatCodeSettings=g,e.testFormatSettings=g(` `),function(t){t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(t){t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(t){t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(t){t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(t){t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(t){t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(t){t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(t){t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(t){t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))})(un||(un={}));var un;(function(e){e.scanner=e.createScanner(99,!0),function(ce){ce[ce.None=0]="None",ce[ce.Value=1]="Value",ce[ce.Type=2]="Type",ce[ce.Namespace=4]="Namespace",ce[ce.All=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={}));function a(ce){switch(ce.kind){case 250:return e.isInJSFile(ce)&&e.getJSDocEnumTag(ce)?7:1;case 161:case 199:case 164:case 163:case 289:case 290:case 166:case 165:case 167:case 168:case 169:case 252:case 209:case 210:case 288:case 281:return 1;case 160:case 254:case 255:case 178:return 2;case 335:return ce.name===void 0?3:2;case 292:case 253:return 3;case 257:return e.isAmbientModule(ce)||e.getModuleInstanceState(ce)===1?5:4;case 256:case 265:case 266:case 261:case 262:case 267:case 268:return 7;case 298:return 5}return 7}e.getMeaningFromDeclaration=a;function p(ce){return ce=xn(ce),ce.kind===298?1:ce.parent.kind===267||ce.parent.kind===273||ce.parent.kind===266||ce.parent.kind===263||e.isImportEqualsDeclaration(ce.parent)&&ce===ce.parent.name?7:t(ce)?g(ce):e.isDeclarationName(ce)?a(ce.parent):e.isEntityName(ce)&&(e.isJSDocNameReference(ce.parent)||e.isJSDocLink(ce.parent))?7:c(ce)?2:m(ce)?4:e.isTypeParameterDeclaration(ce.parent)?(e.Debug.assert(e.isJSDocTemplateTag(ce.parent.parent)),2):e.isLiteralTypeNode(ce.parent)?3:1}e.getMeaningFromLocation=p;function g(ce){var ln=ce.kind===158?ce:e.isQualifiedName(ce.parent)&&ce.parent.right===ce?ce.parent:void 0;return ln&&ln.parent.kind===261?7:4}function t(ce){for(;ce.parent.kind===158;)ce=ce.parent;return e.isInternalModuleImportEqualsDeclaration(ce.parent)&&ce.parent.moduleReference===ce}e.isInRightSideOfInternalImportEqualsDeclaration=t;function m(ce){return N(ce)||D(ce)}function N(ce){var ln=ce,pn=!0;if(ln.parent.kind===158){for(;ln.parent&&ln.parent.kind===158;)ln=ln.parent;pn=ln.right===ce}return ln.parent.kind===174&&!pn}function D(ce){var ln=ce,pn=!0;if(ln.parent.kind===202){for(;ln.parent&&ln.parent.kind===202;)ln=ln.parent;pn=ln.name===ce}if(!pn&&ln.parent.kind===224&&ln.parent.parent.kind===287){var $n=ln.parent.parent.parent;return $n.kind===253&&ln.parent.parent.token===116||$n.kind===254&&ln.parent.parent.token===93}return!1}function c(ce){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(ce)&&(ce=ce.parent),ce.kind){case 107:return!e.isExpressionNode(ce);case 188:return!0}switch(ce.parent.kind){case 174:return!0;case 196:return!ce.parent.isTypeOf;case 224:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(ce.parent)}return!1}function x(ce,ln,pn){return ln===void 0&&(ln=!1),pn===void 0&&(pn=!1),L(ce,e.isCallExpression,I,ln,pn)}e.isCallExpressionTarget=x;function se(ce,ln,pn){return ln===void 0&&(ln=!1),pn===void 0&&(pn=!1),L(ce,e.isNewExpression,I,ln,pn)}e.isNewExpressionTarget=se;function z(ce,ln,pn){return ln===void 0&&(ln=!1),pn===void 0&&(pn=!1),L(ce,e.isCallOrNewExpression,I,ln,pn)}e.isCallOrNewExpressionTarget=z;function ue(ce,ln,pn){return ln===void 0&&(ln=!1),pn===void 0&&(pn=!1),L(ce,e.isTaggedTemplateExpression,j,ln,pn)}e.isTaggedTemplateTag=ue;function E(ce,ln,pn){return ln===void 0&&(ln=!1),pn===void 0&&(pn=!1),L(ce,e.isDecorator,I,ln,pn)}e.isDecoratorTarget=E;function C(ce,ln,pn){return ln===void 0&&(ln=!1),pn===void 0&&(pn=!1),L(ce,e.isJsxOpeningLikeElement,Y,ln,pn)}e.isJsxOpeningLikeElementTagName=C;function I(ce){return ce.expression}function j(ce){return ce.tag}function Y(ce){return ce.tagName}function L(ce,ln,pn,$n,cn){var Ht=$n?h(ce):k(ce);return cn&&(Ht=e.skipOuterExpressions(Ht)),!!Ht&&!!Ht.parent&&ln(Ht.parent)&&pn(Ht.parent)===Ht}function k(ce){return K(ce)?ce.parent:ce}e.climbPastPropertyAccess=k;function h(ce){return K(ce)||T(ce)?ce.parent:ce}e.climbPastPropertyOrElementAccess=h;function M(ce,ln){for(;ce;){if(ce.kind===246&&ce.label.escapedText===ln)return ce.label;ce=ce.parent}}e.getTargetLabel=M;function O(ce,ln){return e.isPropertyAccessExpression(ce.expression)?ce.expression.name.text===ln:!1}e.hasPropertyAccessExpressionWithName=O;function H(ce){var ln;return e.isIdentifier(ce)&&((ln=e.tryCast(ce.parent,e.isBreakOrContinueStatement))===null||ln===void 0?void 0:ln.label)===ce}e.isJumpStatementTarget=H;function $(ce){var ln;return e.isIdentifier(ce)&&((ln=e.tryCast(ce.parent,e.isLabeledStatement))===null||ln===void 0?void 0:ln.label)===ce}e.isLabelOfLabeledStatement=$;function Z(ce){return $(ce)||H(ce)}e.isLabelName=Z;function B(ce){var ln;return((ln=e.tryCast(ce.parent,e.isJSDocTag))===null||ln===void 0?void 0:ln.tagName)===ce}e.isTagName=B;function U(ce){var ln;return((ln=e.tryCast(ce.parent,e.isQualifiedName))===null||ln===void 0?void 0:ln.right)===ce}e.isRightSideOfQualifiedName=U;function K(ce){var ln;return((ln=e.tryCast(ce.parent,e.isPropertyAccessExpression))===null||ln===void 0?void 0:ln.name)===ce}e.isRightSideOfPropertyAccess=K;function T(ce){var ln;return((ln=e.tryCast(ce.parent,e.isElementAccessExpression))===null||ln===void 0?void 0:ln.argumentExpression)===ce}e.isArgumentExpressionOfElementAccess=T;function G(ce){var ln;return((ln=e.tryCast(ce.parent,e.isModuleDeclaration))===null||ln===void 0?void 0:ln.name)===ce}e.isNameOfModuleDeclaration=G;function v(ce){var ln;return e.isIdentifier(ce)&&((ln=e.tryCast(ce.parent,e.isFunctionLike))===null||ln===void 0?void 0:ln.name)===ce}e.isNameOfFunctionDeclaration=v;function R(ce){switch(ce.parent.kind){case 164:case 163:case 289:case 292:case 166:case 165:case 168:case 169:case 257:return e.getNameOfDeclaration(ce.parent)===ce;case 203:return ce.parent.argumentExpression===ce;case 159:return!0;case 192:return ce.parent.parent.kind===190;default:return!1}}e.isLiteralNameOfPropertyDeclarationOrIndexAccess=R;function F(ce){return e.isExternalModuleImportEqualsDeclaration(ce.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(ce.parent.parent)===ce}e.isExpressionOfExternalModuleImportEqualsDeclaration=F;function _(ce){for(e.isJSDocTypeAlias(ce)&&(ce=ce.parent.parent);;){if(ce=ce.parent,!ce)return;switch(ce.kind){case 298:case 166:case 165:case 252:case 209:case 168:case 169:case 253:case 254:case 256:case 257:return ce}}}e.getContainerNode=_;function u(ce){switch(ce.kind){case 298:return e.isExternalModule(ce)?"module":"script";case 257:return"module";case 253:case 222:return"class";case 254:return"interface";case 255:case 328:case 335:return"type";case 256:return"enum";case 250:return $t(ce);case 199:return $t(e.getRootDeclaration(ce));case 210:case 252:case 209:return"function";case 168:return"getter";case 169:return"setter";case 166:case 165:return"method";case 289:var ln=ce.initializer;return e.isFunctionLike(ln)?"method":"property";case 164:case 163:case 290:case 291:return"property";case 172:return"index";case 171:return"construct";case 170:return"call";case 167:return"constructor";case 160:return"type parameter";case 292:return"enum member";case 161:return e.hasSyntacticModifier(ce,16476)?"property":"parameter";case 261:case 266:case 271:case 264:case 270:return"alias";case 217:var pn=e.getAssignmentDeclarationKind(ce),$n=ce.right;switch(pn){case 7:case 8:case 9:case 0:return"";case 1:case 2:var cn=u($n);return cn===""?"const":cn;case 3:return e.isFunctionExpression($n)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression($n)?"method":"property";case 6:return"local class";default:return e.assertType(pn),""}case 78:return e.isImportClause(ce.parent)?"alias":"";case 267:var Ht=u(ce.expression);return Ht===""?"const":Ht;default:return""}function $t(Ia){return e.isVarConst(Ia)?"const":e.isLet(Ia)?"let":"var"}}e.getNodeKind=u;function b(ce){switch(ce.kind){case 107:return!0;case 78:return e.identifierIsThisKeyword(ce)&&ce.parent.kind===161;default:return!1}}e.isThis=b;var w=/^\/\/\/\s*=pn.end}e.startEndContainsRange=fe;function A(ce,ln,pn){return ce.pos<=ln&&ce.end>=pn}e.rangeContainsStartEnd=A;function X(ce,ln,pn){return ve(ce.pos,ce.end,ln,pn)}e.rangeOverlapsWithStartEnd=X;function re(ce,ln,pn,$n){return ve(ce.getStart(ln),ce.end,pn,$n)}e.nodeOverlapsWithStartEnd=re;function ve(ce,ln,pn,$n){var cn=Math.max(ce,pn),Ht=Math.min(ln,$n);return cnln)break;var lo=Li.getEnd();if(lnpn.getStart(ce)&&lnce.end||Ht.pos===ce.end;return $t&&Vn(Ht,pn)?$n(Ht):void 0})}}e.findNextToken=J;function te(ce,ln,pn,$n){var cn=Ht(pn||ln);return e.Debug.assert(!(cn&&an(cn))),cn;function Ht($t){if(me($t)&&$t.kind!==1)return $t;var Ia=$t.getChildren(ln),Li=e.binarySearchKey(Ia,ce,function(Ro,uo){return uo},function(Ro,uo){return ce=Ia[Ro-1].end?0:1:-1});if(Li>=0&&Ia[Li]){var Mi=Ia[Li];if(ce=ce||!Vn(Mi,ln)||an(Mi);if(Bt){var Ki=P(Ia,Li,ln);return Ki&&xe(Ki,ln)}else return Ht(Mi)}}e.Debug.assert(pn!==void 0||$t.kind===298||$t.kind===1||e.isJSDocCommentContainingNode($t));var co=P(Ia,Ia.length,ln);return co&&xe(co,ln)}}e.findPrecedingToken=te;function me(ce){return e.isToken(ce)&&!an(ce)}function xe(ce,ln){if(me(ce))return ce;var pn=ce.getChildren(ln);if(pn.length===0)return ce;var $n=P(pn,pn.length,ln);return $n&&xe($n,ln)}function P(ce,ln,pn){for(var $n=ln-1;$n>=0;$n--){var cn=ce[$n];if(an(cn))e.Debug.assert($n>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Vn(ce[$n],pn))return ce[$n]}}function Se(ce,ln,pn){if(pn===void 0&&(pn=te(ln,ce)),pn&&e.isStringTextContainingNode(pn)){var $n=pn.getStart(ce),cn=pn.getEnd();if($npn.getStart(ce)}e.isInTemplateString=Sn;function Xn(ce,ln){var pn=Re(ce,ln);return!!(e.isJsxText(pn)||pn.kind===18&&e.isJsxExpression(pn.parent)&&e.isJsxElement(pn.parent.parent)||pn.kind===29&&e.isJsxOpeningLikeElement(pn.parent)&&e.isJsxElement(pn.parent.parent))}e.isInJSXText=Xn;function wn(ce,ln){function pn($n){for(;$n;)if($n.kind>=275&&$n.kind<=284||$n.kind===11||$n.kind===29||$n.kind===31||$n.kind===78||$n.kind===19||$n.kind===18||$n.kind===43)$n=$n.parent;else if($n.kind===274){if(ln>$n.getStart(ce))return!0;$n=$n.parent}else return!1;return!1}return pn(Re(ce,ln))}e.isInsideJsxElement=wn;function qn(ce,ln,pn){var $n=e.tokenToString(ce.kind),cn=e.tokenToString(ln),Ht=ce.getFullStart(),$t=pn.text.lastIndexOf(cn,Ht);if($t!==-1){if(pn.text.lastIndexOf($n,Ht-1)<$t){var Ia=te($t+1,pn);if(Ia&&Ia.kind===ln)return Ia}for(var Li=ce.kind,Mi=0;;){var lo=te(ce.getFullStart(),pn);if(!lo)return;if(ce=lo,ce.kind===ln){if(Mi===0)return ce;Mi--}else ce.kind===Li&&Mi++}}}e.findPrecedingMatchingToken=qn;function yr(ce,ln,pn){return ln?ce.getNonNullableType():pn?ce.getNonOptionalType():ce}e.removeOptionality=yr;function Vr(ce,ln,pn){var $n=We(ce,ln);return $n!==void 0&&(e.isPartOfTypeNode($n.called)||Me($n.called,$n.nTypeArguments,pn).length!==0||Vr($n.called,ln,pn))}e.isPossiblyTypeArgumentPosition=Vr;function Me(ce,ln,pn){var $n=pn.getTypeAtLocation(ce);e.isOptionalChain(ce.parent)&&($n=yr($n,e.isOptionalChainRoot(ce.parent),!0));var cn=e.isNewExpression(ce.parent)?$n.getConstructSignatures():$n.getCallSignatures();return cn.filter(function(Ht){return!!Ht.typeParameters&&Ht.typeParameters.length>=ln})}e.getPossibleGenericSignatures=Me;function We(ce,ln){if(ln.text.lastIndexOf("<",ce?ce.pos:ln.text.length)!==-1)for(var pn=ce,$n=0,cn=0;pn;){switch(pn.kind){case 29:if(pn=te(pn.getFullStart(),ln),pn&&pn.kind===28&&(pn=te(pn.getFullStart(),ln)),!pn||!e.isIdentifier(pn))return;if(!$n)return e.isDeclarationName(pn)?void 0:{called:pn,nTypeArguments:cn};$n--;break;case 49:$n=3;break;case 48:$n=2;break;case 31:$n++;break;case 19:if(pn=qn(pn,18,ln),!pn)return;break;case 21:if(pn=qn(pn,20,ln),!pn)return;break;case 23:if(pn=qn(pn,22,ln),!pn)return;break;case 27:cn++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 138:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(pn))break;return}pn=te(pn.getFullStart(),ln)}}e.getPossibleTypeArgumentsInfo=We;function Tn(ce,ln,pn){return e.formatting.getRangeOfEnclosingComment(ce,ln,void 0,pn)}e.isInComment=Tn;function Nn(ce,ln){var pn=Re(ce,ln);return!!e.findAncestor(pn,e.isJSDoc)}e.hasDocComment=Nn;function Vn(ce,ln){return ce.kind===1?!!ce.jsDoc:ce.getWidth(ln)!==0}function Hn(ce,ln){ln===void 0&&(ln=0);var pn=[],$n=e.isDeclaration(ce)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(ce)&~ln:0;return $n&8&&pn.push("private"),$n&16&&pn.push("protected"),$n&4&&pn.push("public"),$n&32&&pn.push("static"),$n&128&&pn.push("abstract"),$n&1&&pn.push("export"),$n&8192&&pn.push("deprecated"),ce.flags&8388608&&pn.push("declare"),ce.kind===267&&pn.push("export"),pn.length>0?pn.join(","):""}e.getNodeModifiers=Hn;function kr(ce){if(ce.kind===174||ce.kind===204)return ce.typeArguments;if(e.isFunctionLike(ce)||ce.kind===253||ce.kind===254)return ce.typeParameters}e.getTypeArgumentOrTypeParameterList=kr;function kn(ce){return ce===2||ce===3}e.isComment=kn;function Sr(ce){return!!(ce===10||ce===13||e.isTemplateLiteralKind(ce))}e.isStringOrRegularExpressionOrTemplateLiteral=Sr;function Cr(ce){return 18<=ce&&ce<=77}e.isPunctuation=Cr;function Qe(ce,ln,pn){return e.isTemplateLiteralKind(ce.kind)&&ce.getStart(pn)=2||!!ce.noEmit}e.compilerOptionsIndicateEs6Modules=Ut;function ka(ce,ln){return{fileExists:function(pn){return ce.fileExists(pn)},getCurrentDirectory:function(){return ln.getCurrentDirectory()},readFile:e.maybeBind(ln,ln.readFile),useCaseSensitiveFileNames:e.maybeBind(ln,ln.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(ln,ln.getSymlinkCache)||ce.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(ln,ln.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(ln,ln.getGlobalTypingsCacheLocation),getSourceFiles:function(){return ce.getSourceFiles()},redirectTargetsMap:ce.redirectTargetsMap,getProjectReferenceRedirect:function(pn){return ce.getProjectReferenceRedirect(pn)},isSourceOfProjectReferenceRedirect:function(pn){return ce.isSourceOfProjectReferenceRedirect(pn)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(ln,ln.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return ce.getFileIncludeReasons()}}}e.createModuleSpecifierResolutionHost=ka;function ma(ce,ln){return Nt(Nt({},ka(ce,ln)),{getCommonSourceDirectory:function(){return ce.getCommonSourceDirectory()}})}e.getModuleSpecifierResolverHost=ma;function Sa(ce,ln,pn,$n){return ce||ln&&ln.length?qt(ce,ln,pn,$n):void 0}e.makeImportIfNecessary=Sa;function qt(ce,ln,pn,$n,cn){return e.factory.createImportDeclaration(void 0,void 0,ce||ln?e.factory.createImportClause(!!cn,ce,ln&&ln.length?e.factory.createNamedImports(ln):void 0):void 0,typeof pn=="string"?ga(pn,$n):pn)}e.makeImport=qt;function ga(ce,ln){return e.factory.createStringLiteral(ce,ln===0)}e.makeStringLiteral=ga,function(ce){ce[ce.Single=0]="Single",ce[ce.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={}));function Mr(ce,ln){return e.isStringDoubleQuoted(ce,ln)?1:0}e.quotePreferenceFromString=Mr;function Kr(ce,ln){if(ln.quotePreference&&ln.quotePreference!=="auto")return ln.quotePreference==="single"?0:1;var pn=ce.imports&&e.find(ce.imports,function($n){return e.isStringLiteral($n)&&!e.nodeIsSynthesized($n.parent)});return pn?Mr(pn,ce):1}e.getQuotePreference=Kr;function jr(ce){switch(ce){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(ce)}}e.getQuoteFromPreference=jr;function En(ce){var ln=tr(ce);return ln===void 0?void 0:e.unescapeLeadingUnderscores(ln)}e.symbolNameNoDefault=En;function tr(ce){return ce.escapedName!=="default"?ce.escapedName:e.firstDefined(ce.declarations,function(ln){var pn=e.getNameOfDeclaration(ln);return pn&&pn.kind===78?pn.escapedText:void 0})}e.symbolEscapedNameNoDefault=tr;function gr(ce){return e.isStringLiteralLike(ce)&&(e.isExternalModuleReference(ce.parent)||e.isImportDeclaration(ce.parent)||e.isRequireCall(ce.parent,!1)&&ce.parent.arguments[0]===ce||e.isImportCall(ce.parent)&&ce.parent.arguments[0]===ce)}e.isModuleSpecifierLike=gr;function Or(ce){return e.isBindingElement(ce)&&e.isObjectBindingPattern(ce.parent)&&e.isIdentifier(ce.name)&&!ce.propertyName}e.isObjectBindingElementWithoutPropertyName=Or;function mt(ce,ln){var pn=ce.getTypeAtLocation(ln.parent);return pn&&ce.getPropertyOfType(pn,ln.name.text)}e.getPropertySymbolFromBindingElement=mt;function ft(ce,ln,pn){if(ce)for(;ce.parent;){if(e.isSourceFile(ce.parent)||!Dt(pn,ce.parent,ln))return ce;ce=ce.parent}}e.getParentNodeInSpan=ft;function Dt(ce,ln,pn){return e.textSpanContainsPosition(ce,ln.getStart(pn))&&ln.getEnd()<=e.textSpanEnd(ce)}function sa(ce,ln){return ce.modifiers&&e.find(ce.modifiers,function(pn){return pn.kind===ln})}e.findModifier=sa;function Wa(ce,ln,pn,$n){var cn=e.isArray(pn)?pn[0]:pn,Ht=cn.kind===233?e.isRequireVariableStatement:e.isAnyImportSyntax,$t=e.filter(ln.statements,Ht),Ia=e.isArray(pn)?e.stableSort(pn,e.OrganizeImports.compareImportsOrRequireStatements):[pn];if(!$t.length)ce.insertNodesAtTopOfFile(ln,Ia,$n);else if($t&&e.OrganizeImports.importsAreSorted($t))for(var Li=0,Mi=Ia;Li0&&ce.declarations[0].kind===161}e.isFirstDeclarationOfSymbolParameter=yi;var Ni=ja();function ja(){var ce=e.defaultMaximumTruncationLength*10,ln,pn,$n,cn;lo();var Ht=function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var Bt=ln.length&&ln[ln.length-1].text;return cn>ce&&Bt&&Bt!=="..."&&(e.isWhiteSpaceLike(Bt.charCodeAt(Bt.length-1))||ln.push(Di(" ",e.SymbolDisplayPartKind.space)),ln.push(Di("...",e.SymbolDisplayPartKind.punctuation))),ln},writeKeyword:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.keyword)},writeOperator:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.operator)},writePunctuation:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(Bt){return Ia(Bt,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:Li,writeLine:Mi,write:Ht,writeComment:Ht,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 $n},increaseIndent:function(){$n++},decreaseIndent:function(){$n--},clear:lo,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function $t(){if(!(cn>ce)&&pn){var Bt=e.getIndentString($n);Bt&&(cn+=Bt.length,ln.push(Di(Bt,e.SymbolDisplayPartKind.space))),pn=!1}}function Ia(Bt,Ki){cn>ce||($t(),cn+=Bt.length,ln.push(Di(Bt,Ki)))}function Li(Bt,Ki){cn>ce||($t(),cn+=Bt.length,ln.push(ui(Bt,Ki)))}function Mi(){cn>ce||(cn+=1,ln.push(pr()),pn=!0)}function lo(){ln=[],pn=!0,$n=0,cn=0}}function ui(ce,ln){return Di(ce,pn(ln));function pn($n){var cn=$n.flags;return cn&3?yi($n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:cn&4||cn&32768||cn&65536?e.SymbolDisplayPartKind.propertyName:cn&8?e.SymbolDisplayPartKind.enumMemberName:cn&16?e.SymbolDisplayPartKind.functionName:cn&32?e.SymbolDisplayPartKind.className:cn&64?e.SymbolDisplayPartKind.interfaceName:cn&384?e.SymbolDisplayPartKind.enumName:cn&1536?e.SymbolDisplayPartKind.moduleName:cn&8192?e.SymbolDisplayPartKind.methodName:cn&262144?e.SymbolDisplayPartKind.typeParameterName:cn&524288||cn&2097152?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}e.symbolPart=ui;function Di(ce,ln){return{text:ce,kind:e.SymbolDisplayPartKind[ln]}}e.displayPart=Di;function Io(){return Di(" ",e.SymbolDisplayPartKind.space)}e.spacePart=Io;function _o(ce){return Di(e.tokenToString(ce),e.SymbolDisplayPartKind.keyword)}e.keywordPart=_o;function ro(ce){return Di(e.tokenToString(ce),e.SymbolDisplayPartKind.punctuation)}e.punctuationPart=ro;function Zi(ce){return Di(e.tokenToString(ce),e.SymbolDisplayPartKind.operator)}e.operatorPart=Zi;function Ao(ce){return Di(ce,e.SymbolDisplayPartKind.parameterName)}e.parameterNamePart=Ao;function bo(ce){return Di(ce,e.SymbolDisplayPartKind.propertyName)}e.propertyNamePart=bo;function ti(ce){var ln=e.stringToToken(ce);return ln===void 0?Xt(ce):_o(ln)}e.textOrKeywordPart=ti;function Xt(ce){return Di(ce,e.SymbolDisplayPartKind.text)}e.textPart=Xt;function gi(ce){return Di(ce,e.SymbolDisplayPartKind.aliasName)}e.typeAliasNamePart=gi;function Ji(ce){return Di(ce,e.SymbolDisplayPartKind.typeParameterName)}e.typeParameterNamePart=Ji;function Ui(ce){return Di(ce,e.SymbolDisplayPartKind.linkText)}e.linkTextPart=Ui;function go(ce,ln){return{text:e.getTextOfNode(ce),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(ln).fileName,textSpan:Er(ln)}}}e.linkNamePart=go;function wo(ce){return Di(ce,e.SymbolDisplayPartKind.link)}e.linkPart=wo;function oo(ce,ln){var pn,$n=[wo("{@link ")];if(!ce.name)ce.text&&$n.push(Ui(ce.text));else{var cn=ln==null?void 0:ln.getSymbolAtLocation(ce.name),Ht=(cn==null?void 0:cn.valueDeclaration)||((pn=cn==null?void 0:cn.declarations)===null||pn===void 0?void 0:pn[0]);Ht?($n.push(go(ce.name,Ht)),ce.text&&$n.push(Ui(ce.text))):$n.push(Ui(e.getTextOfNode(ce.name)+ce.text))}return $n.push(wo("}")),$n}e.buildLinkParts=oo;var Go=`\r `;function Vo(ce,ln){var pn;return(ln==null?void 0:ln.newLineCharacter)||((pn=ce.getNewLine)===null||pn===void 0?void 0:pn.call(ce))||Go}e.getNewLineOrDefaultFromHost=Vo;function pr(){return Di(` `,e.SymbolDisplayPartKind.lineBreak)}e.lineBreakPart=pr;function Ot(ce){try{return ce(Ni),Ni.displayParts()}finally{Ni.clear()}}e.mapToDisplayParts=Ot;function Xe(ce,ln,pn,$n){return $n===void 0&&($n=0),Ot(function(cn){ce.writeType(ln,pn,$n|1024|16384,cn)})}e.typeToDisplayParts=Xe;function Jn(ce,ln,pn,$n,cn){return cn===void 0&&(cn=0),Ot(function(Ht){ce.writeSymbol(ln,pn,$n,cn|8,Ht)})}e.symbolToDisplayParts=Jn;function fr(ce,ln,pn,$n){return $n===void 0&&($n=0),$n|=25632,Ot(function(cn){ce.writeSignature(ln,pn,$n,void 0,cn)})}e.signatureToDisplayParts=fr;function Zr(ce){return!!ce.parent&&e.isImportOrExportSpecifier(ce.parent)&&ce.parent.propertyName===ce}e.isImportOrExportSpecifierName=Zr;function Ae(ce,ln){return e.ensureScriptKind(ce,ln.getScriptKind&&ln.getScriptKind(ce))}e.getScriptKind=Ae;function Dn(ce,ln){for(var pn=ce;Q(pn)||pe(pn)&&pn.target;)pe(pn)&&pn.target?pn=pn.target:pn=e.skipAlias(pn,ln);return pn}e.getSymbolTarget=Dn;function pe(ce){return(ce.flags&33554432)!==0}function Q(ce){return(ce.flags&2097152)!==0}function De(ce,ln){return e.getSymbolId(e.skipAlias(ce,ln))}e.getUniqueSymbolId=De;function qe(ce,ln){for(;e.isWhiteSpaceLike(ce.charCodeAt(ln));)ln+=1;return ln}e.getFirstNonSpaceCharacterPosition=qe;function sn(ce,ln){for(;ln>-1&&e.isWhiteSpaceSingleLine(ce.charCodeAt(ln));)ln-=1;return ln+1}e.getPrecedingNonSpaceCharacterPosition=sn;function Mn(ce,ln){ln===void 0&&(ln=!0);var pn=ce&&Ir(ce);return pn&&!ln&&Da(pn),pn}e.getSynthesizedDeepClone=Mn;function or(ce,ln,pn){var $n=pn(ce);return $n?e.setOriginalNode($n,ce):$n=Ir(ce,pn),$n&&!ln&&Da($n),$n}e.getSynthesizedDeepCloneWithReplacements=or;function Ir(ce,ln){var pn=ln?e.visitEachChild(ce,function(cn){return or(cn,!0,ln)},e.nullTransformationContext):e.visitEachChild(ce,Mn,e.nullTransformationContext);if(pn===ce){var $n=e.isStringLiteral(ce)?e.setOriginalNode(e.factory.createStringLiteralFromNode(ce),ce):e.isNumericLiteral(ce)?e.setOriginalNode(e.factory.createNumericLiteral(ce.text,ce.numericLiteralFlags),ce):e.factory.cloneNode(ce);return e.setTextRange($n,ce)}return pn.parent=void 0,pn}function at(ce,ln){return ln===void 0&&(ln=!0),ce&&e.factory.createNodeArray(ce.map(function(pn){return Mn(pn,ln)}),ce.hasTrailingComma)}e.getSynthesizedDeepClones=at;function Ft(ce,ln,pn){return e.factory.createNodeArray(ce.map(function($n){return or($n,ln,pn)}),ce.hasTrailingComma)}e.getSynthesizedDeepClonesWithReplacements=Ft;function Da(ce){$a(ce),Za(ce)}e.suppressLeadingAndTrailingTrivia=Da;function $a(ce){fs(ce,512,bs)}e.suppressLeadingTrivia=$a;function Za(ce){fs(ce,1024,e.getLastChild)}e.suppressTrailingTrivia=Za;function hi(ce,ln){var pn=ce.getSourceFile(),$n=pn.text;vo(ce,$n)?Zo(ce,ln,pn):Ws(ce,ln,pn),ws(ce,ln,pn)}e.copyComments=hi;function vo(ce,ln){for(var pn=ce.getFullStart(),$n=ce.getStart(),cn=pn;cn<$n;cn++)if(ln.charCodeAt(cn)===10)return!0;return!1}function fs(ce,ln,pn){e.addEmitFlags(ce,ln);var $n=pn(ce);$n&&fs($n,ln,pn)}function bs(ce){return ce.forEachChild(function(ln){return ln})}function ds(ce,ln){for(var pn=ce,$n=1;!e.isFileLevelUniqueName(ln,pn);$n++)pn=ce+"_"+$n;return pn}e.getUniqueName=ds;function gs(ce,ln,pn,$n){for(var cn=0,Ht=-1,$t=0,Ia=ce;$t=0),Ht}e.getRenameLocation=gs;function Zo(ce,ln,pn,$n,cn){e.forEachLeadingCommentRange(pn.text,ce.pos,Ts(ln,pn,$n,cn,e.addSyntheticLeadingComment))}e.copyLeadingComments=Zo;function ws(ce,ln,pn,$n,cn){e.forEachTrailingCommentRange(pn.text,ce.end,Ts(ln,pn,$n,cn,e.addSyntheticTrailingComment))}e.copyTrailingComments=ws;function Ws(ce,ln,pn,$n,cn){e.forEachTrailingCommentRange(pn.text,ce.pos,Ts(ln,pn,$n,cn,e.addSyntheticLeadingComment))}e.copyTrailingAsLeadingComments=Ws;function Ts(ce,ln,pn,$n,cn){return function(Ht,$t,Ia,Li){Ia===3?(Ht+=2,$t-=2):Ht+=2,cn(ce,pn||Ia,ln.text.slice(Ht,$t),$n!==void 0?$n:Li)}}function Gs(ce,ln){if(e.startsWith(ce,ln))return 0;var pn=ce.indexOf(" "+ln);return pn===-1&&(pn=ce.indexOf("."+ln)),pn===-1&&(pn=ce.indexOf('"'+ln)),pn===-1?-1:pn+1}function Cs(ce){return e.isBinaryExpression(ce)&&ce.operatorToken.kind===27||e.isObjectLiteralExpression(ce)||e.isAsExpression(ce)&&e.isObjectLiteralExpression(ce.expression)}e.needsParentheses=Cs;function xs(ce,ln){var pn=ce.parent;switch(pn.kind){case 205:return ln.getContextualType(pn);case 217:{var $n=pn,cn=$n.left,Ht=$n.operatorToken,$t=$n.right;return js(Ht.kind)?ln.getTypeAtLocation(ce===$t?cn:$t):ln.getContextualType(ce)}case 285:return pn.expression===ce?ur(pn,ln):void 0;default:return ln.getContextualType(ce)}}e.getContextualTypeFromParent=xs;function vs(ce,ln,pn){var $n=Kr(ce,ln),cn=JSON.stringify(pn);return $n===0?"'"+e.stripQuotes(cn).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":cn}e.quote=vs;function js(ce){switch(ce){case 36:case 34:case 37:case 35:return!0;default:return!1}}e.isEqualityOperatorKind=js;function Zs(ce){switch(ce.kind){case 10:case 14:case 219:case 206:return!0;default:return!1}}e.isStringLiteralOrTemplate=Zs;function He(ce){return!!ce.getStringIndexType()||!!ce.getNumberIndexType()}e.hasIndexSignature=He;function ur(ce,ln){return ln.getTypeAtLocation(ce.parent.parent.expression)}e.getSwitchedType=ur,e.ANONYMOUS="anonymous function";function ae(ce,ln,pn,$n){var cn=pn.getTypeChecker(),Ht=!0,$t=function(){Ht=!1},Ia=cn.typeToTypeNode(ce,ln,1,{trackSymbol:function(Li,Mi,lo){Ht=Ht&&cn.isSymbolAccessible(Li,Mi,lo,!1).accessibility===0},reportInaccessibleThisError:$t,reportPrivateInBaseOfClassExpression:$t,reportInaccessibleUniqueSymbolError:$t,moduleResolverHost:ma(pn,$n)});return Ht?Ia:void 0}e.getTypeNodeIfAccessible=ae;function An(ce){return ce===170||ce===171||ce===172||ce===163||ce===165}e.syntaxRequiresTrailingCommaOrSemicolonOrASI=An;function ir(ce){return ce===252||ce===167||ce===166||ce===168||ce===169}e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=ir;function Ur(ce){return ce===257}e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Ur;function mn(ce){return ce===233||ce===234||ce===236||ce===241||ce===242||ce===243||ce===247||ce===249||ce===164||ce===255||ce===262||ce===261||ce===268||ce===260||ce===267}e.syntaxRequiresTrailingSemicolonOrASI=mn,e.syntaxMayBeASICandidate=e.or(An,ir,Ur,mn);function wa(ce,ln){var pn=ce.getLastToken(ln);if(pn&&pn.kind===26)return!1;if(An(ce.kind)){if(pn&&pn.kind===27)return!1}else if(Ur(ce.kind)){var $n=e.last(ce.getChildren(ln));if($n&&e.isModuleBlock($n))return!1}else if(ir(ce.kind)){var $n=e.last(ce.getChildren(ln));if($n&&e.isFunctionBlock($n))return!1}else if(!mn(ce.kind))return!1;if(ce.kind===236)return!0;var cn=e.findAncestor(ce,function(Li){return!Li.parent}),Ht=J(ce,cn,ln);if(!Ht||Ht.kind===19)return!0;var $t=ln.getLineAndCharacterOfPosition(ce.getEnd()).line,Ia=ln.getLineAndCharacterOfPosition(Ht.getStart(ln)).line;return $t!==Ia}function Ba(ce,ln,pn){var $n=e.findAncestor(ln,function(cn){return cn.end!==ce?"quit":e.syntaxMayBeASICandidate(cn.kind)});return!!$n&&wa($n,pn)}e.positionIsASICandidate=Ba;function pa(ce){var ln=0,pn=0,$n=5;return e.forEachChild(ce,function cn(Ht){if(mn(Ht.kind)){var $t=Ht.getLastToken(ce);$t&&$t.kind===26?ln++:pn++}return ln+pn>=$n?!0:e.forEachChild(Ht,cn)}),ln===0&&pn<=1?!0:ln/pn>1/$n}e.probablyUsesSemicolons=pa;function ci(ce,ln){return bi(ce,ce.getDirectories,ln)||[]}e.tryGetDirectories=ci;function Xi(ce,ln,pn,$n,cn){return bi(ce,ce.readDirectory,ln,pn,$n,cn)||e.emptyArray}e.tryReadDirectory=Xi;function so(ce,ln){return bi(ce,ce.fileExists,ln)}e.tryFileExists=so;function Wo(ce,ln){return ps(function(){return e.directoryProbablyExists(ln,ce)})||!1}e.tryDirectoryExists=Wo;function ps(ce){try{return ce()}catch{return}}e.tryAndIgnoreErrors=ps;function bi(ce,ln){for(var pn=[],$n=2;$n"u")return!0;var uo=e.stripQuotes(Bt.getName());return Li(uo)?!0:cn(Ro)||cn(uo)}function $t(Bt,Ki){if(!pn.length)return!0;var co=Mi(Bt.fileName,Ki);return co?cn(co):!0}function Ia(Bt){return!pn.length||Li(Bt)||e.pathIsRelative(Bt)||e.isRootedDiskPath(Bt)?!0:cn(Bt)}function Li(Bt){return!!(e.isSourceFileJS(ce)&&e.JsTyping.nodeCoreModules.has(Bt)&&($n===void 0&&($n=Kl(ce)),$n))}function Mi(Bt,Ki){if(e.stringContains(Bt,"node_modules")){var co=e.moduleSpecifiers.getNodeModulesPackageName(ln.getCompilationSettings(),ce.path,Bt,Ki);if(co&&!e.pathIsRelative(co)&&!e.isRootedDiskPath(co))return lo(co)}}function lo(Bt){var Ki=e.getPathComponents(e.getPackageNameFromTypesPackageName(Bt)).slice(1);return e.startsWith(Ki[0],"@")?Ki[0]+"/"+Ki[1]:Ki[0]}}e.createPackageJsonImportFilter=rc;function tc(ce){try{return JSON.parse(ce)}catch{return}}function Kl(ce){return e.some(ce.imports,function(ln){var pn=ln.text;return e.JsTyping.nodeCoreModules.has(pn)})}e.consumesNodeCoreModules=Kl;function Dc(ce){return e.contains(e.getPathComponents(ce),"node_modules")}e.isInsideNodeModules=Dc;function zl(ce){return ce.file!==void 0&&ce.start!==void 0&&ce.length!==void 0}e.isDiagnosticWithLocation=zl;function hn(ce,ln){var pn=Er(ce),$n=e.binarySearchKey(ln,pn,e.identity,e.compareTextSpans);if($n>=0){var cn=ln[$n];return e.Debug.assertEqual(cn.file,ce.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(cn,zl)}}e.findDiagnosticForNode=hn;function Gn(ce,ln){var pn,$n=e.binarySearchKey(ln,ce.start,function(Ia){return Ia.start},e.compareValues);for($n<0&&($n=~$n);((pn=ln[$n-1])===null||pn===void 0?void 0:pn.start)===ce.start;)$n--;for(var cn=[],Ht=e.textSpanEnd(ce);;){var $t=e.tryCast(ln[$n],zl);if(!$t||$t.start>Ht)break;e.textSpanContainsTextSpan(ce,$t)&&cn.push($t),$n++}return cn}e.getDiagnosticsWithinSpan=Gn;function vr(ce){var ln=ce.startPosition,pn=ce.endPosition;return e.createTextSpanFromBounds(ln,pn===void 0?ln:pn)}e.getRefactorContextSpan=vr;function Qr(ce,ln,pn){return pn===void 0&&(pn=e.identity),ce?e.isArray(ce)?pn(e.map(ce,ln)):ln(ce,0):void 0}e.mapOneOrMany=Qr;function ct(ce){return e.isArray(ce)?e.first(ce):ce}e.firstOrOnly=ct;function ot(ce,ln){return!(ce.flags&33554432)&&(ce.escapedName==="export="||ce.escapedName==="default")?e.firstDefined(ce.declarations,function(pn){var $n;return e.isExportAssignment(pn)?($n=e.tryCast(e.skipOuterExpressions(pn.expression),e.isIdentifier))===null||$n===void 0?void 0:$n.text:void 0})||e.codefix.moduleSymbolToValidIdentifier(Lt(ce),ln):ce.name}e.getNameForExportedSymbol=ot;function Lt(ce){var ln;return e.Debug.checkDefined(ce.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(ce.flags)+". "+("Declarations: "+((ln=ce.declarations)===null||ln===void 0?void 0:ln.map(function(pn){var $n=e.Debug.formatSyntaxKind(pn.kind),cn=e.isInJSFile(pn),Ht=pn.expression;return(cn?"[JS]":"")+$n+(Ht?" (expression: "+e.Debug.formatSyntaxKind(Ht.kind)+")":"")}).join(", "))+"."))}function kt(ce,ln,pn){var $n=ln.length;if($n+pn>ce.length)return!1;for(var cn=0;cn<$n;cn++)if(ln.charCodeAt(cn)!==ce.charCodeAt(cn+pn))return!1;return!0}e.stringContainsAt=kt;function ya(ce){return ce.charCodeAt(0)===95}e.startsWithUnderscore=ya;function ni(ce){return!Yt(ce)}e.isGlobalDeclaration=ni;function Yt(ce){var ln=ce.getSourceFile();return!ln.externalModuleIndicator&&!ln.commonJsModuleIndicator?!1:e.isInJSFile(ce)||!e.findAncestor(ce,e.isGlobalScopeAugmentation)}e.isNonGlobalDeclaration=Yt,function(ce){ce[ce.Named=0]="Named",ce[ce.Default=1]="Default",ce[ce.Namespace=2]="Namespace",ce[ce.CommonJS=3]="CommonJS"}(e.ImportKind||(e.ImportKind={})),function(ce){ce[ce.Named=0]="Named",ce[ce.Default=1]="Default",ce[ce.ExportEquals=2]="ExportEquals",ce[ce.UMD=3]="UMD"}(e.ExportKind||(e.ExportKind={}));function fa(){var ce,ln,pn,$n={isEmpty:function(){return!ce},clear:function(){ce=void 0,ln=void 0},set:function($t,Ia){ce=$t,Ia&&(ln=Ia)},get:function($t,Ia,Li){if(!(pn&&$t!==pn))return Li&&ln===Li||ce==null||ce.forEach(function(Mi){for(var lo,Bt,Ki,co=0,Ro=Mi;co=$.length){var ee=g(M,U,e.lastOrUndefined(T));ee!==void 0&&(_=ee)}}while(U!==1);function le(){switch(U){case 43:case 67:!p[K]&&M.reScanSlashToken()===13&&(U=13);break;case 29:K===78&&b++;break;case 31:b>0&&b--;break;case 128:case 147:case 144:case 131:case 148:b>0&&!B&&(U=78);break;case 15:T.push(U);break;case 18:T.length>0&&T.push(U);break;case 19:if(T.length>0){var ie=e.lastOrUndefined(T);ie===15?(U=M.reScanTemplateToken(!1),U===17?T.pop():e.Debug.assertEqual(U,16,"Should have been a template middle.")):(e.Debug.assertEqual(ie,18,"Should have been an open brace"),T.pop())}break;default:if(!e.isKeyword(U))break;(K===24||e.isKeyword(K)&&e.isKeyword(U)&&!D(K,U))&&(U=78)}}return{endOfLineState:_,spans:u}}return{getClassificationsForLine:O,getEncodedLexicalClassifications:H}}e.createClassifier=a;var p=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],function(M){return M},function(){return!0});function g(M,O,H){switch(O){case 10:{if(!M.isUnterminated())return;for(var $=M.getTokenText(),Z=$.length-1,B=0;$.charCodeAt(Z-B)===92;)B++;return B&1?$.charCodeAt(0)===34?3:2:void 0}case 3:return M.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(O)){if(!M.isUnterminated())return;switch(O){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+O)}}return H===15?6:void 0}}function t(M,O,H,$,Z){if($!==8){M===0&&H>0&&(M+=H);var B=O-M;B>0&&Z.push(M-H,B,$)}}function m(M,O){for(var H=[],$=M.spans,Z=0,B=0;B<$.length;B+=3){var U=$[B],K=$[B+1],T=$[B+2];if(Z>=0){var G=U-Z;G>0&&H.push({length:G,classification:e.TokenClass.Whitespace})}H.push({length:K,classification:N(T)}),Z=U+K}var v=O.length-Z;return v>0&&H.push({length:v,classification:e.TokenClass.Whitespace}),{entries:H,finalLexState:M.endOfLineState}}function N(M){switch(M){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 D(M,O){if(!e.isAccessibilityModifier(M))return!0;switch(O){case 134:case 146:case 132:case 123:return!0;default:return!1}}function c(M){switch(M){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(M)}}function x(M){switch(M){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 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}function se(M){switch(M){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function z(M){if(e.isKeyword(M))return 3;if(x(M)||se(M))return 5;if(M>=18&&M<=77)return 10;switch(M){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 78:default:return e.isTemplateLiteralKind(M)?6:2}}function ue(M,O,H,$,Z){return L(C(M,O,H,$,Z))}e.getSemanticClassifications=ue;function E(M,O){switch(O){case 257:case 253:case 254:case 252:case 222:case 209:case 210:M.throwIfCancellationRequested()}}function C(M,O,H,$,Z){var B=[];return H.forEachChild(function K(T){if(!(!T||!e.textSpanIntersectsWith(Z,T.pos,T.getFullWidth()))){if(E(O,T.kind),e.isIdentifier(T)&&!e.nodeIsMissing(T)&&$.has(T.escapedText)){var G=M.getSymbolAtLocation(T),v=G&&I(G,e.getMeaningFromLocation(T),M);v&&U(T.getStart(H),T.getEnd(),v)}T.forEachChild(K)}}),{spans:B,endOfLineState:0};function U(K,T,G){var v=T-K;e.Debug.assert(v>0,"Classification had non-positive length of "+v),B.push(K),B.push(v),B.push(G)}}e.getEncodedSemanticClassifications=C;function I(M,O,H){var $=M.getFlags();if($&2885600)return $&32?11:$&384?12:$&524288?16:$&1536?O&4||O&1&&j(M)?14:void 0:$&2097152?I(H.getAliasedSymbol(M),O,H):O&2?$&64?13:$&262144?15:void 0:void 0}function j(M){return e.some(M.declarations,function(O){return e.isModuleDeclaration(O)&&e.getModuleInstanceState(O)===1})}function Y(M){switch(M){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 L(M){e.Debug.assert(M.spans.length%3===0);for(var O=M.spans,H=[],$=0;$])*)(\/>)?)?/im,X=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,re=O.text.substr(ge,fe),ve=A.exec(re);if(!ve||!ve[3]||!(ve[3]in e.commentPragmas))return!1;var ke=ge;R(ke,ve[1].length),ke+=ve[1].length,T(ke,ve[2].length,10),ke+=ve[2].length,T(ke,ve[3].length,21),ke+=ve[3].length;for(var Ie=ve[4],Je=ke;;){var je=X.exec(Ie);if(!je)break;var fn=ke+je.index;fn>Je&&(R(Je,fn-Je),Je=fn),T(Je,je[1].length,22),Je+=je[1].length,je[2].length&&(R(Je,je[2].length),Je+=je[2].length),T(Je,je[3].length,5),Je+=je[3].length,je[4].length&&(R(Je,je[4].length),Je+=je[4].length),T(Je,je[5].length,24),Je+=je[5].length}ke+=ve[4].length,ke>Je&&R(Je,ke-Je),ve[5]&&(T(ke,ve[5].length,10),ke+=ve[5].length);var ze=ge+fe;return ke=0),X>0){var re=fe||ie(ge.kind,ge);re&&T(A,X,re)}return!0}function le(ge){switch(ge.parent&&ge.parent.kind){case 276:if(ge.parent.tagName===ge)return 19;break;case 277:if(ge.parent.tagName===ge)return 20;break;case 275:if(ge.parent.tagName===ge)return 21;break;case 281:if(ge.parent.name===ge)return 22;break}}function ie(ge,fe){if(e.isKeyword(ge))return 3;if((ge===29||ge===31)&&fe&&e.getTypeArgumentOrTypeParameterList(fe.parent))return 10;if(e.isPunctuation(ge)){if(fe){var A=fe.parent;if(ge===62&&(A.kind===250||A.kind===164||A.kind===161||A.kind===281)||A.kind===217||A.kind===215||A.kind===216||A.kind===218)return 5}return 10}else{if(ge===8)return 4;if(ge===9)return 25;if(ge===10)return fe&&fe.parent.kind===281?24:6;if(ge===13)return 6;if(e.isTemplateLiteralKind(ge))return 6;if(ge===11)return 23;if(ge===78){if(fe)switch(fe.parent.kind){case 253:return fe.parent.name===fe?11:void 0;case 160:return fe.parent.name===fe?15:void 0;case 254:return fe.parent.name===fe?13:void 0;case 256:return fe.parent.name===fe?12:void 0;case 257:return fe.parent.name===fe?14:void 0;case 161:return fe.parent.name===fe?e.isThisIdentifier(fe)?3:17:void 0}return 2}}}function W(ge){if(ge&&e.decodedTextSpanIntersectsWith($,Z,ge.pos,ge.getFullWidth())){E(M,ge.kind);for(var fe=0,A=ge.getChildren(O);fe0}))return 0;if(k(function(h){return h.getCallSignatures().length>0})&&!k(function(h){return h.getProperties().length>0})||ue(j))return Y===9?11:10}}return Y}function x(I,j){return e.isBindingElement(I)&&(I=se(I)),e.isVariableDeclaration(I)?(!e.isSourceFile(I.parent.parent.parent)||e.isCatchClause(I.parent))&&I.getSourceFile()===j:e.isFunctionDeclaration(I)?!e.isSourceFile(I.parent)&&I.getSourceFile()===j:!1}function se(I){for(;;)if(e.isBindingElement(I.parent.parent))I=I.parent.parent;else return I.parent.parent}function z(I){var j=I.parent;return j&&(e.isImportClause(j)||e.isImportSpecifier(j)||e.isNamespaceImport(j))}function ue(I){for(;E(I);)I=I.parent;return e.isCallExpression(I.parent)&&I.parent.expression===I}function E(I){return e.isQualifiedName(I.parent)&&I.parent.right===I||e.isPropertyAccessExpression(I.parent)&&I.parent.name===I}var C=new e.Map([[250,7],[161,6],[164,9],[257,3],[256,1],[292,8],[253,0],[166,11],[252,10],[209,10],[165,11],[168,9],[169,9],[163,9],[254,2],[255,5],[160,4],[289,9],[290,9]])})(a.v2020||(a.v2020={}))})(e.classifier||(e.classifier={}))})(un||(un={}));var un;(function(e){(function(a){(function(p){function g(A,X,re,ve,ke,Ie,Je,je){if(e.isInReferenceComment(A,X)){var fn=b(A,X,ke,Ie);return fn&&D(fn)}if(e.isInString(A,X,re)){if(!re||!e.isStringLiteralLike(re))return;var fn=se(A,re,X,ve,ke,Ie,je);return t(fn,re,A,ve,Je,ke,je)}}p.getStringLiteralCompletions=g;function t(A,X,re,ve,ke,Ie,Je){if(A!==void 0){var je=e.createTextSpanFromStringLiteralLikeContent(X);switch(A.kind){case 0:return D(A.paths);case 1:{var fn=[];return a.getCompletionEntriesFromSymbols(A.symbols,fn,X,re,re,ve,99,ke,4,Je,Ie),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:A.hasIndexSignature,optionalReplacementSpan:je,entries:fn}}case 2:{var fn=A.types.map(function(Ve){return{name:Ve.value,kindModifiers:"",kind:"string",sortText:a.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(X)}});return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:A.isNewIdentifier,optionalReplacementSpan:je,entries:fn}}default:return e.Debug.assertNever(A)}}}function m(A,X,re,ve,ke,Ie,Je,je,fn){if(!(!ve||!e.isStringLiteralLike(ve))){var ze=se(X,ve,re,ke,Ie,Je,fn);return ze&&N(A,ve,ze,X,ke,je)}}p.getStringLiteralCompletionDetails=m;function N(A,X,re,ve,ke,Ie){switch(re.kind){case 0:{var Je=e.find(re.paths,function(je){return je.name===A});return Je&&a.createCompletionDetails(A,c(Je.extension),Je.kind,[e.textPart(A)])}case 1:{var Je=e.find(re.symbols,function(fn){return fn.name===A});return Je&&a.createCompletionDetailsForSymbol(Je,ke,ve,X,Ie)}case 2:return e.find(re.types,function(je){return je.value===A})?a.createCompletionDetails(A,"","type",[e.textPart(A)]):void 0;default:return e.Debug.assertNever(re)}}function D(A){var X=!1,re=!0,ve=A.map(function(ke){var Ie=ke.name,Je=ke.kind,je=ke.span,fn=ke.extension;return{name:Ie,kind:Je,kindModifiers:c(fn),sortText:a.SortText.LocationPriority,replacementSpan:je}});return{isGlobalCompletion:X,isMemberCompletion:!1,isNewIdentifierLocation:re,entries:ve}}function c(A){switch(A){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".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(A)}}var x;(function(A){A[A.Paths=0]="Paths",A[A.Properties=1]="Properties",A[A.Types=2]="Types"})(x||(x={}));function se(A,X,re,ve,ke,Ie,Je){var je=z(X.parent);switch(je.kind){case 192:{var fn=z(je.parent);switch(fn.kind){case 174:{var ze=fn,Ve=e.findAncestor(je,function(rn){return rn.parent===ze});return Ve?{kind:2,types:j(ve.getTypeArgumentConstraint(Ve)),isNewIdentifier:!1}:void 0}case 190:var Ne=fn,be=Ne.indexType,de=Ne.objectType;return e.rangeContainsPosition(be,re)?C(ve.getTypeFromTypeNode(de)):void 0;case 196:return{kind:0,paths:h(A,X,ke,Ie,ve,Je)};case 183:{if(!e.isTypeReferenceNode(fn.parent))return;var Ce=ue(fn,je),ye=j(ve.getTypeArgumentConstraint(fn)).filter(function(rn){return!e.contains(Ce,rn.value)});return{kind:2,types:ye,isNewIdentifier:!1}}default:return}}case 289:return e.isObjectLiteralExpression(je.parent)&&je.name===X?I(ve,je.parent):Ke();case 203:{var on=je,Te=on.expression,tn=on.argumentExpression;return X===e.skipParentheses(tn)?C(ve.getTypeAtLocation(Te)):void 0}case 204:case 205:if(!e.isRequireCall(je,!1)&&!e.isImportCall(je)){var Fe=e.SignatureHelp.getArgumentInfoForCompletions(X,re,A);return Fe?E(Fe,ve):Ke()}case 262:case 268:case 273:return{kind:0,paths:h(A,X,ke,Ie,ve,Je)};default:return Ke()}function Ke(){return{kind:2,types:j(e.getContextualTypeFromParent(X,ve)),isNewIdentifier:!1}}}function z(A){switch(A.kind){case 187:return e.walkUpParenthesizedTypes(A);case 208:return e.walkUpParenthesizedExpressions(A);default:return A}}function ue(A,X){return e.mapDefined(A.types,function(re){return re!==X&&e.isLiteralTypeNode(re)&&e.isStringLiteral(re.literal)?re.literal.text:void 0})}function E(A,X){var re=!1,ve=new e.Map,ke=[];X.getResolvedSignature(A.invocation,ke,A.argumentCount);var Ie=e.flatMap(ke,function(Je){if(!(!e.signatureHasRestParameter(Je)&&A.argumentCount>Je.parameters.length)){var je=X.getParameterType(Je,A.argumentIndex);return re=re||!!(je.flags&4),j(je,ve)}});return{kind:2,types:Ie,isNewIdentifier:re}}function C(A){return A&&{kind:1,symbols:e.filter(A.getApparentProperties(),function(X){return!(X.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(X.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(A)}}function I(A,X){var re=A.getContextualType(X);if(re){var ve=A.getContextualType(X,4),ke=a.getPropertiesForObjectExpression(re,ve,X,A);return{kind:1,symbols:ke,hasIndexSignature:e.hasIndexSignature(re)}}}function j(A,X){return X===void 0&&(X=new e.Map),A?(A=e.skipConstraint(A),A.isUnion()?e.flatMap(A.types,function(re){return j(re,X)}):A.isStringLiteral()&&!(A.flags&1024)&&e.addToSeen(X,A.value)?[A]:e.emptyArray):e.emptyArray}function Y(A,X,re){return{name:A,kind:X,extension:re}}function L(A){return Y(A,"directory",void 0)}function k(A,X,re){var ve=le(A,X),ke=A.length===0?void 0:e.createTextSpan(X,A.length);return re.map(function(Ie){var Je=Ie.name,je=Ie.kind,fn=Ie.extension;return Math.max(Je.indexOf(e.directorySeparator),Je.indexOf(e.altDirectorySeparator))!==-1?{name:Je,kind:je,extension:fn,span:ke}:{name:Je,kind:je,extension:fn,span:ve}})}function h(A,X,re,ve,ke,Ie){return k(X.text,X.getStart(A)+1,M(A,X,re,ve,ke,Ie))}function M(A,X,re,ve,ke,Ie){var Je=e.normalizeSlashes(X.text),je=A.path,fn=e.getDirectoryPath(je);return ie(Je)||!re.baseUrl&&(e.isRootedDiskPath(Je)||e.isUrl(Je))?H(Je,fn,re,ve,je,Ie):T(Je,fn,re,ve,ke)}function O(A,X){return X===void 0&&(X=!1),{extensions:$(A),includeExtensions:X}}function H(A,X,re,ve,ke,Ie){var Je=O(re,Ie.importModuleSpecifierEnding==="js");return re.rootDirs?B(re.rootDirs,A,X,Je,re,ve,ke):U(A,X,Je,ve,ke)}function $(A){var X=e.getSupportedExtensions(A);return A.resolveJsonModule&&e.getEmitModuleResolutionKind(A)===e.ModuleResolutionKind.NodeJs?X.concat(".json"):X}function Z(A,X,re,ve){A=A.map(function(Ie){return e.normalizePath(e.isRootedDiskPath(Ie)?Ie:e.combinePaths(X,Ie))});var ke=e.firstDefined(A,function(Ie){return e.containsPath(Ie,re,X,ve)?re.substr(Ie.length):void 0});return e.deduplicate(wr(wr([],A.map(function(Ie){return e.combinePaths(Ie,ke)})),[re]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function B(A,X,re,ve,ke,Ie,Je){var je=ke.project||Ie.getCurrentDirectory(),fn=!(Ie.useCaseSensitiveFileNames&&Ie.useCaseSensitiveFileNames()),ze=Z(A,je,re,fn);return e.flatMap(ze,function(Ve){return U(X,Ve,ve,Ie,Je)})}function U(A,X,re,ve,ke,Ie){var Je=re.extensions,je=re.includeExtensions;Ie===void 0&&(Ie=[]),A===void 0&&(A=""),A=e.normalizeSlashes(A),e.hasTrailingDirectorySeparator(A)||(A=e.getDirectoryPath(A)),A===""&&(A="."+e.directorySeparator),A=e.ensureTrailingDirectorySeparator(A);var fn=e.resolvePath(X,A),ze=e.hasTrailingDirectorySeparator(fn)?fn:e.getDirectoryPath(fn),Ve=!(ve.useCaseSensitiveFileNames&&ve.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(ve,ze))return Ie;var Ne=e.tryReadDirectory(ve,ze,Je,void 0,["./*"]);if(Ne){for(var be=new e.Map,de=0,Ce=Ne;de=Ce.pos&&X<=Ce.end});if(Je){var je=A.text.slice(Je.pos,X),fn=W.exec(je);if(fn){var ze=fn[1],Ve=fn[2],Ne=fn[3],be=e.getDirectoryPath(A.path),de=Ve==="path"?U(Ne,be,O(re,!0),ve,A.path):Ve==="types"?w(ve,re,be,G(Ne),O(re)):e.Debug.fail();return k(Ne,Je.pos+ze.length,de)}}}function w(A,X,re,ve,ke,Ie){Ie===void 0&&(Ie=[]);for(var Je=new e.Map,je=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(X,A)})||e.emptyArray,fn=0,ze=je;fn=2&&A.charCodeAt(0)===46){var X=A.length>=3&&A.charCodeAt(1)===46?2:1,re=A.charCodeAt(X);return re===47||re===92}return!1}var W=/^(\/\/\/\s*"),an=e.createTextSpanFromNode(me.tagName),Sn={name:Ye,kind:"class",kindModifiers:void 0,sortText:p.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:an,entries:[Sn]}}}function H(J,te,me,xe,P){e.getNameTable(J).forEach(function(Se,Ye){if(Se!==te){var an=e.unescapeLeadingUnderscores(Ye);!me.has(an)&&e.isIdentifierText(an,xe)&&(me.add(an),P.push({name:an,kind:"warning",kindModifiers:"",sortText:p.JavascriptIdentifiers,isFromUncheckedFile:!0}))}})}function $(J,te,me){return typeof me=="object"?e.pseudoBigIntToString(me)+"n":e.isString(me)?e.quote(J,te,me):JSON.stringify(me)}function Z(J,te,me){return{name:$(J,te,me),kind:"string",kindModifiers:"",sortText:p.LocationPriority}}function B(J,te,me,xe,P,Se,Ye,an,Sn,Xn,wn,qn,yr,Vr,Me,We){var Tn,Nn,Vn=e.getReplacementSpanForContextToken(me),Hn,kr,kn,Sr=Sn&&ue(Sn),Cr=Sn&&N(Sn)||an;if(Sn&&m(Sn))Nn=an?"this"+(Sr?"?.":"")+"["+K(P,We,Ye)+"]":"this"+(Sr?"?.":".")+Ye;else if((Cr||Sr)&&wn){Nn=Cr?an?"["+K(P,We,Ye)+"]":"["+Ye+"]":Ye,(Sr||wn.questionDotToken)&&(Nn="?."+Nn);var Qe=e.findChildOfKind(wn,24,P)||e.findChildOfKind(wn,28,P);if(!Qe)return;var Bn=e.startsWith(Ye,wn.name.text)?wn.name.end:Qe.end;Vn=e.createTextSpanFromBounds(Qe.getStart(P),Bn)}if(qn&&(Nn===void 0&&(Nn=Ye),Nn="{"+Nn+"}",typeof qn!="boolean"&&(Vn=e.createTextSpanFromNode(qn,P))),Sn&&z(Sn)&&wn){Nn===void 0&&(Nn=Ye);var bn=e.findPrecedingToken(wn.pos,P),In="";bn&&e.positionIsASICandidate(bn.end,bn.parent,P)&&(In=";"),In+="(await "+wn.expression.getText()+")",Nn=an?""+In+Nn:""+In+(Sr?"?.":".")+Nn,Vn=e.createTextSpanFromBounds(wn.getStart(P),wn.end)}if(c(Sn)&&(e.Debug.assertIsDefined(yr),Tn=U(Ye,yr,Sn,Vr,Me,We),Nn=Tn.insertText,Vn=Tn.replacementSpan,kn=[e.textPart(Sn.moduleSpecifier)],kr=We.includeCompletionsWithSnippetText?!0:void 0),!(Nn!==void 0&&!We.includeCompletionsWithInsertText))return(D(Sn)||c(Sn))&&(Hn={exportName:Sn.exportName,fileName:Sn.fileName,ambientModuleName:Sn.fileName?void 0:e.stripQuotes(Sn.moduleSymbol.name),isPackageJsonImport:Sn.isFromPackageJson?!0:void 0,moduleSpecifier:c(Sn)?Sn.moduleSpecifier:void 0}),{name:Ye,kind:e.SymbolDisplay.getSymbolKind(Se,J,xe),kindModifiers:e.SymbolDisplay.getSymbolModifiers(Se,J),sortText:te,source:G(Sn),hasAction:Sn&&D(Sn)||void 0,isRecommended:T(J,Xn,Se)||void 0,insertText:Nn,replacementSpan:Vn,sourceDisplay:kn,isSnippet:kr,isPackageJsonImport:se(Sn)||void 0,isImportStatementCompletion:c(Sn)||void 0,data:Hn}}function U(J,te,me,xe,P,Se){var Ye=te.getSourceFile(),an=e.createTextSpanFromNode(te,Ye),Sn=e.quote(Ye,Se,me.moduleSpecifier),Xn=me.isDefaultExport?1:me.exportName==="export="?2:0,wn=Se.includeCompletionsWithSnippetText?"$1":"",qn=e.codefix.getImportKind(Ye,Xn,P),yr=xe?";":"";switch(qn){case 3:return{replacementSpan:an,insertText:"import "+J+wn+" = require("+Sn+")"+yr};case 1:return{replacementSpan:an,insertText:"import "+J+wn+" from "+Sn+yr};case 2:return{replacementSpan:an,insertText:"import * as "+J+wn+" from "+Sn+yr};case 0:return{replacementSpan:an,insertText:"import { "+J+wn+" } from "+Sn+yr}}}function K(J,te,me){return/^\d+$/.test(me)?me:e.quote(J,te,me)}function T(J,te,me){return J===te||!!(J.flags&1048576)&&me.getExportSymbolOfSymbol(J)===te}function G(J){if(D(J))return e.stripQuotes(J.moduleSymbol.name);if(c(J))return J.moduleSpecifier;if((J==null?void 0:J.kind)===1)return g.ThisProperty}function v(J,te,me,xe,P,Se,Ye,an,Sn,Xn,wn,qn,yr,Vr,Me,We,Tn,Nn,Vn){for(var Hn=e.timestamp(),kr=yn(xe),kn=e.probablyUsesSemicolons(P),Sr=new e.Map,Cr=0;Cr-1?b(qn,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(Me)}}case"symbol":{var We=Vr.symbol,Tn=Vr.location,Nn=Vr.origin,Vn=Vr.previousToken,Hn=le(Nn,We,J,Xn,Se,wn,me,xe,Vn,Ye,an,P.data),kr=Hn.codeActions,kn=Hn.sourceDisplay;return w(We,Xn,me,Tn,Sn,kr,kn)}case"literal":{var Sr=Vr.literal;return b($(me,an,Sr),"string",typeof Sr=="string"?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral)}case"none":return Je().some(function(Cr){return Cr.name===qn})?b(qn,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(Vr)}}a.getCompletionEntryDetails=u;function b(J,te,me){return ee(J,"",te,[e.displayPart(J,me)])}function w(J,te,me,xe,P,Se,Ye){var an=te.runWithCancellationToken(P,function(yr){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(yr,J,me,xe,xe,7)}),Sn=an.displayParts,Xn=an.documentation,wn=an.symbolKind,qn=an.tags;return ee(J.name,e.SymbolDisplay.getSymbolModifiers(te,J),wn,Sn,Xn,qn,Se,Ye)}a.createCompletionDetailsForSymbol=w;function ee(J,te,me,xe,P,Se,Ye,an){return{name:J,kindModifiers:te,kind:me,displayParts:xe,documentation:P,tags:Se,codeActions:Ye,source:an,sourceDisplay:an}}a.createCompletionDetails=ee;function le(J,te,me,xe,P,Se,Ye,an,Sn,Xn,wn,qn){if(qn!=null&&qn.moduleSpecifier)return{codeActions:void 0,sourceDisplay:[e.textPart(qn.moduleSpecifier)]};if(!J||!D(J))return{codeActions:void 0,sourceDisplay:void 0};var yr=J.moduleSymbol,Vr=xe.getMergedSymbol(e.skipAlias(te.exportSymbol||te,xe)),Me=e.codefix.getImportCompletionAction(Vr,yr,Ye,e.getNameForExportedSymbol(te,Se.target),P,me,Xn,Sn&&e.isIdentifier(Sn)?Sn.getStart(Ye):an,wn),We=Me.moduleSpecifier,Tn=Me.codeAction;return{sourceDisplay:[e.textPart(We)],codeActions:[Tn]}}function ie(J,te,me,xe,P,Se,Ye){var an=_(J,te,me,xe,P,Se,Ye);return an.type==="symbol"?an.symbol:void 0}a.getCompletionEntrySymbol=ie;var W;(function(J){J[J.Data=0]="Data",J[J.JsDocTagName=1]="JsDocTagName",J[J.JsDocTag=2]="JsDocTag",J[J.JsDocParameterName=3]="JsDocParameterName",J[J.Keywords=4]="Keywords"})(W||(W={})),function(J){J[J.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",J[J.Global=1]="Global",J[J.PropertyAccess=2]="PropertyAccess",J[J.MemberLike=3]="MemberLike",J[J.String=4]="String",J[J.None=5]="None"}(a.CompletionKind||(a.CompletionKind={}));function ge(J,te,me){return e.firstDefined(te&&(te.isUnion()?te.types:[te]),function(xe){var P=xe&&xe.symbol;return P&&P.flags&424&&!e.isAbstractConstructorSymbol(P)?A(P,J,me):void 0})}function fe(J,te,me,xe){var P=J.parent;switch(J.kind){case 78:return e.getContextualTypeFromParent(J,xe);case 62:switch(P.kind){case 250:return xe.getContextualType(P.initializer);case 217:return xe.getTypeAtLocation(P.left);case 281:return xe.getContextualTypeForJsxAttribute(P);default:return}case 102:return xe.getContextualType(P);case 81:return e.getSwitchedType(e.cast(P,e.isCaseClause),xe);case 18:return e.isJsxExpression(P)&&P.parent.kind!==274?xe.getContextualTypeForJsxAttribute(P.parent):void 0;default:var Se=e.SignatureHelp.getArgumentInfoForCompletions(J,te,me);return Se?xe.getContextualTypeForArgumentAtIndex(Se.invocation,Se.argumentIndex+(J.kind===27?1:0)):e.isEqualityOperatorKind(J.kind)&&e.isBinaryExpression(P)&&e.isEqualityOperatorKind(P.operatorToken.kind)?xe.getTypeAtLocation(P.left):xe.getContextualType(J)}}function A(J,te,me){var xe=me.getAccessibleSymbolChain(J,te,67108863,!1);return xe?e.first(xe):J.parent&&(X(J.parent)?J:A(J.parent,te,me))}function X(J){var te;return!!(!((te=J.declarations)===null||te===void 0)&&te.some(function(me){return me.kind===298}))}function re(J,te,me,xe,P,Se,Ye,an){var Sn=J.getTypeChecker(),Xn=e.timestamp(),wn=e.getTokenAtPosition(me,P);te("getCompletionData: Get current token: "+(e.timestamp()-Xn)),Xn=e.timestamp();var qn=e.isInComment(me,P,wn);te("getCompletionData: Is inside comment: "+(e.timestamp()-Xn));var yr=!1,Vr=!1;if(qn){if(e.hasDocComment(me,P)){if(me.text.charCodeAt(P-1)===64)return{kind:1};var Me=e.getLineStartPositionForPosition(P,me);if(!/[^\*|\s(/)]/.test(me.text.substring(Me,P)))return{kind:2}}var We=Ce(wn,P);if(We){if(We.tagName.pos<=P&&P<=We.tagName.end)return{kind:1};if(Yr(We)&&We.typeExpression&&We.typeExpression.kind===302&&(wn=e.getTokenAtPosition(me,P),(!wn||!e.isDeclarationName(wn)&&(wn.parent.kind!==337||wn.parent.name!==wn))&&(yr=Vo(We.typeExpression))),!yr&&e.isJSDocParameterTag(We)&&(e.nodeIsMissing(We.name)||We.name.pos<=P&&P<=We.name.end))return{kind:3,tag:We}}if(!yr){te("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}Xn=e.timestamp();var Tn=e.findPrecedingToken(P,me,void 0);te("getCompletionData: Get previous token 1: "+(e.timestamp()-Xn));var Nn=Tn;if(Nn&&P<=Nn.end&&(e.isMemberName(Nn)||e.isKeyword(Nn.kind))){var Vn=e.timestamp();Nn=e.findPrecedingToken(Nn.getFullStart(),me,void 0),te("getCompletionData: Get previous token 2: "+(e.timestamp()-Vn))}var Hn=wn,kr,kn=!1,Sr=!1,Cr=!1,Qe=!1,Bn=!1,bn=!1,In,Be=e.getTouchingPropertyName(me,P);if(Nn){var Zn=we(Nn);if(Zn===153)return{kind:4,keywords:[153]};if(Zn&&Se.includeCompletionsForImportStatements&&Se.includeCompletionsWithInsertText&&(In=Zn),!In&&ii(Nn)){te("Returning an empty list because completion was requested in an invalid position.");return}var _r=Nn.parent;if(Nn.kind===24||Nn.kind===28)switch(kn=Nn.kind===24,Sr=Nn.kind===28,_r.kind){case 202:if(kr=_r,Hn=kr.expression,(e.isCallExpression(Hn)||e.isFunctionLike(Hn))&&Hn.end===Nn.pos&&Hn.getChildCount(me)&&e.last(Hn.getChildren(me)).kind!==21)return;break;case 158:Hn=_r.left;break;case 257:Hn=_r.name;break;case 196:case 227:Hn=_r;break;default:return}else if(!In&&me.languageVariant===1){if(_r&&_r.kind===202&&(Nn=_r,_r=_r.parent),wn.parent===Be)switch(wn.kind){case 31:(wn.parent.kind===274||wn.parent.kind===276)&&(Be=wn);break;case 43:wn.parent.kind===275&&(Be=wn);break}switch(_r.kind){case 277:Nn.kind===43&&(Qe=!0,Be=Nn);break;case 217:if(!vn(_r))break;case 275:case 274:case 276:bn=!0,Nn.kind===29&&(Cr=!0,Be=Nn);break;case 284:Tn.kind===19&&wn.kind===31&&(bn=!0);break;case 281:if(_r.initializer===Tn&&Tn.end0&&(Ln=Ji(Ot,e.Debug.checkDefined(Xe))),go(),1}function Ni(){var pr=Nn&&(Nn.kind===18||Nn.kind===27)?e.tryCast(Nn.parent,e.isNamedImportsOrExports):void 0;if(!pr)return 0;var Ot=(pr.kind===265?pr.parent.parent:pr.parent).moduleSpecifier;if(!Ot)return pr.kind===265?2:0;var Xe=Sn.getSymbolAtLocation(Ot);if(!Xe)return 2;Er=3,Pr=!1;var Jn=Sn.getExportsAndPropertiesOfModule(Xe),fr=new e.Set(pr.elements.filter(function(Zr){return!Vo(Zr)}).map(function(Zr){return(Zr.propertyName||Zr.name).escapedText}));return Ln=Jn.filter(function(Zr){return Zr.escapedName!=="default"&&!fr.has(Zr.escapedName)}),1}function ja(){var pr,Ot=Nn&&(Nn.kind===18||Nn.kind===27)?e.tryCast(Nn.parent,e.isNamedExports):void 0;if(!Ot)return 0;var Xe=e.findAncestor(Ot,e.or(e.isSourceFile,e.isModuleDeclaration));return Er=5,Pr=!1,(pr=Xe.locals)===null||pr===void 0||pr.forEach(function(Jn,fr){var Zr,Ae;Ln.push(Jn),!((Ae=(Zr=Xe.symbol)===null||Zr===void 0?void 0:Zr.exports)===null||Ae===void 0)&&Ae.has(fr)&&(ar[e.getSymbolId(Jn)]=p.OptionalMember)}),1}function ui(){var pr=Te(me,Nn,Be,P);if(!pr)return 0;if(Er=3,Pr=!0,mr=Nn.kind===41?0:e.isClassLike(pr)?2:3,!e.isClassLike(pr))return 1;var Ot=Nn.kind===26?Nn.parent.parent:Nn.parent,Xe=e.isClassElement(Ot)?e.getEffectiveModifierFlags(Ot):0;if(Nn.kind===78&&!Vo(Nn))switch(Nn.getText()){case"private":Xe=Xe|8;break;case"static":Xe=Xe|32;break;case"override":Xe=Xe|16384;break}if(!(Xe&8)){var Jn=e.isClassLike(pr)&&Xe&16384?e.singleElementArray(e.getEffectiveBaseTypeNode(pr)):e.getAllSuperTypeNodes(pr),fr=e.flatMap(Jn,function(Zr){var Ae=Sn.getTypeAtLocation(Zr);return Xe&32?(Ae==null?void 0:Ae.symbol)&&Sn.getPropertiesOfType(Sn.getTypeOfSymbolAtLocation(Ae.symbol,pr)):Ae&&Sn.getPropertiesOfType(Ae)});Ln=oo(fr,pr.members,Xe)}return 1}function Di(pr){if(pr){var Ot=pr.parent;switch(pr.kind){case 18:case 27:if(e.isObjectLiteralExpression(Ot)||e.isObjectBindingPattern(Ot))return Ot;break;case 41:return e.isMethodDeclaration(Ot)?e.tryCast(Ot.parent,e.isObjectLiteralExpression):void 0;case 78:return pr.text==="async"&&e.isShorthandPropertyAssignment(pr.parent)?pr.parent.parent:void 0}}}function Io(pr){return!!pr.parent&&e.isParameter(pr.parent)&&e.isConstructorDeclaration(pr.parent.parent)&&(e.isParameterPropertyModifier(pr.kind)||e.isDeclarationName(pr))}function _o(pr){if(pr){var Ot=pr.parent;switch(pr.kind){case 20:case 27:return e.isConstructorDeclaration(pr.parent)?pr.parent:void 0;default:if(Io(pr))return Ot.parent}}}function ro(pr){if(pr){var Ot,Xe=e.findAncestor(pr.parent,function(Jn){return e.isClassLike(Jn)?"quit":e.isFunctionLikeDeclaration(Jn)&&Ot===Jn.body?!0:(Ot=Jn,!1)});return Xe&&Xe}}function Zi(pr){if(pr){var Ot=pr.parent;switch(pr.kind){case 31:case 30:case 43:case 78:case 202:case 282:case 281:case 283:if(Ot&&(Ot.kind===275||Ot.kind===276)){if(pr.kind===31){var Xe=e.findPrecedingToken(pr.pos,me,void 0);if(!Ot.typeArguments||Xe&&Xe.kind===43)break}return Ot}else if(Ot.kind===281)return Ot.parent.parent;break;case 10:if(Ot&&(Ot.kind===281||Ot.kind===283))return Ot.parent.parent;break;case 19:if(Ot&&Ot.kind===284&&Ot.parent&&Ot.parent.kind===281)return Ot.parent.parent.parent;if(Ot&&Ot.kind===283)return Ot.parent.parent;break}}}function Ao(pr){var Ot=pr.parent,Xe=Ot.kind;switch(pr.kind){case 27:return Xe===250||gi(pr)||Xe===233||Xe===256||ti(Xe)||Xe===254||Xe===198||Xe===255||e.isClassLike(Ot)&&!!Ot.typeParameters&&Ot.typeParameters.end>=pr.pos;case 24:return Xe===198;case 58:return Xe===199;case 22:return Xe===198;case 20:return Xe===288||ti(Xe);case 18:return Xe===256;case 29:return Xe===253||Xe===222||Xe===254||Xe===255||e.isFunctionLikeKind(Xe);case 123:return Xe===164&&!e.isClassLike(Ot.parent);case 25:return Xe===161||!!Ot.parent&&Ot.parent.kind===198;case 122:case 120:case 121:return Xe===161&&!e.isConstructorDeclaration(Ot.parent);case 126:return Xe===266||Xe===271||Xe===264;case 134:case 146:return!Ke(pr);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 135:case 149:return!0;case 41:return e.isFunctionLike(pr.parent)&&!e.isMethodDeclaration(pr.parent)}if(Ne(de(pr))&&Ke(pr)||Io(pr)&&(!e.isIdentifier(pr)||e.isParameterPropertyModifier(de(pr))||Vo(pr)))return!1;switch(de(pr)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return e.isPropertyDeclaration(pr.parent)}var Jn=e.findAncestor(pr.parent,e.isClassLike);if(Jn&&pr===Tn&&bo(pr,P))return!1;var fr=e.getAncestor(pr.parent,164);if(fr&&pr!==Tn&&e.isClassLike(Tn.parent.parent)&&P<=Tn.end){if(bo(pr,Tn.end))return!1;if(pr.kind!==62&&(e.isInitializedProperty(fr)||e.hasType(fr)))return!0}return e.isDeclarationName(pr)&&!e.isShorthandPropertyAssignment(pr.parent)&&!e.isJsxAttribute(pr.parent)&&!(e.isClassLike(pr.parent)&&(pr!==Tn||P>Tn.end))}function bo(pr,Ot){return pr.kind!==62&&(pr.kind===26||!e.positionsAreOnSameLine(pr.end,Ot,me))}function ti(pr){return e.isFunctionLikeKind(pr)&&pr!==167}function Xt(pr){if(pr.kind===8){var Ot=pr.getFullText();return Ot.charAt(Ot.length-1)==="."}return!1}function gi(pr){return pr.parent.kind===251&&!e.isPossiblyTypeArgumentPosition(pr,me,Sn)}function Ji(pr,Ot){if(Ot.length===0)return pr;for(var Xe=new e.Set,Jn=new e.Set,fr=0,Zr=Ot;fr=0&&!I(T,G[v],114);v--);return e.forEach(x(K.statement),function(R){z(K,R)&&I(T,R.getFirstToken(),80,85)}),T}function Y(K){var T=ue(K);if(T)switch(T.kind){case 238:case 239:case 240:case 236:case 237:return j(T);case 245:return L(T)}}function L(K){var T=[];return I(T,K.getFirstToken(),106),e.forEach(K.caseBlock.clauses,function(G){I(T,G.getFirstToken(),81,87),e.forEach(x(G),function(v){z(K,v)&&I(T,v.getFirstToken(),80)})}),T}function k(K,T){var G=[];if(I(G,K.getFirstToken(),110),K.catchClause&&I(G,K.catchClause.getFirstToken(),82),K.finallyBlock){var v=e.findChildOfKind(K,95,T);I(G,v,95)}return G}function h(K,T){var G=c(K);if(G){var v=[];return e.forEach(D(G),function(R){v.push(e.findChildOfKind(R,108,T))}),e.isFunctionBlock(G)&&e.forEachReturnStatement(G,function(R){v.push(e.findChildOfKind(R,104,T))}),v}}function M(K,T){var G=e.getContainingFunction(K);if(G){var v=[];return e.forEachReturnStatement(e.cast(G.body,e.isBlock),function(R){v.push(e.findChildOfKind(R,104,T))}),e.forEach(D(G.body),function(R){v.push(e.findChildOfKind(R,108,T))}),v}}function O(K){var T=e.getContainingFunction(K);if(T){var G=[];return T.modifiers&&T.modifiers.forEach(function(v){I(G,v,129)}),e.forEachChild(T,function(v){$(v,function(R){e.isAwaitExpression(R)&&I(G,R.getFirstToken(),130)})}),G}}function H(K){var T=e.getContainingFunction(K);if(T){var G=[];return e.forEachChild(T,function(v){$(v,function(R){e.isYieldExpression(R)&&I(G,R.getFirstToken(),124)})}),G}}function $(K,T){T(K),!e.isFunctionLike(K)&&!e.isClassLike(K)&&!e.isInterfaceDeclaration(K)&&!e.isModuleDeclaration(K)&&!e.isTypeAliasDeclaration(K)&&!e.isTypeNode(K)&&e.forEachChild(K,function(G){return $(G,T)})}function Z(K,T){for(var G=B(K,T),v=[],R=0;R=F.end;b--)if(!e.isWhiteSpaceSingleLine(T.text.charCodeAt(b))){u=!1;break}if(u){v.push({fileName:T.fileName,textSpan:e.createTextSpanFromBounds(F.getStart(),_.end),kind:"reference"}),R++;continue}}v.push(g(G[R],T))}return v}function B(K,T){for(var G=[];e.isIfStatement(K.parent)&&K.parent.elseStatement===K;)K=K.parent;for(;;){var v=K.getChildren(T);I(G,v[0],98);for(var R=v.length-1;R>=0&&!I(G,v[R],90);R--);if(!K.elseStatement||!e.isIfStatement(K.elseStatement))break;K=K.elseStatement}return G}function U(K,T){return!!e.findAncestor(K.parent,function(G){return e.isLabeledStatement(G)?G.label.escapedText===T:"quit"})}})(e.DocumentHighlights||(e.DocumentHighlights={}))})(un||(un={}));var un;(function(e){function a(m){return!!m.sourceFile}function p(m,N){return g(m,N)}e.createDocumentRegistry=p;function g(m,N,D){N===void 0&&(N="");var c=new e.Map,x=e.createGetCanonicalFileName(!!m);function se(){var h=e.arrayFrom(c.keys()).filter(function(M){return M&&M.charAt(0)==="_"}).map(function(M){var O=c.get(M),H=[];return O.forEach(function($,Z){a($)?H.push({name:Z,scriptKind:$.sourceFile.scriptKind,refCount:$.languageServiceRefCount}):$.forEach(function(B,U){return H.push({name:Z,scriptKind:U,refCount:B.languageServiceRefCount})})}),H.sort(function($,Z){return Z.refCount-$.refCount}),{bucket:M,sourceFiles:H}});return JSON.stringify(h,void 0,2)}function z(h,M,O,H,$){var Z=e.toPath(h,N,x),B=t(M);return ue(h,Z,M,B,O,H,$)}function ue(h,M,O,H,$,Z,B){return j(h,M,O,H,$,Z,!0,B)}function E(h,M,O,H,$){var Z=e.toPath(h,N,x),B=t(M);return C(h,Z,M,B,O,H,$)}function C(h,M,O,H,$,Z,B){return j(h,M,O,H,$,Z,!1,B)}function I(h,M){var O=a(h)?h:h.get(e.Debug.checkDefined(M,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(M===void 0||!O||O.sourceFile.scriptKind===M,"Script kind should match provided ScriptKind:"+M+" and sourceFile.scriptKind: "+(O==null?void 0:O.sourceFile.scriptKind)+", !entry: "+!O),O}function j(h,M,O,H,$,Z,B,U){U=e.ensureScriptKind(h,U);var K=U===6?100:O.target||1,T=e.getOrUpdate(c,H,function(){return new e.Map}),G=T.get(M),v=G&&I(G,U);if(!v&&D){var R=D.getDocument(H,M);R&&(e.Debug.assert(B),v={sourceFile:R,languageServiceRefCount:0},F())}if(v)v.sourceFile.version!==Z&&(v.sourceFile=e.updateLanguageServiceSourceFile(v.sourceFile,$,Z,$.getChangeRange(v.sourceFile.scriptSnapshot)),D&&D.setDocument(H,M,v.sourceFile)),B&&v.languageServiceRefCount++;else{var R=e.createLanguageServiceSourceFile(h,$,K,Z,!1,U);D&&D.setDocument(H,M,R),v={sourceFile:R,languageServiceRefCount:1},F()}return e.Debug.assert(v.languageServiceRefCount!==0),v.sourceFile;function F(){if(!G)T.set(M,v);else if(a(G)){var _=new e.Map;_.set(G.sourceFile.scriptKind,G),_.set(U,v),T.set(M,_)}else G.set(U,v)}}function Y(h,M,O){var H=e.toPath(h,N,x),$=t(M);return L(H,$,O)}function L(h,M,O){var H=e.Debug.checkDefined(c.get(M)),$=H.get(h),Z=I($,O);Z.languageServiceRefCount--,e.Debug.assert(Z.languageServiceRefCount>=0),Z.languageServiceRefCount===0&&(a($)?H.delete(h):($.delete(O),$.size===1&&H.set(h,e.firstDefinedIterator($.values(),e.identity))))}function k(h,M){return e.arrayFrom(c.entries(),function(O){var H=O[0],$=O[1],Z=$.get(h),B=Z&&I(Z,M);return[H,B&&B.languageServiceRefCount]})}return{acquireDocument:z,acquireDocumentWithKey:ue,updateDocument:E,updateDocumentWithKey:C,releaseDocument:Y,releaseDocumentWithKey:L,getLanguageServiceRefCounts:k,reportStats:se,getKeyForCompilationSettings:t}}e.createDocumentRegistryInternal=g;function t(m){return e.sourceFileAffectingCompilerOptions.map(function(N){return e.getCompilerOptionValue(m,N)}).join("|")}})(un||(un={}));var un;(function(e){(function(a){function p(h,M,O,H){var $=D(h,O,H);return function(Z,B,U){var K=g(h,M,$,B,O,H),T=K.directImports,G=K.indirectUsers;return Nt({indirectUsers:G},t(T,Z,B.exportKind,O,U))}}a.createImportTracker=p,function(h){h[h.Named=0]="Named",h[h.Default=1]="Default",h[h.ExportEquals=2]="ExportEquals"}(a.ExportKind||(a.ExportKind={})),function(h){h[h.Import=0]="Import",h[h.Export=1]="Export"}(a.ImportExport||(a.ImportExport={}));function g(h,M,O,H,$,Z){var B=H.exportingModuleSymbol,U=H.exportKind,K=e.nodeSeenTracker(),T=e.nodeSeenTracker(),G=[],v=!!B.globalExports,R=v?void 0:[];return _(B),{directImports:G,indirectUsers:F()};function F(){if(v)return h;if(B.declarations)for(var ie=0,W=B.declarations;ie=0&&!(zn>bn.end);){var Er=zn+_r;(zn===0||!e.isIdentifierPart(Be.charCodeAt(zn-1),99))&&(Er===Zn||!e.isIdentifierPart(Be.charCodeAt(Er),99))&&In.push(zn),zn=Be.indexOf(Bn,zn+_r+1)}return In}function ye(Qe,Bn){var bn=Qe.getSourceFile(),In=Bn.text,Be=e.mapDefined(de(bn,In,Qe),function(Zn){return Zn===Bn||e.isJumpStatementTarget(Zn)&&e.getTargetLabel(Zn,In)===Bn?p(Zn):void 0});return[{definition:{type:1,node:Bn},references:Be}]}function on(Qe,Bn){switch(Qe.kind){case 79:case 78:return Qe.text.length===Bn.length;case 14:case 10:{var bn=Qe;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(bn)||e.isNameOfModuleDeclaration(Qe)||e.isExpressionOfExternalModuleImportEqualsDeclaration(Qe)||e.isCallExpression(Qe.parent)&&e.isBindableObjectDefinePropertyCall(Qe.parent)&&Qe.parent.arguments[1]===Qe)&&bn.text.length===Bn.length}case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(Qe)&&Qe.text.length===Bn.length;case 87:return Bn.length===7;default:return!1}}function Te(Qe,Bn,bn,In){var Be=e.flatMap(Qe,function(Zn){return bn.throwIfCancellationRequested(),e.mapDefined(de(Zn,e.tokenToString(Bn),Zn),function(_r){if(_r.kind===Bn&&(!In||In(_r)))return p(_r)})});return Be.length?[{definition:{type:2,node:Be[0].node},references:Be}]:void 0}function tn(Qe,Bn,bn,In){return In===void 0&&(In=!0),bn.cancellationToken.throwIfCancellationRequested(),Fe(Qe,Qe,Bn,bn,In)}function Fe(Qe,Bn,bn,In,Be){if(In.markSearchedSymbols(Bn,bn.allSearchSymbols))for(var Zn=0,_r=Ce(Bn,bn.text,Qe);Zn<_r.length;Zn++){var zn=_r[Zn];rn(Bn,zn,bn,In,Be)}}function Ke(Qe,Bn){return!!(e.getMeaningFromLocation(Qe)&Bn.searchMeaning)}function rn(Qe,Bn,bn,In,Be){var Zn=e.getTouchingPropertyName(Qe,Bn);if(!on(Zn,bn.text)){!In.options.implementations&&(In.options.findInStrings&&e.isInString(Qe,Bn)||In.options.findInComments&&e.isInNonReferenceComment(Qe,Bn))&&In.addStringOrCommentReference(Qe.fileName,e.createTextSpan(Bn,bn.text.length));return}if(Ke(Zn,In)){var _r=In.checker.getSymbolAtLocation(Zn);if(_r){var zn=Zn.parent;if(!(e.isImportSpecifier(zn)&&zn.propertyName===Zn)){if(e.isExportSpecifier(zn)){e.Debug.assert(Zn.kind===78),vn(Zn,_r,zn,bn,In,Be);return}var Er=Tn(bn,_r,Zn,In);if(!Er){we(_r,bn,In);return}switch(In.specialSearchKind){case 0:Be&&Re(Zn,Er,In);break;case 1:yn(Zn,Qe,bn,In);break;case 2:Ee(Zn,bn,In);break;default:e.Debug.assertNever(In.specialSearchKind)}_r=e.isInJSFile(Zn)&&Zn.parent.kind===199&&e.isRequireVariableDeclaration(Zn.parent)?Zn.parent.symbol:_r,Ge(Zn,_r,bn,In)}}}}function vn(Qe,Bn,bn,In,Be,Zn,_r){e.Debug.assert(!_r||!!Be.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var zn=bn.parent,Er=bn.propertyName,Pr=bn.name,tt=zn.parent,mr=xn(Qe,Bn,bn,Be.checker);if(!_r&&!In.includes(mr))return;if(Er?Qe===Er?(tt.moduleSpecifier||qr(),Zn&&Be.options.use!==2&&Be.markSeenReExportRHS(Pr)&&Re(Pr,e.Debug.checkDefined(bn.symbol),Be)):Be.markSeenReExportRHS(Qe)&&qr():Be.options.use===2&&Pr.escapedText==="default"||qr(),!Cr(Be.options)||_r){var Ln=Qe.originalKeywordKind===87||bn.name.originalKeywordKind===87,jn=Ln?1:0,ar=e.Debug.checkDefined(bn.symbol),dr=a.getExportInfo(ar,jn,Be.checker);dr&&ve(Qe,ar,dr,Be)}if(In.comingFrom!==1&&tt.moduleSpecifier&&!Er&&!Cr(Be.options)){var Rr=Be.checker.getExportSpecifierLocalTargetSymbol(bn);Rr&&Je(Rr,Be)}function qr(){Zn&&Re(Qe,mr,Be)}}function xn(Qe,Bn,bn,In){return Rn(Qe,bn)&&In.getExportSpecifierLocalTargetSymbol(bn)||Bn}function Rn(Qe,Bn){var bn=Bn.parent,In=Bn.propertyName,Be=Bn.name;return e.Debug.assert(In===Qe||Be===Qe),In?In===Qe:!bn.parent.moduleSpecifier}function Ge(Qe,Bn,bn,In){var Be=a.getImportOrExportSymbol(Qe,Bn,In.checker,bn.comingFrom===1);if(Be){var Zn=Be.symbol;Be.kind===0?Cr(In.options)||Je(Zn,In):ve(Qe,Zn,Be.exportInfo,In)}}function we(Qe,Bn,bn){var In=Qe.flags,Be=Qe.valueDeclaration,Zn=bn.checker.getShorthandAssignmentValueSymbol(Be),_r=Be&&e.getNameOfDeclaration(Be);!(In&33554432)&&_r&&Bn.includes(Zn)&&Re(_r,Zn,bn)}function Re(Qe,Bn,bn){var In="kind"in Bn?Bn:{kind:void 0,symbol:Bn},Be=In.kind,Zn=In.symbol,_r=bn.referenceAdder(Zn);bn.options.implementations?P(Qe,_r,bn):_r(Qe,Be)}function yn(Qe,Bn,bn,In){e.isNewExpressionTarget(Qe)&&Re(Qe,bn.symbol,In);var Be=function(){return In.referenceAdder(bn.symbol)};if(e.isClassLike(Qe.parent))e.Debug.assert(Qe.kind===87||Qe.parent.name===Qe),oe(bn.symbol,Bn,Be());else{var Zn=kn(Qe);Zn&&(te(Zn,Be()),xe(Zn,In))}}function Ee(Qe,Bn,bn){Re(Qe,Bn.symbol,bn);var In=Qe.parent;if(!(bn.options.use===2||!e.isClassLike(In))){e.Debug.assert(In.name===Qe);for(var Be=bn.referenceAdder(Bn.symbol),Zn=0,_r=In.members;Zn<_r.length;Zn++){var zn=_r[Zn];e.isMethodOrAccessor(zn)&&e.hasSyntacticModifier(zn,32)&&zn.body&&zn.body.forEachChild(function Er(Pr){Pr.kind===107?Be(Pr):!e.isFunctionLike(Pr)&&!e.isClassLike(Pr)&&Pr.forEachChild(Er)})}}}function oe(Qe,Bn,bn){var In=J(Qe);if(In&&In.declarations)for(var Be=0,Zn=In.declarations;Be0;tn--){var on=ye[tn];$(de,on)}return[ye.length-1,ye[0]]}function $(de,Ce){var ye=h(de,Ce);Y(c,ye),D.push(c),x.push(se),se=void 0,c=ye}function Z(){c.children&&(G(c.children,c),le(c.children)),c=D.pop(),se=x.pop()}function B(de,Ce,ye){$(de,ye),T(Ce),Z()}function U(de){de.initializer&&Ne(de.initializer)?($(de),e.forEachChild(de.initializer,T),Z()):B(de,de.initializer)}function K(de){return!e.hasDynamicName(de)||de.kind!==217&&e.isPropertyAccessExpression(de.name.expression)&&e.isIdentifier(de.name.expression.expression)&&e.idText(de.name.expression.expression)==="Symbol"}function T(de){var Ce;if(m.throwIfCancellationRequested(),!(!de||e.isToken(de)))switch(de.kind){case 167:var ye=de;B(ye,ye.body);for(var on=0,Te=ye.parameters;on0&&($(xe,an),e.forEachChild(xe.right,T),Z()):e.isFunctionExpression(xe.right)||e.isArrowFunction(xe.right)?B(de,xe.right,an):($(xe,an),B(de,xe.right,P.name),Z()),O(Ye);return}case 7:case 9:{var Sn=de,an=me===7?Sn.arguments[0]:Sn.arguments[0].expression,Xn=Sn.arguments[1],wn=H(de,an),Ye=wn[0],qn=wn[1];$(de,qn),$(de,e.setTextRange(e.factory.createIdentifier(Xn.text),Xn)),T(de.arguments[2]),Z(),Z(),O(Ye);return}case 5:{var xe=de,P=xe.left,yr=P.expression;if(e.isIdentifier(yr)&&e.getElementOrPropertyAccessName(P)!=="prototype"&&se&&se.has(yr.text)){e.isFunctionExpression(xe.right)||e.isArrowFunction(xe.right)?B(de,xe.right,yr):e.isBindableStaticAccessExpression(P)&&($(xe,yr),B(xe.left,xe.right,e.getNameOrArgument(P)),Z());return}break}case 4:case 0:case 8:break;default:e.Debug.assertNever(me)}}default:e.hasJSDocNodes(de)&&e.forEach(de.jsDoc,function(Vr){e.forEach(Vr.tags,function(Me){e.isJSDocTypeAlias(Me)&&k(Me)})}),e.forEachChild(de,T)}}function G(de,Ce){var ye=new e.Map;e.filterMutate(de,function(on,Te){var tn=on.name||e.getNameOfDeclaration(on.node),Fe=tn&&I(tn);if(!Fe)return!0;var Ke=ye.get(Fe);if(!Ke)return ye.set(Fe,on),!0;if(Ke instanceof Array){for(var rn=0,vn=Ke;rn0)return be(ye)}switch(de.kind){case 298:var on=de;return e.isExternalModule(on)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(on.fileName))))+'"':"";case 267:return e.isExportAssignment(de)&&de.isExportEquals?"export=":"default";case 210:case 252:case 209:case 253:case 222:return e.getSyntacticModifierFlags(de)&512?"default":ze(de);case 167:return"constructor";case 171:return"new()";case 170:return"()";case 172:return"[]";default:return""}}function fe(de){var Ce=[];function ye(Te){if(on(Te)&&(Ce.push(Te),Te.children))for(var tn=0,Fe=Te.children;tn0)return be(e.declarationNameToString(de.name));if(e.isVariableDeclaration(Ce))return be(e.declarationNameToString(Ce.name));if(e.isBinaryExpression(Ce)&&Ce.operatorToken.kind===62)return I(Ce.left).replace(g,"");if(e.isPropertyAssignment(Ce))return I(Ce.name);if(e.getSyntacticModifierFlags(de)&512)return"default";if(e.isClassLike(de))return"";if(e.isCallExpression(Ce)){var ye=Ve(Ce.expression);if(ye!==void 0){if(ye=be(ye),ye.length>t)return ye+" callback";var on=be(e.mapDefined(Ce.arguments,function(Te){return e.isStringLiteralLike(Te)?Te.getText(N):void 0}).join(", "));return ye+"("+on+") callback"}}return""}function Ve(de){if(e.isIdentifier(de))return de.text;if(e.isPropertyAccessExpression(de)){var Ce=Ve(de.expression),ye=de.name.text;return Ce===void 0?ye:Ce+"."+ye}else return}function Ne(de){switch(de.kind){case 210:case 209:case 222:return!0;default:return!1}}function be(de){return de=de.length>t?de.substring(0,t)+"...":de,de.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))})(un||(un={}));var un;(function(e){(function(a){function p(O,H,$,Z,B,U){var K=e.textChanges.ChangeTracker.fromContext({host:$,formatContext:H,preferences:B}),T=function(ee){return e.stableSort(N(g(ee,O,Z,U)),function(le,ie){return k(le,ie)})},G=O.statements.filter(e.isImportDeclaration);w(G,T);var v=O.statements.filter(e.isExportDeclaration);w(v,c);for(var R=0,F=O.statements.filter(e.isAmbientModule);R0?F[0]:u[0],ve=X.length===0?W?void 0:e.factory.createNamedImports(e.emptyArray):u.length===0?e.factory.createNamedImports(X):e.factory.updateNamedImports(u[0].importClause.namedBindings,X);R&&W&&ve?(K.push(x(re,W,void 0)),K.push(x((H=u[0])!==null&&H!==void 0?H:re,void 0,ve))):K.push(x(re,W,ve))}}return K}a.coalesceImports=N;function D(O){for(var H,$={defaultImports:[],namespaceImports:[],namedImports:[]},Z={defaultImports:[],namespaceImports:[],namedImports:[]},B=0,U=O;B1&&Y.push(c(k,h,"comment"))}}function c(C,I,j){return ue(e.createTextSpanFromBounds(C,I),j)}function x(C,I){switch(C.kind){case 231:if(e.isFunctionLike(C.parent))return se(C.parent,C,I);switch(C.parent.kind){case 236:case 239:case 240:case 238:case 235:case 237:case 244:case 288:return Z(C.parent);case 248:var j=C.parent;if(j.tryBlock===C)return Z(C.parent);if(j.finallyBlock===C){var Y=e.findChildOfKind(j,95,I);if(Y)return Z(Y)}default:return ue(e.createTextSpanFromNode(C,I),"code")}case 258:return Z(C.parent);case 253:case 222:case 254:case 256:case 259:case 178:case 197:return Z(C);case 180:return Z(C,!1,!e.isTupleTypeNode(C.parent),22);case 285:case 286:return B(C.statements);case 201:return $(C);case 200:return $(C,22);case 274:return h(C);case 278:return M(C);case 275:case 276:return O(C.attributes);case 219:case 14:return H(C);case 198:return Z(C,!1,!e.isBindingElement(C.parent),22);case 210:return k(C);case 204:return L(C)}function L(U){if(U.arguments.length){var K=e.findChildOfKind(U,20,I),T=e.findChildOfKind(U,21,I);if(!(!K||!T||e.positionsAreOnSameLine(K.pos,T.pos,I)))return z(K,T,U,I,!1,!0)}}function k(U){if(!(e.isBlock(U.body)||e.positionsAreOnSameLine(U.body.getFullStart(),U.body.getEnd(),I))){var K=e.createTextSpanFromBounds(U.body.getFullStart(),U.body.getEnd());return ue(K,"code",e.createTextSpanFromNode(U))}}function h(U){var K=e.createTextSpanFromBounds(U.openingElement.getStart(I),U.closingElement.getEnd()),T=U.openingElement.tagName.getText(I),G="<"+T+">...";return ue(K,"code",K,!1,G)}function M(U){var K=e.createTextSpanFromBounds(U.openingFragment.getStart(I),U.closingFragment.getEnd()),T="<>...";return ue(K,"code",K,!1,T)}function O(U){if(U.properties.length!==0)return c(U.getStart(I),U.getEnd(),"code")}function H(U){if(!(U.kind===14&&U.text.length===0))return c(U.getStart(I),U.getEnd(),"code")}function $(U,K){return K===void 0&&(K=18),Z(U,!1,!e.isArrayLiteralExpression(U.parent)&&!e.isCallExpression(U.parent),K)}function Z(U,K,T,G,v){K===void 0&&(K=!1),T===void 0&&(T=!0),G===void 0&&(G=18),v===void 0&&(v=G===18?19:23);var R=e.findChildOfKind(C,G,I),F=e.findChildOfKind(C,v,I);return R&&F&&z(R,F,U,I,K,T)}function B(U){return U.length?ue(e.createTextSpanFromRange(U),"code"):void 0}}function se(C,I,j){var Y=E(C,I,j),L=e.findChildOfKind(I,19,j);return Y&&L&&z(Y,L,C,j,C.kind!==210)}function z(C,I,j,Y,L,k){L===void 0&&(L=!1),k===void 0&&(k=!0);var h=e.createTextSpanFromBounds(k?C.getFullStart():C.getStart(Y),I.getEnd());return ue(h,"code",e.createTextSpanFromNode(j,Y),L)}function ue(C,I,j,Y,L){return j===void 0&&(j=C),Y===void 0&&(Y=!1),L===void 0&&(L="..."),{textSpan:C,kind:I,hintSpan:j,bannerText:L,autoCollapse:Y}}function E(C,I,j){if(e.isNodeArrayMultiLine(C.parameters,j)){var Y=e.findChildOfKind(C,20,j);if(Y)return Y}return e.findChildOfKind(I,18,j)}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))})(un||(un={}));var un;(function(e){var a;(function(v){v[v.exact=0]="exact",v[v.prefix=1]="prefix",v[v.substring=2]="substring",v[v.camelCase=3]="camelCase"})(a=e.PatternMatchKind||(e.PatternMatchKind={}));function p(v,R){return{kind:v,isCaseSensitive:R}}function g(v){var R=new e.Map,F=v.trim().split(".").map(function(_){return E(_.trim())});if(!F.some(function(_){return!_.subWordTextChunks.length}))return{getFullMatch:function(_,u){return t(_,u,F,R)},getMatchForLastSegmentOfPattern:function(_){return D(_,e.last(F),R)},patternContainsDots:F.length>1}}e.createPatternMatcher=g;function t(v,R,F,_){var u=D(R,e.last(F),_);if(u&&!(F.length-1>v.length)){for(var b,w=F.length-2,ee=v.length-1;w>=0;w-=1,ee-=1)b=c(b,D(v[ee],F[w],_));return b}}function m(v,R){var F=R.get(v);return F||R.set(v,F=H(v)),F}function N(v,R,F){var _=j(v,R.textLowerCase);if(_===0)return p(R.text.length===v.length?a.exact:a.prefix,e.startsWith(v,R.text));if(R.isLowerCase){if(_===-1)return;for(var u=m(v,F),b=0,w=u;b0)return p(a.substring,!0);if(R.characterSpans.length>0){var le=m(v,F),ie=ue(v,le,R,!1)?!0:ue(v,le,R,!0)?!1:void 0;if(ie!==void 0)return p(a.camelCase,ie)}}}function D(v,R,F){if(G(R.totalTextChunk.text,function(ie){return ie!==32&&ie!==42})){var _=N(v,R.totalTextChunk,F);if(_)return _}for(var u=R.subWordTextChunks,b,w=0,ee=u;w=65&&v<=90)return!0;if(v<127||!e.isUnicodeIdentifierStart(v,99))return!1;var R=String.fromCharCode(v);return R===R.toUpperCase()}function I(v){if(v>=97&&v<=122)return!0;if(v<127||!e.isUnicodeIdentifierStart(v,99))return!1;var R=String.fromCharCode(v);return R===R.toLowerCase()}function j(v,R){for(var F=v.length-R.length,_=function(w){if(G(R,function(ee,le){return Y(v.charCodeAt(le+w))===ee}))return{value:w}},u=0;u<=F;u++){var b=_(u);if(typeof b=="object")return b.value}return-1}function Y(v){return v>=65&&v<=90?97+(v-65):v<127?v:String.fromCharCode(v).toLowerCase().charCodeAt(0)}function L(v){return v>=48&&v<=57}function k(v){return C(v)||I(v)||L(v)||v===95||v===36}function h(v){for(var R=[],F=0,_=0,u=0;u0&&(R.push(M(v.substr(F,_))),_=0)}return _>0&&R.push(M(v.substr(F,_))),R}function M(v){var R=v.toLowerCase();return{text:v,textLowerCase:R,isLowerCase:v===R,characterSpans:O(v)}}function O(v){return $(v,!1)}e.breakIntoCharacterSpans=O;function H(v){return $(v,!0)}e.breakIntoWordSpans=H;function $(v,R){for(var F=[],_=0,u=1;uue)break e;var O=e.singleOrUndefined(e.getTrailingCommentRanges(E.text,h.end));if(O&&O.kind===2&&T(O.pos,O.end),g(E,ue,h)){if(e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||k&&e.isTemplateHead(k)||e.isVariableDeclarationList(h)&&e.isVariableStatement(j)||e.isSyntaxList(h)&&e.isVariableDeclarationList(j)||e.isVariableDeclaration(h)&&e.isSyntaxList(j)&&Y.length===1||e.isJSDocTypeExpression(h)||e.isJSDocSignature(h)||e.isJSDocTypeLiteral(h)){j=h;break}if(e.isTemplateSpan(j)&&M&&e.isTemplateMiddleOrTemplateTail(M)){var H=h.getFullStart()-2,$=M.getStart()+1;K(H,$)}var Z=e.isSyntaxList(h)&&x(k)&&se(M)&&!e.positionsAreOnSameLine(k.getStart(),M.getStart(),E),B=Z?k.getEnd():h.getStart(),U=Z?M.getStart():z(E,h);e.hasJSDocNodes(h)&&(!((C=h.jsDoc)===null||C===void 0)&&C.length)&&K(e.first(h.jsDoc).getStart(),U),K(B,U),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&K(B+1,U-1),j=h;break}if(L===Y.length-1)break e}}return I;function K(G,v){if(G!==v){var R=e.createTextSpanFromBounds(G,v);(!I||!e.textSpansEqual(R,I.textSpan)&&e.textSpanIntersectsWithPosition(R,ue))&&(I=Nt({textSpan:R},I&&{parent:I}))}}function T(G,v){K(G,v);for(var R=G;E.text.charCodeAt(R)===47;)R++;K(R,v)}}a.getSmartSelectionRange=p;function g(ue,E,C){if(e.Debug.assert(C.pos<=E),E0&&e.last(W).kind===27&&ge++,ge}function M(ie,W,ge,fe){return e.Debug.assert(ge>=W.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(W)?e.isInsideTemplateLiteral(W,ge,fe)?0:ie+2:ie+1}function O(ie,W,ge){var fe=e.isNoSubstitutionTemplateLiteral(ie.template)?1:ie.template.templateSpans.length+1;return W!==0&&e.Debug.assertLessThan(W,fe),{isTypeParameterList:!1,invocation:{kind:0,node:ie},argumentsSpan:$(ie,ge),argumentIndex:W,argumentCount:fe}}function H(ie,W){var ge=ie.getFullStart(),fe=e.skipTrivia(W.text,ie.getEnd(),!1);return e.createTextSpan(ge,fe-ge)}function $(ie,W){var ge=ie.template,fe=ge.getStart(),A=ge.getEnd();if(ge.kind===219){var X=e.last(ge.templateSpans);X.literal.getFullWidth()===0&&(A=e.skipTrivia(W.text,A,!1))}return e.createTextSpan(fe,A-fe)}function Z(ie,W,ge,fe,A){for(var X=function(ke){e.Debug.assert(e.rangeContainsRange(ke.parent,ke),"Not a subspan",function(){return"Child: "+e.Debug.formatSyntaxKind(ke.kind)+", parent: "+e.Debug.formatSyntaxKind(ke.parent.kind)});var Ie=E(ke,W,ge,fe);if(Ie)return{value:Ie}},re=ie;!e.isSourceFile(re)&&(A||!e.isBlock(re));re=re.parent){var ve=X(re);if(typeof ve=="object")return ve.value}}function B(ie,W,ge){var fe=ie.getChildren(ge),A=fe.indexOf(W);return e.Debug.assert(A>=0&&fe.length>A+1),fe[A+1]}function U(ie){return ie.kind===0?e.getInvokedExpression(ie.node):ie.called}function K(ie){return ie.kind===0?ie.node:ie.kind===1?ie.called:ie.node}var T=70246400;function G(ie,W,ge,fe,A,X){var re,ve=ge.isTypeParameterList,ke=ge.argumentCount,Ie=ge.argumentsSpan,Je=ge.invocation,je=ge.argumentIndex,fn=K(Je),ze=Je.kind===2?Je.symbol:A.getSymbolAtLocation(U(Je))||X&&((re=W.declaration)===null||re===void 0?void 0:re.symbol),Ve=ze?e.symbolToDisplayParts(A,ze,X?fe:void 0,void 0):e.emptyArray,Ne=e.map(ie,function(xn){return _(xn,Ve,ve,A,fn,fe)});je!==0&&e.Debug.assertLessThan(je,ke);for(var be=0,de=0,Ce=0;Ce1))for(var on=0,Te=0,tn=ye;Te=ke){be=de+on;break}on++}de+=ye.length}e.Debug.assert(be!==-1);var Ke={items:e.flatMapToMutable(Ne,e.identity),applicableSpan:Ie,selectedItemIndex:be,argumentIndex:je,argumentCount:ke},rn=Ke.items[be];if(rn.isVariadic){var vn=e.findIndex(rn.parameters,function(xn){return!!xn.isRest});-12?!1:k.arguments.length<2?!0:e.some(k.arguments,function(h){return h.kind===103||e.isIdentifier(h)&&h.text==="undefined"})}function I(k,h){switch(k.kind){case 252:case 209:case 210:a.set(j(k),!0);case 103:return!0;case 78:case 202:{var M=h.getSymbolAtLocation(k);return M?h.isUndefinedSymbol(M)||e.some(e.skipAlias(M,h).declarations,function(O){return e.isFunctionLike(O)||e.hasInitializer(O)&&!!O.initializer&&e.isFunctionLike(O.initializer)}):!1}default:return!1}}function j(k){return k.pos.toString()+":"+k.end.toString()}function Y(k,h){var M,O,H,$;if(k.kind===209){if(e.isVariableDeclaration(k.parent)&&(!((M=k.symbol.members)===null||M===void 0)&&M.size))return!0;var Z=h.getSymbolOfExpando(k,!1);return!!(Z&&(!((O=Z.exports)===null||O===void 0)&&O.size||!((H=Z.members)===null||H===void 0)&&H.size))}return k.kind===252?!!(!(($=k.symbol.members)===null||$===void 0)&&$.size):!1}function L(k){switch(k.kind){case 252:case 166:case 209:case 210:return!0;default:return!1}}e.canBeConvertedToAsync=L})(un||(un={}));var un;(function(e){(function(a){var p=70246400;function g(se,z,ue){var E=t(se,z,ue);if(E!=="")return E;var C=e.getCombinedLocalAndExportSymbolFlags(z);return C&32?e.getDeclarationOfKind(z,222)?"local class":"class":C&384?"enum":C&524288?"type":C&64?"interface":C&262144?"type parameter":C&8?"enum member":C&2097152?"alias":C&1536?"module":E}a.getSymbolKind=g;function t(se,z,ue){var E=se.getRootSymbols(z);if(E.length===1&&e.first(E).flags&8192&&se.getTypeOfSymbolAtLocation(z,ue).getNonNullableType().getCallSignatures().length!==0)return"method";if(se.isUndefinedSymbol(z))return"var";if(se.isArgumentsSymbol(z))return"local var";if(ue.kind===107&&e.isExpression(ue))return"parameter";var C=e.getCombinedLocalAndExportSymbolFlags(z);if(C&3)return e.isFirstDeclarationOfSymbolParameter(z)?"parameter":z.valueDeclaration&&e.isVarConst(z.valueDeclaration)?"const":e.forEach(z.declarations,e.isLet)?"let":x(z)?"local var":"var";if(C&16)return x(z)?"local function":"function";if(C&32768)return"getter";if(C&65536)return"setter";if(C&8192)return"method";if(C&16384)return"constructor";if(C&4){if(C&33554432&&z.checkFlags&6){var I=e.forEach(se.getRootSymbols(z),function(Y){var L=Y.getFlags();if(L&98311)return"property"});if(!I){var j=se.getTypeOfSymbolAtLocation(z,ue);return j.getCallSignatures().length?"method":"property"}return I}switch(ue.parent&&ue.parent.kind){case 276:case 274:case 275:return ue.kind===78?"property":"JSX attribute";case 281:return"JSX attribute";default:return"property"}}return""}function m(se){return!!(e.getCombinedNodeFlagsAlwaysIncludeJSDoc(se)&8192)}function N(se){if(se.declarations&&se.declarations.length){var z=se.declarations,ue=z[0],E=z.slice(1),C=e.length(E)&&m(ue)&&e.some(E,function(j){return!m(j)})?8192:0,I=e.getNodeModifiers(ue,C);if(I)return I.split(",")}return[]}function D(se,z){if(!z)return"";var ue=new e.Set(N(z));if(z.flags&2097152){var E=se.getAliasedSymbol(z);E!==z&&e.forEach(N(E),function(C){ue.add(C)})}return z.flags&16777216&&ue.add("optional"),ue.size>0?e.arrayFrom(ue.values()).join(","):""}a.getSymbolModifiers=D;function c(se,z,ue,E,C,I,j){var Y;I===void 0&&(I=e.getMeaningFromLocation(C));var L=[],k=[],h=[],M=e.getCombinedLocalAndExportSymbolFlags(z),O=I&1?t(se,z,C):"",H=!1,$=C.kind===107&&e.isInExpressionContext(C),Z,B,U,K,T=!1;if(C.kind===107&&!$)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(O!==""||M&32||M&2097152){(O==="getter"||O==="setter")&&(O="property");var G=void 0;if(Z=$?se.getTypeAtLocation(C):se.getTypeOfSymbolAtLocation(z,C),C.parent&&C.parent.kind===202){var v=C.parent.name;(v===C||v&&v.getFullWidth()===0)&&(C=C.parent)}var R=void 0;if(e.isCallOrNewExpression(C)?R=C:(e.isCallExpressionTarget(C)||e.isNewExpressionTarget(C)||C.parent&&(e.isJsxOpeningLikeElement(C.parent)||e.isTaggedTemplateExpression(C.parent))&&e.isFunctionLike(z.valueDeclaration))&&(R=C.parent),R){G=se.getResolvedSignature(R);var F=R.kind===205||e.isCallExpression(R)&&R.expression.kind===105,_=F?Z.getConstructSignatures():Z.getCallSignatures();if(G&&!e.contains(_,G.target)&&!e.contains(_,G)&&(G=_.length?_[0]:void 0),G){switch(F&&M&32?(O="constructor",de(Z.symbol,O)):M&2097152?(O="alias",Ce(O),L.push(e.spacePart()),F&&(G.flags&4&&(L.push(e.keywordPart(125)),L.push(e.spacePart())),L.push(e.keywordPart(102)),L.push(e.spacePart())),be(z)):de(z,O),O){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":L.push(e.punctuationPart(58)),L.push(e.spacePart()),!(e.getObjectFlags(Z)&16)&&Z.symbol&&(e.addRange(L,e.symbolToDisplayParts(se,Z.symbol,E,void 0,5)),L.push(e.lineBreakPart())),F&&(G.flags&4&&(L.push(e.keywordPart(125)),L.push(e.spacePart())),L.push(e.keywordPart(102)),L.push(e.spacePart())),ye(G,_,262144);break;default:ye(G,_)}H=!0,T=_.length>1}}else if(e.isNameOfFunctionDeclaration(C)&&!(M&98304)||C.kind===132&&C.parent.kind===167){var u=C.parent,b=z.declarations&&e.find(z.declarations,function(Te){return Te===(C.kind===132?u.parent:u)});if(b){var _=u.kind===167?Z.getNonNullableType().getConstructSignatures():Z.getNonNullableType().getCallSignatures();se.isImplementationOfOverload(u)?G=_[0]:G=se.getSignatureFromDeclaration(u),u.kind===167?(O="constructor",de(Z.symbol,O)):de(u.kind===170&&!(Z.symbol.flags&2048||Z.symbol.flags&4096)?Z.symbol:z,O),G&&ye(G,_),H=!0,T=_.length>1}}}if(M&32&&!H&&!$&&(Ve(),e.getDeclarationOfKind(z,222)?Ce("local class"):L.push(e.keywordPart(83)),L.push(e.spacePart()),be(z),on(z,ue)),M&64&&I&2&&(ze(),L.push(e.keywordPart(117)),L.push(e.spacePart()),be(z),on(z,ue)),M&524288&&I&2&&(ze(),L.push(e.keywordPart(149)),L.push(e.spacePart()),be(z),on(z,ue),L.push(e.spacePart()),L.push(e.operatorPart(62)),L.push(e.spacePart()),e.addRange(L,e.typeToDisplayParts(se,se.getDeclaredTypeOfSymbol(z),E,8388608))),M&384&&(ze(),e.some(z.declarations,function(Te){return e.isEnumDeclaration(Te)&&e.isEnumConst(Te)})&&(L.push(e.keywordPart(84)),L.push(e.spacePart())),L.push(e.keywordPart(91)),L.push(e.spacePart()),be(z)),M&1536&&!$){ze();var w=e.getDeclarationOfKind(z,257),ee=w&&w.name&&w.name.kind===78;L.push(e.keywordPart(ee?140:139)),L.push(e.spacePart()),be(z)}if(M&262144&&I&2)if(ze(),L.push(e.punctuationPart(20)),L.push(e.textPart("type parameter")),L.push(e.punctuationPart(21)),L.push(e.spacePart()),be(z),z.parent)Ne(),be(z.parent,E),on(z.parent,E);else{var le=e.getDeclarationOfKind(z,160);if(le===void 0)return e.Debug.fail();var w=le.parent;if(w)if(e.isFunctionLikeKind(w.kind)){Ne();var G=se.getSignatureFromDeclaration(w);w.kind===171?(L.push(e.keywordPart(102)),L.push(e.spacePart())):w.kind!==170&&w.name&&be(w.symbol),e.addRange(L,e.signatureToDisplayParts(se,G,ue,32))}else w.kind===255&&(Ne(),L.push(e.keywordPart(149)),L.push(e.spacePart()),be(w.symbol),on(w.symbol,ue))}if(M&8){O="enum member",de(z,"enum member");var w=(Y=z.declarations)===null||Y===void 0?void 0:Y[0];if((w==null?void 0:w.kind)===292){var ie=se.getConstantValue(w);ie!==void 0&&(L.push(e.spacePart()),L.push(e.operatorPart(62)),L.push(e.spacePart()),L.push(e.displayPart(e.getTextOfConstantValue(ie),typeof ie=="number"?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(z.flags&2097152){if(ze(),!H){var W=se.getAliasedSymbol(z);if(W!==z&&W.declarations&&W.declarations.length>0){var ge=W.declarations[0],fe=e.getNameOfDeclaration(ge);if(fe){var A=e.isModuleWithStringLiteralName(ge)&&e.hasSyntacticModifier(ge,2),X=z.name!=="default"&&!A,re=c(se,W,e.getSourceFileOfNode(ge),ge,fe,I,X?z:W);L.push.apply(L,re.displayParts),L.push(e.lineBreakPart()),U=re.documentation,K=re.tags}else U=W.getContextualDocumentationComment(ge,se),K=W.getJsDocTags(se)}}if(z.declarations)switch(z.declarations[0].kind){case 260:L.push(e.keywordPart(92)),L.push(e.spacePart()),L.push(e.keywordPart(140));break;case 267:L.push(e.keywordPart(92)),L.push(e.spacePart()),L.push(e.keywordPart(z.declarations[0].isExportEquals?62:87));break;case 271:L.push(e.keywordPart(92));break;default:L.push(e.keywordPart(99))}L.push(e.spacePart()),be(z),e.forEach(z.declarations,function(Te){if(Te.kind===261){var tn=Te;if(e.isExternalModuleImportEqualsDeclaration(tn))L.push(e.spacePart()),L.push(e.operatorPart(62)),L.push(e.spacePart()),L.push(e.keywordPart(143)),L.push(e.punctuationPart(20)),L.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(tn)),e.SymbolDisplayPartKind.stringLiteral)),L.push(e.punctuationPart(21));else{var Fe=se.getSymbolAtLocation(tn.moduleReference);Fe&&(L.push(e.spacePart()),L.push(e.operatorPart(62)),L.push(e.spacePart()),be(Fe,E))}return!0}})}if(!H)if(O!==""){if(Z){if($?(ze(),L.push(e.keywordPart(107))):de(z,O),O==="property"||O==="JSX attribute"||M&3||O==="local var"||$){if(L.push(e.punctuationPart(58)),L.push(e.spacePart()),Z.symbol&&Z.symbol.flags&262144){var ve=e.mapToDisplayParts(function(Te){var tn=se.typeParameterToDeclaration(Z,E,p);fn().writeNode(4,tn,e.getSourceFileOfNode(e.getParseTreeNode(E)),Te)});e.addRange(L,ve)}else e.addRange(L,e.typeToDisplayParts(se,Z,E));if(z.target&&z.target.tupleLabelDeclaration){var ke=z.target.tupleLabelDeclaration;e.Debug.assertNode(ke.name,e.isIdentifier),L.push(e.spacePart()),L.push(e.punctuationPart(20)),L.push(e.textPart(e.idText(ke.name))),L.push(e.punctuationPart(21))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||O==="method"){var _=Z.getNonNullableType().getCallSignatures();_.length&&(ye(_[0],_),T=_.length>1)}}}else O=g(se,z,C);if(k.length===0&&!T&&(k=z.getContextualDocumentationComment(E,se)),k.length===0&&M&4&&z.parent&&z.declarations&&e.forEach(z.parent.declarations,function(Te){return Te.kind===298}))for(var Ie=0,Je=z.declarations;Ie0))break}}return h.length===0&&!T&&(h=z.getJsDocTags(se)),k.length===0&&U&&(k=U),h.length===0&&K&&(h=K),{displayParts:L,documentation:k,symbolKind:O,tags:h.length===0?void 0:h};function fn(){return B||(B=e.createPrinter({removeComments:!0})),B}function ze(){L.length&&L.push(e.lineBreakPart()),Ve()}function Ve(){j&&(Ce("alias"),L.push(e.spacePart()))}function Ne(){L.push(e.spacePart()),L.push(e.keywordPart(100)),L.push(e.spacePart())}function be(Te,tn){j&&Te===z&&(Te=j);var Fe=e.symbolToDisplayParts(se,Te,tn||ue,void 0,7);e.addRange(L,Fe),z.flags&16777216&&L.push(e.punctuationPart(57))}function de(Te,tn){ze(),tn&&(Ce(tn),Te&&!e.some(Te.declarations,function(Fe){return e.isArrowFunction(Fe)||(e.isFunctionExpression(Fe)||e.isClassExpression(Fe))&&!Fe.name})&&(L.push(e.spacePart()),be(Te)))}function Ce(Te){switch(Te){case"var":case"function":case"let":case"const":case"constructor":L.push(e.textOrKeywordPart(Te));return;default:L.push(e.punctuationPart(20)),L.push(e.textOrKeywordPart(Te)),L.push(e.punctuationPart(21));return}}function ye(Te,tn,Fe){Fe===void 0&&(Fe=0),e.addRange(L,e.signatureToDisplayParts(se,Te,E,Fe|32)),tn.length>1&&(L.push(e.spacePart()),L.push(e.punctuationPart(20)),L.push(e.operatorPart(39)),L.push(e.displayPart((tn.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),L.push(e.spacePart()),L.push(e.textPart(tn.length===2?"overload":"overloads")),L.push(e.punctuationPart(21))),k=Te.getDocumentationComment(se),h=Te.getJsDocTags(),tn.length>1&&k.length===0&&h.length===0&&(k=tn[0].getDocumentationComment(se),h=tn[0].getJsDocTags())}function on(Te,tn){var Fe=e.mapToDisplayParts(function(Ke){var rn=se.symbolToTypeParameterDeclarations(Te,tn,p);fn().writeList(53776,rn,e.getSourceFileOfNode(e.getParseTreeNode(tn)),Ke)});e.addRange(L,Fe)}}a.getSymbolDisplayPartsDocumentationAndSymbolKind=c;function x(se){return se.parent?!1:e.forEach(se.declarations,function(z){if(z.kind===209)return!0;if(z.kind!==250&&z.kind!==252)return!1;for(var ue=z.parent;!e.isFunctionBlock(ue);ue=ue.parent)if(ue.kind===298||ue.kind===258)return!1;return!0})}})(e.SymbolDisplay||(e.SymbolDisplay={}))})(un||(un={}));var un;(function(e){function a(m,N){var D=[],c=N.compilerOptions?t(N.compilerOptions,D):{},x=e.getDefaultCompilerOptions();for(var se in x)e.hasProperty(x,se)&&c[se]===void 0&&(c[se]=x[se]);for(var z=0,ue=e.transpileOptionValueCompilerOptions;z>=x;return L}function I(j,Y){var L=(j>>Y&se)+1;return e.Debug.assert((L&se)===L,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),j&~(se<=v.length)return!1;var u=v[R];if(_.end<=u.start)return!1;if(e.startEndOverlapsWithStartEnd(_.pos,_.end,u.start,u.start+u.length))return!0;R++}};function F(){return!1}}function I(T,G,v){var R=T.getStart(v);if(R===G.pos&&T.end===G.end)return R;var F=e.findPrecedingToken(G.pos,v);return!F||F.end>=G.pos?T.pos:F.end}function j(T,G,v){for(var R=-1,F;T;){var _=v.getLineAndCharacterOfPosition(T.getStart(v)).line;if(R!==-1&&_!==R)break;if(a.SmartIndenter.shouldIndentChildNode(G,T,F,v))return G.indentSize;R=_,F=T,T=T.parent}return 0}function Y(T,G,v,R,F,_){var u={pos:0,end:G.text.length};return a.getFormattingScanner(G.text,v,u.pos,u.end,function(b){return h(u,T,R,F,b,_,1,function(w){return!1},G)})}a.formatNodeGivenIndentation=Y;function L(T,G,v,R){if(!T)return[];var F={pos:e.getLineStartPositionForPosition(T.getStart(G),G),end:T.end};return k(F,G,v,R)}function k(T,G,v,R){var F=E(T,G);return a.getFormattingScanner(G.text,G.languageVariant,I(F,T,G),T.end,function(_){return h(T,F,a.SmartIndenter.getIndentationForNode(F,T,G,v.options),j(F,v.options,G),_,v,R,C(G.parseDiagnostics,T),G)})}function h(T,G,v,R,F,_,u,b,w){var ee=_.options,le=_.getRules,ie=_.host,W=new a.FormattingContext(w,u,ee),ge,fe,A,X,re=-1,ve=[];if(F.advance(),F.isOnToken()){var ke=w.getLineAndCharacterOfPosition(G.getStart(w)).line,Ie=ke;G.decorators&&(Ie=w.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(G,w)).line),be(G,G,ke,Ie,v,R)}if(!F.isOnToken()){var Je=a.SmartIndenter.nodeWillIndentChild(ee,G,void 0,w,!1)?v+ee.indentSize:v,je=F.getCurrentLeadingTrivia();je&&de(je,Je,!1,function(yn){return ye(yn,w.getLineAndCharacterOfPosition(yn.pos),G,G,void 0)})}return ee.trimTrailingWhitespace!==!1&&xn(),ve;function fn(yn,Ee,oe,J,te){if(e.rangeOverlapsWithStartEnd(J,yn,Ee)||e.rangeContainsStartEnd(J,yn,Ee)){if(te!==-1)return te}else{var me=w.getLineAndCharacterOfPosition(yn).line,xe=e.getLineStartPositionForPosition(yn,w),P=a.SmartIndenter.findFirstNonWhitespaceColumn(xe,yn,w,ee);if(me!==oe||yn===P){var Se=a.SmartIndenter.getBaseIndentation(ee);return Se>P?Se:P}}return-1}function ze(yn,Ee,oe,J,te,me){var xe=a.SmartIndenter.shouldIndentChildNode(ee,yn)?ee.indentSize:0;return me===Ee?{indentation:Ee===X?re:te.getIndentation(),delta:Math.min(ee.indentSize,te.getDelta(yn)+xe)}:oe===-1?yn.kind===20&&Ee===X?{indentation:re,delta:te.getDelta(yn)}:a.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(J,yn,Ee,w)||a.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(J,yn,Ee,w)||a.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(J,yn,Ee,w)?{indentation:te.getIndentation(),delta:xe}:{indentation:te.getIndentation()+te.getDelta(yn),delta:xe}:{indentation:oe,delta:xe}}function Ve(yn){if(yn.modifiers&&yn.modifiers.length)return yn.modifiers[0].kind;switch(yn.kind){case 253:return 83;case 254:return 117;case 252:return 97;case 256:return 256;case 168:return 134;case 169:return 146;case 166:if(yn.asteriskToken)return 41;case 164:case 161:var Ee=e.getNameOfDeclaration(yn);if(Ee)return Ee.kind}}function Ne(yn,Ee,oe,J){return{getIndentationForComment:function(xe,P,Se){switch(xe){case 19:case 23:case 21:return oe+me(Se)}return P!==-1?P:oe},getIndentationForToken:function(xe,P,Se,Ye){return!Ye&&te(xe,P,Se)?oe+me(Se):oe},getIndentation:function(){return oe},getDelta:me,recomputeIndentation:function(xe,P){a.SmartIndenter.shouldIndentChildNode(ee,P,yn,w)&&(oe+=xe?ee.indentSize:-ee.indentSize,J=a.SmartIndenter.shouldIndentChildNode(ee,yn)?ee.indentSize:0)}};function te(xe,P,Se){switch(P){case 18:case 19:case 21:case 90:case 114:case 59:return!1;case 43:case 31:switch(Se.kind){case 276:case 277:case 275:case 224:return!1}break;case 22:case 23:if(Se.kind!==191)return!1;break}return Ee!==xe&&!(yn.decorators&&P===Ve(yn))}function me(xe){return a.SmartIndenter.nodeWillIndentChild(ee,yn,xe,w,!0)?J:0}}function be(yn,Ee,oe,J,te,me){if(!e.rangeOverlapsWithStartEnd(T,yn.getStart(w),yn.getEnd()))return;var xe=Ne(yn,oe,te,me),P=Ee;for(e.forEachChild(yn,function(wn){an(wn,-1,yn,xe,oe,J,!1)},function(wn){Sn(wn,yn,oe,xe)});F.isOnToken();){var Se=F.readTokenInfo(yn);if(Se.token.end>yn.end)break;Xn(Se,yn,xe,yn)}if(!yn.parent&&F.isOnEOF()){var Ye=F.readEOFTokenRange();Ye.end<=yn.end&&ge&&on(Ye,w.getLineAndCharacterOfPosition(Ye.pos).line,yn,ge,A,fe,Ee,xe)}function an(wn,qn,yr,Vr,Me,We,Tn,Nn){var Vn=wn.getStart(w),Hn=w.getLineAndCharacterOfPosition(Vn).line,kr=Hn;wn.decorators&&(kr=w.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(wn,w)).line);var kn=-1;if(Tn&&e.rangeContainsRange(T,yr)&&(kn=fn(Vn,wn.end,Me,T,qn),kn!==-1&&(qn=kn)),!e.rangeOverlapsWithStartEnd(T,wn.pos,wn.end))return wn.endVn){Sr.token.pos>Vn&&F.skipToStartOf(wn);break}Xn(Sr,yn,Vr,yn)}if(!F.isOnToken())return qn;if(e.isToken(wn)){var Sr=F.readTokenInfo(wn);if(wn.kind!==11)return e.Debug.assert(Sr.token.end===wn.end,"Token end is child end"),Xn(Sr,yn,Vr,wn),qn}var Cr=wn.kind===162?Hn:We,Qe=ze(wn,Hn,kn,yn,Vr,Cr);return be(wn,P,Hn,kr,Qe.indentation,Qe.delta),P=yn,Nn&&yr.kind===200&&qn===-1&&(qn=Qe.indentation),qn}function Sn(wn,qn,yr,Vr){e.Debug.assert(e.isNodeArray(wn));var Me=H(qn,wn),We=Vr,Tn=yr;if(Me!==0)for(;F.isOnToken();){var Nn=F.readTokenInfo(qn);if(Nn.token.end>wn.pos)break;if(Nn.token.kind===Me){Tn=w.getLineAndCharacterOfPosition(Nn.token.pos).line,Xn(Nn,qn,Vr,qn);var Vn=void 0;if(re!==-1)Vn=re;else{var Hn=e.getLineStartPositionForPosition(Nn.token.pos,w);Vn=a.SmartIndenter.findFirstNonWhitespaceColumn(Hn,Nn.token.pos,w,ee)}We=Ne(qn,yr,Vn,ee.indentSize)}else Xn(Nn,qn,Vr,qn)}for(var kr=-1,kn=0;kn0){var We=K(Me,ee);Ge(yr,Vr.character,We)}else Rn(yr,Vr.character)}}}function rn(yn,Ee,oe){for(var J=yn;Jme)){var xe=vn(te,me);xe!==-1&&(e.Debug.assert(xe===te||!e.isWhiteSpaceSingleLine(w.text.charCodeAt(xe-1))),Rn(xe,me+1-xe))}}}function vn(yn,Ee){for(var oe=Ee;oe>=yn&&e.isWhiteSpaceSingleLine(w.text.charCodeAt(oe));)oe--;return oe!==Ee?oe+1:-1}function xn(){var yn=ge?ge.end:T.pos,Ee=w.getLineAndCharacterOfPosition(yn).line,oe=w.getLineAndCharacterOfPosition(T.end).line;rn(Ee,oe+1,ge)}function Rn(yn,Ee){Ee&&ve.push(e.createTextChangeFromStartLength(yn,Ee,""))}function Ge(yn,Ee,oe){(Ee||oe)&&ve.push(e.createTextChangeFromStartLength(yn,Ee,oe))}function we(yn,Ee){ve.push(e.createTextChangeFromStartLength(yn,0,Ee))}function Re(yn,Ee,oe,J,te){var me=te!==oe;switch(yn.action){case 1:return 0;case 16:if(Ee.end!==J.pos)return Rn(Ee.end,J.pos-Ee.end),me?2:0;break;case 32:Rn(Ee.pos,Ee.end-Ee.pos);break;case 8:if(yn.flags!==1&&oe!==te)return 0;var xe=te-oe;if(xe!==1)return Ge(Ee.end,J.pos-Ee.end,e.getNewLineOrDefaultFromHost(ie,ee)),me?0:1;break;case 4:if(yn.flags!==1&&oe!==te)return 0;var P=J.pos-Ee.end;if(P!==1||w.text.charCodeAt(Ee.end)!==32)return Ge(Ee.end,J.pos-Ee.end," "),me?2:0;break;case 64:we(Ee.end,";")}return 0}}var M;(function(T){T[T.None=0]="None",T[T.LineAdded=1]="LineAdded",T[T.LineRemoved=2]="LineRemoved"})(M||(M={}));function O(T,G,v,R){R===void 0&&(R=e.getTokenAtPosition(T,G));var F=e.findAncestor(R,e.isJSDoc);F&&(R=F.parent);var _=R.getStart(T);if(!(_<=G&&Gb.text.length)return x(w);if(w.indentStyle===e.IndentStyle.None)return 0;var le=e.findPrecedingToken(u,b,void 0,!0),ie=a.getRangeOfEnclosingComment(b,u,le||null);if(ie&&ie.kind===3)return m(b,u,w,ie);if(!le)return x(w);var W=e.isStringOrRegularExpressionOrTemplateLiteral(le.kind);if(W&&le.getStart(b)<=u&&u=0),le<=ie)return G(e.getStartPositionOfLine(ie,u),b,u,w);var W=e.getStartPositionOfLine(le,u),ge=T(W,b,u,w),fe=ge.column,A=ge.character;if(fe===0)return fe;var X=u.text.charCodeAt(W+A);return X===42?fe-1:fe}function N(u,b,w){for(var ee=b;ee>0;){var le=u.text.charCodeAt(ee);if(!e.isWhiteSpaceLike(le))break;ee--}var ie=e.getLineStartPositionForPosition(ee,u);return G(ie,ee,u,w)}function D(u,b,w,ee,le,ie){for(var W,ge=w;ge;){if(e.positionBelongsToNode(ge,b,u)&&F(ie,ge,W,u,!0)){var fe=j(ge,u),A=I(w,ge,ee,u),X=A!==0?le&&A===2?ie.indentSize:0:ee!==fe.line?ie.indentSize:0;return se(ge,fe,void 0,X,u,!0,ie)}var re=B(ge,u,ie,!0);if(re!==-1)return re;W=ge,ge=ge.parent}return x(ie)}function c(u,b,w,ee){var le=w.getLineAndCharacterOfPosition(u.getStart(w));return se(u,le,b,0,w,!1,ee)}p.getIndentationForNode=c;function x(u){return u.baseIndentSize||0}p.getBaseIndentation=x;function se(u,b,w,ee,le,ie,W){for(var ge,fe=u.parent;fe;){var A=!0;if(w){var X=u.getStart(le);A=Xw.end}var re=z(fe,u,le),ve=re.line===b.line||L(fe,u,b.line,le);if(A){var ke=(ge=M(u,le))===null||ge===void 0?void 0:ge[0],Ie=!!ke&&j(ke,le).line>re.line,Je=B(u,le,W,Ie);if(Je!==-1||(Je=E(u,fe,b,ve,le,W),Je!==-1))return Je+ee}F(W,fe,u,le,ie)&&!ve&&(ee+=W.indentSize);var je=Y(fe,u,b.line,le);u=fe,fe=u.parent,b=je?le.getLineAndCharacterOfPosition(u.getStart(le)):re}return ee+x(W)}function z(u,b,w){var ee=M(b,w),le=ee?ee.pos:u.getStart(w);return w.getLineAndCharacterOfPosition(le)}function ue(u,b,w){var ee=e.findListItemInfo(u);return ee&&ee.listItemIndex>0?U(ee.list.getChildren(),ee.listItemIndex-1,b,w):-1}function E(u,b,w,ee,le,ie){var W=(e.isDeclaration(u)||e.isStatementButNotDeclaration(u))&&(b.kind===298||!ee);return W?K(w,le,ie):-1}var C;(function(u){u[u.Unknown=0]="Unknown",u[u.OpenBrace=1]="OpenBrace",u[u.CloseBrace=2]="CloseBrace"})(C||(C={}));function I(u,b,w,ee){var le=e.findNextToken(u,b,ee);if(!le)return 0;if(le.kind===18)return 1;if(le.kind===19){var ie=j(le,ee).line;return w===ie?2:0}return 0}function j(u,b){return b.getLineAndCharacterOfPosition(u.getStart(b))}function Y(u,b,w,ee){if(!(e.isCallExpression(u)&&e.contains(u.arguments,b)))return!1;var le=u.expression.getEnd(),ie=e.getLineAndCharacterOfPosition(ee,le).line;return ie===w}p.isArgumentAndStartLineOverlapsExpressionBeingCalled=Y;function L(u,b,w,ee){if(u.kind===235&&u.elseStatement===b){var le=e.findChildOfKind(u,90,ee);e.Debug.assert(le!==void 0);var ie=j(le,ee).line;return ie===w}return!1}p.childStartsOnTheSameLineWithElseInIfStatement=L;function k(u,b,w,ee){if(e.isConditionalExpression(u)&&(b===u.whenTrue||b===u.whenFalse)){var le=e.getLineAndCharacterOfPosition(ee,u.condition.end).line;if(b===u.whenTrue)return w===le;var ie=j(u.whenTrue,ee).line,W=e.getLineAndCharacterOfPosition(ee,u.whenTrue.end).line;return le===ie&&W===w}return!1}p.childIsUnindentedBranchOfConditionalExpression=k;function h(u,b,w,ee){if(e.isCallOrNewExpression(u)){if(!u.arguments)return!1;var le=e.find(u.arguments,function(fe){return fe.pos===b.pos});if(!le)return!1;var ie=u.arguments.indexOf(le);if(ie===0)return!1;var W=u.arguments[ie-1],ge=e.getLineAndCharacterOfPosition(ee,W.getEnd()).line;if(w===ge)return!0}return!1}p.argumentStartsOnSameLineAsPreviousArgument=h;function M(u,b){return u.parent&&H(u.getStart(b),u.getEnd(),u.parent,b)}p.getContainingList=M;function O(u,b,w){return b&&H(u,u,b,w)}function H(u,b,w,ee){switch(w.kind){case 174:return le(w.typeArguments);case 201:return le(w.properties);case 200:return le(w.elements);case 178:return le(w.members);case 252:case 209:case 210:case 166:case 165:case 170:case 167:case 176:case 171:return le(w.typeParameters)||le(w.parameters);case 253:case 222:case 254:case 255:case 334:return le(w.typeParameters);case 205:case 204:return le(w.typeArguments)||le(w.arguments);case 251:return le(w.declarations);case 265:case 269:return le(w.elements);case 197:case 198:return le(w.elements)}function le(ie){return ie&&e.rangeContainsStartEnd($(w,ie,ee),u,b)?ie:void 0}}function $(u,b,w){for(var ee=u.getChildren(w),le=1;le=0&&b=0;W--)if(u[W].kind!==27){var ge=w.getLineAndCharacterOfPosition(u[W].end).line;if(ge!==ie.line)return K(ie,w,ee);ie=j(u[W],w)}return-1}function K(u,b,w){var ee=b.getPositionOfLineAndCharacter(u.line,0);return G(ee,ee+u.character,b,w)}function T(u,b,w,ee){for(var le=0,ie=0,W=u;W0?1:0,Ie=e.getStartPositionOfLine(e.getLineOfLocalPosition(u,X)+ke,u);return Ie=c(u.text,Ie),e.getStartPositionOfLine(e.getLineOfLocalPosition(u,Ie),u)}function C(u,b,w){var ee=b.end,le=w.trailingTriviaOption;if(le===D.Include){var ie=e.getTrailingCommentRanges(u.text,ee);if(ie)for(var W=e.getLineOfLocalPosition(u,b.end),ge=0,fe=ie;geW)break;var X=e.getLineOfLocalPosition(u,A.end);if(X>W)return e.skipTrivia(u.text,A.end,!0,!0)}}}function I(u,b,w){var ee,le=b.end,ie=w.trailingTriviaOption;if(ie===D.Exclude)return le;if(ie===D.ExcludeWhitespace){var W=e.concatenate(e.getTrailingCommentRanges(u.text,le),e.getLeadingCommentRanges(u.text,le)),ge=(ee=W==null?void 0:W[W.length-1])===null||ee===void 0?void 0:ee.end;return ge||le}var fe=C(u,b,w);if(fe)return fe;var A=e.skipTrivia(u.text,le,!0);return A!==le&&(ie===D.Include||e.isLineBreak(u.text.charCodeAt(A-1)))?A:le}function j(u,b){return!!b&&!!u.parent&&(b.kind===27||b.kind===26&&u.parent.kind===201)}function Y(u){return e.isFunctionExpression(u)||e.isFunctionDeclaration(u)}a.isThisTypeAnnotatable=Y;var L=function(){function u(b,w){this.newLineCharacter=b,this.formatContext=w,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return u.fromContext=function(b){return new u(e.getNewLineOrDefaultFromHost(b.host,b.formatContext.options),b.formatContext)},u.with=function(b,w){var ee=u.fromContext(b);return w(ee),ee.getChanges()},u.prototype.pushRaw=function(b,w){e.Debug.assertEqual(b.fileName,w.fileName);for(var ee=0,le=w.textChanges;ee",joiner:", "})},u.prototype.getOptionsForInsertNodeBefore=function(b,w,ee){return e.isStatement(b)||e.isClassElement(b)?{suffix:ee?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(b)?{suffix:", "}:e.isParameter(b)?e.isParameter(w)?{suffix:", "}:{}:e.isStringLiteral(b)&&e.isImportDeclaration(b.parent)||e.isNamedImports(b)?{suffix:", "}:e.isImportSpecifier(b)?{suffix:","+(ee?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(b)},u.prototype.insertNodeAtConstructorStart=function(b,w,ee){var le=e.firstOrUndefined(w.body.statements);!le||!w.body.multiLine?this.replaceConstructorBody(b,w,wr([ee],w.body.statements)):this.insertNodeBefore(b,le,ee)},u.prototype.insertNodeAtConstructorStartAfterSuperCall=function(b,w,ee){var le=e.find(w.body.statements,function(ie){return e.isExpressionStatement(ie)&&e.isSuperCall(ie.expression)});!le||!w.body.multiLine?this.replaceConstructorBody(b,w,wr(wr([],w.body.statements),[ee])):this.insertNodeAfter(b,le,ee)},u.prototype.insertNodeAtConstructorEnd=function(b,w,ee){var le=e.lastOrUndefined(w.body.statements);!le||!w.body.multiLine?this.replaceConstructorBody(b,w,wr(wr([],w.body.statements),[ee])):this.insertNodeAfter(b,le,ee)},u.prototype.replaceConstructorBody=function(b,w,ee){this.replaceNode(b,w.body,e.factory.createBlock(ee,!0))},u.prototype.insertNodeAtEndOfScope=function(b,w,ee){var le=E(b,w.getLastToken(),{});this.insertNodeAt(b,le,ee,{prefix:e.isLineBreak(b.text.charCodeAt(w.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},u.prototype.insertNodeAtClassStart=function(b,w,ee){this.insertNodeAtStartWorker(b,w,ee)},u.prototype.insertNodeAtObjectStart=function(b,w,ee){this.insertNodeAtStartWorker(b,w,ee)},u.prototype.insertNodeAtStartWorker=function(b,w,ee){var le,ie=(le=this.guessIndentationFromExistingMembers(b,w))!==null&&le!==void 0?le:this.computeIndentationForNewMember(b,w);this.insertNodeAt(b,M(w).pos,ee,this.getInsertNodeAtStartInsertOptions(b,w,ie))},u.prototype.guessIndentationFromExistingMembers=function(b,w){for(var ee,le=w,ie=0,W=M(w);ie0?{fileName:ke.fileName,textChanges:fn}:void 0})}u.getTextChangesFromChanges=b;function w(fe,A,X,re,ve){var ke=ee(fe,e.getScriptKindFromFileName(A),X,re,ve);return{fileName:A,textChanges:[e.createTextChange(e.createTextSpan(0,0),ke)],isNewFile:!0}}u.newFileChanges=w;function ee(fe,A,X,re,ve){var ke=X.map(function(je){return je===4?"":ge(je,fe,re).text}).join(re),Ie=e.createSourceFile("any file name",ke,99,!0,A),Je=e.formatting.formatDocument(Ie,ve);return $(ke,Je)+re}u.newFileChangesWorker=ee;function le(fe,A,X,re,ve){if(fe.kind===z.Remove)return"";if(fe.kind===z.Text)return fe.text;var ke=fe.options,Ie=ke===void 0?{}:ke,Je=fe.range.pos,je=function(Ve){return W(Ve,A,Je,Ie,X,re,ve)},fn=fe.kind===z.ReplaceWithMultipleNodes?fe.nodes.map(function(Ve){return e.removeSuffix(je(Ve),X)}).join(fe.options.joiner||X):je(fe.node),ze=Ie.preserveLeadingWhitespace||Ie.indentation!==void 0||e.getLineStartPositionForPosition(Je,A)===Je?fn:fn.replace(/^\s+/,"");return(Ie.prefix||"")+ze+(!Ie.suffix||e.endsWith(ze,Ie.suffix)?"":Ie.suffix)}function ie(fe,A){var X=fe.options,re=!X.semicolons||X.semicolons===e.SemicolonPreference.Ignore,ve=X.semicolons===e.SemicolonPreference.Remove||re&&!e.probablyUsesSemicolons(A);return Nt(Nt({},X),{semicolons:ve?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function W(fe,A,X,re,ve,ke,Ie){var Je=re.indentation,je=re.prefix,fn=re.delta,ze=ge(fe,A,ve),Ve=ze.node,Ne=ze.text;Ie&&Ie(Ve,Ne);var be=ie(ke,A),de=Je!==void 0?Je:e.formatting.SmartIndenter.getIndentation(X,A,be,je===ve||e.getLineStartPositionForPosition(X,A)===X);fn===void 0&&(fn=e.formatting.SmartIndenter.shouldIndentChildNode(be,fe)&&be.indentSize||0);var Ce={text:Ne,getLineAndCharacterOfPosition:function(on){return e.getLineAndCharacterOfPosition(this,on)}},ye=e.formatting.formatNodeGivenIndentation(Ve,Ce,A.languageVariant,de,fn,Nt(Nt({},ke),{options:be}));return $(Ne,ye)}function ge(fe,A,X){var re=K(X),ve=X===` `?1:0;return e.createPrinter({newLine:ve,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},re).writeNode(4,fe,A,re),{text:re.getText(),node:B(fe)}}u.getNonformattedText=ge})(H||(H={}));function $(u,b){for(var w=b.length-1;w>=0;w--){var ee=b[w],le=ee.span,ie=ee.newText;u=""+u.substring(0,le.start)+ie+u.substring(e.textSpanEnd(le))}return u}a.applyChanges=$;function Z(u){return e.skipTrivia(u,0)===u.length}function B(u){var b=e.visitEachChild(u,B,e.nullTransformationContext,U,B),w=e.nodeIsSynthesized(b)?b:Object.create(b);return e.setTextRangePosEnd(w,p(u),t(u)),w}function U(u,b,w,ee,le){var ie=e.visitNodes(u,b,w,ee,le);if(!ie)return ie;var W=ie===u?e.factory.createNodeArray(ie.slice(0)):ie;return e.setTextRangePosEnd(W,p(u),t(u)),W}function K(u){var b=0,w=e.createTextWriter(u),ee=function(Rn){Rn&&g(Rn,b)},le=function(Rn){Rn&&m(Rn,b)},ie=function(Rn){Rn&&g(Rn,b)},W=function(Rn){Rn&&m(Rn,b)},ge=function(Rn){Rn&&g(Rn,b)},fe=function(Rn){Rn&&m(Rn,b)};function A(Rn,Ge){if(Ge||!Z(Rn)){b=w.getTextPos();for(var we=0;e.isWhiteSpaceLike(Rn.charCodeAt(Rn.length-we-1));)we++;b-=we}}function X(Rn){w.write(Rn),A(Rn,!1)}function re(Rn){w.writeComment(Rn)}function ve(Rn){w.writeKeyword(Rn),A(Rn,!1)}function ke(Rn){w.writeOperator(Rn),A(Rn,!1)}function Ie(Rn){w.writePunctuation(Rn),A(Rn,!1)}function Je(Rn){w.writeTrailingSemicolon(Rn),A(Rn,!1)}function je(Rn){w.writeParameter(Rn),A(Rn,!1)}function fn(Rn){w.writeProperty(Rn),A(Rn,!1)}function ze(Rn){w.writeSpace(Rn),A(Rn,!1)}function Ve(Rn){w.writeStringLiteral(Rn),A(Rn,!1)}function Ne(Rn,Ge){w.writeSymbol(Rn,Ge),A(Rn,!1)}function be(Rn){w.writeLine(Rn)}function de(){w.increaseIndent()}function Ce(){w.decreaseIndent()}function ye(){return w.getText()}function on(Rn){w.rawWrite(Rn),A(Rn,!1)}function Te(Rn){w.writeLiteral(Rn),A(Rn,!0)}function tn(){return w.getTextPos()}function Fe(){return w.getLine()}function Ke(){return w.getColumn()}function rn(){return w.getIndent()}function vn(){return w.isAtStartOfLine()}function xn(){w.clear(),b=0}return{onBeforeEmitNode:ee,onAfterEmitNode:le,onBeforeEmitNodeArray:ie,onAfterEmitNodeArray:W,onBeforeEmitToken:ge,onAfterEmitToken:fe,write:X,writeComment:re,writeKeyword:ve,writeOperator:ke,writePunctuation:Ie,writeTrailingSemicolon:Je,writeParameter:je,writeProperty:fn,writeSpace:ze,writeStringLiteral:Ve,writeSymbol:Ne,writeLine:be,increaseIndent:de,decreaseIndent:Ce,getText:ye,rawWrite:on,writeLiteral:Te,getTextPos:tn,getLine:Fe,getColumn:Ke,getIndent:rn,isAtStartOfLine:vn,hasTrailingComment:function(){return w.hasTrailingComment()},hasTrailingWhitespace:function(){return w.hasTrailingWhitespace()},clear:xn}}function T(u){for(var b,w=0,ee=u.statements;w=Je+2)break}if(u.statements.length){X===void 0&&(X=u.getLineAndCharacterOfPosition(u.statements[0].getStart()).line);var je=u.getLineAndCharacterOfPosition(ke.end).line;if(X1)break}var B=O<2;return function(U){var K=U.fixId,T=U.fixAllDescription,G=yE(U,["fixId","fixAllDescription"]);return B?G:Nt(Nt({},G),{fixId:K,fixAllDescription:T})}}function ue(k){var h=L(k),M=p.get(String(k.errorCode));return e.flatMap(M,function(O){return e.map(O.getCodeActions(k),z(O,h))})}a.getFixes=ue;function E(k){return g.get(e.cast(k.fixId,e.isString)).getAllCodeActions(k)}a.getAllFixes=E;function C(k,h){return{changes:k,commands:h}}a.createCombinedCodeActions=C;function I(k,h){return{fileName:k,textChanges:h}}a.createFileTextChanges=I;function j(k,h,M){var O=[],H=e.textChanges.ChangeTracker.with(k,function($){return Y(k,h,function(Z){return M($,Z,O)})});return C(H,O.length===0?void 0:O)}a.codeFixAll=j;function Y(k,h,M){for(var O=0,H=L(k);Oe.textSpanEnd(x)?"quit":(e.isArrowFunction(ue)||e.isMethodDeclaration(ue)||e.isFunctionExpression(ue)||e.isFunctionDeclaration(ue))&&e.textSpansEqual(x,e.createTextSpanFromNode(ue,c))});return z}}function D(c,x){return function(se){var z=se.start,ue=se.length,E=se.relatedInformation,C=se.code;return e.isNumber(z)&&e.isNumber(ue)&&e.textSpansEqual({start:z,length:ue},c)&&C===x&&!!E&&e.some(E,function(I){return I.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="addMissingAwait",g=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,t=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],m=wr([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],t);a.registerCodeFix({fixIds:[p],errorCodes:m,getCodeActions:function(j){var Y=j.sourceFile,L=j.errorCode,k=j.span,h=j.cancellationToken,M=j.program,O=x(Y,L,k,h,M);if(O){var H=j.program.getTypeChecker(),$=function(Z){return e.textChanges.ChangeTracker.with(j,Z)};return e.compact([N(j,O,L,H,$),D(j,O,L,H,$)])}},getAllCodeActions:function(j){var Y=j.sourceFile,L=j.program,k=j.cancellationToken,h=j.program.getTypeChecker(),M=new e.Set;return a.codeFixAll(j,m,function(O,H){var $=x(Y,H.code,H,k,L);if($){var Z=function(B){return B(O),[]};return N(j,$,H.code,h,Z,M)||D(j,$,H.code,h,Z,M)}})}});function N(j,Y,L,k,h,M){var O=j.sourceFile,H=j.program,$=j.cancellationToken,Z=se(Y,O,$,H,k);if(Z){var B=h(function(U){e.forEach(Z.initializers,function(K){var T=K.expression;return C(U,L,O,k,T,M)}),M&&Z.needsSecondPassForFixAll&&C(U,L,O,k,Y,M)});return a.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",B,Z.initializers.length===1?[e.Diagnostics.Add_await_to_initializer_for_0,Z.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function D(j,Y,L,k,h,M){var O=h(function(H){return C(H,L,j.sourceFile,k,Y,M)});return a.createCodeFixAction(p,O,e.Diagnostics.Add_await,p,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function c(j,Y,L,k,h){var M=h.getDiagnosticsProducingTypeChecker(),O=M.getDiagnostics(j,k);return e.some(O,function(H){var $=H.start,Z=H.length,B=H.relatedInformation,U=H.code;return e.isNumber($)&&e.isNumber(Z)&&e.textSpansEqual({start:$,length:Z},L)&&U===Y&&!!B&&e.some(B,function(K){return K.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}function x(j,Y,L,k,h){var M=e.getTokenAtPosition(j,L.start),O=e.findAncestor(M,function(H){return H.getStart(j)e.textSpanEnd(L)?"quit":e.isExpression(H)&&e.textSpansEqual(L,e.createTextSpanFromNode(H,j))});return O&&c(j,Y,L,k,h)&&E(O)?O:void 0}function se(j,Y,L,k,h){var M=z(j,h);if(M){for(var O=M.isCompleteFix,H,$=function(K){var T=h.getSymbolAtLocation(K);if(!T)return"continue";var G=e.tryCast(T.valueDeclaration,e.isVariableDeclaration),v=G&&e.tryCast(G.name,e.isIdentifier),R=e.getAncestor(G,233);if(!G||!R||G.type||!G.initializer||R.getSourceFile()!==Y||e.hasSyntacticModifier(R,1)||!v||!E(G.initializer))return O=!1,"continue";var F=k.getSemanticDiagnostics(Y,L),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(v,h,Y,function(u){return K!==u&&!ue(u,F,Y,h)});if(_)return O=!1,"continue";(H||(H=[])).push({expression:G.initializer,declarationSymbol:T})},Z=0,B=M.identifiers;Z0)return[a.createCodeFixAction(p,z,e.Diagnostics.Add_const_to_unresolved_variable,p,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[p],getAllCodeActions:function(se){var z=new e.Set;return a.codeFixAll(se,g,function(ue,E){return t(ue,E.file,E.start,se.program,z)})}});function t(se,z,ue,E,C){var I=e.getTokenAtPosition(z,ue),j=e.findAncestor(I,function(M){return e.isForInOrOfStatement(M.parent)?M.parent.initializer===M:N(M)?!1:"quit"});if(j)return m(se,j,z,C);var Y=I.parent;if(e.isBinaryExpression(Y)&&Y.operatorToken.kind===62&&e.isExpressionStatement(Y.parent))return m(se,I,z,C);if(e.isArrayLiteralExpression(Y)){var L=E.getTypeChecker();return e.every(Y.elements,function(M){return D(M,L)})?m(se,Y,z,C):void 0}var k=e.findAncestor(I,function(M){return e.isExpressionStatement(M.parent)?!0:c(M)?!1:"quit"});if(k){var h=E.getTypeChecker();return x(k,h)?m(se,k,z,C):void 0}}function m(se,z,ue,E){(!E||e.tryAddToSet(E,z))&&se.insertModifierBefore(ue,84,z)}function N(se){switch(se.kind){case 78:case 200:case 201:case 289:case 290:return!0;default:return!1}}function D(se,z){var ue=e.isIdentifier(se)?se:e.isAssignmentExpression(se,!0)&&e.isIdentifier(se.left)?se.left:void 0;return!!ue&&!z.getSymbolAtLocation(ue)}function c(se){switch(se.kind){case 78:case 217:case 27:return!0;default:return!1}}function x(se,z){return e.isBinaryExpression(se)?se.operatorToken.kind===27?e.every([se.left,se.right],function(ue){return x(ue,z)}):se.operatorToken.kind===62&&e.isIdentifier(se.left)&&!z.getSymbolAtLocation(se.left):!1}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="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];a.registerCodeFix({errorCodes:g,getCodeActions:function(m){var N=e.textChanges.ChangeTracker.with(m,function(D){return t(D,m.sourceFile,m.span.start)});if(N.length>0)return[a.createCodeFixAction(p,N,e.Diagnostics.Prefix_with_declare,p,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[p],getAllCodeActions:function(m){var N=new e.Set;return a.codeFixAll(m,g,function(D,c){return t(D,c.file,c.start,N)})}});function t(m,N,D,c){var x=e.getTokenAtPosition(N,D);if(e.isIdentifier(x)){var se=x.parent;se.kind===164&&(!c||e.tryAddToSet(c,se))&&m.insertModifierBefore(N,133,se)}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="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];a.registerCodeFix({errorCodes:g,getCodeActions:function(m){var N=e.textChanges.ChangeTracker.with(m,function(D){return t(D,m.sourceFile,m.span.start)});return[a.createCodeFixAction(p,N,e.Diagnostics.Call_decorator_expression,p,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[p],getAllCodeActions:function(m){return a.codeFixAll(m,g,function(N,D){return t(N,D.file,D.start)})}});function t(m,N,D){var c=e.getTokenAtPosition(N,D),x=e.findAncestor(c,e.isDecorator);e.Debug.assert(!!x,"Expected position to be owned by a decorator.");var se=e.factory.createCallExpression(x.expression,void 0,void 0);m.replaceNode(N,x.expression,se)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="addNameToNamelessParameter",g=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(m){var N=e.textChanges.ChangeTracker.with(m,function(D){return t(D,m.sourceFile,m.span.start)});return[a.createCodeFixAction(p,N,e.Diagnostics.Add_parameter_name,p,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[p],getAllCodeActions:function(m){return a.codeFixAll(m,g,function(N,D){return t(N,D.file,D.start)})}});function t(m,N,D){var c=e.getTokenAtPosition(N,D);if(!e.isIdentifier(c))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(c.kind));var x=c.parent;if(!e.isParameter(x))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(c.kind));var se=x.parent.parameters.indexOf(x);e.Debug.assert(!x.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(se>-1,"Parameter not found in parent parameter list.");var z=e.factory.createParameterDeclaration(void 0,x.modifiers,x.dotDotDotToken,"arg"+se,x.questionToken,e.factory.createTypeReferenceNode(c,void 0),x.initializer);m.replaceNode(N,c,z)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="annotateWithTypeFromJSDoc",g=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(Y){var L=t(Y.sourceFile,Y.span.start);if(L){var k=e.textChanges.ChangeTracker.with(Y,function(h){return D(h,Y.sourceFile,L)});return[a.createCodeFixAction(p,k,e.Diagnostics.Annotate_with_type_from_JSDoc,p,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[p],getAllCodeActions:function(Y){return a.codeFixAll(Y,g,function(L,k){var h=t(k.file,k.start);h&&D(L,k.file,h)})}});function t(Y,L){var k=e.getTokenAtPosition(Y,L);return e.tryCast(e.isParameter(k.parent)?k.parent.parent:k.parent,m)}function m(Y){return c(Y)&&N(Y)}a.parameterShouldGetTypeFromJSDoc=m;function N(Y){return e.isFunctionLikeDeclaration(Y)?Y.parameters.some(N)||!Y.type&&!!e.getJSDocReturnType(Y):!Y.type&&!!e.getJSDocType(Y)}function D(Y,L,k){if(e.isFunctionLikeDeclaration(k)&&(e.getJSDocReturnType(k)||k.parameters.some(function(K){return!!e.getJSDocType(K)}))){if(!k.typeParameters){var h=e.getJSDocTypeParameterDeclarations(k);h.length&&Y.insertTypeParameters(L,k,h)}var M=e.isArrowFunction(k)&&!e.findChildOfKind(k,20,L);M&&Y.insertNodeBefore(L,e.first(k.parameters),e.factory.createToken(20));for(var O=0,H=k.parameters;O1?(c.delete(x,I),c.insertNodeAfter(x,Y,j)):c.replaceNode(x,Y,j)}function L(M){var O=[];return M.members&&M.members.forEach(function(Z,B){if(B==="constructor"&&Z.valueDeclaration){c.delete(x,Z.valueDeclaration.parent);return}var U=$(Z,void 0);U&&O.push.apply(O,U)}),M.exports&&M.exports.forEach(function(Z){if(Z.name==="prototype"&&Z.declarations){var B=Z.declarations[0];if(Z.declarations.length===1&&e.isPropertyAccessExpression(B)&&e.isBinaryExpression(B.parent)&&B.parent.operatorToken.kind===62&&e.isObjectLiteralExpression(B.parent.right)){var U=B.parent.right,K=$(U.symbol,void 0);K&&O.push.apply(O,K)}}else{var K=$(Z,[e.factory.createToken(123)]);K&&O.push.apply(O,K)}}),O;function H(Z,B){return e.isAccessExpression(Z)?e.isPropertyAccessExpression(Z)&&N(Z)?!0:e.isFunctionLike(B):e.every(Z.properties,function(U){return!!(e.isMethodDeclaration(U)||e.isGetOrSetAccessorDeclaration(U)||e.isPropertyAssignment(U)&&e.isFunctionExpression(U.initializer)&&U.name||N(U))})}function $(Z,B){var U=[];if(!(Z.flags&8192)&&!(Z.flags&4096))return U;var K=Z.valueDeclaration,T=K.parent,G=T.right;if(!H(K,G))return U;var v=T.parent&&T.parent.kind===234?T.parent:T;if(c.delete(x,v),!G)return U.push(e.factory.createPropertyDeclaration([],B,Z.name,void 0,void 0,void 0)),U;if(e.isAccessExpression(K)&&(e.isFunctionExpression(G)||e.isArrowFunction(G))){var R=e.getQuotePreference(x,ue),F=D(K,E,R);return F?u(U,G,F):U}else{if(e.isObjectLiteralExpression(G))return e.flatMap(G.properties,function(ee){return e.isMethodDeclaration(ee)||e.isGetOrSetAccessorDeclaration(ee)?U.concat(ee):e.isPropertyAssignment(ee)&&e.isFunctionExpression(ee.initializer)?u(U,ee.initializer,ee.name):N(ee)?U:[]});if(e.isSourceFileJS(x)||!e.isPropertyAccessExpression(K))return U;var _=e.factory.createPropertyDeclaration(void 0,B,K.name,void 0,void 0,G);return e.copyLeadingComments(T.parent,_,x),U.push(_),U}function u(ee,le,ie){return e.isFunctionExpression(le)?b(ee,le,ie):w(ee,le,ie)}function b(ee,le,ie){var W=e.concatenate(B,m(le,129)),ge=e.factory.createMethodDeclaration(void 0,W,void 0,ie,void 0,void 0,le.parameters,void 0,le.body);return e.copyLeadingComments(T,ge,x),ee.concat(ge)}function w(ee,le,ie){var W=le.body,ge;W.kind===231?ge=W:ge=e.factory.createBlock([e.factory.createReturnStatement(W)]);var fe=e.concatenate(B,m(le,129)),A=e.factory.createMethodDeclaration(void 0,fe,void 0,ie,void 0,void 0,le.parameters,void 0,ge);return e.copyLeadingComments(T,A,x),ee.concat(A)}}}function k(M){var O=M.initializer;if(!(!O||!e.isFunctionExpression(O)||!e.isIdentifier(M.name))){var H=L(M.symbol);O.body&&H.unshift(e.factory.createConstructorDeclaration(void 0,void 0,O.parameters,O.body));var $=m(M.parent.parent,92),Z=e.factory.createClassDeclaration(void 0,$,M.name,void 0,void 0,H);return Z}}function h(M){var O=L(C);M.body&&O.unshift(e.factory.createConstructorDeclaration(void 0,void 0,M.parameters,M.body));var H=m(M,92),$=e.factory.createClassDeclaration(void 0,H,M.name,void 0,void 0,O);return $}}function m(c,x){return e.filter(c.modifiers,function(se){return se.kind===x})}function N(c){return c.name?!!(e.isIdentifier(c.name)&&c.name.text==="constructor"):!1}function D(c,x,se){if(e.isPropertyAccessExpression(c))return c.name;var z=c.argumentExpression;if(e.isNumericLiteral(z))return z;if(e.isStringLiteralLike(z))return e.isIdentifierText(z.text,x.target)?e.factory.createIdentifier(z.text):e.isNoSubstitutionTemplateLiteral(z)?e.factory.createStringLiteral(z.text,se===0):z}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="convertToAsyncFunction",g=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],t=!0;a.registerCodeFix({errorCodes:g,getCodeActions:function(_){t=!0;var u=e.textChanges.ChangeTracker.with(_,function(b){return N(b,_.sourceFile,_.span.start,_.program.getTypeChecker())});return t?[a.createCodeFixAction(p,u,e.Diagnostics.Convert_to_async_function,p,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[p],getAllCodeActions:function(_){return a.codeFixAll(_,g,function(u,b){return N(u,b.file,b.start,_.program.getTypeChecker())})}});var m;(function(_){_[_.Identifier=0]="Identifier",_[_.BindingPattern=1]="BindingPattern"})(m||(m={}));function N(_,u,b,w){var ee=e.getTokenAtPosition(u,b),le;if(e.isIdentifier(ee)&&e.isVariableDeclaration(ee.parent)&&ee.parent.initializer&&e.isFunctionLikeDeclaration(ee.parent.initializer)?le=ee.parent.initializer:le=e.tryCast(e.getContainingFunction(e.getTokenAtPosition(u,b)),e.canBeConvertedToAsync),!!le){var ie=new e.Map,W=e.isInJSFile(le),ge=c(le,w),fe=z(le,w,ie);if(e.returnsPromise(fe,w)){var A=fe.body&&e.isBlock(fe.body)?D(fe.body,w):e.emptyArray,X={checker:w,synthNamesMap:ie,setOfExpressionsToReturn:ge,isInJSFile:W};if(A.length){var re=le.modifiers?le.modifiers.end:le.decorators?e.skipTrivia(u.text,le.decorators.end):le.getStart(u),ve=le.modifiers?{prefix:" "}:{suffix:" "};_.insertModifierAt(u,re,129,ve);for(var ke=function(fn){e.forEachChild(fn,function ze(Ve){if(e.isCallExpression(Ve)){var Ne=C(Ve,X);_.replaceNodeWithNodes(u,fn,Ne)}else e.isFunctionLike(Ve)||e.forEachChild(Ve,ze)})},Ie=0,Je=A;Ie0)return Ce;if(Je){var be=O(ee.checker,Je,Ie);if(F(w,ee))return h(be,(fe=w.typeArguments)===null||fe===void 0?void 0:fe[0]);var ye=k(u,be,void 0);return u&&u.types.push(Je),ye}else return E()}}default:return E()}return e.emptyArray}function O(_,u,b){var w=e.getSynthesizedDeepClone(b);return _.getPromisedTypeOfPromise(u)?e.factory.createAwaitExpression(w):w}function H(_,u){var b=u.getSignaturesOfType(_,0);return e.lastOrUndefined(b)}function $(_,u,b,w){for(var ee=[],le=0,ie=_;le0)return}else e.isFunctionLike(ge)||e.forEachChild(ge,W)})}return w}function B(_,u){var b=[],w;if(e.isFunctionLikeDeclaration(_)){if(_.parameters.length>0){var ee=_.parameters[0].name;w=le(ee)}}else e.isIdentifier(_)?w=ie(_):e.isPropertyAccessExpression(_)&&e.isIdentifier(_.name)&&(w=ie(_.name));if(!w||"identifier"in w&&w.identifier.text==="undefined")return;return w;function le(fe){if(e.isIdentifier(fe))return ie(fe);var A=e.flatMap(fe.elements,function(X){return e.isOmittedExpression(X)?[]:[le(X.name)]});return G(fe,A)}function ie(fe){var A=ge(fe),X=W(A);if(!X)return T(fe,b);var re=u.synthNamesMap.get(e.getSymbolId(X).toString());return re||T(fe,b)}function W(fe){return fe.symbol?fe.symbol:u.checker.getSymbolAtLocation(fe)}function ge(fe){return fe.original?fe.original:fe}}function U(_){return _?v(_)?!_.identifier.text:e.every(_.elements,U):!0}function K(_){return v(_)?_.identifier:_.bindingPattern}function T(_,u){return u===void 0&&(u=[]),{kind:0,identifier:_,types:u,hasBeenDeclared:!1}}function G(_,u,b){return u===void 0&&(u=e.emptyArray),b===void 0&&(b=[]),{kind:1,bindingPattern:_,elements:u,types:b}}function v(_){return _.kind===0}function R(_){return _.kind===1}function F(_,u){return!!_.original&&u.setOfExpressionsToReturn.has(e.getNodeId(_.original))}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){a.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(R){var F=R.sourceFile,_=R.program,u=R.preferences,b=e.textChanges.ChangeTracker.with(R,function(w){var ee=g(F,_.getTypeChecker(),w,_.getCompilerOptions().target,e.getQuotePreference(F,u));if(ee)for(var le=0,ie=_.getSourceFiles();le1?[[C(_),I(_)],!0]:[[I(_)],!0]:[[C(_)],!1]}function C(R){return G(void 0,R)}function I(R){return G([e.factory.createExportSpecifier(void 0,"default")],R)}function j(R,F,_){var u=R.left,b=R.right,w=R.parent,ee=u.name.text;if((e.isFunctionExpression(b)||e.isArrowFunction(b)||e.isClassExpression(b))&&(!b.name||b.name.text===ee)){_.replaceRange(F,{pos:u.getStart(F),end:b.getStart(F)},e.factory.createToken(92),{suffix:" "}),b.name||_.insertName(F,b,ee);var le=e.findChildOfKind(w,26,F);le&&_.delete(F,le)}else _.replaceNodeRangeWithNodes(F,u.expression,e.findChildOfKind(u,24,F),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "})}function Y(R,F,_){var u=[e.factory.createToken(92)];switch(F.kind){case 209:{var b=F.name;if(b&&b.text!==R)return w()}case 210:return Z(R,u,F,_);case 222:return B(R,u,F,_);default:return w()}function w(){return T(u,e.factory.createIdentifier(R),L(F,_))}}function L(R,F){if(!F||!e.some(e.arrayFrom(F.keys()),function(u){return e.rangeContainsRange(R,u)}))return R;return e.isArray(R)?e.getSynthesizedDeepClonesWithReplacements(R,!0,_):e.getSynthesizedDeepCloneWithReplacements(R,!0,_);function _(u){if(u.kind===202){var b=F.get(u);return F.delete(u),b}}}function k(R,F,_,u,b,w){switch(R.kind){case 197:{var ee=e.mapAllOrFail(R.elements,function(ie){return ie.dotDotDotToken||ie.initializer||ie.propertyName&&!e.isIdentifier(ie.propertyName)||!e.isIdentifier(ie.name)?void 0:K(ie.propertyName&&ie.propertyName.text,ie.name.text)});if(ee)return v([e.makeImport(void 0,ee,F,w)])}case 198:{var le=M(a.moduleSpecifierToValidIdentifier(F.text,b),u);return v([e.makeImport(e.factory.createIdentifier(le),void 0,F,w),T(void 0,e.getSynthesizedDeepClone(R),e.factory.createIdentifier(le))])}case 78:return h(R,F,_,u,w);default:return e.Debug.assertNever(R,"Convert to ES6 module got invalid name kind "+R.kind)}}function h(R,F,_,u,b){for(var w=_.getSymbolAtLocation(R),ee=new e.Map,le=!1,ie,W=0,ge=u.original.get(R.text);W=e.ModuleKind.ES2015)return Ce?1:2;if(e.isInJSFile(be))return e.isExternalModule(be)?1:3;for(var ye=0,on=be.statements;ye"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,ue?ue.text:e.ANONYMOUS]):(m.replaceNode(N,z,e.factory.createToken(84)),m.insertText(N,ue.end," = "),m.insertText(N,E.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,ue.text])}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="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];a.registerCodeFix({errorCodes:g,getCodeActions:function(N){var D=N.sourceFile,c=N.span,x=t(D,c.start),se=e.textChanges.ChangeTracker.with(N,function(z){return m(z,D,x)});return[a.createCodeFixAction(p,se,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,p,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[p]});function t(N,D){var c=e.getTokenAtPosition(N,D);return e.findAncestor(c,function(x){return x.kind===193})}function m(N,D,c){if(c){for(var x=c.type,se=!1,z=!1;x.kind===181||x.kind===182||x.kind===187;)x.kind===181?se=!0:x.kind===182&&(z=!0),x=x.type;var ue=e.factory.updateNamedTupleMember(c,c.dotDotDotToken||(z?e.factory.createToken(25):void 0),c.name,c.questionToken||(se?e.factory.createToken(57):void 0),x);ue!==c&&N.replaceNode(D,c,ue)}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixSpelling",g=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.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._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(c){var x=c.sourceFile,se=c.errorCode,z=t(x,c.span.start,c,se);if(z){var ue=z.node,E=z.suggestedSymbol,C=c.host.getCompilationSettings().target,I=e.textChanges.ChangeTracker.with(c,function(j){return m(j,x,ue,E,C)});return[a.createCodeFixAction("spelling",I,[e.Diagnostics.Change_spelling_to_0,e.symbolName(E)],p,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[p],getAllCodeActions:function(c){return a.codeFixAll(c,g,function(x,se){var z=t(se.file,se.start,c,se.code),ue=c.host.getCompilationSettings().target;z&&m(x,c.sourceFile,z.node,z.suggestedSymbol,ue)})}});function t(c,x,se,z){var ue=e.getTokenAtPosition(c,x),E=ue.parent;if(!((z===e.Diagnostics.No_overload_matches_this_call.code||z===e.Diagnostics.Type_0_is_not_assignable_to_type_1.code)&&!e.isJsxAttribute(E))){var C=se.program.getTypeChecker(),I;if(e.isPropertyAccessExpression(E)&&E.name===ue){e.Debug.assert(e.isMemberName(ue),"Expected an identifier for spelling (property access)");var j=C.getTypeAtLocation(E.expression);E.flags&32&&(j=C.getNonNullableType(j)),I=C.getSuggestedSymbolForNonexistentProperty(ue,j)}else if(e.isQualifiedName(E)&&E.right===ue){var Y=C.getSymbolAtLocation(E.left);Y&&Y.flags&1536&&(I=C.getSuggestedSymbolForNonexistentModule(E.right,Y))}else if(e.isImportSpecifier(E)&&E.name===ue){e.Debug.assertNode(ue,e.isIdentifier,"Expected an identifier for spelling (import)");var L=e.findAncestor(ue,e.isImportDeclaration),k=D(c,se,L);k&&k.symbol&&(I=C.getSuggestedSymbolForNonexistentModule(ue,k.symbol))}else if(e.isJsxAttribute(E)&&E.name===ue){e.Debug.assertNode(ue,e.isIdentifier,"Expected an identifier for JSX attribute");var h=e.findAncestor(ue,e.isJsxOpeningLikeElement),M=C.getContextualTypeForArgumentAtIndex(h,0);I=C.getSuggestedSymbolForNonexistentJSXAttribute(ue,M)}else{var O=e.getMeaningFromLocation(ue),H=e.getTextOfNode(ue);e.Debug.assert(H!==void 0,"name should be defined"),I=C.getSuggestedSymbolForNonexistentSymbol(ue,H,N(O))}return I===void 0?void 0:{node:ue,suggestedSymbol:I}}}function m(c,x,se,z,ue){var E=e.symbolName(z);if(!e.isIdentifierText(E,ue)&&e.isPropertyAccessExpression(se.parent)){var C=z.valueDeclaration;C&&e.isNamedDeclaration(C)&&e.isPrivateIdentifier(C.name)?c.replaceNode(x,se,e.factory.createIdentifier(E)):c.replaceNode(x,se.parent,e.factory.createElementAccessExpression(se.parent.expression,e.factory.createStringLiteral(E)))}else c.replaceNode(x,se,e.factory.createIdentifier(E))}function N(c){var x=0;return c&4&&(x|=1920),c&2&&(x|=788968),c&1&&(x|=111551),x}function D(c,x,se){if(!(!se||!e.isStringLiteralLike(se.moduleSpecifier))){var z=e.getResolvedModule(c,se.moduleSpecifier.text);if(z)return x.program.getSourceFile(z.resolvedFileName)}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="returnValueCorrect",g="fixAddReturnStatement",t="fixRemoveBracesFromArrowFunctionBody",m="fixWrapTheBlockWithParen",N=[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],D;(function(k){k[k.MissingReturnStatement=0]="MissingReturnStatement",k[k.MissingParentheses=1]="MissingParentheses"})(D||(D={})),a.registerCodeFix({errorCodes:N,fixIds:[g,t,m],getCodeActions:function(k){var h=k.program,M=k.sourceFile,O=k.span.start,H=k.errorCode,$=z(h.getTypeChecker(),M,O,H);if($)return $.kind===D.MissingReturnStatement?e.append([j(k,$.expression,$.statement)],e.isArrowFunction($.declaration)?Y(k,$.declaration,$.expression,$.commentSource):void 0):[L(k,$.declaration,$.expression)]},getAllCodeActions:function(k){return a.codeFixAll(k,N,function(h,M){var O=z(k.program.getTypeChecker(),M.file,M.start,M.code);if(O)switch(k.fixId){case g:E(h,M.file,O.expression,O.statement);break;case t:if(!e.isArrowFunction(O.declaration))return;C(h,M.file,O.declaration,O.expression,O.commentSource);break;case m:if(!e.isArrowFunction(O.declaration))return;I(h,M.file,O.declaration,O.expression);break;default:e.Debug.fail(JSON.stringify(k.fixId))}})}});function c(k,h,M){var O=k.createSymbol(4,h.escapedText);O.type=k.getTypeAtLocation(M);var H=e.createSymbolTable([O]);return k.createAnonymousType(void 0,H,[],[],void 0,void 0)}function x(k,h,M,O){if(!(!h.body||!e.isBlock(h.body)||e.length(h.body.statements)!==1)){var H=e.first(h.body.statements);if(e.isExpressionStatement(H)&&se(k,h,k.getTypeAtLocation(H.expression),M,O))return{declaration:h,kind:D.MissingReturnStatement,expression:H.expression,statement:H,commentSource:H.expression};if(e.isLabeledStatement(H)&&e.isExpressionStatement(H.statement)){var $=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(H.label,H.statement.expression)]),Z=c(k,H.label,H.statement.expression);if(se(k,h,Z,M,O))return e.isArrowFunction(h)?{declaration:h,kind:D.MissingParentheses,expression:$,statement:H,commentSource:H.statement.expression}:{declaration:h,kind:D.MissingReturnStatement,expression:$,statement:H,commentSource:H.statement.expression}}else if(e.isBlock(H)&&e.length(H.statements)===1){var B=e.first(H.statements);if(e.isLabeledStatement(B)&&e.isExpressionStatement(B.statement)){var $=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(B.label,B.statement.expression)]),Z=c(k,B.label,B.statement.expression);if(se(k,h,Z,M,O))return{declaration:h,kind:D.MissingReturnStatement,expression:$,statement:H,commentSource:B}}}}}function se(k,h,M,O,H){if(H){var $=k.getSignatureFromDeclaration(h);if($){e.hasSyntacticModifier(h,256)&&(M=k.createPromiseType(M));var Z=k.createSignature(h,$.typeParameters,$.thisParameter,$.parameters,M,void 0,$.minArgumentCount,$.flags);M=k.createAnonymousType(void 0,e.createSymbolTable(),[Z],[],void 0,void 0)}else M=k.getAnyType()}return k.isTypeAssignableTo(M,O)}function z(k,h,M,O){var H=e.getTokenAtPosition(h,M);if(H.parent){var $=e.findAncestor(H.parent,e.isFunctionLikeDeclaration);switch(O){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:return!$||!$.body||!$.type||!e.rangeContainsRange($.type,H)?void 0:x(k,$,k.getTypeFromTypeNode($.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!$||!e.isCallExpression($.parent)||!$.body)return;var Z=$.parent.arguments.indexOf($),B=k.getContextualTypeForArgumentAtIndex($.parent,Z);return B?x(k,$,B,!0):void 0;case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(H)||!e.isVariableLike(H.parent)&&!e.isJsxAttribute(H.parent))return;var U=ue(H.parent);return!U||!e.isFunctionLikeDeclaration(U)||!U.body?void 0:x(k,U,k.getTypeAtLocation(H.parent),!0)}}}function ue(k){switch(k.kind){case 250:case 161:case 199:case 164:case 289:return k.initializer;case 281:return k.initializer&&(e.isJsxExpression(k.initializer)?k.initializer.expression:void 0);case 290:case 163:case 292:case 337:case 330:return}}function E(k,h,M,O){e.suppressLeadingAndTrailingTrivia(M);var H=e.probablyUsesSemicolons(h);k.replaceNode(h,O,e.factory.createReturnStatement(M),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:H?";":void 0})}function C(k,h,M,O,H,$){var Z=e.needsParentheses(O)?e.factory.createParenthesizedExpression(O):O;e.suppressLeadingAndTrailingTrivia(H),e.copyComments(H,Z),k.replaceNode(h,M.body,Z)}function I(k,h,M,O){k.replaceNode(h,M.body,e.factory.createParenthesizedExpression(O))}function j(k,h,M){var O=e.textChanges.ChangeTracker.with(k,function(H){return E(H,k.sourceFile,h,M)});return a.createCodeFixAction(p,O,e.Diagnostics.Add_a_return_statement,g,e.Diagnostics.Add_all_missing_return_statement)}function Y(k,h,M,O){var H=e.textChanges.ChangeTracker.with(k,function($){return C($,k.sourceFile,h,M,O)});return a.createCodeFixAction(p,H,e.Diagnostics.Remove_braces_from_arrow_function_body,t,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function L(k,h,M){var O=e.textChanges.ChangeTracker.with(k,function(H){return I(H,k.sourceFile,h,M)});return a.createCodeFixAction(p,O,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,m,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixMissingMember",g="fixMissingFunctionDeclaration",t=[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.Cannot_find_name_0.code];a.registerCodeFix({errorCodes:t,getCodeActions:function(h){var M=h.program.getTypeChecker(),O=N(h.sourceFile,h.span.start,M,h.program);if(O){if(O.kind===2){var H=e.textChanges.ChangeTracker.with(h,function($){return k($,h,O)});return[a.createCodeFixAction(g,H,[e.Diagnostics.Add_missing_function_declaration_0,O.token.text],g,e.Diagnostics.Add_all_missing_function_declarations)]}if(O.kind===0){var H=e.textChanges.ChangeTracker.with(h,function(Z){return L(Z,h.program.getTypeChecker(),O)});return[a.createCodeFixAction(p,H,[e.Diagnostics.Add_missing_enum_member_0,O.token.text],p,e.Diagnostics.Add_all_missing_members)]}return e.concatenate(j(h,O),D(h,O))}},fixIds:[p,g],getAllCodeActions:function(h){var M=h.program,O=h.fixId,H=M.getTypeChecker(),$=new e.Map,Z=new e.Map;return a.createCombinedCodeActions(e.textChanges.ChangeTracker.with(h,function(B){a.eachDiagnostic(h,t,function(U){var K=N(U.file,U.start,H,h.program);if(!(!K||!e.addToSeen($,e.getNodeId(K.parentDeclaration)+"#"+K.token.text))){if(O===g)K.kind===2&&k(B,h,K);else if(K.kind===0&&L(B,H,K),K.kind===1){var T=K.parentDeclaration,G=K.token,v=e.getOrUpdate(Z,T,function(){return[]});v.some(function(R){return R.token.text===G.text})||v.push(K)}}}),Z.forEach(function(U,K){for(var T=a.getAllSupers(K,H),G=function(_){if(T.some(function(ge){var fe=Z.get(ge);return!!fe&&fe.some(function(A){var X=A.token;return X.text===_.token.text})}))return"continue";var u=_.parentDeclaration,b=_.declSourceFile,w=_.modifierFlags,ee=_.token,le=_.call,ie=_.isJSFile;if(le&&!e.isPrivateIdentifier(ee))Y(h,B,le,ee,w&32,u,b);else if(ie&&!e.isInterfaceDeclaration(u))x(B,b,u,ee,!!(w&32));else{var W=ue(M.getTypeChecker(),u,ee);E(B,b,u,ee.text,W,w&32)}},v=0,R=U;v=e.ModuleKind.ES2015&&N99;if(se){var c=e.textChanges.ChangeTracker.with(p,function(ue){var E=e.getTsConfigObjectLiteralExpression(t);if(E){var C=[["target",e.factory.createStringLiteral("es2017")]];N===e.ModuleKind.CommonJS&&C.push(["module",e.factory.createStringLiteral("commonjs")]),a.setJsonCompilerOptionValues(ue,t,C)}});m.push(a.createCodeFixActionWithoutFixAll("fixTargetOption",c,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return m.length?m:void 0}}})})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="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];a.registerCodeFix({errorCodes:g,fixIds:[p],getCodeActions:function(N){var D=N.sourceFile,c=N.span,x=m(D,c.start),se=e.textChanges.ChangeTracker.with(N,function(z){return t(z,N.sourceFile,x)});return[a.createCodeFixAction(p,se,[e.Diagnostics.Change_0_to_1,"=",":"],p,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(N){return a.codeFixAll(N,g,function(D,c){return t(D,c.file,m(c.file,c.start))})}});function t(N,D,c){N.replaceNode(D,c,e.factory.createPropertyAssignment(c.name,c.objectAssignmentInitializer))}function m(N,D){return e.cast(e.getTokenAtPosition(N,D).parent,e.isShorthandPropertyAssignment)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="extendsInterfaceBecomesImplements",g=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(N){var D=N.sourceFile,c=t(D,N.span.start);if(c){var x=c.extendsToken,se=c.heritageClauses,z=e.textChanges.ChangeTracker.with(N,function(ue){return m(ue,D,x,se)});return[a.createCodeFixAction(p,z,e.Diagnostics.Change_extends_to_implements,p,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[p],getAllCodeActions:function(N){return a.codeFixAll(N,g,function(D,c){var x=t(c.file,c.start);x&&m(D,c.file,x.extendsToken,x.heritageClauses)})}});function t(N,D){var c=e.getTokenAtPosition(N,D),x=e.getContainingClass(c).heritageClauses,se=x[0].getFirstToken();return se.kind===93?{extendsToken:se,heritageClauses:x}:void 0}function m(N,D,c,x){if(N.replaceNode(D,c,e.factory.createToken(116)),x.length===2&&x[0].token===93&&x[1].token===116){var se=x[1].getFirstToken(),z=se.getFullStart();N.replaceRange(D,{pos:z,end:z},e.factory.createToken(27));for(var ue=D.text,E=se.end;E":">","}":"}"};function N(c){return e.hasProperty(m,c)}function D(c,x,se,z,ue){var E=se.getText()[z];if(N(E)){var C=ue?m[E]:"{"+e.quote(se,x,E)+"}";c.replaceRangeWithText(se,{pos:z,end:z+1},C)}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="unusedIdentifier",g="unusedIdentifier_prefix",t="unusedIdentifier_delete",m="unusedIdentifier_deleteImports",N="unusedIdentifier_infer",D=[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];a.registerCodeFix({errorCodes:D,getCodeActions:function(B){var U=B.errorCode,K=B.sourceFile,T=B.program,G=B.cancellationToken,v=T.getTypeChecker(),R=T.getSourceFiles(),F=e.getTokenAtPosition(K,B.span.start);if(e.isJSDocTemplateTag(F))return[x(e.textChanges.ChangeTracker.with(B,function(ge){return ge.delete(K,F)}),e.Diagnostics.Remove_template_tag)];if(F.kind===29){var _=e.textChanges.ChangeTracker.with(B,function(ge){return se(ge,K,F)});return[x(_,e.Diagnostics.Remove_type_parameters)]}var u=ue(F);if(u){var _=e.textChanges.ChangeTracker.with(B,function(fe){return fe.delete(K,u)});return[a.createCodeFixAction(p,_,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(u)],m,e.Diagnostics.Delete_all_unused_imports)]}else if(z(F)){var b=e.textChanges.ChangeTracker.with(B,function(ge){return L(K,F,ge,v,R,T,G,!1)});if(b.length)return[a.createCodeFixAction(p,b,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,F.getText(K)],m,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(F.parent)||e.isArrayBindingPattern(F.parent)){if(e.isParameter(F.parent.parent)){var w=F.parent.elements,ee=[w.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(w,function(ge){return ge.getText(K)}).join(", ")];return[x(e.textChanges.ChangeTracker.with(B,function(ge){return I(ge,K,F.parent)}),ee)]}return[x(e.textChanges.ChangeTracker.with(B,function(ge){return ge.delete(K,F.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(E(K,F))return[x(e.textChanges.ChangeTracker.with(B,function(ge){return C(ge,K,F.parent)}),e.Diagnostics.Remove_variable_statement)];var le=[];if(F.kind===135){var _=e.textChanges.ChangeTracker.with(B,function(fe){return c(fe,K,F)}),ie=e.cast(F.parent,e.isInferTypeNode).typeParameter.name.text;le.push(a.createCodeFixAction(p,_,[e.Diagnostics.Replace_infer_0_with_unknown,ie],N,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var b=e.textChanges.ChangeTracker.with(B,function(fe){return L(K,F,fe,v,R,T,G,!1)});if(b.length){var ie=e.isComputedPropertyName(F.parent)?F.parent:F;le.push(x(b,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,ie.getText(K)]))}}var W=e.textChanges.ChangeTracker.with(B,function(ge){return j(ge,U,K,F)});return W.length&&le.push(a.createCodeFixAction(p,W,[e.Diagnostics.Prefix_0_with_an_underscore,F.getText(K)],g,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),le},fixIds:[g,t,m,N],getAllCodeActions:function(B){var U=B.sourceFile,K=B.program,T=B.cancellationToken,G=K.getTypeChecker(),v=K.getSourceFiles();return a.codeFixAll(B,D,function(R,F){var _=e.getTokenAtPosition(U,F.start);switch(B.fixId){case g:j(R,F.code,U,_);break;case m:{var u=ue(_);u?R.delete(U,u):z(_)&&L(U,_,R,G,v,K,T,!0);break}case t:{if(_.kind===135||z(_))break;if(e.isJSDocTemplateTag(_))R.delete(U,_);else if(_.kind===29)se(R,U,_);else if(e.isObjectBindingPattern(_.parent)){if(_.parent.parent.initializer)break;(!e.isParameter(_.parent.parent)||M(_.parent.parent,G,v))&&R.delete(U,_.parent.parent)}else{if(e.isArrayBindingPattern(_.parent.parent)&&_.parent.parent.parent.initializer)break;E(U,_)?C(R,U,_.parent):L(U,_,R,G,v,K,T,!0)}break}case N:_.kind===135&&c(R,U,_);break;default:e.Debug.fail(JSON.stringify(B.fixId))}})}});function c(B,U,K){B.replaceNode(U,K.parent,e.factory.createKeywordTypeNode(152))}function x(B,U){return a.createCodeFixAction(p,B,U,t,e.Diagnostics.Delete_all_unused_declarations)}function se(B,U,K){B.delete(U,e.Debug.checkDefined(e.cast(K.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function z(B){return B.kind===99||B.kind===78&&(B.parent.kind===266||B.parent.kind===263)}function ue(B){return B.kind===99?e.tryCast(B.parent,e.isImportDeclaration):void 0}function E(B,U){return e.isVariableDeclarationList(U.parent)&&e.first(U.parent.getChildren(B))===U}function C(B,U,K){B.delete(U,K.parent.kind===233?K.parent:K)}function I(B,U,K){e.forEach(K.elements,function(T){return B.delete(U,T)})}function j(B,U,K,T){U!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(T.kind===135&&(T=e.cast(T.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(T)&&Y(T)&&(B.replaceNode(K,T,e.factory.createIdentifier("_"+T.text)),e.isParameter(T.parent)&&e.getJSDocParameterTags(T.parent).forEach(function(G){e.isIdentifier(G.name)&&B.replaceNode(K,G.name,e.factory.createIdentifier("_"+G.name.text))})))}function Y(B){switch(B.parent.kind){case 161:case 160:return!0;case 250:{var U=B.parent;switch(U.parent.parent.kind){case 240:case 239:return!0}}}return!1}function L(B,U,K,T,G,v,R,F){k(U,K,B,T,G,v,R,F),e.isIdentifier(U)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(U,T,B,function(_){e.isPropertyAccessExpression(_.parent)&&_.parent.name===_&&(_=_.parent),!F&&Z(_)&&K.delete(B,_.parent.parent)})}function k(B,U,K,T,G,v,R,F){var _=B.parent;if(e.isParameter(_))h(U,K,_,T,G,v,R,F);else if(!(F&&e.isIdentifier(B)&&e.FindAllReferences.Core.isSymbolReferencedInFile(B,T,K))){var u=e.isImportClause(_)?B:e.isComputedPropertyName(_)?_.parent:_;e.Debug.assert(u!==K,"should not delete whole source file"),U.delete(K,u)}}function h(B,U,K,T,G,v,R,F){F===void 0&&(F=!1),O(T,U,K,G,v,R,F)&&(K.modifiers&&K.modifiers.length>0&&(!e.isIdentifier(K.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(K.name,T,U))?K.modifiers.forEach(function(_){return B.deleteModifier(U,_)}):!K.initializer&&M(K,T,G)&&B.delete(U,K))}function M(B,U,K){var T=B.parent.parameters.indexOf(B);return!e.FindAllReferences.Core.someSignatureUsage(B.parent,K,U,function(G,v){return!v||v.arguments.length>T})}function O(B,U,K,T,G,v,R){var F=K.parent;switch(F.kind){case 166:case 167:var _=F.parameters.indexOf(K),u=e.isMethodDeclaration(F)?F.name:F,b=e.FindAllReferences.Core.getReferencedSymbolsForNode(F.pos,u,G,T,v);if(b)for(var w=0,ee=b;w_,A=e.isPropertyAccessExpression(ge.node.parent)&&e.isSuperKeyword(ge.node.parent.expression)&&e.isCallExpression(ge.node.parent.parent)&&ge.node.parent.parent.arguments.length>_,X=(e.isMethodDeclaration(ge.node.parent)||e.isMethodSignature(ge.node.parent))&&ge.node.parent!==K.parent&&ge.node.parent.parameters.length>_;if(fe||A||X)return!1}}return!0;case 252:return F.name&&H(B,U,F.name)?$(F,K,R):!0;case 209:case 210:return $(F,K,R);case 169:return!1;default:return e.Debug.failBadSyntaxKind(F)}}function H(B,U,K){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(K,B,U,function(T){return e.isIdentifier(T)&&e.isCallExpression(T.parent)&&T.parent.arguments.indexOf(T)>=0})}function $(B,U,K){var T=B.parameters,G=T.indexOf(U);return e.Debug.assert(G!==-1,"The parameter should already be in the list"),K?T.slice(G+1).every(function(v){return e.isIdentifier(v.name)&&!v.symbol.isReferenced}):G===T.length-1}function Z(B){return(e.isBinaryExpression(B.parent)&&B.parent.left===B||(e.isPostfixUnaryExpression(B.parent)||e.isPrefixUnaryExpression(B.parent))&&B.parent.operand===B)&&e.isExpressionStatement(B.parent.parent)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixUnreachableCode",g=[e.Diagnostics.Unreachable_code_detected.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(N){var D=e.textChanges.ChangeTracker.with(N,function(c){return t(c,N.sourceFile,N.span.start,N.span.length,N.errorCode)});return[a.createCodeFixAction(p,D,e.Diagnostics.Remove_unreachable_code,p,e.Diagnostics.Remove_all_unreachable_code)]},fixIds:[p],getAllCodeActions:function(N){return a.codeFixAll(N,g,function(D,c){return t(D,c.file,c.start,c.length,c.code)})}});function t(N,D,c,x,se){var z=e.getTokenAtPosition(D,c),ue=e.findAncestor(z,e.isStatement);if(ue.getStart(D)!==z.getStart(D)){var E=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(ue.kind),tokenKind:e.Debug.formatSyntaxKind(z.kind),errorCode:se,start:c,length:x});e.Debug.fail("Token and statement should start at the same point. "+E)}var C=(e.isBlock(ue.parent)?ue.parent:ue).parent;if(!e.isBlock(ue.parent)||ue===e.first(ue.parent.statements))switch(C.kind){case 235:if(C.elseStatement){if(e.isBlock(ue.parent))break;N.replaceNode(D,ue,e.factory.createBlock(e.emptyArray));return}case 237:case 238:N.delete(D,C);return}if(e.isBlock(ue.parent)){var I=c+x,j=e.Debug.checkDefined(m(e.sliceAfter(ue.parent.statements,ue),function(Y){return Y.posje.length){var fn=G.getSignatureFromDeclaration(T[T.length-1]);Ne(le,fn,u,F,ue(le))}else e.Debug.assert(T.length===je.length,"Declarations and signatures should match count"),K(x(G,Z,H,je,F,w,u,le));break}function Ne(be,de,Ce,ye,on){var Te=m(Z,be,de,H,Ce,ye,w,on,U);Te&&K(Te)}}function m(O,H,$,Z,B,U,K,T,G){var v=O.program,R=v.getTypeChecker(),F=e.getEmitScriptTarget(v.getCompilerOptions()),_=1073742081|(H===0?268435456:0),u=R.signatureToSignatureDeclaration($,166,Z,_,g(O));if(u){var b=u.typeParameters,w=u.parameters,ee=u.type;if(G){if(b){var le=e.sameMap(b,function(ge){var fe=ge.constraint,A=ge.default;if(fe){var X=k(fe,F);X&&(fe=X.typeNode,M(G,X.symbols))}if(A){var X=k(A,F);X&&(A=X.typeNode,M(G,X.symbols))}return e.factory.updateTypeParameterDeclaration(ge,ge.name,fe,A)});b!==le&&(b=e.setTextRange(e.factory.createNodeArray(le,b.hasTrailingComma),b))}var ie=e.sameMap(w,function(ge){var fe=k(ge.type,F),A=ge.type;return fe&&(A=fe.typeNode,M(G,fe.symbols)),e.factory.updateParameterDeclaration(ge,ge.decorators,ge.modifiers,ge.dotDotDotToken,ge.name,ge.questionToken,A,ge.initializer)});if(w!==ie&&(w=e.setTextRange(e.factory.createNodeArray(ie,w.hasTrailingComma),w)),ee){var W=k(ee,F);W&&(ee=W.typeNode,M(G,W.symbols))}}return e.factory.updateMethodDeclaration(u,void 0,B,u.asteriskToken,U,K?e.factory.createToken(57):void 0,b,w,ee,T)}}function N(O,H,$,Z,B,U,K){var T=e.getQuotePreference(H.sourceFile,H.preferences),G=e.getEmitScriptTarget(H.program.getCompilerOptions()),v=g(H),R=H.program.getTypeChecker(),F=e.isInJSFile(K),_=Z.typeArguments,u=Z.arguments,b=Z.parent,w=F?void 0:R.getContextualType(Z),ee=e.map(u,function(X){return e.isIdentifier(X)?X.text:e.isPropertyAccessExpression(X)&&e.isIdentifier(X.name)?X.name.text:void 0}),le=F?[]:e.map(u,function(X){return D(R,$,R.getBaseTypeOfLiteralType(R.getTypeAtLocation(X)),K,G,void 0,v)}),ie=U?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(U)):void 0,W=e.isYieldExpression(b)?e.factory.createToken(41):void 0,ge=F||_===void 0?void 0:e.map(_,function(X,re){return e.factory.createTypeParameterDeclaration(84+_.length-1<=90?String.fromCharCode(84+re):"T"+re)}),fe=c(u.length,ee,le,void 0,F),A=F||w===void 0?void 0:R.typeToTypeNode(w,K,void 0,v);return O===166?e.factory.createMethodDeclaration(void 0,ie,W,B,void 0,ge,fe,A,e.isInterfaceDeclaration(K)?void 0:ue(T)):e.factory.createFunctionDeclaration(void 0,ie,W,B,ge,fe,A,E(e.Diagnostics.Function_not_implemented.message,T))}a.createSignatureDeclarationFromCallExpression=N;function D(O,H,$,Z,B,U,K){var T=O.typeToTypeNode($,Z,U,K);if(T&&e.isImportTypeNode(T)){var G=k(T,B);if(G)return M(H,G.symbols),G.typeNode}return T}a.typeToAutoImportableTypeNode=D;function c(O,H,$,Z,B){for(var U=[],K=0;K=Z?e.factory.createToken(57):void 0,B?void 0:$&&$[K]||e.factory.createKeywordTypeNode(128),void 0);U.push(T)}return U}function x(O,H,$,Z,B,U,K,T){for(var G=Z[0],v=Z[0].minArgumentCount,R=!1,F=0,_=Z;F<_.length;F++){var u=_[F];v=Math.min(u.minArgumentCount,v),e.signatureHasRestParameter(u)&&(R=!0),u.parameters.length>=G.parameters.length&&(!e.signatureHasRestParameter(u)||e.signatureHasRestParameter(G))&&(G=u)}var b=G.parameters.length-(e.signatureHasRestParameter(G)?1:0),w=G.parameters.map(function(W){return W.name}),ee=c(b,w,void 0,v,!1);if(R){var le=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),ie=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),w[b]||"rest",b>=v?e.factory.createToken(57):void 0,le,void 0);ee.push(ie)}return z(K,B,U,void 0,ee,se(Z,O,H,$),T)}function se(O,H,$,Z){if(e.length(O)){var B=H.getUnionType(e.map(O,H.getReturnTypeOfSignature));return H.typeToTypeNode(B,Z,void 0,g($))}}function z(O,H,$,Z,B,U,K){return e.factory.createMethodDeclaration(void 0,O,void 0,H,$?e.factory.createToken(57):void 0,Z,B,U,ue(K))}function ue(O){return E(e.Diagnostics.Method_not_implemented.message,O)}function E(O,H){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(O,H===0)]))],!0)}a.createStubbedBody=E;function C(O){if(O&4)return e.factory.createToken(122);if(O&16)return e.factory.createToken(121)}function I(O,H,$){var Z=e.getTsConfigObjectLiteralExpression(H);if(Z){var B=L(Z,"compilerOptions");if(B===void 0){O.insertNodeAtObjectStart(H,Z,Y("compilerOptions",e.factory.createObjectLiteralExpression($.map(function(_){var u=_[0],b=_[1];return Y(u,b)}),!0)));return}var U=B.initializer;if(e.isObjectLiteralExpression(U))for(var K=0,T=$;K0)return[a.createCodeFixAction(p,N,e.Diagnostics.Convert_to_a_bigint_numeric_literal,p,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[p],getAllCodeActions:function(m){return a.codeFixAll(m,g,function(N,D){return t(N,D.file,D)})}});function t(m,N,D){var c=e.tryCast(e.getTokenAtPosition(N,D.start),e.isNumericLiteral);if(c){var x=c.getText(N)+"n";m.replaceNode(N,c,e.factory.createBigIntLiteral(x))}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixAddModuleReferTypeMissingTypeof",g=p,t=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];a.registerCodeFix({errorCodes:t,getCodeActions:function(D){var c=D.sourceFile,x=D.span,se=m(c,x.start),z=e.textChanges.ChangeTracker.with(D,function(ue){return N(ue,c,se)});return[a.createCodeFixAction(g,z,e.Diagnostics.Add_missing_typeof,g,e.Diagnostics.Add_missing_typeof)]},fixIds:[g],getAllCodeActions:function(D){return a.codeFixAll(D,t,function(c,x){return N(c,D.sourceFile,m(x.file,x.start))})}});function m(D,c){var x=e.getTokenAtPosition(D,c);return e.Debug.assert(x.kind===99,"This token should be an ImportKeyword"),e.Debug.assert(x.parent.kind===196,"Token parent should be an ImportType"),x.parent}function N(D,c,x){var se=e.factory.updateImportTypeNode(x,x.argument,x.qualifier,x.typeArguments,!0);D.replaceNode(c,x,se)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="wrapJsxInFragment",g=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(D){var c=D.program.getCompilerOptions().jsx;if(!(c!==2&&c!==3)){var x=D.sourceFile,se=D.span,z=t(x,se.start);if(z){var ue=e.textChanges.ChangeTracker.with(D,function(E){return m(E,x,z)});return[a.createCodeFixAction(p,ue,e.Diagnostics.Wrap_in_JSX_fragment,p,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}}},fixIds:[p],getAllCodeActions:function(D){return a.codeFixAll(D,g,function(c,x){var se=t(D.sourceFile,x.start);se&&m(c,D.sourceFile,se)})}});function t(D,c){var x=e.getTokenAtPosition(D,c),se=x.parent,z=se.parent;if(!(!e.isBinaryExpression(z)&&(z=z.parent,!e.isBinaryExpression(z)))&&e.nodeIsMissing(z.operatorToken))return z}function m(D,c,x){var se=N(x);se&&D.replaceNode(c,x,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),se,e.factory.createJsxJsxClosingFragment()))}function N(D){for(var c=[],x=D;;)if(e.isBinaryExpression(x)&&e.nodeIsMissing(x.operatorToken)&&x.operatorToken.kind===27){if(c.push(x.left),e.isJsxChild(x.right))return c.push(x.right),c;if(e.isBinaryExpression(x.right)){x=x.right;continue}else return}else return}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixConvertToMappedObjectType",g=p,t=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];a.registerCodeFix({errorCodes:t,getCodeActions:function(c){var x=c.sourceFile,se=c.span,z=m(x,se.start);if(z){var ue=e.textChanges.ChangeTracker.with(c,function(C){return D(C,x,z)}),E=e.idText(z.container.name);return[a.createCodeFixAction(g,ue,[e.Diagnostics.Convert_0_to_mapped_object_type,E],g,[e.Diagnostics.Convert_0_to_mapped_object_type,E])]}},fixIds:[g],getAllCodeActions:function(c){return a.codeFixAll(c,t,function(x,se){var z=m(se.file,se.start);z&&D(x,se.file,z)})}});function m(c,x){var se=e.getTokenAtPosition(c,x),z=e.cast(se.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(z.parent)){var ue=e.isInterfaceDeclaration(z.parent)?z.parent:e.cast(z.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:z,container:ue}}}function N(c,x){return e.factory.createTypeAliasDeclaration(c.decorators,c.modifiers,c.name,c.typeParameters,x)}function D(c,x,se){var z=se.indexSignature,ue=se.container,E=e.isInterfaceDeclaration(ue)?ue.members:ue.type.members,C=E.filter(function(k){return!e.isIndexSignatureDeclaration(k)}),I=e.first(z.parameters),j=e.factory.createTypeParameterDeclaration(e.cast(I.name,e.isIdentifier),I.type),Y=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(z)?e.factory.createModifier(142):void 0,j,void 0,z.questionToken,z.type),L=e.factory.createIntersectionTypeNode(wr(wr(wr([],e.getAllSuperTypeNodes(ue)),[Y]),C.length?[e.factory.createTypeLiteralNode(C)]:e.emptyArray));c.replaceNode(x,ue,N(ue,L))}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="removeAccidentalCallParentheses",g=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(t){var m=e.findAncestor(e.getTokenAtPosition(t.sourceFile,t.span.start),e.isCallExpression);if(m){var N=e.textChanges.ChangeTracker.with(t,function(D){D.deleteRange(t.sourceFile,{pos:m.expression.end,end:m.end})});return[a.createCodeFixActionWithoutFixAll(p,N,e.Diagnostics.Remove_parentheses)]}},fixIds:[p]})})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="removeUnnecessaryAwait",g=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(m){var N=e.textChanges.ChangeTracker.with(m,function(D){return t(D,m.sourceFile,m.span)});if(N.length>0)return[a.createCodeFixAction(p,N,e.Diagnostics.Remove_unnecessary_await,p,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[p],getAllCodeActions:function(m){return a.codeFixAll(m,g,function(N,D){return t(N,D.file,D)})}});function t(m,N,D){var c=e.tryCast(e.getTokenAtPosition(N,D.start),function(C){return C.kind===130}),x=c&&e.tryCast(c.parent,e.isAwaitExpression);if(x){var se=x,z=e.isParenthesizedExpression(x.parent);if(z){var ue=e.getLeftmostExpression(x.expression,!1);if(e.isIdentifier(ue)){var E=e.findPrecedingToken(x.parent.pos,N);E&&E.kind!==102&&(se=x.parent)}}m.replaceNode(N,se,x.expression)}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],g="splitTypeOnlyImport";a.registerCodeFix({errorCodes:p,fixIds:[g],getCodeActions:function(N){var D=e.textChanges.ChangeTracker.with(N,function(c){return m(c,t(N.sourceFile,N.span),N)});if(D.length)return[a.createCodeFixAction(g,D,e.Diagnostics.Split_into_two_separate_import_declarations,g,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(N){return a.codeFixAll(N,p,function(D,c){m(D,t(N.sourceFile,c),N)})}});function t(N,D){return e.findAncestor(e.getTokenAtPosition(N,D.start),e.isImportDeclaration)}function m(N,D,c){if(D){var x=e.Debug.checkDefined(D.importClause);N.replaceNode(c.sourceFile,D,e.factory.updateImportDeclaration(D,D.decorators,D.modifiers,e.factory.updateImportClause(x,x.isTypeOnly,x.name,void 0),D.moduleSpecifier)),N.insertNodeAfter(c.sourceFile,D,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(x,x.isTypeOnly,void 0,x.namedBindings),D.moduleSpecifier))}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixConvertConstToLet",g=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];a.registerCodeFix({errorCodes:g,getCodeActions:function(N){var D=N.sourceFile,c=N.span,x=N.program,se=t(D,c.start,x),z=e.textChanges.ChangeTracker.with(N,function(ue){return m(ue,D,se)});return[a.createCodeFixAction(p,z,e.Diagnostics.Convert_const_to_let,p,e.Diagnostics.Convert_const_to_let)]},fixIds:[p]});function t(N,D,c){var x=e.getTokenAtPosition(N,D),se=c.getTypeChecker(),z=se.getSymbolAtLocation(x);if(z!=null&&z.valueDeclaration)return z.valueDeclaration.parent.parent}function m(N,D,c){if(c){var x=c.getStart();N.replaceRangeWithText(D,{pos:x,end:x+5},"let")}}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="fixExpectedComma",g=e.Diagnostics._0_expected.code,t=[g];a.registerCodeFix({errorCodes:t,getCodeActions:function(D){var c=D.sourceFile,x=m(c,D.span.start,D.errorCode);if(x){var se=e.textChanges.ChangeTracker.with(D,function(z){return N(z,c,x)});return[a.createCodeFixAction(p,se,[e.Diagnostics.Change_0_to_1,";",","],p,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[p],getAllCodeActions:function(D){return a.codeFixAll(D,t,function(c,x){var se=m(x.file,x.start,x.code);se&&N(c,D.sourceFile,se)})}});function m(D,c,x){var se=e.getTokenAtPosition(D,c);return se.kind===26&&se.parent&&(e.isObjectLiteralExpression(se.parent)||e.isArrayLiteralExpression(se.parent))?{node:se}:void 0}function N(D,c,x){var se=x.node,z=e.factory.createToken(27);D.replaceNode(c,se,z)}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="addVoidToPromise",g="addVoidToPromise",t=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];a.registerCodeFix({errorCodes:t,fixIds:[g],getCodeActions:function(D){var c=e.textChanges.ChangeTracker.with(D,function(x){return m(x,D.sourceFile,D.span,D.program)});if(c.length>0)return[a.createCodeFixAction(p,c,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,g,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(D){return a.codeFixAll(D,t,function(c,x){return m(c,x.file,x,D.program,new e.Set)})}});function m(D,c,x,se,z){var ue=e.getTokenAtPosition(c,x.start);if(!(!e.isIdentifier(ue)||!e.isCallExpression(ue.parent)||ue.parent.expression!==ue||ue.parent.arguments.length!==0)){var E=se.getTypeChecker(),C=E.getSymbolAtLocation(ue),I=C==null?void 0:C.valueDeclaration;if(!(!I||!e.isParameter(I)||!e.isNewExpression(I.parent.parent))&&!(z!=null&&z.has(I))){z==null||z.add(I);var j=N(I.parent.parent);if(e.some(j)){var Y=j[0],L=!e.isUnionTypeNode(Y)&&!e.isParenthesizedTypeNode(Y)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([Y,e.factory.createKeywordTypeNode(113)]).types[0]);L&&D.insertText(c,Y.pos,"("),D.insertText(c,Y.end,L?") | void":" | void")}else{var k=E.getResolvedSignature(ue.parent),h=k==null?void 0:k.parameters[0],M=h&&E.getTypeOfSymbolAtLocation(h,I.parent.parent);e.isInJSFile(I)?(!M||M.flags&3)&&(D.insertText(c,I.parent.parent.end,")"),D.insertText(c,e.skipTrivia(c.text,I.parent.parent.pos),"/** @type {Promise} */(")):(!M||M.flags&2)&&D.insertText(c,I.parent.parent.expression.end,"")}}}}function N(D){var c;if(e.isInJSFile(D)){if(e.isParenthesizedExpression(D.parent)){var x=(c=e.getJSDocTypeTag(D.parent))===null||c===void 0?void 0:c.typeExpression.type;if(x&&e.isTypeReferenceNode(x)&&e.isIdentifier(x.typeName)&&e.idText(x.typeName)==="Promise")return x.typeArguments}}else return D.typeArguments}})(e.codefix||(e.codefix={}))})(un||(un={}));var un;(function(e){(function(a){var p="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"},t={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};a.registerRefactor(p,{kinds:[g.kind,t.kind],getAvailableActions:function(E){var C=m(E,E.triggerReason==="invoked");if(!C)return e.emptyArray;if(!a.isRefactorErrorInfo(C)){var I=C.wasDefault?g:t;return[{name:p,description:I.description,actions:[I]}]}return E.preferences.provideRefactorNotApplicableReason?[{name:p,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[Nt(Nt({},g),{notApplicableReason:C.error}),Nt(Nt({},t),{notApplicableReason:C.error})]}]:e.emptyArray},getEditsForAction:function(E,C){e.Debug.assert(C===g.name||C===t.name,"Unexpected action name");var I=m(E);e.Debug.assert(I&&!a.isRefactorErrorInfo(I),"Expected applicable refactor info");var j=e.textChanges.ChangeTracker.with(E,function(Y){return N(E.file,E.program,I,Y,E.cancellationToken)});return{edits:j,renameFilename:void 0,renameLocation:void 0}}});function m(E,C){C===void 0&&(C=!0);var I=E.file,j=e.getRefactorContextSpan(E),Y=e.getTokenAtPosition(I,j.start),L=Y.parent&&e.getSyntacticModifierFlags(Y.parent)&1&&C?Y.parent:e.getParentNodeInSpan(Y,I,j);if(!L||!e.isSourceFile(L.parent)&&!(e.isModuleBlock(L.parent)&&e.isAmbientModule(L.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var k=e.isSourceFile(L.parent)?L.parent.symbol:L.parent.parent.symbol,h=e.getSyntacticModifierFlags(L)||(e.isExportAssignment(L)&&!L.isExportEquals?513:0),M=!!(h&512);if(!(h&1)||!M&&k.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};switch(L.kind){case 252:case 253:case 254:case 256:case 255:case 257:{var O=L;return O.name&&e.isIdentifier(O.name)?{exportNode:O,exportName:O.name,wasDefault:M,exportingModuleSymbol:k}:void 0}case 233:{var H=L;if(!(H.declarationList.flags&2)||H.declarationList.declarations.length!==1)return;var $=e.first(H.declarationList.declarations);return $.initializer?(e.Debug.assert(!M,"Can't have a default flag here"),e.isIdentifier($.name)?{exportNode:H,exportName:$.name,wasDefault:M,exportingModuleSymbol:k}:void 0):void 0}case 267:{var O=L,Z=O.expression;return O.isExportEquals?void 0:{exportNode:O,exportName:Z,wasDefault:M,exportingModuleSymbol:k}}default:return}}function N(E,C,I,j,Y){D(E,I,j,C.getTypeChecker()),c(C,I,j,Y)}function D(E,C,I,j){var Y=C.wasDefault,L=C.exportNode,k=C.exportName;if(Y)if(e.isExportAssignment(L)&&!L.isExportEquals){var h=L.expression,M=ue(h.text,h.text);I.replaceNode(E,L,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([M])))}else I.delete(E,e.Debug.checkDefined(e.findModifier(L,87),"Should find a default keyword in modifier list"));else{var O=e.Debug.checkDefined(e.findModifier(L,92),"Should find an export keyword in modifier list");switch(L.kind){case 252:case 253:case 254:I.insertNodeAfter(E,O,e.factory.createToken(87));break;case 233:var H=e.first(L.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(k,j,E)&&!H.type){I.replaceNode(E,L,e.factory.createExportDefault(e.Debug.checkDefined(H.initializer,"Initializer was previously known to be present")));break}case 256:case 255:case 257:I.deleteModifier(E,O),I.insertNodeAfter(E,L,e.factory.createExportDefault(e.factory.createIdentifier(k.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+L.kind)}}}function c(E,C,I,j){var Y=C.wasDefault,L=C.exportName,k=C.exportingModuleSymbol,h=E.getTypeChecker(),M=e.Debug.checkDefined(h.getSymbolAtLocation(L),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(E.getSourceFiles(),h,j,M,k,L.text,Y,function(O){var H=O.getSourceFile();Y?x(H,O,I,L.text):se(H,O,I)})}function x(E,C,I,j){var Y=C.parent;switch(Y.kind){case 202:I.replaceNode(E,C,e.factory.createIdentifier(j));break;case 266:case 271:{var L=Y;I.replaceNode(E,L,z(j,L.name.text));break}case 263:{var k=Y;e.Debug.assert(k.name===C,"Import clause name should match provided ref");var L=z(j,C.text),h=k.namedBindings;if(!h)I.replaceNode(E,C,e.factory.createNamedImports([L]));else if(h.kind===264){I.deleteRange(E,{pos:C.getStart(E),end:h.getStart(E)});var M=e.isStringLiteral(k.parent.moduleSpecifier)?e.quotePreferenceFromString(k.parent.moduleSpecifier,E):1,O=e.makeImport(void 0,[z(j,C.text)],k.parent.moduleSpecifier,M);I.insertNodeAfter(E,k.parent,O)}else I.delete(E,C),I.insertNodeAtEndOfList(E,h.elements,L);break}default:e.Debug.failBadSyntaxKind(Y)}}function se(E,C,I){var j=C.parent;switch(j.kind){case 202:I.replaceNode(E,C,e.factory.createIdentifier("default"));break;case 266:{var Y=e.factory.createIdentifier(j.name.text);j.parent.elements.length===1?I.replaceNode(E,j.parent,Y):(I.delete(E,j),I.insertNodeBefore(E,j.parent,Y));break}case 271:{I.replaceNode(E,j,ue("default",j.name.text));break}default:e.Debug.assertNever(j,"Unexpected parent kind "+j.kind)}}function z(E,C){return e.factory.createImportSpecifier(E===C?void 0:e.factory.createIdentifier(E),e.factory.createIdentifier(C))}function ue(E,C){return e.factory.createExportSpecifier(E===C?void 0:e.factory.createIdentifier(E),e.factory.createIdentifier(C))}})(e.refactor||(e.refactor={}))})(un||(un={}));var un;(function(e){(function(a){var p="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"},t={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};a.registerRefactor(p,{kinds:[g.kind,t.kind],getAvailableActions:function(ue){var E=m(ue,ue.triggerReason==="invoked");if(!E)return e.emptyArray;if(!a.isRefactorErrorInfo(E)){var C=E.kind===264,I=C?g:t;return[{name:p,description:I.description,actions:[I]}]}return ue.preferences.provideRefactorNotApplicableReason?[{name:p,description:g.description,actions:[Nt(Nt({},g),{notApplicableReason:E.error})]},{name:p,description:t.description,actions:[Nt(Nt({},t),{notApplicableReason:E.error})]}]:e.emptyArray},getEditsForAction:function(ue,E){e.Debug.assert(E===g.name||E===t.name,"Unexpected action name");var C=m(ue);e.Debug.assert(C&&!a.isRefactorErrorInfo(C),"Expected applicable refactor info");var I=e.textChanges.ChangeTracker.with(ue,function(j){return N(ue.file,ue.program,j,C)});return{edits:I,renameFilename:void 0,renameLocation:void 0}}});function m(ue,E){E===void 0&&(E=!0);var C=ue.file,I=e.getRefactorContextSpan(ue),j=e.getTokenAtPosition(C,I.start),Y=E?e.findAncestor(j,e.isImportDeclaration):e.getParentNodeInSpan(j,C,I);if(!Y||!e.isImportDeclaration(Y))return{error:"Selection is not an import declaration."};if(!(Y.getEnd()=G.pos?v.getEnd():G.getEnd()),F=T?k(G):L(G,R),_=F&&se(F)?h(F):void 0;if(!_)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var u=U.getTypeChecker();return e.isConditionalExpression(_)?ue(_,u):E(_)}}function ue($,Z){var B=$.condition,U=M($.whenTrue);if(!U||Z.isNullableType(Z.getTypeAtLocation(U)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(B)||e.isIdentifier(B))&&I(B,U.expression))return{finalExpression:U,occurrences:[B],expression:$};if(e.isBinaryExpression(B)){var K=C(U.expression,B);return K?{finalExpression:U,occurrences:K,expression:$}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function E($){if($.operatorToken.kind!==55)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var Z=M($.right);if(!Z)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var B=C(Z.expression,$.left);return B?{finalExpression:Z,occurrences:B,expression:$}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function C($,Z){for(var B=[];e.isBinaryExpression(Z)&&Z.operatorToken.kind===55;){var U=I(e.skipParentheses($),e.skipParentheses(Z.right));if(!U)break;B.push(U),$=U,Z=Z.left}var K=I($,Z);return K&&B.push(K),B.length>0?B:void 0}function I($,Z){if(!(!e.isIdentifier(Z)&&!e.isPropertyAccessExpression(Z)&&!e.isElementAccessExpression(Z)))return j($,Z)?Z:void 0}function j($,Z){for(;(e.isCallExpression($)||e.isPropertyAccessExpression($)||e.isElementAccessExpression($))&&Y($)!==Y(Z);)$=$.expression;for(;e.isPropertyAccessExpression($)&&e.isPropertyAccessExpression(Z)||e.isElementAccessExpression($)&&e.isElementAccessExpression(Z);){if(Y($)!==Y(Z))return!1;$=$.expression,Z=Z.expression}return e.isIdentifier($)&&e.isIdentifier(Z)&&$.getText()===Z.getText()}function Y($){if(e.isIdentifier($)||e.isStringOrNumericLiteralLike($))return $.getText();if(e.isPropertyAccessExpression($))return Y($.name);if(e.isElementAccessExpression($))return Y($.argumentExpression)}function L($,Z){for(;$.parent;){if(se($)&&Z.length!==0&&$.end>=Z.start+Z.length)return $;$=$.parent}}function k($){for(;$.parent;){if(se($)&&!se($.parent))return $;$=$.parent}}function h($){if(c($))return $;if(e.isVariableStatement($)){var Z=e.getSingleVariableOfVariableStatement($),B=Z==null?void 0:Z.initializer;return B&&c(B)?B:void 0}return $.expression&&c($.expression)?$.expression:void 0}function M($){if($=e.skipParentheses($),e.isBinaryExpression($))return M($.left);if((e.isPropertyAccessExpression($)||e.isElementAccessExpression($)||e.isCallExpression($))&&!e.isOptionalChain($))return $}function O($,Z,B){if(e.isPropertyAccessExpression(Z)||e.isElementAccessExpression(Z)||e.isCallExpression(Z)){var U=O($,Z.expression,B),K=B.length>0?B[B.length-1]:void 0,T=(K==null?void 0:K.getText())===Z.expression.getText();if(T&&B.pop(),e.isCallExpression(Z))return T?e.factory.createCallChain(U,e.factory.createToken(28),Z.typeArguments,Z.arguments):e.factory.createCallChain(U,Z.questionDotToken,Z.typeArguments,Z.arguments);if(e.isPropertyAccessExpression(Z))return T?e.factory.createPropertyAccessChain(U,e.factory.createToken(28),Z.name):e.factory.createPropertyAccessChain(U,Z.questionDotToken,Z.name);if(e.isElementAccessExpression(Z))return T?e.factory.createElementAccessChain(U,e.factory.createToken(28),Z.argumentExpression):e.factory.createElementAccessChain(U,Z.questionDotToken,Z.argumentExpression)}return Z}function H($,Z,B,U,K){var T=U.finalExpression,G=U.occurrences,v=U.expression,R=G[G.length-1],F=O(Z,T,G);F&&(e.isPropertyAccessExpression(F)||e.isElementAccessExpression(F)||e.isCallExpression(F))&&(e.isBinaryExpression(v)?B.replaceNodeRange($,R,T,F):e.isConditionalExpression(v)&&B.replaceNode($,v,e.factory.createBinaryExpression(F,e.factory.createToken(60),v.whenFalse)))}})(a.convertToOptionalChainExpression||(a.convertToOptionalChainExpression={}))})(e.refactor||(e.refactor={}))})(un||(un={}));var un;(function(e){(function(a){(function(p){var g="Convert overload list to single signature",t=e.Diagnostics.Convert_overload_list_to_single_signature.message,m={name:g,description:t,kind:"refactor.rewrite.function.overloadList"};a.registerRefactor(g,{kinds:[m.kind],getEditsForAction:D,getAvailableActions:N});function N(se){var z=se.file,ue=se.startPosition,E=se.program,C=x(z,ue,E);return C?[{name:g,description:t,actions:[m]}]:e.emptyArray}function D(se){var z=se.file,ue=se.startPosition,E=se.program,C=x(z,ue,E);if(!C)return;var I=E.getTypeChecker(),j=C[C.length-1],Y=j;switch(j.kind){case 165:{Y=e.factory.updateMethodSignature(j,j.modifiers,j.name,j.questionToken,j.typeParameters,k(C),j.type);break}case 166:{Y=e.factory.updateMethodDeclaration(j,j.decorators,j.modifiers,j.asteriskToken,j.name,j.questionToken,j.typeParameters,k(C),j.type,j.body);break}case 170:{Y=e.factory.updateCallSignature(j,j.typeParameters,k(C),j.type);break}case 167:{Y=e.factory.updateConstructorDeclaration(j,j.decorators,j.modifiers,k(C),j.body);break}case 171:{Y=e.factory.updateConstructSignature(j,j.typeParameters,k(C),j.type);break}case 252:{Y=e.factory.updateFunctionDeclaration(j,j.decorators,j.modifiers,j.asteriskToken,j.name,j.typeParameters,k(C),j.type,j.body);break}default:return e.Debug.failBadSyntaxKind(j,"Unhandled signature kind in overload list conversion refactoring")}if(Y===j)return;var L=e.textChanges.ChangeTracker.with(se,function(O){O.replaceNodeRange(z,C[0],C[C.length-1],Y)});return{renameFilename:void 0,renameLocation:void 0,edits:L};function k(O){var H=O[O.length-1];return e.isFunctionLikeDeclaration(H)&&H.body&&(O=O.slice(0,O.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(O,h)))])}function h(O){var H=e.map(O.parameters,M);return e.setEmitFlags(e.factory.createTupleTypeNode(H),e.some(H,function($){return!!e.length(e.getSyntheticLeadingComments($))})?0:1)}function M(O){e.Debug.assert(e.isIdentifier(O.name));var H=e.setTextRange(e.factory.createNamedTupleMember(O.dotDotDotToken,O.name,O.questionToken,O.type||e.factory.createKeywordTypeNode(128)),O),$=O.symbol&&O.symbol.getDocumentationComment(I);if($){var Z=e.displayPartsToString($);Z.length&&e.setSyntheticLeadingComments(H,[{text:`* `+Z.split(` `).map(function(B){return" * "+B}).join(` `)+` `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return H}}function c(se){switch(se.kind){case 165:case 166:case 170:case 167:case 171:case 252:return!0}return!1}function x(se,z,ue){var E=e.getTokenAtPosition(se,z),C=e.findAncestor(E,c);if(C){var I=ue.getTypeChecker(),j=C.symbol;if(j){var Y=j.declarations;if(!(e.length(Y)<=1)&&e.every(Y,function(O){return e.getSourceFileOfNode(O)===se})&&c(Y[0])){var L=Y[0].kind;if(e.every(Y,function(O){return O.kind===L})){var k=Y;if(!e.some(k,function(O){return!!O.typeParameters||e.some(O.parameters,function(H){return!!H.decorators||!!H.modifiers||!e.isIdentifier(H.name)})})){var h=e.mapDefined(k,function(O){return I.getSignatureFromDeclaration(O)});if(e.length(h)===e.length(Y)){var M=I.getReturnTypeOfSignature(h[0]);if(e.every(h,function(O){return I.getReturnTypeOfSignature(O)===M}))return k}}}}}}}})(a.addOrRemoveBracesToArrowFunction||(a.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))})(un||(un={}));var un;(function(e){(function(a){(function(p){var g="Extract Symbol",t={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},m={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};a.registerRefactor(g,{kinds:[t.kind,m.kind],getAvailableActions:N,getEditsForAction:D});function N(re){var ve=re.kind,ke=se(re.file,e.getRefactorContextSpan(re),re.triggerReason==="invoked"),Ie=ke.targetRange;if(Ie===void 0){if(!ke.errors||ke.errors.length===0||!re.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var Je=[];return a.refactorKindBeginsWith(m.kind,ve)&&Je.push({name:g,description:m.description,actions:[Nt(Nt({},m),{notApplicableReason:xn(ke.errors)})]}),a.refactorKindBeginsWith(t.kind,ve)&&Je.push({name:g,description:t.description,actions:[Nt(Nt({},t),{notApplicableReason:xn(ke.errors)})]}),Je}var je=Y(Ie,re);if(je===void 0)return e.emptyArray;for(var fn=[],ze=new e.Map,Ve,Ne=[],be=new e.Map,de,Ce=0,ye=0,on=je;ye=ve.start+ve.length)return(Ee||(Ee=[])).push(e.createDiagnosticForNode(me,c.cannotExtractSuper)),!0}else de|=x.UsesThis;break;case 210:e.forEachChild(me,function an(Sn){if(e.isThis(Sn))de|=x.UsesThis;else{if(e.isClassLike(Sn)||e.isFunctionLike(Sn)&&!e.isArrowFunction(Sn))return!1;e.forEachChild(Sn,an)}});case 253:case 252:e.isSourceFile(me.parent)&&me.parent.externalModuleIndicator===void 0&&(Ee||(Ee=[])).push(e.createDiagnosticForNode(me,c.functionWillNotBeVisibleInTheNewScope));case 222:case 209:case 166:case 167:case 168:case 169:return!1}var Se=oe;switch(me.kind){case 235:oe=0;break;case 248:oe=0;break;case 231:me.parent&&me.parent.kind===248&&me.parent.finallyBlock===me&&(oe=4);break;case 286:case 285:oe|=1;break;default:e.isIterationStatement(me,!1)&&(oe|=3);break}switch(me.kind){case 188:case 107:de|=x.UsesThis;break;case 246:{var Ye=me.label;(J||(J=[])).push(Ye.escapedText),e.forEachChild(me,te),J.pop();break}case 242:case 241:{var Ye=me.label;Ye?e.contains(J,Ye.escapedText)||(Ee||(Ee=[])).push(e.createDiagnosticForNode(me,c.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):oe&(me.kind===242?1:2)||(Ee||(Ee=[])).push(e.createDiagnosticForNode(me,c.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 214:de|=x.IsAsyncFunction;break;case 220:de|=x.IsGenerator;break;case 243:oe&4?de|=x.HasReturn:(Ee||(Ee=[])).push(e.createDiagnosticForNode(me,c.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(me,te);break}oe=Se}}}p.getRangeToExtract=se;function z(re,ve,ke){var Ie=re.getStart(ke),Je=ve.getEnd();return ke.text.charCodeAt(Je)===59&&Je++,{start:Ie,length:Je-Ie}}function ue(re){if(e.isStatement(re))return[re];if(e.isExpressionNode(re))return e.isExpressionStatement(re.parent)?[re.parent]:re}function E(re){return e.isFunctionLikeDeclaration(re)||e.isSourceFile(re)||e.isModuleBlock(re)||e.isClassLike(re)}function C(re){var ve=ee(re.range)?e.first(re.range):re.range;if(re.facts&x.UsesThis){var ke=e.getContainingClass(ve);if(ke){var Ie=e.findAncestor(ve,e.isFunctionLikeDeclaration);return Ie?[Ie,ke]:[ke]}}for(var Je=[];;)if(ve=ve.parent,ve.kind===161&&(ve=e.findAncestor(ve,function(je){return e.isFunctionLikeDeclaration(je)}).parent),E(ve)&&(Je.push(ve),ve.kind===298))return Je}function I(re,ve,ke){var Ie=L(re,ve),Je=Ie.scopes,je=Ie.readsAndWrites,fn=je.target,ze=je.usagesPerScope,Ve=je.functionErrorsPerScope,Ne=je.exposedVariableDeclarations;return e.Debug.assert(!Ve[ke].length,"The extraction went missing? How?"),ve.cancellationToken.throwIfCancellationRequested(),Z(fn,Je[ke],ze[ke],Ne,re,ve)}function j(re,ve,ke){var Ie=L(re,ve),Je=Ie.scopes,je=Ie.readsAndWrites,fn=je.target,ze=je.usagesPerScope,Ve=je.constantErrorsPerScope,Ne=je.exposedVariableDeclarations;e.Debug.assert(!Ve[ke].length,"The extraction went missing? How?"),e.Debug.assert(Ne.length===0,"Extract constant accepted a range containing a variable declaration?"),ve.cancellationToken.throwIfCancellationRequested();var be=e.isExpression(fn)?fn:fn.statements[0].expression;return B(be,Je[ke],ze[ke],re.facts,ve)}function Y(re,ve){var ke=L(re,ve),Ie=ke.scopes,Je=ke.readsAndWrites,je=Je.functionErrorsPerScope,fn=Je.constantErrorsPerScope,ze=Ie.map(function(Ve,Ne){var be=k(Ve),de=h(Ve),Ce=e.isFunctionLikeDeclaration(Ve)?M(Ve):e.isClassLike(Ve)?O(Ve):H(Ve),ye,on;return Ce===1?(ye=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[be,"global"]),on=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[de,"global"])):Ce===0?(ye=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[be,"module"]),on=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[de,"module"])):(ye=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[be,Ce]),on=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[de,Ce])),Ne===0&&!e.isClassLike(Ve)&&(on=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[de])),{functionExtraction:{description:ye,errors:je[Ne]},constantExtraction:{description:on,errors:fn[Ne]}}});return ze}function L(re,ve){var ke=ve.file,Ie=C(re),Je=le(re,ke),je=W(re,Ie,Je,ke,ve.program.getTypeChecker(),ve.cancellationToken);return{scopes:Ie,readsAndWrites:je}}function k(re){return e.isFunctionLikeDeclaration(re)?"inner function":e.isClassLike(re)?"method":"function"}function h(re){return e.isClassLike(re)?"readonly field":"constant"}function M(re){switch(re.kind){case 167:return"constructor";case 209:case 252:return re.name?"function '"+re.name.text+"'":e.ANONYMOUS;case 210:return"arrow function";case 166:return"method '"+re.name.getText()+"'";case 168:return"'get "+re.name.getText()+"'";case 169:return"'set "+re.name.getText()+"'";default:throw e.Debug.assertNever(re,"Unexpected scope kind "+re.kind)}}function O(re){return re.kind===253?re.name?"class '"+re.name.text+"'":"anonymous class declaration":re.name?"class expression '"+re.name.text+"'":"anonymous class expression"}function H(re){return re.kind===258?"namespace '"+re.parent.name.getText()+"'":re.externalModuleIndicator?0:1}var $;(function(re){re[re.Module=0]="Module",re[re.Global=1]="Global"})($||($={}));function Z(re,ve,ke,Ie,Je,je){var fn=ke.usages,ze=ke.typeParameterUsages,Ve=ke.substitutions,Ne=je.program.getTypeChecker(),be=e.getEmitScriptTarget(je.program.getCompilerOptions()),de=e.codefix.createImportAdder(je.file,je.program,je.preferences,je.host),Ce=ve.getSourceFile(),ye=e.getUniqueName(e.isClassLike(ve)?"newMethod":"newFunction",Ce),on=e.isInJSFile(ve),Te=e.factory.createIdentifier(ye),tn,Fe=[],Ke=[],rn;fn.forEach(function(Bn,bn){var In;if(!on){var Be=Ne.getTypeOfSymbolAtLocation(Bn.symbol,Bn.node);Be=Ne.getBaseTypeOfLiteralType(Be),In=e.codefix.typeToAutoImportableTypeNode(Ne,de,Be,ve,be,1)}var Zn=e.factory.createParameterDeclaration(void 0,void 0,void 0,bn,void 0,In);Fe.push(Zn),Bn.usage===2&&(rn||(rn=[])).push(Bn),Ke.push(e.factory.createIdentifier(bn))});var vn=e.arrayFrom(ze.values()).map(function(Bn){return{type:Bn,declaration:K(Bn)}}),xn=vn.sort(T),Rn=xn.length===0?void 0:xn.map(function(Bn){return Bn.declaration}),Ge=Rn!==void 0?Rn.map(function(Bn){return e.factory.createTypeReferenceNode(Bn.name,void 0)}):void 0;if(e.isExpression(re)&&!on){var we=Ne.getContextualType(re);tn=Ne.typeToTypeNode(we,ve,1)}var Re=v(re,Ie,rn,Ve,!!(Je.facts&x.HasReturn)),yn=Re.body,Ee=Re.returnValueProperty;e.suppressLeadingAndTrailingTrivia(yn);var oe;if(e.isClassLike(ve)){var J=on?[]:[e.factory.createModifier(120)];Je.facts&x.InStaticRegion&&J.push(e.factory.createModifier(123)),Je.facts&x.IsAsyncFunction&&J.push(e.factory.createModifier(129)),oe=e.factory.createMethodDeclaration(void 0,J.length?J:void 0,Je.facts&x.IsGenerator?e.factory.createToken(41):void 0,Te,void 0,Rn,Fe,tn,yn)}else oe=e.factory.createFunctionDeclaration(void 0,Je.facts&x.IsAsyncFunction?[e.factory.createToken(129)]:void 0,Je.facts&x.IsGenerator?e.factory.createToken(41):void 0,Te,Rn,Fe,tn,yn);var te=e.textChanges.ChangeTracker.fromContext(je),me=(ee(Je.range)?e.last(Je.range):Je.range).end,xe=_(me,ve);xe?te.insertNodeBefore(je.file,xe,oe,!0):te.insertNodeAtEndOfScope(je.file,ve,oe),de.writeFixes(te);var P=[],Se=G(ve,Je,ye),Ye=e.factory.createCallExpression(Se,Ge,Ke);if(Je.facts&x.IsGenerator&&(Ye=e.factory.createYieldExpression(e.factory.createToken(41),Ye)),Je.facts&x.IsAsyncFunction&&(Ye=e.factory.createAwaitExpression(Ye)),X(re)&&(Ye=e.factory.createJsxExpression(void 0,Ye)),Ie.length&&!rn)if(e.Debug.assert(!Ee,"Expected no returnValueProperty"),e.Debug.assert(!(Je.facts&x.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),Ie.length===1){var an=Ie[0];P.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(an.name),void 0,e.getSynthesizedDeepClone(an.type),Ye)],an.parent.flags)))}else{for(var Sn=[],Xn=[],wn=Ie[0].parent.flags,qn=!1,yr=0,Vr=Ie;yr1)return re;ke=re,re=re.parent}}function K(re){var ve,ke=re.symbol;if(ke&&ke.declarations)for(var Ie=0,Je=ke.declarations;Ie0;if(e.isBlock(re)&&!je&&Ie.size===0)return{body:e.factory.createBlock(re.statements,!0),returnValueProperty:void 0};var fn,ze=!1,Ve=e.factory.createNodeArray(e.isBlock(re)?re.statements.slice(0):[e.isStatement(re)?re:e.factory.createReturnStatement(re)]);if(je||Ie.size){var Ne=e.visitNodes(Ve,de).slice();if(je&&!Je&&e.isStatement(re)){var be=w(ve,ke);be.length===1?Ne.push(e.factory.createReturnStatement(be[0].name)):Ne.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(be)))}return{body:e.factory.createBlock(Ne,!0),returnValueProperty:fn}}else return{body:e.factory.createBlock(Ve,!0),returnValueProperty:void 0};function de(Ce){if(!ze&&e.isReturnStatement(Ce)&&je){var ye=w(ve,ke);return Ce.expression&&(fn||(fn="__return"),ye.unshift(e.factory.createPropertyAssignment(fn,e.visitNode(Ce.expression,de)))),ye.length===1?e.factory.createReturnStatement(ye[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(ye))}else{var on=ze;ze=ze||e.isFunctionLikeDeclaration(Ce)||e.isClassLike(Ce);var Te=Ie.get(e.getNodeId(Ce).toString()),tn=Te?e.getSynthesizedDeepClone(Te):e.visitEachChild(Ce,de,e.nullTransformationContext);return ze=on,tn}}}function R(re,ve){return ve.size?ke(re):re;function ke(Ie){var Je=ve.get(e.getNodeId(Ie).toString());return Je?e.getSynthesizedDeepClone(Je):e.visitEachChild(Ie,ke,e.nullTransformationContext)}}function F(re){if(e.isFunctionLikeDeclaration(re)){var ve=re.body;if(e.isBlock(ve))return ve.statements}else{if(e.isModuleBlock(re)||e.isSourceFile(re))return re.statements;if(e.isClassLike(re))return re.members;e.assertType(re)}return e.emptyArray}function _(re,ve){return e.find(F(ve),function(ke){return ke.pos>=re&&e.isFunctionLikeDeclaration(ke)&&!e.isConstructorDeclaration(ke)})}function u(re,ve){var ke=ve.members;e.Debug.assert(ke.length>0,"Found no members");for(var Ie,Je=!0,je=0,fn=ke;jere)return Ie||ke[0];if(Je&&!e.isPropertyDeclaration(ze)){if(Ie!==void 0)return ze;Je=!1}Ie=ze}return Ie===void 0?e.Debug.fail():Ie}function b(re,ve){e.Debug.assert(!e.isClassLike(ve));for(var ke,Ie=re;Ie!==ve;Ie=Ie.parent)E(Ie)&&(ke=Ie);for(var Ie=(ke||re).parent;;Ie=Ie.parent){if(A(Ie)){for(var Je=void 0,je=0,fn=Ie.statements;jere.pos)break;Je=ze}return!Je&&e.isCaseClause(Ie)?(e.Debug.assert(e.isSwitchStatement(Ie.parent.parent),"Grandparent isn't a switch statement"),Ie.parent.parent):e.Debug.checkDefined(Je,"prevStatement failed to get set")}e.Debug.assert(Ie!==ve,"Didn't encounter a block-like before encountering scope")}}function w(re,ve){var ke=e.map(re,function(Je){return e.factory.createShorthandPropertyAssignment(Je.symbol.name)}),Ie=e.map(ve,function(Je){return e.factory.createShorthandPropertyAssignment(Je.symbol.name)});return ke===void 0?Ie:Ie===void 0?ke:ke.concat(Ie)}function ee(re){return e.isArray(re)}function le(re,ve){return ee(re.range)?{pos:e.first(re.range).getStart(ve),end:e.last(re.range).getEnd()}:re.range}var ie;(function(re){re[re.Read=1]="Read",re[re.Write=2]="Write"})(ie||(ie={}));function W(re,ve,ke,Ie,Je,je){var fn=new e.Map,ze=[],Ve=[],Ne=[],be=[],de=[],Ce=new e.Map,ye=[],on,Te=ee(re.range)?re.range.length===1&&e.isExpressionStatement(re.range[0])?re.range[0].expression:void 0:re.range,tn;if(Te===void 0){var Fe=re.range,Ke=e.first(Fe).getStart(),rn=e.last(Fe).end;tn=e.createFileDiagnostic(Ie,Ke,rn-Ke,c.expressionExpected)}else Je.getTypeAtLocation(Te).flags&147456&&(tn=e.createDiagnosticForNode(Te,c.uselessConstantType));for(var vn=0,xn=ve;vn0){for(var J=new e.Map,te=0,me=yn;me!==void 0&&te0&&(Hn.usages.size>0||Hn.typeParameterUsages.size>0)){var kr=ee(re.range)?re.range[0]:re.range;be[Vn].push(e.createDiagnosticForNode(kr,c.cannotAccessVariablesFromNestedScopes))}var kn=!1,Sr;if(ze[Vn].usages.forEach(function(Qe){Qe.usage===2&&(kn=!0,Qe.symbol.flags&106500&&Qe.symbol.valueDeclaration&&e.hasEffectiveModifier(Qe.symbol.valueDeclaration,64)&&(Sr=Qe.symbol.valueDeclaration))}),e.Debug.assert(ee(re.range)||ye.length===0,"No variable declarations expected if something was extracted"),kn&&!ee(re.range)){var Cr=e.createDiagnosticForNode(re.range,c.cannotWriteInExpression);Ne[Vn].push(Cr),be[Vn].push(Cr)}else if(Sr&&Vn>0){var Cr=e.createDiagnosticForNode(Sr,c.cannotExtractReadonlyPropertyInitializerOutsideConstructor);Ne[Vn].push(Cr),be[Vn].push(Cr)}else if(on){var Cr=e.createDiagnosticForNode(on,c.cannotExtractExportedEntity);Ne[Vn].push(Cr),be[Vn].push(Cr)}},Xn=0;Xn=Hn)return Sr;if(we.set(Sr,Hn),Cr){for(var Qe=0,Bn=ze;Qe=0)){var Hn=e.isIdentifier(Vn)?Tn(Vn):Je.getSymbolAtLocation(Vn);if(Hn){var kr=e.find(de,function(Sr){return Sr.symbol===Hn});if(kr)if(e.isVariableDeclaration(kr)){var kn=kr.symbol.id.toString();Ce.has(kn)||(ye.push(kr),Ce.set(kn,!0))}else on=on||kr}e.forEachChild(Vn,We)}}function Tn(Vn){return Vn.parent&&e.isShorthandPropertyAssignment(Vn.parent)&&Vn.parent.name===Vn?Je.getShorthandAssignmentValueSymbol(Vn.parent):Je.getSymbolAtLocation(Vn)}function Nn(Vn,Hn,kr){if(Vn){var kn=Vn.getDeclarations();if(kn&&kn.some(function(Cr){return Cr.parent===Hn}))return e.factory.createIdentifier(Vn.name);var Sr=Nn(Vn.parent,Hn,kr);if(Sr!==void 0)return kr?e.factory.createQualifiedName(Sr,e.factory.createIdentifier(Vn.name)):e.factory.createPropertyAccessExpression(Sr,Vn.name)}}}function ge(re){return e.findAncestor(re,function(ve){return ve.parent&&fe(ve)&&!e.isBinaryExpression(ve.parent)})}function fe(re){var ve=re.parent;switch(ve.kind){case 292:return!1}switch(re.kind){case 10:return ve.kind!==262&&ve.kind!==266;case 221:case 197:case 199:return!1;case 78:return ve.kind!==199&&ve.kind!==266&&ve.kind!==271}return!0}function A(re){switch(re.kind){case 231:case 298:case 258:case 285:return!0;default:return!1}}function X(re){return(e.isJsxElement(re)||e.isJsxSelfClosingElement(re)||e.isJsxFragment(re))&&e.isJsxElement(re.parent)}})(a.extractSymbol||(a.extractSymbol={}))})(e.refactor||(e.refactor={}))})(un||(un={}));var un;(function(e){(function(a){var p="Extract type",g={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},t={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},m={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};a.registerRefactor(p,{kinds:[g.kind,t.kind,m.kind],getAvailableActions:function(E){var C=N(E,E.triggerReason==="invoked");return C?a.isRefactorErrorInfo(C)?E.preferences.provideRefactorNotApplicableReason?[{name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[Nt(Nt({},m),{notApplicableReason:C.error}),Nt(Nt({},g),{notApplicableReason:C.error}),Nt(Nt({},t),{notApplicableReason:C.error})]}]:e.emptyArray:[{name:p,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:C.isJS?[m]:e.append([g],C.typeElements&&t)}]:e.emptyArray},getEditsForAction:function(E,C){var I=E.file,j=N(E);e.Debug.assert(j&&!a.isRefactorErrorInfo(j),"Expected to find a range to extract");var Y=e.getUniqueName("NewType",I),L=e.textChanges.ChangeTracker.with(E,function(M){switch(C){case g.name:return e.Debug.assert(!j.isJS,"Invalid actionName/JS combo"),se(M,I,Y,j);case m.name:return e.Debug.assert(j.isJS,"Invalid actionName/JS combo"),ue(M,I,Y,j);case t.name:return e.Debug.assert(!j.isJS&&!!j.typeElements,"Invalid actionName/JS combo"),z(M,I,Y,j);default:e.Debug.fail("Unexpected action name")}}),k=I.fileName,h=e.getRenameLocation(L,k,Y,!1);return{edits:L,renameFilename:k,renameLocation:h}}});function N(E,C){C===void 0&&(C=!0);var I=E.file,j=E.startPosition,Y=e.isSourceFileJS(I),L=e.getTokenAtPosition(I,j),k=e.createTextRangeFromSpan(e.getRefactorContextSpan(E)),h=k.pos===k.end&&C,M=e.findAncestor(L,function(B){return B.parent&&e.isTypeNode(B)&&!c(k,B.parent,I)&&(h||e.nodeOverlapsWithStartEnd(L,I,k.pos,k.end))});if(!M||!e.isTypeNode(M))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var O=E.program.getTypeChecker(),H=e.Debug.checkDefined(e.findAncestor(M,e.isStatement),"Should find a statement"),$=x(O,M,H,I);if(!$)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var Z=D(O,M);return{isJS:Y,selection:M,firstStatement:H,typeParameters:$,typeElements:Z}}function D(E,C){if(C)if(e.isIntersectionTypeNode(C)){for(var I=[],j=new e.Map,Y=0,L=C.types;Ybe.pos});if(Ce!==-1){var ye=de[Ce];if(e.isNamedDeclaration(ye)&&ye.name&&e.rangeContainsRange(ye.name,be))return{toMove:[de[Ce]],afterLast:de[Ce+1]};if(!(be.pos>ye.getStart(Ne))){var on=e.findIndex(de,function(Te){return Te.end>be.end},Ce);if(!(on!==-1&&(on===0||de[on].getStart(Ne)=t&&e.every(u,function(w){return $(w,b)})}function $(u,b){if(e.isRestParameter(u)){var w=b.getTypeAtLocation(u);if(!b.isArrayType(w)&&!b.isTupleType(w))return!1}return!u.modifiers&&!u.decorators&&e.isIdentifier(u.name)}function Z(u){return e.isVariableDeclaration(u)&&e.isVarConst(u)&&e.isIdentifier(u.name)&&!u.type}function B(u){return u.length>0&&e.isThis(u[0].name)}function U(u){return B(u)?u.length-1:u.length}function K(u){return B(u)&&(u=e.factory.createNodeArray(u.slice(1),u.hasTrailingComma)),u}function T(u,b){return e.isIdentifier(b)&&e.getTextOfIdentifierOrLiteral(b)===u?e.factory.createShorthandPropertyAssignment(u):e.factory.createPropertyAssignment(u,b)}function G(u,b){var w=K(u.parameters),ee=e.isRestParameter(e.last(w)),le=ee?b.slice(0,w.length-1):b,ie=e.map(le,function(A,X){var re=R(w[X]),ve=T(re,A);return e.suppressLeadingAndTrailingTrivia(ve.name),e.isPropertyAssignment(ve)&&e.suppressLeadingAndTrailingTrivia(ve.initializer),e.copyComments(A,ve),ve});if(ee&&b.length>=w.length){var W=b.slice(w.length-1),ge=e.factory.createPropertyAssignment(R(e.last(w)),e.factory.createArrayLiteralExpression(W));ie.push(ge)}var fe=e.factory.createObjectLiteralExpression(ie,!1);return fe}function v(u,b,w){var ee=b.getTypeChecker(),le=K(u.parameters),ie=e.map(le,ve),W=e.factory.createObjectBindingPattern(ie),ge=ke(le),fe;e.every(le,je)&&(fe=e.factory.createObjectLiteralExpression());var A=e.factory.createParameterDeclaration(void 0,void 0,void 0,W,void 0,ge,fe);if(B(u.parameters)){var X=u.parameters[0],re=e.factory.createParameterDeclaration(void 0,void 0,void 0,X.name,void 0,X.type);return e.suppressLeadingAndTrailingTrivia(re.name),e.copyComments(X.name,re.name),X.type&&(e.suppressLeadingAndTrailingTrivia(re.type),e.copyComments(X.type,re.type)),e.factory.createNodeArray([re,A])}return e.factory.createNodeArray([A]);function ve(fn){var ze=e.factory.createBindingElement(void 0,void 0,R(fn),e.isRestParameter(fn)&&je(fn)?e.factory.createArrayLiteralExpression():fn.initializer);return e.suppressLeadingAndTrailingTrivia(ze),fn.initializer&&ze.initializer&&e.copyComments(fn.initializer,ze.initializer),ze}function ke(fn){var ze=e.map(fn,Ie),Ve=e.addEmitFlags(e.factory.createTypeLiteralNode(ze),1);return Ve}function Ie(fn){var ze=fn.type;!ze&&(fn.initializer||e.isRestParameter(fn))&&(ze=Je(fn));var Ve=e.factory.createPropertySignature(void 0,R(fn),je(fn)?e.factory.createToken(57):fn.questionToken,ze);return e.suppressLeadingAndTrailingTrivia(Ve),e.copyComments(fn.name,Ve.name),fn.type&&Ve.type&&e.copyComments(fn.type,Ve.type),Ve}function Je(fn){var ze=ee.getTypeAtLocation(fn);return e.getTypeNodeIfAccessible(ze,fn,b,w)}function je(fn){if(e.isRestParameter(fn)){var ze=ee.getTypeAtLocation(fn);return!ee.isTupleType(ze)}return ee.isOptionalParameter(fn)}}function R(u){return e.getTextOfIdentifierOrLiteral(u.name)}function F(u){switch(u.parent.kind){case 253:var b=u.parent;if(b.name)return[b.name];var w=e.Debug.checkDefined(e.findModifier(b,87),"Nameless class declaration should be a default export");return[w];case 222:var ee=u.parent,le=u.parent.parent,ie=ee.name;return ie?[ie,le.name]:[le.name]}}function _(u){switch(u.kind){case 252:if(u.name)return[u.name];var b=e.Debug.checkDefined(e.findModifier(u,87),"Nameless function declaration should be a default export");return[b];case 166:return[u.name];case 167:var w=e.Debug.checkDefined(e.findChildOfKind(u,132,u.getSourceFile()),"Constructor declaration should have constructor keyword");if(u.parent.kind===222){var ee=u.parent.parent;return[ee.name,w]}return[w];case 210:return[u.parent.name];case 209:return u.name?[u.name,u.parent.name]:[u.parent.name];default:return e.Debug.assertNever(u,"Unexpected function declaration kind "+u.kind)}}})(a.convertParamsToDestructuredObject||(a.convertParamsToDestructuredObject={}))})(e.refactor||(e.refactor={}))})(un||(un={}));var un;(function(e){(function(a){(function(p){var g="Convert to template string",t=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),m={name:g,description:t,kind:"refactor.rewrite.string"};a.registerRefactor(g,{kinds:[m.kind],getEditsForAction:c,getAvailableActions:N});function N(h){var M=h.file,O=h.startPosition,H=D(M,O),$=z(H),Z={name:g,description:t,actions:[]};return e.isBinaryExpression($)&&ue($)?(Z.actions.push(m),[Z]):h.preferences.provideRefactorNotApplicableReason?(Z.actions.push(Nt(Nt({},m),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[Z]):e.emptyArray}function D(h,M){var O=e.getTokenAtPosition(h,M),H=z(O),$=!ue(H);return $&&e.isParenthesizedExpression(H.parent)&&e.isBinaryExpression(H.parent.parent)?H.parent.parent:O}function c(h,M){var O=h.file,H=h.startPosition,$=D(O,H);switch(M){case t:return{edits:x(h,$)};default:return e.Debug.fail("invalid action")}}function x(h,M){var O=z(M),H=h.file,$=Y(E(O),H),Z=e.getTrailingCommentRanges(H.text,O.end);if(Z){var B=Z[Z.length-1],U={pos:Z[0].pos,end:B.end};return e.textChanges.ChangeTracker.with(h,function(K){K.deleteRange(H,U),K.replaceNode(H,O,$)})}else return e.textChanges.ChangeTracker.with(h,function(K){return K.replaceNode(H,O,$)})}function se(h){return h.operatorToken.kind!==62}function z(h){var M=e.findAncestor(h.parent,function(O){switch(O.kind){case 202:case 203:return!1;case 219:case 217:return!(e.isBinaryExpression(O.parent)&&se(O.parent));default:return"quit"}});return M||h}function ue(h){var M=E(h),O=M.containsString,H=M.areOperatorsValid;return O&&H}function E(h){if(e.isBinaryExpression(h)){var M=E(h.left),O=M.nodes,H=M.operators,$=M.containsString,Z=M.areOperatorsValid;if(!$&&!e.isStringLiteral(h.right)&&!e.isTemplateExpression(h.right))return{nodes:[h],operators:[],containsString:!1,areOperatorsValid:!0};var B=h.operatorToken.kind===39,U=Z&&B;return O.push(h.right),H.push(h.operatorToken),{nodes:O,operators:H,containsString:!0,areOperatorsValid:U}}return{nodes:[h],operators:[],containsString:e.isStringLiteral(h),areOperatorsValid:!0}}var C=function(h,M){return function(O,H){O0;){var Z=H.shift();e.copyTrailingComments(h[Z],$,M,3,!1),O(Z,$)}}};function j(h,M){for(var O=[],H="";h1)return ue.getUnionType(e.mapDefined(C,function(j){return j.getReturnType()}))}var I=ue.getSignatureFromDeclaration(E);if(I)return ue.getReturnTypeOfSignature(I)}})(a.inferFunctionReturnType||(a.inferFunctionReturnType={}))})(e.refactor||(e.refactor={}))})(un||(un={}));var un;(function(e){e.servicesVersion="0.8";function a(X,re,ve,ke){var Ie=e.isNodeKind(X)?new p(X,re,ve):X===78?new x(78,re,ve):X===79?new se(79,re,ve):new c(X,re,ve);return Ie.parent=ke,Ie.flags=ke.flags&25358336,Ie}var p=function(){function X(re,ve,ke){this.pos=ve,this.end=ke,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=re}return X.prototype.assertHasRealPosition=function(re){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),re||"Node must have a real position for this operation")},X.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},X.prototype.getStart=function(re,ve){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,re,ve)},X.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},X.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},X.prototype.getWidth=function(re){return this.assertHasRealPosition(),this.getEnd()-this.getStart(re)},X.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},X.prototype.getLeadingTriviaWidth=function(re){return this.assertHasRealPosition(),this.getStart(re)-this.pos},X.prototype.getFullText=function(re){return this.assertHasRealPosition(),(re||this.getSourceFile()).text.substring(this.pos,this.end)},X.prototype.getText=function(re){return this.assertHasRealPosition(),re||(re=this.getSourceFile()),re.text.substring(this.getStart(re),this.getEnd())},X.prototype.getChildCount=function(re){return this.getChildren(re).length},X.prototype.getChildAt=function(re,ve){return this.getChildren(ve)[re]},X.prototype.getChildren=function(re){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=g(this,re))},X.prototype.getFirstToken=function(re){this.assertHasRealPosition();var ve=this.getChildren(re);if(ve.length){var ke=e.find(ve,function(Ie){return Ie.kind<302||Ie.kind>337});return ke.kind<158?ke:ke.getFirstToken(re)}},X.prototype.getLastToken=function(re){this.assertHasRealPosition();var ve=this.getChildren(re),ke=e.lastOrUndefined(ve);if(ke)return ke.kind<158?ke:ke.getLastToken(re)},X.prototype.forEachChild=function(re,ve){return e.forEachChild(this,re,ve)},X}();function g(X,re){if(!e.isNodeKind(X.kind))return e.emptyArray;var ve=[];if(e.isJSDocCommentContainingNode(X))return X.forEachChild(function(je){ve.push(je)}),ve;e.scanner.setText((re||X.getSourceFile()).text);var ke=X.pos,Ie=function(je){t(ve,ke,je.pos,X),ve.push(je),ke=je.end},Je=function(je){t(ve,ke,je.pos,X),ve.push(m(je,X)),ke=je.end};return e.forEach(X.jsDoc,Ie),ke=X.pos,X.forEachChild(Ie,Je),t(ve,ke,X.end,X),e.scanner.setText(void 0),ve}function t(X,re,ve,ke){for(e.scanner.setTextPos(re);re=Ie.length&&(Je=this.getEnd()),Je||(Je=Ie[ke+1]-1);var je=this.getFullText();return je[Je]===` `&&je[Je-1]==="\r"?Je-1:Je},re.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},re.prototype.computeNamedDeclarations=function(){var ve=e.createMultiMap();return this.forEachChild(je),ve;function ke(fn){var ze=Je(fn);ze&&ve.add(ze,fn)}function Ie(fn){var ze=ve.get(fn);return ze||ve.set(fn,ze=[]),ze}function Je(fn){var ze=e.getNonAssignedNameOfDeclaration(fn);return ze&&(e.isComputedPropertyName(ze)&&e.isPropertyAccessExpression(ze.expression)?ze.expression.name.text:e.isPropertyName(ze)?e.getNameFromPropertyName(ze):void 0)}function je(fn){switch(fn.kind){case 252:case 209:case 166:case 165:var ze=fn,Ve=Je(ze);if(Ve){var Ne=Ie(Ve),be=e.lastOrUndefined(Ne);be&&ze.parent===be.parent&&ze.symbol===be.symbol?ze.body&&!be.body&&(Ne[Ne.length-1]=ze):Ne.push(ze)}e.forEachChild(fn,je);break;case 253:case 222:case 254:case 255:case 256:case 257:case 261:case 271:case 266:case 263:case 264:case 168:case 169:case 178:ke(fn),e.forEachChild(fn,je);break;case 161:if(!e.hasSyntacticModifier(fn,16476))break;case 250:case 199:{var de=fn;if(e.isBindingPattern(de.name)){e.forEachChild(de.name,je);break}de.initializer&&je(de.initializer)}case 292:case 164:case 163:ke(fn);break;case 268:var Ce=fn;Ce.exportClause&&(e.isNamedExports(Ce.exportClause)?e.forEach(Ce.exportClause.elements,je):je(Ce.exportClause.name));break;case 262:var ye=fn.importClause;ye&&(ye.name&&ke(ye.name),ye.namedBindings&&(ye.namedBindings.kind===264?ke(ye.namedBindings):e.forEach(ye.namedBindings.elements,je)));break;case 217:e.getAssignmentDeclarationKind(fn)!==0&&ke(fn);default:e.forEachChild(fn,je)}}},re}(p),L=function(){function X(re,ve,ke){this.fileName=re,this.text=ve,this.skipTrivia=ke}return X.prototype.getLineAndCharacterOfPosition=function(re){return e.getLineAndCharacterOfPosition(this,re)},X}();function k(){return{getNodeConstructor:function(){return p},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return x},getPrivateIdentifierConstructor:function(){return se},getSourceFileConstructor:function(){return Y},getSymbolConstructor:function(){return D},getTypeConstructor:function(){return z},getSignatureConstructor:function(){return ue},getSourceMapSourceConstructor:function(){return L}}}function h(X){var re=!0;for(var ve in X)if(e.hasProperty(X,ve)&&!M(ve)){re=!1;break}if(re)return X;var ke={};for(var ve in X)if(e.hasProperty(X,ve)){var Ie=M(ve)?ve:ve.charAt(0).toLowerCase()+ve.substr(1);ke[Ie]=X[ve]}return ke}e.toEditorSettings=h;function M(X){return!X.length||X.charAt(0)===X.charAt(0).toLowerCase()}function O(X){return X?e.map(X,function(re){return re.text}).join(""):""}e.displayPartsToString=O;function H(){return{target:1,jsx:1}}e.getDefaultCompilerOptions=H;function $(){return e.codefix.getSupportedErrorCodes()}e.getSupportedCodeFixes=$;var Z=function(){function X(re,ve){this.host=re,this.currentDirectory=re.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var ke=re.getScriptFileNames(),Ie=0,Je=ke;Ie=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=re,this.hostCancellationToken.isCancellationRequested()):!1},X.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw e.tracing===null||e.tracing===void 0||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},X}();e.ThrottledCancellationToken=R;var F=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],_=wr(wr([],F),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function u(X,re,ve){var ke;re===void 0&&(re=e.createDocumentRegistry(X.useCaseSensitiveFileNames&&X.useCaseSensitiveFileNames(),X.getCurrentDirectory()));var Ie;ve===void 0?Ie=e.LanguageServiceMode.Semantic:typeof ve=="boolean"?Ie=ve?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:Ie=ve;var Je=new B(X),je,fn,ze=0,Ve=X.getCancellationToken?new v(X.getCancellationToken()):G,Ne=X.getCurrentDirectory();!e.localizedDiagnosticMessages&&X.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(X.getLocalizedDiagnosticMessages());function be(En){X.log&&X.log(En)}var de=e.hostUsesCaseSensitiveFileNames(X),Ce=e.createGetCanonicalFileName(de),ye=e.getSourceMapper({useCaseSensitiveFileNames:function(){return de},getCurrentDirectory:function(){return Ne},getProgram:tn,fileExists:e.maybeBind(X,X.fileExists),readFile:e.maybeBind(X,X.readFile),getDocumentPositionMapper:e.maybeBind(X,X.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(X,X.getSourceFileLike),log:be});function on(En){var tr=je.getSourceFile(En);if(!tr){var gr=new Error("Could not find source file: '"+En+"'.");throw gr.ProgramFiles=je.getSourceFiles().map(function(Or){return Or.fileName}),gr}return tr}function Te(){var En,tr,gr;if(e.Debug.assert(Ie!==e.LanguageServiceMode.Syntactic),X.getProjectVersion){var Or=X.getProjectVersion();if(Or){if(fn===Or&&!(!((En=X.hasChangedAutomaticTypeDirectiveNames)===null||En===void 0)&&En.call(X)))return;fn=Or}}var mt=X.getTypeRootsVersion?X.getTypeRootsVersion():0;ze!==mt&&(be("TypeRoots version has changed; provide new program"),je=void 0,ze=mt);var ft=new Z(X,Ce),Dt=ft.getRootFileNames(),sa=X.getCompilationSettings()||H(),Wa=X.hasInvalidatedResolution||e.returnFalse,ii=e.maybeBind(X,X.hasChangedAutomaticTypeDirectiveNames),ri=(tr=X.getProjectReferences)===null||tr===void 0?void 0:tr.call(X),mi,Ei={useCaseSensitiveFileNames:de,fileExists:Io,readFile:_o,readDirectory:ro,trace:e.maybeBind(X,X.trace),getCurrentDirectory:function(){return Ne},onUnRecoverableConfigFileDiagnostic:e.noop};if(e.isProgramUptoDate(je,Dt,sa,function(ti,Xt){return X.getScriptVersion(Xt)},Io,Wa,ii,ja,ri))return;var _i={getSourceFile:Ao,getSourceFileByPath:bo,getCancellationToken:function(){return Ve},getCanonicalFileName:Ce,useCaseSensitiveFileNames:function(){return de},getNewLine:function(){return e.getNewLineCharacter(sa,function(){return e.getNewLineOrDefaultFromHost(X)})},getDefaultLibFileName:function(ti){return X.getDefaultLibFileName(ti)},writeFile:e.noop,getCurrentDirectory:function(){return Ne},fileExists:Io,readFile:_o,getSymlinkCache:e.maybeBind(X,X.getSymlinkCache),realpath:e.maybeBind(X,X.realpath),directoryExists:function(ti){return e.directoryProbablyExists(ti,X)},getDirectories:function(ti){return X.getDirectories?X.getDirectories(ti):[]},readDirectory:ro,onReleaseOldSourceFile:Zi,onReleaseParsedCommandLine:Di,hasInvalidatedResolution:Wa,hasChangedAutomaticTypeDirectiveNames:ii,trace:Ei.trace,resolveModuleNames:e.maybeBind(X,X.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(X,X.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(X,X.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ja};(gr=X.setCompilerHost)===null||gr===void 0||gr.call(X,_i);var yi=re.getKeyForCompilationSettings(sa),Ni={rootNames:Dt,options:sa,host:_i,oldProgram:je,projectReferences:ri};je=e.createProgram(Ni),ft=void 0,mi=void 0,ye.clearCache(),je.getTypeChecker();return;function ja(ti){var Xt=e.toPath(ti,Ne,Ce),gi=mi==null?void 0:mi.get(Xt);if(gi!==void 0)return gi||void 0;var Ji=X.getParsedCommandLine?X.getParsedCommandLine(ti):ui(ti);return(mi||(mi=new e.Map)).set(Xt,Ji||!1),Ji}function ui(ti){var Xt=Ao(ti,100);if(Xt)return Xt.path=e.toPath(ti,Ne,Ce),Xt.resolvedPath=Xt.path,Xt.originalFileName=Xt.fileName,e.parseJsonSourceFileConfigFileContent(Xt,Ei,e.getNormalizedAbsolutePath(e.getDirectoryPath(ti),Ne),void 0,e.getNormalizedAbsolutePath(ti,Ne))}function Di(ti,Xt,gi){var Ji;X.getParsedCommandLine?(Ji=X.onReleaseParsedCommandLine)===null||Ji===void 0||Ji.call(X,ti,Xt,gi):Xt&&Zi(Xt.sourceFile,gi)}function Io(ti){var Xt=e.toPath(ti,Ne,Ce),gi=ft&&ft.getEntryByPath(Xt);return gi?!e.isString(gi):!!X.fileExists&&X.fileExists(ti)}function _o(ti){var Xt=e.toPath(ti,Ne,Ce),gi=ft&&ft.getEntryByPath(Xt);return gi?e.isString(gi)?void 0:e.getSnapshotText(gi.scriptSnapshot):X.readFile&&X.readFile(ti)}function ro(ti,Xt,gi,Ji,Ui){return e.Debug.checkDefined(X.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),X.readDirectory(ti,Xt,gi,Ji,Ui)}function Zi(ti,Xt){var gi=re.getKeyForCompilationSettings(Xt);re.releaseDocumentWithKey(ti.resolvedPath,gi,ti.scriptKind)}function Ao(ti,Xt,gi,Ji){return bo(ti,e.toPath(ti,Ne,Ce),Xt,gi,Ji)}function bo(ti,Xt,gi,Ji,Ui){e.Debug.assert(ft!==void 0,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var go=ft&&ft.getOrCreateEntryByPath(ti,Xt);if(go){if(!Ui){var wo=je&&je.getSourceFileByPath(Xt);if(wo){if(go.scriptKind===wo.scriptKind)return re.updateDocumentWithKey(ti,Xt,sa,yi,go.scriptSnapshot,go.version,go.scriptKind);re.releaseDocumentWithKey(wo.resolvedPath,re.getKeyForCompilationSettings(je.getCompilerOptions()),wo.scriptKind)}}return re.acquireDocumentWithKey(ti,Xt,sa,yi,go.scriptSnapshot,go.version,go.scriptKind)}}}function tn(){if(Ie===e.LanguageServiceMode.Syntactic){e.Debug.assert(je===void 0);return}return Te(),je}function Fe(){var En;return(En=X.getPackageJsonAutoImportProvider)===null||En===void 0?void 0:En.call(X)}function Ke(){je=void 0}function rn(){if(je){var En=re.getKeyForCompilationSettings(je.getCompilerOptions());e.forEach(je.getSourceFiles(),function(tr){return re.releaseDocumentWithKey(tr.resolvedPath,En,tr.scriptKind)}),je=void 0}X=void 0}function vn(En){return Te(),je.getSyntacticDiagnostics(on(En),Ve).slice()}function xn(En){Te();var tr=on(En),gr=je.getSemanticDiagnostics(tr,Ve);if(!e.getEmitDeclarations(je.getCompilerOptions()))return gr.slice();var Or=je.getDeclarationDiagnostics(tr,Ve);return wr(wr([],gr),Or)}function Rn(En){return Te(),e.computeSuggestionDiagnostics(on(En),je,Ve)}function Ge(){return Te(),wr(wr([],je.getOptionsDiagnostics(Ve)),je.getGlobalDiagnostics(Ve))}function we(En,tr,gr){gr===void 0&&(gr=e.emptyOptions);var Or=Nt(Nt({},e.identity(gr)),{includeCompletionsForModuleExports:gr.includeCompletionsForModuleExports||gr.includeExternalModuleExports,includeCompletionsWithInsertText:gr.includeCompletionsWithInsertText||gr.includeInsertTextCompletions});return Te(),e.Completions.getCompletionsAtPosition(X,je,be,on(En),tr,Or,gr.triggerCharacter)}function Re(En,tr,gr,Or,mt,ft,Dt){return ft===void 0&&(ft=e.emptyOptions),Te(),e.Completions.getCompletionEntryDetails(je,be,on(En),tr,{name:gr,source:mt,data:Dt},X,Or&&e.formatting.getFormatContext(Or,X),ft,Ve)}function yn(En,tr,gr,Or,mt){return mt===void 0&&(mt=e.emptyOptions),Te(),e.Completions.getCompletionEntrySymbol(je,be,on(En),tr,{name:gr,source:Or},X,mt)}function Ee(En,tr){Te();var gr=on(En),Or=e.getTouchingPropertyName(gr,tr);if(Or!==gr){var mt=je.getTypeChecker(),ft=oe(Or),Dt=W(ft,mt);if(!Dt||mt.isUnknownSymbol(Dt)){var sa=J(gr,ft,tr)?mt.getTypeAtLocation(ft):void 0;return sa&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(ft,gr),displayParts:mt.runWithCancellationToken(Ve,function(_i){return e.typeToDisplayParts(_i,sa,e.getContainerNode(ft))}),documentation:sa.symbol?sa.symbol.getDocumentationComment(mt):void 0,tags:sa.symbol?sa.symbol.getJsDocTags(mt):void 0}}var Wa=mt.runWithCancellationToken(Ve,function(_i){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(_i,Dt,gr,e.getContainerNode(ft),ft)}),ii=Wa.symbolKind,ri=Wa.displayParts,mi=Wa.documentation,Ei=Wa.tags;return{kind:ii,kindModifiers:e.SymbolDisplay.getSymbolModifiers(mt,Dt),textSpan:e.createTextSpanFromNode(ft,gr),displayParts:ri,documentation:mi,tags:Ei}}}function oe(En){return e.isNewExpression(En.parent)&&En.pos===En.parent.pos?En.parent.expression:e.isNamedTupleMember(En.parent)&&En.pos===En.parent.pos?En.parent:En}function J(En,tr,gr){switch(tr.kind){case 78:return!e.isLabelName(tr)&&!e.isTagName(tr)&&!e.isConstTypeReference(tr.parent);case 202:case 158:return!e.isInComment(En,gr);case 107:case 188:case 105:case 193:return!0;default:return!1}}function te(En,tr){return Te(),e.GoToDefinition.getDefinitionAtPosition(je,on(En),tr)}function me(En,tr){return Te(),e.GoToDefinition.getDefinitionAndBoundSpan(je,on(En),tr)}function xe(En,tr){return Te(),e.GoToDefinition.getTypeDefinitionAtPosition(je.getTypeChecker(),on(En),tr)}function P(En,tr){return Te(),e.FindAllReferences.getImplementationsAtPosition(je,Ve,je.getSourceFiles(),on(En),tr)}function Se(En,tr){return e.flatMap(Ye(En,tr,[En]),function(gr){return gr.highlightSpans.map(function(Or){return Nt(Nt({fileName:gr.fileName,textSpan:Or.textSpan,isWriteAccess:Or.kind==="writtenReference",isDefinition:!1},Or.isInString&&{isInString:!0}),Or.contextSpan&&{contextSpan:Or.contextSpan})})})}function Ye(En,tr,gr){var Or=e.normalizePath(En);e.Debug.assert(gr.some(function(Dt){return e.normalizePath(Dt)===Or})),Te();var mt=e.mapDefined(gr,function(Dt){return je.getSourceFile(Dt)}),ft=on(En);return e.DocumentHighlights.getDocumentHighlights(je,Ve,ft,tr,mt)}function an(En,tr,gr,Or,mt){Te();var ft=on(En),Dt=e.getAdjustedRenameLocation(e.getTouchingPropertyName(ft,tr));if(e.isIdentifier(Dt)&&(e.isJsxOpeningElement(Dt.parent)||e.isJsxClosingElement(Dt.parent))&&e.isIntrinsicJsxName(Dt.escapedText)){var sa=Dt.parent.parent,Wa=sa.openingElement,ii=sa.closingElement;return[Wa,ii].map(function(ri){var mi=e.createTextSpanFromNode(ri.tagName,ft);return Nt({fileName:ft.fileName,textSpan:mi},e.FindAllReferences.toContextSpan(mi,ft,ri.parent))})}else return Xn(Dt,tr,{findInStrings:gr,findInComments:Or,providePrefixAndSuffixTextForRename:mt,use:2},function(ri,mi,Ei){return e.FindAllReferences.toRenameLocation(ri,mi,Ei,mt||!1)})}function Sn(En,tr){return Te(),Xn(e.getTouchingPropertyName(on(En),tr),tr,{use:1},e.FindAllReferences.toReferenceEntry)}function Xn(En,tr,gr,Or){Te();var mt=gr&&gr.use===2?je.getSourceFiles().filter(function(ft){return!je.isSourceFileDefaultLibrary(ft)}):je.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(je,Ve,mt,En,tr,gr,Or)}function wn(En,tr){return Te(),e.FindAllReferences.findReferencedSymbols(je,Ve,je.getSourceFiles(),on(En),tr)}function qn(En){return Te(),e.FindAllReferences.Core.getReferencesForFileName(En,je,je.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function yr(En,tr,gr,Or){Or===void 0&&(Or=!1),Te();var mt=gr?[on(gr)]:je.getSourceFiles();return e.NavigateTo.getNavigateToItems(mt,je.getTypeChecker(),Ve,En,tr,Or)}function Vr(En,tr,gr){Te();var Or=on(En),mt=X.getCustomTransformers&&X.getCustomTransformers();return e.getFileEmitOutput(je,Or,!!tr,Ve,mt,gr)}function Me(En,tr,gr){var Or=gr===void 0?e.emptyOptions:gr,mt=Or.triggerReason;Te();var ft=on(En);return e.SignatureHelp.getSignatureHelpItems(je,ft,tr,mt,Ve)}function We(En){return Je.getCurrentSourceFile(En)}function Tn(En,tr,gr){var Or=Je.getCurrentSourceFile(En),mt=e.getTouchingPropertyName(Or,tr);if(mt!==Or){switch(mt.kind){case 202:case 158:case 10:case 94:case 109:case 103:case 105:case 107:case 188:case 78:break;default:return}for(var ft=mt;;)if(e.isRightSideOfPropertyAccess(ft)||e.isRightSideOfQualifiedName(ft))ft=ft.parent;else if(e.isNameOfModuleDeclaration(ft))if(ft.parent.parent.kind===257&&ft.parent.parent.body===ft.parent)ft=ft.parent.parent.name;else break;else break;return e.createTextSpanFromBounds(ft.getStart(),mt.getEnd())}}function Nn(En,tr){var gr=Je.getCurrentSourceFile(En);return e.BreakpointResolver.spanInSourceFileAtLocation(gr,tr)}function Vn(En){return e.NavigationBar.getNavigationBarItems(Je.getCurrentSourceFile(En),Ve)}function Hn(En){return e.NavigationBar.getNavigationTree(Je.getCurrentSourceFile(En),Ve)}function kr(En,tr,gr){Te();var Or=gr||"original";return Or==="2020"?e.classifier.v2020.getSemanticClassifications(je,Ve,on(En),tr):e.getSemanticClassifications(je.getTypeChecker(),Ve,on(En),je.getClassifiableNames(),tr)}function kn(En,tr,gr){Te();var Or=gr||"original";return Or==="original"?e.getEncodedSemanticClassifications(je.getTypeChecker(),Ve,on(En),je.getClassifiableNames(),tr):e.classifier.v2020.getEncodedSemanticClassifications(je,Ve,on(En),tr)}function Sr(En,tr){return e.getSyntacticClassifications(Ve,Je.getCurrentSourceFile(En),tr)}function Cr(En,tr){return e.getEncodedSyntacticClassifications(Ve,Je.getCurrentSourceFile(En),tr)}function Qe(En){var tr=Je.getCurrentSourceFile(En);return e.OutliningElementsCollector.collectElements(tr,Ve)}var Bn=new e.Map(e.getEntries((ke={},ke[18]=19,ke[20]=21,ke[22]=23,ke[31]=29,ke)));Bn.forEach(function(En,tr){return Bn.set(En.toString(),Number(tr))});function bn(En,tr){var gr=Je.getCurrentSourceFile(En),Or=e.getTouchingToken(gr,tr),mt=Or.getStart(gr)===tr?Bn.get(Or.kind.toString()):void 0,ft=mt&&e.findChildOfKind(Or.parent,mt,gr);return ft?[e.createTextSpanFromNode(Or,gr),e.createTextSpanFromNode(ft,gr)].sort(function(Dt,sa){return Dt.start-sa.start}):e.emptyArray}function In(En,tr,gr){var Or=e.timestamp(),mt=h(gr),ft=Je.getCurrentSourceFile(En);be("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-Or)),Or=e.timestamp();var Dt=e.formatting.SmartIndenter.getIndentation(tr,ft,mt);return be("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-Or)),Dt}function Be(En,tr,gr,Or){var mt=Je.getCurrentSourceFile(En);return e.formatting.formatSelection(tr,gr,mt,e.formatting.getFormatContext(h(Or),X))}function Zn(En,tr){return e.formatting.formatDocument(Je.getCurrentSourceFile(En),e.formatting.getFormatContext(h(tr),X))}function _r(En,tr,gr,Or){var mt=Je.getCurrentSourceFile(En),ft=e.formatting.getFormatContext(h(Or),X);if(!e.isInComment(mt,tr))switch(gr){case"{":return e.formatting.formatOnOpeningCurly(tr,mt,ft);case"}":return e.formatting.formatOnClosingCurly(tr,mt,ft);case";":return e.formatting.formatOnSemicolon(tr,mt,ft);case` `:return e.formatting.formatOnEnter(tr,mt,ft)}return[]}function zn(En,tr,gr,Or,mt,ft){ft===void 0&&(ft=e.emptyOptions),Te();var Dt=on(En),sa=e.createTextSpanFromBounds(tr,gr),Wa=e.formatting.getFormatContext(mt,X);return e.flatMap(e.deduplicate(Or,e.equateValues,e.compareValues),function(ii){return Ve.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:ii,sourceFile:Dt,span:sa,program:je,host:X,cancellationToken:Ve,formatContext:Wa,preferences:ft})})}function Er(En,tr,gr,Or){Or===void 0&&(Or=e.emptyOptions),Te(),e.Debug.assert(En.type==="file");var mt=on(En.fileName),ft=e.formatting.getFormatContext(gr,X);return e.codefix.getAllFixes({fixId:tr,sourceFile:mt,program:je,host:X,cancellationToken:Ve,formatContext:ft,preferences:Or})}function Pr(En,tr,gr){gr===void 0&&(gr=e.emptyOptions),Te(),e.Debug.assert(En.type==="file");var Or=on(En.fileName),mt=e.formatting.getFormatContext(tr,X);return e.OrganizeImports.organizeImports(Or,mt,X,je,gr,En.skipDestructiveCodeActions)}function tt(En,tr,gr,Or){return Or===void 0&&(Or=e.emptyOptions),e.getEditsForFileRename(tn(),En,tr,X,e.formatting.getFormatContext(gr,X),Or,ye)}function mr(En,tr){var gr=typeof En=="string"?tr:En;return e.isArray(gr)?Promise.all(gr.map(function(Or){return Ln(Or)})):Ln(gr)}function Ln(En){var tr=function(gr){return e.toPath(gr,Ne,Ce)};return e.Debug.assertEqual(En.type,"install package"),X.installPackage?X.installPackage({fileName:tr(En.file),packageName:En.packageName}):Promise.reject("Host does not implement `installPackage`")}function jn(En,tr,gr){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(X),Je.getCurrentSourceFile(En),tr,gr)}function ar(En,tr,gr){if(gr===60)return!1;var Or=Je.getCurrentSourceFile(En);if(e.isInString(Or,tr))return!1;if(e.isInsideJsxElementOrAttribute(Or,tr))return gr===123;if(e.isInTemplateString(Or,tr))return!1;switch(gr){case 39:case 34:case 96:return!e.isInComment(Or,tr)}return!0}function dr(En,tr){var gr=Je.getCurrentSourceFile(En),Or=e.findPrecedingToken(tr,gr);if(Or){var mt=Or.kind===31&&e.isJsxOpeningElement(Or.parent)?Or.parent.parent:e.isJsxText(Or)?Or.parent:void 0;if(mt&&dt(mt))return{newText:""}}}function Rr(En,tr){return{lineStarts:En.getLineStarts(),firstLine:En.getLineAndCharacterOfPosition(tr.pos).line,lastLine:En.getLineAndCharacterOfPosition(tr.end).line}}function qr(En,tr,gr){for(var Or=Je.getCurrentSourceFile(En),mt=[],ft=Rr(Or,tr),Dt=ft.lineStarts,sa=ft.firstLine,Wa=ft.lastLine,ii=gr||!1,ri=Number.MAX_VALUE,mi=new e.Map,Ei=new RegExp(/\S/),_i=e.isInsideJsxElement(Or,Dt[sa]),yi=_i?"{/*":"//",Ni=sa;Ni<=Wa;Ni++){var ja=Or.text.substring(Dt[Ni],Or.getLineEndOfPosition(Dt[Ni])),ui=Ei.exec(ja);ui&&(ri=Math.min(ri,ui.index),mi.set(Ni.toString(),ui.index),ja.substr(ui.index,yi.length)!==yi&&(ii=gr===void 0||gr))}for(var Ni=sa;Ni<=Wa;Ni++)if(!(sa!==Wa&&Dt[Ni]===tr.end)){var Di=mi.get(Ni.toString());Di!==void 0&&(_i?mt.push.apply(mt,br(En,{pos:Dt[Ni]+ri,end:Or.getLineEndOfPosition(Dt[Ni])},ii,_i)):ii?mt.push({newText:yi,span:{length:0,start:Dt[Ni]+ri}}):Or.text.substr(Dt[Ni]+Di,yi.length)===yi&&mt.push({newText:"",span:{length:yi.length,start:Dt[Ni]+Di}}))}return mt}function br(En,tr,gr,Or){for(var mt,ft=Je.getCurrentSourceFile(En),Dt=[],sa=ft.text,Wa=!1,ii=gr||!1,ri=[],mi=tr.pos,Ei=Or!==void 0?Or:e.isInsideJsxElement(ft,mi),_i=Ei?"{/*":"/*",yi=Ei?"*/}":"*/",Ni=Ei?"\\{\\/\\*":"\\/\\*",ja=Ei?"\\*\\/\\}":"\\*\\/";mi<=tr.end;){var ui=sa.substr(mi,_i.length)===_i?_i.length:0,Di=e.isInComment(ft,mi+ui);if(Di)Ei&&(Di.pos--,Di.end++),ri.push(Di.pos),Di.kind===3&&ri.push(Di.end),Wa=!0,mi=Di.end+1;else{var Io=sa.substring(mi,tr.end).search("("+Ni+")|("+ja+")");ii=gr!==void 0?gr:ii||!e.isTextWhiteSpaceLike(sa,mi,Io===-1?tr.end:mi+Io),mi=Io===-1?tr.end+1:mi+Io+yi.length}}if(ii||!Wa){((mt=e.isInComment(ft,tr.pos))===null||mt===void 0?void 0:mt.kind)!==2&&e.insertSorted(ri,tr.pos,e.compareValues),e.insertSorted(ri,tr.end,e.compareValues);var _o=ri[0];sa.substr(_o,_i.length)!==_i&&Dt.push({newText:_i,span:{length:0,start:_o}});for(var ro=1;ro0?bo-yi.length:0,ui=sa.substr(ti,yi.length)===yi?yi.length:0;Dt.push({newText:"",span:{length:_i.length,start:bo-ui}})}return Dt}function Br(En,tr){var gr=Je.getCurrentSourceFile(En),Or=Rr(gr,tr),mt=Or.firstLine,ft=Or.lastLine;return mt===ft&&tr.pos!==tr.end?br(En,tr,!0):qr(En,tr,!0)}function vt(En,tr){var gr=Je.getCurrentSourceFile(En),Or=[],mt=tr.pos,ft=tr.end;mt===ft&&(ft+=e.isInsideJsxElement(gr,mt)?2:1);for(var Dt=mt;Dt<=ft;Dt++){var sa=e.isInComment(gr,Dt);if(sa){switch(sa.kind){case 2:Or.push.apply(Or,qr(En,{end:sa.end,pos:sa.pos+1},!1));break;case 3:Or.push.apply(Or,br(En,{end:sa.end,pos:sa.pos+1},!1))}Dt=sa.end+1}}return Or}function dt(En){var tr=En.openingElement,gr=En.closingElement,Or=En.parent;return!e.tagNamesAreEquivalent(tr.tagName,gr.tagName)||e.isJsxElement(Or)&&e.tagNamesAreEquivalent(tr.tagName,Or.openingElement.tagName)&&dt(Or)}function cr(En,tr,gr){var Or=Je.getCurrentSourceFile(En),mt=e.formatting.getRangeOfEnclosingComment(Or,tr);return mt&&(!gr||mt.kind===3)?e.createTextSpanFromRange(mt):void 0}function Vt(En,tr){Te();var gr=on(En);Ve.throwIfCancellationRequested();var Or=gr.text,mt=[];if(tr.length>0&&!ja(gr.fileName))for(var ft=yi(),Dt=void 0;Dt=ft.exec(Or);){Ve.throwIfCancellationRequested();var sa=3;e.Debug.assert(Dt.length===tr.length+sa);var Wa=Dt[1],ii=Dt.index+Wa.length;if(e.isInComment(gr,ii)){for(var ri=void 0,mi=0;mi=97&&ui<=122||ui>=65&&ui<=90||ui>=48&&ui<=57}function ja(ui){return e.stringContains(ui,"/node_modules/")}}function Yr(En,tr,gr){return Te(),e.Rename.getRenameInfo(je,on(En),tr,gr)}function Ut(En,tr,gr,Or,mt,ft){var Dt=typeof tr=="number"?[tr,void 0]:[tr.pos,tr.end],sa=Dt[0],Wa=Dt[1];return{file:En,startPosition:sa,endPosition:Wa,program:tn(),host:X,formatContext:e.formatting.getFormatContext(Or,X),cancellationToken:Ve,preferences:gr,triggerReason:mt,kind:ft}}function ka(En,tr){return e.SmartSelectionRange.getSmartSelectionRange(tr,Je.getCurrentSourceFile(En))}function ma(En,tr,gr,Or,mt){gr===void 0&&(gr=e.emptyOptions),Te();var ft=on(En);return e.refactor.getApplicableRefactors(Ut(ft,tr,gr,e.emptyOptions,Or,mt))}function Sa(En,tr,gr,Or,mt,ft){ft===void 0&&(ft=e.emptyOptions),Te();var Dt=on(En);return e.refactor.getEditsForRefactor(Ut(Dt,gr,ft,tr),Or,mt)}function qt(En,tr){return tr===0?{line:0,character:0}:ye.toLineColumnOffset(En,tr)}function ga(En,tr){Te();var gr=e.CallHierarchy.resolveCallHierarchyDeclaration(je,e.getTouchingPropertyName(on(En),tr));return gr&&e.mapOneOrMany(gr,function(Or){return e.CallHierarchy.createCallHierarchyItem(je,Or)})}function Mr(En,tr){Te();var gr=on(En),Or=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(je,tr===0?gr:e.getTouchingPropertyName(gr,tr)));return Or?e.CallHierarchy.getIncomingCalls(je,Or,Ve):[]}function Kr(En,tr){Te();var gr=on(En),Or=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(je,tr===0?gr:e.getTouchingPropertyName(gr,tr)));return Or?e.CallHierarchy.getOutgoingCalls(je,Or):[]}var jr={dispose:rn,cleanupSemanticCache:Ke,getSyntacticDiagnostics:vn,getSemanticDiagnostics:xn,getSuggestionDiagnostics:Rn,getCompilerOptionsDiagnostics:Ge,getSyntacticClassifications:Sr,getSemanticClassifications:kr,getEncodedSyntacticClassifications:Cr,getEncodedSemanticClassifications:kn,getCompletionsAtPosition:we,getCompletionEntryDetails:Re,getCompletionEntrySymbol:yn,getSignatureHelpItems:Me,getQuickInfoAtPosition:Ee,getDefinitionAtPosition:te,getDefinitionAndBoundSpan:me,getImplementationAtPosition:P,getTypeDefinitionAtPosition:xe,getReferencesAtPosition:Sn,findReferences:wn,getFileReferences:qn,getOccurrencesAtPosition:Se,getDocumentHighlights:Ye,getNameOrDottedNameSpan:Tn,getBreakpointStatementAtPosition:Nn,getNavigateToItems:yr,getRenameInfo:Yr,getSmartSelectionRange:ka,findRenameLocations:an,getNavigationBarItems:Vn,getNavigationTree:Hn,getOutliningSpans:Qe,getTodoComments:Vt,getBraceMatchingAtPosition:bn,getIndentationAtPosition:In,getFormattingEditsForRange:Be,getFormattingEditsForDocument:Zn,getFormattingEditsAfterKeystroke:_r,getDocCommentTemplateAtPosition:jn,isValidBraceCompletionAtPosition:ar,getJsxClosingTagAtPosition:dr,getSpanOfEnclosingComment:cr,getCodeFixesAtPosition:zn,getCombinedCodeFix:Er,applyCodeActionCommand:mr,organizeImports:Pr,getEditsForFileRename:tt,getEmitOutput:Vr,getNonBoundSourceFile:We,getProgram:tn,getAutoImportProvider:Fe,getApplicableRefactors:ma,getEditsForRefactor:Sa,toLineColumnOffset:qt,getSourceMapper:function(){return ye},clearSourceMapperCache:function(){return ye.clearCache()},prepareCallHierarchy:ga,provideCallHierarchyIncomingCalls:Mr,provideCallHierarchyOutgoingCalls:Kr,toggleLineComment:qr,toggleMultilineComment:br,commentSelection:Br,uncommentSelection:vt};switch(Ie){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:F.forEach(function(En){return jr[En]=function(){throw new Error("LanguageService Operation: "+En+" not allowed in LanguageServiceMode.PartialSemantic")}});break;case e.LanguageServiceMode.Syntactic:_.forEach(function(En){return jr[En]=function(){throw new Error("LanguageService Operation: "+En+" not allowed in LanguageServiceMode.Syntactic")}});break;default:e.Debug.assertNever(Ie)}return jr}e.createLanguageService=u;function b(X){return X.nameTable||w(X),X.nameTable}e.getNameTable=b;function w(X){var re=X.nameTable=new e.Map;X.forEachChild(function ve(ke){if(e.isIdentifier(ke)&&!e.isTagName(ke)&&ke.escapedText||e.isStringOrNumericLiteralLike(ke)&&ee(ke)){var Ie=e.getEscapedTextOfIdentifierOrLiteral(ke);re.set(Ie,re.get(Ie)===void 0?ke.pos:-1)}else if(e.isPrivateIdentifier(ke)){var Ie=ke.escapedText;re.set(Ie,re.get(Ie)===void 0?ke.pos:-1)}if(e.forEachChild(ke,ve),e.hasJSDocNodes(ke))for(var Je=0,je=ke.jsDoc;JeN){var D=e.findPrecedingToken(m.pos,g);if(!D||g.getLineAndCharacterOfPosition(D.getEnd()).line!==N)return;m=D}if(m.flags&8388608)return;return C(m);function c(I,j){var Y=I.decorators?e.skipTrivia(g.text,I.decorators.end):I.getStart(g);return e.createTextSpanFromBounds(Y,(j||I).getEnd())}function x(I,j){return c(I,e.findNextToken(j,j.parent,g))}function se(I,j){return I&&N===g.getLineAndCharacterOfPosition(I.getStart(g)).line?C(I):C(j)}function z(I){return e.createTextSpanFromBounds(e.skipTrivia(g.text,I.pos),I.end)}function ue(I){return C(e.findPrecedingToken(I.pos,g))}function E(I){return C(e.findNextToken(I,I.parent,g))}function C(I){if(I){var j=I.parent;switch(I.kind){case 233:return $(I.declarationList.declarations[0]);case 250:case 164:case 163:return $(I);case 161:return B(I);case 252:case 166:case 165:case 168:case 169:case 167:case 209:case 210:return K(I);case 231:if(e.isFunctionBlock(I))return T(I);case 258:return G(I);case 288:return G(I.block);case 234:return c(I.expression);case 243:return c(I.getChildAt(0),I.expression);case 237:return x(I,I.expression);case 236:return C(I.statement);case 249:return c(I.getChildAt(0));case 235:return x(I,I.expression);case 246:return C(I.statement);case 242:case 241:return c(I.getChildAt(0),I.label);case 238:return R(I);case 239:return x(I,I.expression);case 240:return v(I);case 245:return x(I,I.expression);case 285:case 286:return C(I.statements[0]);case 248:return G(I.tryBlock);case 247:return c(I,I.expression);case 267:return c(I,I.expression);case 261:return c(I,I.moduleReference);case 262:return c(I,I.moduleSpecifier);case 268:return c(I,I.moduleSpecifier);case 257:if(e.getModuleInstanceState(I)!==1)return;case 253:case 256:case 292:case 199:return c(I);case 244:return C(I.statement);case 162:return z(j.decorators);case 197:case 198:return F(I);case 254:case 255:return;case 26:case 1:return se(e.findPrecedingToken(I.pos,g));case 27:return ue(I);case 18:return u(I);case 19:return b(I);case 23:return w(I);case 20:return ee(I);case 21:return le(I);case 58:return ie(I);case 31:case 29:return W(I);case 114:return ge(I);case 90:case 82:case 95:return E(I);case 157:return fe(I);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(I))return _(I);if((I.kind===78||I.kind===221||I.kind===289||I.kind===290)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(j))return c(I);if(I.kind===217){var Y=I,L=Y.left,k=Y.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(L))return _(L);if(k.kind===62&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(I.parent))return c(I);if(k.kind===27)return C(L)}if(e.isExpressionNode(I))switch(j.kind){case 236:return ue(I);case 162:return C(I.parent);case 238:case 240:return c(I);case 217:if(I.parent.operatorToken.kind===27)return c(I);break;case 210:if(I.parent.body===I)return c(I);break}switch(I.parent.kind){case 289:if(I.parent.name===I&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(I.parent.parent))return C(I.parent.initializer);break;case 207:if(I.parent.type===I)return E(I.parent.type);break;case 250:case 161:{var h=I.parent,M=h.initializer,O=h.type;if(M===I||O===I||e.isAssignmentOperator(I.kind))return ue(I);break}case 217:{var L=I.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(L)&&I!==L)return ue(I);break}default:if(e.isFunctionLike(I.parent)&&I.parent.type===I)return ue(I)}return C(I.parent)}}function H(A){return e.isVariableDeclarationList(A.parent)&&A.parent.declarations[0]===A?c(e.findPrecedingToken(A.pos,g,A.parent),A):c(A)}function $(A){if(A.parent.parent.kind===239)return C(A.parent.parent);var X=A.parent;if(e.isBindingPattern(A.name))return F(A.name);if(A.initializer||e.hasSyntacticModifier(A,1)||X.parent.kind===240)return H(A);if(e.isVariableDeclarationList(A.parent)&&A.parent.declarations[0]!==A)return C(e.findPrecedingToken(A.pos,g,A.parent))}function Z(A){return!!A.initializer||A.dotDotDotToken!==void 0||e.hasSyntacticModifier(A,12)}function B(A){if(e.isBindingPattern(A.name))return F(A.name);if(Z(A))return c(A);var X=A.parent,re=X.parameters.indexOf(A);return e.Debug.assert(re!==-1),re!==0?B(X.parameters[re-1]):C(X.body)}function U(A){return e.hasSyntacticModifier(A,1)||A.parent.kind===253&&A.kind!==167}function K(A){if(A.body)return U(A)?c(A):C(A.body)}function T(A){var X=A.statements.length?A.statements[0]:A.getLastToken();return U(A.parent)?se(A.parent,X):C(X)}function G(A){switch(A.parent.kind){case 257:if(e.getModuleInstanceState(A.parent)!==1)return;case 237:case 235:case 239:return se(A.parent,A.statements[0]);case 238:case 240:return se(e.findPrecedingToken(A.pos,g,A.parent),A.statements[0])}return C(A.statements[0])}function v(A){if(A.initializer.kind===251){var X=A.initializer;if(X.declarations.length>0)return C(X.declarations[0])}else return C(A.initializer)}function R(A){if(A.initializer)return v(A);if(A.condition)return c(A.condition);if(A.incrementor)return c(A.incrementor)}function F(A){var X=e.forEach(A.elements,function(re){return re.kind!==223?re:void 0});return X?C(X):A.parent.kind===199?c(A.parent):H(A.parent)}function _(A){e.Debug.assert(A.kind!==198&&A.kind!==197);var X=A.kind===200?A.elements:A.properties,re=e.forEach(X,function(ve){return ve.kind!==223?ve:void 0});return re?C(re):c(A.parent.kind===217?A.parent:A)}function u(A){switch(A.parent.kind){case 256:var X=A.parent;return se(e.findPrecedingToken(A.pos,g,A.parent),X.members.length?X.members[0]:X.getLastToken(g));case 253:var re=A.parent;return se(e.findPrecedingToken(A.pos,g,A.parent),re.members.length?re.members[0]:re.getLastToken(g));case 259:return se(A.parent.parent,A.parent.clauses[0])}return C(A.parent)}function b(A){switch(A.parent.kind){case 258:if(e.getModuleInstanceState(A.parent.parent)!==1)return;case 256:case 253:return c(A);case 231:if(e.isFunctionBlock(A.parent))return c(A);case 288:return C(e.lastOrUndefined(A.parent.statements));case 259:var X=A.parent,re=e.lastOrUndefined(X.clauses);return re?C(e.lastOrUndefined(re.statements)):void 0;case 197:var ve=A.parent;return C(e.lastOrUndefined(ve.elements)||ve);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(A.parent)){var ke=A.parent;return c(e.lastOrUndefined(ke.properties)||ke)}return C(A.parent)}}function w(A){switch(A.parent.kind){case 198:var X=A.parent;return c(e.lastOrUndefined(X.elements)||X);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(A.parent)){var re=A.parent;return c(e.lastOrUndefined(re.elements)||re)}return C(A.parent)}}function ee(A){return A.parent.kind===236||A.parent.kind===204||A.parent.kind===205?ue(A):A.parent.kind===208?E(A):C(A.parent)}function le(A){switch(A.parent.kind){case 209:case 252:case 210:case 166:case 165:case 168:case 169:case 167:case 237:case 236:case 238:case 240:case 204:case 205:case 208:return ue(A);default:return C(A.parent)}}function ie(A){return e.isFunctionLike(A.parent)||A.parent.kind===289||A.parent.kind===161?ue(A):C(A.parent)}function W(A){return A.parent.kind===207?E(A):C(A.parent)}function ge(A){return A.parent.kind===236?x(A,A.parent.expression):C(A.parent)}function fe(A){return A.parent.kind===240?E(A):C(A.parent)}}}a.spanInSourceFileAtLocation=p})(e.BreakpointResolver||(e.BreakpointResolver={}))})(un||(un={}));var un;(function(e){function a(p,g,t){var m=[];t=e.fixupCompilerOptions(t,m);var N=e.isArray(p)?p:[p],D=e.transformNodes(void 0,void 0,e.factory,t,N,g,!0);return D.diagnostics=e.concatenate(D.diagnostics,m),D}e.transform=a})(un||(un={}));var EE=function(){return this}(),un;(function(e){function a(j,Y){j&&j.log("*INTERNAL ERROR* - Exception in typescript services: "+Y.message)}var p=function(){function j(Y){this.scriptSnapshotShim=Y}return j.prototype.getText=function(Y,L){return this.scriptSnapshotShim.getText(Y,L)},j.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},j.prototype.getChangeRange=function(Y){var L=Y,k=this.scriptSnapshotShim.getChangeRange(L.scriptSnapshotShim);if(k===null)return null;var h=JSON.parse(k);return e.createTextChangeRange(e.createTextSpan(h.span.start,h.span.length),h.newLength)},j.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},j}(),g=function(){function j(Y){var L=this;this.shimHost=Y,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(k,h){var M=JSON.parse(L.shimHost.getModuleResolutionsForFile(h));return e.map(k,function(O){var H=e.getProperty(M,O);return H?{resolvedFileName:H,extension:e.extensionFromPath(H),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(k){return L.shimHost.directoryExists(k)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(k,h){var M=JSON.parse(L.shimHost.getTypeReferenceDirectiveResolutionsForFile(h));return e.map(k,function(O){return e.getProperty(M,O)})})}return j.prototype.log=function(Y){this.loggingEnabled&&this.shimHost.log(Y)},j.prototype.trace=function(Y){this.tracingEnabled&&this.shimHost.trace(Y)},j.prototype.error=function(Y){this.shimHost.error(Y)},j.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},j.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},j.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},j.prototype.getCompilationSettings=function(){var Y=this.shimHost.getCompilationSettings();if(Y===null||Y==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var L=JSON.parse(Y);return L.allowNonTsExtensions=!0,L},j.prototype.getScriptFileNames=function(){var Y=this.shimHost.getScriptFileNames();return JSON.parse(Y)},j.prototype.getScriptSnapshot=function(Y){var L=this.shimHost.getScriptSnapshot(Y);return L&&new p(L)},j.prototype.getScriptKind=function(Y){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(Y):0},j.prototype.getScriptVersion=function(Y){return this.shimHost.getScriptVersion(Y)},j.prototype.getLocalizedDiagnosticMessages=function(){var Y=this.shimHost.getLocalizedDiagnosticMessages();if(Y===null||Y==="")return null;try{return JSON.parse(Y)}catch(L){return this.log(L.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},j.prototype.getCancellationToken=function(){var Y=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(Y)},j.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},j.prototype.getDirectories=function(Y){return JSON.parse(this.shimHost.getDirectories(Y))},j.prototype.getDefaultLibFileName=function(Y){return this.shimHost.getDefaultLibFileName(JSON.stringify(Y))},j.prototype.readDirectory=function(Y,L,k,h,M){var O=e.getFileMatcherPatterns(Y,k,h,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(Y,JSON.stringify(L),JSON.stringify(O.basePaths),O.excludePattern,O.includeFilePattern,O.includeDirectoryPattern,M))},j.prototype.readFile=function(Y,L){return this.shimHost.readFile(Y,L)},j.prototype.fileExists=function(Y){return this.shimHost.fileExists(Y)},j}();e.LanguageServiceShimHostAdapter=g;var t=function(){function j(Y){var L=this;this.shimHost=Y,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(k){return L.shimHost.directoryExists(k)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(k){return L.shimHost.realpath(k)}:this.realpath=void 0}return j.prototype.readDirectory=function(Y,L,k,h,M){var O=e.getFileMatcherPatterns(Y,k,h,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(Y,JSON.stringify(L),JSON.stringify(O.basePaths),O.excludePattern,O.includeFilePattern,O.includeDirectoryPattern,M))},j.prototype.fileExists=function(Y){return this.shimHost.fileExists(Y)},j.prototype.readFile=function(Y){return this.shimHost.readFile(Y)},j.prototype.getDirectories=function(Y){return JSON.parse(this.shimHost.getDirectories(Y))},j}();e.CoreServicesShimHostAdapter=t;function m(j,Y,L,k){var h;k&&(j.log(Y),h=e.timestamp());var M=L();if(k){var O=e.timestamp();if(j.log(Y+" completed in "+(O-h)+" msec"),e.isString(M)){var H=M;H.length>128&&(H=H.substring(0,128)+"..."),j.log(" result.length="+H.length+", result='"+JSON.stringify(H)+"'")}}return M}function N(j,Y,L,k){return D(j,Y,!0,L,k)}function D(j,Y,L,k,h){try{var M=m(j,Y,k,h);return L?JSON.stringify({result:M}):M}catch(O){return O instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(a(j,O),O.description=Y,JSON.stringify({error:O}))}}var c=function(){function j(Y){this.factory=Y,Y.registerShim(this)}return j.prototype.dispose=function(Y){this.factory.unregisterShim(this)},j}();function x(j,Y){return j.map(function(L){return se(L,Y)})}e.realizeDiagnostics=x;function se(j,Y){return{message:e.flattenDiagnosticMessageText(j.messageText,Y),start:j.start,length:j.length,category:e.diagnosticCategoryName(j),code:j.code,reportsUnnecessary:j.reportsUnnecessary,reportsDeprecated:j.reportsDeprecated}}var z=function(j){Jm(Y,j);function Y(L,k,h){var M=j.call(this,L)||this;return M.host=k,M.languageService=h,M.logPerformance=!1,M.logger=M.host,M}return Y.prototype.forwardJSONCall=function(L,k){return N(this.logger,L,k,this.logPerformance)},Y.prototype.dispose=function(L){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,EE&&EE.CollectGarbage&&(EE.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,j.prototype.dispose.call(this,L)},Y.prototype.refresh=function(L){this.forwardJSONCall("refresh("+L+")",function(){return null})},Y.prototype.cleanupSemanticCache=function(){var L=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return L.languageService.cleanupSemanticCache(),null})},Y.prototype.realizeDiagnostics=function(L){var k=e.getNewLineOrDefaultFromHost(this.host);return x(L,k)},Y.prototype.getSyntacticClassifications=function(L,k,h){var M=this;return this.forwardJSONCall("getSyntacticClassifications('"+L+"', "+k+", "+h+")",function(){return M.languageService.getSyntacticClassifications(L,e.createTextSpan(k,h))})},Y.prototype.getSemanticClassifications=function(L,k,h){var M=this;return this.forwardJSONCall("getSemanticClassifications('"+L+"', "+k+", "+h+")",function(){return M.languageService.getSemanticClassifications(L,e.createTextSpan(k,h))})},Y.prototype.getEncodedSyntacticClassifications=function(L,k,h){var M=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+L+"', "+k+", "+h+")",function(){return ue(M.languageService.getEncodedSyntacticClassifications(L,e.createTextSpan(k,h)))})},Y.prototype.getEncodedSemanticClassifications=function(L,k,h){var M=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+L+"', "+k+", "+h+")",function(){return ue(M.languageService.getEncodedSemanticClassifications(L,e.createTextSpan(k,h)))})},Y.prototype.getSyntacticDiagnostics=function(L){var k=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+L+"')",function(){var h=k.languageService.getSyntacticDiagnostics(L);return k.realizeDiagnostics(h)})},Y.prototype.getSemanticDiagnostics=function(L){var k=this;return this.forwardJSONCall("getSemanticDiagnostics('"+L+"')",function(){var h=k.languageService.getSemanticDiagnostics(L);return k.realizeDiagnostics(h)})},Y.prototype.getSuggestionDiagnostics=function(L){var k=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+L+"')",function(){return k.realizeDiagnostics(k.languageService.getSuggestionDiagnostics(L))})},Y.prototype.getCompilerOptionsDiagnostics=function(){var L=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var k=L.languageService.getCompilerOptionsDiagnostics();return L.realizeDiagnostics(k)})},Y.prototype.getQuickInfoAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+L+"', "+k+")",function(){return h.languageService.getQuickInfoAtPosition(L,k)})},Y.prototype.getNameOrDottedNameSpan=function(L,k,h){var M=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+L+"', "+k+", "+h+")",function(){return M.languageService.getNameOrDottedNameSpan(L,k,h)})},Y.prototype.getBreakpointStatementAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+L+"', "+k+")",function(){return h.languageService.getBreakpointStatementAtPosition(L,k)})},Y.prototype.getSignatureHelpItems=function(L,k,h){var M=this;return this.forwardJSONCall("getSignatureHelpItems('"+L+"', "+k+")",function(){return M.languageService.getSignatureHelpItems(L,k,h)})},Y.prototype.getDefinitionAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getDefinitionAtPosition('"+L+"', "+k+")",function(){return h.languageService.getDefinitionAtPosition(L,k)})},Y.prototype.getDefinitionAndBoundSpan=function(L,k){var h=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+L+"', "+k+")",function(){return h.languageService.getDefinitionAndBoundSpan(L,k)})},Y.prototype.getTypeDefinitionAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+L+"', "+k+")",function(){return h.languageService.getTypeDefinitionAtPosition(L,k)})},Y.prototype.getImplementationAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getImplementationAtPosition('"+L+"', "+k+")",function(){return h.languageService.getImplementationAtPosition(L,k)})},Y.prototype.getRenameInfo=function(L,k,h){var M=this;return this.forwardJSONCall("getRenameInfo('"+L+"', "+k+")",function(){return M.languageService.getRenameInfo(L,k,h)})},Y.prototype.getSmartSelectionRange=function(L,k){var h=this;return this.forwardJSONCall("getSmartSelectionRange('"+L+"', "+k+")",function(){return h.languageService.getSmartSelectionRange(L,k)})},Y.prototype.findRenameLocations=function(L,k,h,M,O){var H=this;return this.forwardJSONCall("findRenameLocations('"+L+"', "+k+", "+h+", "+M+", "+O+")",function(){return H.languageService.findRenameLocations(L,k,h,M,O)})},Y.prototype.getBraceMatchingAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+L+"', "+k+")",function(){return h.languageService.getBraceMatchingAtPosition(L,k)})},Y.prototype.isValidBraceCompletionAtPosition=function(L,k,h){var M=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+L+"', "+k+", "+h+")",function(){return M.languageService.isValidBraceCompletionAtPosition(L,k,h)})},Y.prototype.getSpanOfEnclosingComment=function(L,k,h){var M=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+L+"', "+k+")",function(){return M.languageService.getSpanOfEnclosingComment(L,k,h)})},Y.prototype.getIndentationAtPosition=function(L,k,h){var M=this;return this.forwardJSONCall("getIndentationAtPosition('"+L+"', "+k+")",function(){var O=JSON.parse(h);return M.languageService.getIndentationAtPosition(L,k,O)})},Y.prototype.getReferencesAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getReferencesAtPosition('"+L+"', "+k+")",function(){return h.languageService.getReferencesAtPosition(L,k)})},Y.prototype.findReferences=function(L,k){var h=this;return this.forwardJSONCall("findReferences('"+L+"', "+k+")",function(){return h.languageService.findReferences(L,k)})},Y.prototype.getFileReferences=function(L){var k=this;return this.forwardJSONCall("getFileReferences('"+L+")",function(){return k.languageService.getFileReferences(L)})},Y.prototype.getOccurrencesAtPosition=function(L,k){var h=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+L+"', "+k+")",function(){return h.languageService.getOccurrencesAtPosition(L,k)})},Y.prototype.getDocumentHighlights=function(L,k,h){var M=this;return this.forwardJSONCall("getDocumentHighlights('"+L+"', "+k+")",function(){var O=M.languageService.getDocumentHighlights(L,k,JSON.parse(h)),H=e.toFileNameLowerCase(e.normalizeSlashes(L));return e.filter(O,function($){return e.toFileNameLowerCase(e.normalizeSlashes($.fileName))===H})})},Y.prototype.getCompletionsAtPosition=function(L,k,h){var M=this;return this.forwardJSONCall("getCompletionsAtPosition('"+L+"', "+k+", "+h+")",function(){return M.languageService.getCompletionsAtPosition(L,k,h)})},Y.prototype.getCompletionEntryDetails=function(L,k,h,M,O,H,$){var Z=this;return this.forwardJSONCall("getCompletionEntryDetails('"+L+"', "+k+", '"+h+"')",function(){var B=M===void 0?void 0:JSON.parse(M);return Z.languageService.getCompletionEntryDetails(L,k,h,B,O,H,$)})},Y.prototype.getFormattingEditsForRange=function(L,k,h,M){var O=this;return this.forwardJSONCall("getFormattingEditsForRange('"+L+"', "+k+", "+h+")",function(){var H=JSON.parse(M);return O.languageService.getFormattingEditsForRange(L,k,h,H)})},Y.prototype.getFormattingEditsForDocument=function(L,k){var h=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+L+"')",function(){var M=JSON.parse(k);return h.languageService.getFormattingEditsForDocument(L,M)})},Y.prototype.getFormattingEditsAfterKeystroke=function(L,k,h,M){var O=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+L+"', "+k+", '"+h+"')",function(){var H=JSON.parse(M);return O.languageService.getFormattingEditsAfterKeystroke(L,k,h,H)})},Y.prototype.getDocCommentTemplateAtPosition=function(L,k,h){var M=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+L+"', "+k+")",function(){return M.languageService.getDocCommentTemplateAtPosition(L,k,h)})},Y.prototype.getNavigateToItems=function(L,k,h){var M=this;return this.forwardJSONCall("getNavigateToItems('"+L+"', "+k+", "+h+")",function(){return M.languageService.getNavigateToItems(L,k,h)})},Y.prototype.getNavigationBarItems=function(L){var k=this;return this.forwardJSONCall("getNavigationBarItems('"+L+"')",function(){return k.languageService.getNavigationBarItems(L)})},Y.prototype.getNavigationTree=function(L){var k=this;return this.forwardJSONCall("getNavigationTree('"+L+"')",function(){return k.languageService.getNavigationTree(L)})},Y.prototype.getOutliningSpans=function(L){var k=this;return this.forwardJSONCall("getOutliningSpans('"+L+"')",function(){return k.languageService.getOutliningSpans(L)})},Y.prototype.getTodoComments=function(L,k){var h=this;return this.forwardJSONCall("getTodoComments('"+L+"')",function(){return h.languageService.getTodoComments(L,JSON.parse(k))})},Y.prototype.prepareCallHierarchy=function(L,k){var h=this;return this.forwardJSONCall("prepareCallHierarchy('"+L+"', "+k+")",function(){return h.languageService.prepareCallHierarchy(L,k)})},Y.prototype.provideCallHierarchyIncomingCalls=function(L,k){var h=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+L+"', "+k+")",function(){return h.languageService.provideCallHierarchyIncomingCalls(L,k)})},Y.prototype.provideCallHierarchyOutgoingCalls=function(L,k){var h=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+L+"', "+k+")",function(){return h.languageService.provideCallHierarchyOutgoingCalls(L,k)})},Y.prototype.getEmitOutput=function(L){var k=this;return this.forwardJSONCall("getEmitOutput('"+L+"')",function(){var h=k.languageService.getEmitOutput(L),M=h.diagnostics,O=yE(h,["diagnostics"]);return Nt(Nt({},O),{diagnostics:k.realizeDiagnostics(M)})})},Y.prototype.getEmitOutputObject=function(L){var k=this;return D(this.logger,"getEmitOutput('"+L+"')",!1,function(){return k.languageService.getEmitOutput(L)},this.logPerformance)},Y.prototype.toggleLineComment=function(L,k){var h=this;return this.forwardJSONCall("toggleLineComment('"+L+"', '"+JSON.stringify(k)+"')",function(){return h.languageService.toggleLineComment(L,k)})},Y.prototype.toggleMultilineComment=function(L,k){var h=this;return this.forwardJSONCall("toggleMultilineComment('"+L+"', '"+JSON.stringify(k)+"')",function(){return h.languageService.toggleMultilineComment(L,k)})},Y.prototype.commentSelection=function(L,k){var h=this;return this.forwardJSONCall("commentSelection('"+L+"', '"+JSON.stringify(k)+"')",function(){return h.languageService.commentSelection(L,k)})},Y.prototype.uncommentSelection=function(L,k){var h=this;return this.forwardJSONCall("uncommentSelection('"+L+"', '"+JSON.stringify(k)+"')",function(){return h.languageService.uncommentSelection(L,k)})},Y}(c);function ue(j){return{spans:j.spans.join(","),endOfLineState:j.endOfLineState}}var E=function(j){Jm(Y,j);function Y(L,k){var h=j.call(this,L)||this;return h.logger=k,h.logPerformance=!1,h.classifier=e.createClassifier(),h}return Y.prototype.getEncodedLexicalClassifications=function(L,k,h){var M=this;return h===void 0&&(h=!1),N(this.logger,"getEncodedLexicalClassifications",function(){return ue(M.classifier.getEncodedLexicalClassifications(L,k,h))},this.logPerformance)},Y.prototype.getClassificationsForLine=function(L,k,h){h===void 0&&(h=!1);for(var M=this.classifier.getClassificationsForLine(L,k,h),O="",H=0,$=M.entries;H<$.length;H++){var Z=$[H];O+=Z.length+` `,O+=Z.classification+` `}return O+=M.finalLexState,O},Y}(c),C=function(j){Jm(Y,j);function Y(L,k,h){var M=j.call(this,L)||this;return M.logger=k,M.host=h,M.logPerformance=!1,M}return Y.prototype.forwardJSONCall=function(L,k){return N(this.logger,L,k,this.logPerformance)},Y.prototype.resolveModuleName=function(L,k,h){var M=this;return this.forwardJSONCall("resolveModuleName('"+L+"')",function(){var O=JSON.parse(h),H=e.resolveModuleName(k,e.normalizeSlashes(L),O,M.host),$=H.resolvedModule?H.resolvedModule.resolvedFileName:void 0;return H.resolvedModule&&H.resolvedModule.extension!==".ts"&&H.resolvedModule.extension!==".tsx"&&H.resolvedModule.extension!==".d.ts"&&($=void 0),{resolvedFileName:$,failedLookupLocations:H.failedLookupLocations}})},Y.prototype.resolveTypeReferenceDirective=function(L,k,h){var M=this;return this.forwardJSONCall("resolveTypeReferenceDirective("+L+")",function(){var O=JSON.parse(h),H=e.resolveTypeReferenceDirective(k,e.normalizeSlashes(L),O,M.host);return{resolvedFileName:H.resolvedTypeReferenceDirective?H.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:H.resolvedTypeReferenceDirective?H.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:H.failedLookupLocations}})},Y.prototype.getPreProcessedFileInfo=function(L,k){var h=this;return this.forwardJSONCall("getPreProcessedFileInfo('"+L+"')",function(){var M=e.preProcessFile(e.getSnapshotText(k),!0,!0);return{referencedFiles:h.convertFileReferences(M.referencedFiles),importedFiles:h.convertFileReferences(M.importedFiles),ambientExternalModules:M.ambientExternalModules,isLibFile:M.isLibFile,typeReferenceDirectives:h.convertFileReferences(M.typeReferenceDirectives),libReferenceDirectives:h.convertFileReferences(M.libReferenceDirectives)}})},Y.prototype.getAutomaticTypeDirectiveNames=function(L){var k=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('"+L+"')",function(){var h=JSON.parse(L);return e.getAutomaticTypeDirectiveNames(h,k.host)})},Y.prototype.convertFileReferences=function(L){if(L){for(var k=[],h=0,M=L;h"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}}(),(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=un.TypeScriptServicesFactory,globalThis.toolsVersion=un.versionMajorMinor),typeof module<"u"&&module.exports&&(module.exports=un);var un;(function(e){var a={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,a),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,a),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,a),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,a),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,a),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,a),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,a),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,a),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,a),e.createSuper=e.Debug.deprecate(e.factory.createSuper,a),e.createThis=e.Debug.deprecate(e.factory.createThis,a),e.createNull=e.Debug.deprecate(e.factory.createNull,a),e.createTrue=e.Debug.deprecate(e.factory.createTrue,a),e.createFalse=e.Debug.deprecate(e.factory.createFalse,a),e.createModifier=e.Debug.deprecate(e.factory.createModifier,a),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,a),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,a),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,a),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,a),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,a),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,a),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,a),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,a),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,a),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,a),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,a),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,a),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,a),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,a),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,a),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,a),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,a),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,a),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,a),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,a),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,a),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,a),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,a),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,a),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,a),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,a),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,a),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,a),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,a),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,a),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,a),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,a),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,a),e.createConstructorTypeNode=e.Debug.deprecate(function(p,g,t){return e.factory.createConstructorTypeNode(void 0,p,g,t)},a),e.updateConstructorTypeNode=e.Debug.deprecate(function(p,g,t,m){return e.factory.updateConstructorTypeNode(p,p.modifiers,g,t,m)},a),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,a),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,a),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,a),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,a),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,a),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,a),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,a),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,a),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,a),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,a),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,a),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,a),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,a),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,a),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,a),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,a),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,a),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,a),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,a),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,a),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,a),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,a),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,a),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,a),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,a),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,a),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,a),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,a),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,a),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,a),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,a),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,a),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,a),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,a),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,a),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,a),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,a),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,a),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,a),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,a),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,a),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,a),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,a),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,a),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,a),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,a),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,a),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,a),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,a),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,a),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,a),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,a),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,a),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,a),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,a),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,a),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,a),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,a),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,a),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,a),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,a),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,a),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,a),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,a),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,a),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,a),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,a),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,a),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,a),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,a),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,a),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,a),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,a),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,a),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,a),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,a),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,a),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,a),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,a),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,a),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,a),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,a),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,a),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,a),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,a),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,a),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,a),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,a),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,a),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,a),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,a),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,a),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,a),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,a),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,a),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,a),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,a),e.createBlock=e.Debug.deprecate(e.factory.createBlock,a),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,a),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,a),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,a),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,a),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,a),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,a),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,a),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,a),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,a),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,a),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,a),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,a),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,a),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,a),e.createFor=e.Debug.deprecate(e.factory.createForStatement,a),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,a),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,a),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,a),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,a),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,a),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,a),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,a),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,a),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,a),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,a),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,a),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,a),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,a),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,a),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,a),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,a),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,a),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,a),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,a),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,a),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,a),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,a),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,a),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,a),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,a),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,a),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,a),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,a),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,a),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,a),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,a),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,a),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,a),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,a),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,a),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,a),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,a),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,a),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,a),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,a),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,a),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,a),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,a),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,a),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,a),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,a),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,a),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,a),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,a),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,a),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,a),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,a),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,a),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,a),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,a),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,a),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,a),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,a),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,a),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,a),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,a),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,a),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,a),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,a),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,a),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,a),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,a),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,a),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,a),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,a),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,a),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,a),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,a),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,a),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,a),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,a),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,a),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,a),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,a),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,a),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,a),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,a),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,a),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,a),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,a),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,a),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,a),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,a),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,a),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,a),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,a),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,a),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,a),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,a),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,a),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,a),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,a),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,a),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,a),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,a),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,a),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,a),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,a),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,a),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,a),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,a),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,a),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,a),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,a),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,a),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,a),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,a),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,a),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,a),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,a),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,a),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,a),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,a),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,a),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,a),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,a),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,a),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,a),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,a),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,a),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,a),e.createBundle=e.Debug.deprecate(e.factory.createBundle,a),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,a),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,a),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,a),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,a),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,a),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,a),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,a),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,a),e.createToken=e.Debug.deprecate(function(g){return e.factory.createToken(g)},a),e.createIdentifier=e.Debug.deprecate(function(g){return e.factory.createIdentifier(g,void 0,void 0)},a),e.createTempVariable=e.Debug.deprecate(function(g){return e.factory.createTempVariable(g,void 0)},a),e.getGeneratedNameForNode=e.Debug.deprecate(function(g){return e.factory.getGeneratedNameForNode(g,void 0)},a),e.createOptimisticUniqueName=e.Debug.deprecate(function(g){return e.factory.createUniqueName(g,16)},a),e.createFileLevelUniqueName=e.Debug.deprecate(function(g){return e.factory.createUniqueName(g,48)},a),e.createIndexSignature=e.Debug.deprecate(function(g,t,m,N){return e.factory.createIndexSignature(g,t,m,N)},a),e.createTypePredicateNode=e.Debug.deprecate(function(g,t){return e.factory.createTypePredicateNode(void 0,g,t)},a),e.updateTypePredicateNode=e.Debug.deprecate(function(g,t,m){return e.factory.updateTypePredicateNode(g,void 0,t,m)},a),e.createLiteral=e.Debug.deprecate(function(g){return typeof g=="number"?e.factory.createNumericLiteral(g):typeof g=="object"&&"base10Value"in g?e.factory.createBigIntLiteral(g):typeof g=="boolean"?g?e.factory.createTrue():e.factory.createFalse():typeof g=="string"?e.factory.createStringLiteral(g,void 0):e.factory.createStringLiteralFromNode(g)},{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(g,t,m,N,D){return e.factory.createMethodSignature(void 0,N,D,g,t,m)},a),e.updateMethodSignature=e.Debug.deprecate(function(g,t,m,N,D,c){return e.factory.updateMethodSignature(g,g.modifiers,D,c,t,m,N)},a),e.createTypeOperatorNode=e.Debug.deprecate(function(g,t){var m;return t?m=g:(t=g,m=138),e.factory.createTypeOperatorNode(m,t)},a),e.createTaggedTemplate=e.Debug.deprecate(function(g,t,m){var N;return m?N=t:m=t,e.factory.createTaggedTemplateExpression(g,N,m)},a),e.updateTaggedTemplate=e.Debug.deprecate(function(g,t,m,N){var D;return N?D=m:N=m,e.factory.updateTaggedTemplateExpression(g,t,D,N)},a),e.updateBinary=e.Debug.deprecate(function(g,t,m,N){return N===void 0&&(N=g.operatorToken),typeof N=="number"&&(N=N===g.operatorToken.kind?g.operatorToken:e.factory.createToken(N)),e.factory.updateBinaryExpression(g,t,N,m)},a),e.createConditional=e.Debug.deprecate(function(g,t,m,N,D){return arguments.length===5?e.factory.createConditionalExpression(g,t,m,N,D):arguments.length===3?e.factory.createConditionalExpression(g,e.factory.createToken(57),t,e.factory.createToken(58),m):e.Debug.fail("Argument count mismatch")},a),e.createYield=e.Debug.deprecate(function(g,t){var m;return t?m=g:t=g,e.factory.createYieldExpression(m,t)},a),e.createClassExpression=e.Debug.deprecate(function(g,t,m,N,D){return e.factory.createClassExpression(void 0,g,t,m,N,D)},a),e.updateClassExpression=e.Debug.deprecate(function(g,t,m,N,D,c){return e.factory.updateClassExpression(g,void 0,t,m,N,D,c)},a),e.createPropertySignature=e.Debug.deprecate(function(g,t,m,N,D){var c=e.factory.createPropertySignature(g,t,m,N);return c.initializer=D,c},a),e.updatePropertySignature=e.Debug.deprecate(function(g,t,m,N,D,c){var x=e.factory.updatePropertySignature(g,t,m,N,D);return g.initializer!==c&&(x===g&&(x=e.factory.cloneNode(g)),x.initializer=c),x},a),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(g,t){return e.factory.createExpressionWithTypeArguments(t,g)},a),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(g,t,m){return e.factory.updateExpressionWithTypeArguments(g,m,t)},a),e.createArrowFunction=e.Debug.deprecate(function(g,t,m,N,D,c){return arguments.length===6?e.factory.createArrowFunction(g,t,m,N,D,c):arguments.length===5?e.factory.createArrowFunction(g,t,m,N,void 0,D):e.Debug.fail("Argument count mismatch")},a),e.updateArrowFunction=e.Debug.deprecate(function(g,t,m,N,D,c,x){return arguments.length===7?e.factory.updateArrowFunction(g,t,m,N,D,c,x):arguments.length===6?e.factory.updateArrowFunction(g,t,m,N,D,g.equalsGreaterThanToken,c):e.Debug.fail("Argument count mismatch")},a),e.createVariableDeclaration=e.Debug.deprecate(function(g,t,m,N){return arguments.length===4?e.factory.createVariableDeclaration(g,t,m,N):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(g,void 0,t,m):e.Debug.fail("Argument count mismatch")},a),e.updateVariableDeclaration=e.Debug.deprecate(function(g,t,m,N,D){return arguments.length===5?e.factory.updateVariableDeclaration(g,t,m,N,D):arguments.length===4?e.factory.updateVariableDeclaration(g,t,g.exclamationToken,m,N):e.Debug.fail("Argument count mismatch")},a),e.createImportClause=e.Debug.deprecate(function(g,t,m){return m===void 0&&(m=!1),e.factory.createImportClause(m,g,t)},a),e.updateImportClause=e.Debug.deprecate(function(g,t,m,N){return e.factory.updateImportClause(g,N,t,m)},a),e.createExportDeclaration=e.Debug.deprecate(function(g,t,m,N,D){return D===void 0&&(D=!1),e.factory.createExportDeclaration(g,t,D,m,N)},a),e.updateExportDeclaration=e.Debug.deprecate(function(g,t,m,N,D,c){return e.factory.updateExportDeclaration(g,t,m,c,N,D)},a),e.createJSDocParamTag=e.Debug.deprecate(function(g,t,m,N){return e.factory.createJSDocParameterTag(void 0,g,t,m,!1,N?e.factory.createNodeArray([e.factory.createJSDocText(N)]):void 0)},a),e.createComma=e.Debug.deprecate(function(g,t){return e.factory.createComma(g,t)},a),e.createLessThan=e.Debug.deprecate(function(g,t){return e.factory.createLessThan(g,t)},a),e.createAssignment=e.Debug.deprecate(function(g,t){return e.factory.createAssignment(g,t)},a),e.createStrictEquality=e.Debug.deprecate(function(g,t){return e.factory.createStrictEquality(g,t)},a),e.createStrictInequality=e.Debug.deprecate(function(g,t){return e.factory.createStrictInequality(g,t)},a),e.createAdd=e.Debug.deprecate(function(g,t){return e.factory.createAdd(g,t)},a),e.createSubtract=e.Debug.deprecate(function(g,t){return e.factory.createSubtract(g,t)},a),e.createLogicalAnd=e.Debug.deprecate(function(g,t){return e.factory.createLogicalAnd(g,t)},a),e.createLogicalOr=e.Debug.deprecate(function(g,t){return e.factory.createLogicalOr(g,t)},a),e.createPostfixIncrement=e.Debug.deprecate(function(g){return e.factory.createPostfixIncrement(g)},a),e.createLogicalNot=e.Debug.deprecate(function(g){return e.factory.createLogicalNot(g)},a),e.createNode=e.Debug.deprecate(function(g,t,m){return t===void 0&&(t=0),m===void 0&&(m=0),e.setTextRangePosEnd(g===298?e.parseBaseNodeFactory.createBaseSourceFileNode(g):g===78?e.parseBaseNodeFactory.createBaseIdentifierNode(g):g===79?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(g):e.isNodeKind(g)?e.parseBaseNodeFactory.createBaseNode(g):e.parseBaseNodeFactory.createBaseTokenNode(g),t,m)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(g){var t=e.factory.cloneNode(g);return e.setTextRange(t,g),e.setParent(t,g.parent),t},{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(g){return g.kind===207},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(g){return e.isMemberName(g)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(un||(un={})),un.createClassifier;var Hx=un.createLanguageService;un.displayPartsToString,un.EndOfLineState,un.flattenDiagnosticMessageText,un.IndentStyle;var U_=un.ScriptKind;un.ScriptTarget,un.TokenClass;var pi={};pi["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. ***************************************************************************** */ /// /// /// /// /// `,pi["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. ***************************************************************************** */ /// ///////////////////////////// /// DOM APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; } interface AddressErrors { addressLine?: string; city?: string; country?: string; dependentLocality?: string; organization?: string; phone?: string; postalCode?: string; recipient?: string; region?: string; sortingCode?: string; } interface AesCbcParams extends Algorithm { iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; } interface AesCtrParams extends Algorithm { counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; length: number; } interface AesDerivedKeyParams extends Algorithm { length: number; } interface AesGcmParams extends Algorithm { additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; 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?: number | null; timelineTime?: number | 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 AudioContextInfo { currentTime?: number; sampleRate?: number; } interface AudioContextOptions { latencyHint?: AudioContextLatencyCategory | number; sampleRate?: number; } interface AudioNodeOptions { channelCount?: number; channelCountMode?: ChannelCountMode; channelInterpretation?: ChannelInterpretation; } interface AudioParamDescriptor { automationRate?: AutomationRate; defaultValue?: number; maxValue?: number; minValue?: number; name: string; } interface AudioProcessingEventInit extends EventInit { inputBuffer: AudioBuffer; outputBuffer: AudioBuffer; playbackTime: number; } interface AudioTimestamp { contextTime?: number; performanceTime?: number; } interface AudioWorkletNodeOptions extends AudioNodeOptions { numberOfInputs?: number; numberOfOutputs?: number; outputChannelCount?: number[]; parameterData?: Record; 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 BlobPropertyBag { endings?: EndingType; type?: string; } interface ByteLengthChunk { byteLength?: number; } interface CacheQueryOptions { ignoreMethod?: boolean; ignoreSearch?: boolean; ignoreVary?: boolean; } interface CanvasRenderingContext2DSettings { alpha?: boolean; desynchronized?: 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 CloseEventInit extends EventInit { code?: number; reason?: string; wasClean?: boolean; } interface CompositionEventInit extends UIEventInit { data?: string; } interface ComputedEffectTiming extends EffectTiming { activeDuration?: number; currentIteration?: number | null; endTime?: number; localTime?: number | null; progress?: number | null; } interface ComputedKeyframe { composite: CompositeOperationOrAuto; computedOffset: number; easing: string; offset: number | null; [property: string]: string | number | null | undefined; } interface ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation { arrayOfDomainStrings?: string[]; } 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 ConstrainVideoFacingModeParameters { exact?: VideoFacingModeEnum | VideoFacingModeEnum[]; ideal?: VideoFacingModeEnum | VideoFacingModeEnum[]; } 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 CustomEventInit extends EventInit { detail?: T; } interface DOMMatrix2DInit { a?: number; b?: number; c?: number; d?: number; e?: number; f?: number; m11?: number; m12?: number; m21?: number; m22?: number; m41?: number; m42?: number; } interface DOMMatrixInit extends DOMMatrix2DInit { is2D?: boolean; m13?: number; m14?: number; m23?: number; m24?: number; m31?: number; m32?: number; m33?: number; m34?: number; m43?: number; m44?: number; } interface DOMPointInit { w?: number; x?: number; y?: number; z?: number; } interface DOMQuadInit { p1?: DOMPointInit; p2?: DOMPointInit; p3?: DOMPointInit; p4?: DOMPointInit; } interface DOMRectInit { height?: number; width?: number; x?: number; y?: number; } interface DelayOptions extends AudioNodeOptions { delayTime?: number; maxDelayTime?: number; } interface DeviceMotionEventAccelerationInit { x?: number | null; y?: number | null; z?: number | null; } interface DeviceMotionEventInit extends EventInit { acceleration?: DeviceMotionEventAccelerationInit; accelerationIncludingGravity?: DeviceMotionEventAccelerationInit; interval?: number; rotationRate?: DeviceMotionEventRotationRateInit; } interface DeviceMotionEventRotationRateInit { alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DeviceOrientationEventInit extends EventInit { absolute?: boolean; alpha?: number | null; beta?: number | null; gamma?: number | null; } interface DevicePermissionDescriptor extends PermissionDescriptor { deviceId?: string; name: "camera" | "microphone" | "speaker"; } interface DocumentTimelineOptions { originTime?: number; } 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; } 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 ExceptionInformation { domain?: string | null; } interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; } interface FocusEventInit extends UIEventInit { relatedTarget?: EventTarget | null; } interface FocusNavigationEventInit extends EventInit { navigationReason?: string | null; originHeight?: number; originLeft?: number; originTop?: number; originWidth?: number; } interface FocusNavigationOrigin { originHeight?: number; originLeft?: number; originTop?: number; originWidth?: number; } interface FocusOptions { preventScroll?: boolean; } interface FullscreenOptions { navigationUI?: FullscreenNavigationUI; } interface GainOptions extends AudioNodeOptions { gain?: number; } interface GamepadEventInit extends EventInit { gamepad: Gamepad; } interface GetNotificationOptions { tag?: string; } interface GetRootNodeOptions { composed?: boolean; } interface HashChangeEventInit extends EventInit { newURL?: string; oldURL?: string; } interface HkdfParams extends Algorithm { hash: HashAlgorithmIdentifier; info: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; } 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 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 ImageBitmapOptions { colorSpaceConversion?: ColorSpaceConversion; imageOrientation?: ImageOrientation; premultiplyAlpha?: PremultiplyAlpha; resizeHeight?: number; resizeQuality?: ResizeQuality; resizeWidth?: number; } interface ImageBitmapRenderingContextSettings { alpha?: boolean; } interface ImageEncodeOptions { quality?: number; type?: string; } interface ImportMeta { url: string; } interface InputEventInit extends UIEventInit { data?: string | null; inputType?: string; isComposing?: boolean; } interface IntersectionObserverEntryInit { boundingClientRect: DOMRectInit; intersectionRatio: number; intersectionRect: DOMRectInit; isIntersecting: boolean; rootBounds: DOMRectInit | null; target: Element; time: number; } 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; } interface MediaElementAudioSourceOptions { mediaElement: HTMLMediaElement; } interface MediaEncryptedEventInit extends EventInit { initData?: ArrayBuffer | null; initDataType?: 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; robustness?: string; } interface MediaQueryListEventInit extends EventInit { matches?: boolean; media?: string; } interface MediaStreamAudioSourceOptions { mediaStream: MediaStream; } interface MediaStreamConstraints { audio?: boolean | MediaTrackConstraints; peerIdentity?: string; video?: boolean | MediaTrackConstraints; } interface MediaStreamErrorEventInit extends EventInit { error?: MediaStreamError | null; } interface MediaStreamEventInit extends EventInit { stream?: MediaStream; } interface MediaStreamTrackAudioSourceOptions { mediaStreamTrack: MediaStreamTrack; } interface MediaStreamTrackEventInit extends EventInit { track: MediaStreamTrack; } interface MediaTrackCapabilities { aspectRatio?: DoubleRange; autoGainControl?: boolean[]; channelCount?: ULongRange; deviceId?: string; echoCancellation?: boolean[]; facingMode?: string[]; frameRate?: DoubleRange; groupId?: string; height?: ULongRange; latency?: DoubleRange; 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; resizeMode?: ConstrainDOMString; sampleRate?: ConstrainULong; sampleSize?: ConstrainULong; width?: ConstrainULong; } interface MediaTrackConstraints extends MediaTrackConstraintSet { advanced?: MediaTrackConstraintSet[]; } interface MediaTrackSettings { aspectRatio?: number; autoGainControl?: boolean; channelCount?: number; deviceId?: string; echoCancellation?: boolean; facingMode?: string; frameRate?: number; groupId?: string; height?: number; latency?: number; noiseSuppression?: boolean; resizeMode?: string; sampleRate?: number; sampleSize?: number; width?: number; } interface MediaTrackSupportedConstraints { aspectRatio?: boolean; autoGainControl?: boolean; channelCount?: boolean; deviceId?: boolean; echoCancellation?: boolean; facingMode?: boolean; frameRate?: boolean; groupId?: boolean; height?: boolean; latency?: boolean; noiseSuppression?: boolean; resizeMode?: boolean; sampleRate?: boolean; sampleSize?: boolean; width?: boolean; } interface MessageEventInit extends EventInit { data?: T; lastEventId?: string; origin?: string; ports?: MessagePort[]; source?: MessageEventSource | null; } interface MidiPermissionDescriptor extends PermissionDescriptor { name: "midi"; sysex?: boolean; } interface MouseEventInit extends EventModifierInit { button?: number; buttons?: number; clientX?: number; clientY?: number; movementX?: number; movementY?: number; relatedTarget?: EventTarget | null; screenX?: number; screenY?: number; } interface MultiCacheQueryOptions extends CacheQueryOptions { cacheName?: string; } interface MutationObserverInit { /** * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */ attributeFilter?: string[]; /** * Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */ attributeOldValue?: boolean; /** * Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */ attributes?: boolean; /** * Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */ characterData?: boolean; /** * Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */ characterDataOldValue?: boolean; /** * Set to true if mutations to target's children are to be observed. */ childList?: boolean; /** * Set to true if mutations to not just target, but also target's descendants are to be observed. */ subtree?: boolean; } interface NavigationPreloadState { enabled?: boolean; headerValue?: string; } interface 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?: number; 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; } 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 PayerErrors { email?: string; name?: string; phone?: string; } interface PaymentCurrencyAmount { currency: string; value: string; } interface PaymentDetailsBase { displayItems?: PaymentItem[]; modifiers?: PaymentDetailsModifier[]; shippingOptions?: PaymentShippingOption[]; } interface PaymentDetailsInit extends PaymentDetailsBase { id?: string; total: PaymentItem; } interface PaymentDetailsModifier { additionalDisplayItems?: PaymentItem[]; data?: any; supportedMethods: string | string[]; total?: PaymentItem; } interface PaymentDetailsUpdate extends PaymentDetailsBase { error?: string; payerErrors?: PayerErrors; paymentMethodErrors?: any; shippingAddressErrors?: AddressErrors; total?: PaymentItem; } interface PaymentItem { amount: PaymentCurrencyAmount; label: string; pending?: boolean; } interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit { methodDetails?: any; methodName?: string; } interface PaymentMethodData { data?: any; supportedMethods: string | string[]; } interface PaymentOptions { requestBillingAddress?: boolean; requestPayerEmail?: boolean; requestPayerName?: boolean; requestPayerPhone?: boolean; requestShipping?: boolean; shippingType?: PaymentShippingType; } interface PaymentRequestUpdateEventInit extends EventInit { } interface PaymentShippingOption { amount: PaymentCurrencyAmount; id: string; label: string; selected?: boolean; } interface PaymentValidationErrors { error?: string; payer?: PayerErrors; paymentMethod?: any; shippingAddress?: AddressErrors; } interface Pbkdf2Params extends Algorithm { hash: HashAlgorithmIdentifier; iterations: number; salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; } 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 PostMessageOptions { transfer?: any[]; } interface ProgressEventInit extends EventInit { lengthComputable?: boolean; loaded?: number; total?: number; } interface PromiseRejectionEventInit extends EventInit { promise: Promise; 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 PushPermissionDescriptor extends PermissionDescriptor { name: "push"; userVisibleOnly?: boolean; } interface PushSubscriptionJSON { endpoint?: string; expirationTime?: number | null; keys?: Record; } interface PushSubscriptionOptionsInit { applicationServerKey?: BufferSource | string | null; userVisibleOnly?: boolean; } interface QueuingStrategy { highWaterMark?: number; size?: QueuingStrategySize; } interface QueuingStrategyInit { /** * Creates a new ByteLengthQueuingStrategy with the provided high water mark. * * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw. */ highWaterMark: number; } interface RTCAnswerOptions extends RTCOfferAnswerOptions { } interface RTCCertificateExpiration { expires?: number; } interface RTCConfiguration { bundlePolicy?: RTCBundlePolicy; certificates?: RTCCertificate[]; iceCandidatePoolSize?: number; iceServers?: RTCIceServer[]; iceTransportPolicy?: RTCIceTransportPolicy; rtcpMuxPolicy?: RTCRtcpMuxPolicy; } interface RTCDTMFToneChangeEventInit extends EventInit { tone?: string; } interface RTCDataChannelEventInit extends EventInit { channel: RTCDataChannel; } interface RTCDataChannelInit { id?: number; maxPacketLifeTime?: number; maxRetransmits?: number; negotiated?: boolean; ordered?: boolean; protocol?: string; } interface RTCDtlsFingerprint { algorithm?: string; value?: string; } interface RTCDtlsParameters { fingerprints?: RTCDtlsFingerprint[]; role?: RTCDtlsRole; } interface RTCErrorEventInit extends EventInit { error: RTCError; } interface RTCErrorInit { errorDetail: RTCErrorDetailType; receivedAlert?: number; sctpCauseCode?: number; sdpLineNumber?: number; sentAlert?: number; } interface RTCIceCandidateAttributes extends RTCStats { addressSourceUrl?: string; candidateType?: RTCStatsIceCandidateType; ipAddress?: string; portNumber?: number; priority?: number; transport?: string; } interface RTCIceCandidateComplete { } interface RTCIceCandidateDictionary { foundation?: string; ip?: string; msMTurnSessionId?: string; port?: number; priority?: number; protocol?: RTCIceProtocol; relatedAddress?: string; relatedPort?: number; tcpType?: RTCIceTcpCandidateType; type?: RTCIceCandidateType; } interface RTCIceCandidateInit { candidate?: string; sdpMLineIndex?: number | null; sdpMid?: string | null; usernameFragment?: string | null; } interface RTCIceCandidatePair { local?: RTCIceCandidate; remote?: RTCIceCandidate; } interface RTCIceCandidatePairStats extends RTCStats { availableIncomingBitrate?: number; availableOutgoingBitrate?: number; bytesDiscardedOnSend?: number; bytesReceived?: number; bytesSent?: number; circuitBreakerTriggerCount?: number; consentExpiredTimestamp?: number; consentRequestsSent?: number; currentRoundTripTime?: number; currentRtt?: number; firstRequestTimestamp?: number; lastPacketReceivedTimestamp?: number; lastPacketSentTimestamp?: number; lastRequestTimestamp?: number; lastResponseTimestamp?: number; localCandidateId?: string; nominated?: boolean; packetsDiscardedOnSend?: number; packetsReceived?: number; packetsSent?: number; priority?: number; remoteCandidateId?: string; requestsReceived?: number; requestsSent?: number; responsesReceived?: number; responsesSent?: number; retransmissionsReceived?: number; retransmissionsSent?: number; state?: RTCStatsIceCandidatePairState; totalRoundTripTime?: number; totalRtt?: number; transportId?: string; } interface RTCIceGatherOptions { gatherPolicy?: RTCIceGatherPolicy; iceservers?: RTCIceServer[]; } interface RTCIceParameters { password?: string; usernameFragment?: string; } interface RTCIceServer { credential?: string; credentialType?: RTCIceCredentialType; urls: string | string[]; username?: string; } interface RTCIdentityProviderOptions { peerIdentity?: string; protocol?: string; usernameHint?: string; } interface RTCInboundRTPStreamStats extends RTCRTPStreamStats { bytesReceived?: number; fractionLost?: number; jitter?: number; packetsLost?: number; packetsReceived?: number; } interface RTCLocalSessionDescriptionInit { sdp?: string; type?: RTCSdpType; } interface RTCMediaStreamTrackStats extends RTCStats { audioLevel?: number; echoReturnLoss?: number; echoReturnLossEnhancement?: number; frameHeight?: number; frameWidth?: number; framesCorrupted?: number; framesDecoded?: number; framesDropped?: number; framesPerSecond?: number; framesReceived?: number; framesSent?: number; remoteSource?: boolean; ssrcIds?: string[]; trackIdentifier?: string; } interface RTCOfferAnswerOptions { } interface RTCOfferOptions extends RTCOfferAnswerOptions { iceRestart?: boolean; offerToReceiveAudio?: boolean; offerToReceiveVideo?: boolean; } interface RTCOutboundRTPStreamStats extends RTCRTPStreamStats { bytesSent?: number; packetsSent?: number; roundTripTime?: number; targetBitrate?: number; } interface RTCPeerConnectionIceErrorEventInit extends EventInit { address?: string | null; errorCode: number; port?: number | null; statusText?: string; url?: string; } interface RTCPeerConnectionIceEventInit extends EventInit { candidate?: RTCIceCandidate | null; url?: string | null; } interface RTCRTPStreamStats extends RTCStats { associateStatsId?: string; codecId?: string; firCount?: number; isRemote?: boolean; mediaTrackId?: string; mediaType?: string; nackCount?: number; pliCount?: number; sliCount?: number; ssrc?: string; transportId?: string; } interface RTCRtcpFeedback { parameter?: string; type?: string; } 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: number; } interface RTCRtpEncodingParameters extends RTCRtpCodingParameters { active?: boolean; maxBitrate?: number; scaleResolutionDownBy?: number; } interface RTCRtpFecParameters { mechanism?: string; ssrc?: number; } interface RTCRtpHeaderExtension { kind?: string; preferredEncrypt?: boolean; preferredId?: number; uri?: string; } 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 RTCRtpRtxParameters { ssrc?: number; } interface RTCRtpSendParameters extends RTCRtpParameters { encodings: RTCRtpEncodingParameters[]; transactionId: string; } interface RTCRtpSynchronizationSource extends RTCRtpContributingSource { voiceActivityFlag?: boolean; } interface RTCRtpTransceiverInit { direction?: RTCRtpTransceiverDirection; sendEncodings?: RTCRtpEncodingParameters[]; streams?: MediaStream[]; } interface RTCRtpUnhandled { muxId?: string; payloadType?: number; ssrc?: number; } interface RTCSessionDescriptionInit { sdp?: string; type: RTCSdpType; } interface RTCSrtpKeyParam { keyMethod?: string; keySalt?: string; lifetime?: string; mkiLength?: number; mkiValue?: number; } interface RTCSrtpSdesParameters { cryptoSuite?: string; keyParams?: RTCSrtpKeyParam[]; sessionParams?: string[]; tag?: number; } interface RTCSsrcRange { max?: number; min?: number; } interface RTCStats { id?: string; timestamp?: number; type?: RTCStatsType; } interface RTCStatsReport { } interface RTCTrackEventInit extends EventInit { receiver: RTCRtpReceiver; streams?: MediaStream[]; track: MediaStreamTrack; transceiver: RTCRtpTransceiver; } interface RTCTransportStats extends RTCStats { bytesReceived?: number; bytesSent?: number; dtlsCipher?: string; dtlsState?: RTCDtlsTransportState; iceRole?: RTCIceRole; localCertificateId?: string; packetsReceived?: number; packetsSent?: number; remoteCertificateId?: string; rtcpTransportStatsId?: string; selectedCandidatePairChanges?: number; selectedCandidatePairId?: string; srtpCipher?: string; tlsGroup?: string; tlsVersion?: string; } interface ReadableStreamDefaultReadDoneResult { done: true; value?: undefined; } interface ReadableStreamDefaultReadValueResult { done: false; value: T; } interface ReadableWritablePair { readable: ReadableStream; /** * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use. * * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader. */ writable: WritableStream; } interface RegistrationOptions { scope?: string; type?: WorkerType; updateViaCache?: ServiceWorkerUpdateViaCache; } interface 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?: any; } 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?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; } 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; documentURI?: string; effectiveDirective?: string; lineNumber?: number; originalPolicy?: string; referrer?: string; sourceFile?: string; statusCode?: number; violatedDirective?: string; } interface ShadowRootInit { delegatesFocus?: boolean; mode: ShadowRootMode; } interface ShareData { text?: string; title?: string; url?: string; } interface SpeechRecognitionErrorEventInit extends EventInit { error: SpeechRecognitionErrorCode; message?: string; } interface SpeechRecognitionEventInit extends EventInit { resultIndex?: number; results: SpeechRecognitionResultList; } 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 StoreExceptionsInformation extends ExceptionInformation { detailURI?: string | null; explanationString?: string | null; siteName?: string | null; } interface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation { arrayOfDomainStrings?: 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 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 { flush?: TransformerFlushCallback; readableType?: undefined; start?: TransformerStartCallback; transform?: TransformerTransformCallback; writableType?: undefined; } interface TransitionEventInit extends EventInit { elapsedTime?: number; propertyName?: string; pseudoElement?: string; } interface UIEventInit extends EventInit { detail?: number; view?: Window | null; } interface ULongRange { max?: number; min?: number; } interface UnderlyingSink { abort?: UnderlyingSinkAbortCallback; close?: UnderlyingSinkCloseCallback; start?: UnderlyingSinkStartCallback; type?: undefined; write?: UnderlyingSinkWriteCallback; } interface UnderlyingSource { cancel?: UnderlyingSourceCancelCallback; pull?: UnderlyingSourcePullCallback; start?: UnderlyingSourceStartCallback; type?: undefined; } interface VRDisplayEventInit extends EventInit { display: VRDisplay; reason?: VRDisplayEventReason; } interface VRLayer { leftBounds?: number[] | Float32Array | null; rightBounds?: number[] | Float32Array | null; source?: HTMLCanvasElement | null; } interface VRStageParameters { sittingToStandingTransform?: Float32Array; sizeX?: number; sizeY?: 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 WorkerOptions { credentials?: RequestCredentials; name?: string; type?: WorkerType; } interface WorkletOptions { credentials?: RequestCredentials; } interface EventListener { (evt: Event): void; } 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; } /** 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(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AbortSignal: { prototype: AbortSignal; new(): AbortSignal; }; 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(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } interface AesCfbParams extends Algorithm { iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer; } interface AesCmacParams extends Algorithm { length: number; } /** 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(): Animation[]; } interface AnimationEventMap { "cancel": AnimationPlaybackEvent; "finish": AnimationPlaybackEvent; } interface Animation extends EventTarget { currentTime: number | null; effect: AnimationEffect | null; readonly finished: Promise; id: string; oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null; readonly pending: boolean; readonly playState: AnimationPlayState; playbackRate: number; readonly ready: Promise; startTime: number | null; timeline: AnimationTimeline | null; cancel(): void; finish(): void; pause(): void; play(): void; reverse(): void; updatePlaybackRate(playbackRate: number): void; addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Animation: { prototype: Animation; new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation; }; 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: number | null; readonly timelineTime: number | 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; }; interface ApplicationCacheEventMap { "cached": Event; "checking": Event; "downloading": Event; "error": Event; "noupdate": Event; "obsolete": Event; "progress": ProgressEvent; "updateready": Event; } interface ApplicationCache extends EventTarget { /** @deprecated */ oncached: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ onchecking: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ ondownloading: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ onerror: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ onobsolete: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null; /** @deprecated */ onupdateready: ((this: ApplicationCache, ev: Event) => any) | null; /** @deprecated */ readonly status: number; /** @deprecated */ abort(): void; /** @deprecated */ swapCache(): void; /** @deprecated */ update(): void; readonly CHECKING: number; readonly DOWNLOADING: number; readonly IDLE: number; readonly OBSOLETE: number; readonly UNCACHED: number; readonly UPDATEREADY: number; addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ApplicationCache: { prototype: ApplicationCache; new(): ApplicationCache; readonly CHECKING: number; readonly DOWNLOADING: number; readonly IDLE: number; readonly OBSOLETE: number; readonly UNCACHED: number; readonly UPDATEREADY: number; }; /** 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(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioBufferSourceNode: { prototype: AudioBufferSourceNode; new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode; }; /** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */ interface AudioContext extends BaseAudioContext { readonly baseLatency: number; readonly outputLatency: number; close(): Promise; createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode; createMediaStreamDestination(): MediaStreamAudioDestinationNode; createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode; createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode; getOutputTimestamp(): AudioTimestamp; resume(): Promise; suspend(): Promise; addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioContext: { prototype: AudioContext; new(contextOptions?: AudioContextOptions): AudioContext; }; /** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */ 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 { readonly inputBuffer: AudioBuffer; readonly outputBuffer: AudioBuffer; readonly playbackTime: number; } 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(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioScheduledSourceNode: { prototype: AudioScheduledSourceNode; new(): AudioScheduledSourceNode; }; interface AudioWorklet extends Worklet { } declare var AudioWorklet: { prototype: AudioWorklet; new(): AudioWorklet; }; interface AudioWorkletNodeEventMap { "processorerror": Event; } interface AudioWorkletNode extends AudioNode { onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null; readonly parameters: AudioParamMap; readonly port: MessagePort; addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var AudioWorkletNode: { prototype: AudioWorkletNode; new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode; }; interface AuthenticatorAssertionResponse extends AuthenticatorResponse { readonly authenticatorData: ArrayBuffer; readonly signature: ArrayBuffer; readonly userHandle: ArrayBuffer | null; } declare var AuthenticatorAssertionResponse: { prototype: AuthenticatorAssertionResponse; new(): AuthenticatorAssertionResponse; }; interface AuthenticatorAttestationResponse extends AuthenticatorResponse { readonly attestationObject: ArrayBuffer; } declare var AuthenticatorAttestationResponse: { prototype: AuthenticatorAttestationResponse; new(): AuthenticatorAttestationResponse; }; 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 { 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; createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode; createStereoPanner(): StereoPannerNode; createWaveShaper(): WaveShaperNode; decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise; addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BaseAudioContext: { prototype: BaseAudioContext; new(): BaseAudioContext; }; /** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */ interface BeforeUnloadEvent extends Event { returnValue: any; } declare var BeforeUnloadEvent: { prototype: BeforeUnloadEvent; new(): BeforeUnloadEvent; }; interface BhxBrowser { readonly lastError: DOMException; checkMatchesGlobExpression(pattern: string, value: string): boolean; checkMatchesUriExpression(pattern: string, value: string): boolean; clearLastError(): void; currentWindowId(): number; fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void; genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void; genericSynchronousFunction(functionId: number, parameters?: string): string; getExtensionId(): string; getThisAddress(): any; registerGenericFunctionCallbackHandler(callbackHandler: Function): void; registerGenericListenerHandler(eventHandler: Function): void; setLastError(parameters: string): void; webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void; } declare var BhxBrowser: { prototype: BhxBrowser; new(): BhxBrowser; }; /** 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; slice(start?: number, end?: number, contentType?: string): Blob; stream(): ReadableStream; text(): Promise; } declare var Blob: { prototype: Blob; new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob; }; interface Body { readonly body: ReadableStream | null; readonly bodyUsed: boolean; arrayBuffer(): Promise; blob(): Promise; formData(): Promise; json(): Promise; text(): Promise; } 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(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var BroadcastChannel: { prototype: BroadcastChannel; new(name: string): BroadcastChannel; }; /** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */ interface ByteLengthQueuingStrategy extends QueuingStrategy { readonly highWaterMark: number; readonly size: QueuingStrategySize; } declare var ByteLengthQueuingStrategy: { prototype: ByteLengthQueuingStrategy; new(init: QueuingStrategyInit): ByteLengthQueuingStrategy; }; /** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */ interface CDATASection extends Text { } declare var CDATASection: { prototype: CDATASection; new(): CDATASection; }; /** 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 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; 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 { 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; backfaceVisibility: string; background: string; backgroundAttachment: 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; borderBlockEnd: string; borderBlockEndColor: string; borderBlockEndStyle: string; borderBlockEndWidth: string; borderBlockStart: string; borderBlockStartColor: string; borderBlockStartStyle: string; borderBlockStartWidth: string; borderBottom: string; borderBottomColor: string; borderBottomLeftRadius: string; borderBottomRightRadius: string; borderBottomStyle: string; borderBottomWidth: string; borderCollapse: string; borderColor: string; borderImage: string; borderImageOutset: string; borderImageRepeat: string; borderImageSlice: string; borderImageSource: string; borderImageWidth: string; borderInlineEnd: string; borderInlineEndColor: string; borderInlineEndStyle: string; borderInlineEndWidth: string; borderInlineStart: string; borderInlineStartColor: string; borderInlineStartStyle: string; borderInlineStartWidth: string; borderLeft: string; borderLeftColor: string; borderLeftStyle: string; borderLeftWidth: string; borderRadius: string; borderRight: string; borderRightColor: string; borderRightStyle: string; borderRightWidth: string; borderSpacing: 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; clip: string; clipPath: string; clipRule: string; color: string; colorInterpolation: string; colorInterpolationFilters: string; columnCount: string; columnFill: string; columnGap: string; columnRule: string; columnRuleColor: string; columnRuleStyle: string; columnRuleWidth: string; columnSpan: string; columnWidth: string; columns: string; content: string; counterIncrement: string; counterReset: 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; fontSize: string; fontSizeAdjust: string; fontStretch: string; fontStyle: string; fontSynthesis: string; fontVariant: string; fontVariantCaps: string; fontVariantEastAsian: string; fontVariantLigatures: string; fontVariantNumeric: string; fontVariantPosition: string; fontWeight: string; gap: string; glyphOrientationVertical: string; grid: string; gridArea: string; gridAutoColumns: string; gridAutoFlow: string; gridAutoRows: string; gridColumn: string; gridColumnEnd: string; gridColumnGap: string; gridColumnStart: string; gridGap: string; gridRow: string; gridRowEnd: string; gridRowGap: string; gridRowStart: string; gridTemplate: string; gridTemplateAreas: string; gridTemplateColumns: string; gridTemplateRows: string; height: string; hyphens: string; imageOrientation: string; imageRendering: string; inlineSize: 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; marginBlockEnd: string; marginBlockStart: string; marginBottom: string; marginInlineEnd: string; marginInlineStart: string; marginLeft: string; marginRight: string; marginTop: string; marker: string; markerEnd: string; markerMid: string; markerStart: string; mask: string; maskComposite: string; maskImage: string; maskPosition: string; maskRepeat: string; maskSize: string; maskType: string; maxBlockSize: string; maxHeight: string; maxInlineSize: string; maxWidth: string; minBlockSize: string; minHeight: string; minInlineSize: string; minWidth: string; objectFit: string; objectPosition: 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; paddingBlockEnd: string; paddingBlockStart: string; paddingBottom: 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; rubyAlign: string; rubyPosition: string; scale: string; scrollBehavior: 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; textDecorationStyle: string; textEmphasis: string; textEmphasisColor: string; textEmphasisPosition: string; textEmphasisStyle: string; textIndent: string; textJustify: string; textOrientation: string; textOverflow: string; textRendering: string; textShadow: string; textTransform: 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 */ webkitAlignContent: string; /** @deprecated */ webkitAlignItems: string; /** @deprecated */ webkitAlignSelf: string; /** @deprecated */ webkitAnimation: string; /** @deprecated */ webkitAnimationDelay: string; /** @deprecated */ webkitAnimationDirection: string; /** @deprecated */ webkitAnimationDuration: string; /** @deprecated */ webkitAnimationFillMode: string; /** @deprecated */ webkitAnimationIterationCount: string; /** @deprecated */ webkitAnimationName: string; /** @deprecated */ webkitAnimationPlayState: string; /** @deprecated */ webkitAnimationTimingFunction: string; /** @deprecated */ webkitAppearance: string; /** @deprecated */ webkitBackfaceVisibility: string; /** @deprecated */ webkitBackgroundClip: string; /** @deprecated */ webkitBackgroundOrigin: string; /** @deprecated */ webkitBackgroundSize: string; /** @deprecated */ webkitBorderBottomLeftRadius: string; /** @deprecated */ webkitBorderBottomRightRadius: string; /** @deprecated */ webkitBorderRadius: string; /** @deprecated */ webkitBorderTopLeftRadius: string; /** @deprecated */ webkitBorderTopRightRadius: string; /** @deprecated */ webkitBoxAlign: string; /** @deprecated */ webkitBoxFlex: string; /** @deprecated */ webkitBoxOrdinalGroup: string; /** @deprecated */ webkitBoxOrient: string; /** @deprecated */ webkitBoxPack: string; /** @deprecated */ webkitBoxShadow: string; /** @deprecated */ webkitBoxSizing: string; /** @deprecated */ webkitFilter: string; /** @deprecated */ webkitFlex: string; /** @deprecated */ webkitFlexBasis: string; /** @deprecated */ webkitFlexDirection: string; /** @deprecated */ webkitFlexFlow: string; /** @deprecated */ webkitFlexGrow: string; /** @deprecated */ webkitFlexShrink: string; /** @deprecated */ webkitFlexWrap: string; /** @deprecated */ webkitJustifyContent: string; webkitLineClamp: string; /** @deprecated */ webkitMask: string; /** @deprecated */ webkitMaskBoxImage: string; /** @deprecated */ webkitMaskBoxImageOutset: string; /** @deprecated */ webkitMaskBoxImageRepeat: string; /** @deprecated */ webkitMaskBoxImageSlice: string; /** @deprecated */ webkitMaskBoxImageSource: string; /** @deprecated */ webkitMaskBoxImageWidth: string; /** @deprecated */ webkitMaskClip: string; /** @deprecated */ webkitMaskComposite: string; /** @deprecated */ webkitMaskImage: string; /** @deprecated */ webkitMaskOrigin: string; /** @deprecated */ webkitMaskPosition: string; /** @deprecated */ webkitMaskRepeat: string; /** @deprecated */ webkitMaskSize: string; /** @deprecated */ webkitOrder: string; /** @deprecated */ webkitPerspective: string; /** @deprecated */ webkitPerspectiveOrigin: string; webkitTapHighlightColor: string; /** @deprecated */ webkitTextFillColor: string; /** @deprecated */ webkitTextSizeAdjust: string; /** @deprecated */ webkitTextStroke: string; /** @deprecated */ webkitTextStrokeColor: string; /** @deprecated */ webkitTextStrokeWidth: string; /** @deprecated */ webkitTransform: string; /** @deprecated */ webkitTransformOrigin: string; /** @deprecated */ webkitTransformStyle: string; /** @deprecated */ webkitTransition: string; /** @deprecated */ webkitTransitionDelay: string; /** @deprecated */ webkitTransitionDuration: string; /** @deprecated */ webkitTransitionProperty: string; /** @deprecated */ webkitTransitionTimingFunction: string; /** @deprecated */ webkitUserSelect: string; whiteSpace: string; widows: string; width: string; willChange: string; wordBreak: string; wordSpacing: string; wordWrap: string; writingMode: string; zIndex: string; /** @deprecated */ zoom: 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; readonly rules: CSSRuleList; addRule(selector?: string, style?: string, index?: number): number; deleteRule(index: number): void; insertRule(rule: string, index?: number): number; removeRule(index?: number): void; } declare var CSSStyleSheet: { prototype: CSSStyleSheet; new(): 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; }; /** 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. */ interface Cache { add(request: RequestInfo): Promise; addAll(requests: RequestInfo[]): Promise; delete(request: RequestInfo, options?: CacheQueryOptions): Promise; keys(request?: RequestInfo, options?: CacheQueryOptions): Promise>; match(request: RequestInfo, options?: CacheQueryOptions): Promise; matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise>; put(request: RequestInfo, response: Response): Promise; } declare var Cache: { prototype: Cache; new(): Cache; }; /** The storage for Cache objects. */ interface CacheStorage { delete(cacheName: string): Promise; has(cacheName: string): Promise; keys(): Promise; match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise; open(cacheName: string): Promise; } 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): ImageData; createImageData(imagedata: ImageData): ImageData; getImageData(sx: number, sy: number, sw: number, sh: number): 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, anticlockwise?: 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, anticlockwise?: 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 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; } 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; scrollPathIntoView(): void; scrollPathIntoView(path: Path2D): void; } interface CaretPosition { readonly offset: number; readonly offsetNode: Node; getClientRect(): DOMRect | null; } declare var CaretPosition: { prototype: CaretPosition; new(): CaretPosition; }; /** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. 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; } interface ClientRect { bottom: number; readonly height: number; left: number; right: number; top: number; readonly width: number; } declare var ClientRect: { prototype: ClientRect; new(): ClientRect; }; interface ClientRectList { readonly length: number; item(index: number): ClientRect; [index: number]: ClientRect; } declare var ClientRectList: { prototype: ClientRectList; new(): ClientRectList; }; interface Clipboard extends EventTarget { readText(): Promise; writeText(data: string): Promise; } declare var Clipboard: { prototype: Clipboard; new(): Clipboard; }; /** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */ interface ClipboardEvent extends Event { readonly clipboardData: DataTransfer | null; } declare var ClipboardEvent: { prototype: ClipboardEvent; new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent; }; /** 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; } declare var CompositionEvent: { prototype: CompositionEvent; new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent; }; interface ConcatParams extends Algorithm { algorithmId: Uint8Array; hash?: string | Algorithm; partyUInfo: Uint8Array; partyVInfo: Uint8Array; privateInfo?: Uint8Array; publicInfo?: Uint8Array; } interface ConstantSourceNode extends AudioScheduledSourceNode { readonly offset: AudioParam; addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var ConstantSourceNode: { prototype: ConstantSourceNode; new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode; }; /** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */ 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 a 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; }; interface Credential { readonly id: string; readonly type: string; } declare var Credential: { prototype: Credential; new(): Credential; }; interface CredentialsContainer { create(options?: CredentialCreationOptions): Promise; get(options?: CredentialRequestOptions): Promise; preventSilentAccess(): Promise; store(credential: Credential): Promise; } declare var CredentialsContainer: { prototype: CredentialsContainer; new(): CredentialsContainer; }; /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */ interface Crypto { readonly subtle: SubtleCrypto; getRandomValues(array: T): T; } declare var Crypto: { prototype: Crypto; new(): Crypto; }; /** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */ interface CryptoKey { readonly algorithm: KeyAlgorithm; readonly extractable: boolean; readonly type: KeyType; readonly usages: KeyUsage[]; } declare var CryptoKey: { prototype: CryptoKey; new(): CryptoKey; }; /** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */ interface CryptoKeyPair { privateKey: CryptoKey; publicKey: CryptoKey; } declare var CryptoKeyPair: { prototype: CryptoKeyPair; new(): CryptoKeyPair; }; interface CustomElementRegistry { define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void; get(name: string): any; upgrade(root: Node): void; whenDefined(name: string): Promise; } declare var CustomElementRegistry: { prototype: CustomElementRegistry; new(): CustomElementRegistry; }; interface CustomEvent extends Event { /** * Returns any custom data event was created with. Typically used for synthetic events. */ readonly detail: T; initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void; } declare var CustomEvent: { prototype: CustomEvent; new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent; }; /** An error object that contains an error name. */ interface DOMError { readonly name: string; toString(): string; } declare var DOMError: { prototype: DOMError; new(): DOMError; }; /** 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 { 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; }; interface DOMSettableTokenList extends DOMTokenList { value: string; } declare var DOMSettableTokenList: { prototype: DOMSettableTokenList; new(): DOMSettableTokenList; }; /** 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 HTML attribute 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(oldToken: string, newToken: string): void; /** * 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; }; interface DataCue extends TextTrackCue { data: ArrayBuffer; addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var DataCue: { prototype: DataCue; new(): DataCue; }; /** 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; /** * 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(): any; } 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; item(index: number): DataTransferItem; /** * Removes the indexth entry in the drag data store. */ remove(index: number): void; [name: number]: DataTransferItem; } declare var DataTransferItemList: { prototype: DataTransferItemList; new(): DataTransferItemList; }; interface DeferredPermissionRequest { readonly id: number; readonly type: MSWebViewPermissionType; readonly uri: string; allow(): void; deny(): void; } declare var DeferredPermissionRequest: { prototype: DeferredPermissionRequest; new(): DeferredPermissionRequest; }; /** 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; }; /** Provides information about the amount of acceleration the device is experiencing along all three axes. */ interface DeviceAcceleration { readonly x: number | null; readonly y: number | null; readonly z: number | null; } declare var DeviceAcceleration: { prototype: DeviceAcceleration; new(): DeviceAcceleration; }; /** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */ 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; requestPermission(): Promise; }; interface DeviceMotionEventAcceleration { readonly x: number | null; readonly y: number | null; readonly z: number | null; } 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. */ 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; requestPermission(): Promise; }; /** Provides information about the rate at which the device is rotating around all three axes. */ interface DeviceRotationRate { readonly alpha: number | null; readonly beta: number | null; readonly gamma: number | null; } declare var DeviceRotationRate: { prototype: DeviceRotationRate; new(): DeviceRotationRate; }; interface DhImportKeyParams extends Algorithm { generator: Uint8Array; prime: Uint8Array; } interface DhKeyAlgorithm extends KeyAlgorithm { generator: Uint8Array; prime: Uint8Array; } interface DhKeyDeriveParams extends Algorithm { public: CryptoKey; } interface DhKeyGenParams extends Algorithm { generator: Uint8Array; prime: Uint8Array; } interface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap { "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, 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; /** * Retrieves a collection of all applet objects in the document. */ /** @deprecated */ readonly applets: HTMLCollectionOf; /** * 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. */ 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; 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; /** * 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; /** @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; /** * 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. */ 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; /** * Contains information about the current URL. */ location: 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; /** * Return an HTMLCollection of the embed elements in the Document. */ readonly plugins: HTMLCollectionOf; /** * 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; /** * Retrieves a collection of all script objects in the document. */ readonly scripts: HTMLCollectionOf; 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(source: T): T; /** @deprecated */ captureEvents(): void; caretPositionFromPoint(x: number, y: number): CaretPosition | null; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range; /** @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(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K]; /** @deprecated */ createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K]; createElement(tagName: string, options?: ElementCreationOptions): HTMLElement; /** * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName. * * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown. * * If one of the following conditions is true a "NamespaceError" DOMException will be thrown: * * localName does not match the QName production. * Namespace prefix is not null and namespace is the empty string. * Namespace prefix is "xml" and namespace is not the XML namespace. * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace. * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns". * * When supplied, options's is can be used to create a customized built-in element. */ createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K]; createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement; createElementNS(namespaceURI: 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: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent; createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent; 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: "OverflowEvent"): OverflowEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent; 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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent; createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent; createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent; createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent; createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "TextEvent"): TextEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent; createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ; 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. * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. */ 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. * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded. */ createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker; /** @deprecated */ createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): TreeWalker; /** * 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[]; /** * 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. */ execCommand(commandId: string, showUI?: boolean, value?: string): boolean; /** * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done. */ exitFullscreen(): Promise; exitPointerLock(): void; getAnimations(): Animation[]; /** * 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; /** * 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; /** * Retrieves a collection of objects based on the specified element name. * @param name Specifies the name of an element. */ getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; /** * If namespace and localName are "*" returns a HTMLCollection of all descendant elements. * * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName. * * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace. * * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName. */ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf; /** * 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; /** * 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(importedNode: 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(url?: string, name?: string, features?: string, replace?: boolean): Document; /** * 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. */ 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. */ 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. */ 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; /** * 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(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Document: { prototype: Document; new(): Document; }; 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(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } interface DocumentEvent { createEvent(eventInterface: "AnimationEvent"): AnimationEvent; createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent; createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent; createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent; createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent; createEvent(eventInterface: "CloseEvent"): CloseEvent; createEvent(eventInterface: "CompositionEvent"): CompositionEvent; createEvent(eventInterface: "CustomEvent"): CustomEvent; createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent; createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent; createEvent(eventInterface: "DragEvent"): DragEvent; createEvent(eventInterface: "ErrorEvent"): ErrorEvent; createEvent(eventInterface: "Event"): Event; createEvent(eventInterface: "Events"): Event; createEvent(eventInterface: "FocusEvent"): FocusEvent; createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent; createEvent(eventInterface: "GamepadEvent"): GamepadEvent; createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent; createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent; createEvent(eventInterface: "InputEvent"): InputEvent; createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent; createEvent(eventInterface: "ListeningStateChangedEvent"): ListeningStateChangedEvent; createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent; createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent; createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent; createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent; createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent; 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: "OverflowEvent"): OverflowEvent; createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent; createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent; createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent; createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent; 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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent; createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent; createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent; createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent; createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent; createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent; createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent; createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent; createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent; createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent; createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent; createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent; createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent; createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent; createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent; createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent; createEvent(eventInterface: "StorageEvent"): StorageEvent; createEvent(eventInterface: "TextEvent"): TextEvent; createEvent(eventInterface: "TouchEvent"): TouchEvent; createEvent(eventInterface: "TrackEvent"): TrackEvent; createEvent(eventInterface: "TransitionEvent"): TransitionEvent; createEvent(eventInterface: "UIEvent"): UIEvent; createEvent(eventInterface: "UIEvents"): UIEvent; createEvent(eventInterface: "VRDisplayEvent"): VRDisplayEvent; createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ; createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent; createEvent(eventInterface: "WheelEvent"): WheelEvent; createEvent(eventInterface: string): Event; } /** 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 { readonly activeElement: Element | null; /** * Returns document's fullscreen element. */ readonly fullscreenElement: 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; caretPositionFromPoint(x: number, y: number): CaretPosition | null; /** @deprecated */ caretRangeFromPoint(x: number, y: number): Range; elementFromPoint(x: number, y: number): Element | null; elementsFromPoint(x: number, y: number): Element[]; getSelection(): Selection | null; } 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; } /** 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 { } /** 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, 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; /** * 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(selector: K): HTMLElementTagNameMap[K] | null; closest(selector: K): SVGElementTagNameMap[K] | null; closest(selector: 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; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: K): HTMLCollectionOf; getElementsByTagName(qualifiedName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf; getElementsByTagNameNS(namespaceURI: string, localName: string): HTMLCollectionOf; /** * 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(position: InsertPosition, insertedElement: Element): Element | null; insertAdjacentHTML(where: InsertPosition, html: string): void; insertAdjacentText(where: InsertPosition, text: string): void; /** * Returns true if matching selectors against element's root yields element, and false otherwise. */ matches(selectors: string): boolean; msGetRegionContent(): any; 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; 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; webkitMatchesSelector(selectors: string): boolean; addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var Element: { prototype: Element; new(): Element; }; interface ElementCSSInlineStyle { readonly style: CSSStyleDeclaration; } interface ElementContentEditable { contentEditable: string; enterKeyHint: string; inputMode: string; readonly isContentEditable: boolean; } /** 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; 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: number; /** * 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[]; 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 EventListenerObject { handleEvent(evt: 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(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var EventSource: { prototype: EventSource; new(url: string, 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 § 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. * * 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, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): 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; }; interface ExtensionScriptApis { extensionIdToShortId(extensionId: string): number; fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void; genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void; genericSynchronousFunction(functionId: number, parameters?: string): string; genericWebRuntimeCallout(to: any, from: any, payload: string): void; getExtensionId(): string; registerGenericFunctionCallbackHandler(callbackHandler: Function): void; registerGenericPersistentCallbackHandler(callbackHandler: Function): void; registerWebRuntimeCallbackHandler(handler: Function): any; } declare var ExtensionScriptApis: { prototype: ExtensionScriptApis; new(): ExtensionScriptApis; }; interface External { /** @deprecated */ AddSearchProvider(): void; /** @deprecated */ IsSearchProviderInstalled(): void; } 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; } declare var File: { prototype: File; new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File; }; /** An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */ interface FileList { readonly length: number; item(index: number): File | null; [index: number]: File; } declare var FileList: { prototype: FileList; new(): FileList; }; interface FileReaderEventMap { "abort": ProgressEvent; "error": ProgressEvent; "load": ProgressEvent; "loadend": ProgressEvent; "loadstart": ProgressEvent; "progress": ProgressEvent; } /** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */ interface FileReader extends EventTarget { readonly error: DOMException | null; onabort: ((this: FileReader, ev: ProgressEvent) => any) | null; onerror: ((this: FileReader, ev: ProgressEvent) => any) | null; onload: ((this: FileReader, ev: ProgressEvent) => any) | null; onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null; onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null; onprogress: ((this: FileReader, ev: ProgressEvent) => 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(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var FileReader: { prototype: FileReader; new(): FileReader; readonly DONE: number; readonly EMPTY: number; readonly LOADING: number; }; /** 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 FocusNavigationEvent extends Event { readonly navigationReason: NavigationReason; readonly originHeight: number; readonly originLeft: number; readonly originTop: number; readonly originWidth: number; requestFocus(): void; } declare var FocusNavigationEvent: { prototype: FocusNavigationEvent; new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent; }; /** 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; }; /** 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. */ interface Gamepad { readonly axes: ReadonlyArray; readonly buttons: ReadonlyArray; readonly connected: boolean; readonly hand: GamepadHand; readonly hapticActuators: ReadonlyArray; readonly id: string; readonly index: number; readonly mapping: GamepadMappingType; readonly pose: GamepadPose | null; readonly timestamp: number; } 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. */ 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. */ 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; pulse(value: number, duration: number): Promise; } declare var GamepadHapticActuator: { prototype: GamepadHapticActuator; new(): GamepadHapticActuator; }; /** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */ interface GamepadPose { readonly angularAcceleration: Float32Array | null; readonly angularVelocity: Float32Array | null; readonly hasOrientation: boolean; readonly hasPosition: boolean; readonly linearAcceleration: Float32Array | null; readonly linearVelocity: Float32Array | null; readonly orientation: Float32Array | null; readonly position: Float32Array | null; } declare var GamepadPose: { prototype: GamepadPose; new(): GamepadPose; }; 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, options?: PositionOptions): void; watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number; } declare var Geolocation: { prototype: Geolocation; new(): Geolocation; }; 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; }; interface GeolocationPosition { readonly coords: GeolocationCoordinates; readonly timestamp: number; } 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; "cancel": Event; "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; "dragexit": Event; "dragleave": DragEvent; "dragover": DragEvent; "dragstart": DragEvent; "drop": DragEvent; "durationchange": Event; "emptied": Event; "ended": Event; "error": ErrorEvent; "focus": FocusEvent; "focusin": FocusEvent; "focusout": FocusEvent; "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": Event; "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; "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; oncancel: ((this: GlobalEventHandlers, ev: Event) => 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; ondragexit: ((this: GlobalEventHandlers, ev: Event) => 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; 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. */ 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; onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => 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: Event) => 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; ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null; 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; onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null; addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } 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(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAnchorElement: { prototype: HTMLAnchorElement; new(): HTMLAnchorElement; }; interface HTMLAppletElement extends HTMLElement { /** @deprecated */ align: string; /** * Sets or retrieves a text alternative to the graphic. */ /** @deprecated */ alt: string; /** * Sets or retrieves a character string that can be used to implement your own archive functionality for the object. */ /** @deprecated */ archive: string; /** @deprecated */ code: string; /** * Sets or retrieves the URL of the component. */ /** @deprecated */ codeBase: string; readonly form: HTMLFormElement | null; /** * Sets or retrieves the height of the object. */ /** @deprecated */ height: string; /** @deprecated */ hspace: number; /** * Sets or retrieves the shape of the object. */ /** @deprecated */ name: string; /** @deprecated */ object: string; /** @deprecated */ vspace: number; /** @deprecated */ width: string; addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAppletElement: { prototype: HTMLAppletElement; new(): HTMLAppletElement; }; /** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. */ 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(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare var HTMLAreaElement: { prototype: HTMLAreaElement; new(): HTMLAreaElement; }; /** Provides access to the properties of